FORUMS

New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Making Your Own Xposed Modules Is Easier Than You Think

Close to the heart of XDA is the Xposed Framework by Rovo89. Most of … more

[TOOL] PRFCreator - easily create pre-rooted firmwares

1,172 posts
Thanks Meter: 2,975
 
By zxz0O0, Senior Member on 27th August 2014, 03:11 PM
Post Reply Subscribe to Thread Email Thread
Introducing my new tool called PRFCreator. With this tool, anyone can easily create a pre-rooted firmware.

What is a pre-rooted firmware
A pre-rooted firmware is a firmware, which already includes root. This is for example important if you want to update the firmware to a version, where there is no public root exploit. To flash a pre-rooted firmware, you need a recovery menu. An unlocked bootloader is not required.

How does the tool work
The tool should be self-explanatory. SuperSU zip can be downloaded from here. [NUT]'s dualrecovery (*.flashable.zip) can be downloaded from here. Recovery is optional and if your device is not supported by dualrecovery, you can use any recovery (just has to be a flashable zip).
Depending on the firmware size and your computer speed, generating a pre-rooted firmware can take up to 7 minutes. The pre-rooted firmware will be created in the directory of the executable and called flashable.zip.



Note: If you do not include the kernel in the pre-rooted firmware, it's recommended to flash it afterwards with flashtool (check "system" under Exclude).
Note2: I am not responsible for any damage done to your device or if you end in a bootloop.

Credits
Androxyde - some helpful information about sin files from his flashtool
[NUT] - used his flashable scripts as base
E:V:A - sgdisk utility
dotnetzip developers (note I'm using a slightly modifed version with a bugfix)

Requirements
Microsoft .NET 3.0

Source code
https://github.com/dosomder/PRFCreator

Changelog
  • v0.9
    • Compatible with mono
    • New settings file to change temp folder and choose another destination for the pre rooted firmware
    • Work towards new sin format introduced with Z3+
    .
  • v0.8
    • Add the ability to include additional flashable zip files
    • Display information when clicking on version number
    .
  • v0.7
    • Add zip signing option
    • Small fixes in code
    .
  • v0.6 - Nuked (wrong binary uploaded)
    • Prefer to use gpt uuid instead of partition names
    • Add different modem sin names
    • Clean code
    .
  • v0.5
    • Fixed bug with missing dualrecovery
    • Added check if SuperSU and recovery are flashable
    • Added ability to flash modem
    • Support for sin v2
    .
  • v0.4
    • Make dualrecovery zip optional
    • Fix exception if file does not exist in sin
    .
  • v0.3
    • Initial release
Attached Files
File Type: zip PRFCreator v0.4.zip - [Click for QR Code] (1.49 MB, 5557 views)
File Type: zip PRFCreator v0.5.zip - [Click for QR Code] (1.49 MB, 10338 views)
File Type: zip PRFCreator v0.7.zip - [Click for QR Code] (4.17 MB, 6130 views)
File Type: zip PRFCreator v0.8.zip - [Click for QR Code] (4.17 MB, 81354 views)
File Type: zip PRFCreator v0.9.zip - [Click for QR Code] (4.29 MB, 8778 views)
Last edited by zxz0O0; 5th July 2015 at 04:44 PM. Reason: Update to v0.9
The Following 273 Users Say Thank You to zxz0O0 For This Useful Post: [ View ]
 
 
27th August 2014, 03:12 PM |#2  
zxz0O0's Avatar
OP Senior Member
Thanks Meter: 2,975
 
Donate to Me
More
I have a question!
  • What should I check under 'Include' ?
    Quote:

    • Kernel: Personally I recommend to check kernel. For some firmwares it's important otherwise the phone won't boot.
    • FOTAKernel: This kernel is used for OTA Updates. I recommend to include it.
    • Modem: This is the baseband / modem. Some updates can give you slightly better battery life and signal.
    • LTALabel: This is a partition with regulatory informations. It should not really change the performance of your device. I recommend to include it.

    .
  • Do I need to include a recovery?
    Quote:

    No, recovery is optional.

    .
  • Can I edit system.ext4 inside flashable zip?
    Quote:

    Yes, you can edit it on a linux machine. You don't have to change anything else in the flashable zip. See here for more info: http://forum.xda-developers.com/show...&postcount=246

    .
  • What is zip signing?
    Quote:

    For a proper flashable zip, zip signing is used. It generates a hashtable of all the files in the flashable zip to verify its integrity. Note that zip signing might double the process time of generating a flashable zip.

    .
  • Does it wipe my user data?
    Quote:

    No.

    .
  • What is extra zip?
    Quote:

    With this feature, you can include additional flashable zip files. An example is to include Xposed directly (you can find the flashable zip in the Xposed apk).

Last edited by zxz0O0; 13th December 2014 at 08:18 PM. Reason: Add data wipe question
The Following 46 Users Say Thank You to zxz0O0 For This Useful Post: [ View ]
27th August 2014, 03:26 PM |#3  
gravtec's Avatar
Senior Member
Thanks Meter: 240
 
More
Good news... Will try later...
The Following User Says Thank You to gravtec For This Useful Post: [ View ]
27th August 2014, 05:22 PM |#4  
funky0308's Avatar
Recognized Themer
Flag Osijek
Thanks Meter: 5,670
 
Donate to Me
More
This is awesome tool...
Still couldn't find free time to test it but if it's working and I'm sure it is...

This is more then welcome...

Tnx mate...

Sent from my D6503 using Tapatalk
27th August 2014, 05:49 PM |#5  
XperienceD's Avatar
Senior Member
Flag Here =)
Thanks Meter: 2,508
 
More
Will try this on the next FW release, thanks!
27th August 2014, 06:36 PM |#6  
Senior Member
Flag Mysore
Thanks Meter: 210
 
More
Thanks for the tool. Looks great. I'll try it.
Last edited by anagramgenius; 27th August 2014 at 07:57 PM.
27th August 2014, 07:57 PM |#7  
nalab1's Avatar
Senior Member
Flag Dunstable
Thanks Meter: 39
 
More
Hi,

Thank you.. Looks really good! What do the Kernel, FOTAKernel and LTALabel checkboxes do? Also, will this work with the latest .133 ftf?

Regards,

Alan
27th August 2014, 08:46 PM |#8  
zxz0O0's Avatar
OP Senior Member
Thanks Meter: 2,975
 
Donate to Me
More
Quote:
Originally Posted by nalab1

Hi,

Thank you.. Looks really good! What do the Kernel, FOTAKernel and LTALabel checkboxes do? Also, will this work with the latest .133 ftf?
Regards,

Alan

It will include those in the flashable zip. FOTAKernel and LTALabel are not really important but I thought why not include this feature. Kernel is more important and I recommend to always use the kernel from the firmware you're using.

It should work with all the current ftfs (the tool is built for sin version 3).
The Following 3 Users Say Thank You to zxz0O0 For This Useful Post: [ View ]
27th August 2014, 09:41 PM |#9  
nalab1's Avatar
Senior Member
Flag Dunstable
Thanks Meter: 39
 
More
Angry
Quote:
Originally Posted by zxz0O0

It will include those in the flashable zip. FOTAKernel and LTALabel are not really important but I thought why not include this feature. Kernel is more important and I recommend to always use the kernel from the firmware you're using.

It should work with all the current ftfs (the tool is built for sin version 3).

Thanks for the reply... What is sin version 3? Also, what are your recommended settings? Tick all boxes or just the Kernel box? What devices/ROMs has it been tested on? Sorry for all of the questions!
Last edited by nalab1; 27th August 2014 at 10:38 PM.
27th August 2014, 09:51 PM |#10  
ptmaniac's Avatar
Senior Member
Flag Aveiro
Thanks Meter: 78
 
More
i just used the xperifirm tool to get the latest z2 .323 update, then used flashtool to create .tft, then your prfcreator tool to make the flashable zip. everything worked perfectly fine (many thanks to the dev's for all this nice and easy to use tools btw), this .zip rom should now be flashable from twrp (i got a locked and unlockable BL) no matter what i have installed on the phone right?

Thanks for your help, i'm new to sony devices and my z2 is only 20 days old, i'm trying hard not to brick it :P
28th August 2014, 01:58 AM |#11  
androidfreak70's Avatar
Senior Member
Flag here!
Thanks Meter: 642
 
Donate to Me
More
Wow! Is this magic?

Xperia™ Z (C6602) with Tapatalk!

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread