yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XA2 Guides, News, & Discussion] jimzhong:
I also want the Night Light feature.
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
Soon the Flashtool will support it. Most likely in the next release
[Sony Xperia XA2 Guides, News, & Discussion] mirco_pa:
Check this article here to enable night light on latest update even without root
[Sony Xperia XA2 Guides, News, & Discussion] :
i have built github.com/sonyaosp but there are bugs so i won't upload it yet. camera is giving FC's all the time even without opening the app and i can hear audio restarting every few seconds. wifi connectivity is even worse than on stock rom, it's mostly disconnected.
[Sony Xperia XA2 Guides, News, & Discussion] maksi1plus:
I successfully unlocked the bootloader and got root, I did it on firmware 50.1.A.4.76, now I do not get an update from Sony, where can I download a new firmware and update without losing my data? Thank you:)
[Sony Xperia XA2 Guides, News, & Discussion] don_ernesto:
my H3120 (from us amazon) has not received march update yet, is there a way to force the update? as it is a requisite for the procedure described
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
settings>system>software update

not sure if it'll update like that on an unlocked bootloader though.
[Sony Xperia XA2 Guides, News, & Discussion] mirco_pa:
Nope, we're waiting for a Flashtool update in order to be able to manually flash firmwares using FTF files.
[Sony Xperia XA2 Guides, News, & Discussion] don_ernesto:
yes, i was checking in https://xpericheck.com/device/H3123 but im not sure if "Customized GEL" works for the us version (there is a previous Customized US which makes more sense)
[Sony Xperia XA2 Guides, News, & Discussion] mirco_pa:
Don't take it necessarily true, but I think that there shouldn't be much difference between Customized US and GEL as long as they're both meant for H3123: the only differences you can find are preinstalled apps and stuff like this. When a new Flashtool version comes out you'll be able to switch to a customized version that receives updates faster than the one you have installed now (for example you'll be able to remove carrier customization from your device)
[Sony Xperia XA2 Guides, News, & Discussion] Meloferz:
My Xperia X used to be Customized US, and flashed Customized GEL and no problem. But... If you use VoLTE on T-Mobile and AT&T (I think that I read that they have to, I don't remember well), and flash Customized GEL, you will lose that feature (I don't know if doens't work already after unlocking bootloader)

Tomorrow will arrive my Xperia XA2 from USA :)
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
I'm on T mobile USA on H3123 customized US, and VoLTE is not an available feature on this device, so it's of no loss to use customized GEL
[Sony Xperia XA2 Guides, News, & Discussion] don_ernesto:
for those who land to this thread, it seems there is some interesting activity in the Ultra forum:

Official TWRP in xda forum

TWRP page
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
I successfully installed this however it's important to note that I believe the author on that page meant adb sideload, not push, which is done in TWRP, and once it's done, it's important to switch to partition A instead of partition B. Also, Magisk zip will need to be installed again in TWRP.
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
I tried to install the twrp but it gives me this error:

FAILED (remote: No such partition.)
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
You're doing it wrong bro. You don't flash it in fastboot, you only boot it up and sideload the zip. read my post

'fastboot boot twrp.img', once you're booted, you can adb sideload it under the advanced options in TWRP, if you want to install it to your device and use it without your pc. If you do so, you'll lose root, which you can get back by installing the magisk.zip in TWRP
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
thank you so much, now I installed it but I have another problem ... it restarts only in twrp :crying:
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
once you're in twrp, you can go to the advanced menu and do adb sideload, and do 'adb sideload twrp.zip'

Then go to the install menu in twrp and flash magisk.zip. once you do that, go to the reboot menu and choose 'partition A' and reboot to system

after that you will successfully have both twrp and root in your device :good:

hit thanks if it works :good:
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
now I restarted and is stuck for 10 minutes on the written sony ... I'm in a panic

I managed to turn it off but every time I start it I get stuck on the sony screen
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
what all exactly did you do? from when you got the error message, what fastboot commands did you run?

what is your device model number?

try 'fastboot getvar all' and copy your output
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
fastboot boot twrp.img

twrp installed itself correctly, crashed after I hit "slot b" ​​and restarted the phone. however emma recognizes me, if there is no solution to restore it, it is not a problem
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
try 'fastboot boot twrp.img' then go to reboot, but hit slot A, not B.

whenever you fastboot boot twrp.img, you are not installing it to the device, only running it. To install it, you must adb sideload twrp.zip, and then install magisk.zip, then reboot to slot A
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
now I have restored because I need the phone soon but the problem was solved. thank you very much for your patience :good::good::good:
[Sony Xperia XA2 Guides, News, & Discussion] robjbw:
Anyone knows when LineageOS will be available for our XA2?
[Sony Xperia XA2 Guides, News, & Discussion] piezan:
HELP

Ok I cannot seem to even get my pcs to recognize the phone in adb or fastboot. I tried both my laptops, one has win 7 one has 10. I tried lots of drivers ans no luck. ?
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
I had to download the driver for the XZ2

go into the device manager, update driver, select Android device, update driver, select driver, have disk, browse, navigate to the folder where you extracted the zip drivers for the XZ2, select the ini file.

that's what worked for me

https://developer.sony.com/develop/drivers/
[Sony Xperia XA2 Guides, News, & Discussion] piezan:
That's for the quick reply. So I do that after the phone is in bootloader mode? Last night I tried uninstalling everything relates to android and now I cannot even get adb devices. Getting a bit upset with the while mess.
[Sony Xperia XA2 Guides, News, & Discussion] Sponge420:
hey I bricked my Xperia xa2 I been looking all over the internet for a rom or a firmwares I tried flashtool but it find my ff files after i would exact them. Can someone upload a backup or rom i can use thanks.
[Sony Xperia XA2 Guides, News, & Discussion] Meloferz:
Go to this thread https://xdaforums.com/showthread.php?t=3619426

Flashed my phone with that tool

Enviado desde mi H3123 mediante Tapatalk
[Sony Xperia XA2 Guides, News, & Discussion] piezan:
thanks for this. i tried another computer and got it to find the phone, now problem is it says locked state. I have the unlock code, just dont know where to put it in.
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
download and install this tool:

https://xdaforums.com/showthread.php?t=2317790

also, make sure you have developer options enabled and oem unlocking enabled in the developer options settings menu.

---------- Post added at 02:39 PM ---------- Previous post was at 02:37 PM ----------

you need to get newflasher and Xperifirm
[Sony Xperia XA2 Guides, News, & Discussion] piezan:
i am chatting with sony and here is what she said.....

hello, i am trying to unlock my xperia xa2 ultra and connot continue with the code i was given, because i have no where to insert it

Paula C

Hello Mike.

Ok I will be more than happy to assist you, however, to be able to do so, first we need you to provide us with your full name, E-mail address, mobile operator, as well as your phone number. This is in order to assist you on a faster and more efficient way.

mike

its factory unlocked . mike carbone, mikecarbone76@gmail.com

h3223

Paula C

Thank you for the information, so as I understand you are not able to unlock the bootloader, right?

mike

yes, it says that it is ready to unlock in the service info and i have a code, but i am not receiving the email followup to continue

i tried 3 emails and nothing

Paula C

Okay, I understand your situation.

Give me a second I will do my best, Mike.

mike

thank you

Paula C

Mike, I was checking my system and according with the model you have, it is not able to unlock the bootloader.

mike

any idea why?

Paula C

Actually that is internal information, Mike.

mike

that is the reason i bought the phone, to have unlocked.

Read

Paula C

I understand you, Mike It is only possible to unlock the boot loader for certain releases (depending on operator restrictions).
[Sony Xperia XA2 Guides, News, & Discussion] serajr:
You can check yourself if device has bootloader unlock feature in the Service Menu:

- Enter the code below into the dialer:

*#*#7378423#*#*

You can also enter in the Service Menu with this adb shell command (2018 devices only):

am start -n com.compal.sony.servicemenu/.ServiceMenuMainActivity

- Now select Service info > Configuration and check for Rooting status:

Bootloader unlock allowed: Yes
[Sony Xperia XA2 Guides, News, & Discussion] piezan:
that is exactly what i see, but i am unable to unlock the bootloader or flash the boot.img i patched with unsin. never had a sony, always had easy note devices. when i try and flash the patched boot img, it says locked state, so i need to know how to unlock. walk through for newbs i spose
[Sony Xperia XA2 Guides, News, & Discussion] serajr:
Then you are able to unlock the bootloader, and for this, you need the device to be recognized in the fastboot mode (proper install the drivers).

Did you already install flashmode and fastboot drivers? Part 1: Preparation - Step 3!
[Sony Xperia XA2 Guides, News, & Discussion] piezan:
I did yes. I am totally ready, i have it now recognized in adb and fastboot.
[Sony Xperia XA2 Guides, News, & Discussion] serajr:
Ok, download and install Minimal ADB and Fastboot (as [MENTION=7426713]li0nh3art3d[/MENTION] suggested you above), and follow sony's unlock bootloader guide (step 4 only)
[Sony Xperia XA2 Guides, News, & Discussion] piezan:
tried it and getting an error

incorrect format for unlock data

here's my breakdown

adb reboot bootloader

fastboot devices

fastboot -i 0x0fce oem unlock 0x (and my code)
[Sony Xperia XA2 Guides, News, & Discussion] serajr:
Unfortunately I can not help you from that point on. Double Check the steps again (and again)!
[Sony Xperia XA2 Guides, News, & Discussion] piezan:
got it unlocked, i was putting the imei number instead of the unlock code.... now when rebooting it says "your device cannot be checked for corruptions, please lock the bootloader. i cant win here.
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
That's normal. That just means your bootloader has been successfully unlocked.
[Sony Xperia XA2 Guides, News, & Discussion] piezan:
THANKS! now i can root it! i appreciate the help today
[Sony Xperia XA2 Guides, News, & Discussion] Sponge420:
Thanks Man, I will try it out.
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
I do not understand the passage of the partition.zip .... I do not have this file, I downloaded with xperifirm but there isn't...where am I wrong? :(
[Sony Xperia XA2 Guides, News, & Discussion] Meloferz:
There is no more partition zip, just the file... Create the partition folder anda move the partition file

Enviado desde mi H3123 mediante Tapatalk
[Sony Xperia XA2 Guides, News, & Discussion] :
i have built https://github.com/SonyAosp for XA2 H4113.

if you'd like to try it and you have an unlocked bootloader just unzip this:

https://basketbuild.com/devs/frantisheq/pioneer/sonyaosp

and follow steps 6 and 7:

https://developer.sony.com/develop/...-instructions/build-aosp-nougat-8-1-oreo-4-4/
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
It says me:

Repartitioning...

Processing partition.sin

- setting up infflate...

- Could not open C:\Users\PC-MASSIMO\Desktop\XA2\H3113_Customized IT_1312-7152_50.1.A.5.59_R2A\partition\converted.file for write!

Set slot 'a' active.

Device is put now out of flash mode.

End. You can disconnect your device when you close newflasher.exe
[Sony Xperia XA2 Guides, News, & Discussion] inestion:
Thank you, does it include gapps?
[Sony Xperia XA2 Guides, News, & Discussion] :
yes
[Sony Xperia XA2 Guides, News, & Discussion] makotech222:
So, now that i have root, i'm trying to uninstall a bunch of those dumb system apps like amazon and facebook. I used the system app remove (root) app, but the apps keep reinstalling themselves. Anyone know what is doing that?
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
when you uninstall them, try rebooting right away.
[Sony Xperia XA2 Guides, News, & Discussion] serajr:
Magisk bind mounts some system folders in boot stage, and those folders contents keep preserved if you perform changes while device up and running.

If you want to get rid of some system apps, i mean, delete folders, you need to do that while on twrp recovery (mount system > advanced > file manager > ...).
[Sony Xperia XA2 Guides, News, & Discussion] Sponge420:
Dolby Atmos

I have my xperia xa2 rooted but the sounds out of the headphones are not that good. I was trying to download the dolby atmos mod but, cant seem to get it working. It will either crash or get a bootloop. Anybody got a working Dolby atmos mod or any other mod? Thanks.
[Sony Xperia XA2 Guides, News, & Discussion] don_ernesto:
Guys, after you unlocked (and maybe rooted). did you receive the 50.1.A.5.59 update? or were you able to install it somehow? (just checking on upgradeability after root)
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
No ?
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
Yeah you can download it with Xperifirm and install it with NewFlasher, BUT if you do, Xposed won't work anymore, and the baseband won't downgrade either so there's no going back once you install it.
[Sony Xperia XA2 Guides, News, & Discussion] :
fingers crossed, boot.img built, here we go...

frantisheq@ubuntu:~/Documents/android/lineageos$ make -j16 bacon

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=8.1.0

TARGET_PRODUCT=lineage_pioneer

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

...

EDIT: still building, 98% done

EDIT2: lineage recovery working, i can't boot system though. i'll try to make new eng build with and without verity, hopefuly at least adb will work

EDIT3: it doesn't, but there is battery charging animation

got adb working, some libs missing
[Sony Xperia XA2 Guides, News, & Discussion] makotech222:
Does anyone know if Xposed works with the XA2?
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
It works with 50.1.A.4.102 and 50.1.A.4.76 firmware. Will bootloop on 50.1.A.5.59 (latest update)
[Sony Xperia XA2 Guides, News, & Discussion] axxx007xxxz:
I'm not sure, but I think you may need to include bootctrl in your build: https://github.com/LineageOS/android_hardware_qcom_bootctrl/tree/lineage-15.1.

It's there in TWRP: https://github.com/TeamWin/android_device_sony_pioneer/blob/android-8.1/omni_pioneer.mk#L49-L56 and https://github.com/TeamWin/android_device_sony_pioneer/tree/android-8.1/bootctrl.
[Sony Xperia XA2 Guides, News, & Discussion] :
yes i had to add it to device tree
[Sony Xperia XA2 Guides, News, & Discussion] axxx007xxxz:
Does DRM keys get erased when unlocking bootloader of XA2?

I read that on older devices, camera was no longer working on stock firmware after unlocking the bootloader.
[Sony Xperia XA2 Guides, News, & Discussion] :
drm keys will be erased, camera still works. you'll loose ota updates
[Sony Xperia XA2 Guides, News, & Discussion] makotech222:
Wow, installing xposed really wrecked my phone :P I got bootloop after the Xperia logo, and had to fastboot boot TWRP.img again to get to TWRP, then the xposed uninstaller didn't work. I have TWRP, but now it won't boot into my stock rom :(

Edit: Ugh. Does anyone have the stock rom i can download and flash to my device? Its stuck in bootloop into TWRP. Preferably one from older firmware version? I dont think i had the latest 5.59 firmware. I had Magisk installed on my phone successfully. I think i had 50.1.A.4.102. [MENTION=7426713]li0nh3art3d[/MENTION] any help?
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
if it's bootlooping twrp, you probably just need to boot slot a from twrp. if you bricked though it's likely you're on 50.1.A.5.59.. You can check on Xperifirm. Maybe you still have the older one on your pc, but if you don't you can just get 50.1.A.5.59 though, although Xposed definitely won't work on it until there's an update..

run the command 'fastboot getvar all' and copy your output here. Once you upgrade the baseband, there's no going back unfortunately, and Xposed won't work until it's updated

I may mention Xposed worked on 50.1.A.4.102 By installing via the Xposed installer apk (with magisk root) but I'm not sure if it makes a difference whether flashing it in twrp or with the installer & root.
[Sony Xperia XA2 Guides, News, & Discussion] makotech222:
Interesting. Guess i was on that version:

version-baseband:1311-2921_50.1.A.5.59

(bootloader) version-bootloader:1310-0301_X_Boot_SDM630_LA1.0_O_120

So basically, i just need to use xperifirm and newflasher to reflash my device?
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
yep, just Xperifirm the 50.1.A.5.59 firmware and flash with newflasher. Xposed won't work until it's updated unfortunately.

I had the older firmware, tried to downgrade after updating, the bootloader downgrades but the baseband stays on 50.1.A.5.59, which causes a bootloop... I'm guessing there's something that prevents lower versions of the baseband from overwriting the newer one. But the phone won't boot if I try downgrading.
[Sony Xperia XA2 Guides, News, & Discussion] makotech222:
Okay i was able to restore, thankfully. Guess ill wait for Xposed update.
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
I'm so frustrated that the baseband doesn't downgrade... I hope the new Xposed doesn't take 6 months to a year like it did when nougat came out. The new security patch seems to have really done a number on Xposed framework... on all devices. I'd gladly sacrifice security for Xposed. It was so perfect using GravityBox until I decided to flash the update ?*♂️
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
hi, can I ask you if my process is right to use newflasher? once the firmware has been downloaded from xperifirm copy all the newflasher files in the firmware folder. at this point I start newflasher or is there some firmware files that is better to delete? like the .ta files

thank you so much
[Sony Xperia XA2 Guides, News, & Discussion] makotech222:
Yup i downloaded the firmware folder from xperifirm, copied newflasher into the firmware folder, and ran it. I didn't mess with any of the files.
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
it gives me this error :confuso:

--------------------------------------------------------

newflasher.exe v13 by Munjeni @ 2017/2018

--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

Available space to caller = 105870 MB

Total space on current drive = 151716 MB

Free space on drive = 105870 MB

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.

This creates GordonGate.7z archive in the same dir with newflasher.exe!

N

Device path: \\?\usb#vid_0fce&pid_b00b#5&10ef021e&0&5#{a5dcbf10-6530-11d2-901f-00c04fb951ed}

Class Description: SOMC Flash Device

Device Instance Id: USB\VID_0FCE&PID_B00B\5&10EF021E&0&5

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.

Do in mind this doesn't dump drm key since sake authentifiction is need for that!

N

Product: H3113

Version: 0.4

Bootloader version: 1310-0301_X_Boot_SDM630_LA1.0_O_120

Baseband version: 1311-2845_50.1.A.5.59

Serialno: CQ30008TV4

Secure: no

Loader version: XFL-SDM630-113

Phone ID: 0000:35276509062147

Device ID: 194E8F26

Platform ID: 000AC0E1

Max download size: 104857600

Sector size: 512

Rooting status: ROOTED

Ufs info: FAILUfs-info not supported

Emmc info: MICRON,0x014e,0x0

Default security: ON

Keystore counter: 2

Security state: TvF2l+0Or40aQudMdC8LLMt1auy6bg2DtGVLnpGqPyk=

Sake root: A672

S1 root: S1_Root_70f0

Root key hash: 5F01088791F1DDAD20DB0DF59453943E4D275929A01705C83502AD5403F9010F

Slot count: 2

Current slot: a

Device is put now in flash mode.

No .sin files in partition dir...

You must extract partition.zip into 'partition' folder if you want flash partition image!

On 2018 models you must move partition sin file to 'partition' folder if you want flash partition image!

Processing .sin files...

Impossibile trovare il file specificato.

FAILURE to create output folder flash_session!

Set slot 'a' active.

Device is put now out of flash mode.

End. You can disconnect your device when you close newflasher.exe

Premere un tasto per continuare . . .
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
That's because the firmware. sin files need to be in the same extracted directory as newflasher
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
putting all the files in the same folder gives me this error instead :confused:

--------------------------------------------------------

newflasher.exe v13 by Munjeni @ 2017/2018

--------------------------------------------------------

Determining available free space by GetDiskFreeSpaceEx:

Available space to caller = 100141 MB

Total space on current drive = 151716 MB

Free space on drive = 100141 MB

Optional step! Type 'y' and press ENTER if you need GordonGate flash driver, or type 'n' to skip.

This creates GordonGate.7z archive in the same dir with newflasher.exe!

n

Device path: \\?\usb#vid_0fce&pid_b00b#5&10ef021e&0&5#{a5dcbf10-6530-11d2-901f-00c04fb951ed}

Class Description: SOMC Flash Device

Device Instance Id: USB\VID_0FCE&PID_B00B\5&10EF021E&0&5

Optional step! Type 'y' and press ENTER if you want dump trim area, or type 'n' and press ENTER to skip.

Do in mind this doesn't dump drm key since sake authentifiction is need for that!

n

Product: H3113

Version: 0.4

Bootloader version: 1310-0301_X_Boot_SDM630_LA1.0_O_120

Baseband version: 1311-2845_50.1.A.5.59

Serialno: CQ30008TV4

Secure: no

Loader version: XFL-SDM630-113

Phone ID: 0000:35276509062147

Device ID: 194E8F26

Platform ID: 000AC0E1

Max download size: 104857600

Sector size: 512

Rooting status: ROOTED

Ufs info: FAILUfs-info not supported

Emmc info: MICRON,0x014e,0x0

Default security: ON

Keystore counter: 2

Security state: TvF2l+0Or40aQudMdC8LLMt1auy6bg2DtGVLnpGqPyk=

Sake root: A672

S1 root: S1_Root_70f0

Root key hash: 5F01088791F1DDAD20DB0DF59453943E4D275929A01705C83502AD5403F9010F

Slot count: 2

Current slot: a

Device is put now in flash mode.

Repartitioning...

Processing adspso_X-FLASH-ALL-18AE.sin

- setting up infflate...

- Could not open C:\Users\PC-MASSIMO\Desktop\XA2\H3113_Customized IT_1312-7152_50.1.A.5.59_R2A\partition\converted.file for write!

Set slot 'a' active.

Device is put now out of flash mode.

End. You can disconnect your device when you close newflasher.exe

Premere un tasto per continuare . . .
[Sony Xperia XA2 Guides, News, & Discussion] li0nh3art3d:
try right clicking newflasher.exe and running as administrator. make sure also that you have the boot folder in the same directory.
[Sony Xperia XA2 Guides, News, & Discussion] matitino:
these are the folders as they arise ... I had already tried to start it as an administrator but the same errors ...