Magisk/native/jni/core
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
..
applets.cpp Remove Zygote notifier 2019-03-08 03:35:17 -05:00
bootstages.cpp Remove simple mount mode 2019-03-31 15:10:01 -04:00
daemon.cpp Reboot to recovery when running as recovery 2019-03-30 06:49:29 -04:00
db.cpp Use our own function to parse int 2019-03-07 20:31:35 -05:00
init.cpp Boot to recovery if volume up key is held 2019-04-01 03:01:05 -04:00
magisk.cpp Remove Zygote notifier 2019-03-08 03:35:17 -05:00
magiskrc.h Add newlines before rc scripts 2019-02-18 03:30:30 -05:00
scripting.cpp Allow modules to have custom uninstaller script 2019-03-23 03:50:55 -04:00
socket.cpp Separate scripting code 2019-02-15 20:45:05 -05:00