Scene:
Friends See your Android phone game or app is fun, also want to install a program, but limited to network conditions can not be downloaded from the Internet. The easiest way to do this is to simply pull the apk out of your phone and install it.
PM command
The first step is to find the package name of the program
Use the ADB shell pm command to list all installed application packages:
$ adb shell PM List PackagesPackage :AndroidPackage :cn. WPS. MofficePackage :com. Android. BackupconfirmPackage :com. Android. BluetoothPackage :com. Android. BrowserPackage :com. Android. Calculator2Package :com. Android. CameraPackage :com. Android. CertinstallerPackage :com. Android. Contacts
The second step, find the location of the APK
com.tence01.mmpackage:/data/app/com.tence01.mm-1.apk
Step three, pull out.
$ adb pull /data/app/com.tence01.mm-1.apk ~/apks2407 KB/s (25567735in10.370s)
Root's phone will do better.
$ adb shell[email protected]:/$ su[email protected] :/ # CD Data/app [Email protected]:/data/app # ls com .android .update .dmp -2. Apkcom .baidu .superservice -1. Apkcom .tence 01 .mm -1. Apkcom .tencent .mm -1. APK
Or search directly for the apk you want:
shell@android# find -name *.apk./udisk/我的下载/download/我的应用/aqgj_1365562277812.apk
Android 18: ADB takes out the APK installed on the phone