~/talk

Breaking the Android ClassLoader

Talkat DevFest Ukraine 2018 · 2018-10-12..10-13· [android, security]
github:hzsweers
slides:none on file

A reflective exploit replaces the app's ClassLoader by setting the LoadedApk/packageInfo mClassLoader and installs a custom PathClassLoader called Black Mirror that logs and times loads, intercepts or short‑circuits class requests, and even loads packaged DEX from assets or other apps' APKs. A quick grep shows 664 usages of ClassLoader sites to consider. Prototype works on many devices (except some Samsung models) but breaks when targeting Android P / SDK 28 due to new private API restrictions.

AI-written summary · about

  1. 0:00Introduction
  2. 0:20Dont do this
  3. 1:05ClassLoader
  4. 2:32What happens at runtime
  5. 3:50What is Android ClassLoader
  6. 6:48What is the project about
  7. 7:41Where is classloader used
  8. 8:09Path classloader
  9. 14:09Black mirror class
  10. 16:18Init provider
  11. 17:59Time interceptor demo
  12. 20:50Using proxies
  13. 21:30Returning fake classes
  14. 22:26Package in
  15. 23:26Assets Helper
  16. 25:21Neighbor API
  17. 26:43BillConfig
  18. 28:27Play Services
~/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.