To God be the glory, a working AOSP ROM for those on the 50.2 firmware, Pie flavored! I will mention though, this is a beta version, there may still be a few bugs here and there, please read this entire post before using!
**** This is an UNOFFICIAL ROM. Install at your own risk! ****
WARNING: This was designed and tested on phones that are using the 50.2 firmware base! E.g., phones that updated to stock Pie. Also, this build SHOULD work on both the H3213 and H3223, but I could only test on a H3223.
Disclaimer: I am not responsible for any damages to your device.
A huge thanks to the Android Open Source Project and Sony Xperia Open Devices Project!
All of my work is completely available for any who wish to use or modify it. I didn't make AOSP, the device trees, or vendor blobs. I simply used and edited existing material. A huge thanks should go to those who actually created this stuff.
This Unofficial AOSP ROM was built for the H3223 (discovery), but may work on some of the other variants, please try at your own risk. However, if you do try it on another variant, please be sure to let me know in the comments how well it worked.
WARNING: This is designed for those who are on firmware versions 50.2.xxxx and up. It *MAY* work on 50.1 firmware, please let me know if you try it.
IF there is an ENG build, it is marked "ENG" for testing purposes only. It's your phone, you can install anything you want, but I do not recommend installing the ENG build. Use the "USER" or "USERDEBUG" builds.
If desired. Personally, I've gone Gapp-less.
Installation instructions: (DIFFERENT THAN NORMAL! DONE THROUGH FASTBOOT!)
- Download the zip file for AOSP 9.
- Unzip the zip file, and you will find 5 images.
- If using Windows, put these in your folder you use for fastboot, if using Linux, you can do this from any folder.
- Reboot the phone into bootloader/fastboot mode.
- Flash them to your phone, like so (example for Linux)
$ fastboot flash boot ./boot.img $ fastboot flash oem ./oem.img $ fastboot flash system ./system.img $ fastboot flash userdata ./userdata.img $ fastboot flash vendor ./vendor.img $ fastboot reboot
If you want Google Apps, Magisk, or other add ons:
-Download Gapps, and put them on your removable sdcard storage. (Or leave on your computer and flash with adb sideload.)
-Reboot into the bootloader.
-Fastboot boot your TWRP.
If you plan to install magisk, then let the rom boot once with Gapps, then go back to TWRP and flash magisk. I recommend making a backup of at least the boot partition first. Magisk is optional, of course. And you do so at your own risk!
So far these things that I have tried work, such as - Display/touch - Camera (front and back) for pictures and video! - Phone calls - Data 3g/LTE - Bluetooth - WiFi - Sound in system, in calls, over bluetooth devices - MicroSD card (external SD card). - GPS - Fingerprint sensor - Camera Button launches camera and takes photos etc....
- MTP and PTP connections to a PC sometimes cause the phone to crash - FM Radio does not work - The built in Gallery cannot play back recorded videos from camera. VLC or other apps work fine though. - Nothing else that I know of, but let me know if you find something!
Device, kernel, and vendor trees: https://github.com/sonyxperiadev
My GitLab: https://gitlab.com/alaskalinuxuser/
ROM OS Version: 9.0 Pie
ROM Kernel: Linux 4.9.194
Based On: Android Open Source Project
Last Updated 2019-10-04