mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
Android SDK binaries insufficient permissions. (#747)
* added correct rules for android sdk folder. * added for ubuntu 16 also. * added sudo for chmod operation. * removed redundunt sudo. * changed chmod parameters for a+X Co-authored-by: Dariy.Nurgaleev <d.nurgaleev@trueengineering.ru>
This commit is contained in:
@@ -37,6 +37,8 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Add required permissions
|
||||
chmod -R a+X ${ANDROID_SDK_ROOT}
|
||||
|
||||
# Install the following SDKs and build tools, passing in "y" to accept licenses.
|
||||
echo "y" | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager \
|
||||
|
||||
@@ -27,6 +27,9 @@ wget -O android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux
|
||||
unzip android-sdk.zip -d ${ANDROID_SDK_ROOT}
|
||||
rm -f android-sdk.zip
|
||||
|
||||
# Add required permissions
|
||||
chmod -R a+X ${ANDROID_SDK_ROOT}
|
||||
|
||||
# Check sdk manager installation
|
||||
/usr/local/lib/android/sdk/tools/bin/sdkmanager --list 1>/dev/null
|
||||
if [ $? -eq 0 ]
|
||||
|
||||
Reference in New Issue
Block a user