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 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

Common causes for battery drainage in Android Phones

Samsung explains the reason behind Galaxy Note7 explosions

Compass calibration in Android Devices

Important Facts about Android device updates

Sony introduces Xperia XZ and Xperia X Compact at IFA 2016

Best Practices for transferring images to Android phone

Apple confirms September 7 as the event for the next iPhone

Comparison of mobile phone camera with DSLR camera

Performance comparison of internal and external memory in Android

How to Optimize Slow and Sluggish Dialer Application in Android

Security of Wifi Hotspot in Android

How Iris Scanner works in Samsung Galaxy Note 7

Samsung Galaxy Note7 launched with exceptional features

New mobile phones of the week

Important facts about Application Permissions in Android

SonyMobilePhones.com © Copyright 2016, All Rights Reserved.     Sonymobilephones.com is an independent website and has not been authorized, sponsored, or otherwise approved by Sony.