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:
- Install the app: get a file manager from the Google Play Store, such as ES File Explorer or File Manager+.
- Enable Root Explorer (if supported): if the app offers
Root Explorer, enable it to access system files. - Go to the app directory: APKs are generally stored in
/data/app/, but non-rooted devices often block access there. Use the app'sBackupfunction if it has one, which copies APKs somewhere accessible. - 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:
- Install an extractor from the Google Play Store, like
APK ExtractororML Manager. - Open it and grant the permissions it asks for, such as storage access.
- Pick an app from the list of installed applications.
- Extract the APK by tapping the app. The file usually lands in the
DownloadsorExtractorfolder.
adb pull from a computer
Android Debug Bridge (ADB) needs a computer:
- Install ADB on your computer.
- Enable developer mode: on the phone, go to
Settings > About Phoneand tapBuild Number7 times to enable Developer Options. Then enableUSB Debugging. - Connect the device with a USB cable.
- Find the APK path:
- Run
adb shell pm list packages -fto list all package paths. - Find the package you want and note its path.
- Pull the APK with
adb pull /path/to/your/desired.apkto copy it to your computer.
With root
Root gives unrestricted access to the file system, so you can copy the file directly:
- Install a root file explorer such as Root Explorer from the Google Play Store.
- Open
/data/app/, where APK files are stored. - Copy the APK to another folder on the device or to your PC.
Legal and compatibility caveats
- 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
| Method | Description | Root Required | Main Tools |
| File Explorer | Use a third-party app to back up/extract from accessible directories | No | ES File Explorer |
| Extractor Apps | Use dedicated apps to extract installed APKs | No | APK Extractor, ML Manager |
| ADB Method | Use ADB commands to pull APKs from the device | No | ADB Tools |
| Root Explorer | Directly access system directories for APK extraction | Yes | Root Explorer |
Related reading
- How do I get an ISO 8601 date on iOS?
- How do I get current playing time and total play time in AVPlayer?
- How do I get extra data from intent on Android?
- How do I get hour and minutes from NSDate?
- How do I get the APK of an installed app without root access?
- How do I get the App version and build number using Swift?
- How do I get the count of a Swift enum?
- How do I get the current GPS location programmatically in Android?
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo 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 courseData 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.