Users of the Android operating system are often faced with the need to find the application installation file. This may be required to create a backup copy of an interesting app, transfer it to another device, or simply to free up memory space. However, the file system of this OS is more complex than the usual Windows, and the answer to the question of where the APK files are located is not always obvious.
It is important to immediately separate the concepts: the file that you downloaded from the Internet (installer) and the file that is already on the system after installing the application. Their location is radically different, and access to them is regulated by different levels of security. Understanding this difference is the key to successfully managing data on your smartphone or tablet.
In this article, we'll take a closer look at the Android directory structure, look at standard paths for custom downloads, and delve into system directories that are hidden from the average user. You will learn how to find the desired file with and without superuser rights, as well as what tools will help make this process as simple and safe as possible.
Custom downloads and the Download folder
The simplest scenario is that you have just downloaded the APK file through a browser or messenger and have not yet installed it. In this case, the file is in plain sight. By default, most modern smartphones save all downloaded data to a directory /sdcard/Download. This is a public storage that any file manager can access without special permissions.
However, the path may vary depending on the device manufacturer and the settings of a particular application. For example, files from Telegram are often saved to a separate folder /Android/media/org.telegram.messenger/Telegram Documents, and browsers may prompt you to select a save location manually. If you have not changed the settings, look for the file in the root of the internal memory in the folder Downloads.
Sometimes users confuse the application cache with the installation packages themselves. The cache is temporary data needed for the app to run, and the APK is the executable archive. To find the exact installer, use the built-in file search by entering the extension .apk. This is the fastest way to filter out unnecessary things.
- ๐ Standard path:
/storage/emulated/0/Download - ๐ฑ Messenger folder:
/Android/media/[application_name] - ๐ Search by extension: enter
.apkin the search bar of the file manager
System storage of installed applications
After the application is installed, the original APK file is usually deleted from the downloads folder to save space. The app itself is โunpackedโ and placed in a protected system area. On modern versions of Android (from 6.0 and higher), installed user applications are stored in a directory /data/app.
The structure of this folder has become more complex in recent versions of the OS. Now each application has its own unique subdirectory with the name of the type com.example.app-. Inside it lies a basic APK file, and optional resources (for different screens or languages) can be located in .apks or .xapkfiles, or can be divided into split packages. This is done to optimize the space occupied.
Access to the section /data is closed to regular applications and users for security reasons. Without rights Root you will not be able to go there through a standard explorer. The system uses an isolation mechanism (sandboxing) to prevent one application from damaging the data of another. Therefore, direct viewing of this folder is only possible if you have extended privileges.
If you do not have root access, use the "Backup" function in specialized application managers - they can extract the APK of installed software into an accessible folder without direct access to the system partition.
Access to system files with root access
For those who have received superuser rights (Root), the Android file system opens completely. This allows you not only to view, but also to modify system files, which carries both opportunities and risks. To navigate through system directories, you need advanced file managers, such as Root Explorer, MT Manager or Mixplorer.
When you go to the root of the file system (/), you will see many partitions. We are mainly interested in system and data. The /system/app i /system/priv-app section stores pre-installed factory applications that cannot be removed in the usual way. Changing files here can lead to unstable operation of the device or a โbootloopโ (cyclic reboot).
Be extremely careful when working in these directories. Accidental removal of a critical system component may require reflashing the device. Always make a backup before making changes. root access give you full power over the device, but also full responsibility for its performance.
โ ๏ธ Attention: Modifying files in the folder /system can disrupt the operation of the operating system and void the device's warranty. Act only if you understand the consequences of your actions.
Location of system and pre-installed applications
Pre-installed applications that come with the firmware from the manufacturer or telecom operator are stored separately from those that you downloaded from the Play Market. They are located on a partition that is mounted Read-Only in normal mode. The main paths for such apps are: /system/app and /system/priv-app.
The difference between these two folders is the level of privileges. Applications from priv-app have access to protected system APIs and can perform actions that are not available to regular apps (for example, managing calls or accessing system contacts without an explicit request). That is why deleting files from here often leads to critical errors.
In some custom firmware or on devices with a partition /product you may find additional directories such as /product/app or /vendor/app. This is done for the modular structure of modern versions of Android, where part of the system code is placed in separate sections to simplify updates. The structure may differ depending on the version Android and the manufacturer's shell.
| Application type | Storage path | Access level | Can be deleted? |
|---|---|---|---|
| User | /data/app |
Read/Write (with Root) | Yes, safe |
| System (regular) | /system/app |
Read only | With caution |
| System (privileged) | /system/priv-app |
Read only | No, risk of failure |
| Vendor | /vendor/app |
Read only | No, risk of failure |
Why are the paths different on different phones?
Smartphone manufacturers (Samsung, Xiaomi, Pixel) can change the partition structure when creating their own shell. For example, on some devices, some system applications are moved to the /product section in order to reduce the size of the main system image and speed up the receipt of security updates.
Searching for an APK without root access via ADB
If obtaining root access is impossible or undesirable, there is a legal and safe way to find out the exact path to the APK file of any installed application. To do this, use the debugging tool ADB (Android Debug Bridge), which is part of the Android SDK Platform Tools. This method works on any device with USB debugging enabled.
Connect your smartphone to your computer, open the command prompt and enter the command to get the package path. First you need to know the application package name (for example, com.android.chrome). Then the command is used pm path, which will return the local path to the file on the device.
adb shell pm path com.example.app
After executing the command, the system will display a line like package:/data/app/.... Knowing this path, you can copy the file to your computer using the command adb pull. This is an ideal way to make a backup of a specific app without having to delve into the phoneโs file system manually and without the risk of breaking something.
- ๐ฅ๏ธ Requires installed ADB driver on PC
- ๐ You must enable "USB Debugging" in the developer menu
- ๐ฆ Command extract:
adb pull /path/to/file.apk C:/backup/
โ๏ธ Preparing to work with ADB
Extracting APK through third-party utilities
For most users, working with the command line may seem too complicated. Luckily, there are many extractor apps on the Google Play Market that do the same thing in one click. apps like APK Extractor, Send Anywhere or task managers can find installed packages and save a copy of them to internal memory.
The principle of operation of such utilities is simple: they ask the system for a list of installed packages, determine their path (using the same system calls as ADB) and copy the file to an accessible directory, for example, a folder ExtractedApks. After this, you can transfer the file to a friend or save it to a cloud drive.
It is worth noting that some modern applications use the Split APKs (App Bundle) format. In this case, the extractor can save not one file .apkbut an archive .apkm or a set of several files. To install such apps using standard means, you may need a special installer, which is often included with the extractor itself.
โ ๏ธ Attention: Application interfaces and their capabilities may change with updates. If the extraction function does not work, check the application permissions - it may require access to the storage or a special operating mode.
Using extractor applications is the easiest way to get the APK file of an installed application without root access and connecting to a computer.
Frequently asked questions about the location of APK files
Can it be moved folder with APK to the SD card?
Yes, the files that you downloaded or extracted (located in the user storage /sdcard) can be freely moved to the memory card. However, system files from /data/app cannot be moved - the system will not find the application if you change its path, and it will stop launching.
Why donโt I see the Android/data folder on the new phone?
Starting with Android 11, Google has limited file managersโ access to folders Android/data and Android/obb on the internal storage. This is done to protect privacy. To see their contents, you need to give a special file manager extended access through the system folder selection window or use a PC.
Do APK files take up space after installation?
The installation file itself (which you downloaded) takes up space until you delete it. After installation, the system unpacks the contents of the package. The original APK in your downloads folder becomes unnecessary junk unless you plan to reinstall the app. You can safely delete it.
Where are application updates stored?
Updates are downloaded to the Google Play Services cache or to the system downloads folder, and then automatically integrated into the main application directory /data/app. Temporary update files are usually deleted by the system automatically after successful installation of the new version.
Regularly audit the Download folder. Old APK files of app versions that you no longer use, accumulated over the years, can take up gigabytes of valuable space.