~/talk

Learning How Android Controls Hardware via GPIO

TalkinJapaneseat DroidKaigi 2023 · 2023-09-14..09-16· [embedded-and-hardware, android]
name:Takasshi
links:none on file
slides:none on file

Shows how to control hardware GPIO from Android to implement a watchdog reset on a TinkerBoard2S by toggling pins with adb shell (export, direction=out, value=1) to generate 3V/0V. Describes a prototype that runs a root app, then a safer architecture: move GPIO operations into a service packaged as a privileged app (sharedUserId=android.uid.system) signed with platform test keys, create keystore with openssl, adjust ownership/SELinux or init scripts for persistence, and eventually replace direct sysfs file writes with a proper kernel/HAL layer.

AI-written summary · about

  1. 0:00Introduction
  2. 2:11GPIO experiments system files
  3. 4:59Privilege issues least privilege
  4. 7:51Privileged apps platform signing
  5. 12:26Service class separation privileged apps
  6. 17:29System app permission gaps fixes
  7. 19:54Security hardening GPIO architecture
  8. 21:45Android hardware control layer
  9. 23:32Summary
~/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.