Magisk/native
topjohnwu 71a91ac7a7 Boot to recovery if volume up key is held
Forseeing the future that more and more A only system-as-root devices
would have similar bootloader behavior as the latest Samsung devices
(that is, no ramdisk will be loaded into memory when booting from
the boot partition), a solution/workaround has to be made when Magisk
is installed to the recovery partition, making custom recoveries
unable to co-exist with Magisk.

This commit allows magiskinit to read input device events from the
kernel to detect when a user holds volume key up to toggle whether
system-as-root mode is enabled. When system-as-root mode is disabled,
magiskinit will boot with ramdisk instead of cloning rootfs from system,
which in this case will boot to the recovery.
2019-04-01 03:01:05 -04:00
..
jni Boot to recovery if volume up key is held 2019-04-01 03:01:05 -04:00
src/main Full project restructuring 2019-01-30 03:10:12 -05:00
.gitignore Support Android Q new init setup 2019-03-03 06:35:25 -05:00
build.gradle Add entrypoint to build test 2019-04-01 02:46:09 -04:00