[Nexus 5 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 Hammerhead
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/google-nexus-5/orig-development/recovery-twrp-2-7-0-0-f2fs-support-t2746030[/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 CM /CM based ROM users***

I dont test the script since I dont own an HH !! This is the CM kernel by @kdh2834
If it does not work kindly post the detailed error on the thread . Will try my best to resolve it

***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/or a Stock ROM with busdybox installed

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 of boot.img based on your rom
[*] 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

1. V1.1 OLD

2.V1.2 NEW

Changelog

V1.0 Intial Release

V1.1 : Add Device Support
1) Added Device Compatibility : Nexus 5
2) Scripts now will come seperate for each device.
3) Did some cleaning up on my messy script

V1.1 : Add more Boot.imgs for N5

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
[MENTION=4851200]Rohit02[/MENTION] For being the beta tester
[MENTION=14325584]kdh2834[/MENTION] For his AOSP Kernel
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