yashsingh1/xdaforums huggingface dataset:
[Sony Xperia 5 III] DanielMode:
finaly i could flash latest FW with newflasher

but root wasn't there so

i flashed patched boot.img with fastboot again and i got root acces

was a bit of'n struggel but now its rooted

now i was trying die relock the bootloader...u said wipe userdata again and i did and got stuck there now

PS C:\platform-tools> fastboot -w

erasing 'userdata'...

OKAY [ 41.602s]

formatting 'userdata' partition...

Creating filesystem with parameters:

Size: 107809730560

Block size: 4096

Blocks per group: 32768

Inodes per group: 8192

Inode size: 256

Journal blocks: 32768

Label:

Blocks: 26320735

Block groups: 804

Reserved block group size: 1024

Created filesystem with 11/6586368 inodes and 461507/26320735 blocks

sending 'userdata' (144159 KB)...

writing 'userdata'...
[Sony Xperia 5 III] Bellitsch89:
Can i Lock the Bootloader with Root Access?
[Sony Xperia 5 III] mavicanuck:
Hi @Miustone ,

At the GSI flashing stage, I am getting an error.

I tried dropping the _a but that didn't help.

My eventual goal is to replace the MBN files following :https://forums.oneplus.com/threads/...ell-volte-and-vowifi-calling-working.1284987/

When I try to access su from adb shell, I just get a cursor that doesn't seem to execute commands. But doesn't give the error from before rooting. So I'm semi rooted?
[Sony Xperia 5 III] baz1:
Is everything works after root? Camera quality not degraded?
[Sony Xperia 5 III] treff89:
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.
[Sony Xperia 5 III] Miustone:
Sony isnt using Noise Reduction anymore since they arent using High Res 20mp+ Sensors anymore since 2019 at least. So no need for DRMs for the Cameras.

Only Thing You will loose aside from Netflix 4K would be the Display Optimizations for Videos (Settings/Display).

Thats it...
[Sony Xperia 5 III] Wasabi Ice Cream:
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?
[Sony Xperia 5 III] Miustone:
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...
[Sony Xperia 5 III] UndeadSh4dow:
Step 4. Bootloader Unlocking and Magisk Root: - 13.

When I enter "adb reboot bootloader"

I got "error: no devices/emulators found"

My phone shows green LED (would be flashmode), please help
[Sony Xperia 5 III] Miustone:
Just Turn Off Your Device (Without USB Connected). Hold Volume Up and Connect to USB. That will enable Fastboot. Volume Down bring's You on the Same way in Flashmode. The easy way which also helps If Your Device gets stuck in Bootloops
[Sony Xperia 5 III] UndeadSh4dow:
I did, I got the same results

Google Translate:

"adb : Unrecognized whether the word 'adb' is the name of a Cmdlet, function, command file, or executable program. Please check that the name is spelled correctly, and if it contains a path, make sure Verify that the path is correct and try again."

"The adb command could not be found, but it does exist at the current location. By default, Windows PowerShell does not load commands from the current location. If you trust this command, enter ".\adb" instead. See "get-help about_Command_Precedence" for details."

View attachment 5525031
[Sony Xperia 5 III] MystikMan97130:
try to use terminal or cmd not powershell

try rename platform-tool folder to ADB.

It work forme with this
[Sony Xperia 5 III] Miustone:
Wait. Do You try to use ADB in Flashmode? Your Device has to be booted Up into Android for that.
[Sony Xperia 5 III] UndeadSh4dow:
Nah, the system can't grab the path when I rename platform-tools to ADB

The command: "cd platform-tools" won't work

Thanks for helping anyway :D
[Sony Xperia 5 III] UndeadSh4dow:
I hold volume up and connect to USB (Blue LED), could be fastboot?

With phone: OEM-Unlock and USB-Debugging enabled

With PC: magisk_patched-24100_Uj9gm.img in the folder C:\platform-tools

Now I use cmd instead, then I got this info

View attachment 5525587

Before this step, are there any steps that I need to enable fastboot (Blue LED)?

Hold volume down and connect to USB (Green LED) for NewFlasher step, right?

It can only work when in Green LED instead of Blue LED in the NewFlasher step
[Sony Xperia 5 III] UndeadSh4dow:
I found the problem, enter those commands without power off 😂

Finally completed the whole steps, but Magisk is still not installed

If I'm doing good, Magisk will be installed while patching the .img?

All I want is this Magisk Module: https://github.com/reiryuki/Sound-Enhancement-Sony-Xperia-10-Magisk-Module

Still don't get how Magisk isn't installed 😅

View attachment 5531147
[Sony Xperia 5 III] Chiron1369:
Hey there, this is exactly what I ran into when building AOSP. Kept bootlooping saying device is corrupt, restart in 5 seconds.

Would be really greatful for advice on how you got over this. n00b here sowwie

Thanks a lot in advance!
[Sony Xperia 5 III] Bellitsch89:
Boot the smartphone or tablet into Fastboot Mode

Connect the device to the PC with a USB cable

Open a Command Prompt, PowerShell, or Terminal and type out the following command. . .

fastboot --set-active=a
[Sony Xperia 5 III] Chiron1369:
You are a legend my friend! I will try this in a couple days and report back :)

Thank you so much
[Sony Xperia 5 III] Graegor:
Please, put {windows vista compatibility mode} during drivers installation to the manual
[Sony Xperia 5 III] teostar:
Did this work for you?
[Sony Xperia 5 III] riahc3:
What does relocking your device have to do with anything? Even if it is relocked, THE WARRANTY IS NULLED. STOP SPREADING FUD THAT RELOCKING GIVES YOU BACK YOUR WARRANTY.

It doesnt. Period.
[Sony Xperia 5 III] calamari:
fastboot -w gives me this:

My phone seems to boot, but I'm not sure if it's in a good state now. What can I do next?

EDIT 1: Root seems to be working, but the Zoom app can detect it's rooted. Ran the "SafetyNet Test" which reports "Failed".

EDIT 2: I installed "safetynet-fix" as a Magisk module and enabled Zygist in the settings: https://github.com/kdrag0n/safetynet-fix That made "SafetyNet Test" happy, but Zoom still seems to know the phone is rooted.
[Sony Xperia 5 III] -]AF[-Death:
We don't care about the 4K omission since the 5 III only has a 2K display anyway.

Is after rooting only the option disappeared that you can activate the Creator mode for certain apps or what is meant by Display Optimizations for Videos ?

If you set the 5 III permanently to Creator mode, the problem should be solved because the mode then also applies to Netflix, Photography Pro and so on?

Or do you mean this Sony technology X1 Ki ?
[Sony Xperia 5 III] pasqui23:
At this point I get

; fastboot flash boot_a magisk_patched-24300_lVDS6.img
def-matcher: command not found
fastboot: error: boot partition is smaller than boot image

Luckly it did nothing to my phone and I can still use it
[Sony Xperia 5 III] W@llie:
@godsplannned454​

Thank you, I got stock in the bootloop. Probably because my device was still locked.

But when I don't flash the firmware and execute below steps with the dowloaded boot*.sin file with XperiFirm then Magisk is unable to unpack boot image

3.2 Open the firmware folder and look for boot_X-FLASH-ALL-XXXX
3.3 Drag to unsin folder

Any idea?
[Sony Xperia 5 III] Miustone:
Follow the Thread like anyone Else!?

Extract the File boot_********.sin with the Unsin Exe (Drag and drop the Image on the Exe)

You will get a .img File which You can patch now with the Magisk Manager on Your Xperia
[Sony Xperia 5 III] W@llie:
I'm able to extract the .img file with Unsin. But when I want to patch it with Magisk Manager on the phone I get the error that it is unable to unpack boot image. I use Magisk version 24.3.

I also tried with different boot*.sin files. Same error.
[Sony Xperia 5 III] Miustone:
If You want to, give Me Your .sin file and i'll try to do the magic for You. Just bc i am wondering if there could be some issues actually...
[Sony Xperia 5 III] Miustone:
Uploading the patched Image. Stay tuned, i will edit this Post...

Sign in - Google Accounts
[Sony Xperia 5 III] W@llie:
Thank you for helping! I now have root (but no Netflix/Disney working)

About step 5: Treble info says my device is not supported. Should I continue with this? Bit confusing info.
[Sony Xperia 5 III] Claussen:
Hello, I'm following along with this guide and managed to hard brick my device. Extended button combos result in nothing, and holding Vol Down while plugging in just gives me a red flashing light. I've tried disconnecting the battery to hard reset the device, sitting it on charge for hours, it all just comes back to the same flashing light. I'll be sending it into SONY, but now I just want to know what I did wrong. Additionally, I had forgotten to flash the vbmeta.img, but shouldn't I still be able to get into recovery? Any ideas would be greatly appreciated.

Here's the last commands I ran in fastbootd, unfortunately I don't have the logs:

fastboot flash system_b system_b.img
fastboot flash system_a system_a.img (error here, partition doesn't exist)
fastboot --set-active=a
fastboot flash system_a system_a.img (same error)
fastboot reboot
[Sony Xperia 5 III] QuietMountains:
when I use 'adb reboot bootloader' I don't get a prompt, it just reboots instantly and when I try fastboot I get stuck at a <waiting for any device> prompt. Using 'adb devices' shows the phone and the drivers from fastboot+adb+xperia-drivers.exe are installed. Does this take a while or am I missing a step?

edit: I was! I turned it back on in between steps
[Sony Xperia 5 III] odysseus84:
Hello people, after testing several gsi over the last couple of days. Does someone has a recommendation?

I can live with a Brocken brightness sensor but I need working cellular internet and microG (build in or via magisk module).

Best GSI I found so far is protonOS without root... root beaks the settings app and makes the phone un usable.
[Sony Xperia 5 III] Miustone:
Thread Updated (:
[Sony Xperia 5 III] Claussen:
@Miustone Just curious, have you successfully installed a GSI on the 5 III? I'm just having lots of issues.
[Sony Xperia 5 III] Goldsusanoo:
Is anything beyond step 5 necessary if you just want root and magisk? Thank you
[Sony Xperia 5 III] treff89:
You're right, 5/6/7 are optional.
[Sony Xperia 5 III] Goldsusanoo:
Quick clarification... Is the boot****.sin Boot_X-Flash-ALL-4BA8?
[Sony Xperia 5 III] Goldsusanoo:
Thank you! Also quick clarification... Is the boot****.sin Boot_X-Flash-ALL-4BA8?
[Sony Xperia 5 III] Goldsusanoo:
Having major trouble with fastboot oem unlock, says waiting on devices, and when I try listing fastboot devices nothing shows up. I downloaded all of the drivers from Sony and did the remove signature settings later on and still no change. I went into fastboot mode through recovery mode and tried oem unlock command, but keeps failing. Tried type c port and all others, same thing. Do I need an earlier version of windows or try ubuntu? Any feedback is appreciated. Thank you..
[Sony Xperia 5 III] fazmac5:
Thanks to OP and all other contributors, I was able to root my phone that was on Android 11. After re-locking the bootloader, I got the error message that the device is corrupt shutting down in 5 seconds. I proceeded to do the repair using Xperia companion, after which phone booted, but I was upgraded to Android 12.

Is there a way to do the repair without upgrading to Android 12?
[Sony Xperia 5 III] calamari:
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.
[Sony Xperia 5 III] Miustone:
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...
[Sony Xperia 5 III] calamari:
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.
[Sony Xperia 5 III] DanielMode:
i used newflasher and my phone is still runing dude
[Sony Xperia 5 III] gamingexpert13:
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.
[Sony Xperia 5 III] Miustone:
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...
[Sony Xperia 5 III] gamingexpert13:
Sure, I could help out with some edits for this guide at least. Just let me know how.
[Sony Xperia 5 III] Miustone:
After i got a Xperia 1 III gifted by a Supporter i have checked how actual Android work. I have updated the Guides and fixed the issues for everyone hopefully... Enjoy
[Sony Xperia 5 III] Kihara777:
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"?
[Sony Xperia 5 III] Miustone:
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/
[Sony Xperia 5 III] Kihara777:
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.

View attachment 5676541

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.

View attachment 5676609
[Sony Xperia 5 III] riahc3:
This is great but where are the "ROMs" for Xperia 5 III ?
[Sony Xperia 5 III] DanielMode:
why i got no write access to system partition with this root method on Xperia 5 III 🤔
[Sony Xperia 5 III] someoneisok2004:
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
[Sony Xperia 5 III] someoneisok2004:
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
[Sony Xperia 5 III] someoneisok2004:
I know noobs are pretty yuck to deal with but please
[Sony Xperia 5 III] DanielMode:
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
[Sony Xperia 5 III] someoneisok2004:
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
[Sony Xperia 5 III] someoneisok2004:
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.
[Sony Xperia 5 III] OlegYch_real:
does this work for xperia 5 iv?
[Sony Xperia 5 III] DanielMode:
@Miustone

any idea this guide can be used for an Xperia 5 IV as well 🤔
[Sony Xperia 5 III] Miustone:
Same on the Xperia IV Series. Super Partition, fastbootd ...

I will re-write the Guides soon alongside Posting them for the new Xperias 🤖
[Sony Xperia 5 III] DanielMode:
k i'll be patient checking here
[Sony Xperia 5 III] Miustone:
Are You Up for Testing Emma and Xperia Companion for updating Firmwares? I fear Sony changed the usage for 2022 Xperias. Possible the Xperia Companion will Not Work for us anymore...
[Sony Xperia 5 III] DanielMode:
I'll get my new device tomorrow

I would try your guide like it worked for my X5 iii last year
[Sony Xperia 5 III] DanielMode:
got my new device today....any newer advice on A12 to root.?
[Sony Xperia 5 III] DanielMode:
@Miustone

i'm working on it right now

fastboot oem unlock 0xmyCode

< waiting for device >

but nothing happen
[Sony Xperia 5 III] DanielMode:
PS C:\platform-tools> adb shell cmd overlay enable com.android.theme.color.green

Exception occurred while executing 'enable':

java.lang.SecurityException: commit failed

at com.android.server.om.OverlayManagerService$1.commit(OverlayManagerService.java:877)

at com.android.server.om.OverlayManagerShellCommand.runEnableDisable(OverlayManagerShellCommand.java:227)

at com.android.server.om.OverlayManagerShellCommand.onCommand(OverlayManagerShellCommand.java:71)

at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)

at android.os.ShellCommand.exec(ShellCommand.java:38)

at com.android.server.om.OverlayManagerService$1.onShellCommand(OverlayManagerService.java:994)

at android.os.Binder.shellCommand(Binder.java:950)

at android.os.Binder.onTransact(Binder.java:834)

at android.content.om.IOverlayManager$Stub.onTransact(IOverlayManager.java:491)

at android.os.Binder.execTransactInternal(Binder.java:1184)

at android.os.Binder.execTransact(Binder.java:1143)
[Sony Xperia 5 III] DanielMode:
something is not working like before i can't unlock the device
[Sony Xperia 5 III] DanielMode:
maybe the new connection option is the problem and i can't switch to the conneted device
[Sony Xperia 5 III] DanielMode:
maybe i'm still missing the right (newest) fastboot driver for the Xperia 5 iv

so right now i can't get fstaboot connection
[Sony Xperia 5 III] DanielMode:
with flashtoo i get this error

ERROR - Cannot invoke "java.util.Properties.getProperty(String)" because "this.phoneprops" is null

and with EMMA i get this
[Sony Xperia 5 III] DanielMode:
i can't get any kind of fastboot communication......i did't face this problem on my Xperia 5 III last year....so driver setup should be right.!?
[Sony Xperia 5 III] DanielMode:
last try today
[Sony Xperia 5 III] Miustone:
You will need to update the driver over the Windows Device Manager Manually. Select Android Device (Device needs to be connected via USB) and install the Fastboot drivers on it (from the List on Your PC).

I will add this to my updated Guides too!
[Sony Xperia 5 III] DanielMode:
i tried it but didn't work out

tried the Xperia 5 IV driver from there