Magisk/native/jni/core
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
..
applet_stub.cpp Small native code reorganization 2020-03-09 01:50:30 -07:00
applets.cpp Small native code reorganization 2020-03-09 01:50:30 -07:00
bootstages.cpp Detect volume down key combo for safe mode 2020-05-19 04:57:47 -07:00
daemon.cpp Use daemon state to determine late prop hiding 2020-05-18 05:21:47 -07:00
db.cpp Android 11 support 🎉 2020-04-19 02:47:22 -07:00
magisk.cpp Cleanup our tracks 2020-04-19 04:57:18 -07:00
module.cpp Don't expose module_list 2020-05-18 05:36:02 -07:00
restorecon.cpp Cleanup our tracks 2020-04-19 04:57:18 -07:00
scripting.cpp Don't expose module_list 2020-05-18 05:36:02 -07:00
socket.cpp Preparation for dynamic tmpfs path 2020-04-12 05:34:56 -07:00