1. 查看app的versionName
adb shell dumpsys package com.xxx.xxx | findstr versionName
adb shell
dumpsys package com.xxx.xxx | grep version
2. 把apk push进system/app目录下
adb shell
su
mount -o rw,remount/system
打开另外一个cmd
adb push "apk绝对路径" system/app
adb reboot
3. adb push的时候提示"Read-only file system"
先尝试以下命令:
adb root
adb remount
不行,就先执行一下:
adb disable-verity
adb reboot
4. 查看设备列表
adb devices
5. 安装apk
adb install -r xxx.apk
6. 查看所有带xxx字眼的包名
adb shell pm list package -e "xxx"
7. 若出现“more than one device and emulator”
1). adb devices
List of devices attached
aaaaaaa device
bbbbbbb device
2)使用adb时后跟 -s