What exactly change that is causing the old SU binaries to fail in android 8?
I have here the source code for the SU addon for Lineage OS: https://github.com/LineageOS/android_system_extras_su
I looked through the source code and am not sure how it works. It seems to spawn a daemon process that handles all calls to root, but other than that I'm not really sure what's happening.
There's really no documentation for this source code, and I can't even find any technical write-up on how systemless rooting even works in android 8.
The main file is su.c, where it seems to provide a sort of terminal-like interface for the application requesting root. From there it looks like it goes to open a socket to a daemon process.It's not clear to me where we're even getting access to root here.
Can anyone provide a brief overview of how rooting works, or point me to somewhere that does?