Forward locking does a few things, upon installation it moves the APK to a location that is not world-readable. Then it extracts the resources from that APK, and puts them into a world readable zip. Any shared libraries will also be extracted to a world readable location as well. Lastly, you also have the "dalvik-cache" which will be an odex'ed version of your dex file.
So now the size is going to be, original apk + zip of all extracted resources + odex + all files you drop into your directory (downloaded from internet/created data, etc). As far as I know, the spaced used is the summation of all the above files. -Tim Strazzere On Tue, Oct 30, 2012 at 7:20 AM, will <[email protected]> wrote: > > > I tried some quick test on my Nexus 7 : > *adb install foo.apk* > > Look at the space used on the device: 250 KB > *adb install -r -l foo.apk* > > Look at the space used on the device: more than 2MB > > So I thought that the first app using forward lock would cause this > "extra" space to be used.. but no. If you have 2 apps, each will be more > than 2MB. > > The question is what is the purpose of those 2MB ? Why use 2MB for a 200KB > app?? I can't imagine a factor 10 in size is needed to encrypt anything. > > -- > You received this message because you are subscribed to the Google Groups > "Android Security Discussions" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/android-security-discuss/-/zNvDK8UqrvQJ. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/android-security-discuss?hl=en. > -- You received this message because you are subscribed to the Google Groups "Android Security Discussions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/android-security-discuss?hl=en.
