APK extraction
Android tips
file management
tech guide
app backup

How to get the APK file of an installed app from an Android device

Codemia Knowledge Hub ·

The easiest way on a non-rooted phone is an APK extractor app, which saves the APK of an installed app to an accessible folder. From a computer, adb shell pm list packages -f shows each package's APK path and adb pull copies it. On a rooted device you can copy APKs directly from /data/app/.

An APK (Android Package Kit) is the file format Android uses to distribute and install apps. It is essentially a zip file containing the app's code (.dex files), resources (images and strings), assets, certificates, and the manifest. People extract APKs to back up an app, share it, or examine how it is built.

Without root

File explorer apps

Some third-party file managers can reach the directories where APKs live:

  1. Install the app: get a file manager from the Google Play Store, such as ES File Explorer or File Manager+.
  2. Enable Root Explorer (if supported): if the app offers Root Explorer, enable it to access system files.
  3. Go to the app directory: APKs are generally stored in /data/app/, but non-rooted devices often block access there. Use the app's Backup function if it has one, which copies APKs somewhere accessible.
  4. Find and copy the APK: pick the application and use 'Backup' if supported, or copy the visible APK file.

APK extractor apps

Dedicated extractors make this simpler:

  1. Install an extractor from the Google Play Store, like APK Extractor or ML Manager.
  2. Open it and grant the permissions it asks for, such as storage access.
  3. Pick an app from the list of installed applications.
  4. Extract the APK by tapping the app. The file usually lands in the Downloads or Extractor folder.

adb pull from a computer

Android Debug Bridge (ADB) needs a computer:

  1. Install ADB on your computer.
  2. Enable developer mode: on the phone, go to Settings > About Phone and tap Build Number 7 times to enable Developer Options. Then enable USB Debugging.
  3. Connect the device with a USB cable.
  4. Find the APK path:
    • Run adb shell pm list packages -f to list all package paths.
    • Find the package you want and note its path.
  5. Pull the APK with adb pull /path/to/your/desired.apk to copy it to your computer.

With root

Root gives unrestricted access to the file system, so you can copy the file directly:

  1. Install a root file explorer such as Root Explorer from the Google Play Store.
  2. Open /data/app/, where APK files are stored.
  3. Copy the APK to another folder on the device or to your PC.
  • Legal and ethical issues: distributing extracted APKs may infringe the developer's copyright. Make sure any distribution or modification complies with the license terms.
  • Compatibility and security: an extracted APK may not work on another device because of differences in hardware, software, or Android API level. Verify the origin and integrity of APK files to avoid malware.

Methods compared

MethodDescriptionRoot RequiredMain Tools
File ExplorerUse a third-party app to back up/extract from accessible directoriesNoES File Explorer
Extractor AppsUse dedicated apps to extract installed APKsNoAPK Extractor, ML Manager
ADB MethodUse ADB commands to pull APKs from the deviceNoADB Tools
Root ExplorerDirectly access system directories for APK extractionYesRoot Explorer

Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems

A short course that equips you with the skills to approach system design interviews methodically.

Start the free course
Basis Lab
No course covers this one yet

Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.

Build my course
Data Structures & Algorithms practice on Codemia

Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.

Practice algorithms