yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] mobiware:
Thanks a lot [MENTION=5613633]YasuHamed[/MENTION]. In compiling my own FTF from the 32.3.A.2.33 download via XperiFirm, I didn't include any .TA files in it per guide here:

https://xdaforums.com/xpe...otfor-t3373312

It mentioned the following: IMPORTANT DO NOT TRANSFER THE FILES WITH A .TA FILE EXTENSION IT WILL BRICK YOUR DEVICE.

Do you know if those will brick the device? It looks like in this other thread now:

https://xdaforums.com/xperia-z5/general/ftf-e6603-33-53-83-google-drive-patched-t3581463/page4

the author includes the .TA files. Can I include them?

Thanks,

MW
[Xperia Z5 Android Development] sersomy:
So where to specify? The program closes. You write what to read in the BTW topic, and where is the link to the topic?

---------- Post added at 02:47 AM ---------- Previous post was at 02:26 AM ----------

Guys, my device sony C4 dual E5333. Kernel and the recovery I have. How to pack them? If this is not the topic, give a link to the relevant topic.
[Xperia Z5 Android Development] mobiware:
You have a Mediatek chipset so that's not compatible with the script. Can you look at my post #2475 above? Hope that helps.

---------- Post added at 09:57 PM ---------- Previous post was at 09:53 PM ----------

Thanks shoey. I have but I was just wondering because someone posted that we need to reunlock the bootloader! I am trying to flash 32.3.A.2.33 with problems, but I have flashed 32.3.A.0.376 successfully.
[Xperia Z5 Android Development] YasuHamed:
MTK processor device, root kernel does not work :(

for you the only way is to install custom roms. please check Xperia X forums

---------- Post added at 06:13 AM ---------- Previous post was at 06:00 AM ----------

thank you sir for the response

1. since you have the ftf file and you will be flashing 32.3.A.2.33. you should

2. create modified kernel with [MENTION=3989065]serajr[/MENTION] extension script Unofficial5.23 at https://xdaforums.com/showpost.php?p=71175804&postcount=2236 , in which there is one extra question asked when you say "N" to drmFix, (ta.img and POC) should be in the same folder which you may had extracted some how earlier from YOUR device only! , any other ta.img even from same variant will BRICK your device. once you have the rooted modified kernel with reinstated ta.img you can patch this kernel in fastboot mode and flash superSU via twrp. (recover)

2. https://github.com/DevShaft/Backup-TA/releases this is another tool back from old day which reinstated your ta.img but if you make your kernel DRMFIX "N" and you don't use [MENTION=3989065]serajr[/MENTION] 's unofficail 5.23 version. you may try this trick on a rooted device .

Trivia

if your device get bricked , it means it stuck in the kernel itself bootloop and you wont see anything but blank screen. in dark you may see the screen is actually ON but black. in order to come out from such briking. batter must be removed and inserted after 5mins. since xperia's battery is not removable. FORCE shutdown device do the trick

1. Pressing+ holding both power & Volume up buttong for 15secs will make device jerk thrice!!, on second jerk release fingers IMMEDIATELY and the device will SHUTDOWN. now you can connect your device in flashmode/ fastboot mode and do the magic again! ;)

---------- Post added at 06:20 AM ---------- Previous post was at 06:13 AM ----------

could try this version of the script, it supports Xz series, but not sure about mtk processors

https://xdaforums.com/showpost.php?p=71175804&postcount=2236
[Xperia Z5 Android Development] karrouma:
dear, it works with xperia xzs.

i received my xzs and trying to unlock and root.

what about drm and ta.
[Xperia Z5 Android Development] mobiware:
Flashtool 0.9.23.2 ERROR - Processing of loader.sin

Thanks again for this. I have bundled the FTF without the .TA files in it. I have a backup of the TA partition which I restored with "flash_dk", so I don't need to do that. I have also installed TWRP 3.1.0 from the previous time.

I reinstalled the drivers for Flashtool and now I get:

12/043/2017 00:43:41 - ERROR - Processing of loader.sin finished with errors.

12/043/2017 00:43:41 - INFO - Ending flash session

12/043/2017 00:43:41 - ERROR - null

12/043/2017 00:43:41 - ERROR - Error flashing. Aborted

I had asked before about reunlocking my bootloader, as someone mentioned that I need to do that. I tend to doubt it.

0. I got the phone bricked before like you described above. I got out of by trying different combinations of button pressing, but I am glad you documented it, as I couldn't remember if I had pressed the Vol+ or Vol- button with the Power button!

1. Any ideas on the above error?

2. What do you think about reunlocking the bootloader?

3. What signifies to the booting process that the bootloader is locked even if it shows as locked but unlockable?

Thanks again for everything,

MW
[Xperia Z5 Android Development] sersomy:
So the Rootkernel program does not work with MTK processors, so tell me which program you can pack the recovery into the stock kernel? But this does not answer the question: why rootkernel does not run on the computer.
[Xperia Z5 Android Development] mobiware:
Did you try "rootkernel <oldkernel.img> <newkernel.img>" ?

Also, as far as having recovery in your kernel, I actually installed the TWRP 3.1.0 latest recovery manually, not in the kernel. I downloaded it from twrp.me, not in the kernel. Then I opened up a command prompt, went to the "C:\Minimal ADB and Fastboot" folder (or you can go to the "C:\ADB" one) and executed:

fastboot flash recovery recovery.img

You press the Vol+ key on the phone and connect your USB cable and that should do it.

Let us know if that works,

MW
[Xperia Z5 Android Development] YasuHamed:
lets start with error

if your device is any variant from Z5 ( E66xx) please download and install and restart pc from

https://developer.sonymobile.com/downloads/drivers/xperia-z5-driver/

if your device is any variant from Z5P ( E68xx) then please install driver and /restart pc from

https://developer.sonymobile.com/downloads/drivers/xperia-z5-premium-driver/

please make sure your flashtool is of latest version 0.9.23.2 -- when flashtool is downloaded it comes with 0.9.23.1 version. replace the x10flasher.jar files in c\flashtool from the following one and restart the flashtool, it will be updated

http://www.flashtool.net/torrents/patches/windows/x10flasher.jar

about that bootloader unlocked allowed YES/NO .... its just permission indicator that you are allowed to TOGGLE you bootlock

about how does it make difference?

frankly in older days when android securities can be bypassed without touching bootloader inorder to have root access; were the GLORY days! now to have root access we all RISK our device by unlocking the bootloader and having twrp installed. if the device get stolen! anyone can just flash recovery and have our personal data/contacts/ photos extracted :( ,,,, so it a risk!!!

- you can relock the bootloader (i am not sure if unlocking again would ask the keys or not.... if it does then GOOD) your phone is atleast protected

- i always create TWO modified patch kernels, one without twrp. i flash the "without twrp kernel" and temp BOOT the "with twrp kernel" in fastboot mode

fastboot boot kernelwithtwrp.img

will boot xperia and on sony logo if you toggle volume keys it will go to twrp and i will flash superSU and then switchoff my device

Now relock your bootloader via flashtool in fastboot mode

then RESTART you device

i will be

1. rooted

2. no twrp

3. boot locked
[Xperia Z5 Android Development] mobiware:
OEM unlocking greyed out

Hey [MENTION=4675598]shoey63[/MENTION],

I also noticed that the "OEM unlocking" in Developer options is greyed out. Is that significant? Could it have been disabled by the script instead of the bootloader being fakely locked?

Thanks as always,

MW
[Xperia Z5 Android Development] YasuHamed:
if xperia xzs is on android N

then DIRTY COW script may not work :(

please don't be hurry

xzs is new device and give XDA developers time to work on it.

If i were you, i would not touch the device atleast for 4-6 months. and waited for DRM keys extraction tool

if you unlock now the risks are high

1. you will loose your keys!

2. rootkernel script may not create required patch kernel for xzs and you will endup having bootloops

if that will be the case then you will be installing /flashing stockrom again in order to use your device!

this means you unlocked you bootloader for no good (as of april 2017)
[Xperia Z5 Android Development] sersomy:
No, this does not work for me. I tried to put the recovery in the fot. It does not start, and then reboots. Therefore, I want to pack the recovery in the stock core. I think this is the only way to have a recovery on the 6 android. I can not write a script in Rootkernel, because the Rootkernel window is closed.

---------- Post added at 12:37 PM ---------- Previous post was at 12:36 PM ----------

So the Rootkernel program does not work with MTK processors, so tell me which program you can pack the recovery into the stock kernel? But this does not answer the question: why rootkokerel does not run on the computer.
[Xperia Z5 Android Development] YasuHamed:
the OEM Unlocking feature in android N is basically for devices like Nexus Pixel Huwaie , since i believe they don't use KEYS to unlock. so in order to unlock your bootloader in these devices, user must first goto developer option and toggle OEM unlocking then from adb shell in fastboot mode OEM UNLOCK can be performed.

it will be grayed out when your bootloader is unlocked

---------- Post added at 09:43 AM ---------- Previous post was at 09:37 AM ----------

I believe your device is C4 dual E5333.

i also have this one.

i kept it on Android 5.1.1 on which E5333 ( code name COSMOS) left factory

just download the stockrom of E5333 [ E5333_27.2.B.0.155_1293-5887_R3A(5.1.1) ] - flash it

YOU CANNOT USE FLASHTOOL FOR C4 /C5 series

use Setool2g / download link

https://mega.nz/#!3YRwSASb!5TnTvmDkdxBB5ny3F5U829bQT6pwC28WQIhGRIbTwrg

tutorial https://www.youtube.com/watch?v=lVkaeGLQU6E

however there is this user made video flashing E5363 with flashtool

http://sjbuzz.net/video/watch/vid01G2WGrUjinAU

I NEVER FLASHED MY C4 SO I HAVE MINIMAL EXPERIENCE with flasthool and or any other flasher regarding C4 E5333

once you have E5333_27.2.B.0.155_1293-5887_R3A(5.1.1) flashed, use KINGROOT , it will root your device!

anways! e5333 come with only 2gb ram and android6 hangs alot! so i never updated to 6.01

trivia

1. E5333_27.2.B.0.155_1293-5887_R3A(5.1.1) - factory version

2. E5333_27.3.B.0.122_1295-0292_R2B(6.01)oct16 update

3. E5333_27.3.B.0.129_1295-8477_R2B(6.01)nov16 update

--- i have twrp for E5333 at https://mega.nz/#F!eFxRCSjJ!2NQLNCc1XFV3ok5RCfGyHw -- i will use it ONE DAY
[Xperia Z5 Android Development] sersomy:
Why do you offer me different options? If I did not speak English, I probably went through all the options. Yes, I put the 155 firmware on it and the recovery. Yes, everything works. BUT! I need 6 android and recovery on it. You are mistaken that 6 android hangs a lot, 129 firmware is well optimized and smart. I have it now and I'm happy with it even without root and recovery. I just ask you to help me pack the recovery specially made for 129 firmware into the stock kernel. Since there are no other ways to get the root on the 6 android for C4. If I was not new to this forum, I would have posted the copycat and recovery from the 129 firmware and would have shown on video how Rootkernel does not want to run on the computer. And so I still do not have 10 posts and I can not do it.
[Xperia Z5 Android Development] mhaha:
This tool does not support your phone, because your phone uses a MediaTek SoC as explained to you earlier.

And because you've been asking repeatedly, this is how to run the rootkernel tool:

Open command prompt by clicking on the Start button on your Windows PC, type cmd and enter. It should open up a command prompt windows regardless of your OS language.

Then you type in the commands as described in the first post of this thread to start the tool.

But please understand, you should stop right now, because this tool will never be able to root your C4 phone. You are wasting your time.

You should be looking for root guides in the C4 subforum, not the Z5 subforum.

Hope this clears things up for you.
[Xperia Z5 Android Development] sersomy:
Thank you, I already understood. But your site is very incomprehensible to me, and even in English. I tried to find a branch about c4, but nothing happens. Can you send me to her?
[Xperia Z5 Android Development] soodroid:
i tried it and same problem :( it seems this tool will never work with mtk processors..(xperia xa ultra dual f3212)

and about custom roms it be same problems cause it required unlocked bl to flash it so no drm key ,and im here just trying to restore my drm key "ta.img" (which i backed up) and keeping twrp to flash my staff "super su /xposed.."
[Xperia Z5 Android Development] Devo7v:
https://xdaforums.com/t/sony-xperia-c4
[Xperia Z5 Android Development] karrouma:
Ok i will wait

Hope not taking time
[Xperia Z5 Android Development] deconfrost:
haven't been on xda for a good while, a bit behind in things, so is it safe to say I can run this on 6.0.1 after unlocking bootloader and restore my drm which I have just backed up to .img using backup ta v2? then flash 32.3.A.2.33 and the rest
[Xperia Z5 Android Development] YasuHamed:
frankly i rooted my midrange mtk phone E5333 and it didnt have any drm keys! the midrange phone don't have keys ( may be)
[Xperia Z5 Android Development] serajr:
AFAIK there is no root exploit for android N yet (someone please correct me if I'm wrong), and without this, you won't be able to perform backup of the TA partition.

Good point :good:
[Xperia Z5 Android Development] soodroid:
No it have .. And i rooted it too my xau f3212 with twrp recovery as i told you here im trying to restore my drm keys (ta. Img) and keeping root

Now i tried with poc tool, it works well to repacking my kernel but i fail many times when flashing it, so I'll moving to poc thread at least there the work in progress so maybe I'll got luck (here it miss the dev support hopefully)

Thank u for replying dude..
[Xperia Z5 Android Development] mobiware:
Flashtool 0.9.23.2 ERROR - Processing of loader.sin

Thanks again for this [MENTION=5613633]YasuHamed[/MENTION]. I actually figured out how to get rid of the error in Flashtool with loader.sin.

I was running Flashtool not in admin mode as I am having problems with my registry! The registry seems to be too large and it doesn't save entries any more! For example I'll resize a Windows Explorer window and it'll never save the new size. I had changed the properties of my Flashtool64 (and Flashtool) to run as administrator, but that was never really saved! I was thinking it did but it didn't. I changed it manually, Flashtool64 ran without the error and I was able to flash the 32.3.A.2.33 firmware.

I then ran the script, created a kernel with all the options except busybox, including superuser (as we discussed recently for getting access to the SD card) and flashed that. I also flashed recovery 3.1.0 again, went in and flashed busybox. I restarted the phone, went through the initial setup, installed the apk for phh superuser, installed Root Checker, checked if the phone is rooted and it is not! I recreated and reflashed the kernel multiple times but I never got it to root.

I am wondering if the problem is embedding superuser in it. This is the only thing I did differently from before. What do you think?
[Xperia Z5 Android Development] YasuHamed:
after reading your analysis

i Reflashed kernels on my device and found that SUPERUSER has issues in keeping root if non TWRP kernel is re flashed

however SUPERSU kept its rooting even when kernel with NO twrp was reflashed....

can you try with SUPERSU plz

---------- Post added at 09:53 AM ---------- Previous post was at 09:48 AM ----------

let me rephrase that

xperia C M and E series don't have DRM KEYS. atleast I never found any in my C4 (rooted on android 5.1.1)

the Flagship series of SONY , Z / Z1 .... Z5p have DRM KEYS

xperia X ( Xc Xp Xa) all have DRM KEYS

Xperia XZ series definately have such keys!
[Xperia Z5 Android Development] soodroid:
Drm = digital rights management, its like ur id

So i guess that isn't related with mtk processor or what ever as u said.. Any way this is what dev here trying to bypass otherwise im not here if i haven't drm key :cowboy:
[Xperia Z5 Android Development] mobiware:
Thanks H. I know it's something to experiment with, but since it has considerable battery drain associated with it, I think we might want to look at a parallel avenue. I am wondering if we have to look for that kernel and/or recovery cleanup script. Do you know of any?
[Xperia Z5 Android Development] YasuHamed:
1. if you flash SUPERSU via recovery and replace recovery, the battery drainage is NOT there

2. if you flash supersu via script, you wont able to update it later via playstore and i have noticed battery drainage

3. if you wana keep superuser then yes unfortunately you must keep recovery.

i was reading the log, superuser don't alter system partitions until u intall apk and reboot. and hence if the base zip is removed it looses access to /system folder

where superSU changes partitions permission, ramdisk , update su binary when you flash it via twrp. hence even when twrp is removed the rooting stays valid
[Xperia Z5 Android Development] mobiware:
SuperSU vs. superuser

Thanks again H. I am not sure what you mean in point 1. Do you mean I have to reflash recovery? In other words run the script, include recovery 3.0.2 that comes with it, install SuperSU and after everything is done then flash recovery 3.1.0 with fastboot?

Also, I was asking before about cleaning the kernel before flashing the FTF. Should we use something like QuickClean or SuperClean or Rom Cleaner? Or, have you tried wiping ART Cache, System, Data, Internal Storage, Cache, Micro SDCard and USB OTG at the same time via TWRP, or are all those not necessary? :confused:
[Xperia Z5 Android Development] iwilltouchthesky:
Does anyone have the modules for kernel version 3.10.84-perf-g1016077 ? Since rootkernel does not include the modules for this kernel I can not include TWRP into the kernel.

3.10.84-perf-g1016077 is the latest kernel included in 32.3.A.2.33.

If someone had them and could post it it'd be greatly appreciated.

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

EDIT: Nvm I found the post where someone was kind enough to post the modules in a .zip. +Thanks given and tyvm!

---------- Post added at 10:32 AM ---------- Previous post was at 09:41 AM ----------

Has anyone compiled the KCAL module for newest kernel 3.10.84-perf-g1016077 ? Would be greatly appreciated if someone could post it who has.
[Xperia Z5 Android Development] YasuHamed:
sir you question has many level to be addresed let me start from beginning to explain

1. Script 5.23 made kernel(withtwrp) lets call it kernel1 & scripct5.23 made kernel(withouttwrp) lets callit kernel2. when kernel1 flashed and supersu.zip flashed via twrp. -- can be replaced by kernel2 and rooting will stay

2. however if superuser flashed. via kernel1 then removing altering with kernel2 will void rooting (why, i am still searching for answers)

3. twrp3.1.0 needs NO script to alter anything. if you flash twrp RECOVERY you can simple flash supersu and keep it. never replace twrp 3.1 recovery.

however please note that twrp3.1 won't have drm fix. and it doesnt use SONY Partition details so i don't know how the device will react. The the twrp3.1 for SATSUKI ( z5p) made my device softbrick. if your z5 has working twrp3.1 then you may flash it and use it for both as kernel and recovery. if you flash youer supersu via twrp3.1 and later reflash Kernel2 (without twrp)... my guess is rooting will stay.

only superuser is giving strange behviours.

battery drain happens when superSU is flashed using script5.23
[Xperia Z5 Android Development] mobiware:
Thanks H. I think we are getting deeper and deeper. I am still not sure about point #1. Did you mean replace the kernel instead of recovery? That would have made sense. If not, I am not sure.

On the SuperSU site they mention: "!!! SuperSU requires a rooted device !!!". So it looks like the only way to have it would be through the script. What do you think?

If I wipe certain or all the partitions before I rerun the script, wouldn't I be fine? Can you give this some thought?

Also, wasn't there another user that reflashed his kernel and then superuser and got his SD card working? It was on this thread; I'll look for the post.
[Xperia Z5 Android Development] polk923:
TWRP3.0.2 version, you can upgrade to version 3.1.0?
[Xperia Z5 Android Development] mobiware:
TWRP version 3.1.0

You can. There are some posts from a couple of weeks ago where you can integrate it in your script by including it in your files to be flashed manually, but that's complicated. You can say N to the script for TWRP when you compile your kernel and flash TWRP manually after you flash your rooted kernel.

You can run the following command from a command prompt that you open as administrator:

fastboot flash recovery recovery.img

You can use the 3.1.0 version of TWRP as recovery.img.
[Xperia Z5 Android Development] polk923:
Is there a link?
[Xperia Z5 Android Development] iwilltouchthesky:
You should be able to find 3.1.0 for your specific device on the official TWRP website itself: https://twrp.me/

Just be sure you download and flash the one for your device. (VERY IMPORTANT)
[Xperia Z5 Android Development] lebigmac:
I have to correct myself. This also works while offline using the old Flashtool 9.22.3.

Thanks!
[Xperia Z5 Android Development] Hiku:
REPORT: wiping option somehow cause data partition (maybe more) to be corrupt, device can't boot into system anymore. There's only way to solve it that's wiping USERDATA via flashtool. Workaround: choose Use rm -rf for wiping in twrp setting instead.
[Xperia Z5 Android Development] rich2007:
Hi Guy, what does this mean?
[Xperia Z5 Android Development] dr4go:
Better do...

cd C:\Flashtool\rootkernel_v5.23 && rootkernel.cmd kernel.elf boot_V1.img

...instead.
[Xperia Z5 Android Development] Resellerek:
Sorry, but during rooting of kernel "Skipping TWRP Recovery. No kernel modules for 3.10.84-pref-g1016077"

Stock firmware 32.3.A.2.33 for E6833 dual
[Xperia Z5 Android Development] Berni-0815:
Klick
[Xperia Z5 Android Development] B1nz:
Question

Hey, i just downloaded n unzip the files.

but i didn't find the .ftf image file neither the kernel.sin file.

can you help me solve this?
[Xperia Z5 Android Development] YasuHamed:
sir , this is just a script that will modify kernel.elf and will create kernel.img.

you must read / enrich yourself regarding the following

1. finding downloading stock firmware

2. finding downloading stock firmware via FLASHTOOL > Xperifirm

3 Creating ftf file via flashtool (its automatic but you need understand how flashtool pics the downloaded stockrom by XPERIFIRM)

4. extracting kernel.SIN from ftf file via 7zip

5. converting KERNEL.SIN to KERNEL.ELF using Flashtool's tool's SIN EDITOR

6 then using that kernel.elf in this script (folder) in order to MODIFY kernel !

--------- in my xperience for E6883, script 5.20 works best. and i had bootloops for E6883 when i modify the kernel with script v5.23

----------scrip 5.23 works just perfect for E6833

7. understanding unlocked bootloader and

8. understanding flashing kernel via FLASHTOOL and/or adb fasboot command prompt (windows pc)

9. understanding concept of recovery and flashing superSU ORRR

10. understanding the concept of recovery and flashing superuser

11. monitoring battery life later on. and if batter discharges more than it's previous rates. then re flashing kernel (superuser reported to be better with battery life) (however i am using superSU flashed via twrp3.0.2 and its working WOW)

so sir please search above topix