yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] Rootk1t:
Update recovery to 2.8.21 and wipe /system/ before installation pf PRF firmware.

The software wasn't updated because system size free: 285MB, if i'm not mistaken.
[Sony Cross-Device General] zxz0O0:
It should be around 2 GB. I am working on a new version which doesn't require any additional space :)

But there is another problem with CWM. It does not automatically mount /data. So no matter how much free space there is, you will always get the error message.
[Sony Cross-Device General] enfilade:
Thanks.

I was able to flash it by cleaning up the storage. :good:
[Sony Cross-Device General] ecksdeeay:
So I don't have to downgrade to KK again and root that, this can all be done via the recovery with the PRF on SDcard?

I've forgotten the whole kk procedure anyway and was looking for a reminder but if it can be done from my rooted 5.0.2 XZR (C5502) previously rooted from KK then with PRF to LP that would save a lot of work.

Currently have the notification sitting there for days to download the 5.1.1.
[Sony Cross-Device General] DoubleYouPee:
Hello,

I'm about to create/flash a prerooted 5.1.1 over my rooted 5.0.2 Xperia ZL.

Last time (4.4>5.0.2), I wiped for new ROM.

Can I skip wipe and flash over my current ROM? I don't want to reinstall everything.
[Sony Cross-Device General] ecksdeeay:
Didn't I just say that?
[Sony Cross-Device General] enfilade:
Yep, I got it to work from rooted 5.0.2 :)

Just create a PRF and flash via recovery.
[Sony Cross-Device General] chrisgestapo:
Me too, few days ago I upgraded my ZR using PRF from rooted 4.4 to 5.0.2 first and then to 5.1.1 without wiping data. It seems to work fine.

To avoid potential problems, wiping data is still recommended.
[Sony Cross-Device General] DoubleYouPee:
No?

I just made a signed, prerooted ROM with v1.0 like so:

Succes, no errors: flashable-prerooted-signed.zip

However when I flash it in Philz Touch it finishes flashing in 1 second, and says set_perm: some changes failed

Then I reboot into my old ROM... :confused:

I will try to make log, maybe I have same problem as Rootk1t.

How do you make a log in Philz? I tried "report error" and it said it made a log, but that file is 0.00b.

Anyway the set_perm is pretty much the only error because it stops right after that.
[Sony Cross-Device General] ecksdeeay:
I've got to go back to KK after prf from twrp failed and letft me with 5.1.1 unrooted. I must've gone wrong somewhere.

System wasn't mounted shown in error of twrp recovery and without wipe wouldn't install, leaving 5.0.2 rooted.
[Sony Cross-Device General] ecksdeeay:
Uncheck signed

...& don't sign the PRF maybe?

I've now succeeded with rooted 5.1.1, but only after going back to KK then do the same PRF from TWRP.
[Sony Cross-Device General] DoubleYouPee:
Why?

My previous one was signed, and it was recommended to do so.

I think I have the same problem as Rootk1t, will try to flash it using TWRP later.
[Sony Cross-Device General] ecksdeeay:
I read not bother with signing, but it's up to you....& good luck!
[Sony Cross-Device General] DoubleYouPee:
Flashed succesfully with TWRP :) so the problem lies with PRF + CWM.

Didn't wipe. Have root.:good:
[Sony Cross-Device General] zxz0O0:
But the device boots? Seems SuperSU can not mount /system. Can you manually mount /system in recovery?
[Sony Cross-Device General] russel5:
yes, device boot and yes i can mount system

as i said all another blocks is flashed success including dualrecovery

same problem with latest prfcreator --> http://xdaforums.com/showpost.php?p=62821266&postcount=12 and lower
[Sony Cross-Device General] zxz0O0:
If you mount /system rw before installing the prerooted firmware, does root exist? Maybe SuperSU needs same commands like dualrecovery to mount system

run_program("/sbin/busybox", "blockdev", "--setrw", "/dev/block/platform/msm_sdcc.1/by-name/system");
run_program("/sbin/busybox", "mount", "/system");
[Sony Cross-Device General] Rootk1t:
Problem is that you were using 2.8.21 recovery which is not fully compatible with 5.1.1 (doesn't automount /system/).
[Sony Cross-Device General] ecksdeeay:
Yes I kinda guessed after updating flashtool and twrp, shall know for (edit; future) flashing ?
[Sony Cross-Device General] Rootk1t:
fixed version for TabZ is here.
[Sony Cross-Device General] juanpirulo:
Well I contact [NUT] about the problem. I make a flashable zip with and without kernel but its not working with the 133 Vodafone firmware, so I wonder if will it work with future firmwares if sony implement this security fix. cheers
[Sony Cross-Device General] zxz0O0:
Meanwhile I released v0.4 which should fix the bug with rpm some people experienced (stuck at job 5/7). Also, I made dualrecovery zip optional.

I'm sure [NUT] will fix it as soon as possible, shouldn't take too long :)
[Sony Cross-Device General] kamalmawa:
Awesome... v0.4 works like a charm inclucing Kernel image. Only took me 1 min and 8 sec. Compares to Linux method I was using this is a huge time saver.. Thanks again

29/08/2014 23:49:53 - Extracting system.sin from D6503_17.1.2.A.0.323_Vodafone UK.ftf
29/08/2014 23:50:17 - Verifying extracted Sin File
29/08/2014 23:50:17 - Extracting image from Sin File system.sin
29/08/2014 23:50:27 - Adding info to flashable script
29/08/2014 23:50:27 - Adding system to zip
29/08/2014 23:50:51 - Adding kernel to zip
29/08/2014 23:50:52 - Adding fotakernel to zip
29/08/2014 23:50:54 - Adding elabel-D6503-row_201404221026.1_17.1.2.A.0.323 to zip
29/08/2014 23:50:56 - Adding SuperSU.zip
29/08/2014 23:50:59 - Adding DualRecovery
29/08/2014 23:51:01 - Finished
[Sony Cross-Device General] Feodorus 4PDA:
When I flashing flashable.zip, root am, but not full, and dualrecovery doesn't come.
[Sony Cross-Device General] zxz0O0:
You don't have dualrecovery? Are you sure you used the flashable zip of dualrecovery and not the installer? Was there any error while flashing the pre-rooted firmware?
[Sony Cross-Device General] Feodorus 4PDA:
After installation of flashing doesn't reboot in dualrecovery. Does Not error while flashing the pre-rooted firmware
[Sony Cross-Device General] TimeTurn:
Does this tool disable Sony RIC? Can the FTF be flashed with a locked bootloader? Thanks anyway :)
[Sony Cross-Device General] zxz0O0:
Note this tool creates a flashable zip (flashable in recovery menu) and not a ftf. Dualrecovery should disable Sony RIC.
[Sony Cross-Device General] aksvinu89:
Thanks for this awesome tool but there seem to be a problem. The sin is not version 3. have attached a screenshot of the failed try.
[Sony Cross-Device General] ananthtcr:
I have Xperia M Dual.

Shall i use Philz Touch Recovery instead of Nuts Dual Recovery?
[Sony Cross-Device General] russel5:
thanks man, works perfect on last .108 R4C
[Sony Cross-Device General] Rootk1t:
try deleting xzdualrecovery folder on your external sd card.
[Sony Cross-Device General] zxz0O0:
Currently only sin version 3 is compatible. Maybe I will add compatibility for sin version 2.

Well you can use any flashable zip. It's optional. But usually for newer Xperia phones (like Z1C) it's important to include dualrecovery for full root.
[Sony Cross-Device General] juanpirulo:
Works perfect with xperia z1. Cheers
[Sony Cross-Device General] Rootk1t:
zxz0O0

According to NUT's DIY Guide we flashed stripped .ftf with kernels afterwards flashing zip. With your tool there is a way to include kernel in .zip.

Are there any other advantages of integrating kernel in zip file? BTW, does it also integrate baseband and other modules in .zip? What is LTAlabel?
[Sony Cross-Device General] zxz0O0:
The only advantage is that you don't have to flash FTF afterwards. The files inlcuded are currently kernel.sin, rpm.sin (if exists), FOTAKernel.sin and elabel-* (LTALabel). I did not find out how baseband is flashed. LTALabel is some regulatory informations (you can check /lta-label)

Of course flashing stripped FTF afterwards is 'cleaner' but most of the times not needed.
[Sony Cross-Device General] Rootk1t:
why not inject all files from ftf except userdata.sin, cache.sin, appslog.sin and of course system.sin by default. As result you'll get everything as in .ftf + Root + Recovery.
[Sony Cross-Device General] RedSkyRoad:
Damn, I was really hoping I'd be able to remove the bloat from the flashable zip..
[Sony Cross-Device General] zxz0O0:
It's not as 'simple' as injecting sin. The files missing are baseband (don't know how to flash that), partition-image.sin (don't like to mess with that), loader.sin (not needed, it's just for flashmode), and those you already said.

Well you can do it. Simply create a flashable zip and delete all the files you don't like via script.

If anyone is interested to try it on sin version 2 (e.g. Xperia SP), let me know.
[Sony Cross-Device General] RedSkyRoad:
You mean running a script directly after flashing it? I was meaning releting the bloat FROM the flashable zip...

Can I open the ext4 file and remove the stuff and put it back in?
[Sony Cross-Device General] n_boy86:
Deleted
[Sony Cross-Device General] ecksdeeay:
wassup? You are the 1 who can only fix it, unless more info is given maybe!
[Sony Cross-Device General] leonaheidern:
Hello. I created a signed prf for xperia z C6603 using this firmware

Device: Xperia Z (C6603)

CDA: 1270-1412

Market: Singapore

Operator: Customized SG

Network: GLOBAL-LTE

Release: 10.7.A.0.222 / R1E

Size: 1.18 GB

and XZ-lockeddualrecovery2.8.21-RELEASE.flashable

and UPDATE-SuperSU-v2.46

on PRF Creator v1.0

The phone goes into infinite boot loop at the Sony Logo.

May I know which version of the locked dual recovery I am supposed to use to prevent this infinite boot loop issue at the Sony logo?

reason being is I want to use the Xperia Z Japanese keyboard and Chinese keyboard that some pre-rooted ftfs do not have preinstalled.
[Sony Cross-Device General] hossein7292:
im getting this error when trying PRF Creator to create .546 android 5.1.1 pre rooted firmware for my D6633, any idea why ?

Error: system.sin does not exist
[Sony Cross-Device General] Farsiris:
I tried Creating Flashable Zip in my laptop Windows 8 ..FTF + SuperSU+ Z1-DR-Locked flashable.zip ..Checked All Except "Sign Zip" And "Legacy Mode" and it was Finished But where is the finish Product ?I cant See any .

Solved : By Extracting the PRF Creator Zip .
[Sony Cross-Device General] yngwie_m:
So. I am kind of stuck here. Downloaded PRFCreator ver.1.0, latest SUPERSU and latest dual recovery. Then through Xperifirm, I downloaded 5.1.1 customised GR as. I live in Greece. Made an ftf with latest Flashtool and ran PRFCreator including nothing else than the ftf, SUPERSU zip and dualrecovery zip. Checked everything except sign zip and legacy mode. This gave me a flashable-prerooted.zip.

Put that in external SD. Installed zip and recovery said it finished with some errors. After that I rebooted.

Phone was on 14.4.a.0.108, that is kitkat which I rooted and installed dualrecovery.

So the phone was completely clean with LB, kitkat rooted and dualrecovery. No other apps, no nothing.

The result is that. I am still in kitkat, rooted with dualrecovery. The flashable, prerooted zip did ABSOLUTELY NOTHING. Not yelling here, just pointing out that nothing happened.

So what did I do wrong?

EDIT: After seeing, a couple pages back, the TWRP Recovery, I retried installing the zip through TWRP and...

....Voila!!! Xperia Z1 C6903 on 5.1.1 Customised GR, rooted and with DualRecovery. Thank you [MENTION=3975929]zxz0O0[/MENTION].
[Sony Cross-Device General] zxz0O0:
Does system.sin exist in the ftf file?

Which recovery did you use to install? How much free space is there available on the internal sd?
[Sony Cross-Device General] yngwie_m:
The only problem is now, as I see, that root checker says that I have root access but I cannot install the SUPERSU 2.46 zip. Even after flashing the rom, reentering Twrp recovery and installing update_supersu_2.46.zip it doesn't show up in apps.

As a result, root explorer FC. And I have a generic Package installer icon, which I believe is the supersu not installing correctly. Any help with that?

EDIT: I installed SuperSU through Google play and Root explorer finally started. And it seems to mount r/w in system. The only problem for now is the remaining generic app icon, that cannot be uninstalled. Any idea about that?
[Sony Cross-Device General] hossein7292:
Yeah found the problem

Bad download

Downloaded FTF again and problem solved
[Sony Cross-Device General] Rootk1t:
[MENTION=3975929]zxz0O0[/MENTION]

Please write notification on 1st post (or fix this issue), that ROMs created with PRFC v1.0 should be installed only via TWRP.

If one installs it via CWM (especially after wipes), he gets blank system partition and bootloop, because after wipe of /system/ nothing exists here including recovery (like XZDR), as a result bootloop appears.

So complete reflashing with Flashtool is required after that, which is time consuming (reflash->root->install recovery->install PRF ROM). A lot of people complain about it, unfortunately not in this thread.
[Sony Cross-Device General] zxz0O0:
Thanks, I've added a note ;) In next version I will manually mount the partition and not expect the recovery menu to do it (like TWRP automatically does and CWM does not). I will also improve the flashing process so no additional space will be required.
[Sony Cross-Device General] vvoytex:
Hi. just prepared " my own " preroted firmware using 14.6.A.0.368-GLOBAL-LTA.ftf following this method :) and flashed it via twrp. All works fine . Thank you zxz0O0 for great job:good:
[Sony Cross-Device General] RyTekk:
I was stucked at here.
[Sony Cross-Device General] taciogw:
Bro i did that but i did check "Sign" box too, should it be a problem?

Thanks
[Sony Cross-Device General] zxz0O0:
Did you try redownloading v1.0? I think this was a bug but I fixed it and reuploaded v1.0
[Sony Cross-Device General] Rootk1t:
I think no.
[Sony Cross-Device General] Fragmentation:
Seems like signing the zip is preventing of firmware to be installed. At least it is fair for the Xperia Z Ultra and 5.1.1 stock FTF. Non-signed zip got flashed right.
[Sony Cross-Device General] georgevdl:
I made a pre-rooted 5.1.1 rom for the Xperia Z1 and flashed it, but I cannot mount the system partition as read/write. I can read the data partition and SuperSU is installed.

PRF options:

SuperSU zip: UPDATE-SuperSU-v2.46.zip

Recovery zip: -

Include: Nothing

Sign zip and Legacy Mode: No

After I installed the zip, I powered the phone off and then installed everything from the 5.1.1 ftf except from the system and the ta partition.

Thank you :good:
[Sony Cross-Device General] juanpirulo:
Which file do you included as dualrecovery in the preroot ? Are you sure is the dualrecovery flashable.zip?

Enviado desde mi C6903 mediante Tapatalk
[Sony Cross-Device General] zxz0O0:
If you don't include recovery you will not be able to mount system as rw. If you wish to not use recovery but still mount system rw, include this flashable zip under Extra Zip: https://github.com/dosomder/SonyRICDefeat/blob/master/RICDefeat.zip
[Sony Cross-Device General] RyTekk:
Tried and it works, thanks.
[Sony Cross-Device General] georgevdl:
Thank you, it worked!
[Sony Cross-Device General] true86no:
Hi,

Following your instructions, I made a Xperia Z Ultra 5.1.1 rom with all the right sauces, the latest SuperSu and flashable Dual Recovery. I signed it too. I was able to flash it successfully without wiping and everything was up, running and rooted, except /system is not and can't be Terminal Emulator-ed to read/write. Previously the phone was on 5.0.2 made with prf too.

With a bit of "light googling", the culprit may be the RIC?

Is it possible to include recovery and still not be able to mount system as rw?
[Sony Cross-Device General] zxz0O0:
Dualrecovery usually takes care of the system rw protection called RIC. Looking at the dualrecovery thread ( http://xdaforums.com/showthread.php?t=2261606&page=631 ) there seems to be a bug in the current version. Maybe that's the cause of your problem. Either wait for a new version, or include the flashable zip which I posted a few posts back.
[Sony Cross-Device General] true86no:
You were right. Nut's just offered a beta version that took care of it. Thanks. :good:
[Sony Cross-Device General] juanpirulo:
@ zxz0O0

Hi, now with the new prfcreator i have a dude mate. Before i used to extract system.ext4 from prfzip modify system.ext4 on Linux and just replace old system.ext4 with the new one but know you repack as system.sin so if i convert system.sin on Linux to system.ext4 modify some files and i want to put again in the zip can i convert again system.ext4 on system.sin or i have to modify meta.inf to flash system.ext4?

Sorry if i don´t explain very well. cheers
[Sony Cross-Device General] Rootk1t:
did you try using legacy mode?
[Sony Cross-Device General] juanpirulo:
I will try that way. cheers
[Sony Cross-Device General] zippy01:
Question if I may? How do you repack to .sin? Is it possible to add that to a ftf and flash the whole thing with flashtool? I'm asking because I didn't think converting to sin was possible.

Thank you

EDIT

Just realised you don't actually unpack the sin file now just flash it and then root with the supersu zip is that correct?
[Sony Cross-Device General] Rootk1t:
yes.

Repacking of .sin is possible, but you can't flash it with Flashtool afterwards, cause digital signature will mismatch and device will refuse to boot.

More detailed.
[Sony Cross-Device General] zippy01:
Thank you for the explanation sorry was slightly offtopic
[Sony Cross-Device General] _SIL_:
Question to progremmers of PRFCreator.exe.

Why system.sin is adding in first of all???

Its very, very slowly to create zip. system.sin must added to zip after all needed content!

Thanks
[Sony Cross-Device General] Rootk1t:
I'm not a developer bu would like to comment.

It seems that PRFC flashes files to device in order it adds them to firmware-pretooted.zip

For example:

1). System partition is flashed.

2). Super SU zip

3). Recovery zip

4). Extra zips with mods or additions are installed.

If you wipe /system/ before install, you will not succeed installing zips, especially that replace stock firmware files because, first of all partition is empty and furthermore installing /system/ afterwards will overwrite everything what was there before. So you will 100% break recovery and will have problems with SuperSU.

Also i noticed that version 1.0 (with sinflash mode) got better in speed and especially if your pc has SSD instead of HDD and you are using PRFC v1.0 creating PRF results only in 2-3 minutes which is not very long by all means.

So frankly speaking nothing to complain about.;)
[Sony Cross-Device General] _SIL_:
Rootk1t, it is usual zip file. For flashing files there is no difference in what order they were added to the archive. Programmers understand what I'm saying. :)

When creating a zip, on the C drive all the time creates temporary files larger than 1GB. It is a very long process. It is necessary that the temporary files was created by small size and only in the last stage temporary file must be larger than 1 GB (when finally added system.sin).

And I'm used version 1.0.
[Sony Cross-Device General] zxz0O0:
You are right. I've never thought about this. This will decrease generation time of a prerooted firmware significantly :)
[Sony Cross-Device General] juanpirulo:
[MENTION=4688377]russel5[/MENTION]

Could you upload te link again as its bróken thanks

[MENTION=3975929]zxz0O0[/MENTION] I am having a little bit of trouble trying to deodex my system (XPERIA z1 5.1.1). I used same method than before with the 5.0.2 firmware but now everytime a get a bootloop with no recovery.

Method:

created whith prfcreator 1.0 with legacy mode to get system.ext4 to work with on Linux. I mounted system and replaced deodex files and deleted odex ones, unmounted system and put system.ext4 inside zip again as i did with other firmware. Hope you can help me with any idea. cheers

Enviado desde mi C6903 mediante Tapatalk
[Sony Cross-Device General] Rootk1t:
I must have misunderstood you. I got it now. Instead of repacking huge zip with system inside while adding every zip, repack it once after all other zips are already added. :good:

P.S: But still with the decent SSD it does not take long.

new busybox is integrated in v.1.0 so you can try it.
[Sony Cross-Device General] jdmst77:
Where does the latest version of PRFCreator store it's temp files in Windows XP? The application abended a couple of times due to other processes forcing my machine to reboot and the free space required to create a PRF isn't available anymore when I had ~8-10 GB of free space before starting the process

EDIT:

I think I found it in the PRFCreator.xml, Please let me know if I'm incorrect:

<?xml version="1.0" encoding="UTF-8"?>
<PRFCreator>
[COLOR="Red"][B]<!-- folder to use as a temp file location, empty to use %tmp%-->[/B][/COLOR]
<templocation></templocation>

<!-- display a dialog to let the user choose the destination file and path -->
<saveDialog>False</saveDialog>
</PRFCreator>
[Sony Cross-Device General] zxz0O0:
Yes that is correct.
[Sony Cross-Device General] jdmst77:
Thanks for confirming... when I saw a large .sin file in that directory, I assumed that it was correct and I could even specify a new temp location if I needed

Great tool... it helped when I had to flash stock firmware after messing up an entry in QXDM, at least that's what I think happened after I lost all cell bars and data signals, other than Wi-Fi
[Sony Cross-Device General] saf4xdadev:
Okay so I haven't used this since 0.8 about six months ago, and now I need a little help.

For one thing, when do I use Legacy Mode or does it matter?

I am making prerooted zip for Sony Xperia z2 tablet SGP512. In 0.8 I checked the four top boxes and I also checked signed zip box and it all worked perfect. But now in version 1.0 I see Legacy Mode box and I don’t know what to do.

Any help is welcomed. Thanks
[Sony Cross-Device General] Masoud.Ser:
hi

i after make 5.1 rom with version 1.0 and flash in recovery I get In the beginning eror (set_perm:some changes failed) but When the

make same rom with vesion 0.9 and flash Everything is working fine!!!!!

What's the problem with v1.0?
[Sony Cross-Device General] jdmst77:
I didn't sign it and flashed a Z1s device. The device kept root but I later realized that recovery didn't work anymore with the flashable version of the dual recovery so I just used the installer version after the fact and had no issues getting back into recovery. I believe that Legacy mode is for older devices (pre 2011) or if there are issues flashing.
[Sony Cross-Device General] saf4xdadev:
Thanks for the reply but it sounds like you don't know for sure and you use a different device.
[Sony Cross-Device General] _SIL_:
zxz0O0, A small request. Can you add formatting of the system partition before flashing of system.sin?

Thanks
[Sony Cross-Device General] Rootk1t:
It's working flawlessly with TWRP recovery.

Don't you do wipes manually before flashing? I mean, system format integrated in PRFC installation script is not a bad thing, but you will still need to enter recovery to wipe /cache/; /Dalvik cache/; /data/ and /Internal Storage/ (sometimes).
[Sony Cross-Device General] o-l-a-v:
Should be optional, as this will not allow dirtyflash (update from earlier fw)?

You have to wipe other stuff in recovery anyway (cache, dalvik), why not do system there aswell?
[Sony Cross-Device General] zxz0O0:
Why would you need this? PRFCreator should overwrite system partition completely, it's not file based.