How to Upload Factory Imae File to Nexus 9
Google finally introduced to the earth the next version of Android, dubbed Android M for the moment, at its Google I/O developer conference in San Francisco. And while the currently-bachelor version may be a programmer preview (and those who are developers likely wouldn't need this guide), many who aren't as familiar with how to flash factory images might want to endeavor the latest build of the mobile OS likewise.
That's why we made this guide. If you have the Nexus 5, Nexus 6, Nexus 9, or Nexus Player (and possibly others in the hereafter), in that location's a build of Android M available for you to install prior to the update's official unveiling later this yr. Be warned even so, every bit this is a very early build of the Os and is riddled with bugs, glitches, and overall performance jankiness. If that doesn't sway you, though, proceed reading…
Annotation: This guide assumes you lot already have your telephone's bootloader unlocked and the ADB tools installed on your figurer. If yous need the ADB tools, head over and download the Android SDK, and if you lot need to unlock your bootloader, keep reading.
Before we become started, we need to brand sure that your device is visible to your computer. Type the command "adb devices"; if yous see your device listed, y'all're gear up to go. If not, make sure your device has ADB debugging turned on.
Unlock the bootloader
If you lot know that your device is already unlocked, feel free to skip this section and continue reading. Otherwise, you need to make sure your phone'southward bootloader is unlocked before y'all tin wink a factory image.
Bootloader locking is a security feature that requires that your device exist completely wiped when going from a "locked" state to an "unlocked" state. For this reason, in that location's no way to keep your data if your bootloader is locked.
First, go to the Settings app and caput to the "Developer options" (if you don't see Developer options, become to the "Almost" page and tap the Android build number several times). Make sure that "OEM unlocking" is checked.
Next, Utilize the command "adb reboot bootloader" to go to the device's bootloader and check if your device is in the locked land. If the bootloader on your Nexus device is locked, make certain your device is at the bootloader screen and employ the "fastboot oem unlock" command.
Subsequently this, you should see some prompts on your device to ostend that you practice indeed want to unlock your bootloader. After you confirm this, your device is going to be completely wiped and you'll be set to motility on with this guide.
Download and ready the factory epitome
If you haven't already, grab the latest build of Android 1000 from Google'south factory prototype page. Once yous've downloaded the .tgz file, extract information technology. Within the extracted .tgz file there will exist a .zero file titled something like "prototype-volantis-MPZ44Q.nil" (Nexus 9), and later on yous extract that file, you lot'll observe the boot loader, OS image, vendor image, and a radio epitome (depending on your device).
Modify the "flash-all" script to relieve your information
Note: You only need to follow these instructions if you desire to keep your data, otherwise the flash volition format your device and all data will be lost.
Note 2: If your bootloader is locked, your data volition accept to be wiped anyway equally described above. If you don't want to lose your information in this instance, yous need to restart your device and dorsum it up manually.
The "flash-all" script contains all of the commands necessary to wink the factory image onto your device. Before running it from the command line, we want to remove the flag that wipes your data.
In the file you extracted you'll discover ii flash-all scripts every bit mentioned above. The flash-all script with the .bat extension works with the Windows command line while the .sh extension works with the Unix control line (OSX, Linux, etc). Open upward the proper wink-all script with your favorite text editor and remove the "-w" from the file. "-w" is an ADB flag which wipes all of the user information (the stuff nosotros desire to keep).
Once you lot've fabricated the change, save your file, and open up upward a command line program.
Run the script and install Android Grand
As we did before to check unlock status, you demand to kicking into your bootloader to flash the factory image. Run the control "adb reboot bootloader" once again to go there. Alternatively, you lot could offset upwards the device while holding the volume down and power keys simultaneously to kicking into the bootloader.
Now bespeak your command line to the file directory with the wink-all script. (Ex: cd /Users/<yourusername>/Downloads/hammerhead-lrx21o). For more than aid on using the command line, run across this cheat sheet.
Once you've pointed to the correct directory, run your script.
- On Unix, run "./flash-all.sh"
- On Windows, run "flash-all.bat"
Now you should come across the script running on-screen. It'll take a little over v minutes for the image to install. In one case the paradigm is installed, the script will automatically reboot your phone. The first boot usually takes a while, so wait about x minutes earlier assuming you've entered a bootloop.
Some users take had issues with the flash-all script non working on the Nexus 5, 7, and other devices. If that's the case with you, you're going to need to flash all of the images manually. Information technology'southward not a hard procedure, though, and only requires a few extra steps. Make sure your device is in the proper bootloader state, and and so follow these instructions:
Kickoff, flash the bootloader and the radio, and so reboot the bootloader (radio simply applies to some devices):
fastboot flash bootloader <bootloader file name here>.img fastboot flash radio <radio file name here>.img
fastboot reboot-bootloader
Flash the recovery, kicking, organisation, and vendor images (vendor simply applies to the Nexus 9):
fastboot flash recovery recovery.img fastboot flash kick boot.img fastboot flash system system.img fastboot wink vendor vendor.img
Recommended: For a total wipe, wink enshroud and userdata besides (userdata only applies to some devices):
fastboot wink cache enshroud.img fastboot flash userdata userdata.img
Reboot your device:
fastboot reboot
After the phone boots, you should accept Android Thousand and, if y'all opted to alter the wink-all script, all of your data should be intact.
FTC: We use income earning automobile affiliate links. More.
Check out 9to5Google on YouTube for more news:
Source: https://9to5google.com/2015/06/01/how-to-install-android-m-factory-image-nexus-5-6-9-nexus-player/
0 Response to "How to Upload Factory Imae File to Nexus 9"
Post a Comment