为什么我的设备上的应用程序的大小不同,比APK或播放存储大小 [英] Why does my app size on device differ than the APK or Play store size

查看:167
本文介绍了为什么我的设备上的应用程序的大小不同,比APK或播放存储大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从我无法去试图理解为什么报道谷歌Play商店的大小比报告设备上的大小不同的底部有一个用户一个比较有效的问题。我在我的电脑上签署发布APK规模排在3.8MB。上传到谷歌播放显示一个类似的大小。纵观但是设备上的应用程序管理器显示以下数据:

I have a quite valid question from a user which I'm unable to get to the bottom of trying to understand why the size reported on Google Play store is different than the size reported on the device. My signed release APK size on my PC comes in at 3.8MB. Uploading to Google Play shows a similiar size. Looking at the app manager on the device however shows the following stats:

Total: 6.62MB
App:   6.51MB
Data:   112KB

这是不是做与谷歌播放启用复制保护(其它类似的问题sugget)我得到安装APK签署或开发APK相同的统计数据。

This is not to do with Google Play enabled copy protection (as other similar questions sugget) as I get the same stats installing the signed APK or development APK.

在APK下/数据/应用程序在手机上再次3.8MB下/data/data/com.my.app文件来到另一个100KB左右(presumably数据行的上方)。

The APK on the phone under /data/app is again 3.8MB and the files under /data/data/com.my.app come to another 100KB or so (presumably the 'Data' row above).

是什么原因造成的差异在统计?

What is causing the discrepancy in stats?

编辑:进一步研究这个,这是在许多应用程序在我的设备的一个共同特点。谷歌播放报道一种尺寸和设备报告的东西一般在大小的2倍以上。所以,好知道它可能不是我做的,但还是好奇这里的理由是因为它的令人沮丧的由'刮'安装尺寸,显得更小!

Researching this further, this is a common feature across many applications on my devices. Google Play reports one size and the device reports something generally in the magnitude 2 times greater. So good to know its probably not something I'm doing, but still curious what the reasoning here is as its frustrating to be accused by users of 'doctoring' the install size to appear smaller!

推荐答案

在Android系统中安装APK,什么是装的DEX文件。其中包含您code,资源等编译为二进制文件。您的DEX一般是你的apk的大小相同,除非你有资产不编译资源。

When installing an APK in android system, what's installed is the DEX file. Which contains your code, resources etc compiled as binaries. Your dex is generally the same size of your apk, unless you have resources not compiled in assets.

好吧,我们都知道这一点。有什么理由不widelly US $ p $垫是安卓保存您原来的apk太多。也许对于重新安装在错误的情况下或某些其他原因。

Well, we all know that. What's not widelly spread is that android SAVES your original apk too. Perhaps for reinstalling in case of errors or for some other reasons.

这就是为什么我们的应用程序的内存量是双系统。它的原始的apk和安装的地塞米松的大小的总和。

That's why the amount of memory of our apps is the double in system. It's the sum of the size of the original apk and the installed dex.

这篇关于为什么我的设备上的应用程序的大小不同,比APK或播放存储大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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