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.

7 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
  3. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. AC Market

    ReplyDelete
  4. I really impressed after read this because of some quality work and informative thoughts . I just wanna say thanks for the writer and wish you all the best for coming!. Download Cydia

    ReplyDelete
  5. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. iFile IPA

    ReplyDelete
  6. This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses. Download iOS 11.3

    ReplyDelete