adb shell pm命令初识, 禁止应用开机自启动命令
来源:互联网 发布:东亚病夫的由来 知乎 编辑:程序博客网 时间:2024/06/06 00:00
在论坛看到好多人想取消应用的开机自启动, 于是就想了解是怎么实现的, 可是百度了一下,结果都是怎么让应用开机启动, 对百度搜索资料越来越没有希望了.
最后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 manager 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]
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 term twitter
pm list packages | grep twitter
Show the install directory of the twitter package
pm path com.twitter.android
http://www.kpbird.com/2013/05/android-shell-command-pm-package-manager.html 0 1
- adb shell pm命令初识, 禁止应用开机自启动命令
- adb shell 中的pm命令
- adb shell am/pm命令
- adb shell命令整理之pm
- android开机自启动APP及使用adb命令测试
- adb的adb shell pm list packages命令用来查看当前设备app应用包
- adb 命令启动应用
- linux开机自启动与shell命令调用
- adb、pm命令、root
- adb pm命令
- android adb pm命令
- win7开机自启动命令
- Python之使用adb shell命令启动应用
- adb、adb shell am、adb shell pm命令的详细使用说明
- adb之am、pm命令
- adb shell am broadcast 手动发送广播及adb shell am/pm其他命令
- adb shell命令--命令创建模拟器并启动,命令
- systemctl 与 chkconfig 开机自启动命令
- test
- 浅谈SQL Server中的三种物理连接操作(HASH JOIN MERGE JOIN NESTED LOOP)
- 天国王朝经典台词
- C++ 顺序容器的操作(1)size_type、iterator、const_iterator、difference_type
- Qt项目中的常见用法
- adb shell pm命令初识, 禁止应用开机自启动命令
- 微软官方博客揭秘Kinect工作原理
- Android MimeType的用途以及所有类型
- sgu125
- PHP-FPM
- linux jdk的安装
- PowerDesigner导出表结构到word里
- Java线程(六):线程池
- 数据库锁的理解