• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[Oreo 8.1.X][XA2 Ultra - H4213] Android Open Source Project

davidteri91

Inactive Recognized Developer
Jul 27, 2012
2,357
8,582
0
29
Cinisello Balsamo
This is AOSP for Sony Xperia XA2 Ultra (Discovery) (H4213)

SonyAosp build will always mainly based on AOSP with some Material stuff

Code:
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */
Code:
IMPORTANT: Make sure you have an unlock Bootloader

Please if you have Locked Bootloader you may check this http://developer.sonymobile.com/unlockbootloader/
Code:
WORKING
- RIL
- Mic
- Sound (Speaker and Headset)
- LED
- Thermal Manager
- Audio and Video Decoders/Encoders
- Camera (WIP)
- Recovery (Only for flash signed zips)

XDA:DevDB Information
[Oreo 8.1.X][XA2 Ultra - H4213] Android Open Source Project, ROM for the Sony XA2 Ultra

Contributors
davidteri91
Source Code: http://Github.com/SonyAosp

ROM OS Version: 8.x Oreo
ROM Kernel: Linux 4.x
ROM Firmware Required: Unlocked Bootloader
Based On: AOSP

Version Information
Status: Stable

Created 2018-03-25
Last Updated 2018-03-25
 

davidteri91

Inactive Recognized Developer
Jul 27, 2012
2,357
8,582
0
29
Cinisello Balsamo


This ROM has included GAPPS

Steps for Flash

Code:
[FONT="Arial"][SIZE="3"]   fastboot flash oem xxxxx.img  [/SIZE][/FONT]
[FONT="Arial"][SIZE="3"]   fastboot flash vendor vendor.img  [/SIZE][/FONT]
[FONT="Arial"][SIZE="3"]   fastboot flash boot boot.img  [/SIZE][/FONT]
[FONT="Arial"][SIZE="3"]   fastboot flash system system.img  [/SIZE][/FONT]
[FONT="Arial"][SIZE="3"]   fastboot flash userdata userdata.img  [/SIZE][/FONT]
Please make sure your device is updated to latest sony software present on flashtool due to loader requeriments

To flash oem partition you should download odm.img from https://developer.sony.com/develop/open-devices/latest-updates/

You don't need flash userdata everytime .... only first time ..... userdata.img will wipe your data... you may be adviced
 
Last edited:

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
Question: Is it possible the boot.img may work on the XA2 H3123 model? I am looking for a boot.img file to patch with magisk, and currently Flashtool doesn't support the Hxxxx models
 
G

GuestK00219

Guest
that question was a brain fart on my side :D somehow i thought this was a treble rom. nevermind, thanks anyway. i'm expecting xa2 to be delivered tomorrow and treble roms support aosp features only so no camera button i guess
 

davidteri91

Inactive Recognized Developer
Jul 27, 2012
2,357
8,582
0
29
Cinisello Balsamo
that question was a brain fart on my side :D somehow i thought this was a treble rom. nevermind, thanks anyway. i'm expecting xa2 to be delivered tomorrow and treble roms support aosp features only so no camera button i guess
With a patch (included in this rom) you will be able to enable cam with cam button even if the device is in sleep mode .... Also can take pictures with it ..... Just wait to the release tonight ....

Sent from my Xperia XZ1 (AOSP) using Tapatalk
 
  • Like
Reactions: li0nh3art3d

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
I know practically nothing about code.

Will this boot img work on the regular XA2? I'm looking for a boot.img file to patch in order to gain root access on my 5.2" XA2. The devices are practically the same, the only differences in hardware are a slightly bigger battery, bigger screen, extra GB of RAM, and an extra camera/flash on the front. but other than that, and the model number being different, they are basically the same device.

Thanks for the hard work!
 

mirco_pa

Senior Member
Oct 19, 2012
417
135
0
I know practically nothing about code.

Will this boot img work on the regular XA2? I'm looking for a boot.img file to patch in order to gain root access on my 5.2" XA2. The devices are practically the same, the only differences in hardware are a slightly bigger battery, bigger screen, extra GB of RAM, and an extra camera/flash on the front. but other than that, and the model number being different, they are basically the same device.

Thanks for the hard work!
No, XA2 Ultra's boot.img won't work on regular XA2. Furthermore the boot.img you can extract from this ROM is specifically compiled for AOSP rom, so I doubt that it will work with Sony's stock rom.
 
  • Like
Reactions: li0nh3art3d

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
Noob question:

What are the advantages of a pure AOSP vs sony's AOSP base ROM? (besides 8.1 vs 8.0 obviously)

My understanding is Sony's ROMs are much more based on AOSP than say...Samsung TouchWiz.

Sorry for my noobishness. This is my first Sony device.
 

davidteri91

Inactive Recognized Developer
Jul 27, 2012
2,357
8,582
0
29
Cinisello Balsamo
Noob question:

What are the advantages of a pure AOSP vs sony's AOSP base ROM? (besides 8.1 vs 8.0 obviously)

My understanding is Sony's ROMs are much more based on AOSP than say...Samsung TouchWiz.

Sorry for my noobishness. This is my first Sony device.
If you want always all working then rest on Sony stock firmware ... This rom is for have newer Android versions like pixel devices .... But not ever these kind of roms have all working because is ever in WIP state

Sent from my Xperia XZ1 (AOSP) using Tapatalk
 

mchlbenner

Elite Member
Jul 1, 2008
3,381
841
0
Any indication if this will work with the other flavors of xa2 ultra? H4213 is specified, will it work with H4233, H3223, H3212?
Nope and aosp release usa model H3223 was not released.
H3213 was released.


Sent from my LEX720 using xda premium
 
Last edited: