adb pm命令
来源:互联网 发布:邮件客户端 知乎 编辑:程序博客网 时间:2024/06/10 12:27
原文地址 http://write.blog.csdn.net/postedit
pm 命令是Android里面packageManage的命令行,用于安装包的操作。
使用pm命令要在adb shell中进行。
一般在命令行下使用pm命令进行APK软件包的安装及卸载操作。
1、安装APK:
例如,在串口终端下输入:
pm install -r /data/card/ApicalRadio.apk
就可以重新安装ApicalRadio.apk到android系统上,默认是安装到系统的data/app/目录下。
-r 参数表示重新安装,如果原来已经安装了,会覆盖原来的安装包。
2、卸载
pm uninstall -k com.apical.apicalradio
其中,com.apical.apicalradio 是你的APK包的包名。
3、除了pm命令,使用cp 或者 rm 都可以达到安装的效果。如果是在终端模式操作,个人感觉使用cp和 rm 更方便。
安装:cp /data/card/ApicalRadio.apk /data/app
卸载:rm -f /data/app/ApicalRadio.apk
这两个命令其实就是Linux下的删除和复制命令。
----------------------
pm命令的具体用法如下:
usage: pm [list|path|install|uninstall]
The list packages command prints all packages. Use
the -f option to see their associated file.
The list permission-groups command prints all known
permission groups.
The list permissions command prints all known
permissions, optionally only those in GROUP. Use
the -g option to organize by group. Use
the -f option to print all information. Use
the -s option for a short summary. Use
the -d option to only list dangerous permissions. Use
the -u option to list only the permissions users will see.
The list instrumentation command prints all instrumentations,
or only those that target a specified package. Use the -f option
to see their associated file.
The path command prints the path to the .apk of a package.
The install command installs a package to the system. Use
the -l option to install the package with FORWARD_LOCK. Use
the -r option to reinstall an exisiting app, keeping its data.
The uninstall command removes a package from the system. Use
the -k option to keep the data and cache directories around
after the package removal.
0 0
- adb、pm命令、root
- adb pm命令
- android adb pm命令
- adb shell 中的pm命令
- adb shell am/pm命令
- adb之am、pm命令
- 每天一个adb命令:pm 命令详解
- adb shell命令整理之pm
- adb命令之pm hide 与 disable
- adb命令 pm list packages(查看安装程序包名)
- adb、adb shell am、adb shell pm命令的详细使用说明
- pm 命令
- pm命令
- adb的adb shell pm list packages命令用来查看当前设备app应用包
- adb shell am broadcast 手动发送广播及adb shell am/pm其他命令
- adb shell pm
- adb shell pm
- adb shell pm详解
- 使用POSIT算法估计物体角度
- C++中cin.get和cin.getline的区别
- pdm表name转备注(备忘)
- ZOJ 3819 Average Score (2014年牡丹江赛区现场赛A题)
- HDOJ 1003 Max Sum【MSS】
- adb pm命令
- Android实现QQ第三方登录
- iOS8新特性
- tr的简单使用
- 1056. Mice and Rice (25)
- Java Socket编程
- Deep Learning 学习笔记(三):神经网络反向传播算法推导
- Heterogeneous Parallel Programming 随笔二
- OC 面向对象—封装