Magisk/native/jni/utils
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
..
include Remove unused code 2020-05-18 05:45:08 -07:00
Android.mk Rename file 2020-04-18 04:10:19 -07:00
cpio.cpp Small native code reorganization 2020-03-09 01:50:30 -07:00
files.cpp Fix overlay.d on SAR again 2020-05-07 02:30:43 -07:00
files.hpp Fix SAR support for overlay.d 2020-04-25 23:19:36 -07:00
logging.cpp Move Android logging out of libutils 2020-05-10 00:48:41 -07:00
misc.cpp More complete support for fstab in dt 2020-05-03 22:49:54 -07:00
misc.hpp More complete support for fstab in dt 2020-05-03 22:49:54 -07:00
missing.cpp Small native code reorganization 2020-03-09 01:50:30 -07:00
missing.hpp Update files.cpp in libutils 2020-04-02 02:17:45 -07:00
new.cpp Bump to C++17 2019-01-20 00:07:58 -05:00
selinux.cpp Remove dependency on magisk.hpp in libutils 2020-04-11 04:40:40 -07:00
stream.cpp Small native code reorganization 2020-03-09 01:50:30 -07:00
xwrap.cpp Detect volume down key combo for safe mode 2020-05-19 04:57:47 -07:00
xwrap.hpp Detect volume down key combo for safe mode 2020-05-19 04:57:47 -07:00