1

Is it possible to install / uninstall applications on device by android code without user interaction ?

Hardik Joshi
  • 9,477
  • 12
  • 61
  • 113

1 Answers1

2

yeah it's possible You need to use Process and Runtime for execute adb command in Android grammatically.Suppose you wanna install an apk then you need to run ./adb install ~/Desktop/apkname.Similarly you need to use ./adb install command for this.

Process process=Runtime.getRuntime().exec("./adb install 'complete path of your apk file'");

Hope this will work Good luck.

Dilip
  • 2,271
  • 5
  • 32
  • 52