~/talk

Why can't my app open that file? A deep dive into the Android app sandbox

Talkat Droidcon London 2023 · 2023-10-26..10-27· [android, security]
slides:none on file

Explains why apps get FileNotFound or SecurityException by showing Android’s sandbox is Linux DAC plus SE Linux MAC: every app gets an app UID per package (10,000–99,999 range) and isolated /data/user directories, Android users map to Linux UIDs via user100,000+appID, and SE Linux uses type enforcement* labels. Demonstrations use dumpsys package, ps -n, ls -l/ls -z and /proc to show a file-demo app (UID 10089). Platform keys, system/privileged/persistent flags let OEMs bypass restrictions; third‑party apps cannot.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:30What is the Android sandbox
  3. 5:45Linux process isolation basics
  4. 9:18File isolation with DAC
  5. 12:53Android app UIDs explained
  6. 16:32Practical file access demo
  7. 20:24Supplementary group IDs
  8. 22:08Android multi-user system
  9. 27:09SELinux mandatory access control
  10. 33:20Breaking sandbox restrictions
  11. 36:08Q&A and meetup plug
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.