~/talk

Magic of ADB

Talkat droidcon SF 2019 · 2019-11-18..11-19· [android]
links:none on file
slides:none on file

ADB runs as an init-started native daemon communicating with an ADB server on localhost:5037 and uses JDWP threads to expose debugable app processes so Android Studio can track JDWP and offer apply changes; starting with the debug flag boots the app into activity thread before any app code runs, attaching alone does not. Emulators run ADB insecure (allowing adb root and remount rw to preinstall system APKs), real devices don’t; surprising counts: plain builds show 13 threads per app, ~165 system services on modern emulators, and tools used include toybox, dumpsys and scrcpy for screen mirroring.

AI-written summary · about

  1. 0:00Introduction to ADB
  2. 1:18How ADB installs apps
  3. 6:21Debugging with JDWP
  4. 9:54ADB vs SSH
  5. 14:30ADB at boot time
  6. 17:46ADB root and remounting
  7. 19:12Android shell and Toybox
  8. 23:07Exploring Android file system
  9. 27:30Extracting framework.jar
  10. 28:58System services and Binder
  11. 31:07Processes and Zygote
  12. 33:38Threads in Android apps
  13. 36:37Advanced debugging tools
  14. 37:42Dumpsys for system state
  15. 40:13Closing remarks and book recommendation
~/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.