• topjohnwu's avatar
    Detect volume down key combo for safe mode · e02e46d0
    topjohnwu authored
    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.
    e02e46d0
Name
Last commit
Last update
app Loading commit data...
docs Loading commit data...
gradle/wrapper Loading commit data...
native Loading commit data...
scripts Loading commit data...
shared Loading commit data...
signing Loading commit data...
stub Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
LICENSE Loading commit data...
README.MD Loading commit data...
build.gradle Loading commit data...
build.py Loading commit data...
config.prop.sample Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...