yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] WildBit:
No worries man... Thanks for asking, it´s one of those crazy problems and to make it worst it´s the type of service that register one device per month with one swap per month. Basically I have a full month subscription on this phone now so either it works or I have to wait one month before I can assign another.

I know man...it´s really weird and fortunately the only one giving problems
[Xperia Z5 Android Development] tobias.waldvogel:
I think next week I will have some time to have a look at this[emoji6] . At a first glance it sounds like widevine, which should work.

Gesendet von meinem E6683 mit Tapatalk
[Xperia Z5 Android Development] WildBit:
Let me kow how I can support you :good:
[Xperia Z5 Android Development] mossywell:
E6683 (dual)

Downloaded SG ROM 253 and installed it. Extracted the kernel.

Ran the script and it worked except for one error cp: can't stat 'supersu/arm64/sukernel': No such file or directory

No root after flashing the boot.img (but I do have TWRP).

I guess I need to read the 111 pages of this post - the answer's probably in there somewhere. :)

PS. I'm new to the world of Sony - I've come from HTC, Samsung and LG. Wow - Sony do things differently! :)
[Xperia Z5 Android Development] tobias.waldvogel:
Which SuperSU version are you using?

Gesendet von meinem E6683 mit Tapatalk
[Xperia Z5 Android Development] mossywell:
2.46

OK, I'm being stupid - wow I need a coffee (late night last night!). With all the "getting used to Sony", I seem to have forgotten to flash the SuperSU zip in TWRP!

That's done now. Unfortunately, I now have a boot loop, but that's a different problem I can look into.
[Xperia Z5 Android Development] NamenIos:
If you flash supersu you place it into /system by default afaik. That means you have to either disable dm-verity before you flash it or better use supersu with this script and integrate it into boot.img instead of /system. You can revive you phone by flashing only the system partition from the ftf in flashtool, that way you have your unmodified /system again.
[Xperia Z5 Android Development] WildBit:
Flash SuperSU 2.76 with recovery and you should be ok...
[Xperia Z5 Android Development] mossywell:
Yes, I did disable dm-vertify first - I saw that in your OP. :) Re reviving it, just re-flashing system.sin now. That's for the tip - I was about to reflash the whole image. :)

Ahhhh... OK, that sounds like what's needed. I'll try that. Thanks.
[Xperia Z5 Android Development] PhobiaSoft:
I unlocked my bootloader before backing up my DRM keys unfortunately, and lost several things including the low-light camera and the Fingerprint Reader. I flashed an Alpha of CyanogenMod 13 in order to keep Fingerprint Reader functionality, but I am looking to return to a stock ROM since the Z5C camera doesn't open on CM13 yet. Is there a way I can restore a functional Fingerprint Reader on a rooted Stock ROM at this point, or is it too late for me since I do not have a DRM key backup?
[Xperia Z5 Android Development] celderic:
Fingerprint Reader works fine on stock, i have no DRM keys.
[Xperia Z5 Android Development] PhobiaSoft:
Hm... that certainly wasn't the case for me. What region, build number, etc. are you on? I could always flash the stock that you are running.
[Xperia Z5 Android Development] celderic:
E6653 UK

[ROM][E6653] [6.0.1] 32.2.A.0.253 Slim Stock

Just realised you have the z5c, this is for the z5.
[Xperia Z5 Android Development] PhobiaSoft:
Ah, well thanks anyway. I'll try to find a UK ROM for the Z5C and see if functionality returns.
[Xperia Z5 Android Development] Leomoro:
Hi everyone, Anyone know if this method works with hong kong firm 32.2.A.0.253 ? :good:
[Xperia Z5 Android Development] nabeelrazanaqvi:
Yes it works. I am using with same build number but different region
[Xperia Z5 Android Development] tommy1616:
hello, did you consider the support on X series?

Thanks!
[Xperia Z5 Android Development] the_brad:
[MENTION=357342]tobias.waldvogel[/MENTION] do you know a way to create a recovery-image of your files, that come with this mod? I usually use sunkernel but it misses a recovery and yours is the only one, that works without any caveats ;) Any other one, I tried have more or less major flaws such as wrong temperature, wrong battery, non-working MTP, etc...

I use a Z5P (E6853).
[Xperia Z5 Android Development] mossywell:
Worked a charm: 2.76 works, 2.46 doesn't. Maybe worth adding that to the OP? Anyway, thanks for your help.
[Xperia Z5 Android Development] erveemoskovic:
There is this small hint in the OP: "It did all the tests with 2.71, but newer versions should work as well."
[Xperia Z5 Android Development] bufordtjustice:
I'm having some problems here :/

I have the Z5 dual E6633 running RoamAur-v4.2.1 6.0.1fw.224 but this rom has the fingerprint issue, and I would try to upgrade for .253

All roms with .253 results in red light and bootloop

Flashed stock 32.2.A.0.253 / R7C with succes flashtool (no wipe)

Extracted kernel sin and kernel.elf

Flashed my keys TA with succes

So far so good, but with rootkernel_v5.0_rc4_Windows_Linux the trouble begins.

Found elf boot image

Kernel version: 3.10.49-perf-g83fc9bc

- Detected vendor: somc (Sony), device: sumire (Xperia Z5), variant: dsds

- 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] N

- Install TWRP recovery? [Y/n] Y

Installing TWRP

Compressing TWRP image

Skipping SuperSU integration. Only supported for Android 6

- Install DRM fix? [Y/n] Y

- Install busybox? [Y/n] N

- Creating new initramfs

- Creating boot image

- Cleaning up

Why did it skip SuperSU v2.65 / 2.71 /2.76 all same, this rom is an Android 6?

Flashed the boot.img anyway, but it resulted in red light after sony logo and a reboot to TWRP (I did not touch volume down)

used twrp to recover my backup back to .224
[Xperia Z5 Android Development] Mario.D:
It seems like you are using a elf from Android 5.

Did you extract the elf from the image you are flashing?

Skickat från min E6653 via Tapatalk
[Xperia Z5 Android Development] bufordtjustice:
Yes I did extract it from the image. Can there be some faulty ones at xperia firm?

It has this label:

CDF: Customized CE1 (1298-7210)

Firmware: 32.2.A.0.253

Sendt fra min E6683 med Tapatalk
[Xperia Z5 Android Development] bufordtjustice:
My mistake, I must have extracted elf from a older firmware. It worked with supersu now, and I included xposed as well. Each time I restart my phone android is optimizing all apps, and it takes ages. Is that the xposed and is there a better alternative to install this?

Sendt fra min E6633 med Tapatalk
[Xperia Z5 Android Development] CrazyMan.Gomel:
Hello.

First of all, thanks for great mod and all work on it.

All is perfect, all is working..or I think, it worked. But now it isn't working for me.

My device specs:

Xperia Z3 compact

Android 5.1.1 (23.4.A.1.232 Customized RU)

Steps I made so far:

I have backup of TA partition (made with help of BackupTA and TWRP, I tried both of them).

I managed to get kernel.elf from *.ftf of ROM with help of FlashTool.

Made all steps from the first post of this thread (I used v4.51 script, not the latest one)..managed to get customized boot.img and DK.ftf.

Then I unlocked bootloader, flashed new boot.img. After that without starting Android I managed to flash DK.ftf. Reboot and as I said, all was working. Until I entered in service menu..

Problem is:

In the "Service Info - Configuration" I get "Bootloader unlock allowed: yes" instead of "Bootloader unlocked: yes" (this is good sign)

In the "Service Tests - Security" I get "[Unknown error][Active]" on lines "MARLIN", "CKB" and "WIDEVINE" instead of "[Key OK][Active]" (this is bad; after restoring boot to stock and restore TA backup those errors dissapeared, so this is not a problem related to a backup or anything..)

What steps should I make to fix this problem with lost keys? Am I the only one, who faced with this problem?

P.S.: I tried to search, but all I see was problem with FIDO_KEYS (or something like this), all others related problems, that I found, was solved without any instruction for solving them or with steps, that not helped me so far..
[Xperia Z5 Android Development] Klaus N.:
Backing up the ta partition is only possible as described here: http://xdaforums.com/showthread.php?p=66141387

Have you exactly made these steps?
[Xperia Z5 Android Development] rolo143:
Hi guys. I want to know if this method still working with latest firmware .253

Im still with 224 fw and I have supersu, recovery and xposed framework. I wanna upgrade to latest fw but I wanna know if everything's working, because someone said twrp wasn't compatible with 253 stock kernel or something like that. Also how is battery life with this version?
[Xperia Z5 Android Development] simonwil:
Worked beautifully for me.
[Xperia Z5 Android Development] RyTekk:
TA Backup image is used to restore FIDO Key which is only available on Z5 line up (I think). You said it worked, you mean it worked with older version? So just back to it since this is Z5 section and the author doesn't have the device for testing, you can't expect a lot for "unofficial" support.
[Xperia Z5 Android Development] xxera:
Does anyone use Threema and can report if it's working now?

Edit: If anyone wonders, Threema works for me with .253, SuperSU v2.76 and xposed v86.
[Xperia Z5 Android Development] CrazyMan.Gomel:
It seems, like this tool making all, that another tool does (it is unmaintained, but it is doing its thing as well): http://xdaforums.com/showthread.php?t=2292598. I think so, because backup from one tool can be used for other one and can be succesfully used for restore TA partition (this is what I did so far, now all keys active and no errors).

But I can confirm, that I've tested TA backup from tool you mentioned (today), but without any luck.

Oh, are you shure? I think, that this tool is patching those 3 keys (MARLIN, CKB, WIDEVINE) as well.

For proving my thoughts:

Here FIDO_KEYS not working, but those 3 I mentioned does: http://xdaforums.com/xperia-z5/deve...-kernel-dm-t3301605/post67892723#post67892723

Here is another one with all 4 keys active: http://xdaforums.com/xperia-z5/deve...-kernel-dm-t3301605/post66269898#post66269898

And there is more.

I said, that I thought this is working unless I opened service menu (I was so happy, that forgot to do "Service tests - Security" thing, only checked "Service Info - Configuration"). So no, it isn't working, it is just me thinking so :)

I know, that this is z5 section, so I'm not complaining about it..but I can find some messages (kind of) about z3 in this thread, so I thought, that I can fix this problem.

Another strange thing, that this mod is working for other people with z3c (I read "happy words" on russian forum "4pda"; for them it is working just fine, all keys present, unlock status allowed, not unlocked; but only thing, that I missed, is that they using newer software (Android 6.0), so that may be a thing). I'll try to ask them for more information..

Anyway, thanks for answer..
[Xperia Z5 Android Development] RyTekk:
Did you try to activate X-Reality and see the differences? Well, I was talking about FIDO Keys and TA Backup, I didn't talk about the rest three keys.
[Xperia Z5 Android Development] pokemon1122:
Hi, I am no way a developer but understand few basic things like flashing, recovery, fastboot etc. So please ignore my lack of knowledge on this subject. I have Xperia Tablet Z (pollux_windy) and I am happy with latest version of stock ROM it has i.e. 5.1.1 LP. I have rooted it as well and everything is working as expected.

Only thing that I wanted, but missing in my tab, is a custom recovery e.g. TWRP as it's stock kernel does not support any recovery. I gathered from the TWRP website that boot images of stock kernels can be repacked to allow you to use TWRP from the FOTAKernel partition and boot image that I have installed must include the ramdisk extraction utility.

Does your tool anyway help us to achieve the same? Thanks in advance!

P.S. I could use xNuts dual recovery which is working fine with the stock ROM however I do not want to use dual recovery and also the TWRP it has is old version. I wanted to have latest version of TWRP (i.e. v3.0.2.0). Thanks.
[Xperia Z5 Android Development] erveemoskovic:
If you use this tool and only answer yes to the TWRP question then I think it does what you want/need.
[Xperia Z5 Android Development] pokemon1122:
Thanks. However I do not see support for pollux_windy e.g. there is no such folder called 'twrp_pollux_windy' and hence while trying to integrate twrp it is failing. Can OP or anyone please add support for pollux_windy (Tablet Z Wifi)?
[Xperia Z5 Android Development] nicknack619:
hi, first thing thank you very much, it works for FW 253, i ran the code, but unfortunately i cant choose to not disable SONY RIC, to instal TWRP, etc. Can i know why? i ran the code using cmd.exe
[Xperia Z5 Android Development] the_brad:
[MENTION=357342]tobias.waldvogel[/MENTION] long time no answer ;)

Do you think, you can help me?
[Xperia Z5 Android Development] asilviug:
noob under stress :)

editing
[Xperia Z5 Android Development] Mario.D:
These things should work without the dk file.

Do you have a log of then you created the boot (kernel) image with the script?

Skickat från min E6653 via Tapatalk
[Xperia Z5 Android Development] axel007:
No TWRP or Busybox

I'm on a E6553 and have flashed Android MM6.0.1 , specifically Customized HK_1294-9654_32.2.A.0.253_R9C

When I run the tool, I am told that creating TWRP Recovery is being skipped because no kernel modules available for 3.10.84-perf-gf1cfa5f.

Busybox isn't even mentioned in the dialog.

Should I just proceed anyway? Can I install TWRP and Busybox later?
[Xperia Z5 Android Development] Klaus N.:
It seems you took not the latest rootkernel version (see startpost).
[Xperia Z5 Android Development] axel007:
Thanks, Klaus. I used version 4.51. So you are saying I should use version 5?
[Xperia Z5 Android Development] Klaus N.:
Yes. When 4.5.1 was released, 253 fw hasn't been released.
[Xperia Z5 Android Development] axel007:
Thanks. You are right, and it worked.
[Xperia Z5 Android Development] tobias.waldvogel:
I think in the meanwhile we had sufficient tests to release version 5.0

I will back home this evening and update the first post with all changes and details about it.

BTW thanks to all the contributions in my absence. [emoji2]

Gesendet von meinem E6683 mit Tapatalk
[Xperia Z5 Android Development] Hamidreza2010:
[MENTION=357342]tobias.waldvogel[/MENTION] hi

bro can you disable default vibration in twrp recovery?

i disable it but turned to active in next reboot.

this is drain battry and ....

thanks
[Xperia Z5 Android Development] godu:
fastboot boot boot.img

Huge thanks for this one, it's a great manual and tool.

But I have a question. I'm kind of an old newbie

My setup is E6833 now on 32.2.A.0.253 with kernel 3.10.84-perf-gf1cfa5f

I have follow this howto:

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

Made TA backup with Ivoryroot, unlocked the bootloader, upgraded to the current firmware and flashed the premodified kernel. Then from your howto I have flashed the DK.

One question here. Is the pre modified kernel has the DRM fix in it? I have checked with the service info and it seems the keys are there but how can I be certain.

My problem.

I wanted to make a fresh kernel, so extracted from the firmware and folloed you manual to patch it. wanted to include the SU in it, I wasn't sure if DRM fix is in the kernel what I'm using.

All seemed fine but when I do a fastboot boot boot.img to test my kernel, it starts to load kernel. Gets to SONY logo stage and then the device just turns off. Strangely the prepatched kernel does the same if I fastboot into it.

Is this normal? I didn't dare to flash that kernel.

Thanks for the info in advance.
[Xperia Z5 Android Development] avigyan04:
Hello,

I have a question. I have unlocked my bootloader once and relocking it didn't fix the DRM status. Now if I want to restore the DRM keys on an unlocked bootloader WITHOUT rooting my phone or installing SuperSU, is it possible? I have the .ftf file for the stock .253 firmware which I can extract to get the kernel. After that I cannot understand what to do because the post only talks about TWRP and SuperSU. I want to receive OTA updates and hence do not wish to tamper with the stock files or anything. Can someone kindly help?

Also how do I get the device key?
[Xperia Z5 Android Development] Klaus N.:
Wrong thread!

Go here and take a look there at post #2, last point:

There are 2 methods, in 1st one you've to go back first to the appropriate rom by using FlashTool (the rom you've used to get the temporally root), the 2nd one is described there unmistakable.

But that's off-topic here, so go ahead, and if you have questions regarding the procedure, please ask there... ;)
[Xperia Z5 Android Development] SimonZ:
will this work with other devices or is only for Z5 and variants? I've got M5 E5603
[Xperia Z5 Android Development] Klaus N.:
Yes, it does, but afaik only with nearly every device of Z-series.

But, give it a try...
[Xperia Z5 Android Development] EpicMedz:
Hi all, so recently I rooted my Z5, unlocked bootloader without backing up DRM keys. Can I restore them with this? If so, how? Do I simply flash the latest zip in the OP? I'm new to this stuff with Sony devices.
[Xperia Z5 Android Development] Klaus N.:
No, if you have not made a ta-backup before unlocking the bootloader, the drm-keys are lost forever. But you can reactivate some functions with this tool, though.
[Xperia Z5 Android Development] EpicMedz:
Which features are lost?
[Xperia Z5 Android Development] WildBit:
You loose your original key forever! They are used by apps such as x-reality, camera. There is a way to emulate the function but it does rely primary on a backup of your original TA partition where the key is originally stored
[Xperia Z5 Android Development] Klaus N.:
There's already something about that in the startpost > see "FAQ - please read" > point #3:
[Xperia Z5 Android Development] Uzzell13:
Any chance of this being made to work with XA?
[Xperia Z5 Android Development] not30:
thank you！ try】
[Xperia Z5 Android Development] AforAnonymous:
[MENTION=357342]tobias.waldvogel[/MENTION] any chance? :(

Also, have you seen Magisk ( http://xdaforums.com/android/software/mod-magisk-v1-universal-systemless-t3432382 )?
[Xperia Z5 Android Development] tobias.waldvogel:
Have you tried version 5.0? What was the result?
[Xperia Z5 Android Development] tobias.waldvogel:
Did you try version 5.0? I would guess that TWRP might not work but everything else should.

Regarding TWRP I can extract the kernel modules in order to get it to run.
[Xperia Z5 Android Development] tobias.waldvogel:
The kernel should boot with fastboot if you unlocked the bootbloader. Anyway the best practice is to run the script on the unmodified kernel image from device or the ftf.
[Xperia Z5 Android Development] tobias.waldvogel:
Thanks for the update. I did a lot of effort in V5.0 in order to eliminate any possible side effect ;)
[Xperia Z5 Android Development] godu:
Thank you for the answer Tobias.

I have used the script on the unmodified kernel and tried fastboot boot boot.img to test if it's correct.

When it wasn't booking just to dbl check I tried the same command with the kernel is currently running on the phone and that did exactly the same.

That's why I'm thinking that I'm facing some other issue here.

If you could point me to the right direction.

I am running a Windows 8.1 64bit system.

Phone drivers are correctly installed (including the safe boot option in win8.1)

Flashtool version 0.9.22.3

from the script I tried version 5

Thank you in advanced.
[Xperia Z5 Android Development] osm0sis:
[MENTION=357342]tobias.waldvogel[/MENTION] can you point me at the GitHub unpackelf source for bootimg in v5.0? Amazing work getting it working with those old weird Xperia U/S kernel.elf files that had cmdline/RPM as the last section! :)
[Xperia Z5 Android Development] Uzzell13:
Tried but gets stuck
[Xperia Z5 Android Development] tobias.waldvogel:
I'm afraid I need some more details in order to be able to help you.

Gesendet von meinem E6683 mit Tapatalk
[Xperia Z5 Android Development] aidy.lucas:
Go to the xa forum everything you need is already there kernel+recovery not using it myself yet I'm hoping someone can come up with a way to back up ta keys on mm before I unlock my bootloader. None of the current programmes seem to work with our xa and mm
[Xperia Z5 Android Development] Hamidreza2010:
Anybody dont know?
[Xperia Z5 Android Development] tobias.waldvogel:
I will try to reproduce this. But I really don't think you have to worry about battery drain unless you operate your phone only in recovery [emoji6]

Gesendet von meinem E6683 mit Tapatalk
[Xperia Z5 Android Development] Hamidreza2010:
:D:D:D

Yes

its for battry drain and crazy me the vibration ( i use recovery a lot ) and its difficult to disable it every time

I wait for that :highfive:

thanks
[Xperia Z5 Android Development] WildBit:
As already mentioned I fail to see why you should be in recovery for an extended amount of time and also beware that the battery levels may not be what are shown in recovery
[Xperia Z5 Android Development] Hamidreza2010:
I make a lots of mod and should test one by one in recovery and maybe its be 5 times to test and make correct mod

its better to disable vibration by default :good:
[Xperia Z5 Android Development] Uzzell13:
Recognised model and kernel but gets to android 6.0 then stops so no options are available to be selected like twrp
[Xperia Z5 Android Development] AforAnonymous:
Since vendor is qcom and not somc, and since this version does not contain the kernel modules, for TWRP, for the M4 Aqua, it fails to set up DRM emulation etc.
[Xperia Z5 Android Development] acabreram:
Hi Tobias I have a question.

I flashed a bootanimation but still the sony stock bootanimation every time that my pone boots.

and i want to try [MOD][MM][Overlay] AOSP signal & QS toggle icons v3 (Upd 31/05) I did all instructions but still sony stock icons

I rooted my phone with your tool v5

any idea?

thanks

root problem?

---------- Post added at 10:12 PM ---------- Previous post was at 10:11 PM ----------

Hi Tobias I have a question.

I flashed a bootanimation but still the sony stock bootanimation every time that my pone boots.

and i want to try [MOD][MM][Overlay] AOSP signal & QS toggle icons v3 (Upd 31/05) I did all instructions but still sony stock icons

I rooted my phone with your tool v5

any idea?

thanks

root problem?
[Xperia Z5 Android Development] savi0023:
Can I repack the TA image to a custom kernel? (e.g. AndroPlusKernel)
[Xperia Z5 Android Development] devilmaycry2020:
That mean if I want to use any custom kernel or modified stock kernel I have to unlock bootloader? That's right? And this thread is for unlocked bootloader phone.
[Xperia Z5 Android Development] jugglerpl:
Yes devilmaycry2020, you must have unlocked bootloader. And topic is for unlocked bootloader phones.
[Xperia Z5 Android Development] albenex:
follow'd the guide:

1- downgrade to lollipop 2- backup'd TA partition 3- update to MM 4- unlocked BL 5- generated kernel using this guide

6- fastboot boot mykernel.img in order to test.. but phone shuts off. if i turn it on. in *#*#7873423#*#* i can see my DRM keys ok. but... NO SIM !

so i got scaried and rebooted.. SIM was then ok but NO DRM keys.. (no longer using modified kernel.. ) so i got scaried about flashing it but i

6b- fastboot flash boot mykernel.img and everything was ok, either DRM and SIM were ok! PHEEW!

advice: put this disclaimer on the tutorial !
[Xperia Z5 Android Development] jugglerpl:
I confirm information with albenex's post. When tested - Sim doesn't work, when flashed - everything is ok!

Wysłane z mojego E6653 przy użyciu Tapatalka
[Xperia Z5 Android Development] jugglerpl:
When I created new kernel with "rootkernel kernel.elf new_kernel.img Ta.img" and then flashed it, I have locked bootloader now. Is it normal?

Wysłane z mojego E6653 przy użyciu Tapatalka