android adb shell am pm
来源:互联网 发布:淘宝投诉不成立 编辑:程序博客网 时间:2024/05/09 03:45
adb shell pm list packages //列出说要安装的packages
pm list packages: prints all packages, optionally only
those whose package name contains the text in FILTER. Options:
-f: see their associated file.-d: filter to only show disbled packages.-e: filter to only show enabled packages.-s: filter to only show system packages.-3: filter to only show third party packages.-i: see the installer for the packages.-u: also include uninstalled packages.
adb shell pm list packages -f //列出安装的packages 并显示出apk包所在的位置
eg:package:/system/priv-app/FMRadio/FMRadio.apk=com.android.fmradio
eg: adb shell pm list packages -f “qiku”
adb shell pm list packages -d //列出被停用的应用
eg:C:\Users\Administrator>adb shell pm list packages -d
package:com.qiku.android.sos
adb shell pm list packages -e //列出启用的应用
adb shell pm list packages -3 //列出安装的第三方应用,可以结合-3 -f查看具体apk的路径
adb shell pm list packages -i //列出应用及包,并显示他的安装来源,null表示系统。
eg:package:com.tencent.mobileqq installer=com.tencent.mobileqq
adb shell pm list packages -u //列出为安装包应用信息
pm list permission-groups: prints all known permission groups.
pm list permissions: prints all known permissions, optionally only
those in GROUP. Options:
-g: organize by group.-f: print all information.-s: short summary.-d: only list dangerous permissions.-u: list only the permissions users will see.
adb shell pm list permission-groups //列出已知的权限组
shell@sp9832a_3h10_volte:/ $ pm list permission-groups
permission group:com.android.qiku.permission-group.CONTACTSpermission group:android.permission-group.CONTACTSpermission group:android.permission-group.PHONEpermission group:com.android.qiku.permission-group.CALENDARpermission group:android.permission-group.CALENDARpermission group:android.permission-group.CAMERApermission group:android.permission-group.SENSORSpermission group:android.permission-group.LOCATIONpermission group:android.permission-group.STORAGEpermission group:android.permission-group.MICROPHONEpermission group:android.permission-group.SMS
pm list features: prints all features of the system.
eg:
C:\Users\Administrator>adb shell pm list features
feature:reqGlEsVersion=0x20000
feature:android.hardware.audio.output
feature:android.hardware.bluetooth
feature:android.hardware.bluetooth_le
feature:android.hardware.camera
feature:android.hardware.camera.any
feature:android.hardware.camera.autofocus
feature:android.hardware.camera.flash
feature:android.hardware.camera.front
feature:android.hardware.faketouch
feature:android.hardware.location
feature:android.hardware.location.gps
feature:android.hardware.location.network
feature:android.hardware.microphone
pm list users:
eg:
C:\Users\Administrator>adb shell pm list users
Users:
UserInfo{0:机主:13} running
pm path: print the path to the .apk of the given PACKAGE.//列出指定包名的apk的路径 感觉和pm list packages -f “pkgname”差不多
eg:
C:\Users\Administrator>adb shell pm path com.qiku.music
package:/system/priv-app/QK_Music/QK_Music.apk
pm dump: print system state associated with the given PACKAGE //dump 指定应用的信息 包括版本号,安装时间,更新时间,权限等等。
eg:C:\Users\Administrator>adb shell pm dump com.qiku.music >d:\music.log
pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH //安装指定目录的apk
eg:
pm install /data/3dijoy_fane.apk
pm get-install-location 返回当前默认安装位置
返回值:
0 auto
1 内部存储
2 外部存储
pm set-install-location 0|1|2 修改默认安装位置
pm clear “pkgname”//清除指定应用的数据,可以用于fota升级后,清空数据结合Runningtime
- android adb shell am pm
- Android adb shell am/pm使用
- adb shell am/pm命令
- adb shell am broadcast 手动发送广播及adb shell am/pm其他命令
- Android adb shell am学习
- android adb shell am常用命令
- adb shell am/pm 开启activity 显示package info
- adb、adb shell am、adb shell pm命令的详细使用说明
- adb之am、pm命令
- adb:) adb shell am
- Android adb shell am 命令介绍
- android单元测试adb shell am instrument -w
- android am pm命令
- android am/pm帮助
- android am pm命令
- android am pm命令
- ---------------android am pm命令
- Android: am, pm, wm
- JavaScript ES6中const、let与var的对比详解
- 前端之构建工具-gulp
- Discuz X2二次开发之数据库操作 DB类
- 抽象类和接口的异同、区别
- springmvc配置双数据源访问其中一个数据源报错?
- android adb shell am pm
- spring-boot--使用thymeleaf模板
- TomCat原理
- TextView属性大全
- JAVA_解决IE浏览器文件上传时返回结果变成下载
- FTP文件上传/下载失败
- 各大网站CSS代码初始化集合
- 第十二篇 Android 系统电话管理机制与架构
- 我对Java中HashMap以及treeMap的理解