Absolom
Absolom

Reputation: 1389

Android java app installation under the hood

I am trying to understand what exactly is going on when you install an application (APK) on an Android device. I guess that files are are extracted from the package and copied somewhere on the device.

This is related to another question where I suspect that some data was not erased correctly during the uninstallation of a debug app and I am trying to find what that might be.

Upvotes: 4

Views: 343

Answers (1)

darken
darken

Reputation: 816

There will be files/dirs created in various locations, not necessary in all possible locations for every app though, it depends on how the app is configured.

This list is not necessarily complete.

Files/dirs:

  • /data/data
  • /data/app
  • /data/app-asec
  • /data/app-lib
  • /data/dalvik-cache
  • /data/local/tmp
  • /mnt/asec
  • /mnt/obb
  • /mnt/sdcard/Android/obb
  • /mnt/sdcard/Android/data

Your app will also get an entry in these files:

  • /data/system/packages.list
  • /data/system/packages.xml
  • /data/system/appops.xml

Upvotes: 2

Related Questions