Re: [android-developers] What is difference between the Android App downloaded using Google Play store and the one directly installed?

2013-09-26 Thread gauri
Thanks for your help.
I downloaded and installed one paid Android app using Google Play Store in 
phone with Android OS 4.3.
I wrote one test application which enumerates list of installed apps and 
prints apk download location them.
When I tested this app, I found that, this paid app was downloaded at 
/mnt/asec. In this location, the directory named by that app's package 
name was created and it was having following files:
- res.zip (containing res directory, AndroidManifest.xml)
- pkg.apk
- libs directory

On Tuesday, September 24, 2013 7:56:12 PM UTC+5:30, Nikolay Elenkov wrote:

 On Tue, Sep 24, 2013 at 11:16 PM, gauri gauri...@gmail.com javascript: 
 wrote: 
  How does Android split APK? What part of APK is stored in /data/app and 
 what 
  part is stored in /data/app-asec? 


 See the blog post for details, but in short the public part has resources 
 and 
 the manifest, and the private part has code and assets. 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] What is difference between the Android App downloaded using Google Play store and the one directly installed?

2013-09-24 Thread gauri
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 gauri...@gmail.com 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] What is difference between the Android App downloaded using Google Play store and the one directly installed?

2013-09-24 Thread Nikolay Elenkov
On Tue, Sep 24, 2013 at 11:16 PM, gauri gauri.v...@gmail.com wrote:
 How does Android split APK? What part of APK is stored in /data/app and what
 part is stored in /data/app-asec?


See the blog post for details, but in short the public part has resources and
the manifest, and the private part has code and assets.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] What is difference between the Android App downloaded using Google Play store and the one directly installed?

2013-09-23 Thread gauri
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 gauri...@gmail.com javascript: 
 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] What is difference between the Android App downloaded using Google Play store and the one directly installed?

2013-09-19 Thread gauri
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?
I have calculated message digest of apk before it's upload to Play store.
I am calculating message digest of the downloaded apk (present at 
/data/app) and verifying it with the digest stored in my app.
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.
Am I going in right direction?

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] What is difference between the Android App downloaded using Google Play store and the one directly installed?

2013-09-19 Thread Nikolay Elenkov
On Thu, Sep 19, 2013 at 4:27 PM, gauri gauri.v...@gmail.com 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.