yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] tobias.waldvogel:
I was very busy the last months, so there were not that many updates.

Now that Android 7 is out I made a new version to supports it as well.

xPosed is currently not included in but you can still flash it from TWRP if you need it.

The script itself is hosted on github now: https://github.com/tobiaswaldvogel/android_rootkernel

If you interested in the source of bootimg have a look at https://github.com/tobiaswaldvogel/and_boot_tools

;)

Cheers,

Tobias
[Xperia Z5 Android Development] serajr:
And the master has just come back!

Thank you very much!!

Edit:

V5.1 working flawlessly on my F8131 with Nougat fw!
[Xperia Z5 Android Development] TexHuk 3:
Thank you very much! Z5C -7.0 very well
[Xperia Z5 Android Development] maksim_kw:
it would be good to add support for Sony XZ;)
[Xperia Z5 Android Development] bruno$0:
Works like a charm here. 1 question: Can i flash the TA image in su terminal command?
[Xperia Z5 Android Development] anjelz2012:
Thank you very much! Z5P-7.0 working fine: twrp+drm+dmverifity! welcome master!

At the moment of installing supersu the phone does not start, bootloop followed [MENTION=357342]tobias.waldvogel[/MENTION]
[Xperia Z5 Android Development] venkat kamesh:
Awesome bro

Master piece :*

Thank you
[Xperia Z5 Android Development] whalesplaho:
i run rootkernel.cmd but it closes immediately!!
[Xperia Z5 Android Development] sequielo:
[MENTION=357342]tobias.waldvogel[/MENTION]: At first, thanks for you're awesome work!

I have some issue when trying to restore my TA partition. Running

flash_dk

it says it couldn't find the device key.

Here is the output, running manually from my console:

#~/Downloads/z5c/rootkernel$ ./flash_dk.sh TA-26102015.img dk.ftf
- Extracting device key
Could not find device key in TA-26102015.img (Unit 0x1046B)
#~/Downloads/z5c/rootkernel$ ./bootimg readta -i TA-26102015.img -u 0x146b -h
#~/Downloads/z5c/rootkernel$ ./bootimg readta -i TA-26102015.img -u 0x8a2
E5823#~/Downloads/z5c/rootkernel$

Searching in the thread, I found that other users have this image file named differently, althought the file has 2Mb and was backed up using iovyroot v0.4.

I don't know if it might be a bug, or an incorrect procedure that I take. In following post, you gently help you a guy with similar issue: https://xdaforums.com/xperia-z5/dev...-kernel-dm-t3301605/post66336599#post66336599

I can send you the image for further analysis. Let me know if you need something else to try.

Thank you in advance!

PS: I have a Z5 Compact E5823, and I tested these commands with both v5 and v5.1 of your script, with similar results.
[Xperia Z5 Android Development] Gewiz:
Also everything's working fine on my Z5Compact.

Thx Tobias, you are the best!

https://xdaforums.com/showpost.php?p=70754239&postcount=1855
[Xperia Z5 Android Development] agentsandy007:
I've successfully rooted my stock N with this tool, got TWRP

But I am unable to delete bloat ware.

Is it supposed to be like that?

It is going to be supported in the future?

Thank you.
[Xperia Z5 Android Development] venkat kamesh:
[MENTION=357342]tobias.waldvogel[/MENTION]

everything working like charm

In twrp ( xperia z5) it failed to mount sdcard (internal partition)

Could you please take a look on it ?

Thank you
[Xperia Z5 Android Development] MScorpionZ:
And add support for Sony X/X Dual also :o
[Xperia Z5 Android Development] YasuHamed:
seems like

SONY RIC is active

WHERE SONY RIC SWITCH-OFF CHECK POSTED HERE (if you get system mount error while removing bloatware / check this

https://xdaforums.com/sho...5&postcount=92
[Xperia Z5 Android Development] agentsandy007:
OK now I get it.

I've hit N when it asked to disable ric.

Will try with Y.

Thank u
[Xperia Z5 Android Development] Gewiz:
[MENTION=357342]tobias.waldvogel[/MENTION]

If you have time to look into it, it's the same for Z5Compact. However i can go there through \data\media\0
[Xperia Z5 Android Development] tobias.waldvogel:
You are right, basically the link for /sdcard is missing. I will add it in order to make it easier. It seems that it was dropped with Android 7.
[Xperia Z5 Android Development] Hamidreza2010:
seems removed

would you please give another link?

for z5?

thanks
[Xperia Z5 Android Development] tidenhub:
I have a Sony Xperia Z5 Dual (E6683).

- First I flashed E6683_1298-9654_32.3.A.0.372_R1D_E6683_Customized MY_.ftf using FlashTool

- Then I followed [MENTION=4433143]venkat kamesh[/MENTION] steps to created Flashable_TWRP_nougat.zip

- Then I flashed Flashable_TWRP_nougat.zip and SuperSu*.zip via temp twrp kernel

But if I try to delete the bloatware I can't remount /system as read/write. Example: TotalCommander or Link2SD say "Device or resource busy"

Well, I guess it's cause of the enabled Sony RIC, but what could be the problem?

D:\Downloads\rootkernel_only-nougat_Windows_Linux>rootkernel kernel.elf boot.img
- Unpacking kernel
Found elf boot image
Kernel version: 3.10.84-perf-gda8446f
Found appended DTB
- Detected vendor: somc (Sony), device: sumire (Xperia Z5), variant: dsds
- Unpacking initramfs
rootkernel.sh: line 810: ui_print- Adding support for latest Systemless Supersu: not found
- Detected platform: 64-bit
- Detected Android version: 7.0 (sdk 24)
- dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] Y
Disabling dm-verity
- Enable adb Debug? [Y/n] Y
- Sony RIC is enabled. Disable? [Y/n] Y
Disabling Sony RIC
- Install DRM fix? [Y/n] Y
- Creating new initramfs
- Creating boot image
- Cleaning up
- Creating TWRP Flashable Zip
Done
[Xperia Z5 Android Development] whalesplaho:
[MENTION=7343884]TexHuk 3[/MENTION] please can yhu help with tha deoxeded for Z5 N
[Xperia Z5 Android Development] adop40:
Hi, I can't install any zip in TWRP.

I followed all steps, SuperSU works great and I have root, but in TWRP the zip installation fails.

What can I do to solve this problem? I have a Z5p dual

Gesendet von meinem E6833 mit Tapatalk

Edit: I can't mount system in TWRP and Android. Please help me.
[Xperia Z5 Android Development] Gewiz:
Try latest version from OP.

For me still with root and ric disabled, total commander couldn't mount system partition in nougat. Try another. For me ES worked for example
[Xperia Z5 Android Development] TexHuk 3:
In the version deodex problems with bluetooth.

In this everything is fine:https://yadi.sk/d/AntzFY9R3BJwfC

Suitable for Z5
[Xperia Z5 Android Development] YasuHamed:
with new rootkernel5.11

ROOTED but cannot grant RW permisison ON / System Folder.

seems like its not switching SONY RIC off...

----

while on questionare

install busy box :

i went to the ramdisk folder and added " #" before

chmod 0640 /sys/kernel/security/sony_ric/enable

but still gives the same error

ref https://xdaforums.com/showpost.php?p=70595975&postcount=1702

also while installing supersu via twrp i get the following text in red

mount -o bind '/data/media/0' 'sdcard' process ended with ERROR: 255
[Xperia Z5 Android Development] adop40:
Me too. Have the same problems.

Gesendet von meinem E6833 mit Tapatalk
[Xperia Z5 Android Development] ric69:
The biggest problem on Z5c is flashing modified kernel turns "bootloader allowed : yes" to "no", and now can only receive ftf by flashtool.

Anyone has problem ? I don't have TAbackup so my device will stay without drmfix all his life now :p

We are 3 in that case : https://xdaforums.com/z5-compact/he...der-remote-t3547410/post70827470#post70827470
[Xperia Z5 Android Development] mele80:
Isnt this problem always when you unlock bootloader?
[Xperia Z5 Android Development] ric69:
When I try to unlock : flashtool says [FAILED (remote: not allowed)]. Service on phone says BL Allowed : no

Yesterday I tried to restore a MM backup while I was on Nougat and after I had bootloop again and again at sony white pic, I tried to full wipe (w/o sdcard) but for unknown reason It erased all my backup in TWRP on my sdcard (this is very strange)

This morning I tried to downgrade to lolipop and unlock BL but flashtool always says [FAILED (remote: not allowed)].
[Xperia Z5 Android Development] mele80:
I see...i have yes on both. Bootloade unlocked and remote.
[Xperia Z5 Android Development] Zaisesl:
Yes.. i had some apps which stop working. I will try this new one!

But this is for Z5C or it works fine for Z5 too?
[Xperia Z5 Android Development] osm0sis:
Welcome back, [MENTION=357342]tobias.waldvogel[/MENTION]! :D

While you were gone I made some fixes to unpackelf to output the calculated offset values (subtracting base when needed), not output empty files for nonexistent objects, and to correctly handle kernel.elf files where the cmdline is obj[2]. The latter 2 items result in better tags offset output as well for those files.

I was thinking I might rebase from your new repo to maintain your authorship better, so maybe you'll want to hold off on cherry picking or would like me to do a pull request once I'm done, but here are commits in the meantime for your review: https://github.com/osm0sis/unpackelf/commits/master/unpackelf.c :highfive:
[Xperia Z5 Android Development] jets76:
Thanks to all this was tough but got it done. Sony process is totally new to me. I just got my 6683 rooted running MM 32.2.A.0.305 with DRM key intact.

I backed up everything with a file size in TWRP and the stock image runs just fine. If I flash some new roms and want to revert to this nandroid does any manual flashing need to happen? In other words can my custom boot.img be restored with TWRP?
[Xperia Z5 Android Development] Gewiz:
with wich app did you tried?

https://xdaforums.com/xperia-z5/dev...-kernel-dm-t3301605/post70813584#post70813584
[Xperia Z5 Android Development] adop40:
I tried Adaway, Root Explorer and total commander. I can't mount system to change something.

Gesendet von meinem E6833 mit Tapatalk
[Xperia Z5 Android Development] Falenone:
I got 32.2.A.5.11 and whenever I say Y to something in the rootkernel thing the boot.img after flashing gets stuck at the Sony logo.

Am I doing something wrong?
[Xperia Z5 Android Development] YasuHamed:
i tried with ROOT UNINSTALLER. it cannot remove app. i used to in 6.0.1

---------- Post added at 07:16 AM ---------- Previous post was at 06:42 AM ----------

on android 6.01 , stock modified kernel works just find with Twrp intact and using sony original Partitions and drm fixed

all u need to prepare stock modified kernel for .305

you can find it here

http://xdaforums.com/z5-premium/general/32-1-1-185-stock-modified-kernel-t3355369

flash kernel

flash supersu from sd card ( 2.79)

and you are done

---------- Post added at 07:20 AM ---------- Previous post was at 07:16 AM ----------

possible reasons

1. wrong kernel

2. dm varity is still on

use latest rootkernel 5.11
[Xperia Z5 Android Development] Hamidreza2010:
did work on z5 ?

its for Z5C

did you test it bro?

----------------------------------------------------

[MENTION=535343]all[/MENTION] is mount fix for tool?

i mean RIC diabsle
[Xperia Z5 Android Development] Berni-0815:
I built an aosp 7.1.1 rom for my z5c and no uninstaller was able to uninstall anything! This is possibly a bug or feature in all newer roms than 6.nn ...
[Xperia Z5 Android Development] YasuHamed:
ON 6.0.1 i was able to uninstall apps with purify, root installer and uninstaller pro.

infact was able to install xposed also.

solid explorer on 6.0.1 was able to change system folder permissions
[Xperia Z5 Android Development] Gewiz:
Sorry for you guys. Like i said before Total Commander was also not working for me in nougat. I didn't tried Root Explorer or Root Uninstaller and i'm not sure if i tried Adaway. Unfortunately i can't test those apps for you anymore, since i'm back at MM cause i need Xposed.

But you can test if Titanium Backup and ES File Explorer are working for you. I could uninstall system apps with Titanium and could write in system folder with ES.

If that doesnt work for you then i would assume that something went wrong in the rooting process.

But i can only speak for the compact device, maybe there is a difference to yours.

Edit: Also maybe there is a difference because i used v5.1 back then
[Xperia Z5 Android Development] Falenone:
I use the same kernel elf from FTF I flashed on my device. For DRM verify, I said Yes to disable it. Also I am using the very latest one
[Xperia Z5 Android Development] adop40:
Ok, could you please share version 5.1?

I tried also remount reboot fix from NUT. I can't write in the system partition on Nougat.

Gesendet von meinem E6833 mit Tapatalk
[Xperia Z5 Android Development] Gewiz:
Sure, here it is: https://drive.google.com/open?id=0B-RIeaM9FQoMUUR6cHZvTGkyYmM

Hope it's ok for Tobias that i re-up this one for testing.

Also this is not normal. Did you try with Recovery from FOTA?
[Xperia Z5 Android Development] Hamidreza2010:
[MENTION=357342]tobias.waldvogel[/MENTION] i use last version on my z5 but my device didnt root

i tried 3 times.when i check my device with root checker , said phone is not root

i flashed both supersu ( systemless and system mode ) but nothing change
[Xperia Z5 Android Development] adop40:
Thank you for the link.

It didn't work with the version 5.1.

I tried FOTA recovery. It didn't worked. I could only BOOT TWRP. And I was stupid enough to BOOT TWRP -> yet my Z5p dual is hard bricked... :eek::rolleyes::silly::crying:

Yet I have to recover my phone from hard brick. The battery is loading and I'm waiting for the red light...
[Xperia Z5 Android Development] YasuHamed:
what is your device?

same version applies to various variants

---------- Post added at 07:39 PM ---------- Previous post was at 07:37 PM ----------

since sony has pulled back N from Xperia z5, i might be downgrading my self

.. plz clarify for what purpose you use Xposed?

which modules?
[Xperia Z5 Android Development] Gewiz:
I'm sorry for you to hear that, but i couldn't follow you. Why is your device hardbricked because of booting in TWRP?

I got a bunch of modules but the ones i need most are AppOps(to keep Whatsapp from writing in my Contacts and bloat my Cars Handsfree), GravityBox(cause with it, stock is like customrom) and Skycast(is needed to stream from my paytv app to chromecast)
[Xperia Z5 Android Development] adop40:
I installed TWRP as boot image in flashtool. After that I booted in TWRP.

There I installed the Image of TWRP as boot image, not as FOTA. I hadn't the possibility to choose between those 2.

-> I think that I installed TWRP in boot partition twice and deleted the entire boot partition. My phone can't boot up or can be detected in fastboot or flashmode.
[Xperia Z5 Android Development] Berni-0815:
That's the first time I heared that TWRP itself is bootable! I always flash a bootimage (Andro Plus' boot.img or similar) for booting and TWRP only as recovery. That's my way to boot into TWRP... Am I wrong? :confused:
[Xperia Z5 Android Development] jets76:
What were the commands to used to flash TWRP? Are you trying to say that you flashed TWRP as SYSTEM img (rather than RECOVERY) and therefore it boots into TWRP instead of android?
[Xperia Z5 Android Development] adop40:
OK, first I flashed recovery as kernel in flashtool (HotBoot). Bootet manually in TWRP and wanted to install recovery as FOTA and boot.img as boot partition (those 2 steps in TWRP itself).

If I opened the process "Install Image" in TWRP I could only choose the recovery.img (the boot.img didn't appear). And if I choose the recovery.img then I could only install as boot partition not as FOTA.

And here I made the mistake: I installed the 1st time the recovery as boot, entered it and installed it the 2nd time as boot.

The phone is completely dead. I used the last 6,5h my wall charger but there isn't any LED light. I will continue to charge, if that doesn't help then I will eventually open the phone.
[Xperia Z5 Android Development] jets76:
It sounds like you were trying to overwrite the partition TWRP was actually running from. I'd try to get into FLASH mode to wipe and reflash everything with a stock image with flashtool. I am a novice so I could be wrong but I have already made a few mistakes and fixed them myself. Maybe someone else can give more specific help.

Try this thread and read it all before doing anything: https://xdaforums.com/showthread.php?t=1849170
[Xperia Z5 Android Development] adop40:
Thank you for your fast reply! I tried Volume Up, Volume Down, VOL UP + Power, VOL DOWN + Power, Reset + VOL UP, Reset + VOL DOWN, Reset + VOL UP + Power plugged in wall charger, PC and battery pack and tried also unglugged. Nothing happens.

My last thoungt was if the phone doesn't boot anymore in flashmode or fastboot then I can use the testpoint and S1-flashtool. But there isn't any file for Z5p.
[Xperia Z5 Android Development] jets76:
Ok probably better it didn't work I tried to edit my post in time. Just read that whole thread I linked to. Let's keep this thread clean and on topic.
[Xperia Z5 Android Development] YasuHamed:
have you tried moonbreakers edition. ? based on 6.0.1 (.253 of stock)

https://xdaforums.com/xperia-z5/development/rom-rxsw-moonbreakers-edition-t3454984
[Xperia Z5 Android Development] Gewiz:
What for? Why you suggest this to me?

Everything is working fine for me, and never said different.. Why should i downgrade? Also this rom is not available for my decice.

Jets is right let's stay OT, this thread is already bloated enough.
[Xperia Z5 Android Development] _LLJY:
Just flash a custom kernel
[Xperia Z5 Android Development] Stoglin:
FAILED (remote: dtb not found )

C:\Users\user\Desktop\nougat>rootkernel <kernel.elf> boot.img

C:\Users\user\Desktop\nougat>fastboot boot boot.img

creating boot image...

creating boot image - 4096 bytes

downloading 'boot.img'...

OKAY [ 0.027s]

booting...

FAILED (remote: dtb not found)

finished. total time: 0.100s

C:\Users\user\Desktop\nougat>fastboot flash boot boot.img

target reported max download size of 536870912 bytes

sending 'boot' (0 KB)...

OKAY [ 0.035s]

writing 'boot'...

FAILED (remote: image is not a boot image, nor ELF)

finished. total time: 0.058s

PLZ HELP ! What should I do ?? I am using E6833 32.3.A.0.372
[Xperia Z5 Android Development] shoey63:
kernel.elf, not <kernel.elf>
[Xperia Z5 Android Development] fluffi444:
Outstanding work! Looks like you got it!

But no Nugat here ;)
[Xperia Z5 Android Development] fluffi444:
You are insane! :)

Don't know if helpfull:

D:\Sony Z3 compact\TATools>sefcontext_compile.exe
usage: sefcontext_compile.exe [-o out_file] [-p policy_file] fc_file
Where:
-o Optional file name of the PCRE formatted binary
file to be output. If not specified the default
will be fc_file with the .bin suffix appended.
-p Optional binary policy file that will be used to
validate contexts defined in the fc_file.
-r Omit precompiled regular expressions from the output.
(PCRE2 only. Compiled PCRE2 regular expressions are
not portable across architectures. Use this flag
if you know that you build for an incompatible
architecture to save space. When linked against
PCRE1 this flag is ignored.)
-i Print regular expression info end exit. That is, back
end version and architecture identifier.
Arch identifier format (PCRE2):
<pointer width>-<size type width>-<endianness>, e.g.,
"8-8-el" for x86_64.
fc_file The text based file contexts file to be processed.

D:\Sony Z3 compact\TATools>sefcontext_compile.exe file_contexts

D:\Sony Z3 compact\TATools>

No Error message and file_contexts.bin was made....

Original file_contexts and bin in attachment
[Xperia Z5 Android Development] munjeni:
But thats not what I need to know, I need somebody test converted plaintext on phone, I can't test in my z1c since rom which I have have old selinux, need to know if binary file contexts cause "no file context no such file or directory", thats what I'm getting in dmesg
[Xperia Z5 Android Development] Hamidreza2010:
[MENTION=357342]tobias.waldvogel[/MENTION] thanks for your hard work

wait for update your tool

i used last version , i have recovery but my phone is not root and i cant flash anything from recovery ( 6633 , z5 dual sim )

thanks a lot
[Xperia Z5 Android Development] slayerz:
Try this?

http://www.theandroidsoul.com/make-system-writable-android-7-0-nougat/
[Xperia Z5 Android Development] RyTekk:
It seems that the tool has broken init.qcom.post_boot.sh loading, it leads to OS can't set interactive governor and use default one (performance) that may causes battery draining.

I've tried many setup and found that implement supersu by this tool (all remain options are yes) that breaks the init.qcom.post_boot.sh loading (and maybe more). Workaround: flash supersu via TWRP instead.
[Xperia Z5 Android Development] _LLJY:
The governor is set with a different file + post boot

That may not be working as well
[Xperia Z5 Android Development] RyTekk:
What file? I run the purely stock system w/o any change, then try several setup of kernel by using this tool and found that the kernel with supersu implimentation always run with performance governor. You had better try it yourself.
[Xperia Z5 Android Development] YasuHamed:
not working for xperias

i tried...
[Xperia Z5 Android Development] slayerz:
It did help me though, for AdAway and also editing some files in system/etc on Z5P Nougat.
[Xperia Z5 Android Development] Falenone:
I have E6653.

Maybe someone can share 32.2.A.5.11 kernel with the bells and whistles?
[Xperia Z5 Android Development] bam80:
[MENTION=357342]tobias.waldvogel[/MENTION] don't you mind to share your scripts in some public place(GitHub, etc.)? Seems I found a error in them..
[Android One (First-Generation) Cross-Device Origin] bangladeshi:
Screenshot Please :p:p:p
[Android One (First-Generation) Cross-Device Origin] Paper.Cranes:
Nice work, bro!

Keep it up! I love Layers based ROM
[Android One (First-Generation) Cross-Device Origin] tatzuya:
this can use in variant sprout8?? or not
[Android One (First-Generation) Cross-Device Origin] vpk11:
Downloading?????
[Android One (First-Generation) Cross-Device Origin] shaikh adeel:
Its Mean No Need For Gapps????
[Android One (First-Generation) Cross-Device Origin] pixLzd:
You must install gapps bro

This rom using CMTE, no Layers :p
[Android One (First-Generation) Cross-Device Origin] Paper.Cranes:
Yah, unfortunately you're right.

He said its "Layers compatible" on changelog. But on this build, layers has been replaced by CM Theme Engine.

so I'm a bit dissapointed now :(
[Android One (First-Generation) Cross-Device Origin] xdaaritra:
Thank you so much for this ROM!!! It is the best no doubt!!! Found no bug so far... Keep up the good work!!!
[Android One (First-Generation) Cross-Device Origin] pixLzd:
I feel all custom rom mm based (CM/AOSP) supports layers, try it!;)
[Android One (First-Generation) Cross-Device Origin] luckypohlong:
where

Where to report bug...google+ link is not working...so how do i report any bug... When opening battery setting then it force close.
[Android One (First-Generation) Cross-Device Origin] vpk11:
Using this ROM for 4 days now. I hardly found any bug. Nice ROM. The only bug i faced is Camera app force closes when I try to open it.
[Android One (First-Generation) Cross-Device Origin] IcarusLiving:
Help, When I flash this ROM TWRP returns to the splash screen(TWRP logo)

& Flashing the ROM stays incomplete

This don't happen with any other ROMs

---------- Post added at 04:26 AM ---------- Previous post was at 04:24 AM ----------

It could be a problem with your theme, try changing it

Same happened with KKX theme when I open Contacts app
[Android One (First-Generation) Cross-Device Origin] luckypohlong:
U r right, myos theme caused battery fc.
[Android One (First-Generation) Cross-Device Origin] IcarusLiving:
Yes
[Android One (First-Generation) Cross-Device Origin] nurdin-dsg:
downloading :good:
[Android One (First-Generation) Cross-Device Origin] nikobadboy:
when will be a new version of this beautiful rom ?
[Android One (First-Generation) Cross-Device Origin] yabhuva:
Updates ?
[Android One (First-Generation) Cross-Device Origin] shakiraj:
cellular network force stop
[Android One (First-Generation) Cross-Device Origin] hbtkmr:
Stuck at boot logo.I flashed the ROM via phliz recovery.
[Android One (First-Generation) Cross-Device Origin] deathstalker279:
Is the boot animation showing up?