How To Guide [GUIDE][WINDOWS] Bootloader Unlock & Relock, Drivers, Magisk rooting, Firmware and GSI ROM flashing without TWRP

Search This thread

calamari

Senior Member
Mar 23, 2009
70
19
Tucson, AZ
kidsquid.com
DO NOT USE NEWFLASHER IT WILL BRICK YOUR DEVICE. Just stay on the outdated OS instead. Newflasher will look like it's working, flashing a bunch of files. But ultimately you're screwed, because it WILL bootloop and then say your "device is corrupt" and now you wasted $1000. Can't get into fastboot can't get into anything.
 
DO NOT USE NEWFLASHER IT WILL BRICK YOUR DEVICE. Just stay on the outdated OS instead. Newflasher will look like it's working, flashing a bunch of files. But ultimately you're screwed, because it WILL bootloop and then say your "device is corrupt" and now you wasted $1000. Can't get into fastboot can't get into anything.
How do come to the Idea to tell other People they shouldn't use something that works for anyone but not You? And why are You complaining here? Go to the Newflasher Thread to get help and stop scaring other People over here... Sad to hear You face a bootloop but before blaming something should You make sure it wasn't Your fault...
And why fastboot? Just hold Volume Down and connect Your Device to USB. Thats all You have to do to use NewFlasher...
Oh. And make sure You use the correct Firmware from Xperifirm and not something else. You haven told us what You have done so i can just write this. Sorry for You...
 
  • Like
Reactions: t5k

calamari

Senior Member
Mar 23, 2009
70
19
Tucson, AZ
kidsquid.com
How do come to the Idea to tell other People they shouldn't use something that works for anyone but not You? And why are You complaining here? Go to the Newflasher Thread to get help and stop scaring other People over here... Sad to hear You face a bootloop but before blaming something should You make sure it wasn't Your fault...
And why fastboot? Just hold Volume Down and connect Your Device to USB. Thats all You have to do to use NewFlasher...
Oh. And make sure You use the correct Firmware from Xperifirm and not something else. You haven told us what You have done so i can just write this. Sorry for You...
Nah, I wasn't telling people what to do I was attempting to warn them away from danger. People need to know that if they root their phone they'll be stuck on whatever firmware they had when rooting, as newflasher does not work properly. That's not the end of the world, but it's something they should weigh when deciding to root. And really, I should have read this thread more carefully because a bunch of people have already run into this bootloop problem, not just me. And yes, of course I carefully used the correct firmware, as I'm sure they did as well.

This story does have a semi-happy ending. I was eventually able to get into Flash mode, then I flashed the tadump backup I made. The phone still couldn't boot but at least I could now get the phone into bootloader mode, where I could do a fastboot oem lock. Once my bootloader was locked, the Xperia Companion windows application allowed me to factory reset the device. I lost a lot, but at least my phone works again and Google was able to restore some stuff.
 
Nov 26, 2017
8
2
Great guide! Thank you! It's working wonderfully.

I have a few notes/changes based on my experience that I'll share in case others come across these issues:

For Newflasher, you have to put your phone into flash mode first, but it wasn't explained how. For Sony devices, the method is explained here: https://developer.sony.com/develop/open-devices/get-started/flash-tool/useful-key-combinations/
To enter Flash mode, make sure your phone is turned off and press and hold the Flash key Volume down when you connect your phone to the computer.
(I held it for at least 10 seconds. The phone screen won't show anything, but you will here a Windows device connection sound.)

Newflasher didnt flash anything the first time I tried. The first time I ran it I had it dump the trim area, so maybe you have to run it again and skip that step. I wasn't sure why it didn't work so I also redownloaded the firmware from xperifirm, and placed in the root of my hard drive in a folder with no spaces. Running it after those steps worked. (I also installed Xperia Companion in between these attempts, but I doubt that made a difference. People say you need to close xperia companion and potentially stop all related processes/services for newflasher to work).

You might want to add a note at the beginning of step 4 that warns this will wipe your phone (I was doing it on a fresh phone because I already knew this, but others may not know until it's too late).

Step 4, #17 says to run fastboot reboot fastboot on newer phones, but don't do this, just skip that step. That starts the phone in fastbootD and the computer doesn't see the phone anymore until you shut down the phone and boot back into normal fastboot mode (with nothing showing on the phone screen).

Step 4, #19, after doing fastboot -w it erased almost everything except it failed at erasing 'metadata'. I tried again with the same result so I just proceeded to fastboot reboot and my phone rebooted to a screen about my data may be corrupt, with two options: Try again or Factory reset. I did the factory reset option and it successfully cleared the metadata. I had to wait a minute or two and then it rebooted into android successfully.

Thanks again for the guide!
Next I'm trying to degoogle this phone and replace google play services with microg, but the guide I found uses TWRP. Hopefully I can figure out some alterations to the process to make it work.
 
  • Like
Reactions: Miustone
Great guide! Thank you! It's working wonderfully.

I have a few notes/changes based on my experience that I'll share in case others come across these issues:

For Newflasher, you have to put your phone into flash mode first, but it wasn't explained how. For Sony devices, the method is explained here: https://developer.sony.com/develop/open-devices/get-started/flash-tool/useful-key-combinations/

(I held it for at least 10 seconds. The phone screen won't show anything, but you will here a Windows device connection sound.)

Newflasher didnt flash anything the first time I tried. The first time I ran it I had it dump the trim area, so maybe you have to run it again and skip that step. I wasn't sure why it didn't work so I also redownloaded the firmware from xperifirm, and placed in the root of my hard drive in a folder with no spaces. Running it after those steps worked. (I also installed Xperia Companion in between these attempts, but I doubt that made a difference. People say you need to close xperia companion and potentially stop all related processes/services for newflasher to work).

You might want to add a note at the beginning of step 4 that warns this will wipe your phone (I was doing it on a fresh phone because I already knew this, but others may not know until it's too late).

Step 4, #17 says to run fastboot reboot fastboot on newer phones, but don't do this, just skip that step. That starts the phone in fastbootD and the computer doesn't see the phone anymore until you shut down the phone and boot back into normal fastboot mode (with nothing showing on the phone screen).

Step 4, #19, after doing fastboot -w it erased almost everything except it failed at erasing 'metadata'. I tried again with the same result so I just proceeded to fastboot reboot and my phone rebooted to a screen about my data may be corrupt, with two options: Try again or Factory reset. I did the factory reset option and it successfully cleared the metadata. I had to wait a minute or two and then it rebooted into android successfully.

Thanks again for the guide!
Next I'm trying to degoogle this phone and replace google play services with microg, but the guide I found uses TWRP. Hopefully I can figure out some alterations to the process to make it work.
We had the same Idea after i was wondering what could go wrong for People. I think reading does always help... (NewFlasher Thread)

I edited point 3. of the Guide and will do that also for ALL OTHER GUIDES for other Xperias...

Since i'm working hard behind the Scenes on new stuff are my guides lacking some love i usually show on My Contributions here. If You are willed to contribute a bit more, am i willed to invite You to edit My Guides after Your great Feedback... Some Hints and some other Edits could really help to make it Bulletproof and more understandable for all coming Xperia Users who want to Unlock their Devices in the Future...
 
Nov 26, 2017
8
2
Since i'm working hard behind the Scenes on new stuff are my guides lacking some love i usually show on My Contributions here. If You are willed to contribute a bit more, am i willed to invite You to edit My Guides after Your great Feedback... Some Hints and some other Edits could really help to make it Bulletproof and more understandable for all coming Xperia Users who want to Unlock their Devices in the Future...
Sure, I could help out with some edits for this guide at least. Just let me know how.
 

Kihara777

Member
Jun 11, 2018
12
4
It DOES broke some of the camera functions PERMANTLY, even after the bootloader relock and "repair software" throuth Xpeeia Companion!!!

You should warn people about this, if you tell me I'll still lost camera functions forever like old models, I won't root my device... Now the AF is completely gone (including eye AF), not sure if anything else gone either (like miracast?).

Not a big deal(sort of? Since this a sony device and we're all used to this), but still unpleasant about "almost all of Your DRMs are restored", what do you mean "almost"?
 
Last edited:
It DOES broke some of the camera functions PERMANTLY, even after the bootloader relock and "repair software" throuth Xpeeia Companion!!!

You should warn people about this, if you tell me I'll still lost camera functions forever like old models, I won't root my device... Now the AF is completely gone (including eye AF), not sure if anything else gone either (like miracast?).

Not a big deal(sort of? Since this a sony device and we're all used to this), but still unpleasant about "almost all of Your DRMs are restored", what do you mean "almost"?
Stop blaming randomly and proof what You say. AF works fine here. Locked and unlocked many Times just like Others. Not wondering why You are the first writing this? Or do You own a very special Version of an Xperia we don't know? Flashed Kitkat before relocking or so?

And do some homework before starting such Posts regarding loosing DRMS. You will loose Your very own Device specific DRM Key which implies that Your Bootloader was unlocked. It doesn't removes any functionality but it may void Your Software Warranty. Basics...

Source: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
 
Last edited:
  • Like
Reactions: DanielMode

Kihara777

Member
Jun 11, 2018
12
4
Stop blaming randomly and proof what You say. AF works fine here. Locked and unlocked many Times just like Others. Not wondering why You are the first writing this? Or do You own a very special Version of an Xperia we don't know? Flashed Kitkat before relocking or so?

And do some homework before starting such Posts regarding loosing DRMS. You will loose Your very own Device specific DRM Key which implies that Your Bootloader was unlocked. It doesn't removes any functionality but it may void Your Software Warranty. Basics...

Source: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
I'm not here for trouble, the AF I've mentioned is a thin auto-resizeable frame which you can change its color to red with "focus area color".
Oh, I think it called "continuous AF".
The face/eye AF gone too, they use the same focus area frame as continuous AF does, and it never shows again.
Screenshot_20220803-180953.png
If I'm the one, at least I need an answer, and I'm glad to share you as much as I know, just ask.

P.S. I check the log when camera app opened... not sure if that"s enough to prove it.
IMG_20220803_192452_883.jpg
 
Last edited:
I could really use some help here.
On a xperia 10 IV STEP #4 (BL unlock and root) works fine but STEP #5 trying to flash a GSI fails every time.
I've soft bricked my phone several times now every time I try to flash any GSI.

fastboot reboot fastboot says:
unknown reboot target fastboot


fastboot flash system_a LeOS-S-VNDKLITE-arm64-bvS.img says:
target reported max download size of 268435456 bytes
Invalid sparse file format at header magic
sending sparse 'system_a' 1/8 (254727 KB)...
OKAY [ 12.486s]
writing 'system_a' 1/8...
OKAY [ 1.998s]
sending sparse 'system_a' 2/8 (262128 KB)...
OKAY [ 14.353s]
writing 'system_a' 2/8...
OKAY [ 1.008s]
sending sparse 'system_a' 3/8 (262124 KB)...
OKAY [ 14.938s]
writing 'system_a' 3/8...
OKAY [ 1.013s]
sending sparse 'system_a' 4/8 (262116 KB)...
OKAY [ 14.976s]
writing 'system_a' 4/8...
FAILED (remote: Operation not permitted)
finished. total time: 61.702s

And then the phone is soft bricked...
I have not been able to get EMMA to work but luckily newflasher works.

EDIT:
So I found another version of fastboot which supports "fastboot reboot fastboot" but the same problem persists:
fastboot flash system_a system-squeak-arm64-ab-vndklite-floss-secure.img
target reported max download size of 268435456 bytes
Invalid sparse file format at header magic
sending sparse 'system_a' 1/10 (244948 KB)...
OKAY [ 13.911s]
writing 'system_a' 1/10...
OKAY [ 1.977s]
sending sparse 'system_a' 2/10 (259168 KB)...
OKAY [ 14.570s]
writing 'system_a' 2/10...
OKAY [ 0.958s]
sending sparse 'system_a' 3/10 (262140 KB)...
OKAY [ 14.872s]
writing 'system_a' 3/10...
OKAY [ 0.964s]
sending sparse 'system_a' 4/10 (262140 KB)...
OKAY [ 14.759s]
writing 'system_a' 4/10...
FAILED (remote: Operation not permitted)
finished. total time: 62.953s

Is there a different partition layout on the 10iv or something?

XQ-CC54:/ # cat /proc/partitions
major minor #blocks name

1 0 8192 ram0
1 1 8192 ram1
1 2 8192 ram2
1 3 8192 ram3
1 4 8192 ram4
1 5 8192 ram5
1 6 8192 ram6
1 7 8192 ram7
1 8 8192 ram8
1 9 8192 ram9
1 10 8192 ram10
1 11 8192 ram11
1 12 8192 ram12
1 13 8192 ram13
1 14 8192 ram14
1 15 8192 ram15
7 0 41324 loop0
7 8 876 loop1
7 16 7900 loop2
7 24 36216 loop3
7 32 111952 loop4
7 40 1724 loop5
7 48 7900 loop6
7 56 2140 loop7
7 64 111952 loop8
7 72 876 loop9
7 80 41324 loop10
7 88 36216 loop11
7 96 268 loop12
7 104 8032 loop13
7 112 11272 loop14
7 120 748 loop15
254 0 3145728 zram0
8 0 124936192 sda
8 1 8192 sda1
8 2 32768 sda2
8 3 16384 sda3
8 4 64 sda4
8 5 64 sda5
8 6 512 sda6
8 7 3072 sda7
8 8 4096 sda8
8 9 4096 sda9
8 10 512 sda10
8 11 512 sda11
8 12 1536 sda12
8 13 1536 sda13
8 14 512 sda14
8 15 512 sda15
259 0 174080 sda16
259 1 174080 sda17
259 2 128 sda18
259 3 128 sda19
259 4 256 sda20
259 5 256 sda21
259 6 2048 sda22
259 7 2048 sda23
259 8 128 sda24
259 9 3072 sda25
259 10 3072 sda26
259 11 64 sda27
259 12 64 sda28
259 13 2048 sda29
259 14 2048 sda30
259 15 98304 sda31
259 16 98304 sda32
259 17 1024 sda33
259 18 1024 sda34
259 19 399360 sda35
259 20 399360 sda36
259 21 32768 sda37
259 22 32768 sda38
259 23 4 sda39
259 24 256 sda40
259 25 8192 sda41
259 26 128 sda42
259 27 1024 sda43
259 28 8 sda44
259 29 1024 sda45
259 30 512 sda46
259 31 16384 sda47
259 32 32768 sda48
259 33 16384 sda49
259 34 28 sda50
259 35 512 sda51
259 36 16384 sda52
259 37 32 sda53
259 38 32 sda54
259 39 64 sda55
259 40 64 sda56
259 41 64 sda57
259 42 64 sda58
259 43 24576 sda59
259 44 24576 sda60
259 45 65536 sda61
259 46 65536 sda62
259 47 1024 sda63
259 48 512 sda64
259 49 2048 sda65
259 50 128 sda66
259 51 512 sda67
259 52 512 sda68
259 53 98304 sda69
259 54 98304 sda70
259 55 819200 sda71
259 56 819200 sda72
259 57 12058624 sda73
259 58 109242348 sda74
259 59 20480 sda75
8 16 8192 sdb
8 17 7956 sdb1
8 18 192 sdb2
8 32 8192 sdc
8 33 7956 sdc1
8 34 192 sdc2
179 0 7565312 mmcblk1
179 1 7564288 mmcblk1p1
253 0 1024436 dm-0
253 1 269616 dm-1
253 2 900396 dm-2
253 3 1675816 dm-3
253 4 1094280 dm-4
253 5 1576 dm-5
253 6 1008188 dm-6
253 7 886108 dm-7
253 8 1649292 dm-8
253 9 1076928 dm-9
253 10 1468 dm-10
7 128 7032 loop16
7 136 19104 loop17
7 144 2804 loop18
7 152 5020 loop19
7 160 268 loop20
7 168 64052 loop21
7 176 6204 loop22
7 184 12652 loop23
7 192 4440 loop24
7 200 1908 loop25
7 208 6564 loop26
7 216 5796 loop27
7 224 736 loop28
7 232 3884 loop29
253 11 109242348 dm-11
253 12 7956 dm-12
253 13 11172 dm-13
253 14 728 dm-14
253 15 6964 dm-15
253 16 18944 dm-16
253 17 2768 dm-17
253 18 4968 dm-18
253 19 256 dm-19
253 20 63540 dm-20
253 21 6144 dm-21
253 22 12540 dm-22
253 23 4392 dm-23
253 24 1880 dm-24
253 25 6500 dm-25
253 26 5736 dm-26
253 27 716 dm-27
253 28 3840 dm-28
 
Last edited:
Sep 27, 2022
24
1

Introducing this Guide

Hello there and welcome to My Guide for Your Xperia Smartphone. This Guide will walk with You thru the whole Process of installing Drivers, getting an unlock Key for Your Bootloader, rooting with Magisk and even flashing GSI Custom ROMs up to re-locking Your Bootloader and re-flashing Stock for the total Factory Reset. This Thread/Guide is not meant as Wiki n'or will it teach You about Android at all. Inform Yourself using Google to enjoy the total Freedom and Customization of Android... If You can't solve Problems Yourself, by communicating and research, don't touch Your Bootloader!

IMPORTANT:
2020+ Xperias are using fastbootd, and equivalent to fastboot which runs in Userspace (Same as Recoveries).
You can access Your Recovery on Your Xperia by holding VolumeDown (-) & the Powerbutton (Your Device needs to be turned off before ofc). Release the Powerbutton after the Display turned on and hold VolumeDown (-) until You see the Recovery Screen. From there, You can enter fastbootd and fastboot. Labled as "Fastboot" for fastbootd and "Bootloader" which is the old fastboot. You can flash Kernels, Recoveries and other stuff from fastboot. Everything else like System Images (GSIs for example), Product Images, System_ext Images and any Userspace stuff has to be flashed from fastbootd. 2019 Xperias are still using fastboot only...
Fastboot and Fastbootd has nothing to do with SONYs Flashmode on Xperias!


INDEX:
  1. Requirements
  2. Installing Drivers
  3. Firmware Flashing
  4. Bootloader Unlocking & Magisk Root
  5. GSI ROM flashing with Fastboot (Optional)
  6. Bootloader Re-Locking (TheWayBack)
  7. Firmware Restoring after Re-Locking

1. Requirements:
  • Read! Inform Yourself about the Tools You use...
  • Xperia Basics:
    Your Device is turned Off...
    Blue LED=Fastboot (Hold VolumeUp (+) & Connect to USB)
    Green LED=Flashmode (Hold VoumeDown (-) & Connect to USB)
  • Windows 10/11 for Firmware flashing & downloading
  • Xperia Bootloader Unlock Key (From HERE)
  • Platform Tools alias ADB and Fastboot (From HERE)
  • Fastboot and Flashmode Drivers (From HERE and HERE)
  • EMMA for Firmware Updates (From HERE)
  • XperiFirm for Firmware Downloads (From XDA)
  • Unsin to extract the Kernel .sin from XperiFirm (From XDA)
  • Magisk Manager to patch the extracted Kernel .sin (From GitHub)
  • A working Android System for the Magisk Kernel patching
  • GSI & vbmeta Image (From Google) (Optional)
  • A Backup of Your Internal Devices Storage (Optional)


2. Installing Drivers:
  1. Download the Drivers from the Links above and extract them
  2. Install the downloaded and extracted Drivers by right clicking on the ***.inf Files "Install"


3. Flashing Firmwares with EMMA:
  1. Download EMMA and install it
  2. Start EMMA and connect Your Device to USB (Flashmode)

3.1. Downloading Firmwares with XperiFirm:
  1. Download and extract XperiFirm from the link above
  2. Run XperiFirm and Download the right Firmware for Your Device


4. Bootloader Unlocking and Magisk Root:

Note: Since You are going to unlock Your Bootloader, You may surely want to get Root. So let's start with Magisk or it will take more Time afterwards...

  1. Download UnSin from the link above and extract it somewhere
  2. Download the "Platform Tools" from Google and extract it to the root of Your main Windows Drive
  3. Download and install the Magisk Manager on Your Android Device
  4. Extract the File boot_********.sin (60MB+ File) with the Unsin Exe (Drag and drop the Image on the Exe)
  5. You will get a .img File which You can patch now with the Magisk Manager on Your Android Device
  6. Open the Magisk Manager and Install Magisk by selecting the Image File You just got from UnSin
  7. Copy the magisk_patched.img in /download from Your Device to the Platform Tools Folder
  8. Grab Your Device again, go to "About Phone" in the Settings and tap several Times on the build Version
  9. Go now to the Developer Settings under "System" and enable "OEM-Unlock" and "USB-Debugging"
  10. Use now the Platform Tools with this Commands (In Powershell):
  11. Type now (Step by Step):
    Code:
    cd\
    cd platform-tools
    Note: To use the Platform Tools Folder as environment for Fastboot and ADB. Or hold Shift and Make a right Click in the Platform Tools Folder to open the Command prompt there...

  12. Type now:
    Code:
    adb reboot bootloader
    You will get a prompt on Your Xperia Device. Your Device will Reboot afterwards...

  13. Now Your Bootloader Unlock Code:
    Code:
    fastboot oem unlock 0xYOURKEY

  14. Wait for it... And type now:
    Code:
    fastboot reboot

  15. Wait for Your Device to Wipe and Start. Once in the Android System, turn Your Device off without USB Connected

  16. Press and hold now the VolumeUp (+) Button while connecting to USB to enable the fastboot Mode

  17. Continue with flashing the Images for Root (Step by Step):
    Code:
    fastboot flash boot_a magisk_patched.img
    fastboot flash boot_b magisk_patched.img

  18. Wipe and Reboot:
  19. Code:
    fastboot -w
    fastboot reboot
    Note: Your are unlocked and rooted now! Enjoy Your Unleashed Device :)



5. GSI flashing with Fastboot:

Note: GSI ROMs can be found around the Web. Like here...
Not all GSIs require the vbmeta change. You can use all GSIs that are made for ARM64 + A/B Devices. Play around. Systems can't damage Your Device since You keep the Stock Vendor & Kernel! You can use any Android Version! Don't forget to make backups if needed. You are going to Format Your Device!

  • Download a GSI Zip from Google
  • Extract the system.img and the vbmeta.img to Your Platform-Tools
  • Connect Your Device in Fastboot Mode and use Fastboot with:
    (On 2020+ Xperias run: "fastboot reboot fastboot" first after You booted into fastboot)
    Code:
    fastboot flash system_a system.img
    fastboot flash system_b system.img
    [Optional] fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
    [Optional] fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img
    fastboot -w (This does Format Your Device and is needed everytime You change the GSI!)
    fastboot reboot


6. Bootloader Re-Lock:
  • Flash the latest Firmware for Your Device with EMMA
  • Erase all Userdata before You continue (like with fastboot -w or via Recovery)
  • Just go into Fastboot mode and type in the command prompt (like before in this Guide):
Code:
fastboot oem lock
  • Wait for Your Device and disconnect it from USB
  • Done... Continue with Step 7.
7. Firmware Restoring after Re-Locking:
  • Download and Install the "Xperia Companion" from SONY
  • Open the Xperia Companion and select Software Repair
  • Select that Your Device can't get recognized (or is a Smartwatch 3 lol)
  • Go to the next Page and select the Xperia Smartphone Option
  • Continue and wait for the Initialization
  • Press and hold Volume DOWN while connecting to USB (You will see the Green Flashmode LED again)
Continue once Your Device gets recognized and let the Xperia Companion do his work...
Done. Your Bootloader is locked again and almost all of Your DRMs are restored.



That helped? Leave a Thanks! <3
Donations are actually also really welcome!


BTC: 3A93fjg2KxZJEHUpBExs7rVgivfAUumQoJ
ETH&ERC20-USDT: 0xD27860248B7E51720DDf9CA5a1f861CA1029c14A
ERC20: 0xD27860248B7E51720DDf9CA5a1f861CA1029c14A
is there anyway I can flash my xperia xa2 ultra using fastboot mode, but only for recovering it, its glitching out and I think its soft bricked or stuck in a bootloop and I only have access to fastboot and anything else, can someone please help me? I dont know if this is my exact situation but I would really like a step by step helper please. im freaking out and a total noob to this I dont care if I loose anything I just want and need this one right now, since its the only thing I can use currently, I cant afford a new phone right now and its crucial I get a phone right now, so some help and any advice could be godly right now
 
Sep 27, 2022
24
1
is there anyway I can flash my xperia xa2 ultra using fastboot mode, but only for recovering it, its glitching out and I think its soft bricked or stuck in a bootloop and I only have access to fastboot and anything else, can someone please help me? I dont know if this is my exact situation but I would really like a step by step helper please. im freaking out and a total noob to this I dont care if I loose anything I just want and need this one right now, since its the only thing I can use currently, I cant afford a new phone right now and its crucial I get a phone right now, so some help and any advice could be godly right now
I would really love really detailed awnsers and not simple ones, I have no experience. i just want my phone back man. what things i need to get like certain downloads or tutorials will help
 
Sep 27, 2022
24
1
is there anyway I can flash my xperia xa2 ultra using fastboot mode, but only for recovering it, its glitching out and I think its soft bricked or stuck in a bootloop and I only have access to fastboot and anything else, can someone please help me? I dont know if this is my exact situation but I would really like a step by step helper please. im freaking out and a total noob to this I dont care if I loose anything I just want and need this one right now, since its the only thing I can use currently, I cant afford a new phone right now and its crucial I get a phone right now, so some help and any advice could be godly right now
I know noobs are pretty yuck to deal with but please
 

DanielMode

Senior Member
Jan 26, 2017
241
24
1. this the Xperia 5 III room and u asking about Xperia XA 2
2. why did u start something on your phone without experience
3. helping people without experience to solve a problem just with a post it's impossible
4. there are so many pieces to keep an eye on whilke flashing the device
5. its your own fault to start something without any experience now deal with the result somehow
 
Sep 27, 2022
24
1
1. this the Xperia 5 III room and u asking about Xperia XA 2
2. why did u start something on your phone without experience
3. helping people without experience to solve a problem just with a post it's impossible
4. there are so many pieces to keep an eye on whilke flashing the device
5. its your own fault to start something without any experience now deal with the result somehow
so its somehow my fault it somehow "Bricked" after a small drop? and not even enough to break the screen or anything inside. I didn't start anything I didn't attempt to root it or add anything to it, these things can happen regardless, and even if im a literal noob this is what this place is for. for help. if you cannot assist me do not waste my time
 
Sep 27, 2022
24
1
1. this the Xperia 5 III room and u asking about Xperia XA 2
2. why did u start something on your phone without experience
3. helping people without experience to solve a problem just with a post it's impossible
4. there are so many pieces to keep an eye on whilke flashing the device
5. its your own fault to start something without any experience now deal with the result somehow
and do not assume the issue I have, As I will repeat, I havent tried to root it. I accidentally dropped it (At lease a few cm onto the table) so theres no way thats the issue.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    @Miustone

    bingo

    finaly....but not on Win 10
    for problems like this its always better to have your old Win 7 on backup partition.
    just to use it offline to root your newest device lol

    i don't no why but on Win 7 the driver installation worked perfekly automaticly and boom all adb commants ran through smothly
    '
    So I figured out how to install/select the fastboot driver in windows 11(xperia 5 IV for me).

    1 - unzip the usb driver folder then navigate to it (usb_driver_r13-windows)
    2 - right click the android_winusb.inf file and click install
    3 - boot the phone to fastboot mode
    4 - go to device manager in windows and find the Android device with the failed driver, right click and select update driver
    5 - select "browse my computer for drivers", then select "Let me pick from a list of available drivers on my computer"
    6 - scroll down and select "Universal Serial Bus Devices" then click next
    7 - under manufacturer select "WinUSB Device", then under model select "ADB Device". Click next
    8 - fastboot driver should be installed correctly. You may need to reboot the computer and boot the phone into fastboot mode again
  • 9

    Introducing this Guide

    Hello there and welcome to My Guide for Your Xperia Smartphone. This Guide will walk with You thru the whole Process of installing Drivers, getting an unlock Key for Your Bootloader, rooting with Magisk and even flashing GSI Custom ROMs up to re-locking Your Bootloader and re-flashing Stock for the total Factory Reset. This Thread/Guide is not meant as Wiki n'or will it teach You about Android at all. Inform Yourself using Google to enjoy the total Freedom and Customization of Android... If You can't solve Problems Yourself, by communicating and research, don't touch Your Bootloader!

    IMPORTANT:
    2020+ Xperias are using fastbootd, and equivalent to fastboot which runs in Userspace (Same as Recoveries).
    You can access Your Recovery on Your Xperia by holding VolumeDown (-) & the Powerbutton (Your Device needs to be turned off before ofc). Release the Powerbutton after the Display turned on and hold VolumeDown (-) until You see the Recovery Screen. From there, You can enter fastbootd and fastboot. Labled as "Fastboot" for fastbootd and "Bootloader" which is the old fastboot. You can flash Kernels, Recoveries and other stuff from fastboot. Everything else like System Images (GSIs for example), Product Images, System_ext Images and any Userspace stuff has to be flashed from fastbootd. 2019 Xperias are still using fastboot only...
    Fastboot and Fastbootd has nothing to do with SONYs Flashmode on Xperias!


    INDEX:
    1. Requirements
    2. Installing Drivers
    3. Firmware Flashing
    4. Bootloader Unlocking & Magisk Root
    5. GSI ROM flashing with Fastboot (Optional)
    6. Bootloader Re-Locking (TheWayBack)
    7. Firmware Restoring after Re-Locking

    1. Requirements:
    • Read! Inform Yourself about the Tools You use...
    • Xperia Basics:
      Your Device is turned Off...
      Blue LED=Fastboot (Hold VolumeUp (+) & Connect to USB)
      Green LED=Flashmode (Hold VoumeDown (-) & Connect to USB)
    • Windows 10/11 for Firmware flashing & downloading
    • Xperia Bootloader Unlock Key (From HERE)
    • Platform Tools alias ADB and Fastboot (From HERE)
    • Fastboot and Flashmode Drivers (From HERE and HERE)
    • EMMA for Firmware Updates (From HERE)
    • XperiFirm for Firmware Downloads (From XDA)
    • Unsin to extract the Kernel .sin from XperiFirm (From XDA)
    • Magisk Manager to patch the extracted Kernel .sin (From GitHub)
    • A working Android System for the Magisk Kernel patching
    • GSI & vbmeta Image (From Google) (Optional)
    • A Backup of Your Internal Devices Storage (Optional)


    2. Installing Drivers:
    1. Download the Drivers from the Links above and extract them
    2. Install the downloaded and extracted Drivers by right clicking on the ***.inf Files "Install"


    3. Flashing Firmwares with EMMA:
    1. Download EMMA and install it
    2. Start EMMA and connect Your Device to USB (Flashmode)

    3.1. Downloading Firmwares with XperiFirm:
    1. Download and extract XperiFirm from the link above
    2. Run XperiFirm and Download the right Firmware for Your Device


    4. Bootloader Unlocking and Magisk Root:

    Note: Since You are going to unlock Your Bootloader, You may surely want to get Root. So let's start with Magisk or it will take more Time afterwards...

    1. Download UnSin from the link above and extract it somewhere
    2. Download the "Platform Tools" from Google and extract it to the root of Your main Windows Drive
    3. Download and install the Magisk Manager on Your Android Device
    4. Extract the File boot_********.sin (60MB+ File) with the Unsin Exe (Drag and drop the Image on the Exe)
    5. You will get a .img File which You can patch now with the Magisk Manager on Your Android Device
    6. Open the Magisk Manager and Install Magisk by selecting the Image File You just got from UnSin
    7. Copy the magisk_patched.img in /download from Your Device to the Platform Tools Folder
    8. Grab Your Device again, go to "About Phone" in the Settings and tap several Times on the build Version
    9. Go now to the Developer Settings under "System" and enable "OEM-Unlock" and "USB-Debugging"
    10. Use now the Platform Tools with this Commands (In Powershell):
    11. Type now (Step by Step):
      Code:
      cd\
      cd platform-tools
      Note: To use the Platform Tools Folder as environment for Fastboot and ADB. Or hold Shift and Make a right Click in the Platform Tools Folder to open the Command prompt there...

    12. Type now:
      Code:
      adb reboot bootloader
      You will get a prompt on Your Xperia Device. Your Device will Reboot afterwards...

    13. Now Your Bootloader Unlock Code:
      Code:
      fastboot oem unlock 0xYOURKEY

    14. Wait for it... And type now:
      Code:
      fastboot reboot

    15. Wait for Your Device to Wipe and Start. Once in the Android System, turn Your Device off without USB Connected

    16. Press and hold now the VolumeUp (+) Button while connecting to USB to enable the fastboot Mode

    17. Continue with flashing the Images for Root (Step by Step):
      Code:
      fastboot flash boot_a magisk_patched.img
      fastboot flash boot_b magisk_patched.img

    18. Wipe and Reboot:
    19. Code:
      fastboot -w
      fastboot reboot
      Note: Your are unlocked and rooted now! Enjoy Your Unleashed Device :)



    5. GSI flashing with Fastboot:

    Note: GSI ROMs can be found around the Web. Like here...
    Not all GSIs require the vbmeta change. You can use all GSIs that are made for ARM64 + A/B Devices. Play around. Systems can't damage Your Device since You keep the Stock Vendor & Kernel! You can use any Android Version! Don't forget to make backups if needed. You are going to Format Your Device!

    • Download a GSI Zip from Google
    • Extract the system.img and the vbmeta.img to Your Platform-Tools
    • Connect Your Device in Fastboot Mode and use Fastboot with:
      (On 2020+ Xperias run: "fastboot reboot fastboot" first after You booted into fastboot)
      Code:
      fastboot flash system_a system.img
      fastboot flash system_b system.img
      [Optional] fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
      [Optional] fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img
      fastboot -w (This does Format Your Device and is needed everytime You change the GSI!)
      fastboot reboot


    6. Bootloader Re-Lock:
    • Flash the latest Firmware for Your Device with EMMA
    • Erase all Userdata before You continue (like with fastboot -w or via Recovery)
    • Just go into Fastboot mode and type in the command prompt (like before in this Guide):
    Code:
    fastboot oem lock
    • Wait for Your Device and disconnect it from USB
    • Done... Continue with Step 7.
    7. Firmware Restoring after Re-Locking:
    • Download and Install the "Xperia Companion" from SONY
    • Open the Xperia Companion and select Software Repair
    • Select that Your Device can't get recognized (or is a Smartwatch 3 lol)
    • Go to the next Page and select the Xperia Smartphone Option
    • Continue and wait for the Initialization
    • Press and hold Volume DOWN while connecting to USB (You will see the Green Flashmode LED again)
    Continue once Your Device gets recognized and let the Xperia Companion do his work...
    Done. Your Bootloader is locked again and almost all of Your DRMs are restored.



    That helped? Leave a Thanks! <3
    Donations are actually also really welcome!


    BTC: 3A93fjg2KxZJEHUpBExs7rVgivfAUumQoJ
    ETH&ERC20-USDT: 0xD27860248B7E51720DDf9CA5a1f861CA1029c14A
    ERC20: 0xD27860248B7E51720DDf9CA5a1f861CA1029c14A
    2
    Flash Firmware with newflasher ends in bootloop and "your device is corrupt"....
    How can i fix it?

    Edit: I Fixed it with set_active:a
    2
    no problems at all. apparently some DRM issues that may mean you can't watch Netflix in 4K (doesn't affect me at all), and that's about it.
    2
    Thanks for the great guide. This is my first Xperia device, and I'm loving it.
    Can I still perform OTA updates like normal using the OTA option in Magisk, or do I need to do the whole firmware patching process every time?
    Glad it helped You!
    You need to perform Manual Updates with NewFlasher every time. But You can keep Your Data. You Just need to Patch the new Boot Images after every Update...
    1
    which file i need from there for A 11

    Basic knowledge for all Tech around the World before You continue with anything of this:

    ARM = Mobile Chips
    ARM64 = Mobile Chips with 64Bit Support
    X86 = Desktop Chips like from AMD or Intel
    X86_64 = You guessed it? Desktop 64Bit Chips...
    GMS = Google Services or Google Apps

    You want to use an Xperia Mobile Device with GMS?
    ARM64 GMS... No GMS no Play Store...