When you code #android #apps, there is no need to get the #sdk binaries from google. They come with a proprietary license that you would need to accept.

But the #sdk source code is #floss.

You can build the whole #sdk on your own with #docker, using ready recipes:

1. Clone the repo from gitlab.com/android-rebuilds/au

2. go into the desired sdk folder

3. check the few .sh files if everything is set up according to your needs

4. run "make" and relax

You'll get a free #android #sdk !

@Billie, I remember upgrading to Debian Sid simply because it has the SDK in the repo

@cnx

Yes that is true, but most of the time it is a little bit outdated. For a long time, it was stuck at api level 23 (#android 6), now it luckily is at least 28 (#android 9).

I now compiled the sdk api level 29 from source (#android 10).

This was kind of an experiment, I am lucky that I can compile the sdk on my own, so that I do not need to rely on any binaries.

@Billie @cnx I'm glad you two have pointed out ways to get the free SDK. Question: does the free sdk have an AOS emulator to test apps on?

@resist1984, I used Anbox which was a pain to set up and get running, but it was fully libre and yo can find a ASOP image to use with it. It’s basically a container for Android so it’s much easier on resources than the emulator embedded in Android Studio, but it is alpha quality at best and cannot run all apps. I used it only for a course at school and the mainline Linux mobile (e.g. Librem 5 or PinePhone) community uses it sometimes too.

Maybe @Billie@social.tchncs.deI will have more options for you.

@cnx @resist1984 Or you can debug on real device if you have one :D
Follow

@huy_ngo @cnx I must come clean with my use for an AOS emulator: it's not dev work, but actually to sandbox untrusted apps from others. E.g. I wouldn't trust my bank not to monitor my location & other details, so an emulator gives control over inputs. OTOH, I should say that this fails with banking apps that somehow detect that they are running on a VM.

Sign in to participate in the conversation
Mastodon 🔐 privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!