[ROM][discovery][Pie][9.0] AOSP [Sony Open Devices Project]

Search This thread

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,946
4,079
Fairbanks
thealaskalinuxuser.wordpress.com
aosp.jpg

To God be the glory, a working AOSP ROM for those on both the 50.1 and the 50.2 firmware, Pie flavored! 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 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 Open Devices Project!​

The Sony Open Devices Project (SODP) is an initiative to build Android for phones while being as vendor binary large object (blob) free as possible. There are still a few vendor blobs used in this project, but the goal is to one day be vendor blob free. I don't know if that will ever fully happen, but it is nice to move in that direction. That said, 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.

Downloads:
Rom Download link:
Note: This is designed to work with any firmware version of the XA2 Ultra, because you flash a custom OEM partition. I've tested this on 50.1 and 50.2 firmware phones.
http://www.mediafire.com/folder/dl8dcra6ojog5/Sony Open Device Project
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.

There are two versions of the project, a vanilla AOSP without Google Apps, and a vanilla AOSP with Google Apps. I have tested both on my phone. If you want Google Apps, you cannot use the gappless version and then flash gapps, it doesn't work, you must use the gapps version if you want Google's apps.


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)
Code:
$ 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

Your phone will now boot into AOSP Pie!

If you plan to install magisk, then let the rom boot once, 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!


What works:
Code:
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
- MTP file transfer
etc....
What doesn't:
Code:
Gappless version:
- FM Radio does not work
- The built in Gallery app 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!

Gapps version:
- FM Radio does not work
- The built in Gallery cannot play back recorded videos from camera. VLC or other apps work fine though.
--But the Google Photos app can.
-The built in Google Camera app does not work, however, Open Camera, or other camera apps do.
- Nothing else that I know of, but let me know if you find something!

Source Code: https://source.android.com/
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

Created 2019-10-03
Last Updated 2019-10-24
 
Last edited:

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,946
4,079
Fairbanks
thealaskalinuxuser.wordpress.com
Changelog:
20191024
- Fixed MTP crash issue.

20191023
- Sync'd source and fresh rebuild
- Now have a "Gapps included" variant and a "Gappless" variant.

20191004
- Rebuilt kernel
- Fixed camera turning green or crashing
- Fixed general stability.

20191003
- First build, a bit unstable.
- Camera turns green.
- PTP, MTP cause crashes.
- FM Radio does not work.

Notes:
This ROM is very, very, vanilla. It is straight up AOSP. No frills, no mods, no extras. Just pure source.
I personally don't use Gapps anymore, but I did test that the gapps version boots up and connects. That's about all I test with Gapps, though.
I also don't use social media except XDA, so I don't know how well every app works. But if you have issues and have logs, perhaps I can look at them and see what is wrong.

Can I flash back to firmware 50.x.xxxx after flashing this?
Yes, you can. I flashed this and then flashed back to the 50.2 firmware several times while testing. As always, you assume full responsibility for your device, but it worked for me.

Issues/workarounds:
- Video playback from camera. Any camera videos you record work fine, but the built in player can't play them. I downloaded and used VLC app to play them and they work just fine. You can get VLC or other apps from the play store, or here: https://www.f-droid.org/en/packages/org.videolan.vlc/, or if you are using the Gapps included version, you can use Google Photo.
- If you are using the Gapps included variant, the built in Google Camera app does not work. However, using the playstore, I downloaded a number of camera apps, such as Open Camera, and they all worked. I'll try to look into it if I get time.
 

Attachments

  • b.png
    b.png
    239.6 KB · Views: 329
  • c.png
    c.png
    83.3 KB · Views: 333
  • d.png
    d.png
    160.6 KB · Views: 323
  • Screenshot_20191022-052809.jpg
    Screenshot_20191022-052809.jpg
    77.3 KB · Views: 203
  • Screenshot_20191022-052848.jpg
    Screenshot_20191022-052848.jpg
    135.5 KB · Views: 201
Last edited:
  • Like
Reactions: appleknight

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,946
4,079
Fairbanks
thealaskalinuxuser.wordpress.com
64 bit nano for pie

I installed AOSP, let it boot, downloaded 64 bit nano opengapps, fastbooted into TWRP, flashed the gapps via adb sideload, and rebooted. It didn't crash or hang up on me. However, I've noticed that it doesn't install the playstore app. I'm very confused. I tried this several times with pico, nano, micro, and mindthegapps. :confused:
 
  • Like
Reactions: Yodasgodfather
Jul 25, 2019
45
26
Google Pixel 5
I installed AOSP, let it boot, downloaded 64 bit nano opengapps, fastbooted into TWRP, flashed the gapps via adb sideload, and rebooted. It didn't crash or hang up on me. However, I've noticed that it doesn't install the playstore app. I'm very confused. I tried this several times with pico, nano, micro, and mindthegapps. :confused:

Thank you for looking into it? but yeah same I'm very confused as well but I believe I have found something that I'm not at all familiar with. I found this link that has someone that has a similar issue with the responder saying they can use "adb pull" command to flash Google factory images so it might be worth looking into?

https://stackoverflow.com/questions/41695566/install-google-apps-on-aosp-build
 
  • Like
Reactions: AlaskaLinuxUser

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,946
4,079
Fairbanks
thealaskalinuxuser.wordpress.com
Whoo-hoo! Praise God! Good traction on Android 10! After some tinkering with XOSD source, I've got a booting version of Android 10 with the new 4.14 kernel! Certainly not a daily driver by any means yet, but I'll keep tinkering. I'll add a few teaser shots as well. :victory:
 

Attachments

  • a10.png
    a10.png
    42.9 KB · Views: 118
  • b10.png
    b10.png
    232.5 KB · Views: 116
  • c10.png
    c10.png
    153.7 KB · Views: 116
Whoo-hoo! Praise God! Good traction on Android 10! After some tinkering with XOSD source, I've got a booting version of Android 10 with the new 4.14 kernel! Certainly not a daily driver by any means yet, but I'll keep tinkering. I'll add a few teaser shots as well. :victory:
Awesome look at you go! ?
 

lonewolfbtown

Senior Member
Jun 28, 2017
246
62
Phoenix
Whoo-hoo! Praise God! Good traction on Android 10! After some tinkering with XOSD source, I've got a booting version of Android 10 with the new 4.14 kernel! Certainly not a daily driver by any means yet, but I'll keep tinkering. I'll add a few teaser shots as well. :victory:

Hell yeah man. Thank God we still got one developer on the xa2 ultra threads.
 
Jul 25, 2019
45
26
Google Pixel 5
So I've messed with aosp a bit and have found a way to help make things easier. I've installed nanodroid which will give you micro g and it's service and more!

https://nanolx.org/nanolx/nanodroid

I haven't been able to figure it out but it has a setup wizard as well which does give you the option to install the official play store. If any one else can't get that to work then perhaps install osm(gapps) with fdroid and install the "fakegapps" xposed module to get signiture spoofing. Hope this helps?
 
  • Like
Reactions: AlaskaLinuxUser

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,946
4,079
Fairbanks
thealaskalinuxuser.wordpress.com
So I've messed with aosp a bit and have found a way to help make things easier. I've installed nanodroid which will give you micro g and it's service and more!

https://nanolx.org/nanolx/nanodroid

I haven't been able to figure it out but it has a setup wizard as well which does give you the option to install the official play store. If any one else can't get that to work then perhaps install osm(gapps) with fdroid and install the "fakegapps" xposed module to get signiture spoofing. Hope this helps?

Great work, and good find!

I am currently building this ROM again with built in gapps ... Hopefully, I can have that and an updated version of aosp that is gappless available tomorrow or the next day (so I can test it a bit). I spoke with a few guys on the SODP telegram channel, and they make aosp with gapps built in, so I thought I'd try that to see if that helps you guys who want to use this ROM with gapps.
 

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,946
4,079
Fairbanks
thealaskalinuxuser.wordpress.com
Good news!

I was able to build AOSP 9 with Gapps built in, and will be posing that once I get it uploaded. (It will take a long time, because I have slow internet.) I'm testing it out on my phone now, everything seems to work here. I will also be posting an update of the gappless version as well.
 

Attachments

  • Screenshot_20191022-052809.jpg
    Screenshot_20191022-052809.jpg
    77.3 KB · Views: 64
  • Screenshot_20191022-052848.jpg
    Screenshot_20191022-052848.jpg
    135.5 KB · Views: 64
Last edited:

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,946
4,079
Fairbanks
thealaskalinuxuser.wordpress.com
Thank you so much! I have been waiting for this but when do you think it will be available?

Good news! It is up and posted. Be sure to fully read Post #1, and Post #2 before proceeding.

I tested both the gapps included, and the non-gapps versions on my phone, both worked. With the Gapps version I was able to connect and download several apps, my emails synced, as did photos, etc....

For this rom, the things that I am actively working on are MTP/PTP computer connections.

Also, Android 10 is still in the works, it's just giving me a few fits at the moment, but I will keep working on it. I don't want to release a "half baked" rom, I would like it to be 95%+ functional before putting it up for you to use. Hopefully, that will not take forever. :fingers-crossed:
 

AlaskaLinuxUser

Senior Member
Oct 23, 2015
1,946
4,079
Fairbanks
thealaskalinuxuser.wordpress.com
Great news! Praise God! With some great guidance from @MartinX3, and a post by @oshmoun, I was able to apply a patch to the kernel that fixed MTP communications for transferring files to your PC! I have the builds now, and will upload them. My internet is really slow, so it will take a while....

The new builds have been uploaded, the 20191024 builds have working MTP for file transfers, and the OP has been updated! Enjoy! :cowboy:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    aosp.jpg

    To God be the glory, a working AOSP ROM for those on both the 50.1 and the 50.2 firmware, Pie flavored! 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 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 Open Devices Project!​

    The Sony Open Devices Project (SODP) is an initiative to build Android for phones while being as vendor binary large object (blob) free as possible. There are still a few vendor blobs used in this project, but the goal is to one day be vendor blob free. I don't know if that will ever fully happen, but it is nice to move in that direction. That said, 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.

    Downloads:
    Rom Download link:
    Note: This is designed to work with any firmware version of the XA2 Ultra, because you flash a custom OEM partition. I've tested this on 50.1 and 50.2 firmware phones.
    http://www.mediafire.com/folder/dl8dcra6ojog5/Sony Open Device Project
    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.

    There are two versions of the project, a vanilla AOSP without Google Apps, and a vanilla AOSP with Google Apps. I have tested both on my phone. If you want Google Apps, you cannot use the gappless version and then flash gapps, it doesn't work, you must use the gapps version if you want Google's apps.


    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)
    Code:
    $ 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

    Your phone will now boot into AOSP Pie!

    If you plan to install magisk, then let the rom boot once, 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!


    What works:
    Code:
    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
    - MTP file transfer
    etc....
    What doesn't:
    Code:
    Gappless version:
    - FM Radio does not work
    - The built in Gallery app 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!
    
    Gapps version:
    - FM Radio does not work
    - The built in Gallery cannot play back recorded videos from camera. VLC or other apps work fine though.
    --But the Google Photos app can.
    -The built in Google Camera app does not work, however, Open Camera, or other camera apps do.
    - Nothing else that I know of, but let me know if you find something!

    Source Code: https://source.android.com/
    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

    Created 2019-10-03
    Last Updated 2019-10-24
    3
    Whoo-hoo! Praise God! Good traction on Android 10! After some tinkering with XOSD source, I've got a booting version of Android 10 with the new 4.14 kernel! Certainly not a daily driver by any means yet, but I'll keep tinkering. I'll add a few teaser shots as well. :victory:

    Hell yeah man. Thank God we still got one developer on the xa2 ultra threads.
    3
    Whoo-hoo! Praise God! Good traction on Android 10! After some tinkering with XOSD source, I've got a booting version of Android 10 with the new 4.14 kernel! Certainly not a daily driver by any means yet, but I'll keep tinkering. I'll add a few teaser shots as well. :victory:
    2
    Whoo-hoo! Praise God! Good traction on Android 10! After some tinkering with XOSD source, I've got a booting version of Android 10 with the new 4.14 kernel! Certainly not a daily driver by any means yet, but I'll keep tinkering. I'll add a few teaser shots as well. :victory:
    Awesome look at you go! ?
    2
    So I've messed with aosp a bit and have found a way to help make things easier. I've installed nanodroid which will give you micro g and it's service and more!

    https://nanolx.org/nanolx/nanodroid

    I haven't been able to figure it out but it has a setup wizard as well which does give you the option to install the official play store. If any one else can't get that to work then perhaps install osm(gapps) with fdroid and install the "fakegapps" xposed module to get signiture spoofing. Hope this helps?

    Great work, and good find!

    I am currently building this ROM again with built in gapps ... Hopefully, I can have that and an updated version of aosp that is gappless available tomorrow or the next day (so I can test it a bit). I spoke with a few guys on the SODP telegram channel, and they make aosp with gapps built in, so I thought I'd try that to see if that helps you guys who want to use this ROM with gapps.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone