How does Android split APK? What part of APK is stored in /data/app and what part is stored in /data/app-asec?
On Monday, September 23, 2013 7:53:34 PM UTC+5:30, gauri wrote: > > Thanks Nikolay!!! > I read your blog also.... > http://nelenkov.blogspot.in/2012/07/using-app-encryption-in-jelly-bean.html > > On Thursday, September 19, 2013 9:52:24 PM UTC+5:30, Nikolay Elenkov wrote: >> >> On Thu, Sep 19, 2013 at 4:27 PM, gauri <[email protected]> wrote: >> > Hello, >> > >> > The android app downloaded/purchased from Google Play is stored in >> > "/data/app" directory. >> > Does Play Store or android system modify the apk after download? >> >> Not for free apps. >> >> > When I purchase it from Play store, after my app launch, digest >> verification >> > is getting failed. >> > I found that the message digest which I have stored in app and the >> digest >> > which I am calculating at run time are differing. >> >> On 4.1+, paid apps are forward locked by default, which is implemented >> by splitting the APK in a public (in /data/app) and private part >> (in /data/app-asec). You are most probably calculating the hash of the >> public part only, hence the mismatch. If you have a rooted device >> you can verify by searching for you package name in /data/app-asec. >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

