yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] RalphLauren:
Hi [MENTION=3975929]zxz0O0[/MENTION] ,

I just tried it with the latest (4.4.4) Z firmware 10.5.1.A.0.283.

Everything went super smooth. No errors during creating or flashing.

However, the similar has happened like Feodorus reported before: everything seems to be flashed with no errors, but dualrecovery is not operable.

I even guess that dualrecovery is not flashed at all during the process, because after the system reboot and android update, root is present and working, but busybox is absent (which has to be installed by dualrecovery). Moreover, when I reboot a phone, the vibrate and light prompt for the booting in recovery does not come up and phone boots into OS no matter if I hold UP or DOWN volume rocket.

So, in the end I just have to flash dualrecovery from the computer.

If you could look into this issue, it would be absolutely great.

Otherwise I'm happy I can have the newest rooted FW with my locked bootloader!
[Sony Cross-Device General] zxz0O0:
Pm'd you.

Is it possible for you to upload the flashable zip? While flashing it in recovery, did you see any output about dualrecovery? Or did it end after SuperSU?
[Sony Cross-Device General] RalphLauren:
Concerning the output messages.

It was successful insertion of dualrecovery in PRFCreator.

I did not see any output message about dualrecovery when I flashed "flashable.zip" in TWRP recovery.
[Sony Cross-Device General] CrueLNooB:
im trying using Pre-Rooted ROM so i need to instal dual recovery. when i try

im stuck on this pict

im choosing #3 because its new FW and not rooted

is anyone can give me solution?
[Sony Cross-Device General] RalphLauren:
Why for god sake you are using option3?

if as you said, you have installed already P-R-E--R-O-O-T-E-D ROM
[Sony Cross-Device General] zxz0O0:
I would like to fix the issue with missing dualrecovery. Could you flash the pre-rooted firmware again and upload recovery log for me? You can do it in TWRP via [Advanced] => [Copy Log to SD].
[Sony Cross-Device General] o-l-a-v:
For the pre-rooted zips i made for the ZR

http://xdaforums.com/xperia-zr/general/ftf-pre-rooted-c5503-10-5-1-0-283-t2873318

some people report that recovery works. Some say it don't. So seems pretty random
[Sony Cross-Device General] Rootk1t:
Fix this "floating" bug and you'll make already great tool even better:fingers-crossed:
[Sony Cross-Device General] sigprof:
Tried to flash the 10.5.1.A.0.283-R3D Russian firmware for Xperia ZR using TWRP from XZDR 2.7.154, and got the same problem (XZDualRecovery not installed). Here is the zipped log: View attachment recovery.log.zip.

Apparently the problem is that update-binary from XZDR crashes with SIGSEGV, and this is caused by wrong invocation — the second argument must be the file descriptor number used for communication with the main recovery binary, and PRFCreator just passes a hardcoded "20" there. I tried to work around this problem by providing a proper pipe fd (and doing some sed magic to get the "ui_print" output from the invoked update-binary to the recovery log). Here is the patch I applied to updater-script: View attachment updater-script.diff.

The patched script works and produces the following log: View attachment recovery2.log.zip. The output from the nested update script is not ideal (there are extra empty lines after each line of "ui_print" output), but it is better than nothing.

It might be possible to redirect the output to the main recovery UI, but this requires either hacks like this (and a workaround for TWRP which does things differently), or replacing update-binary in the PRFCreator-made archive with a shell script (which then could find the communication pipe fd in $2). And the progress bar will probably overflow (the "progress" command sent over the pipe is relative to the current position, and every update script will probably assume that it should fill the progress bar to 100% by itself).
[Sony Cross-Device General] zxz0O0:
Yeah I thought that could be the problem and I have already created a new version with shell script of update-binary which catches the arguments. Thanks a lot though for the logs and trying to find a solution! :highfive:

If you would like to test the new version, pm me.
[Sony Cross-Device General] juanpirulo:
[MENTION=3975929]zxz0O0[/MENTION] I wonder if i can make a flashable.zip take system.ext4 and modify on Linux and afterwards just simple to put the file again on the zip, is it this possible?. cheers
[Sony Cross-Device General] Rootk1t:
when are you going to release it?
[Sony Cross-Device General] sling-shot:
I am on Sony stock Lollipop 5.1.1 firmware, root with SuperSU 2.46, XZDualRecovery 2.23. My phone is Xperia ZR.

Looks like my phone is in the list of exceptions needing manual remount.
[Sony Cross-Device General] zxz0O0:
Open an adb shell and type 'mount'. Post the output here
[Sony Cross-Device General] sling-shot:
Here is the output of adb shell mount

C:\Flashtool\x10flasher_lib>adb shell
shell@C5502:/ $ mount
mount
rootfs / rootfs ro,seclabel,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,
data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,no
dev,relatime,discard,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/apps_log /mnt/idd ext4 rw,seclabel,nosuid
,nodev,noexec,noatime,discard,nobarrier,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,node
v,noatime,discard,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/LTALabel /lta-label ext4 ro,context=u:obj
ect_r:lta_label:s0,nosuid,nodev,noexec,noatime,data=ordered 0 0
tmpfs /mnt/qcks tmpfs rw,seclabel,relatime,mode=770,uid=1000,gid=1000 0 0
/dev/block/loop0 /system/odex.app squashfs ro,seclabel,relatime 0 0
/dev/block/loop1 /system/odex.priv-app squashfs ro,seclabel,relatime 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,noexec,relatime,user_id=1023,
group_id=1023,default_permissions,allow_other,allow_utime_grp 0 0
/dev/block/vold/179:34 /data/sdext2 ext3 rw,seclabel,relatime,data=ordered 0 0
/dev/block/vold/179:33 /mnt/media_rw/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec
,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp43
7,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:33 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,rela
time,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,ioc
harset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,noexec,relatime,user_id=1023,gro
up_id=1023,default_permissions,allow_other,allow_utime_grp 0 0
/dev/block/vold/179:33 /data/media/obb/com.threye.iaf.gots vfat rw,dirsync,nosui
d,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020
,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:33 /data/media/0/Medscape vfat rw,dirsync,nosuid,nodev,noexe
c,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp4
37,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
shell@C5502:/ $
[Sony Cross-Device General] zxz0O0:
See these lines:

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,
data=ordered 0 0

/dev/block/loop0 /system/odex.app squashfs ro,seclabel,relatime 0 0
/dev/block/loop1 /system/odex.priv-app squashfs ro,seclabel,relatime 0 0

ro means read-only. In order to change something you have to remount these as read-write.
[Sony Cross-Device General] Rootk1t:
I have TabZ (the same 5.1.1 stock firmware version (.222/.228) as yours), XZDR 2.23, SuperSU BETA v 2.52.

Recovery is working good, i can install any zip from TWRP, without messing with mount and whatsoever.

Also building PRF is done without problems with v1.1.

So you should be doing smth wrong. Maybe there are leftovers from recovery 2.21. Do a clean reinstall and try again.

P.S: With new KingRoot (v4.6 and never all in one package) you need to use SuperSUme app to automatically remove KingRoot and install SuperSU ;)
[Sony Cross-Device General] sling-shot:
I think I have it all solved now. Only the system partition needs manual remount which actually is a safer thing. All the ducks are in row now.
[Sony Cross-Device General] sling-shot:
Everything is A-OK now. I mount system manually and could rename, delete Google+ directory. It was gone on reboot and system was back to read only. Perfect.

I could also re install Google+ from Play Store and link to sd card with Link2SD including the DEX file.

Thank you very much for the patient help. I have learnt a lot in this journey.
[Sony Cross-Device General] hihiman1:
addition boot.img / removal of bloatware ???

Hi there,

is it possible to include a boot.img (incl. TWRP) if the bootloader is unlocked?

In addition I wonder whether I can remove bloatware prior to the installation.

Thank you in advance

HiHiMan
[Sony Cross-Device General] zxz0O0:
You should be able to replace boot.elf inside the prerooted firmware with your custom kernel image. For bloatware you can use Legacy mode and edit the ext4 file or make your own flashable script which removes the bloatware and include it as extra flashable.
[Sony Cross-Device General] skyhirules:
1. Can the combined.zip dual recovery (version 2.8.23) be used instead of the flashable.zip (version 2.8.21)? Would that cause a problem?

2. I have a zip file that I want to add to the extras, but it needs some additions to the buildprop before flashing. Is there a way to add it?

Thanks a lot in advance for the response. Have a happy new year!
[Sony Cross-Device General] juanpirulo:
You can used last dualrecovery 2.8.23 wuthout problem. Cheers

Enviado desde mi C6903 mediante Tapatalk
[Sony Cross-Device General] Rootk1t:
Include already modified build.prop in your extra zip to be unpacked to /system/.
[Sony Cross-Device General] juanpirulo:
Also you can add manually a buildprop.sh script in the zip and modified updater- script inside meta-inf to run it. Cheers

Enviado desde mi D6603 mediante Tapatalk
[Sony Cross-Device General] brenyoka:
How can I make the latest TWRP image file to a flashable zip? I have ZL C6502. thanks
[Sony Cross-Device General] Rootk1t:
This image is a recovery that can be flashed to FOTA partition on unlocked bootloader.

Why not just flash it via fastboot?
[Sony Cross-Device General] brenyoka:
OK, just I just wanted to make one pre-rooted zip which has everything in it so you could do a one-step install after a full wipe. In any case, I try to get a flashable zip out of this recovery image somehow.
[Sony Cross-Device General] control freak:
help

i followed steps mentioned in the OP, installed successfully, but with one error, "E: unable to mount /system".

then i wiped, rebooted, and checked with root checker but root access was not installed properly.

currently my device Xperia ZL is completely stock, running 5.1.1, sadly unrooted.

what went wrong?

what should i do to successfully install?

EDIT: i was able to install prerooted zip later w/o issues. I had to root earlier using king root, then installed xzdualrecovery then recreated zip file using PRF creator but this time used xzdualrecovery version 2.23 (release combined) and it installed w/o hiccups. However, i first mounted "system" using TWRP> mount> system.

it mounted w/o issues.

hope it helps others facing similar issues.

thanks.
[Sony Cross-Device General] russel5:
[MENTION=3975929]zxz0O0[/MENTION], hello.

can you help me? i can't understand some things in your script.

what is the "version" & "outfile" - how this values is generated?

i always have "3" & "24" - what this mean

and if i set "1" & "10", why supersu.zip and dualrecovery.zip are not install?

but if i set "1" & "1" - supersu and dualrecovery installed, but i don't see it on recovery's screen.

can you explain this, thanks.
[Sony Cross-Device General] zxz0O0:
These values are passed by the recovery menu as parameters.

Version indicates the edify script version I think (not important)

Outfile is the open file descriptor to display messages on the screen
[Sony Cross-Device General] russel5:
Ok, thanks. One last question, how can I find this value (outfile) in updater-script? If this possible
[Sony Cross-Device General] zxz0O0:
When you are flashing a zip from recovery menu, the recovery menu unpacks META-INF/com/google/android/update-binary and executes this binary.

First parameter is version

Second parameter is output file descriptor

Third parameter is path to flashable zip

Then update-binary will extract META-INF/com/google/android/updater-script from flashable zip and run it. So to catch the parameters I renamed update-binary to update-binary2 and created a shell script as update-binary (see here: https://github.com/dosomder/PRFCrea...les/META-INF/com/google/android/update-binary )

This shell script will write the arguments to a file called prfargs and execute update-binary2.

I think I copied this method from SuperSU.
[Sony Cross-Device General] russel5:
Ok I make this, but this not work for me. First string on my updater-script is check the phone alias. When I delete this, my script steel doesn't work. Not extract system, not symlink, not set permissions. But write all done in the end. And I don't know why it's not work. Thats I want to know how find this value in updater-script
[Sony Cross-Device General] zxz0O0:
Sorry I don't understand what you mean, I explained above how to get the output file descriptor. Maybe you can post your update-binary and updater-script
[Sony Cross-Device General] tetsuo55:
Hi zxz0O0,

When i use the updated Ionic.Zip.dll with PRF1.1 i get a crash.

Could you compile a new version for us?
[Sony Cross-Device General] zxz0O0:
Just updated to v1.2. :)

Some bugs are fixed and PRFCreator also supports non-msm devices (like for example Xperia C4) (thanks eoinkennedy for report)

Can you test with v1.2?
[Sony Cross-Device General] tetsuo55:
It worked perfectly!
[Sony Cross-Device General] AndriyeZ:
Any link where I can get Xposed Installer. Apk? Thanks
[Sony Cross-Device General] Pi3rluigi:
Search Xda for XPosed, there's a whole sub-forum

Inviato dal mio D6633 utilizzando Tapatalk
[Sony Cross-Device General] rcll:
Thanks for this great tool!

Is it possible to build firmware using SuperUser.zip from Koush/Clockworkmod instead of SuperSU.zip from Chainfire?
[Sony Cross-Device General] zxz0O0:
Yes you can. It just needs to be a flashable zip :)
[Sony Cross-Device General] nasosvasedis:
Hello! I have an XPERIA Z2, with locked bootloader and I wonder this. I have flashed a custom stock-based ROM but I want to change the kernel in order to fix the ramdisk which has a mistake in build version.

What will happen if I flash via recovery a zip made by PRF that ONLY contains a kernel, a recovery and root, without flashing system, data etc.?
[Sony Cross-Device General] russel5:
[MENTION=3975929]zxz0O0[/MENTION] about your new version.

i have .232 firmware for d5803, made pre-rooted .197 for docomo ( kernel, fota and other partitions was checked) with your new version 1.2

after install this .zip in custom recovery my system partition has gone ) . recovery can't mount it and when i choose reboot, recovery tells me that no os installed.

ok, i think problem is different partitions size in 2 different firmwares (d5803 and docomo) and i first flash .ftf file via FlashTool and then install pre-rooted zip via custom recovery.

after this, system partition - ok, but after reboot phone just not boot up. just black screen and vibration. ok, i again flash .ftf file, but exclude system - phone boot up, then reboot in recovery itself and something do, i don't know what.

then i use you version 1.1 and after flash this pre-rooted, phone boot normal without any issues. i think something broke the partitions in 1.2 version.
[Sony Cross-Device General] zxz0O0:
Did you see some error or maybe you can provide recovery log? When an error happens it should now show directly on the screen.
[Sony Cross-Device General] russel5:
No errors, all was done. Recovery log I don't save, sorry

P.S. only one thing, after flashing recovery write - can't mount /system
[Sony Cross-Device General] Calystos:
I've tried v1.2 to get my Sony Xperia Z3 updated, and keep getting errors trying to sign the zip file. I've tried even with legacy mode and same results. v1.1 worked perfectly fine (both with and without legacy mode) but v1.2 refuses to.

Only error in the log is that it could not sign zip.

Any ideas?
[Sony Cross-Device General] zxz0O0:
Thanks for reporting. Seems it's a bug when the path to PRFCreator has a space in it :)
[Sony Cross-Device General] Calystos:
lol, gotta love daft things like that. But glad to help, very useful and handy software, :)

EDIT: Did not wish to double-post so edited. Tried to create a new archive with a few apk's in, and one came out with "Invalid Characters In Path" and it stops creating then the create button is enabled again. It was a free app downloaded from google's play store. Unsure if it was the apk to blame or not, so re-tried and removed the apk to see if that'd allow it to finish. It worked fine then. Bit odd, wonder why that one apk refused to go in. It was just "GPS Status & Toolbox" from play store, a free gps app. I'd understand maybe if it was an app from a 3rd party site or something,.

I've since opened the apk file from my device, even direct from the play store, and noted that there were some files inside that had characters that were not english. I'm guessing this is the reason why it failed. Having viewed other apk's I could not see any of these letters anywhere else, only in this one apk. EG files named like this: "ÔÇåÔÇë" or "ÔÇëÔüƒ.xml".

Is there a limit to how many apk's/zips you can add, or something along those lines?

Also noticed that the log area wipes every now and then when creating, so can't scroll back to check for any warnings/etc.

Also a suggestion in regards to the add zip/apk feature, is it possible to make it so you can add multiple items rather than having to re-click add, select one item, over and over? Would be very useful if could do multi-select.

Thanks, and keep up the great, work, :)
[Sony Cross-Device General] rename_nick:
i'm using xpeira z3 (D6603), when i use ver 1.1 everything work ok but ver 1.2 i got bootloop.

----

sr my bad english :'(
[Sony Cross-Device General] zxz0O0:
I'll try to implement the things you mentioned. Can you upload this apk?
[Sony Cross-Device General] vikram.mohal:
Is sign up tick compulsory

---------- Post added at 03:25 PM ---------- Previous post was at 03:21 PM ----------

I tried prf crater tool on my z ultra stock 5.1.1 Everything is fine, root checker says that status is rootetd, but when I tried to remove system apps with root explorer, ex file explorer etc. Nothing happened. Get error delete failed. What is the problem here.
[Sony Cross-Device General] ecksdeeay:
The immediate problem is you've quoted the whole OP:banghead:

Have you used TiBckup?

Use log cat or similar to get a log of the error at run time when attempting removal
[Sony Cross-Device General] vikram.mohal:
Hello I make 5.1.1 prerooted ROM with prf creator as all u said. But after flash everything works fine, but when I try to delete system files with root explorer or some rooted apps, I got error unable to delete.super user giving access to root apps but I can't delete apps and cant change permission of any app. What's wrong with it. Plz suggest, I using all version latest.
[Sony Cross-Device General] sling-shot:
You have to change permission manually after each reboot.

You can use this application from Play Store

Mount /system RO/
[Sony Cross-Device General] vikram.mohal:
Which app
[Sony Cross-Device General] Bartekreaper:
Root Explorer and mount r/w

Wysłane z mojej Z3

Compact przy użyciu Tapatalk
[Sony Cross-Device General] vikram.mohal:
I already tried above said but problem still there. I think something wrong with super user. By I m using latest version

---------- Post added at 11:10 AM ---------- Previous post was at 11:09 AM ----------

Any other method to root stock 5.1.1
[Sony Cross-Device General] Bartekreaper:
Kingroot or downgrade to 4.4/5.0 and then root.

Wysłane z mojej Z3

Compact przy użyciu Tapatalk
[Sony Cross-Device General] sling-shot:
That last line in my previous post was the name of application itself. Search for that on Play Store.

Do you have XZDualRecovery installed?

When you say that the problem is still there, please give us the exact steps you took and the exact error that occurred.
[Sony Cross-Device General] vikram.mohal:
Yes I have twrp xdual recovery installed. Should I used app as u mention in thread. Root explorer didn't work, although super user gave permission. Sorry for bad English

---------- Post added at 12:57 PM ---------- Previous post was at 12:55 PM ----------

Is there any links for 4.4.4 Stock ROM for xzu c6802 Google play edition
[Sony Cross-Device General] jcgechevarria:
It's working add multiple apk's?

Can we finally add multiple apk's in one operation on 1.2 version?
[Sony Cross-Device General] zxz0O0:
Yes it should work now :)
[Sony Cross-Device General] vikram.mohal:
Wow today I successful to make 5.1.1 stock rooted rom for my z ultra gpe. Big thanx for developers.

---------- Post added at 12:09 PM ---------- Previous post was at 12:05 PM ----------

Today I successfully root my 5.1.1 stock rom for z ultra gpe with your software. Big thanx. I resolve problem that I mentioned here. There was a problem with super su. I changed super su version and its work perfectly.
[Sony Cross-Device General] jcgechevarria:
Yes, yes, yes!!!! it works!!!! thanks.
[Sony Cross-Device General] jijishthomas:
Good work
[Sony Cross-Device General] dron39:
Why when i include fotakernel and kernel and flash it - it displays error every time when i try it, but modem and lta-label flashes always sucsessfully?
[Sony Cross-Device General] sxtester:
[MENTION=3975929]zxz0O0[/MENTION]:

Sorry for I might have missed the answer already provided somewhere, but would PRFcreator be able to produce a pre-rooted flashable zip from a Marshmallow (Android 6.x, e.g. Z3/Z3C) [concept] firmware?
[Sony Cross-Device General] the.fall:
That's an interesting question, I also have one concerning this topic. What if I wanted to create a prerooted 5.1.1 firmware with the new SuperSU 2.65 zip, would it be a systemless SuperSU install or still a "normal" one? Will it be necessary to update PRFCreator when MM firmwares arrive in order to root them properly?
[Sony Cross-Device General] sxtester:
The question is also valid (about systemless/normal install). However, Marshmallow (Android 6.x) is already there, at least for the Z3/Z3C devices in form of the concept firmware available since couple of months. Hence, it's time... :)
[Sony Cross-Device General] Rootk1t:
as far as i heard, systemless root is possible on Nexus devices only.