Rescue Bootloop
About 680 wordsAbout 2 min
2026-01-31
When flashing your device, you may encounter situations where the device "bricks". In theory, if you only flash the boot partition using fastboot or install an unsuitable module causing the device to fail to start, this can be recovered through appropriate operations. This article aims to provide some emergency methods to help you recover from a "brick".
Bricked When Flashing Partition Image
If your device cannot start normally after flashing a partition image patched by FolkPatch, the following possibilities exist:
- Your device is not compatible with KernelPatch used by FolkPatch
- Your device is using an unsupported kernel version
- You used the wrong partition image for patching
- You used multiple
Rootimplementations simultaneously
Bricked After Installing Module
This is a more common situation where the module you installed does not support your device, or the module itself has bugs causing the device to fail to start.
重要
Please think twice before installing modules. Modules from unknown sources or redistributed by others may contain malicious code and cause irreversible damage to your device, i.e., "hard brick".
In this case, you may only be able to recover your device through after-sales service or third-party deep flashing.
Rescue Mechanism
FolkPatch has a built-in rescue mechanism that can help you quickly disable all modules and reboot when you have installed the wrong module causing boot failure.
Volume Key Rescue
After long-pressing the power button to light up the screen, repeatedly perform the press volume down key -- release operation at least three times. If everything goes well, FolkPatch will start safe mode and disable all modules.
相关信息
FolkPatch has a wide listening range for volume keys. Even if post-fs has been executed, if the safe mode signal is detected, FolkPatch will roll back the modifications made in the post-fs stage.
In other words, it is effective before sys.boot_completed=1.
If your device still cannot start normally after enabling safe mode, just reboot again.
REC Start Safe Mode
Some ROMs, such as MIUI/Xiaomi HyperOS, can enable safe mode in their Recovery. Reboot to Recovery and enable the ROM's built-in safe mode, which will also start FolkPatch's safe mode.
重要
All third-party apps disappeared after successfully booting?
At this point, your device should have entered Android's safe mode.
The rule of Android safe mode is: after entering safe mode, Android will disable all non-system apps. Since FolkPatch Manager does not register itself as a system app, this rule will cause FolkPatch Manager to be disabled after entering safe mode.
This phenomenon is normal, and if you haven't used any method to solidify FolkPatch as a system app, this means that both Android and FolkPatch's safe mode are working properly. You just need to reboot your device again, Android will exit safe mode, and the FolkPatch Manager will be restored. FolkPatch will not exit safe mode, at which point you can disable the problematic module.
Restore Original Partition Image
Third-party Recovery
If you have a third-party Recovery, such as TWRP, you can use it directly to flash the original partition image. MTP can be used to transfer files within the local network. Send the original partition image to the phone and flash it.
Fastboot
If you don't have a third-party Recovery, you can use Fastboot to flash the original partition image.
When the device is off, press and hold the power button and volume down key simultaneously until the device enters Fastboot mode
Connect the phone to the computer, open ADB tools, and enter the following command to ensure the device is connected:
fastboot devicesFlash the original
boot.img:fastboot flash boot PATH/TO/original_boot.imgReboot the phone:
fastboot reboot
Parts of this content are from Apatch Docs, with some modifications made based on it.
Following Attribution-ShareAlike 4.0 International, this is stated here, and the source repository is provided.
Copyright
Copyright Ownership:FolkPatch Team
License under:Attribution 4.0 International (CC-BY-4.0)
