-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquick-setup
executable file
·38 lines (28 loc) · 1.13 KB
/
quick-setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo "installing required packages..."
apt install openjdk-17 aapt2 d8 apksigner zip curl android-tools kotlin
# more can be found at https://androidsdkmanager.azurewebsite.net/SDKPlatform
echo "
Do you want to download and setup the android jar?
A android 13 jar will be downloaded.
!!!Continuing will ERASE ALL DATA in android-12/ to be removed!!!
By continuing, you agree to the respective license in using the third-party service, provided by dl.google.com, and the zip downloaded.
At the time of writing, a copy of the license is at https://androidsdkmanager.azurewebsite.net/TandC .
Do you want to continue? [Y for yes]
"
read -p "> " _ans
if [[ $_ans == "Y" || $_ans == "y" ]]; then
rm -r android-12/
echo "downloading started"
curl -O https://dl.google.com/android/repository/platform-33_r01.zip
echo "unzipping started"
unzip platform-33_r01.zip
rm platform-33_r01.zip
mv android-13/ android-12/
echo "done"
else
echo "To setup an android jar,
download and place it in android-12/,
and rename to android.jar."
fi
ln -s ~/apk-devtool/apkdev $PREFIX/bin/apkdev