- This collection of fastboot flashing scripts is designed for flashing stock Nothing OS firmware on Nothing & CMF devices, supporting both Windows and bash platforms.
- The script helps users revert to stock ROMs or unbrick devices, especially when the super partition size remains unchanged. It's useful when custom recoveries fail to flash the stock ROM due to partition issues. The script can also be adapted to flash custom ROMs that use the same partition size as the stock firmware.
- Phone (1): Windows | Bash
- Phone (2): Windows | Bash
- Phone (2a) & (2a) Plus: Windows | Bash
- Phone (3a) & (3a) Pro: Windows | Bash
- Phone (3): Windows | Bash
-
The scripts are supported on Bash and Windows 10+ platforms.
-
Refer to this guide for preparing the flashing folder with the respective stock firmware images and run the flashing script for your respective platform.
-
Alternatively, users can dump the
payload.binusing payload_dumper_go by unpacking a full stock firmware zip and then place the script suited to your operating system in the directory where the*.imgfiles frompayload.binhave been extracted. Finally, reboot your device to the bootloader and then run the flashing script. -
The script can be executed by double-clicking the
flash_all.batfile on Windows or by running the following command in a terminal on a bash-supported operating system (after navigating to the directory where the*.imgfiles frompayload.binhave been extracted):chmod +x flash_all.sh bash flash_all.sh
-
A working internet connection is required to download the latest version of
platform-toolsif it's not already present in the working directory. -
Make sure to download the script that corresponds to your device model's codename and platform (Windows or bash).
-
The script flashes the ROM on slot A and erases the partitions on slot B to free up space for the new partitions. Slot switching is not included, as the inactive slot would lose data. The script focuses on flashing partitions to slot A.
-
Ensure that you have working Google USB drivers installed before running the script.
-
Scripts must be executed in bootloader mode with fastboot access. Also, verify that the
Android Bootloader Interfaceis listed in your Windows Device Manager. -
Do not reboot your device into the system before confirming all partitions have been successfully flashed.
-
For best results, use the latest Windows installation with functional
curl,tar, andPowerShell. Missing binaries in modified installations can cause errors. -
If the
platform-toolsdownload or unzip process fails, or iffastboot.exeis not executable despite following the above steps, manually download the latest version from here. Unzip it into the same directory as the script, ensuring the following structure:βββ platform-tools-latest/ β βββ platform-tools/ β β βββ ...binaries βββ flashing script (flash_all.bat / flash_all.sh) βββ Required stock firmware image files
