yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] juanpirulo:
So if you are having trouble better i wait till you get it. [emoji12] mine boot up but i have a little mess with my ta. Cheers

So anyway can you share wich metod you used step by step?

Enviado desde mi D6603 mediante Tapatalk
[Sony Cross-Device General] whalesplaho:
tha recovery in tha zip doesnt work like tha recovery yhu posted sometimes ago...... tha recovery in tha zip doesnt mount microsd except internal memory.... but tha previous one works fine!
[Sony Cross-Device General] GryTEcHoG:
Thanks for the file. I have tried, and it works but its not mounting memory card. Any idea how to fix this ?

Which file works ? Please share it..

Thanks
[Sony Cross-Device General] whalesplaho:
i can say where tha post is cos shoey shared it when twrp was updated to 3.1.0, Z5 was among tha first device!

i have uploaded for yhu.... it isnt a flashable file, i only zip it!...

https://drive.google.com/file/d/0B6Q-veJIWV_GUVhEcHV2emcwaTA/view?usp=sharing
[Sony Cross-Device General] GryTEcHoG:
I tried your file, but still I cant get memory card working in recovery :(
[Sony Cross-Device General] whalesplaho:
But i dnt have issues here..... Its working fine here!!!
[Sony Cross-Device General] GryTEcHoG:
How did you install ? So i can see if i am doing anything wrong.

Thanks
[Sony Cross-Device General] whalesplaho:
I patched with poc....
[Sony Cross-Device General] whalesplaho:
[MENTION=4675598]shoey63[/MENTION] i got dis error.... but twrp used to backup everything including internal memory!
[Sony Cross-Device General] juanpirulo:
I tryed again with another ta.img backup the other one seems was corrupt. Now i ve got a strange thing everything seems to work but only the sdcard is not mounting. Onother thing is that even when i open the bootloader the message in the service menú is still " bootloader unlock allowed yes" but i know it was unlock because when i tryed to lock again the Phone didnt boot up. Anyone has a clue on this?

Enviado desde mi D6603 mediante Tapatalk
[Sony Cross-Device General] xRevengerZee:
Flashed new boot img deleted ta.img from stufs folder rebooted twice it works then if i reboot again ta.img comes back and i have to delete again why?
[Sony Cross-Device General] x_one:
Because script included in your boot is copying ta.img to desired location to be used for emulating real ta partition.

---------- Post added at 08:57 AM ---------- Previous post was at 08:56 AM ----------

Your ta partition was mounted from ta.img and device thinks you have locked bootlader. It is normal.

---------- Post added at 09:00 AM ---------- Previous post was at 08:57 AM ----------

I think it's not an error, it's just info that not every data is included in backup. So you have to backup it manually.
[Sony Cross-Device General] shoey63:
Its not an error, it's a "feature". TWRP leaves internal storage alone now, even if you do a wipe data/factory reset (unless you format /data).

Most people backup their photos etc. to PC or the cloud.

---------- Post added at 04:04 PM ---------- Previous post was at 04:01 PM ----------

Its part of the ramdisk, that's why. You can't permanently delete it, nor do you need to.
[Sony Cross-Device General] juanpirulo:
You know if the issue with the sdcard corrupt could be because of the recovery? Do you updated the recovery for z3? Cheers

---------- Post added at 10:54 AM ---------- Previous post was at 10:27 AM ----------

So now i know its working except the sdcard with the message that its corrupt, do you know why?. Cheers

---------- Post added at 11:26 AM ---------- Previous post was at 10:54 AM ----------

ok Now i tryed with another recovery and no trouble with sdcard, everything seems to work properly. i check service test security and everything is in OK status. i dont know if there is any recovery for z3 updated mine is 3.0.2 . cheers
[Sony Cross-Device General] x_one:
TWRP 3.0.2 is enought. 3.1.0 don't give too many advantages, don't bother about update (it's just my opinion).
[Sony Cross-Device General] juanpirulo:
Now I ve got this problem trying to make patch advance kernel from gustavo for z3 https://xdaforums.com/z3/development/kernel-advanced-stock-kernel-t3345880 . I get this message

Patching ramdis/sepolicy@0664

command ret: 1.

Your script didnt returned 0, please check your script

Any idea whats wrong? cheers

ok I found out i cant patch other kernel in the same folder i made the other one. I create other clean folder with ta_poc and patch the advance kernel without problem. cheers
[Sony Cross-Device General] meckipower:
Wich Kernel and wich Firmware do you use for patching with PoC? .442? I'm on ExistenZ v6, wich is based on .442 with AndroidPlusKernel v.21. I've tried to patch Andros Kernel and Stock Kernel but evertime i get a Bootloop...
[Sony Cross-Device General] wzhy:
I found when use poc, then flash Magisk will get bootloop :(

Try many way for poc, such as use TA in sdcard partition or make a new partition on internal storage.

I think this is Magisk's bug. I try built old version of Magisk but still bootloop.
[Sony Cross-Device General] juanpirulo:
I tryed with magisk also and i ve got reboots when trying to make a phonecall. So something is wrong with magisk. cheers
[Sony Cross-Device General] wzhy:
Yes, even if you do nothing it will reboot in one minute of less.
[Sony Cross-Device General] whalesplaho:
Patching a custom kernel is hard, i have dis issue with SunKernel too... Try repatching and use tha latest twrp 3.1.0 and see, it ll work cos it did here... But backup options in twrp 3.1.0 is not much like 3.0.2!
[Sony Cross-Device General] aiola1982:
It only happens with newer ta_poc versions.
[Sony Cross-Device General] munjeni:
Are you sure?
[Sony Cross-Device General] aiola1982:
I used an old version (while ric was broken) that works fine when I disabled ric manually (otherwise only root didn't work, but no reboots) until today. As a new firmware was released for my device I updated and used latest ta_poc and I get this reboots.

Unfortunately i don't have the old verison of ta_poc any more, but the version [MENTION=3989065]serajr[/MENTION] uses for his "Unofficial - Rootkernel" should work.
[Sony Cross-Device General] munjeni:
Maybe magisk is not compatible with that new firmware!?
[Sony Cross-Device General] aiola1982:
I currently don't have time for troubleshooting so I tested unofficial rootkernel because of the old ta_poc (dm-vertiy and ric diabled and ta_poc) and magisk is working fine.
[Sony Cross-Device General] munjeni:
When you get time give me your dmesg before device reboot so I can try to look for thing, without log I can't help
[Sony Cross-Device General] aiola1982:
I hope [MENTION=1552108]wzhy[/MENTION] or [MENTION=3979060]juanpirulo[/MENTION] can provide a dmesg as I'm not able in the next days
[Sony Cross-Device General] wzhy:
NO! I have tested all by manually! I have create new partition for saving TA backup img. Both internal storage and sdcard.

I use grep gets only 4~5 file has string "mmcblk0p1" or "/dev/block/boot..../by-name/TA".

I replace this strings with my backup partition like mmcblk1p2 (sdcard) or mmcblk0p56 (internal storage).

Without Magisk boot up is fine but when I flash Magisk it bootloop!

I even has try extract kernel.sin using FlashTool and repack it to AOSP's format but not work.

NOT PoC's problem.

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

I have put some logs in Magisk's github.

https://github.com/topjohnwu/Magisk/issues/166
[Sony Cross-Device General] wzhy:
Maybe I have found Magisk bootloop's issus.

/sbin/ric will be killed by somethine then i reboot. I make a script to confirm if /sbin/ric is running by every 0.1 second. then after its been killed phone reboot.

I try stock kernel, only poc kernel and only magisk kernel. The /sbin/ric wont be killed. So what kills this process? Only Poc + Magisk will take this
[Sony Cross-Device General] munjeni:
Ric is service, probably it checks for /sys/kernel////blabla/ric if it is 0 its stops itself, newer analysed how ric service working but probably it runs from infinity and checks for ric file to be "1" to start itself, if it is "0" it stops and rechecks again and again, don't know realy
[Sony Cross-Device General] munjeni:
But [MENTION=5114675]aiola1982[/MENTION] says (I still not believing that it is true since he changed firmware on his phone, even on that new firmware that thing is poc related nor it working on rootkernel):
[Sony Cross-Device General] aiola1982:
unofficial rootkernel is working with integrated ta_poc (dm-verity and ric disabled)

Device: Z5C

FW: 32.3.A.2.33 (android 7.0 March security level)

Magisk: 12.0
[Sony Cross-Device General] wzhy:
Only stock kernel is ric enabled, others are ric disabled, but ric service still running.

Like this only Magisk kernel. I boot up last night and now ric service is still running.

---------- Post added at 10:21 ---------- Previous post was at 10:21 ----------

[/COLOR]I found something in bootloop kernel log

mdss_fb_release_all seems be a kernel built-in process.

What to do with this? Only magisk kernel didnt see this.
[Sony Cross-Device General] munjeni:
As I say I can't help you without your dmesg sorry, if you have no time for that log I can't help
[Sony Cross-Device General] munjeni:
Are we speaking about no stock kernel? If yes than in that case ric is somehow started don't have idea right now but first thing which you need to detaily check is ric string in that ramdisk, just grep your ramdisk for string "ric", probably it is a service in one of the .rc files or probably it is started with an external binary from e.g. sbin folder, just grep it for idea
[Sony Cross-Device General] wzhy:
I didnt use 3rd party kernel or built one by myself, only use stock kernel for modify ramdisk.
[Sony Cross-Device General] soodroid:
Hey please help!

I read almost all threads about rooting xperia xa ultra dual and im not new in android experience but since i hardbricked my old phone (xperia v) that does not stopped me from rooting so please help

1-i backed up my ta (trim aria) via backup-ta v9. 11 and ulocked my bl

2-Flashed twrp and installed super su and xposed

3-tried to restore my ta.img via backup-ta

4-i got bootloops in sony logo (keep restarting)

5-reflashed stock fw nd reunlocked my bl via flash tool

6-flashed my stock fw (latest) and i fixed it

7- tried root kernel tool to repack my kernel but it doesn't work cause it doesn't support mtk processors

8- tried poc it works without any error but hopefully i always got bootloop after flashing the new boot. Img

(i tried enabled dem-verity without recovery )

(i tried enabled dem-verity with recovery)

(i tried disabled dem-verity without recovery)

(i tried disabled dem-verity with recovery)

What should i do :( !???

Ps:as i said in step 2 the recovery "twrp" it worked for me when i flashed it separately with boot. Img compiled (dem-verity disabled) i found it around :p

And my ta.img it works too as i said in step 3 it causes me a boot loop after restored it but thats normal cause it need stock kernel

I have xa ultra dual f3212 with. 146 fw
[Sony Cross-Device General] juanpirulo:
did you unlocked your bootloader again? because you can use poc kernel with lock bootloader. cheers
[Sony Cross-Device General] prasad.asr1978@gmail.com:
Thanks a lot [MENTION=4120742]munjeni[/MENTION] for your tool. It works perfect with Xperia Z3+ (Single-E6553) with Latest stock version 32.3.A.2.33 (Nougat 7.0)

I have successfully edited Kernel.sin extracted from the Latest Stock FTF file with your tool and flashed SU zip through TWRP 3.1.0. After all phone working perfect with DRM Keys & Rooted with SU Zip.

:good::)
[Sony Cross-Device General] munjeni:
Hi can NOT use poc with locked bootloader! Bootloader must be unlocked!
[Sony Cross-Device General] soodroid:
First look step 5 to answer your question and second

(This PoC is designed for unlocked devices and! makes things identic to having bootloader never unlocked!) This is what dev wrote in description of his tool

My last hope is in this tool i hope the dev could help :(
[Sony Cross-Device General] whalesplaho:
Dnt get it wrong, instead of using drm fix, poc make use of tha real TA.img of each phone to mask tha TA partition and makes tha phone looks like tha bootloader has never been unlocked.

First yhu need to unlock yur bootloader which whereby we lose our drm keys dahs where dis tool comes in. But make sure yhu backup yur TA partition before unlocking... Check tha forum for how to backup TA, we have dirtycow or another method.
[Sony Cross-Device General] soodroid:
Ohhh please bro read my previous post -_- my problem is not about rooting or twrp or backup ta or to restore it.. My problem is to keep root with my functionality of my drm key i post already all the steps that i did and waiting the dev to answer (i hope)
[Sony Cross-Device General] juanpirulo:
Sorry i miss the "t" in can should be cant of course [emoji12] thats why i asked if he unlocked the bootloader again

Enviado desde mi D6603 mediante Tapatalk
[Sony Cross-Device General] whalesplaho:
Poc doesnt add superuser zip to kernel.... Just fastboot kernel den flash superuser zip and voila.....
[Sony Cross-Device General] soodroid:
I told you to read my previous post

https://xdaforums.com/showpost.php?p=71837378&postcount=1304

I know you trying help but dude i think you can't thank you anyway :)
[Sony Cross-Device General] juanpirulo:
you say in point 5 that you locked your bootloader again, thats why i asked you if you reopen the bootloader again to try the poc tool in point 8. cheers
[Sony Cross-Device General] soodroid:
I said reunlocked not relocked cause after restoring ta. Img bl gonna be locked so i REUNLOCKED IT ? thnx Anyway for trying to help :)
[Sony Cross-Device General] Yackupov.Damir:
Does it work with Sony Xperia Z?
[Sony Cross-Device General] juanpirulo:
Sorry about that, i should check that again. other thing could be a corrupt TA.img, happend to me at first. cheers
[Sony Cross-Device General] soodroid:
Its ok and please check also the PS ;)
[Sony Cross-Device General] juanpirulo:
can you have a look to the service mode and check if everything is fine? Please check in service test configuration, software info and security is everything ok and there in not an "unknown" . My corrupt TA let me locked the bootloader but didnt recognize the model and some drm keys. cheers
[Sony Cross-Device General] soodroid:
My ta. Img isnt flashed now cause im in unlocked bl state now.. And i cheked now and every thing is ok except some errors but cause im in unlocked bl(so without ta.img), i have to restore my ta.img back to check, so maybe It can be the ta.img which i backed up by ta-backup v9.11 isnt compatible with poc?
[Sony Cross-Device General] Andrzej_Andrzej:
Hello, Is this tool working on Xperia XA F3111 ?
[Sony Cross-Device General] munjeni:
3. Do in mind trim area can be restored only and only in case boot partition is without any modification, so mean totaly unmodified sony stock kernel must be in that place! If you flashed modified kernel than bootloader must be unlocked! Hope you know that restoring trim area locks bootloader.

The rest of your questions (in case you have unlocked bootloader), I can't help you fixing your bootloop, need last_kmsg to see what cause bootloop! Don't ask how you get it, just search byself, hope this help.
[Sony Cross-Device General] munjeni:
In most case yes, but try and let us know :)
[Sony Cross-Device General] Andrzej_Andrzej:
Thank you for your reply. I will try it of course, but my humble question and request is: where can I find a step by step description how to do it? I am sorry if I can't see it. I did a backup with backupTA v2 tool from Rayman and I would like to try your tool on my xperia XA F3111. Thank you in advance for any help.
[Sony Cross-Device General] x_one:
It's easy.

You need TA.img backuped form your phone and kernel.sin from ftf firmware file.

When you run tapoc bat file it will ask you for pointing ta file and kernel file.

While running it will ask you if you want change some features. After finish your boot.img is ready to flash.

You need unlocked bootloader before flash or your phone won't boot.
[Sony Cross-Device General] soodroid:
omg its an owner that you answer *_* thak you so much

and here is my kmsg :) you are my last hope thank you again :)
[Sony Cross-Device General] munjeni:
Can't see anything related to poc! This is only one thing which I can see (also not related to poc):

[13452.489711] <0> (0)[428:UICompThread_0][DISP][primary_frame_cfg_input #4413]ERROR:primary_frame_cfg_input, skip because primary dipslay is slept

[13452.489783] <0> (0)[428:UICompThread_0][DISP][primary_display_trigger_nolock #3900]ERROR:primary_display_trigger_nolock, skip because primary dipslay is sleep

[13452.490361] kxtj2 acc x, y, z = -852 316 10774kxtj2 buf x, y, z = 102 102 102

[13452.493487] <0> (0)[1:init][gps]null pointer!!

[13452.494135] <0> (0)[1:init]WDT:[mtk_wdt_restart] type =0, pid=1, MTK_WDT_LENGTH:0xf000

[13452.494238] <0> (0)[1:init]reboot: Restarting system with command 'bootloader'

[13452.494256] <0>-(0)[1:init]machine_restart, arm_pm_restart( (null))

[13452.494271] <0>-(0)[1:init]ARCH_RESET happen!!!

1. Can you post unmodified boot image?

2. can you try only poc without any root or anything more, just poc?
[Sony Cross-Device General] soodroid:
im so sorry dev i just wasted your time by sharing a wrog kmsg (i runed adb in flashtool to get kmsg ) :p

so i guess here is the right kmsg and here is the stock boot.sin (kernel) and and here is a boot img build by poc that i tried it before without any modification (enabled dem-verity without recovery ) ..

i think you can see all my failed setps in the kmsg if the kmsg dosent deleted any of previous flashing steps,and if you want me to flash a boot img build by poc again and then post kmsg again just tell me im in your service :)

thank you a lot again

https://drive.google.com/drive/folders/0B0n5j9WOBcFQT28tOTNudHN4bU0
[Sony Cross-Device General] Klaus N.:
Maybe someone can help me: On a Xperia Z1 (C6903), running the latest 5.1.1 stock fw (14.6.A.1.236) and unmodified stock kernel, it doesn't work. PoC runs through without any problem, but when I fastboot flash the new_boot.img, the pin of the sim isn't recognized anymore. After turning of the screen and putting it on again, I can enter. In the service menu > security, it's shown "none", and in /data/local/tmp/ there's a text file (see attached screenshots). Btw., the TA.img file is inside the /stufs folder.

Thanks in advance!
[Sony Cross-Device General] munjeni:
CP tool not found, thats strange and thats in the same time shame for that firmware because an standard command aka CP is missing in /system/bin , I realy not going to fix that stupid firmware because of that missing cp
[Sony Cross-Device General] munjeni:
That kmsg is almost the same! I no need kmsg, I need kernel crash message aka last_kmsg! To get last_kmsg do in mind it exist only after next succes boot till after unsucesfull boot, for example if you have two boots after crashed boot that last_kmsg will gone. So after crashed boot your next boot must be succed in order to catch last_kmsg. Kmsg and last_kmsg is two diferent things! Anyway something strange is happening on your kmsg, for example something wrong with battery and something strange with gps:

[30604.582573] <0> (0)[1:init]******** battery driver shutdown!! ********

[30604.632622] <0> [COLOR="Red"](0)[1:init][gps]null pointer!![/COLOR]

[30604.633240] <0> (0)[1:init]WDT:[mtk_wdt_restart] type =0, pid=1, MTK_WDT_LENGTH:0xf000

[30604.633342] <0> (0)[1:init]reboot: Restarting system with command 'bootloader'

[30604.633359] <0>-(0)[1:init]machine_restart, arm_pm_restart( (null))

[30604.633374] <0>-(0)[1:init]ARCH_RESET happen!!!

Edit:

I am sorry but seems I have no free time to play with model like your's because I can see a lot of init .rc files contain a lot of services cccp, what is that services I do not know, I saw it for a first time, have no idea how it working! Sorry can't help you, hope you figure out what cause bootloop. Did you ask help in your device forum? Types of things I saw in your ramdisk is out of my knownledge sorry
[Sony Cross-Device General] nosiobadx:
This mode just works when you made your DRM backup before unlocking bootloader.?? I was reading and a I need TA.img back up what is it?

Sorry for the noon question

Using Z3+

---------- Post added 16th April 2017 at 12:00 AM ---------- Previous post was 15th April 2017 at 11:59 PM ----------

Could you upload the kernel pls??? Been trying to build one but can't manage to do it
[Sony Cross-Device General] prasad.asr1978@gmail.com:
Yes, i made the backup of DRM keys (TA partition) backup before unlocking bootloader (i did it long ago, after reading the importance of it, in XDA only i read all related threads and found solutions for backing up and others).

I can upload the kernel but if you flash it with your device, it wil be bricked, B'cos DRM keys unique to each device. My DRM keys will not work for another z3+ or other ? . If you don't have DRM keys of your device, then follow other threads about fixing of DRM fixing method (without keys).

Plz read the related threads carefully and attempt anything.

Best of luck
[Sony Cross-Device General] nosiobadx:
Thanks dude, unfortunately I'm here since the beginning of everything, and when I unlocked the bootloader we didn't have that magnificent tool for backing up the real DRM Keys, so. Thanks for the reply though.
[Sony Cross-Device General] Klaus N.:
That's really strange. Btw, I tried your tool with a 7.1.1 AOSP rom for the Z1. It boots up, and the pin code is accepted. Unfortunately the camera is still not working well (which has nothing to do with your PoC, of course). I wonder how can I check, if the ta has been recognized, as there's no service menu in AOSP or LOS?
[Sony Cross-Device General] Muhammadsoli:
Hey guys I have a question. Unfortunately i didn't back up TA before unlocking my phone and now the picture quality is low. Is there any way to improve that?
[Sony Cross-Device General] esps:
Kernel with DRM fixed...
[Sony Cross-Device General] Muhammadsoli:
Could you make one for me? I will provide the stock kernel
[Sony Cross-Device General] esps:
Read here... https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605

or here... https://xdaforums.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672

or search a kernel on your phone section.
[Sony Cross-Device General] munjeni:
You can see it in logcat of a fresh boot something like tad configured, accepting connection...etc
[Sony Cross-Device General] Andrzej_Andrzej:
Is it an error ?

I put fota kernel sin and my TAxxx.img in the same folder as ta_poc.exe and everything has been processing ok but at the end I received a message:

"Runing user script...

ash: can't open 'scripts/patch_things.sh'

command ret: 2.

Your script didn't returned 0, please check your script!"

Press any key to continue . . .

TA.img was created but is it some kind of an error ? XPeria XA F3111.

regards,

Andrzej_Andrzej
[Sony Cross-Device General] juanpirulo:
did you use the same folder where your are running poc_ta before to do any other kernel patch?. If yes try to make this new kernel patch in a new folder . Look inside scripts folder if the patch_things.sh script is there or is been deleted for some reason (are you using antivirus?). cheers