0

I want to know, how to install apk programmatically without using intent(i.e. silent installation without user prompt)?

I did r&d regarding this, only possible if the device is rooted but i saw few application like Appbrain, and airwatch, am asking for enterprice app, is there any workaround for this?

I refer this thread also Silent installation on Android devices

Do you have any idea?

Community
  • 1
  • 1
kumar_android
  • 2,273
  • 1
  • 21
  • 30

1 Answers1

3

You need a rooted device do this. ACTION_PACKAGE_INSTALL was never actually used and supposedly required being a system app.

exec = Runtime.getRuntime().exec(new String[]{"mv /path/to.apk /system/app/theapp.apk"});
Andy McSherry
  • 4,676
  • 3
  • 26
  • 36