yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] Klaus N.:
His command was incomplete (missing target):

It should be "rootkernel kernel.elf boot.img" instead of "rootkernel kernel.elf" :p:D
[Xperia Z5 Android Development] 4thfloorcaveman:
Thank you! I've been banging my head against that wall for the last two hours! damn... :P
[Xperia Z5 Android Development] Hamidreza2010:
in first line typed:

rootkernel kernel.elf new_kernel.elf ;)

just that
[Xperia Z5 Android Development] venkat kamesh:
Thank you and

[MENTION=357342]tobias.waldvogel[/MENTION]

Thank you for such a valuable work you did

a small suggestion from me ;)

still superusermod dont work as like other devices

could you please take a look ?

Some how i managed with my rom ( a lot of work needed if Smali )

but can be easily done by editing Ramdisk ( also this guide )

These are my changes to my ramdisk ( and superuser mod worked like charm )

in ramdisk/init.sony-platform.rc

i changed this

user tad
group tad root

to

user root
group root root

And also for TA partition ( z5 ta partition mmcblk0p1 ) in same file

from

chown tad tad /dev/block/mmcblk0p1
chmod 0770 /dev/block/mmcblk0p1

to

chown root root /dev/block/mmcblk0p1
chmod 0777 /dev/block/mmcblk0p1

Note:you will loose only Image-enhancement function

Thank you again

Regards

VK
[Xperia Z5 Android Development] Hamidreza2010:
special thanks

+1

its very nice if [MENTION=357342]tobias.waldvogel[/MENTION] make change this tool for create suerpsuer mode by ourself with this tool and also disable default recovery vibration
[Xperia Z5 Android Development] chinmoy32:
Please help !!!

EDIT : forgot to mention the output file name , my bad
[Xperia Z5 Android Development] mele80:
Try with command "rootkernel kernel.elf boot.img"
[Xperia Z5 Android Development] Klaus N.:
Good morning :) He already did that - see "Edit" ;)
[Xperia Z5 Android Development] mele80:
Ah... Tapatalk didnt show edit at all....bad tapatalk
[Xperia Z5 Android Development] shafiq01:
first of all, thx for your awesome work Tobias W.

I'm going to test a new firmware for Z5C 32.2.A.0.305 (it's not 7.0) not out yet

But could it be possible to have twrp not skip due to the missing kmodules in v5.0

code: Skipping TWRP recovery. No kernel modules for "3.10.84-perf-gf38969a" available

If i do same thing in v4.31 then i'm able to get twrp packed, (but no new stuff, systemless su/xposed etc)

And if i do via 5.0 i get new stuff, but no twrp. it's a dilemma hehe.

I tried to look into the code in rootkernel.sh, but i think it's out of my league to figure this out
[Xperia Z5 Android Development] brendonbk:
i have a issue on e6553,i unlocked bootloader and i make this dk.ftf with my ta backup, the e6553 dont start i flash stock fw and now my bootloader is in Bootloader: unknown and i cant unlock again i cant put a kernel, i dont know what i have to do
[Xperia Z5 Android Development] _LLJY:
.305??
[Xperia Z5 Android Development] mele80:
Also interested
[Xperia Z5 Android Development] Klaus N.:
305 fw rolling out

[MENTION=357342]tobias.waldvogel[/MENTION]

Could you please add support for it, if you find the time?
[Xperia Z5 Android Development] shoey63:
Anyone repacked their kernel with Xposed and it's fully functional in a systemless state?
[Xperia Z5 Android Development] riedenthied:
A little offtopic question: what's the Android patch level of .305?
[Xperia Z5 Android Development] mele80:
August
[Xperia Z5 Android Development] Klaus N.:
My device (E6653) works with Wolfbreak's RXSW MB v1.7.0 atm, with the difference, that I've flashed the repacked 253 stock kernel (features: drm-verity + Sony RIC off, TWRP + SuperSU2.78 R + xposed framework v86 arm64 + drm fix included, except busybox [last one is part of the rom]). Everything works as it should (battery consumption is less than 1%/h) :good:
[Xperia Z5 Android Development] Hamidreza2010:
+1

and please disable default recovery vibration
[Xperia Z5 Android Development] chinmoy32:
AS you know new firmware is available for Z5 series 32.2.A.0.305 with new kernel

I tried with rootkernel-v5.0 but it cant install TWRP into it

it would be great if you could add support for this new firmware :)

Thanks in advance
[Xperia Z5 Android Development] dodo1515:
Hi,same here,no new kernel modules,skipping TWRP recovery...not working on new kernel. [MENTION=357342]tobias.waldvogel[/MENTION] plz.
[Xperia Z5 Android Development] Fragmentation:
Guys, I'm sure Tobias is aware of the new kernel. So let's not spam him with similar messages about it and just wait when the script is updated.
[Xperia Z5 Android Development] shoey63:
That assumes he hasn't left XDA. His last post was August 23.

Edit: The same day [MENTION=4544860]osm0sis[/MENTION] asked again for his binary to be made open source;)
[Xperia Z5 Android Development] Fragmentation:
If he has quit, then there is even more no reason in asking him for support here again and again.
[Xperia Z5 Android Development] shafiq01:
V4.31 works with TWRP and systemless SuperSU, but not systemless xposed.
[Xperia Z5 Android Development] osm0sis:
According to the OP it was already supposed to be open source.. he uploaded a zip file with it all way back, and had promised to upload the new revisions to his git multiple times, which I've been really looking forward to since he's made fantastic strides and done amazing work on making unpackelf support the majority of Sony's variants on the format.

Here's hoping [MENTION=357342]tobias.waldvogel[/MENTION] just took a much needed vacation and will be back to make good on this promise, since it would be a shame for the community to lose such excellent work and such a capable developer. :)
[Xperia Z5 Android Development] sohrab1985:
I fixed the v5.0 and it works with the new kernel.

Download the file from the attachment.
[Xperia Z5 Android Development] Klaus N.:
For me it seems, your fix is only, creating a new folder inside /rootkernel_v5.0/android/twrp_common_kmodules, renamed it to "3.10.84-perf-gf38969a", and put the contents of the "3.10.84-perf-gf1cfa5f" simply into it? I can't believe it's that easy :confused:

Has someone already repacked the 305-kernel and everything - especially TWRP - works as it should?
[Xperia Z5 Android Development] sohrab1985:
Yeap, it was that easy

And everything works just fine.
[Xperia Z5 Android Development] s8m:
yes it works!
[Xperia Z5 Android Development] Hamidreza2010:
TWRP worked but xposed framework not ( cant combined into kernel )
[Xperia Z5 Android Development] YasuHamed:
sir, this does not work with Xperia C4 (E5333) , Android 6.0.1 , kernel 3.1x

infact when i extracted it had BOOT.sin and FOTAKERNEL.SIN files,

i converted to ELF and both didnt get reconize :(

uploading here

https://drive.google.com/open?id=0B3UEmefJMB0iRVZEMkxrcmhudDg

also my device don't have Dt2w feature, can this script modify kernal to support dt2w features?
[Xperia Z5 Android Development] dodo1515:
Did you get errors while using the script? L combine it without errors but haven't tried it yet..
[Xperia Z5 Android Development] Hamidreza2010:
No.

but when you combined xposed framework it will render the kernel unbootable
[Xperia Z5 Android Development] smardu:
For me worked flawless.

Later: xposed is not integrated . Flashing it later from recovery=bootloop.
[Xperia Z5 Android Development] Srtk9599:
how to root xperia z5 e6683

sir i have unlocked the bootloader , tried kernels but it bricked , and sometimes i was not showing my external memory .

how to root it securely and safely with 100% result
[Xperia Z5 Android Development] YasuHamed:
its a long but working method

read my experience at

http://xdaforums.com/z5-premium/development/rooting-xperia-z5-z5p-variants-drm-keys-t3437902

based on work by [MENTION=5410058]KbaB.BroS[/MENTION]

http://xdaforums.com/z5-premium/general/32-1-1-185-stock-modified-kernel-t3355369
[Xperia Z5 Android Development] tuanck2004:
did v5.0 support 32.2.A.0.305 on z5p 6883?
[Xperia Z5 Android Development] Masoud.Ser:
work v5.0 (root kernel) on 305 but xposed framework not
[Xperia Z5 Android Development] venkat kamesh:
for latest version 32.2.A.0.305

i had just updated to 32.2.A.0.305 for my Z5 Dual

i cant live without recovery haha

here is tool where i had small change and compact-able for 32.2.A.0.305 fw

Have fun guys

Click here to download
[Xperia Z5 Android Development] tuanck2004:
tks you! It work fine for me :)

I used your rootkernel and ... bootloop !

help me, i can not entry to TWRP to flash SuperSU :(
[Xperia Z5 Android Development] Klaus N.:
May I ask you, what's the small change you've made? Is it that?

And have you included Xposed Framework into the repacked kernel, and it works?

Thanks in advance!
[Xperia Z5 Android Development] Masoud.Ser:
You test:

http://xdaforums.com/z5-premium/general/32-1-1-185-stock-modified-kernel-t3355369
[Xperia Z5 Android Development] nabeelrazanaqvi:
Guys Xposed is not working after patching kernel .305 even in app purchase is not working with lucky patcher
[Xperia Z5 Android Development] venkat kamesh:
twrp modules are build from Latest 32.2.A.0.305 sources

that is what the change is...

i dont use any xposed.. so i haven't looked for it..

hope you know about kernel modules buddy ;)
[Xperia Z5 Android Development] tuanck2004:
its TWRP missing and ... no superSU :(

and then I downgraded to .253 and wating for new rootkernel

tks a lot
[Xperia Z5 Android Development] WildBit:
hi, I posted somewhere else on xda that I have a repacked 305 with this method, with only exception of twrp not installed. I used previous 253 repacked kernel to install SuperSU 278 (packed in 305) and xposed framework. Everything works... No data wiped

download tft

extract kernel sin from kernel elf

repack 305 kernel.sin with su 278 (twrp not installed)

flash 305 tft with flashtool

DO NOT REBOOT into system

fastboot 253 twrp and install supersu 2.78

DO NOT REBOOT into system

fastboot 305 kernel and then boot into system

poweroff phone after full system restart

fastboot 253 twrp and install xposed v86-sdk23

DO NOT REBOOT into system

fastboot 305 kernel and then boot into system

Done
[Xperia Z5 Android Development] Hamidreza2010:
bro if i do this steps ( for make superuser mod ) , is it need to edit service.jar also?

and second question: how can enable Image-enhancement function again ?

thanks
[Xperia Z5 Android Development] venkat kamesh:
Yes bro

You need to edit services.jar for sure

To make superusermod work

Edit from ramdisk is damn easy

But you need to sacrifice image enhancement

(you can have my kcal module for more than enhancement)

If you need image enhancement and also super user mod

You need lot of work with framework files

As I did with my rom kryptonian ;)

Not easy to explain bro

Good luck buddy
[Xperia Z5 Android Development] Hamidreza2010:
Ok thanks bro just 1 question more

if i should edit service.jar to make superuser mod , why need to edit ramdisk in kernel?

isnt enough to edit service.jar ? ( like KK , LL )
[Xperia Z5 Android Development] tuanck2004:
the e6883_kernel from here works fine for me :)

http://xdaforums.com/z5-compact/general/customized-stock-kernel-32-2-0-305-6-0-1-t3477464
[Xperia Z5 Android Development] shafiq01:
Xposed non-systemless works with *.305 just use the rootkernel 4.31 and after first boot flash xposed. I also tried to copy files from rootkernel 5.0 to 4.31 and vice versa and tried edit the code in rootkernel.sh but no luck. I guess we need [MENTION=220545]tb[/MENTION] engaged first. But soon 7.0 will arrive, so I don't how much [MENTION=220545]tb[/MENTION] will spend time on this. If only I could figure out how to create the kmodules for *.305 then we could have xposed systemless.
[Xperia Z5 Android Development] sceryavuz:
Hi [MENTION=357342]tobias.waldvogel[/MENTION]

I want to Root my E6633 and use TWRP. Your tool can flash SuperSU without TWRP, this is awesome.

I want to use TWRP, but i got this error..
[Xperia Z5 Android Development] YasuHamed:
in folder location

... \rootkernel_v5.0_Windows_Linux\Android\twrp_common_kmodules

u will see many TWRP images for MM kernel , the last one was bieng " 3.10.84-perf-gf1cfa5f"

copy this folder and paste it there itself

rename that folder as 3.10.84-perf-gf38969a

try rootkernel now ;) it will work

see images ;)
[Xperia Z5 Android Development] sceryavuz:
Woow, It works. It might cause any damage? Battery percentage is wrong on TWRP.
[Xperia Z5 Android Development] YasuHamed:
i am using the same kernel set by [MENTION=5410058]KbaB.BroS[/MENTION]

the twrp shows initially 20% but if you keep it running for some time, it will come back to the accurate reading!

- enable the new feature "charging optimization" from SETTINGS>ABOUT PHONE > STATUS. it will control the power volts while charging battery to extend battery life. However i found the batter charging is a bit slow but whatever makes my z5 battery run longer i will do it ;)

- other trivia apps I always install is purify, ram cleaner and root uninstaller to Freeze system apps/ bloatware

- from about phone > software update , i keep auto update disabled. just incase if OTA will install any update and my rooting will be void.
[Xperia Z5 Android Development] Hamidreza2010:
Dear we saw a lots of good tut from you in xda.thanks for that

hope you put this guide also for solve many users problem with superuser mod ;)

thanks a lot
[Xperia Z5 Android Development] sakis_the_fraud:
hello!

The tool works great, but there is a problem.

When I enable dm verity (needed for passing Safetynet check), my phone won't boot.

what should I do?
[Xperia Z5 Android Development] dc0001:
Is this tool support XZ 39.0.A.1.213 or 39.0.A.1.250? thanks.
[Xperia Z5 Android Development] torben5247:
Thanks! Everything works. I flashed supersu and xposed. Everything works. :D:D
[Xperia Z5 Android Development] Klaus N.:
I've repacked the 305 kernel with:

- dm-verity off

- Sony RIC off

- TWRP recovery

- SuperSU (latest v2.78 SR1 renamed to "SuperSU")

- xposed framework (official xposed-v86-sdk23-arm64.zip)

- DRM fix

-

without

busybox!

Result: Everything works like a charm :good:

Thanks [MENTION=4433143]venkat kamesh[/MENTION] for modifying rootkernel_v5 [MENTION=357342]tobias.waldvogel[/MENTION] to "latest rootkernel" :o
[Xperia Z5 Android Development] Hamidreza2010:
greats

thanks to [MENTION=4433143]venkat kamesh[/MENTION]
[Xperia Z5 Android Development] lordemperor:
How do you install SuperSU systemless in this way? I just followed the instructions and SuperSU was installed normally - system modified.
[Xperia Z5 Android Development] amirh8466:
is this way working for xperia z3plus 305 ؟
[Xperia Z5 Android Development] diemadedrei:
Hm, when I use this script for superSU integration, it works, but suhide wont find the installation. When I leave superSU out of the boot.img and try to install it manually afterwards with TWRP, I get a success message on install but just a bootloop afterwards (let it go for about 10-15 times). Any ideas? Z5 using 253 kernel and all questions Yes.
[Xperia Z5 Android Development] Klaus N.:
At first, you've to deinstall SuperSU, and not till then, flash your repacked kernel ;)
[Xperia Z5 Android Development] diemadedrei:
When I flash the new kernel without supersu, it seems gone, since I can't find it and don't have root access then. I tried to uninstall it before though through its menu, but when it rebooted it was still there. So how would I uninstall it correctly?
[Xperia Z5 Android Development] Klaus N.:
Uninstall SuperSU through SuperSU settings, and let it shutdown, but

don't

let it boot up after, but

power off

the device

before booting

! Then connect your device in fastboot mode and fastboot flash the boot.img.
[Xperia Z5 Android Development] diemadedrei:
Thanks, did as you suggested, but with the same outcome unfortunately.
[Xperia Z5 Android Development] Klaus N.:
Sorry, I think, I didn't understand you correctly. When you say

does it mean, only the script went through without any problem, or does your device even work with the kernel you've repacked, and the problem is, that only suhide won't find the installation? In this case I'd suggest to ask in the appropriate thread what to do.
[Xperia Z5 Android Development] diemadedrei:
Yep, the phone works with the repacked kernel and supersu works as well.

So you say suhide should find supersu when packed with the kernel?
[Xperia Z5 Android Development] lordemperor:
How are SuperSU and Xposed integrated system-less-ly? I ran this script with the appropriate zips and got normal, system-modified root and xposed.

It's not a difficult work-around to just flash them system-less-ly after the fact, but seems like this is intended to work?
[Xperia Z5 Android Development] Klaus N.:
The only thing I wanted to say is, what my first step would be: To ask in that thread, is there a way that suhide will recognize supersu, even repacked into the boot.img by this script ;)

---------- Post added at 23:25 ---------- Previous post was at 23:06 ----------

That's not true: e,g., you'll find SuperSU not in /system, but in /data/data.
[Xperia Z5 Android Development] mele80:
Nobody, if you start rooting ur phone it is all on you. But for the experience hard bricking device is not so easy :)

I dont have any experience from anyroot, but if rooting without unlocking bootloader is not possible i doubt that it will backup ur TA, in case you want to backup it
[Xperia Z5 Android Development] YasuHamed:
if your device is UB, you can easily brick it by wrong kernel flashing!

TA backups can only be done on LP kernel!

so downgrade to 5.1.1 root it , extract TA BACKUPS and upgrade it to latest rom then unlockbootloader, flash it with latest modified kernel and flash superSU via recovery! ...
[Xperia Z5 Android Development] Cerhio:
When I flash rootkernel I get this:

- Skipping TWRP recovery. No kernel modules for 3.10.84-perf-gf38969a available

Anybody else get this problem?

Edit: NVM saw the fix a couple pages ago
[Xperia Z5 Android Development] tizzootrain:
So I tried following another guide before seeing this and didn't backup my DRM key and the guide didn't work in getting my phone rooted but it did wipe everything. I then found this guide which got my phone rooted now but noticed my camera does not work - fails to start. I am guessing this is due to not restoring the DRM key.

I know I'm an idiot so I am dealing with that but what features have I exactly lost?!

Also I am struggling to get xposed installed and am installing xposed-v86-sdk23-arm64.zip .

Phone just gets in a bootloop until I use the uninstaller to remove xposed.

EDIT: got the camera working fine. Xposed still does not work though.
[Xperia Z5 Android Development] madsin:
Hi to All.

So this method works on (M4 Aqua E2303) firmware 26.3.A.1.33?

I already extracted kernel.sin from firmware.

Thanks in advance.

Update: It works. on Xperia M4 E2303 with firmware 26.3.A.1.33.

Things that i did:

Extract kernel.sin from above mention firmware, with 7Zip.

With Flashtool extract /edit kernel.sin, to create kernel.elf file.

Put both kernel.elf and SuperSU 2.78 in same "rootkernel" folder

Run the script that tobias.waldvogel mentioned.

In the (script) options:

- There is no TWRP template for msm8916. Install anyway? [y/N] N

- Found SuperSU-v2.78-201609011115.zip. Install? [Y/n] Y

- Install busybox? [Y/n] Y

Now adb flash boot.img created.

Here is my boot image, if you need: http://www39.zippyshare.com/v/smp1HMAj/file.html

Thank you very much.

Greetings. Great tutorial!!
[Xperia Z5 Android Development] swagie:
[MENTION=357342]tobias.waldvogel[/MENTION]

Can you look at a new twrp module for Kernel version: 3.10.84-perf-gf38969a

Rootkernel cant install in latest 305 rom.

Thanks
[Xperia Z5 Android Development] Klaus N.:
Take that one: http://xdaforums.com/showpost.php?p=69082728&postcount=1300. It works with the new kernel. Thanks [MENTION=4433143]venkat kamesh[/MENTION]
[Xperia Z5 Android Development] aiyamoah:
hi everyone,

i need some help. so i bought a used z5 premium from someone not knowing much about rooting and bootloader unlocking and stuff like that, and it turns out the phone is bootloader unlocked. i stumbled onto this thread because i was researching why the camera quality seemed off and i find out that bootloader unlocking removes some features from the phone. can someone explain to me step by step how i can restore some of these features. thanks.
[Xperia Z5 Android Development] Fragmentation:
http://xdaforums.com/z5-premium/development/stock-root-xperia-z5-premium-sony-stock-t3335974/
[Xperia Z5 Android Development] swagie:
Great thanks it worked[emoji106]
[Xperia Z5 Android Development] Hamidreza2010:
I think xposed still didnt work.maybe my mistake.

i do this steps:

1- make kernel with supersu and xposed included ( .305 )

2- flash new 305 fw and wait for boot up.then flash my kernel

3- go to recovery and full deodex my rom.

just: in my deodex zip file , included a script which delete ( app , priv-app , framework ).

is it relate to this script ? ( because some of xposed files stored in framework folder after installed and i fist install xpoed ( because included in my kernel ) then make deodex my rom.

also i cant flash kernel after deodex rom.because i dont have recovery for deodex my rom.

hope can tell my problem.soory for my langauge

thanks all
[Xperia Z5 Android Development] Klaus N.:
Flash the kernel via fastboot!
[Xperia Z5 Android Development] Hamidreza2010:
i did this but get this problem
[Xperia Z5 Android Development] grinna:
it is possible to root the Z3 + dual in MM 305? some of these tutorials here serve him?
[Xperia Z5 Android Development] wd121366:
I have a problem.When my z4 tablet lte use the 5.0 tool,i can't touch the screen. My screen can't work.The kernel is come from the latest tft.
[Xperia Z5 Android Development] osm0sis:
[MENTION=357342]tobias.waldvogel[/MENTION]

Looks like rootkernel_v5.0_Windows_Linux doesn't contain the updated bootimg code for any platform other than Windows.. :confused:

Running strings on bootimg.exe shows the new "More than one section header" error, not present previously..

I verified it works with the old Xperiu U and Xperia S kernel.elf files, but the bootimg for Android and bootimg for Linux still throw the "error: Section header size not 40" for them and don't have the "More than one section header" string. :(
[Xperia Z5 Android Development] denk_mal:
It is the same here: I have tried the download from http://xdaforums.com/showpost.php?p=69082728&postcount=1300 and tried to create the boot.img on Linux and Windows with the same result.

enabling dm-verity and Sony RIC works fine but enabling any of the other optins (TWRP, SuperSU, DRM-fix, busybox) in any combination freeze the touchscreen (no input possible)

I have installed the boot.img temporarly (fastboot boot boot.img) but this should IMHO not make any differences.

Sony Xperia Z4 Tablet with 32.2.A.0.305 (R3C Germany)
[Xperia Z5 Android Development] wd121366:
my English is bad,do you mean you also can't touch the screen?

I have download the old verson,your tool(4.5),and it works.The drm is ok and touchscreen is ok too.Now i use my z4 tablet with the boot made by your 4.5tool is ok.Very thank you for your tool.
[Xperia Z5 Android Development] 99poison:
Hi,

I have M4 Aqua E2312 model. I think this method will work on My M4 Aqua with latest Marshmallow FTF kernel.sin. BTW, I would like to ask you, after flash this modified boot.img, Sony DRM key will re-activate or not in ( *#*#7378423#*#* >> Service Menu >> Service Test >> Security >> Key Unknown Error or OK ??? ) without backup or restore TA partition.

Thank for your test in M4 Aqua,

Kind Regards,
[Xperia Z5 Android Development] risk_06:
Hello

i have the screen touch problem , with rootkernel 5.0 androplus 40v , ..305

can you tell me your procedure exactly, rootkernel ? androplus ? choici ric y/n supersu y/n etc ...

Thanks