Chris Renshaw 6663fd3526
Support custom legacy Sony devices with init.real setup
Custom ROM bring-ups of legacy Sony devices contain the following:
/init (symlink to /bin/init_sony)
/init.real (the "real" Android init)
/bin/init_sony (this was /sbin/init_sony on Android <11)

Kernel loads the ramdisk and starts /init -> /bin/init_sony
/bin/init_sony does low-level device setup (see: https://github.com/LineageOS/android_device_sony_common/blob/lineage-18.1/init/init_main.cpp)
/bin/init_sony unlinks /init and renames /init.real to /init
/bin/init_sony starts /init

Since init_sony needs to run first magiskinit needs to replace init.real instead, so add workarounds based on detection of init.real to boot patcher and uninstaller

Thanks @115ek and @bleckdeth

Fixes #3636

Co-authored-by: topjohnwu <topjohnwu@gmail.com>
2021-10-30 18:59:20 -07:00
..
2021-08-29 03:14:23 -07:00
2021-08-29 03:14:23 -07:00
2021-08-28 17:16:20 -07:00
2020-03-09 01:50:30 -07:00
2021-08-13 04:53:11 -07:00
2021-08-13 04:53:11 -07:00
2021-03-02 20:37:37 -08:00
2021-08-28 17:16:20 -07:00
2021-08-28 17:16:20 -07:00
2021-02-28 14:37:12 -08:00