yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] MajorAly:
Couple of Questions

This tool seems intriguing and I'm downloading all the required files to have root on the new 5.0.2 for Z2.

A few questions (apologies if they have already been answered, I flipped though the first few pages of the thread to read everything):

1. I have a pure stock locked BL Z2, I need pure stock experience with nothing going haywire except with the addition of root. This does completely that right?

2. Is there no other way to flash the flashable.zip file without the recovery menu? I really don't like putting any custom recovery.

3. Will I still receive updates for the new FWs after rooting using this method?
[Sony Cross-Device General] eyeofsiva:
Error: could not execute java

While creating a flashable zip, I got this message:

Error: Could not execute Java. Is it installed?

This was followed by a "Finished" message. Is Java required to be installed? I am on Windows 8, no java installed. There is a flashable.zip file created, but I am somewhat afraid to flash it. Any help will be deeply appreciated.

Thanks in advance.
[Sony Cross-Device General] Tboyroy83:
I'm not 100% sure but I always have java installed on every machine I use to do any kind of android related tasks, so it probably wouldn't hurt to install it and try again.
[Sony Cross-Device General] vcdwelt:
Java is needed for signed zip. Create it without Signed and it should run also without Java.
[Sony Cross-Device General] willy792003:
Any plan to make this awesome tool for mac?
[Sony Cross-Device General] Meloferz:
I made a flasheable signed zip with root, I had checked everything, and root don't work properly after flashing :/
[Sony Cross-Device General] zwillhill:
A ftf have ta,bootbundle,elabel,but prfcreator doesn't include them.

are they needed?
[Sony Cross-Device General] eyeofsiva:
Thanks. I installed java and created a new flashable-signed.zip (previous one was named flashable.zip). I assume java is needed for zip signing or something like that.
[Sony Cross-Device General] deck91:
CRC Error :(

Please help :/
[Sony Cross-Device General] kingvortex:
By reading the error, it seems the FTF you're using may be corrupted. Download it again and try again.

Sent from my C6603
[Sony Cross-Device General] --N7--:
i have created the zip i wanted but 1 question

ive never worked with nut always had cwm (no idea)

im on unlocked bootloader ...but in nut files i found only lockedduelrecoveryz1

will it work on unlocked to?:confused:
[Sony Cross-Device General] Tboyroy83:
Yes it is for both ;)
[Sony Cross-Device General] zxz0O0:
That's a good idea actually. I will try to implement it. ;)

Using the latest source code from github it should work. Didn't have time yet to release a new version here.
[Sony Cross-Device General] caqo71:
Maybe you could make also a browse button to choose the output file.

Enviado desde mi D6603 mediante Tapatalk
[Sony Cross-Device General] juanpirulo:
[MENTION=3975929]zxz0O0[/MENTION] could you or someone else explain me about the diferences between sing the zip or not signed? Could make a diference in a modified rom to work on our devices?. Cheers

never mind I get the information in op
[Sony Cross-Device General] ljhsquall:
I used this to make my first pre-root firmware for lollipop and it work flawlessly! Except no option to choose where to place the output file.
[Sony Cross-Device General] Tboyroy83:
Just used this tool to create a pre-rooted zip using lollipop 5.0.2, superSU and xzdr 2.8.12 and worked perfectly. Thank you for such a useful tool =D>
[Sony Cross-Device General] sm.vassallo:
for me it got stuck at the sony animation before it displays the lock screen :(

i.e. it freezes and reboots

not sure why because the ROM built fine.
[Sony Cross-Device General] tarsea:
I've built the latest source code from github with mono framework. No error, no warning :cool: .

This tool run flawlessly with mono on my linux system to get a functional ROM, though i did not test « sign zip » option.

Thanks zxz0O0 and developers for your job :good:.
[Sony Cross-Device General] willy792003:
Care to share your compiled result? I will try to run it with mono for mac
[Sony Cross-Device General] tarsea:
Here it is.

Added new file that fixes checklists background color issue (cf : #349)
[Sony Cross-Device General] willy792003:
It works great on my Mac! Thanks mate!
[Sony Cross-Device General] hispanico957:
...zxz0O0 :cowboy: Just a little clarificatin: in extra zip like image

i can put also a flashable file .zip, reference this post, that is an installer package (xposed-sonyfix-v2.3.zip) for fixing the Xposed-on-Xperia bootloop and for fully enabling the busybox in XZDR ??

Thank

Hispa
[Sony Cross-Device General] Arcano:
Almost the same situation here; mine gets stuck in the boot sequence running the animation endlessly; and I also lose recovery.

I've tried by either downloading a rom via XperiaFirm and building it thru FlashTool, and by using an already made FTF file, all the same.

:confused:
[Sony Cross-Device General] --jenana--:
Give it a try? The script you refer to is quite new, and is constantly updated. So it will make your rom out-of-date in a few hours. But I can't see a reason why you couldn't use this way to flash it. Btw, in that case, also include Xposed Framework...
[Sony Cross-Device General] Arcano:
I've managed to boot into my new rom by NOT wiping data, but I keep losing the recovery. SuperSU is installed fine.

¿Could anybody give me a hint as to why XZDualRecovery is missing after a successful flash?.

Also, doing a factory reset will inevitably make the first boot hang on the animation. Forcing a second reboot fixes it though.
[Sony Cross-Device General] hispanico957:
Thank for reply... but 2 little clarifications:

1 - in image you can see that in extra-zip i enclose expsed-fix, a file workaround exposed not exposed like you write...

2- i can add also 2 zip extra ? For example xposed-sonyfix.zip and exposed.zip ??

Thank again

Hispa
[Sony Cross-Device General] --jenana--:
I don't understand your first point.

To clarify what I see:

In extra-ZIP you included xposed-sonyfix-v2.3.zip

You should include xposed-sonyfix-v2.5a.zip (or at least: the latest fix) AND xposed-arm-20150308.zip

Next to that, you can add as many zips as you want.
[Sony Cross-Device General] hispanico957:
I try to buil a flashable.zip includig in extra-zip 2 files flashables:

xposed-sonyfix-v2.5a.zip

xposed-sdk21-arm-20150426.zip

the flash is gone well...but the second file, xposed framework, result not installed.

Where its' wrong or in which way i can solve ?

Hispanico
[Sony Cross-Device General] ulum.misbahul:
Hi, i hope you can build tool firmware pre-rooted for miscellaneous xperia device which doesn't support xz dual recovery like xperia m2 :)
[Sony Cross-Device General] aidy.lucas:
It works with the Xperia m2 used it myself

D2303 stock 4.4.4 KK rooted philz touch recovery xposed Bravia engine 2 x-reality
[Sony Cross-Device General] hispanico957:
...some suggestions ?

Thank

Hispa
[Sony Cross-Device General] pegcitygeek:
Hey I'm having some trouble making a pre rooted ftf. I've tried a couple times now, got stuck in a boot loop.

I was trying to follow this guide to make a pre rooted 5.0.2 ftf:

http://techchomps.com/how-to-root-14-5-a-0-242-sony-xperia-z1-c6902-c6903-on-android-5-0-2-lollipop/

Using this ftf as a base:

http://xdaforums.com/xperia-z1/general/ftf-5-0-2-lollipop-unbranded-ca-wind-t3090848

When making the flashable.zip I left all the check boxes under Include as unchecked. I pointed PRF to the ftf linked above, and the flashable zips for SuperSU and XZU. Moved flashable.zip to external SD card, flashed successfully, rebooted system. Then in Flashtool, flashed the ftf from above (Wipe Appslog, Data, Cache, and Excluded System ONLY). Once complete, got stuck in a boot loop.

Any idea what I missed? Should I have wiped data/cache anywhere else? Is there a better/simpler way to do this? I just want rooted 5.0.2 on my Z1. I've read through this whole thread and many others, I'm just lost.
[Sony Cross-Device General] tarsea:
To make safe rom you should try to left all the check boxes under include as checked as recommended in the second post .
[Sony Cross-Device General] pegcitygeek:
Thanks I'm going to try that tonight. Aside from checking those boxes when creating the flashable.zip, do I still need to exclude system when flashing the ftf?

Thanks again.
[Sony Cross-Device General] tarsea:
What ftf firmware do you want to flash ?

You only have to flash your flashable.zip from custom recovery.
[Sony Cross-Device General] pegcitygeek:
Ah that's where I am confused then from reading that guide I posted in my original reply. I thought I still had to flash the 5.0.2 ftf in flashtool after.

I've made the flashable.zip with the boxes checked under include. I'll flash it later and report back.
[Sony Cross-Device General] juanpirulo:
[MENTION=3799890]hispanico957[/MENTION]

I try the same a couple of days before, and i dont know why ( i gess its the script of de sonyfix.zip) its not working well when included in other script, and because of this the xposed install is broken. Cheers

Try to find out with the owner why this happend.
[Sony Cross-Device General] hispanico957:
Thank... i hope in a right reply :)

Hispa
[Sony Cross-Device General] nhkhanh068:
i'm trying to creat pre-rooted for my xperia C3.

but i did not get full root. i just used greenify. cannot use root explorer, titanium...

can anyone help me
[Sony Cross-Device General] lost_ID:
:good:
[Sony Cross-Device General] pvnsai73:
Use ric killer by mohammed or just run t2u dual recovery 2.8.14 latest installer and choose option 1 which injects wpmod.ko which makes system r/w
[Sony Cross-Device General] pegcitygeek:
Just wanted to report back that this worked and I'm typing from 5.0.2 rooted :)
[Sony Cross-Device General] tarsea:
Well done !!! :good:
[Sony Cross-Device General] hispanico957:
+ 1

Hispanico
[Sony Cross-Device General] zxz0O0:
Can you upload the generated zip? Do you have a recovery log?
[Sony Cross-Device General] hispanico957:
No... but now i try the same build without in extra zip the exposed-fix (because is not more necessary), so i have only one file in extrazip: xposed-alpha4.

The zip signed ok also if extraci on pc is ok, but if i flash i have this:

And underneath it there is a message in blue letters "Successful". It all lasts less than a second and of course, in the end I do not have an OS. What could've gone wrong?

Why this ??

Thank

Hispa
[Sony Cross-Device General] zxz0O0:
Can't really help you without checking the generated zip file. Have you tried flashing in different recoveries?
[Sony Cross-Device General] juanpirulo:
Nut take off from the new twrp 2.8.6 the alert messages about wrong installations, so probably you have something wrong with your meta file inside the zip or in the updater script and the result is just nothing is flashed. cheers
[Sony Cross-Device General] joseangel.alv:
Well... First of all, if I were [MENTION=3799890]hispanico957[/MENTION], I would avoid to use any whitespace character in file or directory names.

Perhaps it's not the root cause of his problem, but "if a job's worth doing, it's worth doing well"... ;)
[Sony Cross-Device General] pelurusilver:
Do i need to factory wipe in twrp before install the finishrd zip file from prfcreator?
[Sony Cross-Device General] nhkhanh068:
tks for your help. finally i have full root on my C3. can i use recovery of t2u for my device. if i can, how.

NDR utils sad unable to read xzdr.prop, i find in the thread, they sad that use sdfix. but it's not works for me

tks
[Sony Cross-Device General] pelurusilver:
Not works for me.

Demn. I need to downgrade to .93 again to root.

The instruction a bit confuse.

After creating flashable , success to flash using twrp .

Then after turnoff, flashing again the original ftf file using flashtool?

Of course everything is gone.

Or I missing something
[Sony Cross-Device General] aidy.lucas:
You don't need to flash ftf with flashtool after flashing the pre-rooted zip. All that will do is wipe out the pre-rooted zip you made. You need to be on rooted firmware then create pre-rooted ftf with prf tool then flash via recovery.

D2303 stock 4.4.4 KK rooted philz touch recovery xposed Bravia engine 2 x-reality
[Sony Cross-Device General] pelurusilver:
That is what i ak thinking. But the instruction made me did that.
[Sony Cross-Device General] hispanico957:
All solved i reflash and it's all OK.. probably an error whena install recoevry :cowboy:

Thank for great program :good: :good:

Thank

Hispa
[Sony Cross-Device General] jaeiksong:
help

how to fix this? please help me thank you.
[Sony Cross-Device General] tarsea:
It seems that your ftf file is corrupted.

Get an other copy, verify its integrity, and do the job.
[Sony Cross-Device General] jaeiksong:
oh thank you for the response i will do it thanks.
[Sony Cross-Device General] andycore:
In my quest to get this working today, I noticed a few other people talking about the flash "failing" and resulting in un ending boot loops on their devices, which is what I spend the better part of the day trying to solve.

The solution, for me, was to totally wipe the phone from recovery, flash the PRF I created (I'm using 23.1.A.0.726 "AU" Customisation), then power off the phone and use the FlashTool to re-flash the FTF, while excluding the system partition from the flash.

This solved my boot loop issues and I'm happy to say I've now got that firmware running with root + dual recovery.

I don't know how well this method will work if you have extra ZIPs in your PRF

-- but for my "stock-like" PRF (FTF + Recovery + SuperSU), it seems to have worked fine.
[Sony Cross-Device General] pvnsai73:
I have also the same problem may I know how you fixd the bug and I want to know do you added the xposed leak workaround and xposed framework latest
[Sony Cross-Device General] tarsea:
As said previously, the source code has been enhanced and can now be compiled on mono framework.

We may now use PRFCreator on Mac OS X and linux systems :good:.

However the tool run flawlessly with mono on my linux system, the two checklists don't display their correct background color.

According to the theme used on the system, they may be unreadable (first attached thumbnail for example).

I could fix this issue by modifying their properties (cf attached file & second thumbnail).

I don't know if it is the right way to do the fix but it seems to be adequate on my nux.

Files can be found there : #308
[Sony Cross-Device General] Kizoky:
Works perfectly with Sony Xperia E1

Thanks! :D
[Sony Cross-Device General] papperlapapp:
Thanks for this tool!

I would like to create a pre rooted .ftf based upon 14.5.A.0.242 for my C6903.

The result of your tool is a ZIP file, but without custom recovery I can´t install it....

So, can you modify an existing .ftf to just add the su binary and SuperSU an create a new .ftf from there that contains the su binary?

At what point do you add the su binary? Just adding SuperSU does not provide root, doesn´t it?

Thanks
[Sony Cross-Device General] MickieH:
Looks like a great tool.

I tried it today on a C6903 stock 5.02 ftf which I created after downloading with XperiFirm.

Everything went ok until adding SuperSU.

I get error 2 - Unexpected exit.

Any ideas why this would be?

I included everything as per the original post, added SuperSU 2.46, but didn't add a recovery.

I was going to fastboot TWRP to the recovery partition after flashing the zip
[Sony Cross-Device General] MickieH:
Don't worry I sussed it.

I unticked Sign and tried again and it worked :good:
[Sony Cross-Device General] pelurusilver:
I also follow all the step.

Putting tft,su,dualrecovery

I got root but cannot boot recovery

Manually add recovery by using command prompt but phone not detected

Kindly advise

D5833
[Sony Cross-Device General] ryandxter:
edit: I've move my temp folder location, problem solved myself
[Sony Cross-Device General] Arcano:
I also lose recovery after flashing, even though it is included in the zip I make.

The workaround I've found is to flash Nut's dual recovery after the rom, before rebooting.

--

Enviado desde mi móvil.
[Sony Cross-Device General] mankindtw:
If you look recovery log, it might say "unzip: zip flags 1 and 8 are not supported".

Quick Fix: DON'T enable sign zip option when using PRFCreator.
[Sony Cross-Device General] superpipo:
I used to create a kk flashable zip, to downgrade from lp, but I can't have sd write permission ....there is no way.
[Sony Cross-Device General] puppet13th:
[MENTION=3975929]zxz0O0[/MENTION] i got error while starting prfcreator running on Win7 x64 SP1

error code
[Sony Cross-Device General] joseangel.alv:
It seems that you have a .Net Framework error
[Sony Cross-Device General] MickieH:
If you're talking about SD write permissions on Kitkat, install and run SDFix from Play Store.

That will work as long as you have root access.
[Sony Cross-Device General] JCBomb:
Question: I'm on the latest LL without root or anything. Am I correct in understanding this will be the process to use this tool:

-Go back to KK to flash a rooted version

-Install recovery through rooted KK

-Use PRF tool to create file to flash inside of recovery
[Sony Cross-Device General] aidy.lucas:
Yes that's correct don't worry if it says could not find rpm during the process.

D2303 stock deodexed 4.4.4 KK rooted philz touch recovery xposed Bravia engine 2 x-reality
[Sony Cross-Device General] CygnusHyoga:
This tool totally awesome :good:

I never use this tool but in few hours ago, I use this tool to root C6802 stock rom 5.0.2

Run perfectly :good:
[Sony Cross-Device General] saf4xdadev:
Works great, what a fantastic tool. Used PRFCreator_v0.8 a couple days ago to make my own prerooted Sony stock 23.1.A.1.28 firmware with 5.0.2 for Xperia Z2 Tablet SGP512, USA.

The 3 file packages I used were:

--SGP512_23.1.A.1.28_Generic US.ftf

--UPDATE-SuperSU-v2.46.zip

--TabZ2-lockeddualrecovery2.8.15-RELEASE.flashable.zip

I used two different methods to get the .ftf file just to see if I would get the same result.

Method 1: Sony PC Companion_Web.exe and flashtool-0.9.18.5-windows.exe to build the .ftf file.

Method 2: XperiFirm_4.5.3_(by_Igor_Eisberg) and flashtool-0.9.18.5-windows.exe to build the .ftf file.

NOTE 1: I removed the TA portion of the decrypted files when the .ftf was built.

NOTE 2: Both methods produced identical .ftf files….as far as I can tell.

My settings for PRFCreator_v0.8 when I made the prerooted firmware of Sony version 23.1.A.1.28 were:

All 4 boxes under 'Include' were ticked plus the 'Sign Zip' box was ticked….all 5 boxes ticked.

No Extra Zips were added, only the 3 file packages listed above were included.

I put the flashable zip file that PRFCreator_v0.8 made for me on the external sd card in my rooted Xperia Z2 Tablet with 17.1.2.A.0.314 firmware. I checked the box in TWRP about 'Signed Zip' and everything ran perfect. Tablet now updated and still rooted.

Great work. Thanks again.
[Sony Cross-Device General] Pandemic:
I have issues with this tool, when i create a flashable zip with root and with my modded apps and bundle it in 1 flashable zip.. None get installed on Xperia Z2 with LP latest FW .28, Just a stock LP rom, how is that ??
[Sony Cross-Device General] kamalmawa:
Unless your zip has a flashing script inside it won't work. You can only select CWM flashable zip files
[Sony Cross-Device General] :
I'm sending you my updater script
[Sony Cross-Device General] Pandemic:
Thanks bro [MENTION=4529355]cachanilla86[/MENTION]

You have pm back btw :)
[Sony Cross-Device General] KobySam87:
Can someone provide a step by step tutorial on how to use this tool or a link to assist noobs like myself? thanks
[Sony Cross-Device General] saf4xdadev:
Read post #357 above by MickieH. It's a really good explanation and a really good start point. It's what I used to double check what I was planning when I made my flashable.zip last week and mine worked perfect.
[Sony Cross-Device General] KobySam87:
I didn't check the previous post. Sorry about that. I checked and I realise that the tutorial has been explained to the simplest way. It's great.

---------- Post added at 12:41 AM ---------- Previous post was at 12:19 AM ----------

I used flashtool to download lollipop 5.0.2 for my xperia z c6603. I hope I won't have any problem creating a flashable zip with the file. I bundled everything using flashtool. I'm currently on 5.0.2 with root but no recovery.
[Sony Cross-Device General] loveyouy2k:
thanks a lot
[Sony Cross-Device General] KobySam87:
It didnt work for me.
[Sony Cross-Device General] eresac:
thank you for this stuff [MENTION=5163717]MickieH[/MENTION], very useful!

I have a couple of questions.

Is there a reason for using XpiriFirm and not directly Flashtool which also has its firmware download section?

Is there any part of the firmware I loose following this guide?

Sorry for the noob question, but I see many PRF-prepared firmwares here in xda, where the installation process requires a last flashtool install at the end of the process, like if you need add something.
[Sony Cross-Device General] MickieH:
When I wrote the guide I was using Flashtool 0.9.18.4, and XperiFirm 4.5.1

If you can download the firmware directly with Flashtool 0.9.18.5 then there shouldn't be a problem as long as you end up with a ftf file that you can use in PRF Creator.

I have heard of people having issues with the new version of Flashtool, having to move folders, and also XperiFirm 4.5.3 includes a file named 'fwinfo.xml' which needs to be excluded otherwise it causes errors.

While I could update my versions, I just used the ones that caused the least hassle for me.

I have seen other guides that require reflashing of the original ftf, after installing the zip, but it seemed such a complex way to do it.

They excluded the kernel and other parts of the ftf while creating the zip file. My method includes all the improtant parts of the ftf when making the zip file, so no need to mess about flashing again afterwards.

The only thing my method doesn't do is wipe the user data, so if there's a Sony update, you can create another zip and install it and it won't wipe your data and apps, unless of course you wipe them in recovery.

For example, I created a flashable zip of 23.1.A.0.726 for my Z3 and installed it - coming from KitKat. When I rebooted, I still had my apps and data.

Funnily enough, Sony then released 23.1.A.1.28 shortly after I'd done this, so I created another zip from that firmware and flashed that. Again, I still had my data and apps.

You don't 'lose' any of the firmware by doing it this way.

Everyone has their own preferences as to how they like to do things, and that's great. I just do it whichever way works, and I can understand.

Using my method, I have so far flashed zips on my Z3 twice, and my Z1 once. When Sony updates the Z1 version to include the 'close all' button in recent apps, I'll be doing it again, and I expect no problems there either.

I will more than likely update my own Flashtool as it is best to keep it as up to date as possible, and XperiFirm too.

I will even try downloading firmwares with Flashtool and see how that goes, but for now, I'm happy with my way as I know it works how I want it to.
[Sony Cross-Device General] kekni:
Hi, thanks for your guide. I followed the method through but I don't seem to have root. Do you have any idea what might have went wrong? Is there any other way I can get root?

I was going to try flashing your version using flashtool to see if that works but the link to megaupload is broken I think.