ROM: Sony AOSP 8.1 (H3113) (unofficial)

Search This thread

axxx007xxxz

Senior Member
Jul 1, 2014
1,221
819
World
yb8CWzl.png

Sony AOSP project

Disclaimer
I'm not liable for anything YOU do to YOUR device, YOU are doing it and it's YOUR device.


What is it?
It's a project developed and maintained by Sony Xperia Developers team.
You can get more informations here: https://developer.sony.com/develop/open-devices/


Can I build it by myself?
Sure, just follow these instructions and have patience!


What works and what doesn't?
According to this official page, almost everything seems to be fine.


How can I flash it?
Follow these steps:
  1. Unlock the bootloader (this will erase your data and will void warranty): https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
  2. Setup fastboot on your PC (there are many guides for this step)
  3. Download and unpack the zip archive
  4. Open a shell into the folder containing unpacked files
  5. Run these commands:
    • fastboot flash boot boot.img
    • fastboot flash system system.img
    • fastboot flash vendor vendor.img
    • fastboot flash userdata userdata.img (it’s not necessary to flash userdata every time)
  6. Download and unpack the corresponding vendor image from here: https://developer.sony.com/develop/open-devices/downloads/software-binaries
  7. Open a shell into the folder containing unpacked image
  8. Run this command:
    • fastboot flash oem SW_binaries_for_Xperia_xxxxx.img (where "xxxxx" varies depending on the file)
  9. (optional) In case you want to flash GApps, Magisk or other mods, you can use TWRP: https://forum.xda-developers.com/xa2-ultra/development/recovery-twrp-3-2-1-0-touch-recovery-t3774193
  10. Reboot the device and enjoy!


Download link
You can get the builds from my AFH folder: https://androidfilehost.com/?w=files&flid=269497.
I haven't done any change to Sony's source code, these are vanilla builds.


Credits
All credits go to Sony and Google.

XDA:DevDB Information
Sony AOSP, ROM for the Sony XA2 Ultra

Contributors
axxx007xxxz
Source Code: https://github.com/sonyxperiadev

ROM OS Version: 8.x Oreo
ROM Kernel: Linux 4.x
Based On: AOSP

Version Information
Status: Testing

Created 2018-05-08
Last Updated 2018-05-08
 

axxx007xxxz

Senior Member
Jul 1, 2014
1,221
819
World
Reserved

NOTE: I'm in no way associated with Sony, these are unofficial builds and are made for pesonal usage.
Also, these builds are untested so I can't assure they're going to work!
 
  • Like
Reactions: Meloferz

axxx007xxxz

Senior Member
Jul 1, 2014
1,221
819
World
New build

Build informations:
  • Build type: userdebug
  • Android revision: android-8.1.0_r20
  • CAF revision: LA.UM.6.4.r1
  • Last commit of sonyxperiadev/local_manifests: 81032020581dd636ab9d7f8414609bad07332288
  • Last commit of sonyxperiadev/kernel: 1df958f2943c6c5cae31018e42d2f42e8a55c4b3
  • Last commit of sonyxperiadev/device-sony-nile: c775da101d57377979cdcb79b1ba1b5bbd3739a4
  • Last commit of sonyxperiadev/device-sony-pioneer: 5b804c4aa86ca13653d2d692120437fa76f61ae9.

Download link: https://androidfilehost.com/?fid=818222786056029296.
 
Last edited:

Casserole

Senior Member
Jul 30, 2013
142
34
It always says "There's an internal problem with your device" after booting up. It's kinda annoying.

And it also does not accept my Samsung microSD card formatted on stock ROM and wants me to format it. I'm backing it up, and will try to format it later.

Fingerprint aslo does not work, but I'm fine with that at the moment.

If someone needs to know, I have H4113 (dual-sim variant of regular XA2).
 
Last edited:

roirraW "edor" ehT

Forum Moderator
Staff member
It always says "There's an internal problem with your device" after booting up. It's kinda annoying. And it also does not accept my Samsung microSD card formatted on stock ROM and wants me to format it.

Just information: I have the H3223 not H3213, and haven't tried to flash this, but on the Google Pixel (8.1) with at least some custom kernels and some versions of Magisk, the same "There's an internal problem with your device" when you boot up, but other than possibly having your phone screen on longer than it should, there are no actual problems on the Pixel. Could be for the same reason(s), whatever those reasons are. :) I'm not positive but I think that more recent versions of Magisk might not cause that message anymore. I use an old version of Magisk, but in my case the Pixel custom kernel I use causes that, too.
 

Casserole

Senior Member
Jul 30, 2013
142
34
I'm not positive but I think that more recent versions of Magisk might not cause that message anymore. I use an old version of Magisk, but in my case the Pixel custom kernel I use causes that, too.
I haven't flashed any magisks at the moment, so I don't think the problem are caused by it. But thanks anyway for the reply.
 

roirraW "edor" ehT

Forum Moderator
Staff member
I haven't flashed any magisks at the moment, so I don't think the problem are caused by it. But thanks anyway for the reply.

You're welcome! I'm not suggesting that you flashing Magisk or anything is the cause of this on this ROM, it's just related to changes in Android 8.1 and that it doesn't really necessarily mean there's something wrong. I'm sure there are ways around it, but since I'm not a developer and I don't know what triggers it, I don't know.
 

mirco_pa

Senior Member
Oct 19, 2012
417
135
Is fingerprint scanner not working for everyone or it is not working only for those with a fingerprint scanner made by a a different hardware maker?
 

axxx007xxxz

Senior Member
Jul 1, 2014
1,221
819
World
cool down dude !! XDA is not the correct please for these bad words. if you don't know what you are doing that is not the Developer fault and if you need no bugs stay with the stock ROM.
Thanks! With "almost everything seems to be fine", I meant that most of the main parts (should) work.
Camera is a known problem on Sony devices due to DRM keys getting erased on bootloader unlock.


It always says "There's an internal problem with your device" after booting up. It's kinda annoying.

And it also does not accept my Samsung microSD card formatted on stock ROM and wants me to format it. I'm backing it up, and will try to format it later.

Fingerprint aslo does not work, but I'm fine with that at the moment.

If someone needs to know, I have H4113 (dual-sim variant of regular XA2).
The SD card problem could be related to your phone being dual SIM: as the title says, these builds are for H3113 (single SIM variant).
You can try to set dual SIM properties in build.prop (you can do it with an app like this or a text editor if you have root access, otherwise I think it's doable through TWRP too):
Code:
persist.multisim.config=dsds
persist.radio.multisim.config=dsds
ro.telephony.default_network=9,1
then reboot the phone and test.
These come directly from H4113 makefile, I can't assure you everything will be fine after this, but you can give it a try.

As per the fingerprint, it's currently broken on all variants, I'm sorry.


Is fingerprint scanner not working for everyone or it is not working only for those with a fingerprint scanner made by a a different hardware maker?
Sony website reports it as currently not working on AOSP, I'm sorry.
 

Casserole

Senior Member
Jul 30, 2013
142
34
The SD card problem could be related to your phone being dual SIM: as the title says, these builds are for H3113 (single SIM variant).
You can try to set dual SIM properties in build.prop (you can do it with an app like this or a text editor if you have root access, otherwise I think it's doable through TWRP too):
I think SD card problem was related to something else, because it started working after reformatting.

But there were also problems with SIM card, it worked on first boot, but after removing and inserting it again device shown that there were no signal, so your solution may be helpful in this situation. I can't test it due to limited amount of time, though.
 

axxx007xxxz

Senior Member
Jul 1, 2014
1,221
819
World
New build

Build informations:
  • Build type: userdebug
  • Android revision: android-8.1.0_r26
  • CAF revision: LA.UM.6.4.r1
  • Last commit of sonyxperiadev/local_manifests: 1c992d7f3f2ef8d0b53397e23227e10489e40bec
  • Last commit of sonyxperiadev/kernel: ab6fd5b1a4126cfdd4391eefe8eba17eb6626781
  • Last commit of sonyxperiadev/device-sony-nile: 7d57c76da9ce47849429347e77e013781e63db2f
  • Last commit of sonyxperiadev/device-sony-pioneer: 5b804c4aa86ca13653d2d692120437fa76f61ae9.

Download link: https://androidfilehost.com/?fid=890278863836285554.
 
Last edited:

Nonstop decay

New member
May 19, 2018
1
0
Thanks axxx007xxxz for sharing these builds! They helped me recover Android on my completely wiped h3113 pioneer. Both the 8.0 and 8.1 build work for me. Downloading them to my PC was the hardest part, for some reason the download often fails.

I still have a couple of questions about these Sony AOSP builds that maybe you can answer:
1. Do you know what the Sony software binaries* do? I have flashed them on my device a couple of times, but I don't see anything added.
2. What is the difference between build type "userdebug" and "eng"?
3. If I use this build, how would you recommed I update it? Is the only way to flash in fastboot? (Like step 6 in Sony's guide**?)

Thank you!

Just information: I have the H3223 not H3213, and haven't tried to flash this, but on the Google Pixel (8.1) with at least some custom kernels and some versions of Magisk, the same "There's an internal problem with your device" when you boot up, but other than possibly having your phone screen on longer than it should, there are no actual problems on the Pixel. Could be for the same reason(s), whatever those reasons are. :) I'm not positive but I think that more recent versions of Magisk might not cause that message anymore. I use an old version of Magisk, but in my case the Pixel custom kernel I use causes that, too.
I get the same error message right after booting, also without root. It's annoying, but I guess I can live with it.

P.S. As I'm a new user, I cannot use links yet. Please use these footnotes instead:
*: https[colon]//developer[dot]sony[dot]com/develop/open-devices/downloads/software-binaries
**: https[colon]//developer[dot]sony[dot]com/develop/open-devices/guides/aosp-build-instructions/build-aosp-nougat-8-1-oreo-4-4/#tutorial-step-6
 
G

GuestK00219

Guest
1. parts of android which are closed source, graphics driver for example. you won't see them.
2. eng should give you more debugging options, like working adb logcat without enabling developer options which is sometimes needed while you're porting android to new device and there's just black screen on the phone for example. correct me if i'm wrong.
3. flashing worked through twrp for me but i had to build unsingned zip.

regarding the internal problem message, just ignore it.
 

axxx007xxxz

Senior Member
Jul 1, 2014
1,221
819
World
Can you build one for H4113? You shood have files for it too
Checking H4113 makefile, I don't see big differences except for a few properties: https://github.com/sonyxperiadev/device-sony-pioneer/blob/master/aosp_h4113.mk#L18-L22; you can try to set them (you can use an app like this) and check if you can get dual SIM to work.
I can make a H4113 build if you want to test it though.


Downloading them to my PC was the hardest part, for some reason the download often fails.
Unfortunately, Android File Host is problematic sometime.


I still have a couple of questions about these Sony AOSP builds that maybe you can answer:
1. Do you know what the Sony software binaries* do? I have flashed them on my device a couple of times, but I don't see anything added.
2. What is the difference between build type "userdebug" and "eng"?
3. If I use this build, how would you recommed I update it? Is the only way to flash in fastboot? (Like step 6 in Sony's guide**?)
Basically, what @frantisheq said.
I think you can flash IMG files through TWRP too if you extract the ZIP into your phone's memory.
 
  • Like
Reactions: Nonstop decay

davidhozic

Senior Member
Nov 18, 2017
430
68
Checking H4113 makefile, I don't see big differences except for a few properties: https://github.com/sonyxperiadev/device-sony-pioneer/blob/master/aosp_h4113.mk#L18-L22; you can try to set them (you can use an app like this) and check if you can get dual SIM to work.
I can make a H4113 build if you want to test it though.



Unfortunately, Android File Host is problematic sometime.



Basically, what @frantisheq said.
I think you can flash IMG files through TWRP too if you extract the ZIP into your phone's memory.
Yes plese make a build for H4413, i get so many random errors and every time i fix an error there appears another. And is the build for this model supposed to work with h4113? Aren't the boot images incompatible?
 

Top Liked Posts