Android 18: ADB takes out the APK installed on the phone

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.