Unlocking Bootloader/Rooting

Davide.porcelli

Senior Member
Dec 24, 2006
69
11
0
47
Napoli
Get the firmware for your device off Xperifirm. Get UnSin and drag the Kernel sin file and drop over the unsin exe. This should make you a kernel img file you can fastboot flash to your device. After you do that, copy the same img to your device and patch it with magisk manager. then copy back to your adb directory and fastboot flash it, and you should have magisk root access - no bootloop
Ok, solved.
I flashed the stock ROM with EMMA (the software by Sony). Once the phone was up and running again, used the ROM downloaded with EMMA to extract the boot.img file, transfer it to the phone and patched it with Magisk, copied back to the PC and flashed with ADB.
Now everything is working fine.
Thank You all
 
  • Like
Reactions: roirraW "edor" ehT

makotech222

Senior Member
Jul 8, 2011
107
15
0
Ok, solved.
I flashed the stock ROM with EMMA (the software by Sony). Once the phone was up and running again, used the ROM downloaded with EMMA to extract the boot.img file, transfer it to the phone and patched it with Magisk, copied back to the PC and flashed with ADB.
Now everything is working fine.
Thank You all
I'm trying using EMMA now. It doesn't seem to recognize my XA2 is fastboot mode right now. Any tips?

Edit: Nvm got it connected by holding volume down key on boot. But I'm getting message from EMMA: No available services matched the connected device.
 
Last edited:

Davide.porcelli

Senior Member
Dec 24, 2006
69
11
0
47
Napoli
I'm trying using EMMA now. It doesn't seem to recognize my XA2 is fastboot mode right now. Any tips?

Edit: Nvm got it connected by holding volume down key on boot. But I'm getting message from EMMA: No available services matched the connected device.
I disconnected the phone from the PC and shut it down. After 30 seconds I held the volume down key and and kept it pressed while connecting the phone to the pc. And EMMA recnognized the phone without problem
 

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
Ok, solved.
I flashed the stock ROM with EMMA (the software by Sony). Once the phone was up and running again, used the ROM downloaded with EMMA to extract the boot.img file, transfer it to the phone and patched it with Magisk, copied back to the PC and flashed with ADB.
Now everything is working fine.
Thank You all
What model number is your device?
 

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
I'm trying using EMMA now. It doesn't seem to recognize my XA2 is fastboot mode right now. Any tips?

Edit: Nvm got it connected by holding volume down key on boot. But I'm getting message from EMMA: No available services matched the connected device.
That's exactly what happened to me. I never could get Emma to work. It seems like there's an issue between emma and the h3123

---------- Post added at 04:33 PM ---------- Previous post was at 04:28 PM ----------

Out of curiousity, how do i flash a new bootloader? I tried usual command, but didn't work:

target reported max download size of 536870912 bytes
sending 'bootloader' (50880 KB)...
OKAY [ 1.141s]
writing 'bootloader'...
FAILED (remote: Flashing is not allowed for partition
)
finished. total time: 1.156s
so it flashed part of the file. might aswell flash the modem.img and run the fastboot getvar all and see if you're on the latest bootloader. which bootloader.sin did you make an img from?
 

makotech222

Senior Member
Jul 8, 2011
107
15
0
Yeah the phone is supported, but i think it doesn't recognize mine because of mismatched versions and ****. I'm also trying this tool called FlashTool, but the firmware from xperifirm doesn't contain the loader.sin, which i think i need.
 

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,011
18,603
263
São Paulo - SP
Yeah the phone is supported, but i think it doesn't recognize mine because of mismatched versions and ****. I'm also trying this tool called FlashTool, but the firmware from xperifirm doesn't contain the loader.sin, which i think i need.
Flashtool does need fsc script indeed, also its dev stated that he will release a compatible version soon.
Did you already try munjeni's Newflasher? It's worth a try, but it's best to ask for compatibility with your device on its thread before attempting to use it!
 

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
Yeah the phone is supported, but i think it doesn't recognize mine because of mismatched versions and ****. I'm also trying this tool called FlashTool, but the firmware from xperifirm doesn't contain the loader.sin, which i think i need.
Flashtool doesn't support the HXXXX series of devices yet.

Try NewFlasher

https://forum.xda-developers.com/cr...gress-newflasher-xperia-command-line-t3619426

just put the exe in the Xperifirm firmware folder and boot into flash mode (vol-) and see if it'll flash the firmware..
 

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
I'd be really surprised if a new version of Flashtool doesn't come out in the next week, that supports 2018 devices. It's ****ty the original firmware isn't available on Xperifirm - only the march update. I guess we'll have to wait. It's also upsetting to me Emma doesn't support this device :mad:
 

mchlbenner

Senior Member
Jul 1, 2008
3,381
841
0
I'd be really surprised if a new version of Flashtool doesn't come out in the next week, that supports 2018 devices. It's ****ty the original firmware isn't available on Xperifirm - only the march update. I guess we'll have to wait. It's also upsetting to me Emma doesn't support this device :mad:
I would try a older flash tool the newer flash tool did work when I had my Sony xa ultra so used older one and it worked.



Sent from my LEX720 using xda premium
 

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,011
18,603
263
São Paulo - SP
Newflasher didn't seem to work either. Fails to flash couple of the firmware, as well as bootloader specifically.
I'm in contact with Newflasher's developer ( @munjeni friend of mine ) and he's already aware of new A/B partitioning platform (Seamless update) in which all 2018 sony devices have.
My 2 cents here... a Newflasher's fix may be necessary to get it working on XA2/Ultra devices (and in the near future for the XZ2/Compact too)!
 

munjeni

Senior Member
Jun 2, 2011
9,044
21,781
263
Newflasher didn't seem to work either. Fails to flash couple of the firmware, as well as bootloader specifically.
Sony changed protocol a bit, to be precise he done some more hash files per some sin files (e.g. system.sin have two hash files)... I will need URB output from the Device Monitoring Studio usb sniff log durind Sony PC Companion software flashing, hope somebody have skills for do that! You need to sniff usb packets while you use Sony PC Companion software (repair - flash your phone), and usb in DMS must be set to URB view, when flashing stops save URB view to your PC and give me it. Without usb sniff log (URB mode) from DMS I can't update newflasher since I have no idea what sony changed in protocol. If you provide me that I can update newflasher easy!

In picture you can see what I need, need complete log!
 

Attachments

Last edited:

li0nh3art3d

Senior Member
Apr 22, 2016
456
134
0
Texas ?
Sony changed protocol a bit, to be precise he done some more hash files per some sin files (e.g. system.sin have two hash files)... I will need URB output from the Device Monitoring Studio usb sniff log durind Sony PC Companion software flashing, hope somebody have skills for do that! You need to sniff usb packets while you use Sony PC Companion software (repair - flash your phone), and usb in DMS must be set to URB view, when flashing stops save URB view to your PC and give me it. Without usb sniff log (URB mode) from DMS I can't update newflasher since I have no idea what sony changed in protocol. If you provide me that I can update newflasher easy!

In picture you can see what I need, need complete log!
The problem I have is the PC companion won't flash anything because the bootloader is unlocked (it tells me this whenever attempting a 'software repair'
 
  • Like
Reactions: serajr

tombassi

Senior Member
Nov 18, 2011
421
134
43
Al Fashir
Sony changed protocol a bit, to be precise he done some more hash files per some sin files (e.g. system.sin have two hash files)... I will need URB output from the Device Monitoring Studio usb sniff log durind Sony PC Companion software flashing, hope somebody have skills for do that! You need to sniff usb packets while you use Sony PC Companion software (repair - flash your phone), and usb in DMS must be set to URB view, when flashing stops save URB view to your PC and give me it. Without usb sniff log (URB mode) from DMS I can't update newflasher since I have no idea what sony changed in protocol. If you provide me that I can update newflasher easy!

In picture you can see what I need, need complete log!
I don't know how you will deal with this but here it's, let me know if I did something wrong, looks like some ancient language.
 

Attachments

munjeni

Senior Member
Jun 2, 2011
9,044
21,781
263
I don't know how you will deal with this but here it's, let me know if I did something wrong, looks like some ancient language.
Thanks but your log is not enought since its too short! To be precise I need session where I can see whats going on with Sony last update to flashing protocol, e.g. SIN files which now have two hash files like system.sin ...
 

munjeni

Senior Member
Jun 2, 2011
9,044
21,781
263
Yes you are right @munjeni the program crashed while saving the file and the one I saved before that is too big for me to upload almost 4GB, I will try again later.

Sent from my H4213 using XDA-Developers Legacy app
No need to export as html, just save session which can be load later! And you are right file is big. If you understand what I need maybe you can extract only that part of it where we can see that two hashes processed? It can be seen at a start of system.sin and maybe at the and of system.sin! Newflasher worki g good for all si. files, ta files ...etc but stop working on sin files which bave two hasher, thats new things implemented in flash protocol and I need to see whats going on with it to be abble implement tbat changes
 
Last edited: