yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Premium General] asilviug:
I have Z5P E6853 and i would like to unlock its boot-loader and apply your modified stock kernel in order to gain root and recovery.

If I go down this road I will loose my DRM keys and some features. What happens when I go back to stock later on? For example lets say I will flash android N in 6 months time. Will it be affected in any way? Will the phone look and feel like stock? If not, what gives?
[Xperia Z5 Premium General] KbaB.BroS:
Anything DRM related will be lost, such as X-reality, camera quality and more things.
[Xperia Z5 Premium General] asilviug:
I will trade X-reality and more things for root any day but what about camera quality? Is it a big difference?
[Xperia Z5 Premium General] KbaB.BroS:
With kernels including DRM simulation you'll keep X-reality and camera quality among other things that should be lost when the bootloader has been unlocked. The kernel will fool the system that the DRM keys are there and therefore those features will still be active.

The loss in camera quality will only be noticeable in lowlight if you don't have either your DRM keys or a kernel with DRM simulation included.
[Xperia Z5 Premium General] KbaB.BroS:
Also go check the first link in OP. In that thread you'll find another link to a thread where you can backup your DRM keys and then restore them afterwards if you want to return to completely stock sometime in the future.
[Xperia Z5 Premium General] dyepnoodle:
I installed romaur and i lost my recovery, can i use Flashify app to flash the kernel.img? I dont have an access to a computer to fastboot the kernel.
[Xperia Z5 Premium General] KbaB.BroS:
From my experience the kernel doesn't boot up with romaur
[Xperia Z5 Premium General] dyepnoodle:
i see. so i wont be able to use it on ROMAUR, my problem is i always lose my recovery every time i stay on the kernel built on that rom or flash his kernel.
[Xperia Z5 Premium General] matekus88:
hi, its rooted?
[Xperia Z5 Premium General] KbaB.BroS:
My answer to you is no. I already wrote this in OP, download whichever supersu flashable zip from Chainfire and flash it in recovery.
[Xperia Z5 Premium General] Ashray_Vk:
Hey [MENTION=5410058]KbaB.BroS[/MENTION] , This boot.img is repacked with DRM fix and Root, RIC disabled for the latest firmware, stock kernel. [ .224 fw ] using [MENTION=357342]tobias.waldvogel[/MENTION] , and this is only for the E6883. You could add a link back to this post mentioning the rooted DRM fixed RIC disabled stock kernel in your OP.

Thanks to [MENTION=357342]tobias.waldvogel[/MENTION] too! :) You rock :)

Thanks.

https://drive.google.com/file/d/0B3VYTWJvPn2vdEphUk5MbGZNdE0/view?usp=sharing
[Xperia Z5 Premium General] KbaB.BroS:
Does SuperSU work without any problems? It was buggy when i rooted it from the tool, allowing an app root access didn't make any difference.
[Xperia Z5 Premium General] Ashray_Vk:
lemme check on that now

EDIT : [MENTION=5410058]KbaB.BroS[/MENTION] , i think it works fine since i am able to use kernel tuner to restrict the maximum frequency successfully after giving it root rights. Cheers! :)
[Xperia Z5 Premium General] KbaB.BroS:
BTW, which SuperSU version did you use?
[Xperia Z5 Premium General] Ashray_Vk:
v2.74 :)
[Xperia Z5 Premium General] dyepnoodle:
Dude, do you have a working ftf for E6883 that i can flash?
[Xperia Z5 Premium General] KbaB.BroS:
Use Xperifirm from Flashtool to download whichever region you'd like
[Xperia Z5 Premium General] KbaB.BroS:
Which version was it you modified the kernel with? The latest v4.5 or earlier? TWRP had MTP issues so a new version was released.

Edit:

Confirmed it myself using E6853, it works, thanks for helping me.
[Xperia Z5 Premium General] Ashray_Vk:
I used xperifirm and used flashtool to do the ftf myself

The latest version man :)
[Xperia Z5 Premium General] Samiam27:
It's working great! But for some reason after I applied it the phone doesn't detect the SD card anymore. Am I the only one?
[Xperia Z5 Premium General] KbaB.BroS:
I don't have that issue. Which device are you using?
[Xperia Z5 Premium General] Mod4it:
After flashing AU firmware 224, I am flashing the Kernel and then trying to install SuperSU 2.74 BETA, but for some reason it gets to Checking Patch Status and says already patched, can't find backup, aborting and although I then see SuperSU it does not work. I didnt have this issue on 163 or currently on 185 using RomAur 3.0 kernel.

Am I doing something wrong? Any help would be greatly appreciated. Thanks

Edit: Device is E6853 and I have tried the stable SuperSU 2.65 which performs the same.
[Xperia Z5 Premium General] KbaB.BroS:
SuperSU is already included, should work just fine.
[Xperia Z5 Premium General] Mod4it:
Hi, thanks for reply, I tried again this time with a clean flash of 224 Customized AU. Fastboot Kernel and still it doesn't work for me? My apps say things like "cannot access SU or you do not have root at all", again of i try to flash supersu in TWRP it fails at checking patching status.

I have now managed to get root using RomAur 4.0's Stock 224 kernel and then flashing supersu but cannot understand why this kernel would not work for me out of the box as it seems to for others and why it won't allow me to flash a different supersu.

Not to worry, thanks for you fast reply.
[Xperia Z5 Premium General] KbaB.BroS:
Which app is it that cannot access root? Try this IMG, it has the stable SuperSU 2.65 instead of 2.74

https://mega.nz/#F!GxZAwQ4B!1rJbsYRaFx4lmP5MaBTR6Q
[Xperia Z5 Premium General] dyepnoodle:
[MENTION=5410058]KbaB.BroS[/MENTION] can you help me out on this. I flashed .224 ftf generic india found on xperiablog.net for E6883. on their tut they said that if Simlock.ta shows on flashtool, make sure to tick it. After flashing phone boots, IMEI is good and even baseband. my problem is my phone doesnt have a signal. Sim is detected but no signal. and now im also unable to fastboot a kernel and recovery. gives an error FAILED <remote: Command not allowed> after it shows that its sending boot

here are the things i already tried.

Flashed .185 ftf. no luck

relocked bootloader, then reflash .185. still no luck.

flashed generic .224 still no signal.

please help bro
[Xperia Z5 Premium General] Mod4it:
Hi,

Thanks, but I am reluctant to flash anything more ATM as I now have it working after 2 days and want a break from it.

The apps that didn't work were ES File Managers Root, which usually is down to SE Linux mode, so it's SE Linux Mode Changer, witch also wouldnt work as it reported I didn't have root at all.

If I get time in the next few days I'll make a Nandroid Backup and try that Kernel.

Again, Thanks
[Xperia Z5 Premium General] KbaB.BroS:
Sorry, don't know what the issue really is.
[Xperia Z5 Premium General] Mod4it:
Maybe you should go right back to basics, use Sony PC companion to do a repair and put everything back to factory then see if the connection works, if not I'd suspect hardware.

Your error sound like because you have relocked your bootloader, that will prevent flashing of boot and recovery in fastboot.

Go back to basic with PC companion, then if signal OK, unlock bootloader and flash 224 from there then fastboot the kernel.

Did you have a Nandroid Backup of your system before you started out that you could restore once you regain recovery?
[Xperia Z5 Premium General] jasonhtt:
-deleted-
[Xperia Z5 Premium General] dyepnoodle:
Actually my phone's bootloader is unlocked tried relocking it then flash an ftf via flashtool still the same, no network. Unlocked bootloader, downgrade to 185, update to 224, nothing happens. I do have a backup via twrp the problem is even though the bootloader is already unlocked, everytime i fastboot a kernel or recovery its shows Error: remote: command not allowed. If i go to service menu it shows root status unknown. Tried flashing a kernel via flashtool's fastboot option same error shows. Upto now i dont have a network signal. Im going to try flashing a 5.1.1 ftf, i already contacted Androxyde and he said the if i have a TA backup i could restore it, problem is i dont! So i told him that i have a recovery backup and i see a file that says ta.emmc.win he asked for it but until now i havent received a pm from him

Havent tried PC companion yet, i think its just the same as flashtool. My phone actually detects that theres a sim inserted, even the sim toolkit shows on the app drawer, problem is the phone thinks its locked to a carrier since simlock.ta was included during the flashing of the ftf. I tried excluding it every reflash but nothing.
[Xperia Z5 Premium General] KbaB.BroS:
Try flashing a generic ftf and include the simlock.ta

Did you allow OEM unlock in developer settings before trying to fastboot?
[Xperia Z5 Premium General] Mod4it:
PC Companion recovery is worth a shot, I once lost everything and the phone wouldn't even power on (my Z2 not Z5P) and flashtool wouldn't work then I was told to try PC Companions recovery and After a long download it put everything right and I was able to start over. So maybe there are a few other things it does other than flashing the firmware, don't know.

Don't know if it will help you but that's where id be trying.

Hope you manage to sort it out soon, good luck
[Xperia Z5 Premium General] dyepnoodle:
including simlock.ta is the main reason i got this problem, usb debugging and oem unlock is switched on. will try to downgrade to 5.1.1 and see if the helps.

Edit:

still nothing, the only thing new i get is after flashing the phone asks for a sim pin like a phone that is locked to a carrier. it also shows that sim 1 is perso locked. so the phone really think that it came from a network provider and a locked phone. will try to bring my device to a local smartphone repair shop and have the unlock the phone (openline which we call it here in the philippines)

Edit:

I got it fixed!!! i searched online for unlock code. attempted 2 unlock codes and viola! phone now has signal again :)
[Xperia Z5 Premium General] KbaB.BroS:
I was thinking maybe that if you flash the simlock.ta from an unlocked ftf the issue would fix itself, but I'm glad that you managed to fix the issue on your own
[Xperia Z5 Premium General] dyepnoodle:
Androxyde is about to send a repair ftf to me, i guess i'll just keep that in case something happens again :) i was able to restore my backup now, stock 185 and your modified kernel for 185. I want to update this phone to 224 the quickest way i could think off is receiving the OTA that just prompted today. If i relock the bootloader and reflash the stock kernel, will i be able to install the OTA? What do you think? Or i can just go ahead and flash the latest romaur rom to be updated?
[Xperia Z5 Premium General] KbaB.BroS:
This kernel won't work with RomAur, just keep that in mind.

Yes, if you relock bootloader and reflash everything stock you'll be able to install the OTA
[Xperia Z5 Premium General] dyepnoodle:
Thanks so much! Ill take note of that. I think ill stick with stock rom and use your modified kernel for 224. Im reading a lot of rotation issue on that rom.
[Xperia Z5 Premium General] danilo_scala:
thanks for share friends, I'm a little afraid to unlock bootloader and flash this, I never flash only kernel or img, I will look guides, but I will look as it does not give problems, much appreciated.

please, friend, put little full guide . . example . backup ta iovy root firm**, unlock bootloader, flash .elf and .img (kernel) .. etc.. my xperia is z5 p e6883 .185 firm... in zip download .224 firm not found .elf e6883, only .img.. i search about simlock.ta,,i think my unlocked.. in unlock bootloader have two imei to unlock... try flash old firm to backup TA and loader.sin finished with errors . first time i have problem.. all my phone have root , but first time try unlock bootloader and make this,flash kernel etc....
[Xperia Z5 Premium General] YasuHamed:
could you please do that for z5p E6833 ?
[Xperia Z5 Premium General] KbaB.BroS:
You can find it in OP. Check out the Mega link
[Xperia Z5 Premium General] YasuHamed:
there are E6833.elf and E6833.img

which one is prefered [MENTION=5410058]KbaB.BroS[/MENTION]

i am going to use FLASHTOOL fastboot mode to flash kernal....

running on .224

---------- Post added at 11:56 AM ---------- Previous post was at 11:54 AM ----------

the z5p version has two IMEI

so i request two boot unlocker codes from sony...

which one to use? :( ?
[Xperia Z5 Premium General] KbaB.BroS:
Use the .IMG like I wrote in OP, .ELF is there for the people who want to modify the stock kernel themselves.

I don't understand your second question. If it's about unlocking the bootloader there's another thread in Z5 Premium Android development, it's dedicated for how to unlock bootloader among other things.
[Xperia Z5 Premium General] KbaB.BroS:
Unlock bootloader here:

http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
[Xperia Z5 Premium General] YasuHamed:
since i have dual sim fone, when i do *#06# it gives TWO IMEI numbers

so for each imei i went t ohttp://developer.sonymobile.com/unlo...urboot-loader/ and requested BOOT UNLOCKER CODES

they have sent me two codes now...

i am thinking which one to use now ?
[Xperia Z5 Premium General] KbaB.BroS:
Don't know, maybe it doesn't matter which one you use. Try whichever you like
[Xperia Z5 Premium General] YasuHamed:
as per flash tool it give a unique imei number, i have requested that from developer.sonymobile.com and will use that one..

i hope i know what the hell i am doing!

i mean how badly ineed to root?

shall i wait for kingroot to find software xploit for android 6.0.1 to have root access? (which will be in next 4 months or so) or shall i unlock it and loose my drm keys? and what if i relock the bootloader to get OTA, and if i relock the bootloader via flashtool, will i able to enter in to recovery?

damn i m never gonna buy another sony

---------- Post added at 01:14 PM ---------- Previous post was at 12:33 PM ----------

DONE

:D

i have ROOOTED device

can i relock my bootloader again via flashtool?
[Xperia Z5 Premium General] KbaB.BroS:
Relocking will render your recovery unusable, it's depending on customizations on the kernel to be accessed, therefore the stock kernel will never work with a recovery. If you still have this kernel, which is modified, and relock the bootloader your phone will brick and you'll have to fix it with FlashTool. Sony has dm-verity and RIC which protects the device from modifications. These enabled will not let the phone boot if it notices modifications.
[Xperia Z5 Premium General] YasuHamed:
question concerns after rooting

1. the twrp battery level showed me 20% where my battery was fully charged, why? after rebooting battery was 86%. should i be worried about battery sys file? is it going to hurt device?

2. what is the way to relock the bootloader ? and should i be doing that?
[Xperia Z5 Premium General] KbaB.BroS:
1. TWRP only does that the first few minutes you're in recovery, then it will show the battery level of the device for real.

2. Relock the bootloader with FlashTool. Same procedure as unlocking, but this time it will say relock instead. Only do it if you intend on going back to fully stock without any mods.
[Xperia Z5 Premium General] Killastyle:
Thanks. I will try it out. I'm using romaur at this time but my phone keeps getting random reboot. Hopefully a fresh stock install and only root the device will help.

Edit: worked quote easily. Thanks
[Xperia Z5 Premium General] foopy:
I finally got tired of resisting the urge and decided to unlock and root my Xperia Z5 Premium Dual. I just couldn't stand having an android phone that wasn't rooted. I used this method and your kernel and it worked great. After flashing the kernel I now have root. I can't help but wonder how flashing the kernel in fastboot also updates the recovery to TWRP though. Anyway thanks for the modified kernel!
[Xperia Z5 Premium General] JaegerStriker:
might be a stupid question but will xposed work with this?
[Xperia Z5 Premium General] KbaB.BroS:
Yes, standard Xposed works but don't know about the systemless Xposed version tough
[Xperia Z5 Premium General] JaegerStriker:
Wow my knowledge on xposed is terrible. I presumed it was just one type. Didn't realise there was two versions. Don't suppose you could point me to the correct one [emoji4]
[Xperia Z5 Premium General] KbaB.BroS:
Choose the SDK23 because that's MM and choose ARM64 because that's how our CPU is designed.
[Xperia Z5 Premium General] atif_afzal:
Battery Drain

I am using stock modified kernel, i am facing two problems.

1- Battery drain very fast with using the phone in standby mod battery come down feom 100 to 89% with in 3 hours. And when i use the phone battery too fast. Any suggetion.

2- when i reboot my my its took long time as compare to lock bookloader.

Excexpt these two things i am happy

Z5P Dual E6833
[Xperia Z5 Premium General] YasuHamed:
there is tutorial mention in the opening post to extract original kernal from stock and adding / removing features

even i got tired of waiting for any oem vulnerabilities by kingroot! 6.01 is a tough cookie

but i have decided z5 will be my last sony phone, next i will switch to ONEPLUS, , the latest oneplus3 offers 6gigs of boosting ram and usually oneplus are ROOTED phones

---------- Post added at 01:08 PM ---------- Previous post was at 12:59 PM ----------

bro atif / salaam

even i felt that the batter charging has become slow and discharging is some what faster, however its been a week now, it seems fine now.

i have three apps monitoring ram and background operations

1. PURIFY (auto blocks and closes bloatware)

2. CM LITE

3. Close all Aps PRo

i am NOT using imo/viber/skype

i have removed by system aps (by ROOT AP REMOVER)

1. whats new

2. xperia mobile transfer

disabled all sony aps and kept system update app on notification only

since the device is boot unlocked, sony wont push any updates on our devices!,

---------- Post added at 01:19 PM ---------- Previous post was at 01:08 PM ----------

i would suggest not to use xposed, i got serious problems in the past specially with xperia modules! so i stopped using since kitkat days! i don't know how it is now
[Xperia Z5 Premium General] atif_afzal:
Waslam/ bro yasuhamed

Thanks for your reply. I am using CM complete version, to my surprise autostart manager is no more in CM for blocking autostart apps. So for autostart app blocking i install PURIFY and do a wipe of delvic / cache. Also losts of google and sony apps i already blocked. One more thing i am going to perform remove the whats new and xperia mobile transfer. Lets see what result i will get then i will share.

I want to know one thing that this modified kernel include the DRM Emulater, then y we will not get update from sony.

One more thing if you have any idea about pink/red tint, i using my z5p since december 2015. But strat of this month i saw the red/pink tint near to sim/Mcard jacket. I did not drop my phone not even any sort of pressure but i got that tint. Will it gone or i have to stay with it. Previously i had z2 and after 10 months i got big yellow tint same posiion but after the use of one month to my surprise yellow tint vanish. So can i suspect same kind of thing with my Z5P Dual or i have bear that pink/red tint.
[Xperia Z5 Premium General] YasuHamed:
- the CM light is capable enought , i don't think so CM ever had autoblocker? or was it there?

- greenify uses alot of resources and to configure it you have to tell greenify (donation package) what system and major apps to put on sleep.

- so purify working nice for me but i will try re installing greenify again and will observe and let u know.

- sim slot? i didn't understand, i have z5p Chrome and attaching slot foto for u.. plz view

- DRM keys are for application such as camera app, bravia etc an others SONY subsidiaries. it has nothing to with OTA / updates

- to receive notification or an update, you must RE LOCK your bootloader using FLASHTOOL ,

- yes plz disable whats new, xperia lounge, xperia mobile transfer bloatware since you are pretty advance user and can survive without them.
[Xperia Z5 Premium General] YasuHamed:
flashing system.sin takes alot of time, sometimes more than 15mins

BUT

if you have downloaded ftf file which is NOT for your exact model (even if its a variant of your model), system.SIN will not flash properly!

for example if you mobile is E6833, you should not flash E6853, although its a variant to your model!

I would suggest re FLASH it , (BASIC MODE) (NEVER CHOOSE ADVANCE MODE) (SIMLOCK issues)

i flashed with the following option (ticks)
[Xperia Z5 Premium General] melvinhatred:
Thanks for ur help but i have successfully flashed and rooted the phone
[Xperia Z5 Premium General] atif_afzal:
Hello Dear can you please let me know that I am on stock modified kernel and I have to manage the TA. backup. Should I go for that command or not ( flash_dk <ta backup image> DK.ftf ) make ftf and flash through flas tool.

Two apps are not working properly after modified stock kernel.

(1) Clean Master did not ask for root permission, so its auto start manager did not work.

(2) In Es Files manager root explorer option did not work.

As both apps work in AUR KERNEL any help for stock modified kernel.
[Xperia Z5 Premium General] KbaB.BroS:
1) Don't know why Clean Master doesn't work, could be because of the same reason like ES File Explorer

2) It's the SuperSU version which is not compatible with ES File Explorer. SuperSU 2.65 works but not very well when trying to inject root into the kernel with the tool. SuperSU 2.74 does work with the tool but not with ES.
[Xperia Z5 Premium General] atif_afzal:
Thanks alot dear.

What about the TA image Should I go for that command or not ( flash_dk <ta backup image> DK.ftf ) make ftf and flash through flas tool.
[Xperia Z5 Premium General] KbaB.BroS:
If you have your TA backed up before you unlocked, go for it
[Xperia Z5 Premium General] atif_afzal:
Thanks Dear. Yes before unlock bootloader i managed to back the TA. FLASH the TA will help to increase the battery or this is only for reactive the protected TA functions.
[Xperia Z5 Premium General] KbaB.BroS:
The DRM simulation in this kernel has does already restore all the TA features, except for one, the FIDO provision keys. This partition is only restorable with TA backup. What they do exactly I don't know.

Battery probably won't get better, but feel free to tell us if it does. I don't have my TA backed up and I can't therefore confirm anything here.
[Xperia Z5 Premium General] atif_afzal:
Ok let me try then i will update
[Xperia Z5 Premium General] Tani_bc:
:good: Thanks you so much !

working on E6883/ Z5P Dual MM 6.0.1.
[Xperia Z5 Premium General] atif_afzal:
After flashing the TA, battery standby time increased same as locked bootloder awsome but using time did not improve as compare to lock bootloader.
[Xperia Z5 Premium General] atif_afzal:
Hello Dear I am facing problem to restore my TA.

Please help me I am on .224 stock modified kernel and try to lock my bootloader and restore my TA. Script running and error Device not supported
[Xperia Z5 Premium General] KbaB.BroS:
You need to have the bootloader unlocked when restoring TA. When TA is restored the bootloader will be relocked automatically
[Xperia Z5 Premium General] atif_afzal:
Yes I am on unlock boot loader and have root access. Should I go back to .170 firmware on which I took the TA backup. An then execute the restore command. Because on .224 firmware I am getting above error. One more thing when I am executing the restore my phone on normal boot or in fast boot mod.
[Xperia Z5 Premium General] KbaB.BroS:
For further help go here:

http://xdaforums.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597/page20

I can't help you any further unfortunately
[Xperia Z5 Premium General] atif_afzal:
Thanks alot
[Xperia Z5 Premium General] atif_afzal:
Thanks Dear, I successfully restore TA. Flash back the .170 firmware and restore.
[Xperia Z5 Premium General] swejuggalo:
SuperSU 2.76 has arrived. Does that mean that we need a new modified kernel file to be able to update to 2.76? Simply flashing the latest zip in recovery does not work.
[Xperia Z5 Premium General] KbaB.BroS:
Will get right to it when I have time, expect a new kernel somewhere around 6hs forward