yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Guides, News, & Discussion] leeshady19:
Android 6.0.1 and i am error "comand not allowed!" Can you guide me how to root not UB on android 6.0.1 ?
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
I HAVE revisited forums / posts about temp root 6.0.1 and found that temp root was only possible till android 5.01.

for android 6.01 , using dirty cow script you can obtain TA.img (drmKeys) then unlock Bootloader then ROOT then restore TA.IMG and finally relock your bootloader again!

https://xdaforums.com/z5-compact/help/root-e5823-6-0-1-32-2-0-305-t3503384
[Sony Xperia X Guides, News, & Discussion] acaii:
I have downgrade problem using flashtool v0.9.23.1..

He says 'No flash script found"

how I can fix that?

There are already have 3 file of 'fsc' in folder F51xx
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
you may rename the latest script to 34.3.fcs or the android 6.01 version!

and try again
[Sony Xperia X Guides, News, & Discussion] Codename_Falcon:
I followed the steps in the first post but ran into a problem.

- Backed up TA partition

- Upgraded to stock 34.3.A.0.217

- Unlocked bootloader

- Flashed F5121_boot_su_34.3.A.0.217.img via Flashtool in fastboot

Now the phone is displaying "your device has been unlocked and can't be trusted" message then gets stuck on Sony logo during boot. What am I doing wrong?

EDIT: I got around this problem.

How can I restore the DRM keys while keeping the phone rooted? When I restore the TA backup the phone boots to a prompt "To start Android enter your password." There was no password set.
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
1. the kernel given has drm fix, so when you reinstate TA.img it may give you bootloops. Since many users don't have TA.img backedup so the kernel given has drmfix. but for you I may have to create kernel having no drmfix since you want to restore TA.img. once you restore TA.img on kernel having securities off, the fone will boot rooted.

2. for the password thing. I think it something to do with FLASHING. if you don't wipe ALL options! if you don't wipe user data and master RESET is wiped! the inner partition encrypted by previous installed Stockrom cannot be mount by freshly installed stockrom (even if the versions are same) Once you boot sony encrypts the partition (see attached image)
[Sony Xperia X Guides, News, & Discussion] Codename_Falcon:
Mybe I am not understanding something. What is this DRMFIX? Is this supposed to allow all the DRM functions such as camera?
[Sony Xperia X Guides, News, & Discussion] Christ_art:
Mister I really want to root my f5122 with android 6.01 rom version 34.0.A.2.301

Can you help me to fix my kernel?
[Sony Xperia X Guides, News, & Discussion] eagleeyetom:
[MENTION=5613633]YasuHamed[/MENTION] A new version is up! Can you prepare a new kernel?

https://www.dropbox.com/s/gjo68n7l4yijq99/kernel_S1-SW-LIVE-D553-PID1-0006-MMC.sin?dl=0
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
seems like you have NEW device~

1. by DIRTY COW script~ EXTRACT TA.IMG (DRM KEYS) [ VERY IMPORTANT]

https://xdaforums.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236

just enable usb debugging under SETTING>> DEVELOPER OPTIONS

(if developer options arent visible, goto about phone and TAP 8 times on build number in under 3 seconds) it will enable Developer options in Main Setting Menu

- extract the TA BACKUP zip on desktop and connect your RUNNING X via USB cable! ,

- run the cmd file and give permission on any POPUP comes on your Xperia X,

the SCRIPT will EXTRACT TA.IMG in the same unzipped folder! , // save it on google could, backup on multiple cloud locations , email yourself this file! , this is your ONE TIME UNIQUE keys! if lost! can never be retrieved again!

once you do it! plz contact me! i will guid you!

yasuhamed @ gmail.com
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
https://xdaforums.com/xperia-x/development/rooted-kernels-f5121-f5122-34-3-0-224-8-t3669793

done sir

I am using the same kernel which i have put on the cloud, f5122

however updatin to .224 via flashtool via win7pro took LONGER than usual time! , TA Partition Headers weren't closing! and eventually froze!

softBricked device twice! , then flashed via Windows 10 / 64bit from different machine!

however! please note!

the kernels are already rooted!

after FLASHING xperia X, if you DONT boot, and FLASH RECOVERY twrp3.1, via adb, adn boot X by pressing power+volumeDOWN key until PINK LED, you can FLASH kcal module! (which should be in your sd card, or use otg cable)

with Kcal you can use your device in gray scale - and it will extend your battery life to amazing level! since X has poor battery!
[Sony Xperia X Guides, News, & Discussion] eagleeyetom:
Sweet, thank you! I'm using your clean version since I like Magisk a lot :) Can you upload a clean version too?
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
done

https://mega.nz/#F!2EQniYoZ!0Rhj15GN7nSRmrTFMC8smg
[Sony Xperia X Guides, News, & Discussion] Habacuck:
Root

Good day.

I have little time to buy my xperia X and the first thing I wanted to investigate was if it is possible to make him root.

Is it possible to do the process if I am in compilation 34.2.A.2.69?

And in the case of being from Mexico what firmware could I use?
[Sony Xperia X Guides, News, & Discussion] eagleeyetom:
You can use root on every firmware, but it's recommended to backup your TA partition. You can use pretty much every version of firmware. They differ a little.
[Sony Xperia X Guides, News, & Discussion] Habacuck:
TA partition do you mean the DRM keys support ?, to make that backup first occupy download android 6.0?

And is there any inconvenience when releasing the bootloader?
[Sony Xperia X Guides, News, & Discussion] eagleeyetom:
Yes, you need to be on Android 6.0 to backup that partition. The only inconvenience I noticed is a warning that your bootloader is unlocked after turning on the device. Just use one of the kernels from this thread and forget about any issues :)
[Sony Xperia X Guides, News, & Discussion] Habacuck:
Ok thanks just note that to download to 6.0 you need the firmware which I did not find specifically for my region.

Is there any inconvenience if you install a firmware from another region?

Or do you know of a page where you can find the firmware of android 6?
[Sony Xperia X Guides, News, & Discussion] eagleeyetom:
Not really. I had a firmware for Central Europe, UK and Germany installed. Faced no issues. The only difference was an NFC indicator on the status bar. You can use Flashtool or Xperiasite to get an FTF.
[Sony Xperia X Guides, News, & Discussion] Habacuck:
I take a little time but finally I succeed, thanks for the help :)

By any chance you know how I can install the xposed installer?
[Sony Xperia X Guides, News, & Discussion] eagleeyetom:
Congrats!

Not a big fan of unofficial versions, but you can try to test this out.
[Sony Xperia X Guides, News, & Discussion] Habacuck:
Thank you for now I could install it successfully, hopefully no faults :)
[Sony Xperia X Guides, News, & Discussion] Beausys:
Modified Kernel required Sony Xperia X 34.3.A.0.228

Can you please provide Modified Kernel required Sony Xperia X 34.3.A.0.228

Many thanks
[Sony Xperia X Guides, News, & Discussion] Zetasjj:
Kernel for F5121 34.3.A.0.228?
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
please sir check this link

https://mega.nz/#F!aZAljazZ!zNLnLxH6flBxUsaTb167Jw
[Sony Xperia X Guides, News, & Discussion] hhjadeja007:
Kernel for 34.3.A.0.238 please
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
https://xdaforums.com/xperia-x/development/rooted-kernels-f5121-f5122-34-3-0-238-t3683968
[Sony Xperia X Guides, News, & Discussion] betabeta1:
Good Day sir,

I have F5321 (x compact) with upgraded version 34.3.A.0.238 (In central Eu).I already Extracted DRM keys via

DIRTYCOW script (from android F5321_34.1.A.3.22_R5B) - So I have a TA image. (Is it as good, if I extracted from 6.01?)

I really want to root my f532 with this android ROM version

Can you modify 34.3.A.0.238 for the new firmware kernel? with drm fix... ---for x compact?

please
[Sony Xperia X Guides, News, & Discussion] betabeta1:
DRM Fix ?

I heard, that DRM Fix, is about ignoring some errors which are showed when using stock roms and an unlocked device, and the Camera quality is not really the same, as the original...

If I flash the mentioned "4a. FLASHING STOCK MODIFIED kernel having SUPERSU" then the TA partition will not be restored.

But, If I restore the TA partition, from the saved DRM keys, in order to restore the camera, then the phone must be with unlocked bootloader, without root. = Camera will be the same, but no rooted phone ... ?
[Sony Xperia X Guides, News, & Discussion] M1chiel:
If you restore your TA your bootloader will be locked and you'll have to flash a stock rom to be able to boot into system.
[Sony Xperia X Guides, News, & Discussion] betabeta1:
"drm fix" will not provide the same camera quality in low light pictures?

Yes, but if the TA will not be restored, I think the "drm fix" will not provide the same camera quality in low light, as the untouched phone with unlocked bootloader.

That is my dilemma, because I would like the camera quality remain the same...
[Sony Xperia X Guides, News, & Discussion] xperiam123:
I flashed twrp and now when i power my phone on,the purple led comes automatically and it goes straight to twrp. I cant boot into android what do i do please help??
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
sorry for the late reply!

its very good news that you have extracted TA img

keep it save, send yourself copy, take backup on cloud storage (google drive and/or mega etc)

can you send me the kernel of 34.3.A.0.238 build?

from the 26gb of ftf file downloaded via xperifirm, open the ftf using 7zip and send me the kernel.sin

yasuhamed@gmail.com

thank! :)
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
DRM keys , digital rights management keys has license information for some of your sony APPS, such as xreality engine, sound bass and 4k recording in some cases/devices. if these keys are missing then premium features of such apps wont work

fido keys are google keys for identification (loging in to google accounts)

both keys are stored in certain block in TRIM AREA partition in sony drive, once u boot unlock, xperias are design to wipe whole TA partition and userdata to protect user identity. Sony thinks the device has been stolen and some one is trying to hack your identity and data.

since you have EXTRACTED TA.img, it has drmkeys info and fido keys provisioned in side.

usually with drm fix kernel you don't need to RESTORE TA.IMG. one day when this device goes to android 8 and there is no known DRMfix for android O kernel, after having root access, You must RESTORE TA.img using adb command and RELOCK you bootloader in order to

1. have rooting on android 8

2. premium apps to work fine.

so its always best to have TA.img

on the other angle, since you purchases xperia hardware its your RIGHT to have both HARDWARE and software keys! which sony for some reason never bother to give its customers and once TA is lost there is no way to recover, you may have to buy new mobile or replace motherboard

remember, your XPERIA X COMPACT TA.img CANNOT, and i repeat CANNOT be put in to another XPERIA X COMPACT device! (or vice versa) if you change a bit of your TA.img, you can say GOODBYE to your device. it will never boot!

for sir [MENTION=7244877]M1chiel[/MENTION] , the above applies to you too sir
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
how did you flash? what command you use?
[Sony Xperia X Guides, News, & Discussion] M1chiel:
Thanks for the explanation; I had overlooked he wanted to restore the TA from another phone.
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
TA.img is EXLCUSIVE to motherboard level and hence cannot be shared to other devices
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
important notes for Xperia X owners / based on my personal experience with F5122 / 64GB device

(Applies to all updates on Android N ) (so far)

after following all the steps mentioned in OT, I noticed that

1. flashing SuperSU via twrp or

2. Flashing Magisk via twrp

3. IMPROVES battery life to some extent specially on build 34.3.A.0.244 (11nov2017)

however (keep in mind that there is no official twrp3.1.1 or any other available) so we are using MODIFIED twrp working on xperia X

4. twrp alters SONY partitions and it gives workable 20GB only to user which is OKAY if....

5. ....you have 32gb device, twrp will make /system partition 12gb and will give user again 20gb free fabric to use! BUT.....

6..... it does the same for 64gb variant also, twrp give free fabric 20gb to user and keeps /system to 40gb :(

so what is the way to use twrp on 64gb devices in order to flash mods?

what i did is

7 after flashing ROM

8. I booted my device and let sony kernel make partitions and internal storage encrypted,

9. later, I switched off the device and flashed the stock modified kernel and then

10. flashed twrp via adb

11. i went in to twrp, it give CANNOT MOUNT INTERNAL STORAGE error, I still flashed

a, superSU or magisk

b, FSC thermel Xperia X v1.3 values .zip for better temperature control

12. this time twrp did show me workable fabric to 48GB and could not alter the partitions.

I booted my device in to system and everything was exactly the way I wanted to be!
[Sony Xperia X Guides, News, & Discussion] nitro32:
Hello. I have an F5121 currently running 34.3.A.0.244 flasshed via flashtool using the instructions at the beginning of this thread. On the stock kernel and ROM everything boots up and works fine. However, if I try flashing the rooted kernel (tried both F5122_34.3.A.0.244_clean.img and F5122_34.3.A.0.244__su.img), my phone no longer boots. It simply hangs while displaying the Sony logo and never proceeds past that point.

I've tried this multiple times at this point, after multiple complete re-flashes of the stock ROM firmware, and always end up with the same result. I'm pretty sure I'm following the right process (pasted below), but can't for the life of me get it to boot. Any ideas what I might be doing wrong?

Thanks.

-----

RUN FLASHTOOL

click the THUNDER icon on flashtool

select FASTBOOT MODE

click "select kernel to flash"

connect device by pressing volume up key as per instructions by FLASHTOOL / device will connected to FASTBOOT MODE

FlashTool then, will ask .img file location. point it to the .img file. and your kernel will be flashed in 1 second

BOOT your device - it will wakeup ROOTED

-----
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
of-course it will hang

your device is f5121 and you are flashing kernel of f5122 :(

use these kernels

https://mega.nz/#F!CBhRyR7Z!L5uo_GWiCzXcNWQaZGJ9bQ

the CLEAN one is without supersu, so you will have to flash twrp 3.1.1 and flash su or magisk etc via twrp

best of luck and plz do let me know :)
[Sony Xperia X Guides, News, & Discussion] nitro32:
woops. Yes, flashing the wrong kernel wouldn't definitely cause problems. :) Unfortunately, though, that was just a copy/paste mistake. I do have the F5121 kernels downloaded as well and have the exact same problem I described with them. Just to be 100% certain I wasn't doing something silly I tried flashing both of the F5121 kernels this morning and still got the same behavior I previously described. Still can't figure out what I'm doing wrong, though.

Here's the process I'm following, retyping myself so you can verify whether I'm missing something:

Starting with the clean kernel:

1. Since my phone was unbootable from prior flash attempt, I first used Flashtool to reinstall 34.3.A.0.244 (Customized US, if that matters). I did not enable any of the wipe or reset options since I'm already running that version.

2. Verified my phone would boot; shut it down after the boot process completed

3. Launched flashtool and clicked the 'Flash device' icon

4. Select Fastboot mode

5. Clicked select kernel to flash

6. Selected F5121_34.3.A.0.244_clean.img (md5sum dc8423f01fc7b2ce7b4fa9efbf92f1a0)

7. Connected my device using the given instructions (vol. up + usb connect)

8. Verified apparently successful flash in flashtool log

9. Disconnected

10. Closed flashtool and re-connected in fastboot mode

11. Flashed twrp-3.1.1-suzu-2017.08.22.img (md5sum 33877ce48678edff6e9245f291aefe55) using the fastboot utility

12. Disconnected

13. Booted into recovery using vol. down + power

14. When prompted by TWRP, left device in read-only mode

15. Installed Magisk-v14.0.zip

16. Rebooted

17. ...hang at Sony logo

After the above failed, I tried again using the SU kernel. I exactly repeated steps 1-9, this time flashing F5121_34.3.A.0.244_su.img (md5sum 9fcab23b5d66d043732c2cf62ccab5bf) instead. Upon rebooting after that (with no TWRP flash) it still hung at the Sony logo.

Any ideas what I might be doing wrong? Am I maybe supposed to do something with one of the various other files in the mega directory you linked to?

Thanks. I really appreciate your assistance with this, not to mention all the work you've obviously put into developing this.
[Sony Xperia X Guides, News, & Discussion] Ertlek:
Question about firmware update

Hello! Could you please tell me if it is possible to update the firmware and kernel without wipe? I rooted my device with your instruction and there is a reminder about OTA update. I see that you have a kernel for that newer firmware but I doubt how I can update. I understand that it is possible to back up with titanium backup or something, but maybe there is more comfortable way to have up to date firmware?
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
1. Yes, if you don't TICK the options under WIPE area (while Flashing) then you can flash firmware without wiping any data (see UPLOADED SCREEN SHOT for you.

2. OTA will always prompt you for new updates, but since boot is unlocked! , it will fail if you try to apply

3. dear, on flashtool, click xperifirm icon, browse SUZU F5122 (or 5121) select you country and build, (becareful) and download (SEE SCREENSHOT), once downloaded, CLOSE xperifirm and FLASHTOOL will start preparing FTF file, it will ask you something about FSC script, click YES. , later that same ftf file can be selected (image1) and you can flash your mobile)

plz do contact me for guidance! yasuhamed @ gmail.com :)
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
sorry for late reply! , did you solve this issue? seems like you are flashing wrong kernel!
[Sony Xperia X Guides, News, & Discussion] siggi77:
Hi, in both package is not the kernel.

It´s missed F5121_34.3.A.0.252_su.img,

F5121_34.3.A.0.252_clean.img is in the package and the other´s

Best Regards

Siggi
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
i kept it simple!

since OREO is coming and SuperSU is not supported in oreo for XZ, hence this time i did not create anykernel with SU embeded

flash the provided kernel and boot in to twrp and flash Magisk, later install magisk manager from Playstore!
[Sony Xperia X Guides, News, & Discussion] siggi77:
Hi, ok Thx

But where can i find the provided kernel? Because in the package isn´t a provided kernel or it´s a other name?

And need i twrp and Magisk or not?

Sorry for my english...

Siggi
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
PUT MAGISK IN YOUR SD CARD

FLASH LATEST ROM / BOOT AND SIGN IN TO GOOGLE...

THEN SHUTDOWN DEVICE

if your Xperia X is F5122 DUAL 64/32GB VARIANTS AT https://mega.nz/#F!iJYAnYpJ!jj5hxcKFicubHAhEqBUyAw

and

if your device is F5121 64/32GB VARIANTS, AT https://mega.nz/#F!HVRzzRbS!B5Gkes6h2iBY2S9QGfDJbw

the given img file is the Kernel (for example F5122_34.3.A.0.252_CLEAN.img ) of (F5121_34.3.A.0.252_CLEAN.img )

-flash the kernel using FLASHTOOL

then

-paste twrp-3.1.1-suzu-2017.08.22.img file in C:\Program Files\Minimal ADB and Fastboot and run fastboot, flash twrp (twrp-3.1.1-suzu-2017.08.22.img)

fastboot flash recovery twrp-3.1.1-suzu-2017.08.22.img

---GOTO twrp, (volume down + power button) keep it pressed, until to see twrp

-keep system readonly

-flash magisk

-poweroff device from twrp

[optional] if you don't want to keep twrp for saftey purposes , connect your device is fastboot mode and type

fastboot erase /recovery

reboot
[Sony Xperia X Guides, News, & Discussion] siggi77:
Hi,

so thx for your post i have it.

It´s the first time for me to flash magisk

Thanks

Siggi
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
you are welcome dear!

after flashing the magisk

do install magisk manager from playstore!

some member claims that they can't see magisk even after flashing! so additional step may be required
[Sony Xperia X Guides, News, & Discussion] siggi77:
Hi,

Yes i founded in the app drawer (magisk)

thx siggi
[Sony Xperia X Guides, News, & Discussion] venomxob:
I didn't perform a full wipe and excluded fotakernel while updating to keep TWRP. Everything is as it should. So what's the point of these steps?
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
then you better not tick the checkboxes under MISC TA because if you reset globally, the internal storage data will become inaccessible and while boot you will be asked for password

- to make things simpler i always recommend to take backup and wipe clean.
[Sony Xperia X Guides, News, & Discussion] venomxob:
As I said I wanted to keep my phone and data intact, I think that none of us would like to waste time on configuring things all over again. I didn't wipe anything and still it works like a charm. It saved me a lot of time. Besides it's recommended by you, not compulsory. The post doesn't say anything like it. Nonetheless great work. Keep it up.
[Sony Xperia X Guides, News, & Discussion] YasuHamed:
yes sir it is not compulsory but recommended for the following reason which i have experienced when clean/wipe flashing was not done

1. higher battery drainage

2. freezing screens (sometimes)

3. higher Ram usage

4 overheating

5. twrp unable to mount partition (if misc TA) is selected.

based on my personal experiences with two devices. I always wipe clean data and do master reset.
[Sony Xperia X Guides, News, & Discussion] nitro32:
Never could get this to work and switched to OmniROM for a while, but had some completely unrelated issues with that and now I'm back to stock. This time I flashed the EE UK firmware instead of Customized US so I could get the fingerprint sensor working, and this time around flashing your F5121_34.3.A.0.252_CLEAN.img worked perfectly. Still don't know what I couldn't get the previous version running properly, but I'm happy as can be now. :)
[Sony Xperia X Guides, News, & Discussion] nitro32:
Hello. After reporting that everything was working great for me, I figured I'd cross the last thing off my todo list and re-flash my backed up TA partition. I was able to do that by following this relatively simple process, though I had to flash the stock firmware and completely reset. I tried booting without that, and it gave me an immediate hard error, stating something along the lines of "Your device failed verification and will be shutdown in 5 seconds." Reflashing stock got me past that and I'm up and running again.

However...

The whole point of my hacking is that I want root on my phone, so I immediately tried to root it again, but now I'm unable. When using flashtool to flash the kernel, I get a permission denied error. Tried a couple times with the same result.

My speculation is that I essentially re-locked the bootloader after reflashing my TA partition, but I didn't understand that to be a side-effect from the info I've been reading. Can anyone please confirm this? and more directly, should I be able to flash a root kernel with my original TA partition flashed? or will I need to unlock it again in order to root?

Appreciate any guidance. Thanks.