General Instructions

General Instructions for Flashing Razer Phone Factory Images

This page contains instructions that allow you to restore your Razer Phone’s original factory firmware. You will find these instructions useful if you have used AOSP flashed custom builds on your Phone, and wish to return to its factory state.

These files are for use only on your personal Razer Phone and may not be disassembled, decompiled, reverse engineered, modified or redistributed by you or used in any way except as specifically set forth in the license terms that came with your Phone.

Terms and Conditions

*Warning: Installing this factory image will erase all data from the Razer Phone. While it may be possible to restore certain data backed up to your Google Account, apps and their associated data will be uninstalled. Before proceeding, please ensure that data you would like to retain is backed up to your Google Account.

Downloading of the system image and use of the device software is subject to the Razer Phone Terms of Service. By continuing, you agree to the Razer Phone Terms of Service and Privacy Policy. Your downloading of the system image and use of the device software may also be subject to certain third-party terms of service, which can be found in Settings > About phone > Legal information, or as otherwise provided.

Cables

When connecting your Razer Phone to a computer for any development, it is advised by Razer to not use the in-box USB Type-C to Type-C charging cable for flashing. The supplied cable is specifically engineered for fast power delivery, not for data transfer. Razer recommends you use a USB 3 Type-A to Type-C spec-compliant cable for any device flashing.

Instructions

The factory image downloaded from this page includes a script that flashes the Razer Phone, named flash_all.sh (On Windows systems, use flash_all.bat instead).

*Warning: To flash the Razer Phone using one of the system images below (or one of your own), you also need the latest fastboot tool (version 23.0.1 or later). You can get it from the Android SDK Platform-Tools package.

For Windows users, please follow instructions to install fastboot drivers here.

Once you have the fastboot tool, add it to your PATH environment variable (the flash_all script below must be able to find it).

Also, be certain that you’ve set up USB access for your Phone, as described in Run Apps on a Hardware Device.

*Caution: Flashing a new system image deletes all user data. Be certain to first backup any personal data such as photos.

Unlocking the Bootloader

Enable OEM Unlocking

  • If necessary, enable OEM unlocking on the Razer Phone:
  • On Android 7.x, go to Settings > About phone > tap Build number seven (7) times.
  • Tap the back button once you see the “You are now a developer” message appear.
  • Tap Developer options, tap toggle OEM unlocking to enable.
  • On Android 8.x, go to Settings > System > About phone > tap Build number seven (7) times.
  • Tap the back button once you see the “You are now a developer” message appear.
  • Tap Developer options, tap toggle OEM unlocking to enable.

Enter Download Mode

  • Start the Phone in Download Mode with one of the following methods:
  • Using the adb tool: With the Phone powered on, execute: adb reboot bootloader
  • Enter Download Mode: Plug in a USB cable to connect your Razer Phone to your computer, Power Off the Phone, then turn it on and immediately press and hold the Volume Down button until “Download Mode” appears on screen.

Unlock the Bootloader

  • Run this command: fastboot flashing unlock
  • Your Razer Phone will show you a confirmation screen. Use the Volume Up/Volume Down buttons for navigation, and press the Power button to select. Your Phone will reboot.

*Caution: This command erases all user data on the Phone.

Unlock the Bootloader Critical Partitions

  • Enter Download Mode: Plug in a USB cable to connect your Razer Phone to your computer, Power Off the Phone, then turn it on and immediately press and hold the Volume Down button until “Download Mode” appears on screen.
  • The unlock can be performed with this command: fastboot flashing unlock_critical
  • Your Razer Phone will show you a confirmation screen. Use the Volume Up/Volume Down buttons for navigation, and press the Power button to select. Your Phone will reboot.

*Caution: This command erases all user data on the Phone.

Flash System Image

  • Download the appropriate system image for the Razer Phone from here, then unzip it to a safe directory.
  • Connect your Razer Phone to your computer over USB.
  • Start the Phone in Download Mode with one of the following methods:
  • Using the adb tool: With the Phone powered on, execute: adb reboot bootloader
  • Enter Download Mode: Plug in a USB cable to connect your Razer Phone to your computer, Power Off the Phone, then turn it on and immediately press and hold the Volume Down button until “Download Mode” appears on screen.
  • If necessary, unlock the Phone’s bootloader. See Unlocking the Bootloader and Unlocking the Bootloader Critical Partitions for instructions.
  • Open a terminal on your computer and navigate to the unzipped system image directory.
  • Execute the flash_all script. This script installs the necessary bootloader, baseband firmware(s), and operating system for your Razer Phone.
  • Once the script finishes, your Phone will reboot.
  • You should now lock the bootloader for security.
  • See Locking the Bootloader for instructions.

Locking bootloader will wipe the data on Razer Phone. After locking the bootloader, if you want to flash the Phone again, repeat the steps listed above, which will wipe the data.

Locking the Bootloader

  • Locking the bootloader is recommended for security reasons. Some applications will not work with an unlocked bootloader.
  • Start the Phone in Download Mode with one of the following methods:
  • Using the adb tool: With the Phone powered on, execute: adb reboot bootloader Enter Download Mode:
  • Plug in a USB cable to connect your Razer Phone to your computer, Power Off the Phone, then turn it on and immediately press and hold the Volume Down button until “Download Mode” appears on screen.
  • Lock the critical partitions of the Bootloader first by running this command: fastboot flashing lock_critical
  • Your Razer Phone will show you a confirmation screen. Use the Volume Up/Volume Down buttons for navigation, and press the Power button to select. Your Phone will reboot.

*Caution: This command erases all user data on the Phone.

  • Enter Download Mode: Plug in a USB cable to connect your Razer Phone to your computer, Power Off the Phone, then turn it on and immediately press and hold the Volume Down button until “Download Mode” appears on screen.
  • Locking the remainder of the bootloader can be performed with this command: fastboot flashing lock
  • Your Razer Phone will show you a confirmation screen. Use the Volume Up/Volume Down buttons for navigation, and press the Power button to select. Your Phone will reboot.

*Caution: This command erases all user data on the Phone