Shizuku: how Android apps use system APIs with ADB or root rights
Shizuku is a project from RikkaApps that lets ordinary Android apps call system APIs with the higher privileges of ADB[1] or root[2]. The README says the common alternative, running commands in the su shell, is extremely slow, depends on parsing text, and is limited to the commands available.
Shizuku instead starts a Shizuku server first, using root or ADB. When an app starts, it receives a binder[3] to that server, and the server passes the app's requests to the system server and returns the results. The README notes that Binder lets the system see the caller's uid and pid, so each request is checked against the app's permissions. For the app, using Shizuku is almost identical to calling system APIs directly.
The README lists several limits. ADB permissions differ across Android versions, hidden APIs are restricted for normal apps from Android 9, and Android 8.0 needs a workaround to detect app starts. The project is licensed under Apache 2.0, with extra rules that forbid using its launcher icon, using the name "Shizuku" as an app name, and using certain application IDs and permission names.
Sources
-
GitHub Trending
RikkaApps/Shizuku


