Where is the source code for the Android command line tools and SDK?

I am planning on compiling the tools for Arm for use with an android device through the terminal emulator or by compiling the tools into an apk with some other features. Basically I would like to have a minimalist method for developing for android on an android system somewhat like AIDE.
Most of them are in the /platform/tools/base repository, here is the link.
As for certain tool's source code, we can use the following steps to find out :
cat the tool's bat/shell, avamanager/avdmanager.bat, for example. It will lead us to the jar sdklib/libavdmanager_lib.jar and sdklib/sdklib.core.jarunzip/decompile the jars, find the actual logic class. It's com.android.sdklib.internal.avd.AvdManager in our example.AvdManager.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With