0

I would like to create an application (for an Android rooted device) which remove the cache of another one.

I found DevicePolicyManager but the only wipe function is for the entire device..

Do you have any clue ?

nobody710
  • 125
  • 1
  • 8
  • 1
    use adb to retreive installed packages. then use "adb shell pm clear my.app.package.name" to clear the data for a package (check this out for more info: https://stackoverflow.com/questions/31731728/how-to-run-adb-shell-commands-from-android-code) – P. Stresow Jan 14 '19 at 14:58
  • Thank you, that seems to be the solution :) – nobody710 Jan 15 '19 at 16:34

0 Answers0