安卓:了解APK安装过程 [英] Android: Understanding the APK installation process

查看:124
本文介绍了安卓:了解APK安装过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解一个APK安装在机器人的过程中,特别是通过ADB是Android SDK模拟器安装(我在哪里测试)。

I am trying to understand the process of how an apk is installed on Android, specifically the Android SDK emulator via adb install (where i am testing).

在寻找我已经找到了外面没有满意的答案的APK被简单地复制到/数据/应用程序,当你运行它的安装,这是不能令人满意把我当它是如何将APK的图标上会出现不解释菜单中涉及的问题。

In searching I have found no satisfactory answer outside of "the apk is simply copied to /data/app and is installed when you run it. This is not satisfactory to me as it does not explain how the apk's icon appears on the menu amongst other issues.

从Windows背景的,运行.exe或安装程序,安装程序会修改注册表,文件,服务等....我需要了解,如果这或类似的东西occurrs当一个APK安装在Android上。

Coming from a Windows background, running an .exe or installer to install a program modifies registries, files, services, etc.... I need to understand if this or something similar occurrs when an apk is installed on Android.

因此​​,如果任何人都可以向我解释,特别是当一个APK安装在Android上,我将不胜AP preciate是什么occurrs。

So if anyone can explain to me what occurrs specifically when an apk is installed on Android I would greatly appreciate it.

在一个侧面说明我也想知道,如果Dalvik虚拟机合子参与安装或它确实发生在较低的Linux内核级别?

On a side note I would also like to know if the Dalvik VM "zygote" is involved in the installation or does it occur at the lower linux kernel level?

我的最终这里的目的是使用strace的来caputer的APK安装过程中文件系统的修改,文件创建,网络活动和其他有趣的活动。

My ultimate goal here is to use strace to caputer the installation process of an apk to document system modifications, file creations, network activity and other events of interest.

推荐答案

这是你需要知道的一切是这样的<一个href="http://developer.android.com/tools/building/index.html">http://developer.android.com/tools/building/index.html并明白这里是形象要好。 你也可以google一下AAPT工具,.dex了解更多,因为classes.dex是您的应用程序的子结构 - 包含Java和类编译。一个DEX文件包含与之相对应的只包含一个类Java类文件多类。 DEX文件是Java字节code转换与DX的工具,它是Android SDK中的一个组成部分。作为该结果,它允许每个应用程序,以作为它自己的进程与自己的Dalvik虚拟机的实例中运行。

Everything that you need to know is this http://developer.android.com/tools/building/index.html and to understand here is image better. You can also google about aapt tool and .dex to understand more because classes.dex is the substruction of your application - contains the java and classes compiled. One dex file contains multiple classes as opposed to java class file which contain only that one class. dex file is java bytecode converted with DX tool which is integral part of Android SDK. As a result of that, it allows every application to run as its own process with its own instance of the Dalvik virtual machine.

这篇关于安卓:了解APK安装过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆