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

HTC U11 life Camera Review

LG V30 Camera Review

GPU in Smartphones

Biometric authentication in smartphones

Important Features of Android Oreo

Dual Cameras in Smartphones

Optimization of Android Phone

LG V20 at a glance

Important Features of Huawei Honor 8

Facts about Android data stored on external SD Card

Advantages and disadvantages of limiting background processes in Android

Oppo F1s launched with 16MP selfie camera

First official Galaxy Note7 advertisement confirms some specifications

Risk of installing CyanogenMod on unsupported phones

Difference between Opera Mini and Opera mobile Browsers

Best Android browsers of 2016

Sony Xperia X Performance at a glance

How Google Maps estimate your location without GPS

Why Android have AntiVirus apps while they are few for iOS

iPhone 7 could be waterproof and can feature touch sensitive home button

Key features of iPhone SE

Can you upgrade the RAM of an Android device

How WhatsApp send audio files or video clips instantly

Best Practices for Mobile Phone Battery

How to erase the data of Broken Screen Android Phone

Location of google play downloaded apps in your mobile phone

Weather Widget App Tips and Tricks

How to configure the Email app on an Android device

Redmi Note Prime with 5.5-inch display and 3100mAh battery launched by Xiaomi

LeTV creates new record by selling 1 million smartphones in November

Waoweo.com © Copyright 2018, All Rights Reserved.