Android P beta supports three variants of Sony Xperia XZ2, such as H8216, H8266 and H8296. If you would like to get the preview of Android 9.0, first verify your device’s model number. If you own either of above mentioned model, then follow the below steps to install Android P Beta 2 on it.

With this update, Sony has corrected the following issues: Before get start with the installation proceedure, backup all data you have on the phone. Also, ensure more than 50% battery charge remaining on the phone.

How to install Android P Beta 2 on Sony Xperia XZ2

  1. First, download Xperia Companion v2.1 or later from here and install it on your computer.
  2. After installation, start Xperia Companion
  3. On computer keyboard, press ALT key and then click on “Software Repair” on the home screen
  4. Tick the checkbox “My device cannot be detected or started”, and then click “Next”
  5. Wait for the initialization to complete, and then follow the instructions on the screen. Note: You can return to stock Xperia firmware at any time by connecting back to Xperia Companion and following the Software repair (without holding ALT key). [Source – Sony]