English 中文(简体)
当我安装了甲状腺应用时,究竟发生了什么?
原标题:What exactly happens when I install an android application?
  • 时间:2011-10-14 20:43:48
  •  标签:
  • android

我的猜测是,在某个地方提取了包裹的内容,申请是在一些目录上登记的,以便申请发射人或能够找到的物品。 但这是所有吗? 如果情况是这样,那么,最初的“xml”号是每当发射一次,还是以某种其他形式预先处理?

最佳回答

http://www.ohchr.org。 答案现在是10年? 虽然总体情况可能仍然准确,但细节已明显改变(ART而不是Dalvik,动态与静态许可等)。 食盐。

Some basics

The .apk-file

<代码>.apk -file is not magical at all. 它只是代表安康申请内容的一批档案。 如果你在档案库(如7Zip)打开,你可以浏览并提取内容。

Android is Linux

基本的安乐器系统是含水层系统。 安德列使用一个在节能和一些速度改进方面具有某些额外功能的定制的六氯环己烷舱。 氯乙烯装置的内部储存采用YAFFS2-filesystem,其中完全标明了类似六氯环己烷的准入概念。

旧的档案系统可能会因制造或安静电而有所不同。 新装置经常使用<代码>ext3,而三星则使用自己的档案系统:RFS

这是沙箱系统的一个重要方面,该系统是安永使用的。

Compiling applications

What happens to the .java-files?

首先,这些汇编由通常的 Java汇编者汇编。 在编集之后(到.que>.m-files),dx-tool from DDK 然后将“normal” java-classes改为Dalvik-Bytecode

“特殊”java-code”随后由德国航天局(Dalvik虚拟机器)解释,后者基于开放源JRE执行Apachelib

<>Update: 在新版本的Anders,当使用时,即可使用转换/传输步骤。 这样,<代码>.java文档就直接编入<代码>dx格式。

此外,自第4.4版(KitKat)以来,新网站ART 运行,正式取代Lalvik(Lollipop)。

What happens to the resources i put into the /asset-directory?

安德列提供<代码>/assets-directory,以添加一些双向原始档案(例如:Kingk数据库)。 编入该名录的文件:re not汇编或优化。

If you put your files into this directory, this is the kind of behavior you would expect from Android.

What happens to the resources i put into the /res/raw-directory?

Like the /assets-directory, you can also put binary (or other) raw-files in here (e.g. HTML-files for the Help-page). These files are compiled/optimized (if possible).

What happens to the Manifest and the other XML-files?

安德列斯-Manifest和其他XML-files(Layouts, Strings等)储存起来,并“兼容”成双XML-format。 这是快速优化。

The Sandbox

从安乐施会的角度来看,单一申请方拥有:

  • it s own process,
  • it s own OS-User (like on Linux),
  • it s own DVM,
  • it s own place in the heap and
  • it s own place on the filesystem.

因此,每台乐器都有自己的用户,在内部储存中拥有进入该装置的适当权利(受标准立体文档系统权利-管理的保护),并且拥有自己的DVD-处理程序(从申请之外获取)。

为使申请有可能离开Sandnet(例如连接互联网),使用在Manifest宣布的许可。

Steps during the installation

因此,从上述解释来看,应当明确安乐施会的安装情况:

  1. The new user for the Application is created.
  2. With this new users rights, the Applications directory in the internal storage is created.
  3. The contents of the .apk-file are being extracted there.
  4. The Android-Manifest is parsed and the declared intent-filters are registered (e.g. the android.intent.category.LAUNCHER-filter for the applications standard entry point).
  5. Now the application is ready for it s first launch.
问题回答

当你拿一个 app子时,其APK将“数据/应用”复制件,并用设备编号(你多次穿透或更新)之后的包装名称命名。

我试图用人工安装一台电器,复制其APK,并用数据/应用程序夹加以复制,并重新贴上我的装置,然后把它视为安装的器具,并完美运作。

另外,我在。 a. 显示任何已安装的仪器都有电离层:

Apk located in /data/app/package-number.apk

Dex 位于/data/dalvik-cache/data@app@ Package- number.apk@classes.dex

位于/data/data/ Package/lib的

数据/数据/包装

藏匿于/数据/数据/包装/藏匿处





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签