Before trying any custom firmware, you should install m-bootloader on your device first. You can install it using the m-flasher desktop app. This provides the safeguard that you will be able to recover your device without using any additional hardware like the RP2040. This should cover most bricking situations.
What is happening when you install a custom firmware?
Custom firmware installations generally do not touch the bootloader part of the device, it only writes the firmware part. If a firmware installation does not finish (e.g. unplugged USB cable or closed browser tab), it results to a damaged firmware, and in effect, a bricked device. I think the process itself is not flawed, because it does not touch the bootloader.
What is flawed?
Once you decide to install a custom firmware, bricking is a question of when.
This is the flawed part: to fix a bricked device, you have to enter the device's Download Mode. To get into the Download Mode, you have to enter into the firmware. A damaged firmware will not be able to enter the Download Mode. This is why there are solutions that need the RP2040 hardware because it can force the device to go into Download Mode without getting into the firmware. It does this by smashing some bits into the device in a non-standard way to force the device to go into Download Mode. Your computer's USB port cannot smash bits into a device, it can only do standard USB stuff to keep things safe.
What is the solution to the flaw?
m-bootloader fixes this by allowing you to get into Download Mode even with a damaged firmware. If you have m-bootloader installed, you can force enter Download Mode by pressing REC while switching on the device. In simple terms, this is what the RP2040 hardware will do without the need for the additional hardware (not exactly, but same effect).
I think this safeguard will cover most bricking cases.
UPDATE: installing the official stock V15 or V16 is going to overwrite the bootloader and revert it back to the stock bootloader.
Here are my own basic tests:
Installed official v15 via thefirmwarehub.com (web install):
- It did overwrite the bootloader. You will have to install m-bootloader again.
- I have not tried using the official m-upgrade tool but I assume it will also overwrite the bootloader.
Restored my own clean v15 backup image using FM-1 Backup & Restore for Android
- It did not overwrite the bootloader
- I validated it because I can still access m-bootloader's recovery menu after I restored the v15 backup
- The dev of this app said the app does not touch the bootloader when doing backup/restore operations
- It also has an option to create a clean stock v15 backup so you can start from a clean slate anytime without overwriting the bootloader.
- This is what I personally use. Once I install a new firmware, I create a backup of it so I can switch firmware backups without having to go back to v15 each time.
Restored my own v15 full backup using m-flasher:
- After I installed the official stock v15, I installed m-bootloader to replace the stock bootloader.
- Then I created a full backup of my own stock v15 w/ m-bootloader using m-flasher.
- I restored that same full backup using m-flasher.
- I validated that m-bootloader is still there after restoration, I can still access the m-bootloader recovery menu.
- From what I understand, m-flasher does FULL backup & restore, which includes the bootloader. So if your backup contains m-bootloader, then it will also restore that same m-bootloader.
Installed SLOOP via thefirmwarehub.com (web install):
- I installed SLOOP on top of v15 w/ m-bootloader already installed
- It did not overwrite the bootloader
- I validated it because I can still access m-bootloader's recovery menu after I installed sloop
- I also tried to install v15 again using thefirmwarehub.com but it wasn't finishing, but it didn't brick the device. It just stayed with Sloop. I was able to go back to stock v15 by restoring my m-flasher full backup.
So in summary:
- Once you install the official stock v15, install m-bootloader, then create a full backup. That will be your clean slate backup.
- If you have a new device, create a full backup first using m-flasher. Creating a backup is safe because it's not writing anything to the device, it's just reading. This could be useful if future devices have a different stock version installed, or it's using a different flash chip that may be incompatible with other firmwares.
What is a backup?
A backup is different from installing a new firmware using a fscw file. A backup is a copy of the already installed firmware on your device, including your settings and other data. So that backup is specific to your own device. Whenever you install a new firmware, create a backup. This way you don't have to install it again, you just have to restore it. If there's a new version of that firmware then you have to install the new version. One backup file is only 1 MB.
There are other backup/restore apps available but I have not tested those.
Comments
Post a Comment