adb shell pm命令初识, 禁止应用开机自启动命令

在论坛看到好多人想取消应用的开机自启动, 于是就想了解是怎么实现的, 可是百度了一下,结果都是怎么让应用开机启动, 对百度搜索资料越来越没有希望了.

最后google得到一个结果,

<span style="font-size:18px;">pm revoke com.android.livevideo android.permission.RECEIVE_BOOT_COMPLETED</span>虽然提示(猜测用系统权限就OK)Operation not allowed: java.lang.SecurityException: Permission android.permission.RECEIVE_BOOT_COMPLETED is not a development permission但是至少知道是这样去实现, 等会儿就放假了, 先写博文记录下来.

查询得到pm命令的使用方法如下:

Use Android package managerpm

usage: pm [list|path|install|uninstall]pm list packages [-f]pm list permission-groupspm list permissions [-g] [-f] [-d] [-u] [GROUP]pm list instrumentation [-f] [TARGET-PACKAGE]pm list featurespm path PACKAGEpm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATHpm uninstall [-k] PACKAGEpm enable PACKAGE_OR_COMPONENTpm disable PACKAGE_OR_COMPONENTpm setInstallLocation [0/auto] [1/internal] [2/external]Examples

Install the package com.twitter.android-1.apk from the SD card

pm install /sdcard/com.twitter.android-1.apk

List installed packages that contain the termtwitter

pm list packages | grep twitter

Show the install directory of the twitter package

pm path com.twitter.android

,旅行是一种病,当你把身边的人都传染了,

adb shell pm命令初识, 禁止应用开机自启动命令

相关文章:

你感兴趣的文章:

标签云: