Monday, February 18, 2013

Without Root, why can I pull a specific apk using adb, but not everything in /data/app. Android 4+?

It's a "permission and privacy" thing. While the .apk does not have any privacy concerns involved (and thus can give read permission to everyone), the data do, and thus the directory is only readable by owner, group, and root (not by "other", which is what you would need -- "other" has only eXecute permissions).

ls -l / | grep data drwxrwx--x   25 system   system  4096 Jan 28 17:51 data 

Which means: Specifying the file directly, you can pull it (as it has the required file permissions, and the directory permits you to cd into due to the set eXecute bit). Specifying the directory instead fails, as this would require to change (cd) into the directory (which works) and build a list of files contained -- which is impossible due to the missing read permission on the directory entry itself.

Source: http://android.stackexchange.com/questions/39828/without-root-why-can-i-pull-a-specific-apk-using-adb-but-not-everything-in-da

lizzie borden lizzie borden iona taylor allderdice mixtape andrew bogut pi day monta ellis

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.