1、adb shell pm list package
Print out all the APP package names installed on the phone
2、adb shell pm path com.xxx.xxx
Find out where the apk of the installed package name application is located
3、adb pull path_apk out_apk
path_apk is the directory of the apk on the mobile phone, that is, the directory of the apk in 2 on the mobile phone, and out_apk is the target path for exporting the apk.
4. Use the adb command to view the version number versionCode and versionName of the installed application on the Android phone
adb shell dumpsys package [PackageName] | findstr versionCode
adb shell dumpsys package [PackageName] | findstr versionName