Skip to content

A script to flash Nothing Phone (1) stock OTA images via fastboot

Notifications You must be signed in to change notification settings

spike0en/Spacewar_fastboot_flasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nothing Phone (1) Fastboot ROM Flasher

Getting Started

  • 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.

Usage

  • 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 then

    execute the script by double clicking the flash_all.bat file on Windows

    or by doing this on a Linux operating system in terminal after opening the terminal in the directory where the *.img files from payload.bin have been extracted:

chmod +x flash_all.sh && bash flash_all.sh

Notes

  • 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.

Thanks to