Skip to main content

[How to ??] Install Android O Factory Images On Pixel, Pixel XL, Nexus 5X, Nexus 6P, Nexus Player, and Pixel C

https://9to5google.files.wordpress.com/2017/03/android_o_oreo_1-e1503072295850.jpg?quality=82&strip=all&w=1500&h=800

With the official unveiling of the Android Oreo statue, Google has begun pushing out OTA updates to some of its Pixel and Nexus devices. Initial reports show the updates either failing or taking hours to install, but thankfully Google has released Android 8.0 system images. Here’s how to manually install Android Oreo…

Note: This guide assumes you already have your phone’s bootloader unlocked and the ADB tools installed on your computer. If you need the ADB tools, head over and download the Android SDK, and if you need to unlock your bootloader, keep reading.

Before we get started, take backup then make sure that your device is visible to your computer. Type the command “adb devices” in your Terminal app; if you see your device listed, you’re ready to go. If not, make sure your device has ADB debugging turned on in Settings.

Unlock the bootloader

If you know that your device is already unlocked, feel free to skip this section and keep reading. Otherwise, you need to make sure your phone’s bootloader is unlocked before you can flash a factory image.

Bootloader locking is a security feature that requires that your device is completely wiped when going from a “locked” state to an “unlocked” state. For this reason, there’s no way to keep your data if your bootloader is locked.

Nougat Developer Options

If you need to unlock your bootloader, go to the Settings app and head to “Developer options” (if you don’t see Developer options, go to the “About” page and tap the Android build number several times). Make sure that “OEM unlocking” is checked.

Next, use the command “adb reboot bootloader” to go to the device’s bootloader and check if your device is in the locked state. If the bootloader on your Nexus device is locked, make sure your device is at the bootloader screen and use the “fastboot oem unlock” command.

After this, you should see some prompts on your device to confirm that you do indeed want to unlock your bootloader. After you confirm this, your device is going to be completely wiped, and you’ll be ready to move on with this guide.

Download and prepare the factory image

If you haven’t already, grab the latest build of Android O from Google’s factory image page. Once you’ve downloaded the .tgz file, extract it. Inside the extracted .tgz file there will be a .zip file titled something like “marlin-opr6.170623.012-factory-6304451d.zip” (Pixel XL), and after you extract that file, you’ll find the bootloader, OS image, vendor image, and a radio image (depending on your device).

Not recommended: modify the “flash-all” script to save your data 

You only need to follow these instructions if your device already had an unlocked bootloader and you want to keep your data. Otherwise, the flash will format your device and all data will be lost. If your bootloader is locked, your data will have to be wiped anyway as described above. If you don’t want to lose your data, in this case, you need to restart your device and back it up manually.

We do not recommend doing this since it could cause bugs in the operating system. If that doesn’t sway you, keep reading…

The “flash-all” script contains all of the commands necessary to flash the factory image onto your device. Before running it from the command line, you might want to remove the flag that wipes your data (although this isn’t ideal, you might run into problems especially if it’s a major upgrade).
In the file you extracted you’ll find two flash-all scripts as mentioned above. The flash-all script with the .bat extension works with the Windows command line while the .sh extension works with the Unix command line (macOS, Linux, etc.). Open up the proper flash-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 data (the stuff we want to keep).

Once you’ve made the change, save your file, and open up a command-line program.

Run the script and install Android O

As we did earlier to check unlock status, you need to boot into your bootloader to flash the factory image. Execute the command “adb reboot bootloader” again to get there. Alternatively, you could start up the device while holding the volume down and power keys simultaneously to boot into the bootloader.

Now point your command line to the file directory with the flash-all script. (Ex: cd /Users/<yourusername>/Downloads/marlin-opr6.170623.011). For more help on using the command line, see this cheat sheet.
Once you’ve pointed to the correct directory, run your script.
  • On Unix/Mac, run “./flash-all.sh”
  • On Windows, run “flash-all.bat”
Now you should see the script running on-screen. It’ll take a little over five minutes for the image to install. Once the image is installed, the script will automatically reboot your phone. The first boot usually takes a while, so wait about 10 minutes before assuming you’ve entered a bootloop.

Some users have had issues with the flash-all script not working on some devices. If that’s the case for you, you’re going to need to flash all of the images manually. It’s not a laborious process, though, and only requires a few extra steps. Make sure your device is in the proper bootloader state, and then follow these instructions:
First, flash the bootloader and the radio, and then reboot the bootloader (radio only 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, boot, system, and vendor images (vendor only applies to the Nexus 9):
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
Recommended: For a full wipe, flash cache and userdata as well (userdata only applies to some devices):
fastboot flash cache cache.img
fastboot flash userdata userdata.img
Reboot your device:
fastboot reboot
After the device boots, you should have Android 8.0 Oreo and, if you opted to modify the flash-all script, all of your data should be intact.


Comments

Popular posts from this blog

[ How to ?? ] Root the Samsung Galaxy Note 8 Exynos Variant

We’re starting to see more and more people getting their hands on the new Samsung Galaxy Note 8, so for those of you looking for some help in rooting your device, XDA Recognized Developer  dr.ketan  has made a simple step-by-step guide for you. This guide will walk you through how to gain root access to the device using SuperSU . The developer also promises to provide an EFS backup tool so you can save the important data in this partition. Once your device is rooted, you open up the device to some interesting modifications such as flashing the popular audio mod called Viper4Android . Of course, there are already a ton of things you can do without root on Samsung devices such as blocking ads and disabling bloatware, but having root access is an added benefit nonetheless. Check out this guide in Galaxy Note 8 forum

[How to ??] Manually Change the Galaxy S8 Navigation Bar Color

The Samsung Galaxy S8 and Galaxy S8+ are the first flagship smartphones from Samsung that ditch their traditional capacitive buttons in favor of software navigation keys. Besides allowing us to customize the layout of the keys, we can also change the navigation bar color as well. However, the company removed this color wheel option in June’s OTA update, but thanks to an ADB command we can still manually change the Galaxy S8 navigation bar color. The guild below walks you through how to change the color via ADB through a PC, but you can also do it through a terminal emulator application on the phone provided you have root access. Tutorial – Change Galaxy S8 Navigation Bar Color Grab the USB drivers for the Galaxy S8/S8+ (Google provides a list of some  universal USB drivers here ). Download the  ADB binary  for your specific operating system ( Windows ,  Mac ,  Linux ). These will always be the latest version. Extract the ZIP file into any folder on your PC.

[ TechLeaks ] Korean media: Galaxy Note 8 to launch on August 26 in New York as report says

The Korea Herald and the news portal Naver said today purporting to reveal the release date of Samsung’s Next Big Thing. According to the Korea Herald , Samsung is planning to introduce the Galaxy Note 8 “in the third or fourth week of August.” Like the Note 7 before it, the new S Pen device will reportedly make its debut in New York. Citing an unnamed Samsung official, Naver ventures a specific date: August 26, give or take a couple of days. Samsung initially planned to launch the new Note at IFA in the first week of September, according to the Korea Herald . The impending arrival of rival devices from LG and especially Apple might have prompted Samsung to bring up the big release. For reference, the Note 7 was announced on August 2 last year. Reports that surfaced after the phone was recalled due to faulty batteries suggested Samsung rushed the device to market in order to outshine Apple. Almost every flagship release from Samsung from the last few years has been preced