[英]Android SDK/Command Line Tools Source Code?
Where is the source code for the Android command line tools and SDK? Android 命令行工具和 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.我计划通过终端仿真器编译 Arm 的工具,以便与 android 设备一起使用,或者将工具编译成具有其他一些功能的 apk。 Basically I would like to have a minimalist method for developing for android on an android system somewhat like AIDE .
基本上我想有一个极简的方法来开发 android 系统上的 android 有点像AIDE 。
Most of them are in the /platform/tools/base
repository, here is the link .其中大部分位于
/platform/tools/base
存储库中,这是链接。
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. cat
工具的 bat/shell,例如avamanager
/ avdmanager.bat
。 It will lead us to the jar sdklib/libavdmanager_lib.jar
and sdklib/sdklib.core.jar
sdklib/libavdmanager_lib.jar
和sdklib/sdklib.core.jar
unzip
/decompile the jars, find the actual logic class. unzip
/反编译jars,找到实际逻辑class。 It's com.android.sdklib.internal.avd.AvdManager
in our example.com.android.sdklib.internal.avd.AvdManager
。AvdManager
. AvdManager
的源代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.