Android App Flow & Directory Structure
📍Application Journey
Code (Java/Kotlin + libraries + resources) + compile ⇒ DEX
DEX + build ⇒ APK
APK + Signed ⇒ signed APK
signed APK + Google Play ⇒ installed on the user device.
📍Important directories
The directories listed below are the most important in an Android device and are worth being aware of.
/data/data/
Contains all the applications that the user installs.
Contains private data for each installed application.
Inspect for sensitive information like credentials, tokens, and configuration files.
/data/user/0/
Contains data that only the app can access.
Focus on subdirectories such as:
shared_prefs/
: XML files storing SharedPreferences, which may contain unencrypted sensitive data.databases/
: SQLite databases that might store user information or application data.cache/
: Temporary files that could expose sensitive information.
/data/app/
Stores APK files of installed applications.
Useful for static analysis and reverse engineering.
/system/app/
and/system/priv-app/
Contain pre-installed system applications.
Assess for potential vulnerabilities in system apps.
/sdcard/
or/storage/emulated/0/
Represents external storage accessible by users and apps.
Contains a symbolic link to the directories DCIM, Downloads, Music, Pictures, etc.
Check for exposed sensitive files, backups, or logs.
/data/misc/wifi/
Stores Wi-Fi configurations, including saved networks and passwords.
Analyze for potential leakage of network credentials.
/etc/
Contains system-wide configuration files.
Review for misconfigurations or exposed credentials.
/proc/
Provides runtime system information.
Useful for monitoring processes and system behavior during dynamic analysis.
/dev/
Contains device nodes.
Investigate for unauthorized access to device interfaces.
/data/local/tmp/
A world-writable directory often used for temporary storage.
Can be exploited to drop and execute malicious files.
/data/misc/user/0/cacerts-added
User certificate store. It contains certificates added by the user.
/etc/security/cacerts/
System certificate store. Permission to non-root users is not permitted.
Last updated