lineage os
Fork/distribution without as much awfulness.
development
https://www.kuon.ch/post/2020-01-12-android-app/
Setting up an android development SDK is a huge pain in the ass. The first step
is installing java and setting your JAVA_HOME
variable.
Download android studio, which is a massive gui IDE or scroll to the bottom of
this page and get the command line tools:
https://developer.android.com/studio
Once you have the command line tools, put them in a folder structure like this:
$HOME/.local/opt/android-sdk/cmdline-tools/latest/bin
Note that when you extract them it wont have the latest
folder so you need to
move the contents. Anyway, once you managed that add it to your path and run the
suggested commands from this page to get one or more sdk's:
https://developer.android.com/studio/command-line/sdkmanager
If you're trying to use flutter you probably also need
"build-tools;30.0.3"
per this random stack exchange thread:
https://stackoverflow.com/questions/53986067/no-valid-android-sdk-platforms
publishing
For google play store you need to generate a local upload key:
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
adb
I also added the platform-tools
folder to my path since that contains adb
which is needed for rooting your phone or sending development apps to it. My
path looks like this:
$HOME/.local/opt/android-sdk/cmdline-tools/latest/bin:$HOME/.local/opt/android-sdk/platform-tools
To actually use adb
you need added to the plugdev
and adbusers
groups:\
sudo usermod -aG plugdev $LOGNAME
sudo usermod -aG adbusers $LOGNAME