[F31xx][Guide][N] How to root your Xperia XA (as noob friendly as possible) - Sony Xperia XA Guides, News, & Discussion

Hi all,
I'm happy to share with you an updated guide on how to root the Xperia XA.
This guide is Only for Nougat (Android 7.0), for Marshmallow (Android 6.0) it's here: https://forum.xda-developers.com/xp...ia-xa-noob-t3430170/post67988142#post67988142
## How to root the Sony Xperia XA
The Sony Xperia XA is a midrange smartphone with a bezeless design. It has adequate specs and run Android aptly. These aspects make this phone a great daily driver, however the Sony stock Android is plagued with trashware and all the hurdles Android itself has several privacy problems.
By rooting the phone one can circumvent these limitations. You will be able to install the Xposed framework, improve sound with Viper4Android, block hosts, install dns-crypt and improve overall customability. In the follwing sections I will present the steps to root your phone.
But before proceeding a word of caution (or why you wouldn't like to root your phone):
1. Unlocking your BootLoader will void your warranty, break your device DRM and lose X-Reality and image optimisation on low light when taking pictures.
2. You can save your DRM keys (TA backup) by following this guide: http://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236. You have to do it BEFORE unlocking the bootloader, fro this you need to downgrade to an old Marshmallow firmware, for now you can't root AND restore your backup.
3. You can re-lock your phone and it will restore DRM if you have a backup but you lose root and recovery.
4. Unlocking your bootloader will wipe the device (factory reset)
5. If you have confidential files in your phone don't unlock your bootloader, as long as your phone is locked your data are officially secured.
6. Make a full backup of your personnal data before following this guide.
## Method
1. Find out whether if you bootloader can be unlocked, which is needed to proceed. Type: *#*#7378423#*#* then choose Service info ---> Configuration ---> Check for "Bootloader unlock allowed: Yes". At this point if the phone has No or any other answer at the screen you shouldn't porceed as rooting will be impossible.
2. Download XA ADB and Fastboot drivers: https://developer.sonymobile.com/downloads/drivers/
3. Download FLASHTOOL with integrated Xperifirm 0.9.23.2 for Windows, note that you can also use it to unlock your
bootloader(http://www.flashtool.net/downloads_windows.php) DON'T USE AN OLDER VERSION OF FLASHTOOL AND DOWNLOAD FIRMWARES FROM THE
INTEGRATED XPERIFIRM
4. Follow the official Sony instructions for getting the unlock code from [here](https://developer.sonymobile.com/unlockbootloader/). Further paste the code in BLU menu of Flashtool. You can also find video instructions [here](https://www.youtube.com/watch?v=6lKWd5LlUoA).
5. Download the proper files for your phone version/variant:
Magisk Manager apk package: http://www.apkmirror.com/apk/topjohnwu/magisk-manager/
For XA single sim = F3111, F3113, F3115
TWRP recovery: https://forum.xda-developers.com/xperia-xa/development/f3111-f3113-f3115-twrp-recovery-xa-t3639206
Boot: https://forum.xda-developers.com/xp...3111-f3113-f3115-stock-kernels-built-t3573119
For XA dual sim = F3112,F3116
TWRP recovery: https://forum.xda-developers.com/xp...3112-f3116-twrp-recovery-xa-dual-sim-t3638725
Boot: https://forum.xda-developers.com/xp...12-f3116-stock-kernels-built-sources-t3526496
6. Power off the phone and flash ONLY "BOOT_DELIVERY" from a Marshmallow firmware with Flashtool ( exclude all other patitions), you must only see
"boot_delivery.xml" in the "Content" column.
7. Power off the phone again and enter the phone in Fastboot mode (when power off, hold Vol+ and plug the phone). The led should be blue.
8. Copy the downloaded boot and recovery to "C:\Flashtool\x10flasher_lib" and rename them to boot.img and recovery.img, if you computer is not set to show file extentions remane them
without .img at the end
9. Flash recovery and boot with "fastboot flash boot boot.img" and "fastboot flash recovery recovery.img" commands and then delete them.
10. Unplug the phone, hold "Vol-" and "Power" buttons. Release all buttons after phone vibrate.
11. You are in TWRP recovery, on password prompt press "Cancel"
12. On next screen press "Swipe to allow".
13. Format "userdata" partition to remove internal encrytion for restoring TWRP backups/acces of /data partition, go to "wipe" and tap "format data". If you don't this your phone will
bootloop on Xperia logo. Don't forget to backup your personnal data before !!
14. Reboot to Android (it will takes about 10 minutes) and follow instructions until you are on the Home screen.
15. Install Magisk Manager apk package from the given link, you have to enable "Unknown sources" in the security menu before.
16. Open Magisk Manager and tap "Download" at the bottom, wait until you see download complete and reboot to recovery.
17. Go to "Install" and select "Magisk-vX.XX.zip" located in /sdcard/magisk manager, swipe to intall.
18. Power off the phone again and repeat step 6 with your actual Nougat firmware or the phone will not detect Sim Card(s)
19. Reboot the phone.
20. Tap the "Thanks! :good:" button at the bottom right of this post, optionally you can offer me a coffee/beer/tea or energy drink to support my work, my PayPal adress is in my profil.
21. Your phone is rooted
## Conclusion
After these steps your phone should be rooted and you will be able to have root access to the system. This tutorial comes with no garanties that it will work and the author does not take any responsibility for you bricking your device. Also, installing third party files are a security liability, you should be aware of that. If you don't follow exactly the guide you will probably brick your phone.
Despite these issues, rooting the Xperia XA has been confirmed to work on Single and Dual Sim.

Open source archive has been released...
Could we have a nougat boot.img? Because sony has released open source archive.
Thanks:laugh:

Actually, you can use flashtool 9.23.1, but remember to download the 9.23.2 jar file and copy to flashtool folder (overwrite).
Also, if you know how to input adb command, you can enter bootloader using the following:
Code:
adb reboot bootloader
Hopefully the version of XA Ultra will be released.

rrvuhpg said:
Hi all,
I'm happy to share with you an updated guide on how to root the Xperia XA.
This guide is Only for Nougat (Android 7.0), for Marshmallow (Android 6.0) it's here: https://forum.xda-developers.com/xp...ia-xa-noob-t3430170/post67988142#post67988142
## How to root the Sony Xperia XA
The Sony Xperia XA is a midrange smartphone with a bezeless design. It has adequate specs and run Android aptly. These aspects make this phone a great daily driver, however the Sony stock Android is plagued with trashware and all the hurdles Android itself has several privacy problems.
By rooting the phone one can circumvent these limitations. You will be able to install the Xposed framework, improve sound with Viper4Android, block hosts, install dns-crypt and improve overall customability. In the follwing sections I will present the steps to root your phone.
But before proceeding a word of caution (or why you wouldn't like to root your phone):
1. Unlocking your BootLoader will void your warranty, break your device DRM and lose X-Reality and image optimisation on low light when taking pictures.
2. You can save your DRM keys (TA backup) by following this guide: http://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236. You have to do it BEFORE unlocking the bootloader, fro this you need to downgrade to an old Marshmallow firmware, for now you can't root AND restore your backup.
3. You can re-lock your phone and it will restore DRM if you have a backup but you lose root and recovery.
4. Unlocking your bootloader will wipe the device (factory reset)
5. If you have confidential files in your phone don't unlock your bootloader, as long as your phone is locked your data are officially secured.
## Method
1. Find out whether if you bootloader can be unlocked, which is needed to proceed. Type: *#*#7378423#*#* then choose Service info ---> Configuration ---> Check for "Bootloader unlock allowed: Yes". At this point if the phone has No or any other answer at the screen you shouldn't porceed as rooting will be impossible.
2. Download XA ADB and Fastboot drivers: https://developer.sonymobile.com/downloads/drivers/
3. Download FLASHTOOL with integrated Xperifirm 0.9.23.2 for Windows, note that you can also use it to unlock your
bootloader(http://www.flashtool.net/downloads_windows.php) DON'T USE AN OLDER VERSION OF FLASHTOOL AND DOWNLOAD FIRMWARES FROM THE
INTEGRATED XPERIFIRM
4. Follow the official Sony instructions for getting the unlock code from [here](https://developer.sonymobile.com/unlockbootloader/). Further paste the code in BLU menu of Flashtool. You can also find video instructions [here](https://www.youtube.com/watch?v=6lKWd5LlUoA).
5. Download the proper files for your phone version/variant:
Magisk Manager apk package: http://www.apkmirror.com/apk/topjohnwu/magisk-manager/
For XA single sim = F3111, F3113, F3115
TWRP recovery:
Boot: https://forum.xda-developers.com/xp...3111-f3113-f3115-stock-kernels-built-t3573119
For XA dual sim = F3112,F3116
TWRP recovery: https://forum.xda-developers.com/xp...3112-f3116-twrp-recovery-xa-dual-sim-t3638725
Boot: https://forum.xda-developers.com/xp...12-f3116-stock-kernels-built-sources-t3526496
6. Install Magisk Manager apk package, you have to enable "Unknown sources" in the security menu before.
7. Open Magisk Manager and tap "Download" at the bottom.
8. With a file manager copy "Magisk-vX.XX.zip" from /sdcard/magisk manager to your MicroSD
9. Power off the phone and flash ONLY "BOOT_DELIVERY" from a Marshmallow firmware with Flashtool, you must only see "boot_delivery.xml" in the "Content"
column.
10. Power off the phone again and enter the phone in Fastboot mode (when power off, hold Vol+ and plug the phone). The led should be blue.
11. Copy the downloaded boot and recovery to "C:\Flashtool\x10flasher_lib" and rename them to boot.img and recovery.img.
12. Flash recovery and boot with "fastboot flash boot boot.img" and "fastboot flash recovery recovery.img" commands and then delete them.
13. Unplug the phone, hold "Vol-" and "Power" buttons. Release all buttons after phone vibrate.
14. You are in TWRP recovery, on password prompt press "Cancel"
15. On next screen press "Swipe to allow".
15.1 Optionally, you can format "userdata" partition now and remove internal encrytion for restoring TWRP backups/acces of /data partition, go to "wipe" and tap "format data". If you do this,
make a backup before (it will factory reset the phone), reboot to Android an repeat steps 6, 13 and 15
16. Go to "Install", "Select Storage", click "Micro SDCard" and select "Magisk-vX.XX.zip".
17. Power off the phone again and repeat step 9 with your actual Nougat firmware or the phone will not detect Sim Card(s)
18. Reboot the phone.
19. Tap the "Thanks! :good:" button at the bottom right of this post, optionally you can offer me a coffee/beer/tea or energy drink to support my work, my PayPal adress is in my profil.
20. Your phone is rooted
## Conclusion
After these steps your phone should be rooted and you will be able to have root access to the system. This tutorial comes with no garanties that it will work and the author does not take any responsibility for you bricking your device. Also, installing third party files are a security liability, you should be aware of that. If you don't follow exactly the guide you will probably brick your phone.
Despite these issues, rooting the Xperia XA has been confirmed to work on Dual Sim but need confirmation for Single Sim.
Click to expand...
Click to collapse
I'm on nougat 33.3.A.0.131 f3116
In 9 th step u have mention boot delivery, i cant understand.
Where to find BOOT_DELIVERY

Is Boot delivery of marshmallows (33.2.B.3.81) and nougat (33.3.A.127) compatible for nougat 33.3.A.0.131. Because I have marshmallows and nougat firmwares(ftfs) only that versions.

Chaminxa said:
Is Boot delivery of marshmallows (33.2.B.3.81) and nougat (33.3.A.127) compatible for nougat 33.3.A.0.131. Because I have marshmallows and nougat firmwares(ftfs) only that versions.
Click to expand...
Click to collapse
I dont underdtand

OK, I will explain a little more the step 9.
You must have 2 Firmwares in Flashtool:
1st is your actual Nougat firmware
2nd is a Marshmallow firmware, I used 33.2.B.4.70 for my F3112 but you can probably use an older.
When you are on step 9, open Flashtool and load the Marshmallow firmware. When you are on the screen to choose parts to flash with boxes to check and uncheck. You have to check all boxes on the up and down right columns, only the "BOOT_DELIVERY" is uncheck in the upper right column. If it's OK you should see only one line in the "Content" column: "boot_delivery.xml". Now clic on "flash" button at the bottom right, if Flashtool asks for using fsc script, clic "yes". You will have to do the same at step 17 but with your actual Nougat firmware.
It's very important to use the last Flashtool version 0.9.23.2 and download firmwares from the included Xperifirm or you will probably have problems or brick.
Edit: I will add files for Single Sim very soon so you don't have to ask for them

In step 17 - Can i flash nougat (33.3.A.127) boot delivery. Xml on nougat 33.3.A.0.131?

Chaminxa said:
In step 17 - Can i flash nougat (33.3.A.127) boot delivery. Xml on nougat 33.3.A.0.131?
Click to expand...
Click to collapse
I don't know, you can try and feedback if working or not

Hey can you upload magisk.zip. plzz
Thanks

TWRP recovery for XA single sim is missing. Not sure if dual sim would work but I'll try it out and see.

goldblot said:
TWRP recovery for XA single sim is missing. Not sure if dual sim would work but I'll try it out and see.
Click to expand...
Click to collapse
If you read at the bottom of the thread, rrvuhpg has not yet released any twrp and any boot.img for nougat on XA single sim , for that you have to wait a little bit.

Hey. I flashed boot dilivery.xml 33.3.A.0.131 . But my phone stuck @ xperia logo. Whats the wrong? Plz help
---------- Post added at 01:28 PM ---------- Previous post was at 01:22 PM ----------
Enyone here? Plzzzzz help me

Will there be a way to root Nougat for F3211 (Single sim XA Ultra)?
And can we use drm fix on Nougat?

Chaminxa said:
Hey. I flashed boot dilivery.xml 33.3.A.0.131 . But my phone stuck @ xperia logo. Whats the wrong? Plz help
---------- Post added at 01:28 PM ---------- Previous post was at 01:22 PM ----------
Enyone here? Plzzzzz help me
Click to expand...
Click to collapse
You followed exactly the guide?
If yes, why you asked to upload magisk.zip?
You flashed boot_delivery for the same firmware? (you asked for using a different one).
You formated Data partition in TWRP?
On the Xperia logo you waited how many time?

Chaminxa said:
Hey can you upload magisk.zip. plzz
Thanks
Click to expand...
Click to collapse
It's already in the description.
5. Download the proper files for your phone version/variant:
Magisk Manager apk package: http://www.apkmirror.com/apk/topjohnwu/magisk-manager/
---------- Post added at 10:55 PM ---------- Previous post was at 10:45 PM ----------
Chaminxa said:
Hey. I flashed boot dilivery.xml 33.3.A.0.131 . But my phone stuck @ xperia logo. Whats the wrong? Plz help
---------- Post added at 01:28 PM ---------- Previous post was at 01:22 PM ----------
Enyone here? Plzzzzz help me
Click to expand...
Click to collapse
Try using boot dilivery.xml Marshmallow firmware 33.2.B.4.70 NOT boot dilivery.xml 33.3.A.0.131

Files for Single Sim XA released on first post !
Files are untested so if you are noob please wait for feedbacks.

Thank you very much indeed.
great tutorial, great work done.

@rrvuhpg when i try to flash boot or recovery i get this message
(target reported max download size of 134217728 bytes
error: cannot load 'boot.img': No error) sony xperia xa f3113

jbenitez821 said:
@rrvuhpg when i try to flash boot or recovery i get this message
(target reported max download size of 134217728 bytes
error: cannot load 'boot.img': No error) sony xperia xa f3113
Click to expand...
Click to collapse
Yes i also faced the same issue.
Try changing the name from boot.img to boot
And recovery.img to recovery.
And enter the command "fastboot flash boot boot.img" and "fastboot flash recovery recovery.img"
It worked for me.
---------- Post added at 11:58 AM ---------- Previous post was at 11:51 AM ----------
Hi @rrvuhpg
I have tried all the steps u have mentioned above, but i have got stuck into bootloop after flashing magisk,
When i swipe to install magisk some cmd are running and i see some red cmd line running like "failed to decrypt" in starting point
I let the device for 30 Mins still its nit booting up.
Is there any issue. Please help.

Related

[GUIDE] Sony Xperia Z5 - UNLOCK / ROOT / TWEAKS - OS 5.1.1 / 6.0

[GUIDE] Sony Xperia Z5
DISCONTINUED - SEE NEWS !
Last update: 20.06.2016​
This guide will help you to root your phone, install new firmwares, unlock your bootloader and much more. Its splitted into 3 sections: StockRom, CustomROM and Tweaks so you should find things easily. I think if you understood this guide you can easily flash different firmwares, kernels and so on. And now - have fun
NEWS
I have to much work to do at the moment to continue this guide. But, the main work is done, now its all about updating the links. If there is something remarkable new, I will add it to my guide.
20.06.2016
- updated links
- minor changes
23.04.2016
- updated download links
- added custom rom (CyanogenMod13)
- some small changes
09.04.2016
- I'm very busy at the moment (exams and hard work). So I cant help you guys that much and cant try new kernels and that kind of stuff Plese ask @gm007 or @zacharias.maladroit if you have problems. I will come back as fast as I can
- updated download links
28.03.2016
- updated download links
12.03.2016
- Android 6.0 compatibility check
- updated download links
- graphical revision
14.02.2016
- updated guide to make it more understandable
QUESTION & ANSWER
Which devices are supported by this guide?
- Sony Xperia Z5
- Model number: E6653 / E6603 (for other models use different kernel)
- OS version: Stock Xperia Android 5.1.1 / 6.0
Whats important to know before I start?
- I´m NOT responsible for any damage.
- Keep in mind that unlocking the bootloader can void your warrenty.
- Save your data, all settings and files will be deleted during this process.
- READ THE ENTIRE GUIDE FIRST!
[GUIDE] GENERAL
FASTBOOT
1) POWER OFF phone
2) Hold VOLUME UP
3) Connect to PC via USB
4) LED turns blue
FLASHMODE
1) POWER OFF phone.
2) Hold VOLUME DOWN
3) Connect to PC via USB
4) LED turns green
RECOVERY
a) You can enter TWRP while booting. If the LED turns yellow, hold VOLUME DOWN till it gets orange.
b) Use this command in Minimalistic ADB and FASTBOOT to reboot to recovery:
Code:
adb reboot recovery
BOOTLOOP / EMERGENCY POWER OFF
1) Hold POWER OFF and VOLUME UP
2) Device vibrates 3 times
DEVELOPER MODE AND UNNOWN SOURCES]
1) settings -> about phone -> touch build number several times
2) settings -> developer options -> enable USB debugging
3) settings -> security -> enable Unknown sources
PC PERMISSIONS
1) Run Minimalistic ADB and FASTBOOT and FLASHTOOL with admin permissions.
2) Use USB 2.0 ports, sometimes 3.0 ports doesnt work.
[GUIDE] StockROM
# BUGS / ISSUES
E6653_32.1.A.1.163
- camera apps (AR Effect,...) do force close
- filesystem (external SD card) does not refresh automatically, so you cant transfer files you copied to sd card via MTP to PC. Solved via restart. --> also on STOCK ROM
# DIRECT DOWNLOAD LINKS
E6653
Kernel
Z5_AndroPlusKernel_Permissive_v30 (for firmware .163 and .185)
Z5_AndroPlusKernel_Permissive_v31 (for firmware .224)
Recovery
twrp-3.0.2-0-E6653-20160417.img
SuperSu
SuperSU (beta but stable)
# DOWNLOAD LINKS
Windows programs
Sony PC Companion
Minimal ADB and Fastboot
Flashtool + patch file
µTorrent (for downloading Flashtool)
Android
AndoPlusKernel
TWRP
# GUIDE
BOOTLOADER STATUS
The bootloader loads the kernel. If unlock isnt allowed, the bootloader will prevent loading a custom kernel.
1) type *#*#7378423#*#* into dialer / phone app
2) service info --> configuration --> rooting status
3) if bootloader unlock allowed says YES, you can continue. If bootloader unlock isnt allowed you CAN NOT root your phone.
INSTALLING PROGRAMS
Flashtool
1) install µTorrent
2) download torrent file from Flashtool website
3) run downloaded torrent file via µTorrent
4) download Flashtool via µTorrent
! You can close and or delete µTorrent now, you will not need it anymore
5) install Flastool
6) open install directory from flashtool and replace x10flasher.jar with new patch
OTHER
1) install all other programs
INSTALL / CHECK DRIVERS
Windows 7 and lower
1) open Flashtool install directory
2) open driver folder
3) run Flashtool-drivers.exe
4) install Flashmode and Fastboot drivers
Windows 8 and higher
1) restart computer with digital driver signature disabled (you have to do this every time you restart your pc)
http://www.howtogeek.com/167723/how...8.1-so-that-you-can-install-unsigned-drivers/
2) open Flashtool install directory
2) open driver folder
3) run Flashtool-drivers.exe
4) install Flashmode and Fastboot drivers
! There are no Z5 drivers yet, that’s why you need Sonys PC Companion!
! Flashtool drivers were updated, try the new Z5 drivers before installing Sony PC Companion.
Sony PC Companion
1) run Sony PC Companion
2) connect your Xperia Smartphone
3) wait till it has been detected
4) close Sony PC Companion, you dont need it anymore
ADB driver check
1) enable Developer options and Unknown sources
2) run Minimal ADB and Fastboot
3) type
Code:
adb devices
4) allow dialog on your phone
5) check if your device is shown in command window
fastboot driver check
1) run Minimal ADB and Fastboot
2 put device in FASTBOOT mode
3) type
Code:
fastboot devices
in Minimal ADB and Fastboot
4) check if your device is shown in command window
! When connecting phone in flashmode or fastboot additional drivers will be installed automatically.
! Installing drivers twice can solve problems.
UNLOCK BOOTLOADER
1) open Flashtool
2) click on BLU (Bootloader Unlock)
3) follow the instructions shown by Flashtool
4) you will be forwarded to a Sony website
5) follow the instructions there
6) at the end you will receive a key
7) save this key carefully!
8) enable Enable OEM unlock in developer options
9) copy KEY into Flashtool prompt and click unlock
! You can try to use Flashtool for unlocking first, or continue with step 10.
10) open Minimal ADB and Fastboot
11) your phone has to be in Fastboot mode
12) check if your phone is shown by
Code:
fastboot devices
13) enter the following code:
Code:
fastboot –i 0x0fce oem unlock 0xKEY_FROM_SONY
14) reboot (that can take a long time, so dont worry)
DOWNLOAD XPERIA FIRMWARE - OPTIONAL
If you want to update, upgrade or reset your ROM.
1) open Flashtool
2) click on XperiFirm
3) downloading…..
4) in XperiFirm select your device then choose your preferred firmware (e.g. Z5 --> E6653 ---> Customized DE --> 32.0.A.6.200 R12B)
5) in the right column double click the latest firmware and start download
6) Unpack automatically has to be checked
7) after downloading close download window and XperiFirm
8) now Flashtool should start doing things
! You can identify your phone model by: Settings -->About phone--> Diagnostics
FLASH NEW FIRMWARE - OPTIONAL
If you want to update, upgrade or reset your ROM.
1) in Flashtool click on Flash device and choose your firmware
2) under "Wipe", check all (APPS_LOG, DIAG, SSD, USERDATA)
3) click flash and follow the instructions
4) after successful installation reboot phone (that can take a long time, so dont worry)
! You can flash a new ROM without unlocking your bootloader.
FLASH KERNEL
The kernel has direct control of the hardware.
1) download latest Kernel from download section (AndroPlusKernel is only for E6653 models)
2) extract ZIP
3) put boot.img from zip into your root directory from Minimal ADB and Fastboot
4) put phone into fastboot mode
5) run Minimal ADB and Fastboot and check with
Code:
fastboot devices
6) type in:
Code:
fastboot flash boot boot.img
7) restart phone and look if its working
! If you end up in a bootloop with the LED flashing 3-4 times try to flash Kernel and Recovery again. If this doesnt help, reflash firmware, kernel and recovery.
FLASH RECOVERY
The recovery is something like the boot menu you may know from windows. Its mainly used to install programs and apps.
1) download latest TWRP from download section
2) put twrp.img into your root directory from Minimal ADB and Fastboot
4) put phone into fastboot mode
5) run Minimal ADB and Fastboot and check with
Code:
fastboot devices
6) type in:
Code:
fastboot flash recovery twrp.img
! You can rename twrp image to twrp.img or something shorter if you want.
7) after the first boot - do a reboot into recovery. Otherwise the partitions won't be mounted correctly & flashing will run into trouble. It takes several seconds (or a few minutes) to reboot into recovery - but then you're good to go.
ROOT
Some apps need more permissions than normal. You can compare root with administrator rights on windows.
1) download UPDATE-SuperSU-v2.67.zip
2) copy UPDATE-SuperSU-v2.67.zip to your internal memory
3) enter TWRP
4) click Install
5) navigate through folder structure
6) tap UPDATE-SuperSU-v2.67.zip
7) "Swipe to confirm flash"
8) reboot
RESTORE DRM KEYS
Unlocking the bootloader disables a partition on your phone where software keys are saved. Without this keys xReality, BIONZ, audio processing arent available. This program will restore this features.
! Take a look if xReality is already working before installing DRM keys.
1) download DRM RESTORE (drmrestore.zip) from download section
2) copy drmrestore.zip to your external sd card
3) enter TWRP
4) click Install
5) navigate through folder structure
6) tap drmrestore.zip
7) "Swipe to confirm flash"
8) reboot
! Unfortunately, there is no way to save the original TA partition at the moment.
[GUIDE] CustomROM
# CyanogenMod 13_Alpha for E6653 and E6603
CyanogenMod is a free, community built, aftermarket firmware distribution of Android 6.0 (Marshmallow), which is designed to increase
performance and reliability over stock Android for your device.
### XDA Z5_CyanogenMod 13 Link ###
# AromaROM with Installer for Z5 E6853 / E6883 / E6653
AROMA is a custom ROM with nice tweaks, but it has some serious bugs. I used it for 2 month and there are several issues: random reboot, screen turn off during calling and does not turn on again, problems with notification bar, ... .
### XDA ROMAur Link ###
1) install stock lollipop rom
3) for E68xx models install recovery and kernel for your device
4) For E66xx models install twrp-2.8.7.0-E6653-20151130_material.img and kernel for your device
5) copy ROMAur to your external sd card
6) enter recovery
7) make a full wipe (Wipe --> Factory reset)
8) install ROMAur
9) Reboot
[TWEAKS]
XPOSED
ONLY FOR 5.1.1: When you want to install Xposed you have to deodex your system or install an already deodexes ROM. Without this procedure the camera and other apps wont work. Use this guide to solve this: http://forum.xda-developers.com/crossdevice-dev/sony/z4-z5-z5c-fix-camera-fc-installing-t3246962
XDA Thread: http://forum.xda-developers.com/showthread.php?t=3034811
1) download xposed-v85-sdk23-arm64.zip and XposedInstaller_3.0_alpha4.apk [Android 6.0 versions]
2) copy xposed-v79-sdk23-arm64.zip and XposedInstaller_3.0_alpha4.apk to your internal memory
3) enter TWRP
4) click Install
5) navigate through folder structure
6) tap xposed-v79-sdk23-arm64.zip
7) "Swipe to confirm flash"
8) reboot
9) install XposedInstaller_3.0_alpha4.apk
10) reboot
useful Xposed Moduless
APM+
Xperia / AOSP NavBar Buttons
OGYoutube + OGYoutube Xposed Login Fix
Flat Style Colored Bars
DISABLE SmallApps
SmallApps is that little bar in the overview screen.
1) power on phone
2) unlock your phone (open homescreen)
3) open Minimal ADB and Fastboot
4) type:
Code:
adb shell
pm hide com.sony.smallapp.launcher
pm hide com.sony.smallapp.app.widget
exit
5) after this, type:
Code:
adb reboot
! If you know what youre doing, you can simply delete all the SmallApp stuff via ROOT Uninstaller.
Thanks for quite a nice guide.
I have done rooting on various devices but this seems to be most complicated ever. [emoji14]
Sent from my E6683 using Tapatalk
It has been before this guide. Basically what I did was unlocking the bootloader, booting recovery, flashing kernel, flashing root, wipe, restore DRM fake, done.
Firmware wasn't necessary for me and I've made bad experiences with alternate firmwares / radios and so on in the past.
Hi. Do I have to backup my TA partition ?
there no way to backup your TA partition hopefully for now.
How to increase volume of both speakers
I have rooted z5 but don't know how to edit mixer path.xml
Siudzix said:
Hi. Do I have to backup my TA partition ?
Click to expand...
Click to collapse
Actually there is no need for it, imho. The fake DRM keys are doing a really good job. X-reality back, after picture processing back. It's also currently not possible to backup them afaik.
DeathStroke said:
Thanks for quite a nice guide.
I have done rooting on various devices but this seems to be most complicated ever. [emoji14]
Sent from my E6683 using Tapatalk
Click to expand...
Click to collapse
Mate I see you have Z5 E6683 which is dual sim. Were you able to get your phone rooted using this guide?
Many thanks.
I have XPERIA Z5 Dual Sim (E6633) - will this guide work ?
Siudzix said:
I have XPERIA Z5 Dual Sim (E6633) - will this guide work ?
Click to expand...
Click to collapse
Yes and no. You need a different kernel and mybe recovery. Everything else is the same. I will include a link in my guide if I find a working kernel.
Rooting Z5
Hi all,
Shall i root the phone without unlocking the Bootloader.I dont want to Unlock the bootloader.So please advise me is this root method is work on Locked Bootloader.
Thanks in advance
ramprasaathks said:
Hi all,
Shall i root the phone without unlocking the Bootloader.I dont want to Unlock the bootloader.So please advise me is this root method is work on Locked Bootloader.
Thanks in advance
Click to expand...
Click to collapse
For now, you have to unlock your bootloader to gain root access. There is no other method at the moment. So in conclusion: locked bootloader = no root.
how i root z5 dual 6683
parteek.dandyan said:
how i root z5 dual 6683
Click to expand...
Click to collapse
Follow the guide and do it. Its written there.
Sent from my E6683 using Tapatalk
DeathStroke said:
Follow the guide and do it. Its written there.
Sent from my E6683 using Tapatalk
Click to expand...
Click to collapse
Dont blame him. I added this guide for E6683 today. I cant try it myself because I have no E6683, but I hope it will work
alphatact1cs said:
Dont blame him. I added this guide for E6683 today. I cant try it myself because I have no E6683, but I hope it will work
Click to expand...
Click to collapse
I was not blaming, I didn't know that you updated today. Would be great in future if you do any update, add the date and following update.
Thank you.
One thing I noticed while reading your guide was TWRP is not for E6683. Will there be any problem? I haven't yet tried your guide because I was in doubt.
Sent from my E6683 using Tapatalk
DeathStroke said:
One thing I noticed while reading your guide was TWRP is not for E6683. Will there be any problem? I haven't yet tried your guide because I was in doubt.
Click to expand...
Click to collapse
The new Kernel from monx includes TWRP, so you dont need to flash Recovery...normally. I know that my guide works, but only for E6653. I included a link for E6683, but I also wrote that I cant try it because I havent a Z5 E6683. Anyway, TWRP for E6653 should work for E6683 devices. The main difference is the Kernel.
Guys, what about E6633 ? Is it really bad ?
Siudzix said:
Guys, what about E6633 ? Is it really bad ?
Click to expand...
Click to collapse
You can try it at your own risk. Someone said that it will work, but I would be careful.
pesonic said:
Should this be working on E6633 too?
Click to expand...
Click to collapse
arismelachrinos said:
+1
Click to expand...
Click to collapse
@alphatact1cs are you open to suggestions??
we are currently trying to unify devices index here at xda..
would you like to follow what our fellow brother @kuzibri and @sd_shadow has implemented?
http://forum.xda-developers.com/general/about-xda/public-index-program-project-t3147245

[Guide] Safe bootloader unlock, restore DRM, custom recovery, root, bootloader relock

** DISCLAIMER: I AM NOT A DEV AND THIS IS MY HOBBY. I ASSUME NO RESPONSIBILITY IF THIS BREAKS YOUR DEVICE **​
The following is tested on model E6553. This may work for the dual sim model too but I have not verified it. Do not flash the ftf and kernel files intended for one model onto another.​
I am not taking credit for any of the tools and kernels here. They are all developed by others. I am only telling you how to use them.
Credits: @zxz0O0, @tobias.waldvogel
0- Prerequisites
You need to have a functioning installation of adb and fastboot tools. You need to have proper Sony drivers installed on your PC to detect your phone when it is connected to the PC. You should be able to flash an ftf file using flashtool. If any of these sound unfamiliar to you, stop reading, go learn about them, and then come back.
1- How to unlock your bootloader without losing the DRM keys
Sony has designed this phone such that if you unlock your bootloader you lose your TA partition PERMANENTLY which includes some of the Xperia features and licenses that have to do with image processing etc. forever. You will also no longer receive OTAs. So in theory, without a copy of this TA partition (which is unique to each device and cannot be copied over from another) unlocking the bootloader results in an irreversible loss of some of your phone's features. Relocking the bootloader will not bring them back.
A hack exists that allows you to backup the TA partition before you unlock the bootloader. This backup will make the process completely reversible so if you ever need to send the tablet to Sony for repair or just want to return it to its original state you have a way. Follow these instructions carefully:
1.0- Before you begin keep in mind that this procedure, especially the unlocking step, completely erases your tablet. Disable myXperia and remove your google account before proceeding. The following will likely not work well with encryption.
1.1- Start by clean flashing any 28.0.A.8.266 firmware, For this tutorial I used the Customized NL ftf that you can get from here.
1.2- Enter service Mode by dialing *#*#7378423#*#* -> Service info -> configuration, and make sure the device is unlockable.
Also check -> Service Tests -> Security and you will see a bunch of "active" and "OK" attributes. You can take screenshots for your reference.
1.3- Turn on usb debugging mode on your phone.
1.4- Download iovyroot zip v0.4 or higher from here.
1.5- Unzip this zip file into a folder of your choice and open a command terminal there.
1.6- Connect the phone which is now in USB debugging mode to your PC and answer yes when the phone asks to authorize the PC to access it in USB debugging mode. You can check that the PC indeed sees the phone by running this command
Code:
adb devices
1.7- Run the following command:
Code:
tabackup
1.8- VERY IMPORTANT: Make sure the command completes with no errors. If all goes well you will have a file with a name like TA-05052016.img (the name may be different for you) with a size of 2MB in your folder.
1.9- Save this file in a very safe place. Save it on your hard disk, AND email it to yourself, AND put it on your google drive. If you lose this file you can never reverse the bootloader unlocking process.
1.10- Reboot the device.
1.11- Now you can unlock the bootloader. Follow the instructions at Sony's official website at http://developer.sonymobile.com/unlockbootloader Also save your unlock code that you obtain in this step somewhere. You may need it some day.
1.12- Reboot the device and it will briefly enter recovery and then start the phone initial setup.
1.13- (Optional) you can easily verify that your bootloader is unlocked by entering the fastboot mode, obtaining any boot image, and running the following command to boot your tablet with that image:
Code:
fastboot boot boot.img
1.14- (Optional) you can see that the DRM keys are erased from your tablet by repeating step 1.2 but this time you will see a bunch of errors under Service Tests -> Security.
1.15- As a side effect of unlocking the bootloader you lose the ability to receive OTA updates. Clean flash a Marshmallow ftf to continue. For this tutorial I used Marshmallow 6.0 E6553_Customized HK_1294-9654_32.1.A.1.185_R7C (the latest firmware at the time of this writing.)
2- How to emulate DRM keys and/or root and/or add recovery after unlocking the bootloader.
A hack exists that can emulate the DRM keys:
2.1- Extract the boot image from the 32.1.A.1.185 marshmallow ftf that you installed in step 1.15. Here are the steps to take:Open the ftf file with 7-zip or any zip program that you have at your disposal
Look for a file called kernel.sin and extract it.
Start flashtool and from Tools menu choose Sin Editor.
Select the kernel.sin that you extracted in the previous step and hit Extract data.
Flashtool will create a file called kernel.elf which you will use in the next step.​2.2- Download rootkernel_v4.42_Windows_Linux.zip (or a higher version) from http://forum.xda-developers.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605 and unzip it in a folder of your choice.
2.3- Copy the kernel.elf that you got in step 2.1 to this folder. If you want root, follow this guide through to section 5 place SuperSU 2.71 (or higher) in this folder as well. Make sure the name of the SuperSU zip starts with letters "SuperSU". The latest SuperSU can be obtained from: http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133 (The rootkernel tool has a bug in its built-in SuperSU integration. See: http://forum.xda-developers.com/showpost.php?p=67485478&postcount=838)
2.4- Open a command terminal in this folder and run the rootkernel script. Your command should look similar to this:
Code:
rootkernel.cmd kernel.elf boot-patched.img
When prompted, answer as follows:- Sony RIC is enabled. Disable? [Y/n] Y (if you want root plus write access)
- Install TWRP recovery? [Y/n] Y (if you want to have recovery)
- Install busybox? [Y/n] Y (if you want busybox. It is very useful)
- Found SuperSU-v2.71-20160331103524.zip. Install? [Y/n] Y (if you want root)
- Install DRM fix? [Y/n] Y (if you want DRM emulation)​This will create a new kernel image called boot-patched.img which you will now flash on your phone.
2.5- Boot the phone in the fastboot mode and flash your patched image using the following fastboot command:
Code:
fastboot flash boot boot-patched.img
2.6- (Optional) You can reboot the phone and see that the DRM keys are indeed retrieved by repeating step 1.2. You can also open settings -> display, and look under Image Enhancement. If the DRM emulation is successful you will see this.
3- How to flash a custom or stock kernel
3.0- If you have already flashed the patched kernel in part 2 you will skip this part.
3.1- Whether you want to use a custom kernel or stock, and whether you have done the DRM patch described above or not, to flash a boot image (i.e. kernel) on your phone you need to restart the tablet in fastboot mode.
3.2- To flash the kernel use this command:
Code:
fastboot flash boot [I]name_of_your_kernel[/I]
You will replace name_of_your_kernel with whatever your kernel is called (e.g. boot.img, kernel.elf, etc.)
4- How to add and use recovery
4.1- Recovery is added to your kernel in step 2.4.
4.2- To enter recovery reboot the phone and touch the volume up key when the LED turns yellow during the boot splash screen.
5- How to root
5.1- Place SuperSU 2.71 zip (or higher) on the phone's sdcard. The latest SuperSU can be obtained from: http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
5.2- Reboot to recovery and flash the zip file.
6- How to relock bootloader and return it to original factory state
6.0- To relock the bootloader along with restoring the DRM keys the phone must have unmodified stock firmware.
6.1- Repeat step 1.1
6.2- Repeat steps 1.3, 1.4, and 1.5
6.3- Copy the TA backup image that you had obtained in section 1 in the iovyroot folder and use the tarestore command to flash the TA partition back onto the phone. The command will look similar to this:
Code:
tarestore TA-05052016.img
Make sure the command completes with no error. If it fails the first time try again. Reboot the phone. Your bootloader is now locked and your DRM keys restored.
6.4- (Optional) You can verify that you are back to the original locked state by repeating step 1.2.
Whoa Great
---------- Post added at 01:32 AM ---------- Previous post was at 12:50 AM ----------
najoor said:
** DISCLAIMER: I AM NOT A DEV AND THIS IS MY HOBBY. I ASSUME NO RESPONSIBILITY IF THIS BREAKS YOUR DEVICE **​The following is tested on model E6553. This may work for the dual sim model too but I have not verified it. Do not flash the ftf and kernel files intended for one model onto another.​I am not taking credit for any of the tools and kernels here. They are all developed by others. I am only telling you how to use them.
Credits: @zxz0O0, @tobias.waldvogel
0- Prerequisites
You need to have a functioning installation of adb and fastboot tools. You need to have proper Sony drivers installed on your PC to detect your phone when it is connected to the PC. You should be able to flash an ftf file using flashtool. If any of these sound unfamiliar to you, stop reading, go learn about them, and then come back.
1- How to unlock your bootloader without losing the DRM keys
Sony has designed this phone such that if you unlock your bootloader you lose your TA partition PERMANENTLY which includes some of the Xperia features and licenses that have to do with image processing etc. forever. You will also no longer receive OTAs. So in theory, without a copy of this TA partition (which is unique to each device and cannot be copied over from another) unlocking the bootloader results in an irreversible loss of some of your phone's features. Relocking the bootloader will not bring them back.
A hack exists that allows you to backup the TA partition before you unlock the bootloader. This backup will make the process completely reversible so if you ever need to send the tablet to Sony for repair or just want to return it to its original state you have a way. Follow these instructions carefully:
1.0- Before you begin keep in mind that this procedure, especially the unlocking step, completely erases your tablet. Disable myXperia and remove your google account before proceeding. The following will likely not work well with encryption.
1.1- Start by clean flashing any 28.0.A.8.266 firmware, For this tutorial I used the UK Generic ftf that you can get from here.
1.2- Enter service Mode by dialing *#*#7378423#*#* -> Service info -> configuration, and make sure the device is unlockable.
Also check -> Service Tests -> Security and you will see a bunch of "active" and "OK" attributes. You can take screenshots for your reference.
1.3- Turn on usb debugging mode on your phone.
1.4- Download iovyroot zip v0.4 or higher from here.
1.5- Unzip this zip file into a folder of your choice and open a command terminal there.
1.6- Connect the phone which is now in USB debugging mode to your PC and answer yes when the phone asks to authorize the PC to access it in USB debugging mode. You can check that the PC indeed sees the phone by running this command
Code:
adb devices
1.7- Run the following command:
Code:
tabackup
1.8- VERY IMPORTANT: Make sure the command completes with no errors. If all goes well you will have a file with a name like TA-05052016.img (the name may be different for you) with a size of 2MB in your folder.
1.9- Save this file in a very safe place. Save it on your hard disk, AND email it to yourself, AND put it on your google drive. If you lose this file you can never reverse the bootloader unlocking process.
1.10- Reboot the device.
1.11- Now you can unlock the bootloader. Follow the instructions at Sony's official website at http://developer.sonymobile.com/unlockbootloader Also save your unlock code that you obtain in this step somewhere. You may need it some day.
1.12- Reboot the device and it will briefly enter recovery and then start the phone initial setup.
1.13- (Optional) you can easily verify that your bootloader is unlocked by entering the fastboot mode, obtaining any boot image, and running the following command to boot your tablet with that image:
Code:
fastboot boot boot.img
1.14- (Optional) you can see that the DRM keys are erased from your tablet by repeating step 1.2 but this time you will see a bunch of errors under Service Tests -> Security.
1.15- As a side effect of unlocking the bootloader you lose the ability to receive OTA updates. Clean flash a Marshmallow ftf to continue. For this tutorial I used Marshmallow 6.0 E6553_Customized HK_1294-9654_32.1.A.1.185_R7C (the latest firmware at the time of this writing.)
2- How to emulate DRM keys and/or root and/or add recovery after unlocking the bootloader.
A hack exists that can emulate the DRM keys:
2.1- Extract the boot image from the 32.1.A.1.185 marshmallow ftf that you installed in step 1.15. Here are the steps to take:
Open the ftf file with 7-zip or any zip program that you have at your disposal
Look for a file called kernel.sin and extract it.
Start flashtool and from Tools menu choose Sin Editor.
Select the kernel.sin that you extracted in the previous step and hit Extract data.
Flashtool will create a file called kernel.elf which you will use in the next step.​2.2- Download rootkernel_v4.42_Windows_Linux.zip (or a higher version) from http://forum.xda-developers.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605 and unzip it in a folder of your choice.
2.3- Copy the kernel.elf that you got in step 2.1 to this folder. If you want root, place SuperSU 2.71 (or higher) in this folder as well. Make sure the name of the SuperSU zip starts with letters "SuperSU". The latest SuperSU can be obtained from: http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
2.4- Open a command terminal in this folder and run the rootkernel script. Your command should look similar to this:
Code:
rootkernel.cmd kernel.elf boot-patched.img
When prompted, answer as follows:
- Sony RIC is enabled. Disable? [Y/n] Y (if you want root plus write access)
- Install TWRP recovery? [Y/n] Y (if you want to have recovery)
- Install busybox? [Y/n] Y (if you want busybox. It is very useful)
- Found SuperSU-v2.71-20160331103524.zip. Install? [Y/n] Y (if you want root)
- Install DRM fix? [Y/n] Y (if you want DRM emulation)​This will create a new kernel image called boot-patched.img which you will now flash on your phone.
2.5- Boot the phone in the fastboot mode and flash your patched image using the following fastboot command:
Code:
fastboot flash boot boot-patched.img
2.6- (Optional) You can reboot the phone and see that the DRM keys are indeed retrieved by repeating step 1.2. You can also open settings -> display, and look under Image Enhancement. If the DRM emulation is successful you will see this.
3- How to flash a custom or stock kernel
3.0- If you have already flashed the patched kernel in part 2 you will skip this part.
3.1- Whether you want to use a custom kernel or stock, and whether you have done the DRM patch described above or not, to flash a boot image (i.e. kernel) on your phone you need to restart the tablet in fastboot mode.
3.2- To flash the kernel use this command:
Code:
fastboot flash boot [I]name_of_your_kernel[/I]
You will replace name_of_your_kernel with whatever your kernel is called (e.g. boot.img, kernel.elf, etc.)
4- How to add and use recovery
4.1- Recovery is added to your kernel in step 2.4.
4.2- To enter recovery reboot the phone and touch the volume up key when the LED turns yellow during the boot splash screen.
5- How to relock bootloader and return it to original factory state
5.0- To relock the bootloader along with restoring the DRM keys the phone must have unmodified stock firmware.
5.1- Repeat step 1.1
5.2- Repeat steps 1.3, 1.4, and 1.5
5.3- Copy the TA backup image that you had obtained in section 1 in the iovyroot folder and use the tarestore command to flash the TA partition back onto the phone. The command will look similar to this:
Code:
tarestore TA-05052016.img
Make sure the command completes with no error. If it fails the first time try again. Reboot the phone. Your bootloader is now locked and your DRM keys restored.
5.4- (Optional) You can verify that you are back to the original locked state by repeating step 1.2.
Click to expand...
Click to collapse
Very usefull step by step guide.. But is there is any method to root phone without unlocking Bl? Quite curious to know from you.
arokososoo said:
Whoa Great
---------- Post added at 01:32 AM ---------- Previous post was at 12:50 AM ----------
Very usefull step by step guide.. But is there is any method to root phone without unlocking Bl? Quite curious to know from you.
Click to expand...
Click to collapse
Not yet, atleast for my Dual SIM Version.
njaya95 said:
Not yet, atleast for my Dual SIM Version.
Click to expand...
Click to collapse
So you mean there is a way to root single sim version without unlocking BL?
Thanks ú so much! this is well writen, i will try this when i get the time to do a fresh install. Cheers mate
@arokososoo
Please, in the future never quote long OP and any other long posts. This is very annoying for mobile and desktop users to scroll to the next post. Thanks.
Sent from my Sony E6553 using XDA Labs
I wonder if E6533 can use this guide
Got as far as going to the sony website, there's no mention of phones that can be unlocked there and for some reason Ive got bootloader unlock allowed no, even with a sim free phone and my xperia turned off.....bummer
Stoneybridge said:
Got as far as going to the sony website, there's no mention of phones that can be unlocked there and for some reason Ive got bootloader unlock allowed no, even with a sim free phone and my xperia turned off.....bummer
Click to expand...
Click to collapse
I also unlocked my Z3+, although it wasn't supported. I just picked Z4 Tablet since it is the "nearest" one. Worked Got MM rooted now.
How long did that take on your devices? 1.1- Start by clean flashing any 28.0.A.8.266 firmware, For this tutorial I used the UK Generic ftf that you can get from here.
I am waiting for half an hour now...
Spoiler
Trilliard said:
How long did that take on your devices? 1.1- Start by clean flashing any 28.0.A.8.266 firmware, For this tutorial I used the UK Generic ftf that you can get from here.
I am waiting for half an hour now...
Spoiler
Click to expand...
Click to collapse
I can't see your picture, but I assume you have that stucking at modem/system ?
If so, downgrade Flashtool to 0.9.19
Well i got a soft brick, but was able to restore it trough Sony Companion. Here is the picture on another hoster http://fs5.directupload.net/images/160529/gr5fpf8t.png dont know on what point it stuck.
Funfact that two germans writting in english
Edit, big thanks version 0.9.19 worked perfect. Cant understand why the newest one doesnt work
Edit 2: System boots up, but when the setup start the process com.android.phone stops instant and if i hit ok the message comes instantly again after about ten times the phone reboot, i cant do anything else... next repair through sony companion and back to stock german 6.0. I´ll stop try it for today.
Trilliard said:
Well i got a soft brick, but was able to restore it trough Sony Companion. Here is the picture on another hoster http://fs5.directupload.net/images/160529/gr5fpf8t.png dont know on what point it stuck.
Funfact that two germans writting in english
Edit, big thanks version 0.9.19 worked perfect. Cant understand why the newest one doesnt work
Edit 2: System boots up, but when the setup start the process com.android.phone stops instant and if i hit ok the message comes instantly again after about ten times the phone reboot, i cant do anything else... next repair through sony companion and back to stock german 6.0. I´ll stop try it for today.
Click to expand...
Click to collapse
Did you forget to wipe?
In a thread i opened in Q&A a user said that even though service info reported bl unlock allowed NO, he managed to unlock it anyways using standard procedure, what do you think?
it seems like Sony RIC is not fully disabled with this patch.
Finally ! Works like a charm in my E6533 (Dual sim) !!! Thanks a lot !!!
Hi thiefxhunter,
How you do this? could you explain us step by step. I like to root my dual sim model.
Thanks.
Hi.. I am stuck in 2.5
My device is unlocked, It is connected in fastboot mode (blue led).
error msg
'Fastboot is not recognised as an internal or external command, operable program or batch file'
Please help me in this.
Solved..
Thanks for this post..
Thanks for this guide, it worked like a charm on my E6553 with 32.2.A.0.224
CorzCorry said:
I also unlocked my Z3+, although it wasn't supported. I just picked Z4 Tablet since it is the "nearest" one. Worked Got MM rooted now.
Click to expand...
Click to collapse
Can you please explain how did you do that? Thanks

[GUIDE] All-In-One noob friendly guide for xperia X (Root/Bootloader/Rom)

[UPDATE]: USE THIS ONLY FOR NOUGAT 7 OR 7.1! THERE IS A DIFFERENT GUIDE FOR ANDROID OREO!
https://forum.xda-developers.com/xperia-x/how-to/root-xperia-x-f5122-android-n-34-2-2-47-t3594502 (Written by YasuHamed, not me!)
If you are not interested in android Oreo, or you want to go back to Nougat, this guide is still valid! [End of Update]
This is a guide for newbies or for people that are simply confused. If you have any questions, you can always ask me, and I will reply. but please make sure you haven't made mistakes and do not ask about things that are already stated here. Let's go!
BEFORE DOING ANYTHING, NOTES
-make sure you have installed ADB : https://forum.xda-developers.com/showthread.php?t=2588979
-make sure ADB can read your phone with the correct drivers installed. If you have trouble with that, read "DRIVERS" section
!It is absolutely necessary to install the drivers correctly!
-Backup your stuff if you have any, you will need to delete everything from the phone
-Enable USB debugging
-Note: some of these instructions apply to Windows OS only!
-Note: links to downloads have been shortcutted as much possible to make it easier for you!
-Find some stock roms here! https://forum.xda-developers.com/xperia-x/how-to/sonyx-f5121-downgrade-8-0-0-to-7-1-1-to-t3754986
(Credit: HEKER510)
-Warning: you will lose your warranty!
-I am not responsible for any damage done to your device.
BACKUP DRM KEYS (OR WORKAROUND)
You may want to unlock your bootloader. If you unlock it without backing up the DRM keys, you will lose them. I did that mistake and I regret it. If you already did, there is an alternative solution, skip to step 8.
1) If you are running android 7 nougat, you will need to downgrade to MM. If you are running MM, skip to step 7.
2) You will need to wipe everything before rolling back, so if you have any data back it up
3) Download any stock MM 6.0.1 firmware for the xperia X. You can find one here : https://mega.nz/#!1xRj2CYS Decryption key: !qBVi7yky8AL84eUF3bpTTGQ2YmN0ePCjc-eSDZGIZCI
Watch out: if you have the dual SIM model, F5122, you need to download accordingly!
For more firmwares, check "BEFORE DOING ANYTHING"
4) Download the latest flashtool: http://www.flashtool.net/downloads.php
Upon installation, tick on fastboot, flashmode drivers! If it didn't ask you, go to the installation folder and run Flashtool-drivers.exe. Please read "DRIVERS" section!
5) Flash the .tft file
How to flash?
0. Go to "C:\Users\[Your PC Name]\.flashTool\firmwares" , and put your firmware .ftf file in there!
1. Open Flashtool and click on the lightning bolt icon (first one from the left)
2. In the prompt, choose flashmode.
3. Under firmware, click on the version you put (It should probably only be one option)
4. Under wipe , tick everything. Under the others, do not make any changes.
5. Click "Flash"
6. When the popup appears, connect your device. It needs to be powered off, and connected while you are holding the
"volume down" button.
7. Wait for it to finish.
8. Done. Boot up the device, it might take some time to open so don't worry.
Click to expand...
Click to collapse
6)If your phone bootloops, try flashing again or a different firmware and make sure you followed the steps correctly.
7) Once your phone successfully boots android MM, use Dirtycow to get your DRM keys out: https://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236
8) If you unlocked the bootloader before backing up your keys, you can use DRM kernel fix. You can get it here: https://forum.xda-developers.com/xperia-x/development/kernel-drm-fix-nougat-t3530849 Before using it check out the custom rom that includes this fix and other things.
UNLOCK BOOTLOADER
This is relatively easy and you can follow official sony instructions to do it.
1) Go to your phone settings, developer options, and enable OEM unlock
"But there is no developer options!" -Go to the bottom of your settings, system, about phone, and tap multile times on "Build Number", also at the bottom.
Click to expand...
Click to collapse
2) If you haven't already , install ADB fastboot and configure drivers (Link on top )
3) Follow the steps on the Sony website to get your unlock code: https://developer.sonymobile.com/unlockbootloader/email-verification/
4) After unlocking, a warning message on boot is normal!
INSTALL RECOVERY
Installing TWRP on your xperia X is very important, since you can flash zips and img files so easily, plus wipe, backup and other features.
1) Download the TWRP .img file: https://androidfilehost.com/?w=files&flid=197369 (Credit: eagleeyetom )
2) Make sure you have USB debugging enabled
3) Open your downloaded twrp folder
4) Run CMD in that folder (shift + right click inside the folder, Open CMD here )
5) Connect your Xperia X to your PC
6) Type these lines:
adb reboot bootloader
fastboot flash recovery recovery.img [where recovery.img is your twrp file name]
fastboot reboot
7) If no errors, twrp is now installed. Once your phone boots , turn it off,. To access TWRP recovery hold power button and volume down button until the TWRP menu appears.
STOCK ROM, ROOT
If you just want to root and not interested in additional features and tweaks, you can simply flash SU through TWRP to get your phone rooted.
Note: Current best stock ROM available: 7.1.1 (252) - better features than older ver, and good battery life.
0) Install your desired stock firmware using the exact same previous instructions, (under DRM section) with flashtool.
1) Download SuperSu
Or magisk, using YasuHamed guide mentioned on top, but I have not tested with anything other than Oreo 8.0
Use magisk if you want more stability / root features (like hide root from apps, modules )
2) copy it anywhere on your phone
3) Run TWRP
4) Tap on install
4) Flash the file
5) Reboot, you are now rooted
6) Insert your DRM keys if you have them
Custom ROMS
After unlocking the bootloader and installing TWRP this is the best way to go in order to get full root, tweaks.
https://forum.xda-developers.com/xperia-x/development/rom-xperia-x-pexorom-v1-0-0-f5122-f5121-t3590552
^ This is a very good custom ROM made by prmk74. You can see its features in his thread.
1) Download the rom and copy it to your phone
2) Run TWRP
note: It is recommended to wipe dalvik, cache, data ( your storage partition doesn't need to be wiped)
3) Tap install, find your downloaded file and execute
note: It is recommended to wipe dalvik, cache, data ( your storage partition doesn't need to be wiped)
4) Follow on-screen instructions, do not stop the booting after finishing the installation, it will take some time
5) Insert your DRM keys if you have them
6) For those who lost their keys: Now the functions like vivid image mode are working properly.
DRIVERS
For Windows 8/8.1/10 users, how to solve driver problems:
1) Press the Windows key + R together and in the ‘Run’ box type: shutdown.exe /r /o /f /t 00
– Now make the following selections to boot into the Start Up Setting Screen: Troubleshoot > Advanced options > Start Up Settings > Restart
– Then, when the machine restarts, select number 7 i.e. “Disable driver signature enforcement”. Your machine will start with Driver signing enforcement disabled until the next reboot.
B) Now you can install the Flashtool drivers. Go to the flashtool install location and run the drivers.exe again, check fastboot and flashmode
– Windows will warn that the driver is not signed and will require you to confirm the installation.
– Once the installation is complete, reboot the machine
TO CONCLUDE:
This is what you may want to do to get the most out of your new xperia x:
1) Backup DRM
2) Unlock BL
3) Install TWRP
4) Flash Persian (or a different rom) through TWRP (And subscribe to the thread so you receive updates)
5) Restore DRM
Notes:
None of the links, tools are of my work, I'm just writing a guide for my fellow XX owners
^^ this guide is so really good :3. I post flash script for someone dont know how to find it ^^
unzip it in this position.
C:\Users\[user-name]\.flashTool\mydevices
max26292 said:
^^ this guide is so really good :3. I post flash script for someone dont know how to find it ^^
unzip it in this position.
C:\Users[user-name]\.flashTool\mydevices
Click to expand...
Click to collapse
Thanks!
Thanks for this, I need some help!
All was fine until I tried flashing the recovery, comes back "partition unknown" error. I was unable to bring the device up under an adb device only as a fastboot device.
34.0.A.1.264_R3A firmware.
Different official sony driver (Sony bootloader guide driver didn't work)
Device now hangs on the Sony logo after boot messgae warning "OEM bootloader unlocked, device not trusted," any help would be appreciated.
brianx87 said:
Thanks for this, I need some help!
All was fine until I tried flashing the recovery, comes back "partition unknown" error. I was unable to bring the device up under an adb device only as a fastboot device.
34.0.A.1.264_R3A firmware.
Different official sony driver (Sony bootloader guide driver didn't work)
Device now hangs on the Sony logo after boot messgae warning "OEM bootloader unlocked, device not trusted," any help would be appreciated.
Click to expand...
Click to collapse
These USB drivers are very annoying to work with. I got mine to finally work using a program called ADB driver installer. http://adbdriver.com/downloads/ Choose automated installation and try what I said. I believe it should fix your problem, after installing the drivers reboot and flash again.
Other than that, I have to ask are you 1000% sure you used the exact commands?
I saw another thread someone mistook
"flash recovery recovery.img" for "flash recovery.img"
"recovery" should be included before the recovery file name
brianx87 said:
Thanks for this, I need some help!
All was fine until I tried flashing the recovery, comes back "partition unknown" error. I was unable to bring the device up under an adb device only as a fastboot device.
34.0.A.1.264_R3A firmware.
Different official sony driver (Sony bootloader guide driver didn't work)
Device now hangs on the Sony logo after boot messgae warning "OEM bootloader unlocked, device not trusted," any help would be appreciated.
Click to expand...
Click to collapse
Why didn't the sony guide work? It worked for me. Just so you know, the "device cant be trusted" message is appearing on everyones' phones after unlocking the bootloader, it's not a problem or something
the part of restoring DRM is skipped,
please xplain
YasuHamed said:
the part of restoring DRM is skipped,
please xplain
Click to expand...
Click to collapse
I know, as I said there is room for improvement. The reason I did not include it is because I never did it myself, so I don't want to write something wrong or something that could lead to problems. I write something only if I am 100% sure. If anyone of you is kind to offer that piece so the guide is complete I will be glad
FoxTheLegend said:
Why didn't the sony guide work? It worked for me. Just so you know, the "device cant be trusted" message is appearing on everyones' phones after unlocking the bootloader, it's not a problem or something
Click to expand...
Click to collapse
Ok I figured out what I did wrong and was able to amend another issue I edited out of this post.
brianx87 said:
Ok I figured outwhat I did wrong (able to boot into the os and warning message no longer an issue ) and the issue I am now facing is that twrp is hanging on the boot screen. Is this version of twrp built to a specific version of android?
Click to expand...
Click to collapse
What do you mean hanging? the twrp logo frozen?
FoxTheLegend said:
What do you mean hanging? the twrp logo frozen?
Click to expand...
Click to collapse
Working now, used a previous version of twrp by mistake. Using latest build works fine now, have to wait to get home from work to proceed with the rest, annoying procedures this stuff but your guide is great.
brianx87 said:
Working now, used a previous version of twrp by mistake. Using latest build works fine now, have to wait to get home from work to proceed with the rest, annoying procedures this stuff but your guide is great.
Click to expand...
Click to collapse
Thanks, Im glad to it works now
FoxTheLegend said:
I know, as I said there is room for improvement. The reason I did not include it is because I never did it myself, so I don't want to write something wrong or something that could lead to problems. I write something only if I am 100% sure. If anyone of you is kind to offer that piece so the guide is complete I will be glad
Click to expand...
Click to collapse
thank you for the answer sir
i am unable to find any twrp that work for my F5122, it always bricks and i have to reset.
is there any twrp recovery image that works correctly with f5122?
YasuHamed said:
thank you for the answer sir
i am unable to find any twrp that work for my F5122, it always bricks and i have to reset.
is there any twrp recovery image that works correctly with f5122?
Click to expand...
Click to collapse
Hmm.. Did you try the one from the poison thread? I myself have still the old version installed (not 3 or 3.1) if I find it on my pc I will share it with you
FoxTheLegend said:
Hmm.. Did you try the one from the poison thread? I myself have still the old version installed (not 3 or 3.1) if I find it on my pc I will share it with you
Click to expand...
Click to collapse
I have to modified kernel
all i want is to boot it via fastboot command
for example i have the rooted kernel SU installed (but battery drain is high) so i what wana do is flashing kernel with all securities OFF and then with twrp image i will do
Code:
fastboot boot twrp.img
i will boot the X in to twrp and i will flash SUPERSU via twrp.
thanks all
YasuHamed said:
I have to modified kernel
all i want is to boot it via fastboot command
for example i have the rooted kernel SU installed (but battery drain is high) so i what wana do is flashing kernel with all securities OFF and then with twrp image i will do
i will boot the X in to twrp and i will flash SUPERSU via twrp.
thanks all
Click to expand...
Click to collapse
I see, but don't you want to figure out why it's not working normally? Noone has reported a similar problem
FoxTheLegend said:
I see, but don't you want to figure out why it's not working normally? Noone has reported a similar problem
Click to expand...
Click to collapse
since there is no offcial twrp for X out yes and only DORA (XA) is available) even XA don't work for X
so either twrp 2.8, 3.0 or 3.1 any should just boot in order to let us flash superSU.
YasuHamed said:
since there is no offcial twrp for X out yes and only DORA (XA) is available) even XA don't work for X
so either twrp 2.8, 3.0 or 3.1 any should just boot in order to let us flash superSU.
Click to expand...
Click to collapse
=-= try to use this command fastboot flash recovery [your_recovery_name].img
I use f5122 and flash successfull twrp 3.0.2 and 3.1. with this, i flash some kernel and rom without any problem.
Everything is working good for me now, the only issue now is restoring the DRM keys, has anyone found a credible source for doing this on this device?
How can I be sure I have a full root? I can't seem to be able to uninstall some of the bloatware only disable it!
brianx87 said:
Everything is working good for me now, the only issue now is restoring the DRM keys, has anyone found a credible source for doing this on this device?
How can I be sure I have a full root? I can't seem to be able to uninstall some of the bloatware only disable it!
Click to expand...
Click to collapse
Well titanium backup can assure you but I don't see why you wouldn't have full root... You need an app uninstaller to uninstall bloatware, it can't be done through the settings you know that right

[ROOT] [Xperia X] [STOCK KERNELS] - [LATEST] 34.4.A.2.118 -25-SEPT-2018

DEVICE XPERIA X - PROJECT NAME SUZU - VARIANTS F5121 & F5122 (DUAL)​
WhatsApp Group[PLEASE PM ME] for Xperia X (ENGLISH ONLY) by@hhjadeja007
A BIG THANKS TO @serajr & @sToRm// and ofcourse @tobias.waldvogel
#DETAILED KNOWLEDGE BASE GUIDE FOR XPERIA 2018 MODELS / THANKS TO @DHGE
Similar Noob Version / DrmKeys, TA, unLock & Lock Bootloader (XPERIA XZ) thanks @nathan30
MAGISK GUIDE THANKS TO @Didgeridoohan
and FINALLY @Chippa_a for TWRP 3.2.2
____________________________________________________________
IF YOU KNOW THE BASICS THEN PROCEED BELOW , OTHERWISE R E A D - H E R E
-OREO KERNELS
ROOT DIRECTORY XPERIA X SUZU
"Xperia X UPDATE" ON -25-SEPTEMBER-2018 -- 34.4.A.2.118 F5121 & F5122 NEW
"Xperia X UPDATE" ON -22-AUGUST-2018 -- 34.4.A.2.107 F5121 & F5122
"Xperia X UPDATE" ON -18-JULY-2018 -- 34.4.A.2.97 F5121 & F5122
"Xperia X UPDATE" ON -14-JUNE-2018 -- 34.4.A.2.85 F5121 & F5122
"Xperia X UPDATE" ON -09-MAY-2018 -- 34.4.A.2.70 F5121 & F5122
"Xperia X UPDATE" ON -10-APRIL-2018 -- 34.4.A.2.50 F5121 & F5122
"Xperia X UPDATE" ON -15-MARCH-2018 -- 34.4.A.2.32 F5121 & F5122
"Xperia X UPDATE" ON -26-FEB-2018 --34.4.A.2.19 F5121 & F5122
"Xperia X UPDATE" ON -06-FEB2018 -- 34.4.A.0.364 F5121 & F5122 - thanks to @Gray47Maxx
-------------------> INSTRUCTIONS <-----------------
1. Paste the following on your sd OR USB OTG AND KEEP IT ASIDE
-DRM-Fix_System_Mode.zip
-Magisk.zip
-FCS_thermal_Xperia_X_V.1.8.zip (optional)
2. FLASH THE LATEST ROM VIA FLASHTOOL , if DURING FLASHING you get script error then
2B. Paste 34.4.fsc from folder1 to [C:\Users\<username>\.flashTool\devices\F51XX] and try TRY flashing again.
3. boot you device in to OREO , enable USB DEBUGGING and Switchoff you device
4. Flash KERNEL " F512X_34.4.A.X.X_CLEAN.img" using FLASHTOOL (fastboot MODE) and unplug device.
5. Paste the " twrp-3.1.1-suzu-2017.08.22.img " (Recovery image) at C:\Program Files (x86)\Minimal ADB and Fastboot & name it something simple such as boot.img. CONNECT DEVICE IN FASTBOOT MODE AGAIN & FLASH Recovery via following FASTBOOT command ("fastboot flash recovery twrp.img" & enter. Once Done; remove cable and after few seconds ......
6. press POWER and VOLUME DOWN keys and HOLD until you are taken to TWRP.
6B. TWRP 3.x.x will ask decryption password, click back and DO - THIS - STEP - THANKS TO @Jomoteck
7A. NOW from SDCARD OR USBOTG flash the items in the same sequence given ABOVE ( DRM-Fix_System_Mode.zip / then Magisk.zip)
7B. FLASH - FCS_thermal_Xperia_X_V.1.3.zip (optional) and
8. clear cache / delvik cache and and switch-off device (DO NOT PROMPT INSTALL TWRP)
9. after a while switch on device. first reboot may take a while and you may face bootloop (atleast once)
10. install magisk_5.X.apk (magisk manager withing android)
11. install rootcheck_615.apk and check the Root access. (optional)
ADDITIONAL STEPS I DO
12. INCREASE VOLUME--replace "mixer_paths_wcd9335.xml" file from /system/etc for HIGH VOLUME AND RINGTONE (TAKE BACKUP OF THE ORIGINAL ONE) (I USE FX EXPLORER
13. ENABLE NIGHTLIGHT FILTER
---- first flash given Night_Light.zip via TWRP and reboot, check if the control appears or not, if NOT then
-- Install Given "android-res-night.apk"; then connect device to pc (via usb cable) and ran the following command on "Minimal Adb & Fastboot Window"
Code:
"adb shell cmd overlay enable --user 0 android.res.night"
nightlight will work after you next reboot PREVIEW NIGHTLIGHT
14. SOME MODULES IN MAGISK --- > "UPDATE" -GOOGLE PLAY SERVICES --> OPEN MAGISK--> FLASH MODULES
15 "UPDATE" Magisk manager 5.6x & then "Xperia X UPDATE" ON -Magisk module to 16.x (direct install) --- N O W. R.E.B.O.O.T. ---
-------- REMOVING BLOATWARE-------
----(A)------------SCRIPT METHOD -------------
16A. make sure usb debugging is ON, connect your device via cable to pc and UNZIP GIVEN "v1.8_Xperia_X_Debloat_By_Serajr_Combined.zip" AND RUN THE BAT FILE- ( read the instructions CAREFULLY ( -----READ HERE-------- ) ) ---- it will prompt permission & then superUser Permission. Grant BOTH ----- the device will reboot and ALL THE BLOATWARE WILL BE VOIDED
16B. after reboot you may get app crashing prompt. SWITCH-OFF device
16C. reboot to twrp and again clean cache and Delvik cache and SWITCH-OFF device
16D. reboot and delete "_debloat_backup" folder (size 1.7gb) from /system by using any GOOD ROOT EXPLORER APP ( I use FX Explorer)
16E. Mr @venomxob has cofirmed that by updating SOFTWARE "Xperia X UPDATE" ON -APP in OREO, fixes the annoying App Crash Popups DOWNLOAD HERE
16E. FROM "Developer Options" disable animation affects for speedy performance
----(B)----------MANUAL METHOD--------------
MAKING SYSTEM WRITABLE to REMOVE BLOATWARE / SYSTEM APP
In order to to remove system App and Bloatware you must make /system partition writable
17A .install busybox (run it and install it in system) and then
17B.install terminal, later type these lines ( no CAPS) and enter one by one in #terminal
Code:
su (grant su access)
busybox mount -o rw,remount,rw /system
17C. FOR OREO THIS BUSYBOX WORKED FOR ME - CLICK HERE
17D. SYSTEM APP UNINSTALLER WORKED FOR ME ON BOTH NOUGAT & OREO CLICK HERE
17E. I PREFER FREEZING SOME CORE SONY APPS WITH THIS APP CLICK HERE
SOME VALUE ADDING APPS I USE
1. YMUSIC ( MP3 Player/downloader for YOUTUBE) CLICK HERE
2. BROMITE (PowerFul Fast Chrome Browser without Tracking ) CLICK HERE
3. LATEST XPERIA HOME APP (3D TOUCH) CLICK HERE
4. OGYOUTUBE (modded Youtube player) CLICK HERE
5. ADBLOCKER (Adaway) CLICK HERE
<_______________________________________________________________________________________________________>
-NOUGAT KERNELS
"Xperia X UPDATE" ON -06DEC2017--34.3.A.0.252 - F5121 & F5122Best Build
"Xperia X UPDATE" ON -09NOV2017--34.3.A.0.244 - F5121 & F5122
"Xperia X UPDATE" ON -04OCT2017 -- 34.3.A.0.238 - F5121 & F5122
"Xperia X UPDATE" ON -08SEP2017-- 34.3.A.0.228 - F5121 & F5122
"Xperia X UPDATE" ON -08AUG2017- 34.3.A.0.217 - F5121 & F5122
"Xperia X UPDATE" ON -12JULY2017 -- 34.3.A.0.206 - F5121 & F5122
"Xperia X UPDATE" ON -23JUNE2017 -- 34.3.A.0.194 - F5121 & F5122
"Xperia X UPDATE" ON -11MAY2017 -- 34.2.A.2.69 - F5121 & F5122
"Xperia X UPDATE" ON -22APR2017 -- 34.2.A.2.27 - F5121 & F5122
GENERAL METHOD (NOUGAT KERNELS)
34.2.A.2.27 / 34.2.A.2.69 / 34.3.A.0.194 / 34.3.A.0.206
34.3.A.0.217 / 34.3.A.0.228 / 34.3.A.0.244/ 34.3.A.0.238
& 34.3.A.0.252
The Process of Flashing these Nougat Kernels and Obtaining Root Access for is SAME as Described ABOVE (for Oreo Kernels) EXCEPT FOLLOWING TWO THINGS
1. DO NOT FLASH "DRM-Fix_System_Mode.zip"
2. FLASH THE bloatware removal script, [v1.8_Xperia_X_Debloat_By_Serajr_Combined.zip], IT works just fine on Nougat.
--------------------------------------------------------------------------------------------------------------------------------------------------
- MARSHMALLOW KERNELS
"Xperia X UPDATE" ON -29APR2016 -- 34.0.A.1.264 (GENERIC & NORDIC) - F5121 & F5122
METHOD ( MARSHMALLOW KERNELS) 34.0.A.1.264
The Process of Flashing MARSHMALLOW Kernel and Obtaining Root Access for is SAME as Described ABOVE (for Oreo Kernels) EXCEPT FOLLOWING TWO THINGS
1. DO NOT FLASH "DRM-Fix_System_Mode.zip"
2. FLASH THE bloatware removal script, [v1.8_Xperia_X_Debloat_By_Serajr_Combined.zip], IT works just fine on Nougat.
​
<<<<---------------------------------------------------------------------------------------------------------------->>>
​HASTAGS : #F5122 #F5121 #ROOT #XPERIAX #STOCK #MODIFIED #KERNELS #STOCKKERNES #
所以 这是一个好消息。
LuxferreX said:
所以 这是一个好消息。
Click to expand...
Click to collapse
I don't know your language sir, but as per google I believe you typed " So it's good news."
so the answer is YES
however this forum is in English, please try to communicate in English because most of the knowledge-base is in English on XDA
I joined this forum to thank you very much. This not only works but restored my camera app which was crashing to launcher last time I attempted to root in MM. It caused the camera app to freeze and crash out even after with software repair and Sony said to send it back then said they didn't want to fix it because I unlocked the bootloader. (Camera worked in other apps etc.)
So not only do I now have root on Nougat but my camera app works too. You're brilliant!
YasuHamed said:
[*]type command
Code:
fastboot flash twrp3.1.img
( assuming you put twrp3.1.img in the minimal adb folder)
Click to expand...
Click to collapse
Actually not quite:
Code:
fastboot flash recovery twrp3.1.img
That should do it. =)
evilicious_evil said:
I joined this forum to thank you very much. This not only works but restored my camera app which was crashing to launcher last time I attempted to root in MM. It caused the camera app to freeze and crash out even after with software repair and Sony said to send it back then said they didn't want to fix it because I unlocked the bootloader. (Camera worked in other apps etc.)
So not only do I now have root on Nougat but my camera app works too. You're brilliant!
Actually not quite:
Code:
fastboot flash recovery twrp3.1.img
That should do it. =)
Click to expand...
Click to collapse
Thank you @evilicious_evil for
1. correcting the code , i have fixed it
2. liking the post and
3. most important for the AdsFree
I know you will enjoy your device because I just couldn't love it more!
im stuck with downgrade step. im new to xperia and really want to root my device but im nougat now due to system update. kindly give steps on how to downgrade. so i can backup my drm keys.
BASICS
1. SONY XPERIAS are SHIPPED with LOCKED BOOTLOADERS with PASSWORD / (UNLOCK KEY)
2. First check your device whether SONY will ever allow you to unlock your bootloader or not? DIAL *#*#7378423#*#* / SERVICE INFO > / Configuration > / and check for "ROOTING STATUS: Bootloader unlocked allowed: " ... if it says NO then you better return your device back to sony. your phone can never be bootunlocked and you can never have root access. Better give the mobile to young sibling...
Hoever if "ROOTING STATUS: Bootloader unlocked allowed: " says YES then we can do the magic (see attached image)
BEFORE YOU UNLOCK BOOTLOADER DOWNGRADING TO 6.01 is MUST - this step will WIPE everything in your device
- GUIDE TO USE FLASHTOOL TO FLASH ANY FIRMWARE (DOWNGRADING TO ANDROID 6)
MAKE SURE ALL DRIVERS ARE INSTALLED
INSTALL SONY PC COMPANION / XPERIA COMPANION and Make FIRST CONNECTION to WINDOWS PC to XPERIA X while running sony pc companion or xperia companion and it will install necessary drivers.
-switch-off xperia X and plug usb in while holding the volume UP key (BLUE LED / FASTMODE) and let your windows install fastboot drivers.
- remove usb, and afte few seconds connect usb again while pressing VOLUME DOWN Key (Green LED / FLASHMODE) and let your windows install flashmode drivers
Click to expand...
Click to collapse
Install FLASHTOOL from http://www.flashtool.net/downloads_windows.php and install it / after installation
1. upgrade the version from 0.9.23.1 to 0.9.23.X by replacing x10flasher.jar files (given in that page) at C:\Flashtool
2. goto C:\Flashtool\drivers and install the setup! there will be many check boxes for you to see according to your sony devices. select common fastboot/flashmode drivers and sony Xperia X motherboard drivers (sa0107)
3. run flastool. run xperifirm (last button at right) (see image)
4. once xperifirm is run select your device SUZU >F5122 (see image)
5. now you will all the countries listed and the latest android versions they have pushed. if you see at the bottom the StoreFront/Service Exchange Unit and Commercial journalist will have the FIRST EVER version on which F5122 was created. the 34.0.A.1.264 is your version. you may install commercial journalist version (see image)
6. download it and once completed close the xperifirm and IMMEDIATELY flashtool will start creating FTF file. if it asks you anything about INCLUDING FSC SCRIPT / click YES
7. click the THUNDER BUTTON and select FLASHMODE (see image)
8. point out on the ftf firmare folder (in your case since you just downloaded it will be already be at right place) (see image) and
9. make a CLEAN FLASH (SEE IMAGE CAREFULLY)
10. click flash / it will take 10 mins to prepare flashfiles and
11. will prompt you to connect your device in FLASHMODE
12. makesure your xperia is switch OFF and now make a connection of your device in flashmode (plugin usb + vol down key (hold) (green led)
13. it will read you device and will start FLASHING / DONOT MOVE SHAKE device incase if usb connection looses your device may be bricked.
14 flashing takes 20-30 mins.
15. at 99% the flashtool seems to hang (while closing headers) and may take upto 15 mins. don't panic.
16. keep reading the screen / once flashing done/ flashtool will indicate.
17. boot your device, first boot may take several mins
congratulations your f5122 is successfully downgraded to ANDROID MM
Enable usb debugging from developer options and EXTACT DRM keys via DIRTYCOW script.
SAVING DRM KEYS
1. DOWNLOAD THE Universal (Dirtycow-based) TA Backup v2 FROM THIS POST
2. EXTRACT the zip on desktop and connect your xperia X running on android 6 / boot LOCKED
3. enable usb debugging under developeroptions
4. run the .BAT file and look at the device.
5. when prompt permission, grant it
6. the script will extract .img file in that same folder having name something like "TA_F512X_<code>_<ddmmyy><timestamp>.img" , you may run the script more than once to extract same copy of TA image. the script will keep saving it in the same folder with current time stamp as part of the file name ,
I ran the script thrice
7. once done SAVE THE .IMG FILES ON SAFE PLACE, CLOUD STORAGE, EMAIL, ETC , use xperifirm again to download the LATEST BUILD and FLASH it via FLASHTOOL as described ABOVE in the flashtool section.
8. once you are on OREO or Nougat, its time to UNLOCK your BOOTLOADER,
UNLOCKING BOOTLOADER SONY XPERIA (DRM KEYS) TA.IMG
PLEASE SEE THE COMPLETE @DHGE #GUIDE FOR XPERIA 2018 MODELS AT https://forum.xda-developers.com/showpost.php?p=70504721 / THANKS TO @DHGE
you may also consider viewing NOOB version for XZ by @nathan30 https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648
IN SHORT----
To be able to unlock your Xperia X, prepare it by following these steps:
Go into Settings > About phone and tap seven times on Build number to enable developer options.
From Settings, go into Developer options and enable OEM unlocking.
Warning: Device protection features will not work on this device while this setting is turned on.Please note! It will only be possible to unlock the boot loader for certain releases. You can check if it is possible to unlock the boot loader of your device in the service menu by following the steps below:
In your device, open the dialler and enter *#*#7378423#*#* to access the service menu.
Tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked. Continue to http://developer.sonymobile.com/unlo...-verification/ , give your email ID and they will send you link asking you your device's IMEI Number. once you give that sony will email you YOUR BOOTUNLOCK KEYS within minutes. (keep them aside for now)
-using FlashTool "BLU" key you can unlock your bootloader
- your TA partitions / internal storage will be WIPED and device will rebooted.
Thanks alot sir!!
honestly im so excited to root thats why i never even bother to read carefully..
to make story short.. i manage to unblocked BT (w/o downgrading and backing up DRM keys) so lesson learned..
then tried flashing your ( image boot_su_34.2.A.2.47.IMG ) to have root and drmfix as well so everything is okay until i tried to play my favorite game MObile legends and try to use PS3 controller using six axis. ( this is the main reason why i unlook and root) but i failed. so i started thinking maybe i made it all wrong. so i tried to go back unroot and relock using videos and guides online and ending up with a dead xperia x ten i managed to solved it by relocking first and software repair via sony companion and every thing is okay except the camera..
---------- Post added at 12:16 PM ---------- Previous post was at 12:11 PM ----------
now i want MM and drm fix.. question is can i flash your ( image boot_su_34.2.A.2.47.IMG) on MM??
the reason i want MM is that i think its compatible with the game and for me to use ps3 controller
---------- Post added at 12:54 PM ---------- Previous post was at 12:16 PM ----------
or if not can you make a kernel for MM with DRM fix? please
sorry sir i have alot of questions i really wanted to fix my phone. so i will follow all the steps you said but upon installing flashtool and drivers i cant seem to find this (sony Xperia X motherboard drivers (sa0107) ) in the list. i dont want to skip this since i don want to encounter any problems again the way i did last time. Will it be okay to skip this?
jhendsantos said:
honestly im so excited to root thats why i never even bother to read carefully..
to make story short.. i manage to unblocked BT (w/o downgrading and backing up DRM keys) so lesson learned..
then tried flashing your ( image boot_su_34.2.A.2.47.IMG ) to have root and drmfix as well so everything is okay until i tried to play my favorite game MObile legends and try to use PS3 controller using six axis. ( this is the main reason why i unlook and root) but i failed. so i started thinking maybe i made it all wrong. so i tried to go back unroot and relock using videos and guides online and ending up with a dead xperia x ten i managed to solved it by relocking first and software repair via sony companion and every thing is okay except the camera..
---------- Post added at 12:16 PM ---------- Previous post was at 12:11 PM ----------
now i want MM and drm fix.. question is can i flash your ( image boot_su_34.2.A.2.47.IMG) on MM??
the reason i want MM is that i think its compatible with the game and for me to use ps3 controller
---------- Post added at 12:54 PM ---------- Previous post was at 12:16 PM ----------
or if not can you make a kernel for MM with DRM fix? please
Click to expand...
Click to collapse
Good day sir
since I proof read and fixed grammatical errors , your thank is void, plz thanks again
https://forum.xda-developers.com/showpost.php?p=72141176&postcount=7
...................................
Seems like you have a Full Plate of Experiences with your Xperia X
1. once unlocked, i highly recommend not to re lock the boot loader unless you are selling your device
2. If at any point xperia X is bricked, holding POWER+VOLUME UP key for
-----(a) five seconds will REBOOT the device after 1 JERK
------(b) Fifteen secons will JERK your device THRICE and on second jerk, YOU MUST remove your fingers from power+volumeUP keys and it will make your device SHUTDOWN so that you can reconnect it in FLASHMODE and do the magic again
3. I don't have knowledge about connecting PS3 to XPERIAS but SONY cannot release Android N without checking compatibility of already sold SP3.... so what i can suggest is to find approperiate app on playstore to connect with Ps3 and/or google more on this subject
4. keep your TA IMAGE INTACT / saved / email yourself / back it up on cloud for future use.
5. for you i have created SIMILAR KERNAL for android 6.01 BUILD 34.0.A.1.264 , having superSU
6. using flashtool perform CLEAN flash and send the kernel to your device.
7. I am giving you original STOCK KERNEL SIN file "original_stock_kernel_F5122_34.0.A.1.264.sin" if the modified kernel gives you bootloops OR you have bricked F5122 atleast you dont have to reflash everything. just flash the kernel in fastbootmode and you device will wakeup
https://mega.nz/#F!7UZBiYDI!t7ieYMwHUNsAC5T9iHpyQQ
jhendsantos said:
sorry sir i have alot of questions i really wanted to fix my phone. so i will follow all the steps you said but upon installing flashtool and drivers i cant seem to find this (sony Xperia X motherboard drivers (sa0107) ) in the list. i dont want to skip this since i don want to encounter any problems again the way i did last time. Will it be okay to skip this?
Click to expand...
Click to collapse
yes seems like all drivers are installed
kindly skip
YasuHamed said:
Good day sir
since I proof read and fixed grammatical errors , your thank is void, plz thanks again
https://forum.xda-developers.com/showpost.php?p=72141176&postcount=7
...................................
Seems like you have a Full Plate of Experiences with your Xperia X
1. once unlocked, i highly recommend not to re lock the boot loader unless you are selling your device
2. If at any point xperia X is bricked, holding POWER+VOLUME UP key for
-----(a) five seconds will REBOOT the device after 1 JERK
------(b) Fifteen secons will JERK your device THRICE and on second jerk, YOU MUST remove your fingers from power+volumeUP keys and it will make your device SHUTDOWN so that you can reconnect it in FLASHMODE and do the magic again
3. I don't have knowledge about connecting PS3 to XPERIAS but SONY cannot release Android N without checking compatibility of already sold SP3.... so what i can suggest is to find approperiate app on playstore to connect with Ps3 and/or google more on this subject
4. keep your TA IMAGE INTACT / saved / email yourself / back it up on cloud for future use.
5. for you i have created SIMILAR KERNAL for android 6.01 BUILD 34.0.A.1.264 , having superSU
6. using flashtool perform CLEAN flash and send the kernel to your device.
7. I am giving you original STOCK KERNEL SIN file "original_stock_kernel_F5122_34.0.A.1.264.sin" if the modified kernel gives you bootloops OR you have bricked F5122 atleast you dont have to reflash everything. just flash the kernel in fastbootmode and you device will wakeup
https://mega.nz/#F!7UZBiYDI!t7ieYMwHUNsAC5T9iHpyQQ
Click to expand...
Click to collapse
----
WOW!! many thanks sir!! will keep this kernel for sure!!
about TA IMAGE -- its DRM keys right i think i lost it already since i unlock BL w/o downgrading to MM and backing it up.:laugh:
----
i unlocked BL again via official way= camera works
flash twrp via minimal adb (to root and flash rom) first boot is as far as i remember it went well, tried to boot to twrp again and was prompted to install TWRP APPS (since i dont understand that) i install and reboot but this time my device wont boot it shows sony logo twice and then this warning : YOUR DEVICE IS CORRUPTED AND CANNOT BE TRUSTED. AND MAY NOT FUNCTION PROPERLY... PRESS POWER TO BOOT but upon pressing power device wont boot
--what seems to be the problem??
--tried to boot to twrp again and wipe dalvik/cache/ = same error
--tried to reflash recovery.img via minimal adb = same error
by the way im a MISS
jhendsantos said:
----
WOW!! many thanks sir!! will keep this kernel for sure!!
about TA IMAGE -- its DRM keys right i think i lost it already since i unlock BL w/o downgrading to MM and backing it up.:laugh:
----
i unlocked BL again via official way= camera works
flash twrp via minimal adb (to root and flash rom) first boot is as far as i remember it went well, tried to boot to twrp again and was prompted to install TWRP APPS (since i dont understand that) i install and reboot but this time my device wont boot it shows sony logo twice and then this warning : YOUR DEVICE IS CORRUPTED AND CANNOT BE TRUSTED. AND MAY NOT FUNCTION PROPERLY... PRESS POWER TO BOOT but upon pressing power device wont boot
--what seems to be the problem??
--tried to boot to twrp again and wipe dalvik/cache/ = same error
--tried to reflash recovery.img via minimal adb = same error
by the way im a MISS
Click to expand...
Click to collapse
1. you need recovery only when you want to flash superSU ,
2. since the kernel i have given in previous post and in the OT have SuperSU flashed, then you don''t need recovery.
please tell me when you flashed twrp,
1. why? for what purpose
2. did you flash the modified kernel also? (before flashing twrp)
3. if you did not flash modified kernel and have flashed twrp and via twrp you have flashed supersu... this means you put recovery on stock kernel and modified /SYSTEM
4. such action will always give you bootloops or "your device is corrupt... error" becuase DM VARITY is active in the stock kernel
simply flash the kernel i provided (having supersu) and wake you device up ROOTED.
YasuHamed said:
1. you need recovery only when you want to flash superSU ,
2. since the kernel i have given in previous post and in the OT have SuperSU flashed, then you don''t need recovery.
please tell me when you flashed twrp,
1. why? for what purpose
2. did you flash the modified kernel also? (before flashing twrp)
3. if you did not flash modified kernel and have flashed twrp and via twrp you have flashed supersu... this means you put recovery on stock kernel and modified /SYSTEM
4. such action will always give you bootloops or "your device is corrupt... error" becuase DM VARITY is active in the stock kernel
simply flash the kernel i provided (having supersu) and wake you device up ROOTED.
Click to expand...
Click to collapse
.
----
thanks sir problem solved i just flashed Poison v2.1 since twrp seems to be working.. tried my luck and its a success.
Im new user of Xperia X, can anyone please explain me what are drm keys for, and what will go wrong in case i dont back them up before rooting my device? Thank you in advance
sleeper994 said:
Im new user of Xperia X, can anyone please explain me what are drm keys for, and what will go wrong in case i dont back them up before rooting my device? Thank you in advance
Click to expand...
Click to collapse
DRM keys are unique to your device and stored on your TA partition. If you unlock your bootloader, they are wiped and they will not be restored if you relock. As a result, some camera functions will be impaired (e.g. photos taken in darkish conditions will be noisy) as well as X-reality (image enhancement). You can backup your own TA by making use of the dirty cow vulnerability in marshmallow. This​ allows you to restore your phone to its original state if you want to go back to stock. In addition you can use your TA to modify your kernel to make your unlocked phone think its drm keys are still intact.
Hi, Does it apply the F5121?
M1chiel said:
DRM keys are unique to your device and stored on your TA partition. If you unlock your bootloader, they are wiped and they will not be restored if you relock. As a result, some camera functions will be impaired (e.g. photos taken in darkish conditions will be noisy) as well as X-reality (image enhancement). You can backup your own TA by making use of the dirty cow vulnerability in marshmallow. This​ allows you to restore your phone to its original state if you want to go back to stock. In addition you can use your TA to modify your kernel to make your unlocked phone think its drm keys are still intact.
Click to expand...
Click to collapse
So, basically I can backup drm keys, root my phone, restore keys, and all functions would be stock-like while phone is still rooted?
Nope, restoring your TA will lock your bootloader and therefore unroot. But you can modify your kernel to make your phone think the DRM keys are still there. Check e.g. https://forum.xda-developers.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893
Edit: It actually will not allow booting since the system or the boot partition were modified.
sangbb said:
Hi, Does it apply the F5121?
Click to expand...
Click to collapse
no it does not! send me your kernel.sin file
i will modify for you

5S/5G Roms and Root Mega thread [Updated November 2022]

Nubia Red Magic 5G and 5S Roms and Root support Thread
Second post for TWRP and Magisk installation. Mirror for all roms and tools at end of post
Latest Official Rom updates
Android 11
US/Asia - V8.70 Nubia Link MD%: will update soon
EU - V7.70 Nubia Link MD5: will update soon
China - V9.50 Nubia Link MD5: 361AC13CA52AB83C239783FBAB088CEA
Android 10
US/Asia - V8.12 Nubia Link MD5: 6e930fc2431b3daeae2d94145926a6c1
EU - V7.15 Nubia Link MD5: bb9e3153716851e87f196ae6b4f44a2e
China - V6.23 Nubia Link MD5: BD447840ACA4D48F9443B94D2EAD890F
Change Log - 8.70 / 7.70 Android 11
- Security Patch October 2022
- Game Space enhancements
- Game space Gyro sensitivity menu
- game space touch sample rate improvement
- Fixed: corner of screen non-touchable in some cases
- Fixed: issue where game would fail to close
- Fixed: location of caller display
-Fixed: screen tearing when using 144hz
-
Bugs -
in Testing
- Always on display notification not showing
- memory leak in nubia launcher (requires forced close often to stop phone from lagging)
- small window mode for telegram and discord have wrong zoom/ aspect levels.
_____________________________________________________________________________________________________________
UNBRICK TOOL for 5S - Courtesy of @johnny886
Use this tool, with directions on the thread to restore your device to USA/Asia 8.07
you can then install TWRP and after flash any region rom after creating a somewhat universal unbrick tool for those in different regions.
Follow directions on the thread. but here is a link to the Thread. A Mirror for the tool is in my Personal Mirror at the bottom of this thread post.
Link to Thread
Confirmed working with 5G devices - but its recommended to update as soon as you unbrick.
_____________________________________________________________________________________________________________
For unlocked bootloader
Fix your fingerprint sensor.
here Link
--------------------------------
Update Instructions.
Note
for Android 11 do not flash through TWRP you will softbrick.
____________________________________________________________________
For Stock devices without root
- disable security. No pin, no face unlock, no finger print, no pattern. remove all security.
-download zip file
-go to system update tap three dots and select local update
-Navigate to update.zip and select.
-your phone will reboot and install new rom
- you phone will reboot once more and you will be greeted with your lock screen
- setup Phone with security options as before flash.
For devices with "LOCKED bootloader" Root / TWRP (not tested on A11)
- take backup of vbmeta and recovery partitions in TWRP
- change the name of both files to vbmeta.img and recovery.img
(VBmeta is often 64kb big and Recovery is often 90+mb big.)
- copy and paste these new img files into the update zip.
- flash through TWRP
- go back to main menu, select advanced, then select option
"disable replace TWRP" to keep TWRP as your recovery.
for devices with "Unlocked bootloader" (not tested on A11)
-make full backup
-download zip
-install zip through TWRP
-reboot
__________________________________________________________________________________
Custom Roms and Kernels
Kernel
Mattofthedead's Redmagic 5S kernel for LOS and Stock roms LINK
Roms
Rom Builder Ra's Custom Roms - Please post any bugs or issues in the related threads.
Pixel Experience Plus
Ressurection Remix
NOTE : to boot any Custom rom on the 5S device. Flash the Rom following the directions. then flash Matts LOS kernel Version 3
__________________________________________________________________________________
------------------------------
Old roms
Android 11
V8.65 Nubia Link MD5: 3d52e18c66366d3d23744184425d3926
V8.64 Nubia Link MD5: a7e61f5e2f7c377a6850cf6ac3a62aa7
V7.65 Nubia Link MD5: 746dad5b6145dfba1108355095a6ad46
V7.64 Nubia Link MD5: 55371ee8e5728aee2bc7df5b3a7d6585
V9.42 Nubia Link MD5: D492B92DD83B366508CDD74DE7D152A3
V9.40 Nubia Link MD5: D28F26289A9B75F771EF4F623F0BB367
V8.57 Nubia Link MD5: 266819d4b09c2c52aadb39e948dc84bc
V8.59 Nubia Link MD5: d7e32b7a3e833adc57fcf734aa47f5a3
V7.57 Nubia Link MD5: 81ee71869f660a28b631d871ffb59524
V7.60 Nubia Link MD5:
V9.26 Nubia Link MD5: 8997375CD97D8F7F261F21121FC8EFAA
Android 10
v6.18 Link MD5: 9AC5EA5F64835C1995E4A81D4973FB71
V6.13 Link MD5: F38ED2D7CB58252D308B29D1D4517DB9
V7.07 Link MD5: ffc3fdaf4afc522aa3a084d9275f2cb6
V7.14 Link MD5: 0f879160fbf8b556de5303207b93d0d1
V8.07 Link MD5: b30dab221be73292c5da7884afc0363f
V8.11 Link MD5: 85d9366a3017112cb68d66041e725ce6
________________________________________________________
Personal Mirror - Located in Eastern Canada
________________________________________________________
TWRP and root guide for 5S and 5G on Android 10 only - (these steps will NOT unlock your bootloader) - these steps use a bypass method to install a recovery without unlocking bootloader. the command below is to allow flashing of partitions. bootloader status is still locked during and after process is complete.
Note. if you already have ADB and fastboot drivers installed, this folder will work as is. if not I put an installer in the folder too to install a mini adb fastboot setup. which needs windows driver signing turned off (windows 8-10) this can be done by going to advanced startup and choosing to boot without driver signing.
1. Download zip file found at the end of this post
2. Extract to root of C: drive
3. open CMD prompt with admin privileges
4. CD to the ADB folder you extracted. (CD = Change Directory)
5. Connect your device in Fastboot mode (power off. hold volume down +Power until it vibrates. then release power but continue to hold volume down)
6. Once in fastboot mode, with cable connected to the computer run these commands
7. fastboot oem nubia_unlock NUBIA_NX659J (this allows you to flash the device partitions)
8. fastboot flash recovery TWRP-xxx.img (xxx being the version number of the TWRP image you choose to install)
9. fastboot flash vbmeta vbmeta_skip.img
10. reboot to recovery (from the fastboot menu) it should load TWRP
11. if TWRP does not ask you to keep recovery from being over written, go to advanced and choose disable replace TWRP. to keep TWRP as your recovery, and stop the system from re writing the stock recovery.
12. Reboot to system for the first time and complete the initial setup. this is to create the user space partitions data/media ( preferably do not make a pin or pattern at this stage)
13. once in the rom, connect to PC and copy over the Magisk zip to the internal memory. then reboot holding Volume up
14. once back into TWRP (if you created a pin during setup TWRP will ask you for your pin to access data) go into install and flash the Magisk.zip you moved in step 13 then reboot. once back into the rom, you will see a Magisk app, tap it and allow to update, the APK will install latest version of the manager.
More NOTES.
this must be done on a clean system. you need to wipe all data partitions to boot to system. re writing VBMETA causes encryption to break. until you reboot. so you lose everything Make a backup of your data partition on to your PC before doing anything.
its also recommended to have an update.zip of your current rom (which you can download from the post above), incase you need to reinstall the rom after flashing the new recovery or VBmeta.
OEM unlocking in the developer options is NOT needed. since you are not unlocking your bootloader. this step can be ignored.
I'll update this tutorial with newer steps if needed.
Thanks to those that created all these great tools.
@wzsx150 - for their version of TWRP
John Wu - for Magisk
@mslezak vbmeta_skip
If i've helped you root your device, please hit thanks.
Link ADBmini - zip updated with Magisk 21.4 zip
MD5 for ADBfastbootmini.zip: 0ad97a9ae1539b26ef78c849b169e807
I'm working on a process that will update to Android 11, through TWRP and root, without losing data. Much like a stock update.
I will update the thread once my tests are complete.
Hello. I can not flash (i cant even copy) the zip via TWRP. I see the storage device on my windows laptop. I have wipe data cache and dalvik, but it does not copy it and i can not restore my device. Help will be appreciated
josehdx said:
Hello. I can not flash (i cant even copy) the zip via TWRP. I see the storage device on my windows laptop. I have wipe data cache and dalvik, but it does not copy it and i can not restore my device. Help will be appreciated
Click to expand...
Click to collapse
Try putting update zip on a USB key and connect via OTG and flash this way. Moving files with TWRP for some reason corrupts or does not complete transfer.
Make sure to factory reset. If you're coming from a used update, backup your data partition and wipe everything. Then check to see if the partition is in fact empty. ( I noticed sometime my data partition did not erase)
Patrick Morgan said:
Try putting update zip on a USB key and connect via OTG and flash this way. Moving files with TWRP for some reason corrupts or does not complete transfer.
Make sure to factory reset. If you're coming from a used update, backup your data partition and wipe everything. Then check to see if the partition is in fact empty. ( I noticed sometime my data partition did not erase)
Click to expand...
Click to collapse
Thanks
Working fine after full data partition wipe.
I have an additioal question regarding further updates, and i would not want to open a new topic. so, after flashing the zip, i "lost" TWRP but i already have root access. I wonder if is possible to flash upcoming updates with the default recovery built in on the phone, if not, i would assume i need to install TWRP again.in any case, will side loading update make any problem with the current system? i hope my question and context is clear
As these are official ROMs, they will replace the recovery and remove root from the phone.
If you do not have root, flashing these zips from the system menu local update should work. But if you have root or TWRP it's better to flash through TWRP.
You could just flash TWRP again after flash, but I personally modify the zip and add the recovery to it to save me going into fastboot after each update.
Is it possible to install the US rom on a device with EU rom?
in the EU version I can't set the frame rate to 144 hz.
Darkvenum79 said:
Is it possible to install the US rom on a device with EU rom?
in the EU version I can't set the frame rate to 144 hz.
Click to expand...
Click to collapse
I've spoken with another EU rom user, that has the same issue before. it seems it was an error in the stock rom.
reinstalling 7.07 from the links above should fix your problem.
both 7.07 (the EU rom) and 8.07 (the US rom) are exactly the same. the only difference is the languages from what I can tell.
I have a silly question. Unfortunately i unlocked bootloader and i lost the fingerprint capability. I have tried many times to do the calibration without success. I wonder if a factory flash (EDM or any nubia tool) can restore the capability and then use this guide to do the rooting? Thanks
josehdx said:
I have a silly question. Unfortunately i unlocked bootloader and i lost the fingerprint capability. I have tried many times to do the calibration without success. I wonder if a factory flash (EDM or any nubia tool) can restore the capability and then use this guide to do the rooting? Thanks
Click to expand...
Click to collapse
No it wont.
There is a specific step by step that is required to get it functioning again. And it only survives until your next full wipe, which i assume you will do more often flashing non official roms.
I can grab the steps and edit this post for you.
Edit -
Prep.
have a black / very dark brown leather. (belt, wallet, etc)
a soft gel plaster / Bandaid
(something skin textured and in a pink / light beige colour) texture and colour are important.
First step is clear data in the infingerprint app in app info and remove permissionfor data memory - (you need to show system apps to find it)
- digit in call phone code:
*#9959#
(android 11 use Activity launcher (playstore) to enter fingerprint menu)
- uncheck performance checkbox , check only calibration checkbox
Steps -
1. Press start then wait.
2.Press next and with plaster / bandaid press on circle
3.Press next and use wallet / belt ( the display becomes black for black calibration)
4.Press next and use gel plaster / bandaid again but pinch it in so only the part with your finger touches the circle.
If you are lucky see success alert in green color
In system app in setting In-Display-Fingerprint allow access to data memory then reboot device.
Enjoy your Finger Print once more!
P.S. = do this procedure in a very dark room to improve the chances of it succeeding.
Thanks to qtr1st (Salem) and mikekrunk (Mike) for the steps and information.
josehdx said:
I have a silly question. Unfortunately i unlocked bootloader and i lost the fingerprint capability. I have tried many times to do the calibration without success. I wonder if a factory flash (EDM or any nubia tool) can restore the capability and then use this guide to do the rooting? Thanks
Click to expand...
Click to collapse
esy re-lock bootloader fingrperint work fine without calibration
---------- Post added at 12:13 PM ---------- Previous post was at 12:08 PM ----------
Patrick Morgan said:
TWRP and root guide for 5S - (these steps will NOT unlock your bootloader) - these steps use a bypass method to install a recovery without unlocking bootloader. the command below is to allow flashing of partitions. bootloader status is still locked after process is complete.
Pretty short step by step to get twrp and Magisk if you want, on your phone. (Red Magic 5S)
Note. if you already have ADB and fastboot drivers installed, this folder will work as is. if not I put a installer in the folder too to install a mini adb fastboot setup. which needs windows driver signing turned off (windows 8-10) this can be done by going to advanced startup and choosing to boot without driver signing.
1. Download zip file attached or mirrored
2. Extract to root of C: drive
3. open CMD prompt with admin privileges
4. CD to the ADB folder you extracted.
5. Connect your device in Fastboot mode (power off. hold volume down +Power until it vibrates. then release power but continue to hold volume down)
6. Once in fastboot mode, with cable connected to the computer run these commands
7. fastboot oem nubia_unlock NUBIA_NX659J (this allows you to flash the device partitions)
8. fastboot flash recovery TWRP-xxx.img (xxx being the version number of the TWRP image you choose to install)
9. fastboot flash vbmeta vbmeta_skip.img
10. reboot to recovery (from the fastboot menu) it should load TWRP
11. if TWRP does not ask you to keep recovery from being over written, go to advanced and choose disable overwrite TWRP. to keep TWRP as your recovery, and stop the system from re writing the stock recovery.
12. Magisk zips files are in the folder. copy to device and flash through twrp. and install the apk after boot. done twrp and root.
More NOTES.
this must be done on a clean system. you need to wipe all data partitions to boot to system. re writing VBMETA causes encryption to break. until you reboot. so you lose everything Make a backup of your data partition on to your PC before doing anything.
its also recommended to have a update.zip of your current rom (which you can download from the post above), incase you need to reinstall the rom after flashing the new recovery or VBmeta.
OEM unlocking in the developer options is NOT needed. since you are not unlocking your bootloader. this step can be ignored.
I'll update this tutorial with newer steps if needed.
Thanks to those that created all these great tools.
@wzsx150 - for their version of TWRP
John Wu - for Magisk
@mslezak vbmeta_skip
If i've helped you root your device, please hit thanks.
Link ADBmini
MD5 for ADBfastbootmini.zip: e49f162080c6a2124c243716546ad710
Click to expand...
Click to collapse
where is the link of twrp.img
sansha1211 said:
where is the link of twrp.img
Click to expand...
Click to collapse
Patrick Morgan said:
Link ADBmini
MD5 for ADBfastbootmini.zip: e49f162080c6a2124c243716546ad710
Click to expand...
Click to collapse
that file called Link ADBmini has all you need
Is it ok to flash Eu rom to my NA/asia rom?
After reboot it ask me for verify pin and now I can't load the TWRP.img Partition volume Full error help me please
Rai972 said:
After reboot it ask me for verify pin and now I can't load the TWRP.img Partition volume Full error help me please
Click to expand...
Click to collapse
reboot to bootloader by... power off device -> press and hold volume down and power button until you see the logo -> connect device to your computer then do the steps 7 to 12
also once you are in TWRP make sure you ... this must be done on a clean system. you need to wipe all data partitions to boot to system. re writing VBMETA causes encryption to break. until you reboot. so you lose everything Make a backup of your data partition on to your PC before doing anything.
7. fastboot oem nubia_unlock NUBIA_NX659J (this allows you to flash the device partitions)
8. fastboot flash recovery TWRP-xxx.img (xxx being the version number of the TWRP image you choose to install)
9. fastboot flash vbmeta vbmeta_skip.img
10. reboot to recovery (from the fastboot menu) it should load TWRP
11. if TWRP does not ask you to keep recovery from being over written, go to advanced and choose disable overwrite TWRP. to keep TWRP as your recovery, and stop the system from re writing the stock recovery.
12. Magisk zips files are in the folder. copy to device and flash through twrp. and install the apk after boot. done twrp and root.
Rai972 said:
After reboot it ask me for verify pin and now I can't load the TWRP.img Partition volume Full error help me please
Click to expand...
Click to collapse
if you have not removed your pin before flashing any of the roms. it asks you for YOUR own pin that you made when you setup the phone. so use your own pin.
the process of rooting your device, clears a security partition. (the VBmeta partiton)
this deletes the encryption you had on your phone. so the devices partitions are unaccessable and need to be wiped before you can boot to system.
you need to clear data. all data. then check in TWRP file browser if your data partition is clear. .. if you see folders with random letters its not been formatted correctly.
so, in the wipe menu on TWRP you should go into advanced and change the partition type to ext4 then back to f2fs to clear the partition of data.
once your phone is clear you should be able to wipe cache and davik then reboot to system for it to start like a factory reset.
sansha1211 said:
esy re-lock bootloader fingrperint work fine without calibration
---------- Post added at 12:13 PM ---------- Previous post was at 12:08 PM ----------
where is the link of twrp.img
Click to expand...
Click to collapse
How should i relock the bootloader? Via cmd, command doesn't work. Should i lock also via developer options?
josehdx said:
How should i relock the bootloader? Via cmd, command doesn't work. Should i lock also via developer options?
Click to expand...
Click to collapse
adb devices
adb reboot bootloader
fastboot devices
fastboot flashing lock
josehdx said:
How should i relock the bootloader? Via cmd, command doesn't work. Should i lock also via developer options?
Click to expand...
Click to collapse
via cmd -- fastboot flashing lock
After i reboot in TWRP and disable replace TWRP, i install magisk from a USB otg, and then i wipe all data, then i reboot system but it keeps opening TWRP in every reboot, i had to install Stock Rom to have my phone back but without root, what im doing wrong?? thanks
Edit: now it worked, tried a few times and worked don't know what failed

Categories

Resources