Android中adb命令查看和获取base.apk

邓焱
2023-12-01

1. 查看包名

adb shell pm list package

输入命令 adb shell pm list package    //查看报名列表

adb shell pm list package <包名关键字> //可直接跟报名关键字,直接搜索

hulk@hulk-PC:~/logs/jingwu$ adb shell pm list package trust
package:com.huawei.trustcircle
package:com.huawei.trustagent
package:com.huawei.trustspace
package:com.hulk.emm.trustspace

2. 查安装包路径

adb shell pm path <packageName>

输入以上命令直接显示base.apk安装路径,例如
hulk@hulk-PC:~/logs/jingwu$ adb shell pm path com.hulk.emm.trustspace
package:/data/app/com.hulk.emm.trustspace-vu2lzWIfUXtytGZVijwFmA==/base.apk
hulk@hulk-PC:~/logs/jingwu$ 

3. 拉出base.apk

 adb pull <apkpath>

hulk@hulk-PC:~/logs/jingwu$ adb pull /data/app/com.hulk.emm.trustspace-vu2lzWIfUXtytGZVijwFmA==/base.apk
/data/app/com.hulk.emm.trustspace-vu2lzWIfUXtytGZVijwFmA==/base.apk: 1 file pulled, 0 skipped. 18.2 MB/s (88998862 bytes in 4.668s)
hulk@hulk-PC:~/logs/jingwu$  

base.apk 就拉出来了,可直接在其他设备安装.

 类似资料: