简体   繁体   English

Android SDK/命令行工具源代码?

[英]Android SDK/Command Line Tools Source Code?

Where is the source code for the Android command line tools and SDK? Android 命令行工具和 SDK 的源代码在哪里? 我正在谈论的图片,因为有些人可能认为我想使用 Apache ANT 或其他东西。

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:对于某些工具的源代码,我们可以通过以下步骤来查找:

  1. 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它将引导我们到 jar sdklib/libavdmanager_lib.jarsdklib/sdklib.core.jar
  2. 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
  3. according the full class name to determine the source code in repository.根据完整的 class 名称来确定存储库中的源代码。 This is the source code of class AvdManager . 这是 class AvdManager的源代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法更新 \\tools - 适用于 Windows 的 Android SDK 命令行工具 - Can't update \tools - Android SDK Command Line Tools for Windows 如何在命令行上安装 Android SDK Build Tools? - How to install Android SDK Build Tools on the command line? 如何为 android SDK 命令行工具设置环境变量 - how to set Environment variables for android SDK command line tools 安卓SDK源代码 - Android SDK source code Android 找不到 sdkmanager。 仍然出现,虽然,Android SDK 命令行工具已经安装 - Android sdkmanager not found. still appears, although, Android SDK Command-line tools is already installed Ubuntu和java.security.InvalidAlgorithmParameterException上的Android命令行工具SDK Manager - Android Command Line Tools SDK Manager on Ubuntu & java.security.InvalidAlgorithmParameterException 安装android SDK并下载命令行工具后找不到monkeyrunner文件 - cannot find monkeyrunner file after installing android SDK and downloading command line tools 构建 Android 模块错误:命令行工具 - Build Android Module ERROR: Command Line Tools 使用命令行工具构建 Android - Android Build with command-line tools 使用 android 命令行工具安装包 - Installing packages using android command line tools
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM