在论坛看到好多人想取消应用的开机自启动, 于是就想了解是怎么实现的, 可是百度了一下,结果都是怎么让应用开机启动, 对百度搜索资料越来越没有希望了.
最后google得到一个结果,
<span style="font-size:18px;">pm revoke com.android.livevideo android.permission.RECEIVE_BOOT_COMPLETED</span>
Operation not allowed: java.lang.SecurityException: Permission android.permission.RECEIVE_BOOT_COMPLETED is not a development permission
查询得到pm命令的使用方法如下:
usage: pm [list|path|install|uninstall] pm list packages [-f] pm list permission-groups pm list permissions [-g] [-f] [-d] [-u] [GROUP] pm list instrumentation [-f] [TARGET-PACKAGE] pm list features pm path PACKAGE pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH pm uninstall [-k] PACKAGE pm enable PACKAGE_OR_COMPONENT pm disable PACKAGE_OR_COMPONENT pm setInstallLocation [0/auto] [1/internal] [2/external]
pm install /sdcard/com.twitter.android-1.apk
pm list packages | grep twitter
pm path com.twitter.android
http://www.kpbird.com/2013/05/android-shell-command-pm-package-manager.html