• topjohnwu's avatar
    Boot to recovery if volume up key is held · 71a91ac7
    topjohnwu authored
    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.
    71a91ac7
Name
Last commit
Last update
app Loading commit data...
chromeos Loading commit data...
docs Loading commit data...
gradle/wrapper Loading commit data...
native Loading commit data...
net Loading commit data...
scripts Loading commit data...
shared Loading commit data...
signing Loading commit data...
snet Loading commit data...
stub 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...