作者:手机用户2502913123 | 来源:互联网 | 2023-09-23 20:34
如何快速将安装到手机中的应用的Apk文件快速拿出来,使用下面几个ADB命令即可轻松做到。查看是否链接到手机adbdevices进入手机的shell层单一设备链接时
如何快速将安装到手机中的应用的Apk文件快速拿出来,使用下面几个ADB命令即可轻松做到。
查看是否链接到手机
adb devices
![image-20220330225045870](https://img0.php1.cn/3cdc5/6e5e/1c8/73cea06262bee6e2.png)
进入手机的shell层
adb shell
![image-20220330225557489](https://img0.php1.cn/3cdc5/6e5e/1c8/1d8da2e3b74c5e82.png)
adb -s 手机设备序列号 shell
![image-20220330225818186](https://img0.php1.cn/3cdc5/6e5e/1c8/31170b18ba373b49.png)
查看安装软件的包名
pm list packages
![image-20220330230040400](https://img0.php1.cn/3cdc5/6e5e/1c8/ec94cb08ace81d25.png)
pm list packages | grep oneplus
![image-20220330230331065](https://img0.php1.cn/3cdc5/6e5e/1c8/6f1ef8499ff37afa.png)
查看安装包的位置
pm list packages -f
![image-20220330230631200](https://img0.php1.cn/3cdc5/6e5e/1c8/5ff6eedca88d1696.png)
pm list packages -f | grep tencent
![image-20220330231047522](https://img0.php1.cn/3cdc5/6e5e/1c8/e0b809bb5db0377d.png)
将Apk拉到PC本地
exit
adb pull 上一步获取到的位置信息 PC存储位置(相对于命令行)
![image-20220330231534430](https://img0.php1.cn/3cdc5/6e5e/1c8/1e0040f4be464849.png)
PC 端文件(用户名文件下)
![image-20220330231658094](https://img0.php1.cn/3cdc5/6e5e/1c8/f4f045d739271da2.png)