Android P was officially introduced yesterday. For now, there are only the chosen smartphones can get the developer preview of Android P version. If you are one of the lucky people, you’ll read the tutorial below to download and try the Android p 9.0 on your device.
- Google Pixel
- Pixel XL
- Pixel 2
- Pixel 2 XL
How to Install Android P on Google Pixel Phones
Before proceeding, you should reset your device first. Although it’s not too important, if you don’t perform a factory reset, there might be some bugs when installing a new version. So, go to Settings > Back Up & Reset and make a reset or boot into the stock recovery and perform a data wipe.
Step 1: unlock bootloader
To install Android P your Pixel device, your first need to unlock bootloader of your phone. To unlock the bootloader, simply follow the below steps
- First, enable the developer options. To do so, go to Settings > System > About phone and tap on “build number” 7 times until you see a message: “you are now a developer”
- Now, return to Settings > Developer Options and enable OEM Unlocking option
Step 2: Download Factory Image File of Android 9.0
The factory image can be used for several purposes, for example when you see bugs on your device or in case you want to reset your phone.
The process is useful for installing Android P 9.0 on the supported devices.
Download the factory image
Step 3: unzip the file
After you download the compatible file for your phone, you need to unzip all of these files.
Also read: How to Block Ads in Apps & Games on Android
Step 4: install the factory image
Before getting started, you should know what you will be doing. If something is incorrect, it might cause some issues to the system. If you follow the steps carefully, it is the difficult process:
- Install ADB & Fastboot driver for Mac and Windows
- Download Android SDK available from: http://developer.android.com/sdk
- Add the SDK tools folders to the PATH environment.
– For Mac users: launch Terminal and type “export PATH=$PATH: <Android SDK path>“.
– For Windows users: right click “My Computer” and choose Properties >Advanced > Environment Variables. Next, edit the “PATH” and then add the path to the Android SDK.
- You need also to install Google USB driver if you are using Windows, which can be found in the SDK Manager in the root of the SDK folder.
- To check that everything is working, type “adb devices” in cmd/terminal. If your device appears after “List of devices attached” line, it’s successful.
Note: The Android 9.0 installation is at your own risk, so before proceeding, we recommend you to back up your personal data first, as it will be deleted during the installation.
Here are steps to install Android 9.0 on your Pixel device.
- Go to the directory where contains the unzipped files and open cmd or terminal on your Windows/ Mac.
- Once done, restart your device in the “fastboot/bootloader” mode by entering “adb reboot bootloader” command or pressing physical buttons on your phone:
* For Pixel: Vol+ Power buttons
* For Pixel 2: Vol Down + Power buttons
- Next, unlock the bootloader of your Pixel by typing “fastboot oem unlock” in cmd/terminal.
- Start flashing the Android 9 factory image file by double-clicking on the file “flash-all.bat” (Windows) or “./flash-all.sh” (Mac)
- Once the installation is completed, your Pixel device will then reboot. For the first time booting up, it will take you about 15- 20 minutes before leading to the Welcome screen.
Once your device is booted up successfully, you can also relock bootloader of your Pixel phone. To do so, boot your phone into the Fastboot mode following the above steps and then open cmd or terminal in SDK folder, enter: “fastboot oem lock” command. The bootloader of your device will be relocked after a restart.
Problems and solutions
Error: “fastboot command not found”, or “fastboot command doesn’t exist”.
You can get these problems if you perform the fastboot operations outside of the unzipped factory image folder. So, you need to ensure you do it in the right folder.
Not able to run the “flash-all.bat” file
Make sure you run the flash-all.bat in administrator mode. Simply right click and choose Run as administrator.
Have you successfully installed the developer preview version of Android P 9.0 on your device? If yes, let’s know in the comment below.