Reputation: 152
I'm developing some Android app, and I need to delete all internal data( logout from FB, Twitter, clear browser history etc..)
Is it possible to do this without rooted phone? Or is it possible to create some kind of virtual guest user and delete data after session programmatically?
Upvotes: 0
Views: 1628
Reputation: 736
You cannot delete data from other apps without root from your app. The only way is using settings-> apps-> appName->clear data...
Android has a private directory for every app, and only this app can access to this directory (instead of you have your phone rooted).
Reading Android - Storage Options, it says:
You can save files directly on the device's internal storage. 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.
If you don't have the phone rooted, I think you cannot do it...
Upvotes: 2