每次找来找去太麻烦,再次记录一下
- 获取当前页面的Activity
adb shell "dumpsys window | grep mCurrentFocus"
- 启动某个Activity
adb shell am start -n com.xxx.xxx/.MainActivity
- 获取某个包的安装权限
adb shell "dumpsys package xxx | grep 'permission'" > 1.txt
- 通过包名找apk安装路径
adb shell "pm path com.xxx.xxx"