1

Is it possible to run code to uninstall my specific applications? I have found it how to do it on Android Studio but how would I go on doing it in RAD studio?

Process process = Runtime.getRuntime().exec("uninstall com.whatsapp");
BufferedReader bufferedReader = new BufferedReader(
new InputStreamReader(process.getInputStream()));

This is used in a Company device, so I need to be able to uninstall this.

  • 1
    it is not possible at all (without root access) – Vladyslav Matviienko Feb 26 '19 at 07:09
  • Possible duplicate of https://stackoverflow.com/questions/6813322/install-uninstall-apks-programmatically-packagemanager-vs-intents – mjn42 Feb 26 '19 at 07:19
  • Think of it this way: What would you think, if some competitor chose to remove your app, just because he can? – Sherlock70 Feb 26 '19 at 08:56
  • @Sherlock70 As I MENTIONED above "This is used in a Company device, so I need to be able to uninstall this." – TechnerBlade Mar 06 '19 at 06:39
  • @TechnerBlade: But if you can do it on your company device, someone could do it on a non-company device, which would be both a massive security issue and an abusive privilege risk. As Sherlock70 MENTIONED, a developer/company could remove their competitor's apps without consent from the user. – Ken White Apr 05 '19 at 00:38

0 Answers0