Hacker News new | ask | show | jobs
by charcircuit 4 days ago
adb connecting a device to itself is just bad design and a hack. Either the capabilities should just be granted directly to the app or it should all be blocked.
1 comments

Same can be said about loopback device in general. Why do you need to use networking when you are literally on the same device and can use binder/dbus and friends with native apps?

Shizuku uses Binder AFAICS[^1]. Looking deeper it seems that Shizuku does not connect to the device itself per se, but rather it has a privileged server launched manually through adb. Never used Shizuku, so can't say for sure.

[1]: https://github.com/rikkaapps/shizuku#how-does-shizuku-work

Shizuku essentially implements an API that your OS creator should have implemented via using adb access to have more privileges than a regular app could have access to. If your OS creator implemented these APIs they could properly implement them without this hack or requiring adb to be used.