yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] Truser.tt:
Hi, i need your assistance. My E6653 is no longer booting. it goes to recovery mode everytime i try boot it. I tried flashing it with boot.img but there is no change.

Please help
[Xperia Z5 Android Development] sceryavuz:
Make flashable boot & twrp image then flash on TWRP. After that you need to reinstall FTF or an AOSP.
[Xperia Z5 Android Development] tuanck2004:
I can not install the TWRP via boot.img :(

how to flash TWRP on Z5p 6883, tks?[IMG="https://scontent.fhan2-2.fna.fbcdn.net/v/t31.0-8/19693377_1571489229530841_273662415586247392_o.jpg?oh=ca966739b47ba2260256aa42f626cc95&oe=59D7216A"]https://scontent.fhan2-2.fna.fbcdn.net/v/t31.0-8/19693377_1571489229530841_273662415586247392_o.jpg?oh=ca966739b47ba2260256aa42f626cc95&oe=59D7216A[/IMG]
[Xperia Z5 Android Development] tuanck2004:
---

its OK:

Quote:

Originally Posted by youvedone

No kernel modules for 3.10.84-perf-g1016077 available

Extract system.sin file

Extract data with Flashtool -> Sin Editor

You have system.ext4 file now (5.2GB or bigger)

Use Ext2Read to open system.ext4 file

Save this folder into your desktop "/lib/modules"

Create a folder named "3.10.84-perf-g1016077" into twrp_common_kmodules

Copy required files into this folder..

core_ctl.ko

ecryptfs.ko

kscl.ko

mhl_sii8620_8061_drv.ko

texfat.ko

Attached Files

3.10.84-perf-g1016077.zip - [Click for QR Code] (1.22 MB, 110 views)

---
[Xperia Z5 Android Development] ytheekshana:
Can you update the the TWRP to 3.1.1
[Xperia Z5 Android Development] NeoBeum:
If you've just edited rootkernel 5.23 to include a kernel bundle folder for nougat - you'll be missing alot of the update security changes for TWRP and the actual Android Sec Pol changes for the actual kernel you are using. You'll know if your device heats up more than 30 degrees in recovery from a cold start.

I did this temporarily for a rootkernel version just for the E5803/E5823 - but I haven't bothered creating a one program does all version for the Z5C on 7.1.1 just yet.

If your device heats up excessively in Recovery - it means something funky is happening. also - the 3.0.2 TWRP is probably missing changed mountpoints if you haven't grabbed the current fstab
[Xperia Z5 Android Development] jianlin3062:
Help 7.11 solution
[Xperia Z5 Android Development] MystereT:
Hello

Is there an easy way to check if DRM Fix application worked ?

I unlocked bootloader before saving TA partition, so this is just the partial fix for me

In service menu (Service Info / Security) , I see

MARLIN Key OK Active

WIDEVINE Key OK Active

CKB Key OK Active

...

FIDO_KEYS Not provisionned, provision failed

Is it related to DRMFix ?

Thanks
[Xperia Z5 Android Development] sceryavuz:
Yes it is related but nothing effected. You can check Settings, Display, X-Reality. If passed you can use this mod and you can see on the picture. If not passed you cant see any differences.
[Xperia Z5 Android Development] algnerd:
Hi to all,

I know I'm supposed to read all the thread and look for an answer or at least use search for it, but I can right know and I'm in a rush, so I'm sorry if I repeat something that has already been talked about before.

I've tried the following: flash_dk TABack.img dk.ftf (using cmd on windows 10) but it return that "flash_dk not recognized as an internal command";

Should I use this command using the rootkernel or something else?

Thank you and sorry again
[Xperia Z5 Android Development] Berni-0815:
flash_dk[B][COLOR="Red"].cmd[/COLOR][/B] TABack.img dk.ftf
[Xperia Z5 Android Development] oel7:
XZ/XZs

The repack really works for XZ and XZs as well? :) I was wondering because there is no Kagura and Keyaki twrp folder in the v5.23 rar file... ?

(coffee sent)
[Xperia Z5 Android Development] FartyParty:
The drm fix? Yea it works fine on XZ/XZS but not on XZP.

You can just manually flash recovery for XZ/XZS and then install drm fix.

But I simply replied to arjun.arora so don't come questioning me about stuff :D, haha.
[Xperia Z5 Android Development] oel7:
This would be backup TA, export kernel, repack kernel with TA restore and without TWRP, flash TWRP, flash repacked kernel?

Too late, didn't understand ;)
[Xperia Z5 Android Development] hoderer:
I hope someone can help out. I have Z5 compact and I managed to create a new boot.img with the latest supersu with rootkernel but supersu is causing huge battery drain and I'm quite unhappy with my device right now. I'm on XPower 5.0. I tried to do a clean install, but there was no option for another superuser app. just supersu. It seems like there is no chance to change the superuser app. Even when I create a boot.img with superuser via rootkernel, supersu ist still there as a system app. there's no way to delete it. I already tried to uninstall supersu system app with this: https://xdaforums.com/sho...postcount=2459 but it didn't do the trick.

I could leave it the way it was, but then there's this annoying update notification of supersu - something with "binary needs to be updated and I think I can't access the supersu-settings anymore. is anyone else facing this problem with latest supersu and battery drain? and is someone out there who has an idea or could upload a working kernel (boot.img)?

any help is highly appreciated! thanks guys!!!
[Xperia Z5 Android Development] jianlin3062:
Support Android 7.11

https://drive.google.com/file/d/0B1pH1EEsfD8GU005eWdZOXFaMUE/view?usp=sharing

rootkernel5.23beta----TWRP(phh_superuser.zip)------system（me.phh.superuser_1033.apk）
[Xperia Z5 Android Development] whalesplaho:
Rootkernel already supports 7.1.1.....
[Xperia Z5 Android Development] jianlin3062:
solved? Can you give me a link?
[Xperia Z5 Android Development] whalesplaho:
Dis is rootkernel thread... I used it to patch my stock kernel for 7.1.1 but didnt add twrp and superuser.zip.... I fastboot twrp and flashed magisk afterwards... Also yhu can flash superuser.zip
[Xperia Z5 Android Development] [NUT]:
Hi guys, just notifying:

Rootkernel V5.23

- Unpacking kernel
Found elf boot image
[B]Kernel version: 3.10.84-perf-g1016077[/B]
Found appended DTB
- Detected vendor: somc (Sony), device: sumire (Xperia Z5), variant: row
- Unpacking initramfs
- Detected platform: 64-bit
- Detected Android version: 7.0
- dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] Y
Disabling dm-verity
- Sony RIC is enabled. Disable? [Y/n] N
- [B]Skipping TWRP recovery. No kernel modules for 3.10.84-perf-g1016077 available[/B]
- Found superuser.zip. Install? [Y/n] Y
# Make su permissive (Permits any action as su)? [Y/n] Y
Adding service entry for superuser
Adjusting SE Linux policy for superuser
- Install DRM fix? [Y/n] Y
- Install busybox? [Y/n] Y
- Creating new initramfs
- Creating boot image
- Cleaning up
Done

This is FW E6653_32.3.A.2.33_1298-7632_R5D.

Perhaps something I missed? I have no clue...
[Xperia Z5 Android Development] ytheekshana:
Go to the folder twrp_common_kmodules and create folder with your kernel version eg: 3.10.84-perf-g1016077

Then copy the contents from one of the kernel version folders that already there and paste them to the folder you've created.

Now Retry from the beginning,
[Xperia Z5 Android Development] [NUT]:
I was a bit in a rush, I'm sure I could have found that myself in this thread, but thank you for your clear and to the point reply. That saved me time and it worked a charm ;)

Thank you!

I have issues using superuser though, unfortunately the app FC's and root doesn't work... so I went back to supersu :(
[Xperia Z5 Android Development] whalesplaho:
Did yhu install superuser.apk app??

Its required..
[Xperia Z5 Android Development] [NUT]:
I did, as per OP instruction, install it from play, the release by ChainsDD.

Maybe the zip and that apk are not compatible but I didn't have any chance to play some more with that...

I'll give your version a try once I have some time to tinker. Thanks for that :good:
[Xperia Z5 Android Development] ytheekshana:
I am using Magisk....
[Xperia Z5 Android Development] whalesplaho:
okay brov..... i do use flashable zip for installing SuperSU!

---------- Post added at 05:31 PM ---------- Previous post was at 05:30 PM ----------

same here brov..... just trying to help as per tha complain!
[MENTION=4904057][NUT][/MENTION] is Xperia father....
[Xperia Z5 Android Development] juanpirulo:
I can confirm the tool. (unnofficial by [MENTION=3989065]serajr[/MENTION] thanks) is working fine with xz with nougat and restoring the TA backup with poc. Cheers

Enviado desde mi F8331 mediante Tapatalk
[Xperia Z5 Android Development] DuskGolem:
[MENTION=357342]tobias.waldvogel[/MENTION] , please brother update this tool for TWRP 3.1.1-0 cuz its really annoying to use the power down+power button combination to boot to recovery, i have to shutdown my phone completely to do this, but previously using you tool, it was just a matter of LED FLASHING:p. PLEASE DO THIS IN YOUR FREE TIME.

Anyone is open to suggestions as to how to incorporate twrp 3.1.1-0 in this tool (or my kernel manaully by unpacking kernel), for may be tobias buddy is busy........:confused::p
[Xperia Z5 Android Development] juanpirulo:
Nice to see you here mate. its been a long time but wellcome again . cheers
[Xperia Z5 Android Development] serajr:
I've been workin on a "unnofficial v2" with some news like improved ta poc (included init.ua_modem_switcher.sh script as part of ta poc hack), and for those (including me) who likes having the chance to boot up into twrp at sony logo, added init_sony project binaries (needs a working TWRP flashed into the FOTA partition > fastboot flash recovery ...).

Gonna share it soon!

I'd really like to see some words from OP [MENTION=357342]tobias.waldvogel[/MENTION] about these unofficial versions, also, and most important part, something about drmfix future (for the new xperias like XZP and onwards). Can we have any hope?
[Xperia Z5 Android Development] whalesplaho:
Dis is great news... Yhu mean we can boot to twrp using v3.1.10 without using volume down + power button.. Same old method with led light works?

Dis is superb brov... Thumbsup!!!
[Xperia Z5 Android Development] serajr:
Exactly! ;)
[Xperia Z5 Android Development] whalesplaho:
Exhausted my thanks meter... Cant wait to have dis with TA poc feature.... Using my TA.img instead of drmfix!!!!

Also still waiting for magisk module:highfive::good:
[Xperia Z5 Android Development] serajr:
Please, do not put all your hopes on that, as you already know, ta poc and magisk don't work together. We still need to find out what's happening!

Better to keep with old 'n' good drmfix (if you want magisk too)!
[Xperia Z5 Android Development] whalesplaho:
Dis thread shows PoC so tot it was fixed... So guess will just settled with drmfix!!!

https://xdaforums.com/apps/magisk/safetynet-fix-pass-safetynet-2017-07-17-t3637801
[Xperia Z5 Android Development] juanpirulo:
i ve allready root my phone with your tool with poc and supersu, but afterthat i flash duality rom and gess what , now i am running the dual room with magisk and my TA is still showing fine. :rolleyes:
[Xperia Z5 Android Development] juanpirulo:
https://xdaforums.com/showpost.php?p=73079059&postcount=25

cheers
[Xperia Z5 Android Development] Falcon Fingers:
Hi. I have a Z4 Tablet model SGP712. When I install this kernel, the screen no longer responds to touch input. However, the DRM fix does work; I know this because I can use a mouse over OTG. I am using the most recent Nougat firmware. Without the kernel, the screen is responsive. Is this a bug? Please advise: I would really like to use this kernel.
[Xperia Z5 Android Development] juanpirulo:
What kernel had you flash exactly?

Enviado desde mi F8331 mediante Tapatalk
[Xperia Z5 Android Development] Falcon Fingers:
I flashed rootkernel v5.23 after the firmware. I tried two different firmware: 32.4.A.0.160 and the older 32.3.A.2.33.
[Xperia Z5 Android Development] juanpirulo:
mmmm i gess you dont know how rootkernel works. Rootkernel is a tool to root your device specific kernel, so you have to extract this tool on pc extract your kernel from your firmware vcopy to the rootkernel folder and run the tool con command prompt. I think you must read instruccions on op first . cheers
[Xperia Z5 Android Development] Falcon Fingers:
No. I wasn't clear enough. I flashed the boot image created by the rootkernel tool.
[Xperia Z5 Android Development] juanpirulo:
Ok ? I was a little confused.

Enviado desde mi F8331 mediante Tapatalk
[Xperia Z5 Android Development] Falcon Fingers:
Okay, I contacted the developer.
[Xperia Z5 Android Development] tramtrist:
Hey all.. in linux I'm getting kernel_S1-SW-LIVE-F936-PID1-0006-MMC.elf: cannot execute binary file

64bit debian 9... any ideas why? wrong arch?
[Xperia Z5 Android Development] agentsandy007:
HI guys.

I seem to have a weird problem.

I am on Latest stock firmware and tryin to install this DRM fix, but i'm unable to flash boot.img

Minimal adb says it could not load boot.img

I've done this a lot of times, drivers and everything, sin extraction everything went smooth.

This tool not workin on latest firmware? (E6683_32.4.A.0.160_1298-7547_R2E)

I'm using Minimal adb version 1.3.1
[Xperia Z5 Android Development] Berni-0815:
Do you want to execute the elf file? Or what do you want to do? A little bit more info would help us to help you... ;)
[Xperia Z5 Android Development] cyberwytch:
Run the command in bash. The default of many distros (dash, etc) is incompatible, and there's no line to execute bash automatically at the top of the shell script.
[Xperia Z5 Android Development] Berni-0815:
I had to change the first line in the script to this:

#!/bin/bash
[Xperia Z5 Android Development] Falcon Fingers:
Update: I just tried using Marshmallow 32.2.A.5.11 firmware, but to no avail. The touchscreen on my Z4 Tablet is still unresponsive. I guess I'm going back to AndroPlus for now.
[Xperia Z5 Android Development] tramtrist:
Sorry all I didn't post the whole command so you probably had no idea what I was talking about trying to get rootkernel script to run.

This is from BASH

I ended up running it in Windows without any issue... Maybe something to do with Debian 9?
[Xperia Z5 Android Development] [NUT]:
You are using a kernel from a true Z4 tablet ROM, right?

If so, if you apply no fixes (except dm_verity), exclude supersu/superuser but include TWRP properly for that kernel and boot to TWRP with that kernel, does IT have touch response? When it does, does the ROM?

Then if all answers are yes, try enabling stuff one at a time giving it a try in TWRP first before you boot to the ROM, once you find your touch input in the ROM to fail disable the last thing you enabled and continue with the next fix/patch until you have narrowed it down to one or more fixes.

Please be more informative with the reply if you want people to reply with useful information, paste in your CMD window contents and the flashtool elf extract log for instance.

---------- Post added at 01:15 PM ---------- Previous post was at 01:06 PM ----------

First of all, you are using a sin file, not the elf extract, be careful using that kernel... it was not what this tool was made to modify!

You can use 'nano' or 'vi' to open rootkernel.sh and see if the first line resembles:

#!/bin/bash

If it does not, add it (really as FIRST line).

Second thing to check: the OP package is downloaded as a zip file, which means the script has lost it's executable flag (zip does not know about that on unix files), to fix it:

chmod +x rootkernel.sh

I hope this will help you along :good:
[Xperia Z5 Android Development] tramtrist:
[MENTION=4904057][NUT][/MENTION] Thank you very much.. I never popped open the script to check sh vs bash. It was running in sh. I changed the first line and added +x to bootimg binary. The elf vs sin thing was me hitting tab and not looking :p

All is well now. Thanks!
[Xperia Z5 Android Development] phoenix.xie:
Can it work for XA1 (G3116)?

I have a try but it show that

Rootkernel V5.23 (UNOFFICIAL)

- Unpacking kernel

Found android boot image

Kernel version: 4.4.15-@JMALS@FI-

- Detected vendor: mediatek, device: MT6757, variant: MT6757

- Unpacking initramfs

- Detected platform: 64-bit

- Detected Android version: 7.0
[Xperia Z5 Android Development] 64801965:
At v5.23 the kernel for the installation of kcal module failed in it with my Z5 premium device.
[Xperia Z5 Android Development] YasuHamed:
we are waiting for [MENTION=357342]tobias.waldvogel[/MENTION] to release new script having support for

1. XZs

2.XZP

3. trwp3.11

4.drmfix
[Xperia Z5 Android Development] interestor:
Thank you, all went well using v5.23, but I can’t get into TWRP. I want to make a system backup before I uninstall the bloatware. I try restart with up volume (I actually don’t get a yellow light), I tried power key and down volume. Sony screen will go black momentarily, then come back, but I don’t get into recovery.

I used this rootkernel tool, with the less painful dirty cow method by Mhaha, and used the latest customized AU stock firmware. The TA backup failed, so that didn’t get included. Z5 compact E5823.

How can I get into TWRP? What do I do to make a backup?
[Xperia Z5 Android Development] Klaus N.:
Would you please give me a link to your kernel.sin or kernel.elf? I'll try to patch your kernel ;)
[Xperia Z5 Android Development] phoenix.xie:
OK, I am using this kernel file

https://www.androidfilehost.com/?fid=889764386195913267

from this post https://xdaforums.com/xa1-ultra/development/g3221-built-sources-t3622886
[Xperia Z5 Android Development] Klaus N.:
Ok, it stops the same way as yours. I guess it's because that kernel is a custom one. Would you please provide me the stock kernel right out of the ftf?
[Xperia Z5 Android Development] interestor:
So yes, it seems that I can't get in to twrp recovery. What do you think, something went wrong while flashing, or making the kernel? Is this repairable?

Should I find another twrp and flash it on?

It looks like most versions I find have an kernel, I don't think I should mess with that, right?
[Xperia Z5 Android Development] phoenix.xie:
https://drive.google.com/open?id=0B56zBU4hW4YSQ0Y0Sl9fbTdkb1U

This is the kernel.elf
[Xperia Z5 Android Development] NexusGTS:
So i extracted my kernel.elf file and placed it in the folder with rootkernel_v5.23. My question is how should i root the kernel now? Should i run some .bat file from the rootkernel_v5.23 folder or what? :)
[Xperia Z5 Android Development] Klaus N.:
I've tried, but unfortunately it doesn't work; the device isn't supported with the current version.

Sorry :o
[Xperia Z5 Android Development] zacharias.maladroit:
What ROM version (specific), what device (specific) ?

What steps do you follow to attempt to get into recovery (if possible close to seconds exact, order of buttons, etc.) ?
[Xperia Z5 Android Development] interestor:
Thanks, I have the AU customized from xperiform, 7.1.1 build 32.4A.0.160 on Sony Xperia Z5 compact E5823.

I try the cold start with power key and vol down both pressed; this will get the sony screen to go black for a moment, but various combinations of releasing the buttons do not prevent normal startup. Also I try the proper method with this kernel; restart with vol up pressed, or restart, wait a second then hold vol up (I don't ever get the yellow led).
[Xperia Z5 Android Development] dermaze:
Hello,

I don't know whether it will work with your custom rom, but here's my Xperia z5c 7.1.1 modified Kernel for that build, but Central European customized. It was set to RIC=off and su=permissive, and has TWRP 3.0.1 included. Everything just works in my case.
[Xperia Z5 Android Development] interestor:
Hey thanks. When I made mine, with this tool, I would have answered Y for the options and so should have those. BTW the "customized" rom is just how it is called in xperiform, it is the stock rom.

Would you know, is it possible to flash just a discrete version of twrp, one without a kernel or other add ons?
[Xperia Z5 Android Development] dermaze:
Yes, it seems possible, [MENTION=5813612]sceryavuz[/MENTION] has posted some possible ways here. I have not yet tried or needed to flash TWRP separately, but seen different posts about it, so it should work.
[Xperia Z5 Android Development] interestor:
Awesome thank you, just what I'm looking for.

But still getting into twrp is not quite right. I think I get into recovery, adb devices says recovery, but there is no screen, just uniformly dim. What does that mean?
[Xperia Z5 Android Development] dermaze:
Sorry, as I have never used TWRP after flashing it separately on my z5c, I have never experienced this problem.
[Xperia Z5 Android Development] PhobiaSoft:
I'm still getting the freeze on boot logo despite using version 5.23. Trying to boot on a clean flash of stock Marshmallow 6.01 (32.2.A.5.11). Any ideas on what I might be doing wrong? This is on a Z5 Compact.
[Xperia Z5 Android Development] riedenthied:
No. Because you don't tell us what you are doing.
[Xperia Z5 Android Development] PhobiaSoft:
Just following the guide man.

I flashed Marshmallow with Flashtool, extracted the Kernel, and created boot.img with Rootkernel.

The only options I enabled were TWRP integration and DRM fix. Booting works fine unless you enter TWRP. For some reason after going into recovery and exiting, it hangs on boot.

EDIT: Found the problem. Dm-verity MUST be disabled (at least on the Z5 Compact) to return from recovery. Otherwise you get stuck on boot. Was hoping to do all of my /System edits within TWRP, but at least I know the cause now.
[Xperia Z5 Android Development] Shamoy:
How can I integrate TWRP.img for Xperia X F5121? Also do I run "flash_dk TA.img DK.ftf" in the rootkernel folder or adb folder?
[Xperia Z5 Android Development] Boscep:
hi [MENTION=4120742]munjeni[/MENTION],

I tested your file_contexts tool but it couldn't convert oreo's file_contexts.bin

I will test again if it updated.

thank you.
[Xperia Z5 Android Development] interestor:
I did try your kernel, thank you. It worked, and I got TWRP clearly, but not root. Damn

---------- Post added at 04:23 AM ---------- Previous post was at 03:46 AM ----------

I solved the strange problem of not having TWRP after using this tool. Going thru all steps again from the start, to patch the kernel, I see this: "Skipping TWRP recovery. No kernel modules for 3.10.84-perf-g5e25a09 available" hmm. I search the internet; no answer. I poke around the folders in this tool, and find some similar names, they all have the same contents. I copy one folder and rename it 3.10.84-perf-g5e25a09. I run the tool, it works. The kernel works on the phone - TWRP recovery on Z5c.
[Xperia Z5 Android Development] Raziol:
Will this work with Nougat ?
[Xperia Z5 Android Development] dermaze:
Yes, it does for me (z5c, Stock 7.1.1). You can find the link to the kernel above, in case you don't want to patch it yourself.
[Xperia Z5 Android Development] mingkee:
This kernel patch tool is INCOMPATIBLE with Mediatek platform.

We need a variation for that.
[Xperia Z5 Android Development] Klaus N.:
Yes, in the meanwhile, I know that. So let us hope that there will be any progress :)
[Xperia Z5 Android Development] Marília de Oliveira:
I got the same error as you. Can you fix it?
[Xperia Z5 Android Development] Klaus N.:
This means, DRM fix is working. To get also the FIDO_KEYS working, you'll have to flash the DK.ftf you have to create before as Tobias has described it in the op:

Means, you have to copy your TA-XXX.img into the root folder of rootkernel, then create your DK.ftf via the mentioned command line. Once created, simply flash the DK.ftf via FlashTool. Done :good:
[Xperia Z5 Android Development] Marília de Oliveira:
I am using the most current flashtool and it is not blinking my DK.ftf ... so I will uninstall and install the older version. my bootloader is already unlocked I have backup of my TA and now I am with FW 53 7.1.1 can I do the root procedure from it? if not, what firmware do you recommend so that I can do the procedure without errors?
[Xperia Z5 Android Development] juanpirulo:
I ve been using this tool with .53 firmware and latest flashtool with no error. could you describe how you did the dk.ftf?

have you flash first your new custom boot.img with the drmfix?

. cheers