yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 General] chinmoy32:
"9.after patching your kernel with your own TA back up just power down your phone.press and hold volume up while plugging USB cable to PC to go to fastboot mode."

could you be more specific about how to patch the kernel with my own E6683's TA ??

I have searched and read almost all threads and topic i could find in XDA about this and still could not get it quite right.

my current status : I patched the kernel with RIC OFF, DM VERITY OFF, SuperSU installed, Xposed Installed, Busybox Installed, DRM Fix installed.

Flashed the phone with stock .253 MM FTF then flashed the patched kernel via fastboot, then flash the TA.FTF generated from the TA backup via flash_dk.cmd command

status: it boots properly, have root, but modifying anything in root partition causes bootloop , no xposed framework is present among the apps.

Please tell me what am i doing wrong or what am i supposed to do ???

---------- Post added at 02:40 AM ---------- Previous post was at 02:37 AM ----------

could you be more specific about how to patch the kernel with my own E6683's TA ??

I have searched and read almost all threads and topic i could find in XDA about this and still could not get it quite right.

my current status : I patched the kernel with RIC OFF, DM VERITY OFF, SuperSU installed, Xposed Installed, Busybox Installed, DRM Fix installed.

Flashed the phone with stock .253 MM FTF then flashed the patched kernel via fastboot, then flash the TA.FTF generated from the TA backup via flash_dk.cmd command

status: it boots properly, have root, but modifying anything in root partition causes bootloop , no xposed framework is present among the apps.

Please tell me what am i doing wrong or what am i supposed to do ???
[Xperia Z5 General] Allek84:
Is there anyway to some find solution for root for those who havent abbility to unlocking BL?

Sent from Sony Xperia Z2
[Xperia Z5 General] josephnero:
Sadly no.at least for now
[Xperia Z5 General] josephnero:
[MENTION=5191252]chinmoy32[/MENTION] that's DM varity check. so the patch has failed
[Xperia Z5 General] JoshuaWebb:
Thanks, followed this guide about two weeks ago and it's been glorious ever since.
[Xperia Z5 General] arshia.sunboy:
hi.I have TA backup with Iovyroot in lolipop build 170 and unlocked bootloader and rooted MM rom.

I want to restore DRM and full relock bootloader for sale my phone.

downgrade to stock android 5 build 170 but Iovyroot cant detect TA.img

and say:

Please specify a TA image to restore

Press any key to continue

ta file is here.even drag ta file to restore but problem still here

Its my problem.please help
[Xperia Z5 General] josephnero:
Try the old method if it doesn't work

https://xdaforums.com/showthread.php?t=2292598
[Xperia Z5 General] SynGreis:
IS there a way to do this if bootloader unlocked allowed: no. How can i get around this?
[Xperia Z5 General] josephnero:
@ SynGreis

sadly no.at least not for now
[Xperia Z5 General] jets76:
del
[Xperia Z5 General] bigvern79:
root

is there a way to root my z5 without unlocking bootloader as bootloader unlock is not allowed i have tried nearly all the one click root apps all to fail even via laptop any help would be nice thanks
[Xperia Z5 General] Devo7v:
No.
[Xperia Z5 General] thunderel05:
I am sorry if I get out off topic.

I want to ask, is it possible to root Z5, without changing the stock rom?

The purpose of rooting in my case is just to get rid of ad.

Thanks
[Xperia Z5 General] Devo7v:
You can root any version of Android on the Z5 as long as your bootloader is unlocked. If you want to backup your TA keys before unlocking your bootloader then you're going to have to downgrade your firmware and follow the instructions in the OP. If you don't care about your TA keys or already have them, then you can simply unlock your bootloader on your current firmware. ****WHEN YOU UNLOCK YOUR BOOTLOADER IT WILL WIPE ALL DATA ON YOUR PHONE.**** I hope this helps.
[Xperia Z5 General] Raihan14z:
whether the way it could be used for lastest firmware [N] on z5?
[Xperia Z5 General] mobiware:
You can root Nougat. There are several threads to do that. Here's one of them:

https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605
[Xperia Z5 General] Raihan14z:
How to rooting Nougat with step by step?

Newbie user
[Xperia Z5 General] zer0se7en:
Is there a way to root without unlocking the bootloader? Like what Towelroot offered way back 2014.

Sorry for my noob questions. I'm still on my way back to getting an Xperia device. Last time I had one was when Xperia ZL was in production. Shifted to Nexus 5 and now Nexus 6P and OnePlus X. As we all knew already, these devices can easily get root. Gonna sell my OnePlus X and get myself a Z5 next month. I want to be prepared.

I'm using a Mac by the way.

And I just wanna use Greenify and ForceDoze app properly. It's why I need to root.

Thanks.
[Xperia Z5 General] MysteryIII:
This Root Methods worked only due to an Exploit in Android KitKat. No later Android Version has it. But there is a method to backup TA partition by downgrading to KitKat. As far as I know, restoring backup will result in locked bootloader and with Stock ROM installed it should be as if you never rooted the phone. Please correct me if I'm wrong.
[Xperia Z5 General] zer0se7en:
Oh yeah. Towelroot on KitKat was a very easy method for rooting. Just install an apk, press a button then boom.... Rooted.

Guess I have to learn new methods now for rooting Xperia on Nougat. Good luck to me. Hope to find the time

Thanks.
[Xperia Z5 General] tge101:
Is this still the way to do it with the latest Nougat?
[Xperia Z5 General] zer0se7en:
I would like to know too. Just got me a Z5 last friday.
[Xperia Z5 General] Superrman:
For what reason i need DRM?

i just cant unlock BT> flash Recovery > kernel > root?

for successful root i need DRM\TA? cause its make the process ten time slower

( im not going to unroot) if its the only reason
[Xperia Z5 General] quantn:
Can i use for z5 docomo so-01h?
[Xperia Z5 General] ouzqan:
Try it. Propably works.
[Xperia Z5 General] PioneerSeeker:
To be very honest I didn't like z5 in comparison to z3.

There are more beautiful custom roms present here in xda app for z3 than z5.

I would like to revert back on z3 and seriously thinking about it....
[Xperia Z5 General] Sci-Man85:
This command doesn't work for me. Is changed?

Need help :o
[Xperia Z5 General] josephnero:
It should work. Is your image file called boot.img?if not just replace boot with the name of the file or just rename it to boot.img
[Xperia Z5 General] IBootU:
Hi Guys, I'm planning to do some rooting to my SOV32 unit. It's currently already flashed with a Global Rom showing Model E6653. It's also locked. The folks who sold me the phone managed to unroot it .

So the question is, Could SOV32 be rooted after it's flashed to global rom. Will it brick and cause any other issues after rooted.

Reason to root.

-Improve Overheat issues. There're some mods here that's capable of doing it and increase battery performance.

-Some adjustments to the kernel of the sound for the bottom speakers of the Z5.

-Also some color adjustment to make it more yellowish to be less blue light so it doesn't dmg my eyes.

After that, i plan to unroot the device.

Where should i start.?
[Xperia Z5 General] josephnero:
That would be awesome.thanks for testing mate
[Xperia Z5 General] jackq:
checked and i have status "Bootloader unlock allowed : Yes"

and flashed again patched kernel via adb
[Xperia Z5 General] korom42:
I am new to Sony m I didn't know about the DRM story when I unlocked my Z5

I wish this was posted before what I did , now I'm using this patch but if I reflash stock firmware , it will be useless

http://xdaforums.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
[Xperia Z5 General] jugglerpl:
You can flash when you have Bootloader unlock allowed: Yes?? :o very strange

Is it True, that is mean that we shouldn't unlock bootloader once again

Wysłane z mojego E6653 przy użyciu Tapatalka
[Xperia Z5 General] josephnero:
Sadly yes.And DRM is specific to every handset
[Xperia Z5 General] josephnero:
I was goin to try myself but you did it.Thanks for confirming buddy.This is awesome news
[Xperia Z5 General] indianmeister:
Dam I just realized I have the "Unlock bootloader allowed: no" fk operators
[Xperia Z5 General] dodo15:
Hi Guys,do you thinks this method will work for Z5premium dual?:confused:
[Xperia Z5 General] josephnero:
yes.It should work for any Z5 series device
[Xperia Z5 General] gamer649:
For step 8, would I be able to patch the androplus kernel with my DRM keys or not? I'd rather use that kernel that the stock one.
[Xperia Z5 General] josephnero:
I don't think so.It may be possible but you have to check with androplus kernel dev just to make sure
[Xperia Z5 General] dodo15:
Thanks l will test it. :good:
[Xperia Z5 General] 4RM4N1:
Well I tried to Unlock my Phone but the Flashtool says all the time that the drivers are not installed. When I try to install them if fails. -.-

Using Windows 10 64 Bit.
[Xperia Z5 General] josephnero:
Are you using flashtool to open your bootloader?
[Xperia Z5 General] jugglerpl:
You must disable digital signatures to install drivers on Windows 10
[Xperia Z5 General] 4RM4N1:
Well I tried. :)

Oh, didn't knew that? Do you maybe have a YouTube Link here?

EDIT: Nevermond found it and also installing them atm
[Xperia Z5 General] 4RM4N1:
I guess I did something wrong... ?

and also after relocking the Bootloader my phone doesn't start anymore.
[Xperia Z5 General] josephnero:
@ 4RM4N1

Are you sure you patched your Kernel with success?
[Xperia Z5 General] 4RM4N1:
Yes I am [MENTION=3844251]josephnero[/MENTION]
[Xperia Z5 General] josephnero:
That's strange.Should have no problem now.Try reflashing kernel.BTW how did you get tool to work?
[Xperia Z5 General] baris27:
deleted
[Xperia Z5 General] Bautinho88:
my Bootloader is unlocked already. So can I flash 185 without any wipes and then kernel, TWRP, drm restore and then root the z5?
[Xperia Z5 General] butilities:
HI, I am stuck at step 8. I am using rootkernel v4.0 and run rootkernel <kernel image> <new kernel image>. I have my TA.img. How would I patch the kernel with my TA backup. Thank you in advance
[Xperia Z5 General] frostmore:
step 9 is a big "for real" moment.

how does it work? you patched the kernel and then restore TA locking the bootloader with modified kernel?

i did that for my Z3 tablet given that i am on stock kernel (unmodified,no dm-verity) but i have not heard that its possible on the z5 family.

can you enter the following code *#*#7378423#*#* into the dialer > service test> security?

there should be no errors should what you claim to be true. not that i am doubting you but this is the first time i am hearing its possible on the z5 and i would also like to do the same for my z5p.

Thanks in advance!
[Xperia Z5 General] josephnero:
and after you enter the command what does happen?
[Xperia Z5 General] josephnero:
@ frostmore

please check page 1 post number 5 and number 10 for the screenshot
[Xperia Z5 General] butilities:
it create a new kernel file.

the command i run is:

rootkernel.cmd kernel.elf new_kernel.elf

It creates the file new_kernel.elf successfully. However, how would I patch the new_kernel.elf with my TA.img backup file. Thank you
[Xperia Z5 General] josephnero:
rootkernel <kernel.elf> <new kernel image> [<TA-xxxxxx.img>]
[Xperia Z5 General] butilities:
Works like charm! thank you so much!
[Xperia Z5 General] josephnero:
No problem friend.always happy to help :)
[Xperia Z5 General] Lu Soe:
what is Fido-keys?explain me and why it show errors

---------- Post added at 04:41 PM ---------- Previous post was at 04:34 PM ----------

Hello friends

Help me please,i need E6683(32.0.A.6.152) 1299-0224 singapore firmware to root.please search and give a link....thank you
[Xperia Z5 General] josephnero:
@ Lu Soe why don't you use xperiafirm?

http://www.xperiablog.net/2016/03/0...w-receiving-android-marshmallow-32-1-a-1-163/

Here you can get India generic.Should be exactly like singapore
[Xperia Z5 General] josephnero:
Sorry I missed your post earlier.Just flash patched kernel after flashing FTF without kernel then reboot to recovery again and flash SUper SU
[Xperia Z5 General] Bautinho88:
You mean nothing ticked at wipe and exclude kernel? No other point should be ticked there?
[Xperia Z5 General] josephnero:
Wipe is optional. just exclude kernel so you can keep patch and flash your kernel afterwards

after flashing FTF don't turn on your phone just put it in fastboot and flash new patched kernel
[Xperia Z5 General] 4RM4N1:
and don't forget to flash the DK.ftf via flashtool or you receive my Screenshot that not all keys are active. I forgot that and now is everything okay.
[Xperia Z5 General] Bautinho88:
Dk.ftf?
[Xperia Z5 General] honam1021:
Doesn't repacking the kernel invalidates its RSA signature, or this is not the case with Z5? (I'm rooted with UB)
[Xperia Z5 General] db93:
Thanks for this guide. Did everything as described and now I'm rooted with locked BL :)

You have build and flash this file while patching your kernel. As in the guide for patching your kernel. Should be the last step iirc.

The rootkernel tool creates a flashable .ftf file with your TA information, which is supposed to be flashed with Flashtool.
[Xperia Z5 General] Bautinho88:
I followed this guide

http://xdaforums.com/xperia-z5/general/guide-sony-xperia-z5-unlock-root-tweaks-t3298224

So my original drm keys are lost already.
[Xperia Z5 General] frostmore:
if you get an answer,let me know. i am also interested to know.

some here claim to have locked bootloader on modified kernel with TA keys restored.

there is even a screenshot of the security test to show everything is ok. (marlin keys and stuff all showing ok)
[Xperia Z5 General] Lu Soe:
Please tell and explain me about "Fido_keys"and why it show "not provisoned,suntory error"... i want to know this error because i downgrade and backup TA-keys in z5 ...so i want to know exactly....thank you and please

Reply the answer...:) :)
[Xperia Z5 General] db93:
If you forget to flash your TA files you will get this error.

If you flash/patch your TA files everything should look as in my attachment.
[Xperia Z5 General] Lu Soe:
Thank you friend...my device is z5 dual(E6683),will it ok?...

The owner who has this model,please tell your experience so

I am a new user.thank you for all
[Xperia Z5 General] db93:
I can't guarantee it, as I'm using the E6653, but it should work.
[Xperia Z5 General] jugglerpl:
Can someone check does camera addons for example Style Portrait work after rooting? I have problem with these applications.

Wysłane z mojego E6653 przy użyciu Tapatalka
[Xperia Z5 General] zate27:
Thank you for this tutorial. I'm new to Sony devices and this really helped me out it's like a package of all those threads. Quick and simple.
[Xperia Z5 General] ksc6000:
I don't get it, for some reason when i flash the Superuser zip, it fails in TWRP. What am I doing wrong?
[Xperia Z5 General] josephnero:
Working fine here mate. I'll restart and double check

Edit:I have some FCs too
[Xperia Z5 General] josephnero:
Don't worry I also have imported dual version
[Xperia Z5 General] josephnero:
Redownload the latest zip and try again
[Xperia Z5 General] Barthlon:
it's impossible to have root and locked bl, right? despite what is said here.
[Xperia Z5 General] josephnero:
So we are playing a game here or what? man ....
[Xperia Z5 General] Barthlon:
so both the guys who figured out the drm patch and ta backup are wrong?
[Xperia Z5 General] josephnero:
Don't kno what are you talking about but I'll upload my screen shots
[Xperia Z5 General] Barthlon:
http://xdaforums.com/showthread.php?t=3301605

and

http://xdaforums.com/showthread.php?t=3349597

according to both, it is not possible to have root and a locked bootloader. maybe the info shows locked, but the bl is unlocked anyways?
[Xperia Z5 General] josephnero:
It can't be rooted without the patch. that script turns off DM varity and RIC protection.We unlock BL and Relock it in the end
[Xperia Z5 General] Barthlon:
i made a typo. i ment it's impossible to have root and a locked bootloader. ofcourse it's possible to have root and an ul bootloader. guess that's what you're having...
[Xperia Z5 General] josephnero:
Sorry for asking but is this your first Sony phone?

Did you check the screen shot of my bootloader status?
[Xperia Z5 General] Barthlon:
instead of trying to convince me, did you read the op of both threads? i have no idea what i'm talking about, both those guys sure do ;)
[Xperia Z5 General] josephnero:
It seems you don't know what are you even discussing.I'm not forcing you to use this method.Your phone your call.I bid you a good day :good:
[Xperia Z5 General] GeramanX:
Noob question here guys:

I just want to follow this method and root my phone so I can get rid of annoying adds with AdAway or something.

That's the only reason I have rooted every single Xperia I had for God's sake.

Anyone here can give it a try and let us know if it worked?

Thank you very much for your time.
[Xperia Z5 General] viperc:
Is this working for Z5 Premium (E6853)?:D
[Xperia Z5 General] jacker60:
Will try this one my company unlocks my phone and the bootloader become to yes
[Xperia Z5 General] frostmore:
actually i agree with you.

the root kernel program already stated very clearly the TA keys are retrived from another location.in other words,its a work around (even if you have your TA keys backed up.)

if you really want to know if you have a locked bootloader with root, restore TA using backup TA program,that program will lock bootloader once you restore TA.and you will know once and for all it you can have a locked bootloader with root. no need for screen shots.

(http://xdaforums.com/showthread.php?t=2292598)
[Xperia Z5 General] CaeLum764:
I've just tested it, and it seems that after restoring ta using the backup ta program, the phone will be unable to boot. But flashing a new stock rom will fix the issue and relock the bootloader. I'm not really sure how to check whether my TA partition is restored but my root was gone, xreality was working and my boot loader status says "Bootloader unlock allowed: yes"
[Xperia Z5 General] Barthlon:
this method works, no problems there!

i just think it's impossible to have root and a locked bootloader at the same time.. OP states otherwise.

but that doesn't matter: you can restore TA and relock bootloader any time you want!
[Xperia Z5 General] frostmore:
you can check it by keying these codes in dailer *#*#7378423#*#* -> Service tests -> security

once you tap security, the screen will show you all the keys are ok including marlin.

if you are in stock kernel with locked bootloader,then for sure if all these statuses are ok,your TA partition is restored in locked bootloader.

the author of rootkernel already stated that the status in locked bootloader shows ok is due to the workaround,literally,you are still on unlocked bootloader and its a false positive on the security keys.

backup TA program restoration of TA partition locks bootloader,if you are on older sony devices without dm-verity, the device can still boot with locked bootloader,on newer devices,locking bootloader would mean you need a signed kernel by sony,any modification will mean your device cannot boot unless on stock unmodified...i.e no root,no modification to system partition..so unless you have accessto sony's signature....

thanks for testing it out.saved me a few hours of testing on my device.
[Xperia Z5 General] CaeLum764:
I'm sorry, I reverted back already. Maybe will test it next time
[Xperia Z5 General] Barthlon:
thanks for confirming once more :)

finally we can root, unroot, lock, unlock AND backup and restore TA. let the customising begin :)
[Xperia Z5 General] josephnero:
patching and flashing the Kernel with latest tool makes them work again buddy.just remember to flash DK file with flashtool
[Xperia Z5 General] jugglerpl:
Problem related with Xposed. I resolved it. Thank you for help

Wysłane z mojego E6653 przy użyciu Tapatalka
[Xperia Z5 General] josephnero:
did you uninstall xposed?

Cause I got FCs again
[Xperia Z5 General] jugglerpl:
No. I asked about author of this rooting method. He asked me to check my logcat and I saw that modules don't compile during start (permission denied). I executed command as root in adb shell:

/system/bin/dex2oat --runtime-arg -classpath --runtime-arg /system/framework/XposedBridge.jar --instruction-set=arm --instruction-set-features=smp,div,atomic_ldrd_strd --runtime-arg -Xnorelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/system/priv-app/CameraCommon/oat/arm/CameraCommon.odex --oat-file=/data/dalvik-cache/arm/system@priv-app@CameraCommon@CameraCommon.apk@classes.dex

It resolved problem. But you should know that after upgrading Xposed you must execute this command once again. :) Good luck!
[Xperia Z5 General] 4RM4N1:
So I can use your method to fix this problem? :)

The addons are also crashing for me.

EDIT: can you make a "tutorial"? I'm kinda dumb when I read adb and the rest. :s
[Xperia Z5 General] frostmore:
please,you need to change your guide and header. you cannot have locked bootloader with root. a forummer here have already tried it with backup TA v9.11 (100% confirmation to lock bootloader) and his phone does not boot on modified stock kernel(dm-verity off and ric defeat).

the only way to have root, is on unlocked bootloader with modified kernel. the security keys you got back is due to the work around by tobias and he has stated very clearly in his post:

Long answer: The locked bootloader only boots unmodified kernel packages signed by Sony. The stock kernel only mounts unmodified /system partitions (dm-veritiy) -> No modification without unlocking

So any change to the kernel (like this script) or system partition requires unlocked bootloader

if you managed to backup for TA partition before then you can reactivate your original device key as follows:

Code:

flash_dk <TA backup> DK.ftf

Flashing this file with flashtool will write your device key to an alternative unit, from where the drmfix library will pick it up.

So its a false positive on an unlocked bootloader if you see everything is ok when you check your DRM keys

this will stop the unnecessary confusion and also prevent the noobs from doing things that voids their warranty unknowingly.
[Xperia Z5 General] zate27:
If it's just because of adds why don't you just use AdGuard?
[Xperia Z5 General] josephnero:
Here is What I did. ADB on my crappy PC doesn't work well so I used Tickle my android as alternative. Then just type SU and press enter. Give super su permission on tour phone. then just copy what our friend wrote and paste ain there.enter again and it's done
[Xperia Z5 General] josephnero:
Yep.Any 64 bit Xperia would work
[Xperia Z5 General] josephnero:
[MENTION=5267986]GeramanX[/MENTION]

Sorry for late reply.yes latest version of adaway works like a charm
[Xperia Z5 General] 4RM4N1:
So I only need Terminal and then I need to add these commands?
[Xperia Z5 General] jugglerpl:
Yes.

Wysłane z mojego E6653 przy użyciu Tapatalka
[Xperia Z5 General] GeramanX:
I'll give it a try, thanks.

---------- Post added at 04:10 PM ---------- Previous post was at 04:07 PM ----------

Thank you for letting me know.

The other guy suggested to try AdGuard, in case this needs root or doesn't work I'll follow your guide and will come back to let you know if I did it really correctly.

[emoji6]
[Xperia Z5 General] Bautinho88:
Bigtincan adfree works, too
[Xperia Z5 General] josephnero:
[MENTION=6110420]4RM4N1[/MENTION]

yep
[Xperia Z5 General] 4RM4N1:
works! One more question. Is your phone also freezing? I get random freezes 2-3 today. I also had to reflash my system backup today.
[Xperia Z5 General] josephnero:
Not a single freeze here