~/talk

Three ways to use AI on Android: The Good, the Bad and the Ugly

Talkat AndroidMakers by droidcon 2024 · on Thursday, 2024-04-25· at 17:15· [security]
slides:none on file

A simple Android app prototype hardcodes a Gemini API key, gets the APK reverse‑engineered, the key is stolen and bills spike, proving hardcoded API keys fail. Obfuscation or Base64 and native libs only delay attackers. Moving model calls to a proxy server with Firebase App Check attestation and Firebase Functions keeps keys server‑side, enables prompt control and fallbacks, and prevents most abuse; it works but adds latency and hosting cost, so set usage limits.

AI-written summary · about

  1. 0:00AI on Android intro
  2. 3:32Demo AI reply generator
  3. 6:22Bad: hardcoded API keys
  4. 10:16Ugly: remote encryption
  5. 14:50Protecting backend with App Check
  6. 17:17Good: proxy server approach
  7. 23:38Summary of AI methods
  8. 28:00Security best practices
  9. 30:48Final thoughts
~/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.