In theory Android apps from F-Droid are free software, but how easy exactly is it to make your own modifications to them?

On Debian, if you want to modify a piece of software, you need to:

apt install build-essential # only first time
apt-get source $package
cd $package
# modify the sources
dpkg-buildpkackage -us -uc -someotheroptionIforgot
dpkg -i ../$package.deb

On Arch it's very similar.

How do I do this on Android?

@Wolf480pl Well, basically not possible unless you install a chroot and install OpenJDK, Maven, Gradle, so on

@espectalll oh, so Android SDK won't run on Android's crippled version of Java? How ironic...

That being said, Gradle takes 100MB, Maven takes 40MB, OpenJDK takes 10MB. How much space does Android SDK take tho?

@Wolf480pl it probably does, it's just that you need to package it all in some APK, aka in a new app

@Wolf480pl also the SDK is like, around a GB or two, without counting the system images

@espectalll can you use the running system in place of a system image?

@Wolf480pl Yes, of course! Just acquire install and/or ADB permissions and you can test your apps within the same system

@espectalll And the final question: are all parts of Android SDK open-source? And if not, do these closed-source parts have a license that forbids me from running them on Android?


Well, it doesn't look like it forbids me form running them on Android, but:

>3.2 You may not use this SDK to develop applications for other platforms (including non-compatible implementations of Android) or to develop another SDK.[...]

>3.4 [...] you may not copy (except for backup purposes), modify, adapt, redistribute, decompile, reverse engineer, disassemble, or create derivative works of the SDK or any part of the SDK.

@Wolf480pl notice "as made available under the Android Open Source Project" - which makes you wonder, is there an open source version of the SDK, and this license only applies specifically to Google builds?

Well... yeah!

@espectalll hmm... so I download LineageOS sources, then build SDK from them, then use that SDK to package that SDK as an apk?

@Wolf480pl ...actually no, I don't know and I'm completely lost, but it must be somewhere around there

@espectalll thanks.
It's unlikely I'll have time to go for it any time soon, but I'll keep that link for later.

@Wolf480pl np, it's nice to remember from time to time how much we can stop depending on Google for their own OS :blobpopcorn:

@Wolf480pl this may have changed, since Android has very significantly changed its codebase since 2014

Sign in to participate in the conversation

Welcome to your niu world ! We are a cute and loving international community οΌ―(≧▽≦)οΌ― !