[Nexus 4 Android Development] NABENDU1:
This is a Windows Batch Script/Tool to make any 4.4 based ROM to full F2FS compatibility !! This tool can convert any existing ROM from ext4 to Full F2FS Compatibility in a few clicks !! All tools necessary for conversion included in the batch file itself !!

Basic Info

What is F2FS?

F2FS (Flash-Friendly File System) is a flash file system created by Kim Jaegeuk at Samsung for the Linux operating system kernel. The motive for F2FS was to build a file system that from the start takes into account the characteristics of NAND flash memory-based storage devices (such as solid-state disks, eMMC, and SD cards), which are widely used in computer systems ranging from mobile devices to servers.

What is All-F2FS?

We used F2FS only for /data. It was simply because we have only to flash a compatible Kernel and Format /data partition. With All-F2FS we use F2FS for all partitions and we need a compatible ROM

DISCLAIMER

*I am Not responsible for any bricked devices,SD cards or thermonuclear attacks.
*Please do some research about what you are doing before you use the tool.
*YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.

Current Device Compatibility

1. Nexus 4 ( Mako )
2. Nexus 7 2012 Edition ( Grouper)
3.Nexus 5 Hammerhead

Prerequisites

1. A Mako
2. Any 4.4 based ROM with [B][U]busybox [/U][/B]installed
3. Proper F2FS Compatible Recovery and Partition Zip from
[url]http://xdaforums.com/nexus-4/orig-development/recovery-rom-kernel-f2fs-05-04-14-t2706825[/url]
4. Any Windows version and my batch script

Features

1. One Click F2FS Conversion Process
2. All tools included in the Zip file itself
3. Changes only the relevant parts of your updater-script keeping the rest unmodified
4. Compatible boot.img included in the ROM itself
5. Now Scripts are Device Specific
6. Error conditions at many places so a noob cant go wrong

***Special note for Stock ROM users***

The script requires busybox and since stock roms dont have busybox the repacked ROM wont boot up.
In such a case the best option is try out any other AOSP based ROM

Instructions

[LIST=1]
[*] Unpack the Zip file you downloaded from Link Below to a folder named F2FSROMConvetor (Dont Mess with the name).
[*] Take Care that the path you extract my Zip for eg in my case "C:\Users\Nabendu\Desktop\F2FSROMConvetor"
does not contain any blank spaces in between or else the script will not work as intended.
[*] Run F2FS Convertor.bat
[*] Select your device
[*] Place the Zip in the Extract /Input directory when prompted
[*] The script will Unpack your ROM
[*] Select option 11 for AOSP,12 for CM, 13 for com.android FC 14 for Any Other
[*] Repack your ROM
[*] A black window will open showing the Repacking progress. Dont close my Blue Window anytime during it the repacking process.
After 100% repacking is done the Black Window will close automatically and you can now press any key to Continue
[*] Check NEW F2FS ROM directory for the Repacked ROM
[*] Flash and Enjoy
[*] Cleanup the working directory cleanup.bat (Cleans everything including original input ROM.Only a copy of the Output ROM is maintained)
[/LIST]

***FAQ's***

Q. I get errors compiling the ROM on my XYZ Windows Version?

A. Read through my steps once again especially point 1 & 2. Hopefully u can get it to work.

If you think you are doing everything correctly post it on the thread and Ill try to reply within 24Hrs.

Q. I want to do it on Linux !! Why you no create bash scripts ?

A. Im not good at bash scripting !! Also dont own a Linux Distro so cant help you guys !! But look here [MENTION=2002216]jolinnard[/MENTION] has a script for Linux users

https://github.com/figue/f2fs-scripts/blob/master/convert_ROM_to_f2fs.sh and make necessary changes for Hammerhead updater script if any

Q. I can do the same with the Convert to F2FS apk on the Playstore ?

A. Sure you can. Converting on mobile is easier also. But only reservation is that it is paid.Not everyone can afford it.

Also time permitting Ill create a Android Terminal Script based on jolinnards script for Linux.

Q. Do you think I can convert it myself ?

A. Yes its just clicks . Read my steps and do it you wont go wrong.

Download Links

V1.1 NEWEST !!

1) https://mega.co.nz/#!s4FkiIpA!O60y6xAFeOme13tCOn96QqV0tAqVAftVdBufEueXPrA

2) https://drive.google.com/file/d/0ByrfJAT1lgDFOTBhZFdsc3N2cjg/edit?usp=sharing

V1:

1) English

2) German (Thanks to [MENTION=4439521]mikaole[/MENTION])

Changelog

V1.1 : Now script is device specific ( So this script is only for N4 Mako)
:Added CAF based Kernel for CM ROMs
:Added com.android.phone fc error boot.img

V1 : Initial Release

Credits

@legolas93 For bringing F2FS to Nexus and also for providing the boot.img for the script
[MENTION=4439521]mikaole[/MENTION] For the German Translations and extensive testing
[MENTION=2002216]jolinnard[/MENTION] For the amazing F2FS kernels he is providing
[MENTION=4544860]osm0sis[/MENTION] For his amazing Android Image Kitchen.The cleanup.bat script is taken from his tool.
[MENTION=3325155]fishears[/MENTION] For helping out on the kernel side.
[MENTION=5501864]USBhost[/MENTION] For being the lone tester for the N7 ( 2012 )
[MENTION=4450732]CallMeAldy[/MENTION] For the CM trick and his compilation thread
And all other beta testers !! Sorry if I forgot anyone from the list !!

Screenshots in the Next Post

Hit the Thanks button if you Like My Work