- This is a script to make it convenient for the user to return back to the stock ROM or unbrick their device under any circumstances where the super partition size has not been changed (If the ROM flashed is using the same super partition size as the stock ROM then this script will always work, which is supposedly followed by all the custom ROMs). This script is quite helpful when the custom recoveries fail to flash the stock ROM where they usually face errors due to messed up partitioning under the super partition. This script can be modified to flash custom ROMs as well and can be used on ROMs shipping the stock firmware.
-
Before proceeding, ensure that the script is tailored to your operating system. Place the script in the directory where the required
*.img
files, downloaded from here, have been extracted. Finally reboot your device to the bootloader and thenexecute the script by double clicking the
flash_all.bat
file on Windowsor by doing this on a Linux operating system in terminal after opening the terminal in the directory where the
*.img
files frompayload.bin
have been extracted:
chmod +x flash_all.sh && bash flash_all.sh
- For Linux wget and unzip utilities should be installed on your system.
- The script flashes the ROM on slot A and it destroys the partitions on slot B to create space for the partitions which are being flashed on slot A. This is the reason why we are not including the ability to switch slots as the partitions would get destroyed on the inactive slot which is why the script flashes the partitions on the primary slot which is slot A.
- HELLBOY017
- Testers