How to Install Android P Developer Preview 1 on Eligible Devices
Google just unveiled the first Developer Preview build of Android P. It'll be a while before anyone can see it in action, however, if you're a Pixel/Pixel 2 owner, you can skip ahead of the queue and check it out, right now. Here's how.
If you're new to Android phones, we wouldn't recommend that you try this. Ensure that your phone has enough battery and is connected to the computer via USB at all times. If the process is interrupted in any way such as power outages or PC restarts, you may risk bricking your phone and void any warranties. The chance of that happening is low, and you should be good, if you follow all the instructions to the tee.
Step 1: Get ADB tools and enable developer options
Before proceeding, it is essential that you have the all the pre-requisite ADB. If you don't, head over to the link to download the tools. Second, we need to make sure that your device is visible to your computer. After plugging in your device to your computer via USB cable, type “adb devices” in the built-in Terminal (MacOS/Linux) or Command Prompt (Windows) 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. To do that, head over to settings>system>developer options>USB Debugging. If you don’t see Developer options, go to the “About phone” page and tap the Android build number several times until the device prompts you for a PIN and then proceeds to unlock the options for you.
Step 2: Unlock bootloader
To unlock your bootloader, go to the Settings app, tap on the System option, and head to “Developer options” (if you don’t see Developer options, go to the “About phone” page and tap the Android build number several times). Make sure that “OEM unlocking” is toggled on. From your computer, open a terminal/command prompt and enter the “adb reboot bootloader” to go to the device’s bootloader and check its status. If the bootloader on your Pixel device is locked, make sure your device is on the bootloader screen and type “fastboot oem unlock” in the terminal. If that didn’t work, you would need to use the “fastboot flashing unlock_critical” command.
Once the command is issued, you should see a prompt on your device which will ask you to verify if you want to unlock your bootloader. After you give it the green signal, the device will be wiped completely. Hence, we recommend that you take a backup of all your data before proceeding with the process.
Now, get the Android P Developer Preview 1 build for your device from here. Once you’ve downloaded the compressed file, extract it. Inside the extracted compress file there will be a .zip file titled something along the lines of “taimen-ppp1.180208.014-factory-8e44f67a.zip” (for the Pixel 2 XL, other devices names might vary). After you extract that file, you’ll find the other tools you'll need to get the job done, namely the bootloader, OS image, vendor image, and a radio image.
Run the script to install Android P DP1
You will now need to boot into your bootloader to flash the factory image. Execute the command “adb reboot bootloader” again to get there. Or, 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. For example, if the file is in your C:/Downloads folder, you need to type "cd C:/Downloads/taimen-ppp1.180208.014-factory-8e44f67a). Once you have successfully changed the directory, run your script from the computer.
- On Unix/Mac, run “./flash-all.sh”
- On Windows, run “flash-all.bat”
Now you should see the script running on your screen, which can take five to ten minutes. Once the image is installed, the script will automatically reboot your phone. The first boot usually takes a while so you might have to wait about 10 minutes. Anything above that means that you’ve entered a boot loop. If that’s the case, then you’re going to have to flash all of the images manually. Make sure your device is in the proper bootloader state (you should be at the same screen as you were when you issued the "adb reboot bootloader" command), and then follow these instructions in the command prompt. The bootloader file name, radio file name and image file name can be found in the file that you downloaded off of the website.
- fastboot flash bootloader <bootloader file name here>.img
- fastboot reboot-bootloader
- fastboot flash radio <radio file name here>.img
- fastboot reboot-bootloader
- fastboot flash -w update <image file name here>.zip
- fastboot reboot
After the device boots, you should have Android P DP1. If you've had enough of the preview, you're going to have to go through the same process again, but this time with stock Oreo images which can be found on Google's website.