yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] Chito307:
I have successfully installed stock kernel with my ta.img with 3.2 windows tool and rooted with latest super su 2.71 and installed xposed with v81 framework. I followed all instructions carefully and have gotten the first three lines in service info -> service test -> security <key ok>, however in display -> image enhancement there used to be a divider in the sample that would show each image enhancement sample, now it is gone I know this happens when keys are lost. Are my keys really restored?
[Xperia Z5 Android Development] jugglerpl:
I had this situation but after restart screen with two pictures come back :)

Wysłane z mojego E6653 przy użyciu Tapatalka
[Xperia Z5 Android Development] anjelz2012:
I have not managed to create the kernel with my Ta.img, I get busybox.exe stopped working, I'm making that mistake?

View attachment 3709532
[Xperia Z5 Android Development] anjelz2012:
The camera quality is maintained by using a kernel with MT disposito created with this method?
[Xperia Z5 Android Development] josephnero:
Edit thanks a lot OtaruM
[Xperia Z5 Android Development] OtaruM:
Here you go:

https://drive.google.com/file/d/0B-8mnfNkWD7gX01raWstNW1RZnc/view?usp=sharing

Status attached.

Disclaimer: No warranties, just started script as per instructions.

First try to boot WITHOUT flashing for smoke test.
[Xperia Z5 Android Development] josephnero:
A thousand thanks friend.
[Xperia Z5 Android Development] Chito307:
Is it weird that after flashing kernel with my Ta.img I am now on locked bootloader rooted with xposed?
[Xperia Z5 Android Development] russel5:
[MENTION=357342]tobias.waldvogel[/MENTION] great tool, but i have one question, can you make same for other Sony phone like z3c?
[Xperia Z5 Android Development] Chito307:
By restarting the phone? I have and no luck :rolleyes: I'm not even sure If keys are really working
[Xperia Z5 Android Development] jugglerpl:
Chito307, I had locked bootloader now too. When I flashed kernel without TA bootloader was been unlocked. After flashing kernel with TA bootloader was been locked

Wysłane z mojego E5603 przy użyciu Tapatalka
[Xperia Z5 Android Development] Chito307:
Yes that's very interesting... Can you confirm your keys working? Also are only the first three lines in service test -> security labeled key ok?
[Xperia Z5 Android Development] jugglerpl:
Yes, in security I have 3 first lines with Key Ok. I think that we need more confirmations that creating and flashing kernel with TA blocking bootloader.

Wysłane z mojego E5603 przy użyciu Tapatalka
[Xperia Z5 Android Development] Chito307:
I was able to get the split view in image enhancement by deleting file in /data -> credmgr -> credmgr.db

Images seem to have improved however remote play app still shows error like if keys have been modified or removed
[Xperia Z5 Android Development] lounas68:
restore drm keys

hello, can i restore my drm keys and keep my unlocked bootloader, thanks.
[Xperia Z5 Android Development] Klaus N.:
If you follow the instructions as in the startpost described...

...then YES.

If you "really" want want to restore the ta backup, then this will relock your bootloader, and you will loose root btw.

Now I've got a question:

Has someone successfully installed a (with drm fix) repacked stock kernel for amami (D5803), and the device boots up into system?

Thanks in advance!
[Xperia Z5 Android Development] ilovebrazil:
Hi. I have this problem when creating DK.ftf. Please help.

[IMG="TA key error"]http://i.imgur.com/5aauO7r.png[/IMG]
[Xperia Z5 Android Development] botanicfts:
How to make this kernel permissive? is this possible?
[Xperia Z5 Android Development] MagicExe:
Hi ilovebrazil,

the script likes

exact

file names:

So try this in your case: flash_dk TA-28082016.img DK.ftf
[Xperia Z5 Android Development] Nown:
Hi, after installing the latest SuperSU update from the Play Store, SuperSU says that the binary needs to be updated, but fails to do so (and kindly asks me to reboot and retry, which again fails).

I am running the .253 firmware which I repacked with v5 rc4, so I have systemless root, I guess.

What should I do? I guess I could repack the kernel with the latest SuperSU zip, and then flash it again, but is there any easier way?

Thanks!
[Xperia Z5 Android Development] botanicfts:
i got this same issue... i just downloaded supersu 2.77 beta and just made new kernel with it. works for me. i don't know what mean all these name like "system-less supersu and xposed" can someone explain?
[Xperia Z5 Android Development] MagicExe:
Got the same issue too.

By the way, the latest stable SuperSU version is 2.78. ( http://xdaforums.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703 ;rolled out yesterday in Playstore for my mobile; 01.09.2016)

The binary are the files that usually lies under \sytem\xbin.

I tried to copy them from the flashable zip direct into the directory (you've to choose the correct processor instructions sets) . But without success.

The "new kernel method" works for me too.

Alternativ you can flash the zip in recovery mode (TWRP), if integrated in kernel. Its one of the yes-/no-questions, where you can choose it. But will not work on encrypted mobiles at the moment.
[Xperia Z5 Android Development] ilovebrazil:
Yes, i tried this but still had the same error. I think the TA file has problem :(
[Xperia Z5 Android Development] MagicExe:
Oh, im sry. I overlooked that in the pic and saw only the filename. :eek:

The error message suggests to a problem with an incorrect filename in my opinion. As you can see in your second command-try in your pic.

I got the same problem till i used the exact file name. Maybe you look up the filename with "dir". Hope that there is some variance in the filename and test the command with this "new" filename.

Or write the filename extension with large letters (*.IMG).

Ah, maybe try the new version "rootkernel_v5.0_Windows_Linux.zip" or 4.51 in the first post. You're using 4.42 as is can see.

Don't have another idea. :(
[Xperia Z5 Android Development] Hamidreza2010:
[MENTION=357342]tobias.waldvogel[/MENTION] hi

bro i also wait for you disable default vibration in twrp recovery

thanks a lot
[Xperia Z5 Android Development] ciopik:
I want back to LP bezause have problem with batery life on MM.

Can I do rootkernel ROM 32.0.A.6.200 on this method? (and which version)
[Xperia Z5 Android Development] erveemoskovic:
Is it possible to include device drivers in the new boot package? I have a USB LAN device that used to work with my Z1 and it doesn't work with the Z5. I saw more people complaining on the Internet and I think the Z5 just misses the correct driver for it.
[Xperia Z5 Android Development] Bronnel:
I'm dying to get a straight answer, if you say yes to DRM fix, How does it do it exactly, I already have TA backup IMG backed up using ivy root, and put it inside the folder beside other files (rootkernel, rootkernel.sh kernel.elf etc) so the drm fix option picks the keys from the TA.XXXXXX.img file right??

Do I have to flash DK.ftf using flashtool, or put it inside the folder of (rootkernel, rootkernel.sh kernel.elf etc) instead of TA.XXXXXX.img ???

Should I flash DK.ftf after flashing boot.img???

Your Tutorial needs some clarification please
[Xperia Z5 Android Development] Klaus N.:
You have to flash the DK.ftf (that you have generated from your ta backup) with FlashTool via flashmode.
[Xperia Z5 Android Development] Bronnel:
Thank you for replying, So I flash the DK.ftf after or before flashing boot.img with fastboot?

do I need to put TAxxxx.img in the folder where I create boot.img (rooted kernel)?

I really need the answer for these 2 questions please?
[Xperia Z5 Android Development] Klaus N.:
Put your ta backup into the rootkernel folder, and write in the command line "flash_dk <your TAxxxx.img> DK.ftf" (without <, > and "). The result is theDK.ftf. This flash with FlashTool. Imho it's not important, what you do first then. To be on the save side, at first flash the repacked boot.img, then the dk.ftf.
[Xperia Z5 Android Development] Bronnel:
Thank you very much this is the answer I need I already created DK.ftf and flashed

I have another question please answer, If I choose N to Fix DRM then flash boot.img after that flash DK.ftf is this ok?
[Xperia Z5 Android Development] pep086:
Hi guys,

could anyone provide a flashable zip through recovery? im on 224, will it work?

thank you.
[Xperia Z5 Android Development] Klaus N.:
No, you have to give the boot.img the information to recognize the flashed DK.ftf. Just repack a new boot.img (say "Y" to drm fix) and flash it.

The DK.ftf you don't have to flash again, it will be untouched.
[Xperia Z5 Android Development] Bronnel:
Thank you, God bless you, you deserve to be appreciated
[Xperia Z5 Android Development] ciopik:
I repeat my question
[Xperia Z5 Android Development] Klaus N.:
Just give it a try; afaik, something (e.g. SuperSU and Xposed) doesn't work on lp...
[Xperia Z5 Android Development] dario2510:
I've done, confirmed and all done, but when i try to install xposed installer, it says that i have to install xposed framework first!

What can i do?
[Xperia Z5 Android Development] Klaus N.:
You have to take the correct apk. Go here: http://xdaforums.com/attachment.php?attachmentid=3383776&d=1435601440
[Xperia Z5 Android Development] dario2510:
this is the one i already used.
[Xperia Z5 Android Development] .corrupt.:
When systemless SuperSu is installed with this script, it breaks systemless Ad-Away. I've been trying to add host-based ad-blocking to my boot image but to no avail. Both by adding etc/hosts to install or adding a function to the script, the hosts file will appear in /vendor/etc/hosts but won't automatically replace /etc/hosts or /system/etc/hosts.

I've been trying to manually mount -o bind /overlay/etc/hosts /etc/hosts but apparently android mount doesn't support bind on files. So I'm guessing I have to add that line to one of the init scripts (on post-fs maybe?). Can you give me any pointers?
[Xperia Z5 Android Development] Klaus N.:
Ok. What device to you own, what android revision, and which version of xposed framework have you used for repacking?
[Xperia Z5 Android Development] dario2510:
I've got the z5 compact and i havr used this one: xposed-v86-sdk23-arm64.zip
[Xperia Z5 Android Development] guidosl:
Can remove system applications? for example with root explorer

for this need disable DM-Verity and SONY RIC?

thanks
[Xperia Z5 Android Development] Bronnel:
I can't seem to get xposed framework working, I installed and activated some modules but non of them take effect (I checked the list of working modules in MM and they are compatible), the installer says (The xposed framework is not installed, please download the latest zip from xda and flash it manually via recovery )

here is what I did from begining

My device is Sony Xperia Z5 Dual (E6633) 32.2.A.0.253 MM 6.01 Stock ROM , bootloader unlocked, I flashed DK.ftf after flashing the boot.img

- Unpacking kernel
Found elf boot image
Kernel version: 3.10.84-perf-gf1cfa5f
Found appended DTB
- Detected vendor: somc (Sony), device: sumire (Xperia Z5), variant: dsds
- Unpacking initramfs
- Detected platform: 64-bit
- Detected Android version: 6.0.1 (sdk 23)
- dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] Y
Disabling dm-verity
- Sony RIC is enabled. Disable? [Y/n] Y
Disabling Sony RIC
- Install TWRP recovery? [Y/n] Y
Installing TWRP
Compressing TWRP image
- Found SuperSU-v2.76.zip. Install? [Y/n] Y
Stripping SuperSU app
Adding service entry for SuperSU
- Found xposed-v86-sdk23-arm64.zip. Install? [Y/n] Y
- Install DRM fix? [Y/n] Y
- Install busybox? [Y/n] Y
- Creating new initramfs
- Creating boot image
- Cleaning up
Done
[Xperia Z5 Android Development] dario2510:
I've succeded using this one: http://xdaforums.com/xposed/material-design-xposed-installer-t3137758

But now i can't flash busybox, it says "signature verification failed" and if i try to install it from play store it says "it looks like the installation of busybox was not successful. try installiing to a different location" but i've tried all of the su/bin system/bin etc and nothing changed. What can i do?
[Xperia Z5 Android Development] Klaus N.:
Yes, I also use the Xposed Installer apk you linked. Obviously, the original alpha4 apk doesn't recognize the Xposed framework, if it's repacked within the boot.img.

What do you mean by "can't flash busybox"? You don't have to install a busybox installer, e.g. from playstore. Alternatively, repack a new boot.img without busybox, and then install a busybox installer.

@Bronnel

Deinstall the Xposed Installer apk and give the installer @dario2510 linked a try.
[Xperia Z5 Android Development] dario2510:
i tried from terminal emulator and result is "permissione denied". what could i do?
[Xperia Z5 Android Development] Klaus N.:
Just try

#su <enter> and then the quoted command (without "#", indeed).
[Xperia Z5 Android Development] dario2510:
1|u0_a239@E5823:/ $ #su <enter>
cho 0 >/sys/kernel/security/sony_ric/enable <
/system/bin/sh: can't create /sys/kernel/security/sony_ric/enable: Permission denied
1|u0_a239@E5823:/ $
[Xperia Z5 Android Development] dario2510:
So i should modify again the kernel? What do i need to change?
[Xperia Z5 Android Development] Bronnel:
I uninstalled xposed then installed the one from dario link and the result is the same,no xposed module working. But it says xposed framework is active, what should I do next?
[Xperia Z5 Android Development] Klaus N.:
Open the Xposed app, push the upper right 3 dots, then soft reboot, and after booting up choose hard reboot. Done.

---------- Post added at 19:05 ---------- Previous post was at 19:02 ----------

Sry, I've never tried that command, and I've always repacked the kernel with Sony RIC off.
[Xperia Z5 Android Development] dario2510:
May i just repack and reflash the kernel or do i have to repeat all the steps from this tutorial ( http://xdaforums.com/z5-compact/general/summary-tutorial-root-sony-xperia-z5-t3360515 )?

Will i lose everything again?

Thank you anyway
[Xperia Z5 Android Development] Klaus N.:
You only have to repack the kernel and fastboot flash it, that's all.
[Xperia Z5 Android Development] Bronnel:
Finally its working, the reboot did the trick, I also installed busybox from play store and works fine, thank you
[Xperia Z5 Android Development] dario2510:
Solved in this way, thank you!
[Xperia Z5 Android Development] Bronnel:
I wanted to test integrating superSu and Xposed in the boot image but I get bootloop, what is the solution?

here is the kernel I just used
[Xperia Z5 Android Development] Klaus N.:
The repacking went through flawlessly.

But before flashing that boot.img, you've to

1.) flash the old boot.img (the one without SuperSU and Xposed) and reboot device

2.) deinstall the SuperSU apk (I don't know, if there's another [better] solution, but I did it by opening SuperSU > "settings" flag > tapping on "Switch superuser app" > turn off the phone by holding both <power> and <vol+>)

then

3.) flash the xposed-uninstaller-20160829-arm64.zip via twrp

4.) power off the device

5.) connect into fastboot mode and flash the new boot.img

6.) reboot
[Xperia Z5 Android Development] Bronnel:
Z

I did exactly as you said and it worked thank you again, you helped a lot
[Xperia Z5 Android Development] Bronnel:
One last question about busybox, Do you recommend to install it to boot image, I know tobias prefer not to install it due to security reasons, but if I install what difference does it make?
[Xperia Z5 Android Development] Klaus N.:
I've installed RXSW Moonbreakers Edition (based on 32.2.A.0.253 fw) [MENTION=2822871]Wolfbreak[/MENTION] on my device (E6653).

As I want to use Xposed, I repacked the kernel from the stock ftf

- at first with V5.0 on Windows 10

- 2nd with V5.0 on Linux Mint 18

Every time, after booting, I've let it settle, then I did a Antutu benchmark, with the following results:

- with the kernel, repacked on Windows: ~ 82,300 pts

- with the kernel, repacked on Linux: ~ 92,400 pts

Weird... :confused:
[Xperia Z5 Android Development] .corrupt.:
The whole point of ramdisk overlays is to leave the system partition untouched so both dm-verity and Sony-RIC can be active, thus providing protection against malicious apps, and you still get the benefits of additional functionality through root, xposed, and busybox. So unless you absolutely need to modify the system partition, for example because you need host-based ad blocking or want to replace your emoji set, using the ramdisk overlay should be the way to go. And it provides the additional benefit that you only have to replace the boot image, should things go wrong. If you messed up your system partition, you'd have to completely reflash.
[Xperia Z5 Android Development] pablo2002:
Everything works perfectly, thankssss

This tutorial is excellent !!! I followed all the steps and everything worked perfectly . Now I have Z5P dual E6833 with root and TWRP , thank you very much you are 're a genius
[Xperia Z5 Android Development] blue4you:
Is there any solution to use SuperSU 2.78SR1 and su-hide with rootkernel?

http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

http://xdaforums.com/showpost.php?p=68717098&postcount=448

I get root access with rootkernel 2.78SR1 in boot image but a can't install su-hide.
[Xperia Z5 Android Development] Mario.D:
It works:D

Im playing pogo again with root:))

Install the supersu you have tried and let the phone reboot.

After that install suhide and let it boot up.

In the terminalemulator wright su to have full rights.

After that type this

/su/suhide/add UID

Replace UID with the numbers from the app you want to hide su from

Skickat från min E6653 via Tapatalk
[Xperia Z5 Android Development] blue4you:
Did you use supersu in kernel oder do you use a kernel without supersu and flash it with TWRP?

With suhide I had some issue. Titanium Backup don't get root and Root Explorer only starts with white screen and hang up.
[Xperia Z5 Android Development] Mario.D:
i flashed it with TWRP
[Xperia Z5 Android Development] vinzai92:
Hi, I'm using Z2 device running 6.0.1 MM .291 stock firmware. I have a backup of TA partition using BackupTA 9.11 but it doesn't seems to work with DRM fix,

in the "Service Tests - Security" I get "[Unknown error][Active]" on lines "MARLIN", "CKB" and "WIDEVINE" instead of "[Key OK][Active]"

If anyone tried using TA.img from BackupTA 9.11 and got it to work ?

EDIT: after searching and reading through and through, finally got things to work as intended. Been meddling with the phone for few days trying to get it fixed up. Thanks alot!!
[Xperia Z5 Android Development] Klaus N.:
Have you read this in the op:

Btw., you've to flash the result (DK.ftf) in flashmode via FlashTool.
[Xperia Z5 Android Development] Ninoh-FOX:
Could you add support for Xperia M5 6.0.1 please?

Enviado desde mi E5603 mediante Tapatalk
[Xperia Z5 Android Development] SuatYRDGN:
Awesome work.
[Xperia Z5 Android Development] scorelord:
4.3 Support for older Lollipop added

Butttt...

[scorelord] C:\Users\heror\adb>rootkernel kernel.elf boot.img

- Unpacking kernel

Found elf boot image

Kernel version: 3.10.49-perf-g75e6207

- Detected vendor: somc (Sony), device: suzuran (Xperia Z5 compact), variant: row

- Unpacking initramfs

- Detected platform: 64-bit

- dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] Y

Disabling dm-verity

- Sony RIC is enabled. Disable? [Y/n] Y

Disabling Sony RIC

- Skipping TWRP recovery. No kernel modules for 3.10.49-perf-g75e6207 available

- Install DRM fix? [Y/n] Y

- Install busybox? [Y/n] Y

- Creating new initramfs

- Creating boot image

- Cleaning up

Done

Yeah, I want lollipop because of bluetooth issues...

E5823_Customized NOBA_1298-7782_32.0.A.6.200
[Xperia Z5 Android Development] torben5247:
have followed the tutorial using the rootkernel 5_0.

But the boot.img i am creating have twrp, but twrp is not able to mount any partition exept microsd.

I have tried with supersu in the rootkernel folder and without an it does not make any difference.

I extract the kernel.img from the tft file.

In flashtool i extract kernel.img so i have the kernel.elf

I run the script say yes to all the questions.

The script create the boot.img.

I flash it to the phone power up, volume down i get a amber colour led twrp starts but i cant mount any partitions.

If i flash the androplusv36 boot.img i get full working twrp and a purple led when boot up. And i can mount all partitions.

So you good people what im a doing wrong?
[Xperia Z5 Android Development] sirdoha:
Just a very noob question, where is thekernel product (the kernel we obtain after using the tool)?
[Xperia Z5 Android Development] celderic:
Press volume up, not down.
[Xperia Z5 Android Development] Klaus N.:
It's in the same folder you've put in the kernel.elf: Take a look inside the parent folder (= rootkernel_vX.XX_Windows_Linux), there must be "boot.img", if you did follow the instructions ;)
[Xperia Z5 Android Development] torben5247:
Der celderic.

Thanks for the answer.

I press volume down and my phone boots into twrp. But twrp can not write or delete in system etc. Are you serious about pressing volume up will fix my issues?

After flashing boot.img do i also have to flash the rootkernel 5_0. Zip in twrp?

I have not tried that, but i dont think that is the right way to do it......
[Xperia Z5 Android Development] celderic:
Volume down will boot from the recovery partition (so you must of flashed TWRP previously)

Volume up boots TWRP from the kernel :)

No the rootkernel 5.0.zip is only to repack the stock kernel on your computer.

Also did you disable dm-verity and Sony RIC when you repacked the kernel? You won't be able to modify your system partition unless you do. Make sure your system isn't mounted read only in TWRP.
[Xperia Z5 Android Development] torben5247:
Thanks celderic

That did it, i have spent hours getting this working...... And then it is me doing such a stupid mistake....... Thank you very much!
[Xperia Z5 Android Development] Bronnel:
Is it possible to get superuser mod (services.jar patched) working with stock kernel, because it only works with custom kernel like sunkernel?
[Xperia Z5 Android Development] Hamidreza2010:
I think its not related to this thread

You can make it for yourself (services.jar patched)
[Xperia Z5 Android Development] Bronnel:
I know it may not be related, but I tried different methods to patch services jar but non of them work with stock kernel, is there something that can be disabled to work with patched services.jar?
[Xperia Z5 Android Development] Klaus N.:
Selinux is set to restrictive as stock, while on custom kernel it's set to permissive.
[Xperia Z5 Android Development] Hamidreza2010:
HHHMMM

You can use this:

http://xdaforums.com/crossdevice-dev/sony/xposed-super-user-mode-x-v1-0-0-t3383183
[Xperia Z5 Android Development] Bronnel:
Is there a way to set it to permissive on this kernel?

Thank you I already tried that, like I said its not working with the stock kernel.
[Xperia Z5 Android Development] rrvuhpg:
You can try to edit the cmdline of the boot.img

Unpack with Carliv Image Kitchen, edit cmdline and repack.
[Xperia Z5 Android Development] Bronnel:
Ok I unpacked he boot.img there is a file boot.img-cmdline, but how to edit and edit what exactly? thank you for your help
[Xperia Z5 Android Development] Klaus N.:
Have you already tried this: https://f-droid.org/repository/browse/?fdfilter=Selinux+Mode&fdpage=1&page_id=0

But I think, we should stay on topic here ;)
[Xperia Z5 Android Development] Bronnel:
Thank you so much, I tried this amazing tool and it worked , now I have superuser mod working on stock kernel, I litterally dreamed of this, thanks alot
[Xperia Z5 Android Development] Hamidreza2010:
[MENTION=357342]tobias.waldvogel[/MENTION] i extract your tool into root of drive G and put my kernel.elf or boot.img ( try both of them ) and supersu.zip also in drive G.

try to extract kernel and do all step and answer all question but final get this error ;

Edit :

Solved ;)
[Xperia Z5 Android Development] 4thfloorcaveman:
How did you solve?