简体   繁体   English

为什么 Android APK 安装时要大得多?

[英]Why Android APK much larger when installed?

I am installing an APK which weighs roughly 2MB.我正在安装一个大约 2MB 的 APK。 Once the application is installed it weighs 9MB.安装应用程序后,它的大小为 9MB。 Is there a logical explanation for this?这有合乎逻辑的解释吗?

The APK file-format is a compressed format. APK 文件格式是一种压缩格式。

As soon you install an app Android decompresses the App it because it performs some optimizations.安装应用程序后,Android 会立即解压缩该应用程序,因为它会执行一些优化。 Another reason is that it would be unfavourable to decompress it before every start for performance and battery-life reasons.另一个原因是,出于性能和电池寿命的原因,在每次启动之前都不宜对其进行解压缩。

Some APKs bring some native libraries with them (for example many games or apps that were build with Delphi) which are also stored uncompressed.一些 APK 带有一些本地库(例如许多使用 Delphi 构建的游戏或应用程序),这些库也未压缩存储。 Escpecially this kind of apps will suffer from being enormous large when installed compared to Java-Only Apps.特别是与 Java-Only 应用程序相比,此类应用程序在安装时会受到巨大影响。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM