yashsingh1/xdaforums huggingface dataset:
[Sony Xperia 5 II Guides, News, & Discussion] eqbirvin:
I have had no luck getting this to work. It goes into a boot loop or tels me Android cannot start. is the vbmeta device specific?
[Sony Xperia 5 II Guides, News, & Discussion] hellomot0:
Even manual ISO, Shutter speed control works after unlocking in Photo Pro and Noise reduction? I understand that there are many questions about the unlock aftermath, but there are few Xperia 1 II and 5 II users and even fewer who unlocked boot, so almost no statistics and feedbacks.

It's sad that CVE-2020-0041 was fixed in the March 2020 Android Security Bulletin and no more Temp-root possibility on Xperia 1 II and 5II
[Sony Xperia 5 II Guides, News, & Discussion] Jayram2000:
I tried your MARS SOM from here

https://github.com/Miustone/MARS_SOM

I got through the magisk setup just fine but the MARS SOM put me in a bootloop. Followed the steps as shown on the github page.
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
It would help if you tell us what you did. Step by Step. The vbmeta Image comes from Google and will work with all Treble A/B Devices.

The Cameras aren't working with DRMs anymore. Also said that there is no Noise Reduction at all like on older Xperias with High Res Sensors. You can see the difference by using Open Cameras various Noise Options and Edge Detections. You will get no benefits by using them.

Sadly still Issues with this on the MARK 2s. If anyone is willed to help with testing can PM Me on any way. I will explain how you can help with solving bootloops...

BR:cowboy:

Anyone interested on running MIUI 12 based on Android 10 btw?
[Sony Xperia 5 II Guides, News, & Discussion] eqbirvin:
My apologies, I followed you guide to a T. Including using NewFlasher and not using it. I have attempted it about 5 times now using different methods/changing only one thing at a time. Tried not flashing vbmeta, tried flashing it, refreshed USB drivers. I relock and start from scratch every attempt. The only thing I haven't tired that you suggested was trying a canary magisk build.

So what build have other reported it working on?

I would love to test your ROM and MIUI once I get this bit figured out. I will PM you.

---------- Post added at 08:09 PM ---------- Previous post was at 08:02 PM ----------

What Magisk version did you use??
[Sony Xperia 5 II Guides, News, & Discussion] eqbirvin:
Alright, I got it working finally. I am going to clarify the sticking points I ran into.

I am running the XQ-AS52, ordered via Amazon.de and imported here into the States. I tried with the Customized EEA Operator with no luck. Used the Customized UK and it got it working. (which is strange considering this is a EU device not a UK device but whatever) Use the most recent Magisk Canary, rename the boot******.img that you extract from the .sin file to just "boot.img" I used the new flasher tools. If you do not get the forth option (the one you are supposed to press "y" to) make sure newflasher.exe AND ALL THE OTHER FILES that are in the newflasher folder are copied to the downloaded and unpacked firmware folder (the one with all the .sin files) and run the newflasher.exe as admin.
[Sony Xperia 5 II Guides, News, & Discussion] Jayram2000:
The latest public version off the Magisk github.
[Sony Xperia 5 II Guides, News, & Discussion] vyp54:
I selected Xperia 1 II and entered my IMEI. It gave a code that worked.
[Sony Xperia 5 II Guides, News, & Discussion] Jayram2000:
can confirm this works, it's exactly what I did.
[Sony Xperia 5 II Guides, News, & Discussion] T3chDelicious:
First, thanks [MENTION=4756773]Miustone[/MENTION] for this guide.

I can also confirm with selected Xperia 1 II on Sony's Bootloader Unlock Site to hand out a working unlock code for the 5 II. I did the guide step by step and it worked out for me. I have root access now.

I did some research but i dont find any information about this vbmeta.img. I did flash it but can someone please explain me what it does?

Much thanks.
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
You're welcome. The Vbmeta Image does just what the fastboot commands say. You can read further into that here: https://android.googlesource.com/platform/external/avb/+/master/README.md
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
Updated the Thread again with more exactly Instructions and a typo fix
[Sony Xperia 5 II Guides, News, & Discussion] dgmortal:
I get the following error when I try the newflasher tool with your instructions:

ERROR: TIMEOUT: failed with error code 997 as follows:
Overlapped I/O operation is in progress.
- Error write! Need nBytes: 0x18 but done: 0x0
nBytes[0x0]:

- Error writing command getvar:max-download-size!

so I skipped this step and tried the rest of the instructions, when trying fastboot I got:

E:\platform-tools>fastboot flash boot_a magisk_patched.img
Sending 'boot_a' (41476 KB) OKAY [ 1.110s]
Writing 'boot_a' FAILED (remote: 'Flashing is not allowed in Lock State')
fastboot: error: Command failed
[Sony Xperia 5 II Guides, News, & Discussion] T3chDelicious:
Is your bootloader unlocked and is USB Debugging activated?
[Sony Xperia 5 II Guides, News, & Discussion] Styl1sh:
I can't pass throw this step. I switched off driver encription check, but I'm getting NSIS Error: Error launching installer.

How it can be solved? Or, maybe, I can use another driver pack?
[Sony Xperia 5 II Guides, News, & Discussion] dgmortal:
Yes, however, I'm running windows 10 in virtualbox inside fedora Linux, it detects the phone fine tho
[Sony Xperia 5 II Guides, News, & Discussion] eqbirvin:
You still need to actually unlock the bootloader using the fastboot commands and getting the unlock code and such
[Sony Xperia 5 II Guides, News, & Discussion] flyl0:
HI !

Hi, first of all, thank you very much for the guide but i would like to know, how did you get your bootloader code? via the developer.sony.com site?

If it's a yes, I don't see the xperia 5 II model .. Maybe If I select the xperia 5 model, will it work?

Please let me know asap because I will receive the phone tomorrow :)
[Sony Xperia 5 II Guides, News, & Discussion] T3chDelicious:
Nice to hear that you join the 5 II family.

Yes, this is the site to receive the unlock code. In the list of devices choose the 1 II and then enter your IMEI from Sim slot 1. This will give you a working unlock code.

Still strange that this works with a different model...but I got a working unlock code with this method.
[Sony Xperia 5 II Guides, News, & Discussion] flyl0:
[MENTION=7780598]T3chDelicious[/MENTION] aaah good news, thank you man ??

I will update my post tomorrow, if I get my bootloader code and magisk working ^^

This will be the first time I have a Sony phone, right now I have a rooted Huawei Mate 20 Pro.
[Sony Xperia 5 II Guides, News, & Discussion] T3chDelicious:
You're welcome. With this guide there is nothing that can go wrong. Works like a charm.
[Sony Xperia 5 II Guides, News, & Discussion] micr0g:
So what's the limitations after bootloader unlock?

Only the 4k on netflix?
[Sony Xperia 5 II Guides, News, & Discussion] flyl0:
Guys, my imac and windows pc don't detect my xperia 5 II....

What can I do ?

Edit : It worked with a chinese usb-c cable but not with the 4 other usb-c cables that i have lol
[Sony Xperia 5 II Guides, News, & Discussion] flyl0:
My device doesn't work anymore after following this guide ..

I don't have access to nothing.. no recovery mode nothing work

I just got this message "Your device is corrupt, it can't be trusted and will not boot"

I really need help! :/
[Sony Xperia 5 II Guides, News, & Discussion] SeriousFlash:
Google Pay won't work but can be fixed with magisk hide.

Also amazon Video etc will also only play in 720p.

Pokemon Go might not be working, too.
[Sony Xperia 5 II Guides, News, & Discussion] T3chDelicious:
I'm sorry to hear that. Can you point out where everything went wrong?
[Sony Xperia 5 II Guides, News, & Discussion] Sermpie:
Try Flashtool or newflasher
[Sony Xperia 5 II Guides, News, & Discussion] flyl0:
That's what I did ! Like 1h ago.

Reflashed the original firmware with newflasher and flashed the BETA version of magisk not the stable one and now everything works fine.

S/o to the dev of the newflasher tool, it saved my life lol
[Sony Xperia 5 II Guides, News, & Discussion] PhilCapron:
Instruction 14 in op.

How do I get a magisk patched image file?

TYIA.
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
You missed step 1-13?:rolleyes:
[Sony Xperia 5 II Guides, News, & Discussion] PhilCapron:
No,didn't miss 1-13!With a bit of research sorted out 14 but had another problem right at the end.The fastboot commands there were thwarted because the bootloader will only run as unlocked if the sim is unlocked.My network provider won't give me an unlock code because the phone is less than 6 months old.This is where things stand at the moment.Working on it.
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
That's CRAZY! What about flashing a non Carrier Firmware with XperiFirm & NewFlasher? Do You have the OEM Unlock Option/Toggle in the Developer Settings? That may help as last resort... (try flashing another Firmware without SIM inserted before) https://www.reddit.com/r/SonyXperia/comments/exiyp6/bootloader_unlock_allowed_no_to_yes_is_possible/
[Sony Xperia 5 II Guides, News, & Discussion] T3chDelicious:
I can install a new update. Since I have root now and modified boot, is it safe to install the update or will it end in an soft brick? I came from pixel 3 and there was a method to update to new security patch with the downloaded firmware and keep root installed.

Has someone experience with that?

Much thanks.
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
You will not get any major System Updates with unlocked BL. So yes, you can install them without any issues... They are just affecting the Play Services and some other Stuff which isn't a critical Part of the OS. Heil Treble!
[Sony Xperia 5 II Guides, News, & Discussion] T3chDelicious:
Much thanks for the answer. This is very good to know. So yeah, Treble is a nice feature.
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
Reworked the whole Thread. A lot of Informations but it should be almost Bulletproof like that. I may change some things even further the next Days but i hope everything is covered now from...

If someone is willed to help out with better English in the Guide, just PM Me and we can do it together Folks!
[Sony Xperia 5 II Guides, News, & Discussion] Sermpie:
Awesome guide.

Bought my Xperia 5 ii today.

Going to root my phone Tomorrow.:svetius:
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
Just updated or mostly reworked the whole Thread today. Hope it goes well for You! Enjoy Your Xperia 5 II :cowboy:
[Sony Xperia 5 II Guides, News, & Discussion] Sermpie:
ok, i followed the tutorial....... and my phone is in bootloop.

eqbirvin post something on page 3 (maybe the firmware is the issue.)

I have the same phone as him (XQ-AS52) and i used the same firmware for the patch (Customized EEA)

Im going to try the Customized UK version as well.

Edit: no luck with the uk firmware. i dont know what im doing wrong.........

Device is corrupt, it cant be trusted and can not boot
[Sony Xperia 5 II Guides, News, & Discussion] T3chDelicious:
Please use Magisk beta channel to patch the boot.img. with Magisk stabil it will not work as I know.
[Sony Xperia 5 II Guides, News, & Discussion] flyl0:
Here is a list of xposed modules that I installed on my Xperia 5 II that work
[Sony Xperia 5 II Guides, News, & Discussion] Sermpie:
Awesome, it works.

thnx for the advice.

maybe a good point to write in the tutorial :good:

---------- Post added at 04:18 PM ---------- Previous post was at 03:44 PM ----------

Ok now that i have root.

I want to delete some bloatware (like Facebook and call of duty).

I installed root Explorer (its has super user permission on) but it wont delete the files.

Do you guys now what to do?
[Sony Xperia 5 II Guides, News, & Discussion] micr0g:
Hi

try to set as default the "a" slot and tell me if it works

This is how i bypassed the bootloop.
[Sony Xperia 5 II Guides, News, & Discussion] palamosteliaro:
Nice guide bro it worked perfectly. I think you should specify in the instructions to download the beta version of magisk to avoid bootlooping.
[Sony Xperia 5 II Guides, News, & Discussion] flyl0:
Try to reflash the stock firmware and use the beta version of magisk tho
[Sony Xperia 5 II Guides, News, & Discussion] palamosteliaro:
I am having an issue here: Magisk says that its installed, applications are actually prompting for root priveleges and I get the message "...was granted superuser rights" but none of the root apps I tried are working (busybox, adaway, system app remover) all are giving me some kind of error. I installed root explorer and the "root directory" seems to report 0 free space incorrectly (1.6GB used - 1.72 total) I tried copying a file inside the /system directory and it just didn't do anything. I tried reinstalling magisk from the manager, but its still the same.

Anyone else had this issue? Thanks in advance for any help.
[Sony Xperia 5 II Guides, News, & Discussion] T3chDelicious:
I messed up guys and need help.

I tried to update to new firmware with unlocked bootloader and root installed. I downloaded the new firmware over XperiFirm and in the folder i deleted the persist.sin and userdata.sin file so that my personal data didn't get wiped and run it over newflasher and got into a bootloop which ended in corruptet massage. I tried to install the new firmware without deleting the 2 files and still in the same bootloop. Flashtool from Sony didn't help. It cant recognize my device and companion app requires locked bootloader. I'm able to boot into Recovery and from there to fastboot. But it is Fastbootd and I cant run the command "fastboot oem lock". It ends in an error. So I'm totally lost here.

Edit:

I changed the slot to install on a partition and phone bootet thankfully up.
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
I will add a Hint on top of the Thread that People have to patch with Magisk Beta Channel. Thanks for the Hint Folks!
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
Thread Updated with more exactly Magisk Instructions
[Sony Xperia 5 II Guides, News, & Discussion] Sermpie:
Maybe someone knows the adb command Line to delete the apps in adb Shell?

For exemple ( Facebook)
[Sony Xperia 5 II Guides, News, & Discussion] hellomot0:
so, there is no any way to modify System?

i know only about this command, but its only disables apps and no root needed

or you can try classical su rm-rf in Facebook catalog
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
Systems can't be mounted as r/w anymore. So no. You can use Magisk or maybe recoveries but once booted it is secured within Android (The Magisk Dev explained it).
[Sony Xperia 5 II Guides, News, & Discussion] hellomot0:
how to use magisk for deleting system apps? whats root's benefits for now? is it still possible to disable apps activities, recievers; block ads (with AdAway); use AFWall+?
[Sony Xperia 5 II Guides, News, & Discussion] jmpantani:
otas updates will be lost rooting and opening bootloader?
[Sony Xperia 5 II Guides, News, & Discussion] Sermpie:
No ota with unlocked bootloader

---------- Post added at 10:21 PM ---------- Previous post was at 10:18 PM ----------

I made a post for deleting apps with adb Shell.

I think this is the only way for now to delete apps.
[Sony Xperia 5 II Guides, News, & Discussion] jmpantani:
Could i open bootloader, root, close bootloader and then take otas updates with root?

I would like to root it to install adaway.

Thanks
[Sony Xperia 5 II Guides, News, & Discussion] hellomot0:
after you close bootloader you will get bootloop. there is no way to get root and locked bootloader now
[Sony Xperia 5 II Guides, News, & Discussion] Sermpie:
Bootloop after locked bootloader is caused by patched boot.img (magisk). Maybe you can try to root, install adaway and patch again with the original boot.sin?

Dont know of this work, but its worth to try
[Sony Xperia 5 II Guides, News, & Discussion] flyl0:
I would like to know how to update the system while being rooted
[Sony Xperia 5 II Guides, News, & Discussion] carburano:
Hi Guys Gcam Mod team by B-S-G need a build.prop file to start working on Xperia 5II

Can you help me sharing the build.prop since I'm note rooted (i cant for work).

Thanks
[Sony Xperia 5 II Guides, News, & Discussion] hellomot0:
You don't need root and even xperia 5 II to get the build.prop. Just unpack Sony firmware. Taken form 58.0.A.22.21
[Sony Xperia 5 II Guides, News, & Discussion] carburano:
thanks a lot
[Sony Xperia 5 II Guides, News, & Discussion] TripodKnight:
Thank you for this guide. I was able to get Magisk installed with this though I had a few issues.

FYI to anyone trying: The Xperia companion app (Downloaded from the Sony USA website) did not work to restore my phone even with the bootloader locked. It would end in error each time. In curiosity, I tried using it to repair after I fixed my bootloop and it still ends in error. A word of warning to anyone who is relying on this to fix a potential brick.

When I tried to recover a bootloop using Newflasher, the full stock rom would not flash. It would hang on the file "dsp_X-FLASH-ALL-2389.sin" and would not complete. I recovered my brick by removing this file and letting Newflasher flash the rest of the files. Thankfully it seemed to have worked. I don't know what this file is specifically for but perhaps I was lucky and it was not part of the corrupted files on my phone.

As well, I was unable to get MicroG working with the Nanodroid patcher. I was never able to get system read/write privileges to deodex the stock rom similar to the reports above.

Best of luck to anyone using this!
[Sony Xperia 5 II Guides, News, & Discussion] pandavova:
Could someone summarize a list with features that don't work after an unlocked bootloader? I don't get the "Display Enhancements" for example.
[Sony Xperia 5 II Guides, News, & Discussion] TripodKnight:
OP has this summarized in his first post
[Sony Xperia 5 II Guides, News, & Discussion] flyl0:
"The list of DRM-related features you would lose include some camera post-processing features, color gamut profiles, white balance, X-Reality Video Enhancement, DSEE HX, ClearAudio+, and Widevine L1 support for HD Netflix"
[Sony Xperia 5 II Guides, News, & Discussion] TripodKnight:
Where did you get this list? As far as I'm aware there's no Camera DRM issues with the xperia 5 ii. The only DRM loss you get are the color gamut profiles and the HD nextflix.
[Sony Xperia 5 II Guides, News, & Discussion] TripodKnight:
Anyone else having issues using camera pro after installing magisk?
[Sony Xperia 5 II Guides, News, & Discussion] Kaora2828:
I'm using XQ-AS72, I flashed XQ-AS52(EUver) and take root(bootloader Unlocked and installed magisk).

And I can use "Photo Pro" and "Cinema Pro" app.

If camera pro means Photo Pro, U can use it after root.
[Sony Xperia 5 II Guides, News, & Discussion] TripodKnight:
Thanks for your input! Did you flash it using newflasher? I was having problems getting newflasher to flash properly as it kept getting hung up on one file.
[Sony Xperia 5 II Guides, News, & Discussion] Kaora2828:
Yes

I used newflasher(newest one), and I allways tap "N" if ask from Newflasher(4times).
[Sony Xperia 5 II Guides, News, & Discussion] Nezorflame:
Worked like a charm, although I had to unpack the drivers before installing them in Win10 disabled signature check mode. Apart from that, flawless, huge thanks to OP.
[Sony Xperia 5 II Guides, News, & Discussion] Styl1sh:
Hello! Can U tell me - U repeated the rooting process after moving to EU Firmware?

Did U flash vbmeta?
[Sony Xperia 5 II Guides, News, & Discussion] nykreimox:
Hi, noob question, but would this work on the US model?
[Sony Xperia 5 II Guides, News, & Discussion] Kaora2828:
Yes. I couldn't get root without that (from No. 26).

And I always flash vbmeta.img and always lost all user data.
[Sony Xperia 5 II Guides, News, & Discussion] munjeni:
I don't agree. DK key is lost forever! If you not believing me do trim area dump and search for unit 0x1046b it not exist anymore! And there is no way to restore DK key. I will not comment functionality but it might be reduced too, but for sure your warranty is bye bye because of removed DK (device key). You should update OP and tell users under warranty about that. What we have facing recently is "rollback protection" on newer xperia models -> https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/post-84077083 , anybody confirm?
[Sony Xperia 5 II Guides, News, & Discussion] Miustone:
I do believe You without extra checking that. But does that apply to the 2019 Xperias too?

The 2020 ones are some Kind of different with the extra Fastboot Menu and the extra Recovery Partition. I guess they just made this Changes recently besides also having different laws about Warranty in different Countries. I'm pretty Sure everyone is aware that the Warranty does not Catch in If the Software is screwed after relocking, but even in a Case of Hardware issues and a locked and revovered Device are they still aware about the unlock Key that was given for a specific IMEI. So i don't get the Point of this extra Check...

But anyways, i will tell the whole Story now instead of saying "Like Out of the Box". Thanks for the Hint!

Edit: Threads will get Updates in some Hours!
[Sony Xperia 5 II Guides, News, & Discussion] munjeni:
2019 and up indeed have feature "oem lock" but it didn't restore device key, booth keys is deleted, one in TA and other one in rpmb, what is afected by that removal I don't know. Related to warranty can't tell for sure if warranty is over after unlocking bootloader, but one should inquire and keep that in mind.
[Sony Xperia 5 II Guides, News, & Discussion] munjeni:
Is there any way to flash oldest firmware bypassing rollback protection?
[Sony Xperia 5 II Guides, News, & Discussion] CaptainFluffy:
I just got my Xperia 5 ii in a few days ago and it's the US (XQ-AS62) model, but the firmware for the '62 is not in XperiFirm (only the '52 and '72). I know that mixing firmwares for non-matching model numbers is a big no-no for Android, but is there a chance there is an exception for the boot.sin, or am I stuck waiting for the '62 to be added?
[Sony Xperia 5 II Guides, News, & Discussion] munjeni:
Do not even try to mix firmware because of vbmeta! Boot is protected by vbmeta and if you flash boot vbmeta will bootloop your phone! Ask Igor in xperifirm thread