[Sony Xperia 5 V] ki4mor:
Info & Intro​

After much difficulty getting my hands on this phone being the US and seeing as there is no guide posted here yet. I wanted to document my progress get this phone working to my liking out there for anyone else who is interested. This was done on the UK Version XQ-DE54, but should work on all Versions that support OEM Unlocking. I choose to import this version because of the close band compatability with my main carrier Verizon. I plan to contiune to update this guide as I naviagte using this phone in the US. More than willing to answer any questions anyone else who has imported a Xperia 5 V to the US.

This guide makes a few assumptions such as knowing how to enable USB debugging, setting up drivers properly, navigating directories in command prompt, and other similar items I think one should know if they are trying to root your device. This is a dangerous process that if done wrong could result in a soft or hard bricked phone. Don't make your phone a paper weight this is just listing what I remember doing to the best of my recollection

[I am not responsible for anything you choose to do to your own device following this guide or not]​

Thanks​

Many thanks to the guys over at the Xperia 1 V forums for there experience in tackling some of the hurdles with the 5th gen devices. Specifically mufunyo and the people in this thread.

u/knowwonder coming in with the save over on Reddit for NSA and SA 5G. Still testing on this generation but looks good so far.

0. Getting everything sorted​

Tools:​

XperiaFirm (Download here)

Unsin (Download here)

Magisk (Download here)

Platform Tools (Download here)

ABD and Fastboot Drivers (Download here)

Play Integrity Fix v9.8-props (Download here)

Requirments​

Update you phone to the latest version that is available on XperiaFirm

Remove any pin or lock screen security

Another Android device to Patch the boot.img with

1. Check if Device is Unlockable & Get Unlock Code​

Check Unlockability​

Dial *#*#7378423#*#*

Go to Service info -> Configuration

Make sure Bootloader Unlock allowed says Yes

Get OEM Unlock Code​

This is a bit confusing as at the time of writing there is not an option for the Xperia 5 V. When emailing Sony's Dev support they said "Unfortunately, if your device is not in the list of devices, it is currently not possible to unlock the bootloader of your device." I didn't believe them and tried anyways. It worked using a different phone model but using your IMEI number.

[Update 10/26/203] - Sony Developers Replied again to my email and said that the Xperia 5 V is now available to select for generating an unlock code.

Go to Sony's Developer site

Scroll down to the bottom where it says "select your device"

Select Xperia 1 V (yes not even though this is a guide for the Xperia 5 V)

Entered your IEMI number, check boxes, hit submit

This generated a code which worked successfully to OEM unlock. Save this code you will need it below

2. Unlock bootloader​

Before you do this step avoid any conflicts with the key pass by removing any lock screen pin. Even better if you never set one to begin with.

Download and install ADB platform tools from Google, Link above

Extract them into a directory such as c:\adb

Open that directory with Command Prompt:

cd c:\adb

Connect you device with usb debugging

Authorize your computer to use usb debugging

Reboot into fastboot mode

adb reboot bootloader

You should be on a black screen with a blue asterisks in the top left

Check to make sure you computer can see your device

fastboot devices

Unlock the bootloader with the following command i.e. fastboot oem unlock 0x6C982D7916728916

fastboot oem unlock 0x{Unlock Code Here}

Restart the device

adb reboot bootloader

3. Root with Magisk​

This is where things get a bit different from the previous Xperia devices. Pay close attention to the names of the boot images and from what screen they will need to be flashed from.

Patching the init_boot.img​

Run XperiaFirm

Download the firmware corresponding to your device code and country

Open the firmware folder and locate init_boot_X-FLASH-ALL-25B1.sin

Copy this to the folder with unsin.exe

Drag and drop it onto the unsin.exe

You should now have a .img file with the same name.

Copy this to a different android phone running Magisk (I used the stable version 26.3)

Patch the img file you copied to the phone with Magisk

This will save the patched file in the downloads folder with a name such as "magisk_patched-26300_DEsjS.img"

Copy this back to you computer in the folder you are working in

Flashing to the Phone​

Reboot to fastbootd mode by running

adb reboot fastboot

Make sure that you have the heading "fastbootd" at the top in red.

Flash the patched init_boot.img from fastbootd

fastboot flash init_boot magisk_patched-xxxxx.img

Reboot the device

fastboot reboot

Installing Magisk​

Download and install the Magisk .apk from github, link above

Once installed open the app and check make sure that there is an installed version under the Magisk Header.

You may want to click install again but I don't remember if I did or not.

4. Pass Safety Net​

This is a work in progress and I update it once I get it working on my device. Think this has something to do with safety net fix mod 1.3, but I'm still testing Google Wallet and other apps.

[Update 11/7/2023] - Working Basic Integrity passed, google wallet working!

After few different trials i have found a package that is working. chiteroman here at XDA has a magisk module that worked first try for me. You can find more information in this thread. I have put a download link to this in step 0.

This is only tested on the V9.8-props version. I will update here if anyone tries new versions and has success.

5G. US Support​

Proceed at your own risk. Full credit goes to u/knowwonder on reddit. I have just gotten this to work, but without a working esim for testing of dual sim dual standby I am unsure if there is a way to revert this change. After doing the following the option is now gone from my network settings. It looks like he was able to revert and keep 5G active, however at that was a gen IV phone of a different model it remains untested. I will hopefully be testing this in the coming days when i finish arguing with my other cell provider.

[Update 10/27/2023] if you reboot before toggling Enable DSDS back on the option will disappear and you will need to factory reset to get it back. Will update when I figure it out.

[Update 11/7/2023] Alright This is all working and tested here in the US. Dual sim with dual standby (automatic data switching) with a Verizon hard sim and an AT&T esim.

Open your dialer and enter *#*#4636#*#*

Select Phone information

Toggle "Enable DSDS" off

Wait a second until the 5G symbol appears at the top.

Reboot

Finished (DSDS mode see below)

If you want/need DSDS mode you will have to re-enable this via adb shell, root IS required.

Plug your phone in and allow usb debugging

Open a command prompt and start an adb shell. You may have to allow on your phone.

adb shell

Get super user premissions (this requires root and may need approval promt on phone)

su

Set these 2 props with setprops.

setprop persist.vendor.radio.multisim_switch_support true
setprop persist.radio.multisim.config dsds

Reboot