Joe
Joe

Reputation: 1498

How can I access /data/data directory of other app without rooting the phone

as per Google documentation,

By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user). When the user uninstalls your application, these files are removed.

Source: http://developer.android.com/guide/topics/data/data-storage.html

By default implies that it is only temporary and can be modified. So is there any way to modify this permission to allow your app to read internal storage files from other Apps ?

I am willing to access /data/data/com.Whatsapp to access my encryption key to study how Whatsapp actually generates the key and i need to done this using my App, not a rooted phone or anything.

Upvotes: 2

Views: 1508

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006789

So is there any way to modify this permission to allow your app to read internal storage files from other Apps ?

No. In the quoted passage above, please see the "nor can the user" part. You, as a user, do not have rights to access those files, let alone change permissions on them. The exception is a user who roots their device.

Upvotes: 4

Related Questions