Install / Unistall from shell command in Android

后端 未结 6 1780
一生所求
一生所求 2020-12-28 20:55

I want to implement a silent installer-from-apk-file and unistaller-package in Android. The topic has largely been discussed on SO and elsewhere but I can\'t apply any for s

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-28 21:30

    Well you can do this also with the PackageManager directly (requires root access):

    • Create an app with a platform-sdk which has the interfaces publicly (create or download it, and configure eclipse)
    • In the app directly call the hidden API functions which allow silent install/remove.
    • Install the APK on your device as a system app by copying it to /system/app (root needed)

    See this: http://forum.xda-developers.com/showthread.php?t=1711653

提交回复
热议问题