Data storage location of applications in Android

20 Sep 2016

Data storage location of applications in Android

Android uses multiple file system and its directory structure also differ for different manufacturers. So, the data location may vary for mobile phones. Each installed app has its own data directory assigned in Android, using the app's package name. There might be a similar directory on the external SD card, generally used by apps with larger amounts of data.
Applications in Android have a default data directory, which is /data/data/<package_name>. By default, the apps databases, settings, and all other data are stored in this folder. If an application have large amount of data to be stored, or if the device is low on internal memory, then it create and store data on SDCard (Android/data/<package_name>).

However, all applications can store data on the SDCard. They can use directory names according to requirement, and it accumulates space in SDCard, as data not always get deleted after un-installation of applications.
Following are the contents of the directory:

databases/: This directory stores app's databases
lib/: It has libraries and helpers for the app
files/: It is directory for other related files
shared_prefs/: Preferences and settings are stored in this directory.
cache/: Application cache is stored in cache directory.

System apps are stored in /system/app a privileged apps in /system/priv-app.
Normal and downloaded apps are stored in internal memory in /data/app.
Apps stored on external memory are contained in encrypted folder in /mnt/sdcard/.android_secure. As at runtime Android needs them to be decrypted, it will decrypt them and store a decrypted copy on tmpfs in /mnt/asec.

Recent Posts

Important Facts about Application data in Android

Important Facts about battery in Android

Important Facts about external SD card in Android

Resolving Errors in Android Mobile Phones

Dual Cameras in Mobile Phones

Sony Xperia XZ1 Camera Review

Google Pixel 2 Camera Review

Samsung Galaxy Note 8 Camera Review

iPhone X Camera Features

Pros and Cons of Android

Sensors in Android smartphones

Augmented Reality in Smartphone Applications

Multi core processors in Smartphones

Important Features of iPhone 8 Plus

Important features of Corning Gorilla Glass

Important difference between various country specific versions of mobile phones

Important Facts about memory in Android

Important Features of Asus Zenfone 3

Snapchat Spectacles can record real life activities

Android Application can recognize previous installations on a mobile device

Applications usage tracking in Android

Important Features of Google Assistant

Important facts about Quick Charging

Difference between Clearing Application from Recent Apps list and Force Stop in Android

Important Features of iPhone 7

Importance of data system folder in Android Phone

Comparison of LG V20 and LG V10 Smartphones

Important features of Huawei Nova Plus

Resolving Gallery application issue due to less memory space in Android

Important Features of Sony Xperia XZ © Copyright 2017, All Rights Reserved. is an independent website and has not been authorized, sponsored, or otherwise approved by Sony.