Magisk/native/jni/init
topjohnwu e02e46d0fc Detect volume down key combo for safe mode
It is possible that a module is breaking the device so bad that zygote
cannot even be started. In this case, system_server cannot start and
detect the safe mode key combo, set the persist property, and reboot.

Also on old Android versions, the system directly goes to safe mode
after detecting a key combo without rebooting, defeating the purpose of
Magisk's safe mode protection if we only check for the persist property.

Directly adding key combo check natively in magiskd allows us to enter
Magisk safe mode before the system is even aware of it.
2020-05-19 04:57:47 -07:00
..
getinfo.cpp Detect volume down key combo for safe mode 2020-05-19 04:57:47 -07:00
init.cpp Small magiskinit cleanup 2020-04-19 04:57:18 -07:00
init.hpp Force init to load fstab from file in 2SI 2020-05-04 02:21:51 -07:00
magiskrc.inc Increase post-fs-data mode to 40 secs 2020-05-18 04:56:51 -07:00
mount.cpp Force init to load fstab from file in 2SI 2020-05-04 02:21:51 -07:00
rootdir.cpp Fix overlay.d on SAR again 2020-05-07 02:30:43 -07:00
twostage.cpp Force remove AVB for 2SI since it may bootloop some devices 2020-05-05 03:29:36 -07:00