How to get an apk file from the Android device using adb

I needed to get an apk file from my installed apps so after checking few forums I found out this steps which helped me to achieve the goal.

This may vary with the version of Android OS. The following sequence of commands is what worked for me on a non-rooted Nexus 4 device with Android 4.4.4 and also with rooted Nexus 1 with CyanogenMod 7.2.0:

1) Determine the package name of the app, e.g. "com.example.someapp". Skip this step if you already know the package name.

adb shell pm list packages

Look through the list of package names and try to find a match between the app in question and the package name. This is usually easy, but note that the package name can be completely unrelated to the app name. If you can't recognize the app from the list of package names, try finding the app in Google Play using a browser. The URL for an app in Google Play contains the package name.

2) Get the full path name of the APK file for the desired package.

adb shell pm path com.example.someapp

The output will look something like this: package:/data/app/com.example.someapp.apk

3) Pull the APK file from the Android device to the development box.

adb pull /data/app/com.example.someapp.apk


0 #1 android apk 2014-08-20 04:20
An intriguing discussion is worth comment. I do believe that you should write more
on this topic, it might not be a taboo subject but generally
people do not speak about such subjects. To the next!
Kind regards!!

Add comment

Security code

Configure debugging environment for ARM in Ubuntu ...
Configure debugging environment for ARM in Ubuntu with Eclipse

Next article is how to configure SEGGER's J-Link debugger to debug the NuttX OS from Eclipse.  Here I'm going to describe the it using The J-Link hardware debugging Eclipse plug-in. [ ... ]

Building NuttX in Eclipse (Ubuntu)
Building NuttX in Eclipse (Ubuntu)

For me personally is more convenient to build the code directly from the IDE where I'm editing it so here is an article how to configure building of NuttX from Eclipse. I'm configuring [ ... ]

Install and configure NuttX ARM build environment ...
Install and configure NuttX ARM build environment in Linux

In this manual will see how to install and configure all the tools needed to build NuttX for ARM under Linux. The toolchain is the one comming with the Ubuntu itself (at least with the [ ... ]


The program provides quick access to some statistics from the litecoin mining pool.  

Time Tracker
Time Tracker

Time Tracker is a tool to track the time that was spent for some task and how much this time costs. Features:
   - Set the complementary time
   - Set the rate per [ ... ]

Light Control
Light Control

App web site is now Visit us there. Mobile application to control Philips Hue lights. So far it is only for Android. Features:
 - Easy and fast control [ ... ]

LTC: LKjqX7NipWXyPEkt3L3AwiRuCaw7h1hXLw
BTC: 1ApxQc2j4Wz3N7ei4XwYFTh6t4CeYMzbzZ

Go to top