yashsingh1/xdaforums huggingface dataset:
[Sony Xperia 1 IV] Assimilator-X:
It works fine. Just got a new Xperia 1 IV today. Possibly, I am looking for a rootable phone for weeks now, that does not rolling off from the table and has a good hardware. Managed to activate all my apps including banking and call recording as well on google dialer. Thank you for your input. Btw i had to replace the O2 firmware on it with the Generic UK firmware, as the O2 firmware did several update OOB, and corrupted the firmware.
[Sony Xperia 1 IV] Assimilator-X:
Just use adaway from F-Droid its working.
[Sony Xperia 1 IV] Thaiban:
Did you get 5G & Volte work with you?
[Sony Xperia 1 IV] Richard_10:
Hello guys, I’m new to the sony ecosystem (coming from 3 oneplus’).

could you kindly help me understand the ota / updating situation after root ?

normally in an A/B device you should be able to use magisk to restore your original bootloader, do an ota, reflash magisk on the inactive (updated) partition, and then reboot.

what is the case in sony devices ?
[Sony Xperia 1 IV] Assimilator-X:
I would not do it. Just download the new ROM from xperifirm, flash it. and root it again as you did in the first place. If OTA update is important to you, just unroot your phone and disable the apps you don't need. My main reason to root is my privacy and security, including the fact that call recording apps no longer working without root on android 12, and I need that. Dont mess with fota we dont have TWRP yet. If fota messes your phune up, you will waste a good half day to recover it and reinstall all your apps.
[Sony Xperia 1 IV] wednesyao:
Both work well, appearently.
[Sony Xperia 1 IV] htcmage:
Thank you so much for the great teaching. The information about the module was very helpful

Xperia remembers that there was a penalty for unlocking the bootloader before XZ3, so everyone seems hesitant to unlock the bootloader. If you have a good module, please share it again. Thank you very much.
[Sony Xperia 1 IV] Assimilator-X:
Interesting fact of these new xperia devices... The camera performance and quality is not locked behind the existing digital certificates. I took some pics before rooting and after rooting. Cannot see any difference in lagging or quality loss, green hue or pixelated nighty shoots. I have to say that I cannot fully utilize the camera yet, so much options in there. I've made these pics after rooting the device.
[Sony Xperia 1 IV] htcmage:
yes! you're right. There is no penalty for anything related to the camera
[Sony Xperia 1 IV] tronganhha29:
Bạn sẽ không nhận được bất kỳ bản cập nhật OTA nào. Tôi đang sử dụng 1 phiên bản iv của Trung Quốc, đã flash qua firmware SEA. tuy nhiên xperia Companion không thể nhận dạng phần sụn đang được sử dụng. Bạn sẽ phải cập nhật qua xperifirm 😢

Mod Edit: English Translation Below

You will not receive any OTA updates. I am using a Chinese version of iv, flashed via SEA firmware. however xperia Companion cannot recognize the firmware being used. You will have to update via xperifirm 😢
[Sony Xperia 1 IV] Fujimens:
Would it be possible with a root to activate band 71 for the US in a EU model like the XQ-CT54?
[Sony Xperia 1 IV] shadowsmg:
I've just had the xperia 1 iv (XQ-CT72) today. Would you please show me the step and essential software for rooting the phone in detail?

Thank you so much.

PS. I have obtained the unlock code from sony and unlocked the phone.

Every time turning on the device, it showed "Your device software can't be checked for corruption, Please lock the bootloader."
[Sony Xperia 1 IV] aygul12345:
Could you explain how to unroot?
[Sony Xperia 1 IV] Momokaxakayashi:
I'm looking to get the USA model of the Xperia 1 IV. If I root will widevine still work? (mainly for youtube and netflix
[Sony Xperia 1 IV] Thaiban:
When i try used this code fastboot oem unlock 0xYOURKEY they show me waiting for your device, already contacted and go to fastboot, could you please explain, thanks
[Sony Xperia 1 IV] shadowsmg:
I faced the same situation. What I did was to re-install google android drive, so I could re-connect the fastboot interfaced Xperia 1 iv to PC and finished flashing the modified boot.img
[Sony Xperia 1 IV] mufunyo:
Only widevine L3.
[Sony Xperia 1 IV] Thaiban:
Thank you ❤️, rooted & waiting for 5G modules
[Sony Xperia 1 IV] Thaiban:
I have issue during try to pay using wallet, any suggestions?
[Sony Xperia 1 IV] aygul12345:
Which call recorder you use?
[Sony Xperia 1 IV] mufunyo:
Make sure to add Google Wallet to the Magisk DenyList and clear app data and reboot.
[Sony Xperia 1 IV] aygul12345:
Which call recorder do you use on the Google dailer?
[Sony Xperia 1 IV] Thaiban:
May i know how you hide navigation bar with this step (( MagiskHide Props Config 6.1.2 (used to hide navbar and enable bluetooth in-band ringing ))
[Sony Xperia 1 IV] mufunyo:
qemu.hw.mainkeys=1 to hide the navigation bar and persist.bluetooth.disableinbandringing=0 to enable in-band ringing.
[Sony Xperia 1 IV] Thaiban:
Where i writing this order by adb?
[Sony Xperia 1 IV] mufunyo:
Install Termux, type su and then type props. Follow the on-screen instructions to add your custom props.
[Sony Xperia 1 IV] Thaiban:
Awesome, thank you
[Sony Xperia 1 IV] aygul12345:
What does Enable in-band ringing?
[Sony Xperia 1 IV] aygul12345:
@mufunyo can you get OTA updates while being rooted? If so, how do you contain the root after you update your phone with the OTA update?

What are your steps to proceed?
[Sony Xperia 1 IV] mufunyo:
It prevents bluetooth headsets from ringing their own on-device ringtone, and ring your personalised phone ringtone instead.

No, OTA updates are blocked with a modified boot.img. To update, use XperiFirm to get the latest version, extract boot.img and Magisk patch it (same steps as in the OP), then use Newflasher to first set slot A active (newflasher set_active:a), then flash the firmware making sure to answer YES that you want to preserve userdata, reboot to fastboot, and flash your patched updated boot.img.
[Sony Xperia 1 IV] aygul12345:
Thankyou!

How do you install tweaks without a TWRP Recovery
[Sony Xperia 1 IV] mufunyo:
Install them systemlessly using Magisk.
[Sony Xperia 1 IV] aygul12345:
Can you give me a little bit theory about why or if a TWRP is needit yes or no? Can you give me more detailed why you don't need it and why you maby need it when its hendy?

I don't know in which circumstance a TWRP is hendy yes or no.

Because Im always thinks like, a TWRP is a MUST!
[Sony Xperia 1 IV] mufunyo:
I would love to have TWRP so I can make nandroid backups and cover my ass if/when I softbrick my phone. However, there is no TWRP for Android 12 yet, so we'll have to manage without it. As for tweaks/mods, most if not everything can be done using Magisk these days.
[Sony Xperia 1 IV] Assimilator-X:
I am using axet's call recorder from magisk repo. I have tried google dialer mods but ended up with a boot looping device until booted to safe mode.
[Sony Xperia 1 IV] aygul12345:
I see. Good to know that TWRP is pretty solid to have then for backups and etc.

Im testing my own device, Xiaomi Mi 11 Pro, rooted without TWRP,NON-TWRP. It boots now contineusly in to the stock recovery... after a several reboots the phone boot then in to the OS.

Could you know what wrong is? How to fix this?
[Sony Xperia 1 IV] mufunyo:
I would suggest asking in the relevant forum for your phone, this thread is about the Xperia 1 IV.
[Sony Xperia 1 IV] go0:
[EDIT]These instructions ended up clearing things up for me.
[Sony Xperia 1 IV] mufunyo:
I should mention that when I said downgrading should be possible, this was based on outdated information. Apparently newer Xperia phones have a ratcheting firmware update system preventing downgrades and I was unaware of this when I just got the phone.
[Sony Xperia 1 IV] SonicSamZ:
I want to root for sure but the manual way of doing updates is more cumbersome than my Zenfone 6's OTA-while-rooted mechanism (just placing the ZIP manually on filesystem), not to mention requires a PC to perform.

How much of a hassle has it been to stay up to date with OTA updates?
[Sony Xperia 1 IV] akkk44:
Personally, I use a software named Konabess to patch the boot image in order to bring to the voltage of the GPU down a bit, and I found out that it actually helps reduce the temperature of the phone. Since you have also rooted your phone, maybe consider giving it a shot?
[Sony Xperia 1 IV] htcmage:
For many 1IV users I would like to ask you for a guide
[Sony Xperia 1 IV] lassetth:
How to relock bootloader. I`m sending my phone for service.
[Sony Xperia 1 IV] akkk44:
The software and its guide can be found here: https://github.com/libxzr/KonaBess

As for cpu, I use the France kernel manager to modify the CPU governer and other stuff
[Sony Xperia 1 IV] ig2205:
fastboot oem lock

or

fastboot flashing lock

fastboot oem relock
[Sony Xperia 1 IV] lassetth:
Thanks! Did you tried?
[Sony Xperia 1 IV] ig2205:
It works 100% on Xperia 10 IV - I did it myself, I didn't check the Xperia 1 IV because I don't have one. I have no other idea.
[Sony Xperia 1 IV] raven213:
can someone show me how to root ? I already unlocked the bootloader just trying to figured out the rest thanks

Edit: nvm I got it thanks
[Sony Xperia 1 IV] htcmage:
Excuse me

The relevant settings applied by the user

via konabes code export

Can you please share?
[Sony Xperia 1 IV] lassetth:
This I got for every command

"FAILED (remote: Command not supported in default implementation)

finished. total time: 0.002s"
[Sony Xperia 1 IV] Jealousy7:
Does the X1 for mobile works in unlocked bootloaders?

It seems that mine is not working with unlocked bootloader
[Sony Xperia 1 IV] fastbooking:
fastboot oem unlock [unlockcodefromSonyWebsite]

For flashing, don't forget fastbootd

You can downgrade only if you have an unlocked bootloader and you use flashmode.

After then you can relock just fine
[Sony Xperia 1 IV] lassetth:
Thanks, but I' m looking for a way to lock bootloader. Solution?
[Sony Xperia 1 IV] fastbooking:
fastboot oem lock [unlockcodefromSonyWebsite]
[Sony Xperia 1 IV] lassetth:
OKK,th

Ok, thanks. I have get the code from SonyWebsite?
[Sony Xperia 1 IV] lassetth:
Sorry but this was the message

"FAILED (remote: Command not supported in default implementation)

finished. total time: 0.016s"
[Sony Xperia 1 IV] fastbooking:
Did you enable OEM unlocking in dev options ? It's so weird that you're failing to unlock, note : you should use fastboot (blue led, vol up + USB)
[Sony Xperia 1 IV] lassetth:
OEM unlocking enabled. But use fastboot blue led, vol up + USB is not working. Flash process not start up.

Maybe it´s ok to unlock the bootloader but not relock bootloader.
[Sony Xperia 1 IV] fastbooking:
You should be able to relock, fastboot must work since you unlocked it via fastboot
[Sony Xperia 1 IV] lassetth:
This morning I was successful and locked the phone.

I had to repair system via Xperia Tool before the phone booted up into system.

Thanks for helping.
[Sony Xperia 1 IV] DKXC:
I don't know why so many people have issues with it, except US people ofc, I'm from Germany and have the EU version, had no problems with Magisk, patching images and flashing, works flawlessly right now
[Sony Xperia 1 IV] s1dest3pnate:
I would like to know this too. Anyone know?
[Sony Xperia 1 IV] Assimilator-X:
use fastboot oem lock command it might ask you for the unlock code you got from sony. However they will see that you have requested an unlock code and EMMA2 will flag it out of warranty. I was working in a repair center years ago. Every time a relocked Sony phone was plugged in to Sony's EMMA software (that works only on-line) it was flagged as OOW or refused to install the factory software. EMMA is basically an advanced repair version of the Sony Companion software suite, but it lets you downgrade upgrade change CID number or customer ID number on any board most of replacement Sony boards come without software installed (Brown=empty boards)
[Sony Xperia 1 IV] suuperboom:
@mufunyo - have you noticed any loss of functions after root/BL unlock aside from widevine? I know you said camera was 100%, what about other things like video, audio enhancement etc?

I'm trying to work out what might break from BL unlock & root before buying the phone. Thanks!
[Sony Xperia 1 IV] mufunyo:
The only other loss is OTA updates. There is not even a notification of new updates - everything is now manual. HDR, display/video enhancement, Dolby, 360, DSEE, etc is all functioning normally.
[Sony Xperia 1 IV] thud1:
For the people that got Root working. Can you remove google play and install microG as a replacement?

or does that break the phone?

Would all the sony apps work fine with microG instead?
[Sony Xperia 1 IV] buzzcut:
Considering to get this phone , coming from pixel 6 series that doesn't break widevine L1 if rooted , any solutions to solve this issue for rooted 1 IV ? Kind of waste to have such a pretty screen but stuck on L3, thanks .
[Sony Xperia 1 IV] raven213:
So far we are stuck with l3 nothing we can do to make it l1. Sucks that others would let you have l1 with rooted phone
[Sony Xperia 1 IV] buzzcut:
Indeed , the grey import 1 IV that supposed to have higher rsp is even cheaper than 256gb pixel 7 pro price in my country , but the L3 thing is really a let down .
[Sony Xperia 1 IV] raven213:
If you aren't planning on rooting you should be good lol
[Sony Xperia 1 IV] buzzcut:
Yea , should be good if no such plan.
[Sony Xperia 1 IV] stonyperson2:
Is it possible to relock the bootloader and keep ROOT access? Sorry if the question seems stupid;
[Sony Xperia 1 IV] raven213:
no you cant
[Sony Xperia 1 IV] jmozmoz:
Could somebody please show the exact commands for extracting all necessary img files and how to flash them?

Which of the vbmeta files need to be flashed? There is a vbmeta_system_X-FLASH-ALL-xxxx.img and a vbmeta_X-FLASH-ALL-xxx.img.

Do I have to flash the boot image in A and B slots? I found these commands:

fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img

What is the command to flash the vbmeta image(s)? Again, I found these. Correct?

fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img

Thank you for your help
[Sony Xperia 1 IV] davestuarts:
Has anybody got any insight into updating after rooting. The basic principles..is it similar to rooting i.e. using xperifirms. Is there data loss/reset/loss of root during flashing upodates from said files? Thanks
[Sony Xperia 1 IV] ragu24:
You literally get the software, you drop the Newsflasher software in the update folder after connecting your phone via fastboot or recovery, voila

It unroots after updating, but to fix it, after the update, you unsin the vendor image with magisk, flash the magisk vendor image - root is back :)

You lose no data unless you use the wipe command. Only reason it happens initially on first root is since you unlock the bootloader, it has a defense mechanism if you may (to protect user data). After this, you can just apply the new software and keep your data moving forward.
[Sony Xperia 1 IV] jmozmoz:
This seems to be a very detailed explanation how to do it: https://blog.huenet.net/updating-a-rooted-sony-xperia-1-iii/

(I have not tried it yet, because I started rooting with the current version)
[Sony Xperia 1 IV] davestuarts:
Oh excellent, thanks for this. I'll still do a basic files backup of course but still wanted everything to stay intact after any updates. I got my phone a few weeks ago with A12 and after some initiall testing it prompted to update to A13, so thought I do that first before I rooted, after I did a slight debloat and It's been running fine since.

As you know theres been a small update, so wanted to apply that, but it seems to be flaky so I'll probably wait yet. Just wish there was an OTA incremental sized file update, than needing to do a whole 3GB+ file update for us rooted users.

Oh wow, thanks for the link. As above, I'll probably wait to do this incremental update, but it's all good to know. The crazy thing is not sure has rooting and the whole process become easier over the years or harder, does seems like a chore sometimes...but I still want it.

I've been doing it since HTC Hero and some general hacking with previous non android phones. Maybe it's age.
[Sony Xperia 1 IV] ragu24:
No worries! I went from A12 to A13 and it kept everything intact, so rest assured there's almost no risk.

And yeah, I feel ya. It's inconvenient, but at least we can still update it so there's that :) Feel free to reach out if it gives any fastboot recognizing issues with newflasher or driver gremlins - I've trouble shot so many already that weren't online doc'd so can probably help ya if anything!
[Sony Xperia 1 IV] davestuarts:
Hey, thanks. will do. I did have a gremlin when I rooted the first time. Bootloader and fastboot would be seen in windows 10, had to get an old laptop out that had WIN7 on, install the drivers and got it to work. Under W10 I tried everything that I knew but not worked. Any working suggestions? Though not needing yet.
[Sony Xperia 1 IV] ragu24:
So basically fastboot devices showed nothing, right? Despite phone being on standby and ready to go with blue light?

In my case, the Sa200 driver or whatever it's called had to be installed directly onto the android device sub list in the windows device manager itself - there will be on the android devices list one with a yellow triangle warning sign. Select it with right click and force the sony driver onto that one in the manual disk selection!

Will recognize it after it's installed. Also make sure the device is standing by in fastboot when you do this, that way it will appear on the list like I mentioned
[Sony Xperia 1 IV] davestuarts:
Yep, it was exactly all that. I try do what you say next time. Thank for the tip.
[Sony Xperia 1 IV] davestuarts:
@ragu24 Hey, hope you're well. Now that the latest firmware 64.1.A.0.869 was made available on xperifirm, I thought I'd download and install.

As you're well versed in newflasher and I've never used it, I know there is a guide but confused about this section:

SOME MORE THINGS:

"You do not need to unlock bootloader or to root the phone if you want to flash a stock firmware from XperiFirm.

There are no files in the stock firmware that need to be deleted. Prompts will ask you to skip some files.

Feel free to press N to every prompt since:

- TA dumping it's not related with DRM keys.

- Flash persist_* files only if you know what you are doing, since you will lose your attest keys. Backup persist partition.

If you need the firmware on both A and B slot use fastboot commands to choose the inactive partion and re-flash.".

Also, do I flash all filesin the folder, as discussed in guide?

I assume there will be a promt or option about the wipe command, as of course I dont want to lose my files or settings? Thanks

##update## after a basic manuakl backup, just in case I followed the guide someone linked previously:

Updating a rooted Sony Xperia 1 III

If you've rooted your Xperia 1 III, you will no longer receive OTA updates. This guide will show you how to update your rooted Xperia. -------------------------------------------------------------------------------- NOTICE You may potentially lose root access after updating until you...

blog.huenet.net

Worked like a charm and as you said, user data all saved.

Followed up with the magisk root guide. Boom! My 5IV up-to-date

Plus I followed what you said about the fastboot driver, it worked. Thanks.

Other than security update and netflix app added, can't see any difference.

Probably all under the hood.
[Sony Xperia 1 IV] skedapdoob:
i converted to img its saying unspupported image in magisk any way to fix?

also it is saying its a bin file on the phones file system is that normal?
[Sony Xperia 1 IV] ragu24:
It's allegedly best practices to kill all the TA files since they have some unique info to them that makes them potentially cause conflicts with the device.

This guy did a video demo/tutorial on running newflasher

Expect a similar experience, and yeah it's good for non root as well, however if that's the case I'd recommend you OTA it since it's far easier and safer.

If you wish to still push ahead, the video shows how you can find and kill the TA files (I did it personally, cant attest to what happens if you dont), then drop the newflasher files onto the folder and let it rip. Phone must be in fastboot mode, however it will sometimes not recognize it, just switch to recovery mode instead (same steps as fastboot, except hold power button and down volume button instead of volume up).

Run newflasher again and it will take. Skip gordon flasher and the trim partition thing (don't play with this one, research shows it's for experimental purposes, so opt to skip it) and of course, keep your user data :)

Don't worry about the a and b partition, it's not a factor during newflasher, only when manually flashing the boot images during root or something. The video explains it pretty well (except for the recovery mode fallback).

Hope that clears it up!
[Sony Xperia 1 IV] ragu24:
You got the boot image and upon feeding it to magisk it returns this error?

Btw, you just grab the file, no need to modify or convert it in any way. Make sure you got it off the right spot too since there's similarly named ones
[Sony Xperia 1 IV] davestuarts:
Installing Magisk and rooting a Sony Xperia 1 III

-------------------------------------------------------------------------------- PREREQUISITES 1. An unlocked Xperia 1 III (guide coming soon) 2. XperiFirm ( https://forum.xda-developers.com/t/tool-xperifirm-xperia-firmware-downloader-v5-6-2.2834142/ ) 3. UnSIN (...

blog.huenet.net

I additionally followed this, worked like a charm on my 5IV
[Sony Xperia 1 IV] buzzcut:
Same as my case, been rooting all of my phones since HTC Hero time too, it's much easier to root nowadays compared to back then.
[Sony Xperia 1 IV] rdrlima:
Have anyone tried the pixelify magisk module? I just bought the phone and would like to use it
[Sony Xperia 1 IV] mrbonine:
I've been on Samsung rooted for years but moving to Xperia. The answer above is 100% correct. My advice is any OTC workaround is dicey and to be avoided, even if theoretically possible. I suggest everyone accept that as a minor inconvenience. On the plus side it could prevent you from an automatic update you didn't want.
[Sony Xperia 1 IV] SonicSamZ:
The phone becomes incredibly sluggish when it gets hot. I don't know if it's framerate alone, or CPU throttling, but it feels like absolute garbage.

Anything on the root side to help with that? Either by forcing 120Hz or by disabling throttling (again I'm not entirely sure what the "issue" is yet so I am being vague)
[Sony Xperia 1 IV] ragu24:
I'm on Pro-I but this still applies...

You can use FKM and set per app profiles to switch the CPU and GPU dynamically

I set some apps to disable the prime core, or even more cores depending on which app.

I also undervolted the GPU and made custom frequencies for it (overclocked from 840Mhz to 855Mhz and also as low as 150Mhz now possible).

I also used a magisk module to remove thermal limits so it does away with throttling, although battery has hardware based throttling that starts at 52°C and ramps up at 56°C. Mind you this is battery temp. Camera apps and such no longer show warning or stop you though.

And yes, there are modules to force 120Hz, but they can impact your experience with Game Enhancer (mess with the 240Hz mode).

Dfps is the name of the module

GitHub - yc9559/dfps: Dynamic screen refresh rate controller for Android 10+

Dynamic screen refresh rate controller for Android 10+ - yc9559/dfps

github.com

If you want to streamline all of the above, you can also go with the Uperf module. Im more of a DIY custom tailored guy tho
[Sony Xperia 1 IV] SonicSamZ:
Starting with dfps first, already impressed with this. Thank you!