Android P is the upcoming ninth major version of the Android operating system. It was first announced by Google on March 7, 2018, and the first developer preview was released on the same day. The second preview, considered beta quality, was released on May 8, 2018. The third preview, called Beta 2, was released on June 6, 2018. The fourth preview, called Beta 3, was released on July 2, 2018.
Last year, Xiaomi announced its first phone with stock android UI as a part of the Android One program. It is actually Xiaomi Mi 6X with stock Android experience. The Mi A1’s clutter-free, stock experience combines elegantly with tried and tested hardware, while the dual-camera capability gives you a premium feel on a budget. Xiaomi ticks all the right boxes with this affordable but feature-rich smartphone. And though it does not support Project Treble officially, an XDA developer, joeyhuab, managed to port Android P Beta based on Developer Preview 3 for Mi A1.
Steps To Install Android P Beta On Mi A1
- Enable Developer Options of your device in the Settings app.
- Under Developer Options, enable OEM unlocking.
- Reboot your device in fastboot mode.
- Unlock your device’s bootloader. Visit the link appearing below for a detailed guide to unlock Mi A1’s bootloader.
- Install TWRP Recovery on your Mi A1. Visit the link appearing below for a detailed guide to install TWRP recovery.
- Reboot to TWRP Recovery.
- Go to ‘Wipe’ and then select ‘Advanced’ and click on “Format Data”. This step will format all your data in the internal storage.
- Now, go to ‘Advanced’ and click on Tissot Manager and choose the repartition user data option. Select single boot option then click repartition.
- Download Vendor.img and flash it as vendor image.
- Mount Vendor Partition.
- Flash A/B system GSI img as a system image.
- Flash the following to fix Bluetooth and Fingerprint sensor issues.
- Flash a treble compatible kernel like Moun or ProjectK or Velocity
- Under Tissot Manager, select patches. Once there, patch the SELinux mode and set it to Permissive.
- Update your bootloader/modem firmware files to the ones from the July 8.1 stock ROM update. Flash through TWRP as well.
- Reboot to system.
- Once booted, install the latest Play services linked above either via the Files app or via ADB. This will fix the Pixel Setup and Google Backup issues as well as allows you access to the Play Store without problems.
As this is an unofficial build of the beta build of the Android P beta, one can expect bugs, lags and hiccups. Certain bugs like issues with Google Assistant, Nav Bar, Speaker and Camera have been fixed.
- To make OK Google work, use Modem files via TWRP.
- To enable Nav Bar, install rajeev’s enabler via Magisk.
- If you are encountering issues with calls, flash this fix.
- For camera issues, try this fix.
- Fix for MTP Issue.
- Enable Developer Settings.
- Scroll down and find the ‘Default USB Configuration‘.
- Select ‘File Transfer‘.
Though some bugs have been fixed, some still persist. Some notable issues are issues with VoLTE connectivity, Fingerprint swipe gesture and Notification LED.
This is an incredible feat by XDA developer joeyhuab. Many congratulations and thanks to him for blessing us all with some Android P sweetness. I hope this article works the way it is intended to be. Let us know about your experience trying the unofficial port of Android P Beta based on DP3 on your Xiaomi Mi A1. In case I missed to mention anything, please let me know in the comments section down below.