Sunday, July 22, 2012

How to extract APK apps from Android


Do you enjoy running Android-x86 on computer like I do? The apps is what it makes Android Operating System fun and interesting to use. We can either install new apps via Google Play Store/Android Market or Android Debug Bridge (adb) locally with Ethernet network.

So how do we extract the APK apps to computer after installed from Play Store? Or, even the default system APK apps? If you're using Android device, you can use adb or root explorer to extract. If you're using Android in VirtualBox, we will use adb tool only to pull the original APK file from Android to computer. Before we moving further to the adb tool, first thing you should know is there are 2 categories of apps storing inside the Android system. One is system applications and another one is user applications. All the apps install from Play Store are considered as user applications. Now here is how to extract APK apps:

You'll need:

Let's begin:
  1. Setup Android-x86 in VirtualBox and starts it.
  2. Extract adb tool archive.
  3. Press and hold shift key + right click on the adb tool folder, click "Open command window here".
  4. Android Debug Bridge (adb) - Windows
  5. Type adb connect localhost in the command window.
  6. adb connect localhost
  7. adb is connected with Android. We need to know the Android application's actual filename so that we can extract out the correct APK file. So we enter shell mode to explore around the Android system to check the actual APK filename. The system applications are located in /system/app and user applications are in /data/app
  8. Type adb shell to enter shell mode. If you get "error: more than one device or emulator" message, read HERE how to overcome it.
  9. Type su to root.
  10. Enter cd /system/app to look for system applications. Or, enter cd /data/app to locate user applications.
  11. Enter ls to view the list of files.
  12. After you know the APK filename, type exit to exit root.
  13. Type exit again to exit shell.
  14. Now you can execute the command to extract APK file with this command:
  15. adb pull /example.apk d:\example.apk
    The first directory location is which file to copy out and the second directory is the location where the file to paste in. For example, I want to extract Angry Birds Space app from my Android device to computer's D:\Downloads. So, the command line will be like this:
    adb pull /data/app/com.rovio.angrybirdsspace.ads-1.apk d:\downloads\angrybirdsspace.apk

    adb extract apk app
It's extremely useful to copy any particular app from Android to our computer, especially for the exclusive apps like S Voice for Samsung Galaxy S3. Then we can install and use the exclusive apps on other Android devices with the APK app file we extracted.

2 comments:

  1. u made very complicated..just install one ES Filemanager and then go to mnt root folder then to asec folder then u will find apps which u hv installed from play store and u can copy and make ur own collection of apps

    ReplyDelete
  2. Please continue this great work and I look forward to more of your awesome blog posts. 9apps download fast

    ReplyDelete