yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] tikizondo94:
Same boat for me. Ive tried every way possible. Just cant get F2FS to work on my angler. My Nexus6 works flawless and all my other devices. But my 6p will only allow cache to stick on f2fs. Data always reverts to ext4 after it boots up into setup
[Nexus 6P Android Development] Techvir:
Which rom r u on?

Sent from my Nexus 6P
[Nexus 6P Android Development] tikizondo94:
Currently running the latest Six Rom. But ive tried F2fs on PureNexus, Uber, ABCRom. Never could get f2fs to stick on data.
[Nexus 6P Android Development] Techvir:
Try RR.. It seems to work quite well

Sent from my Nexus 6P
[Nexus 6P Android Development] hsiehboss:
RR?

我從使用 Tapatalk 的 Nexus 6P 發送
[Nexus 6P Android Development] Techvir:
Resuscitation remix

Sent from my Nexus 6P
[Nexus 6P Android Development] :
Resurrection Remix
[Nexus 6P Android Development] deani77:
Hi all...

Just learning to change mine to F2FS... If I'm upgrading my ROM to new version. Will I need to do the whole process again?
[Nexus 6P Android Development] Techvir:
No. As long as you don't wipe the data

Sent from my Nexus 6P
[Nexus 6P Android Development] deani77:
Yesterday tried PN with Full Dynamic gapps and flash kernel but cannot passed Google logo... Tried restore data partition also didn't succeed. Back to DU ROM.

Will try again using RR ROM if I have free time.
[Nexus 6P Android Development] moi123:
Try these steps, it worked for me and many others.

Most noticeable change for me was Whatsapp - the lag when opening certain large groups have entirely disappeared. F2FS FTW!
[Nexus 6P Android Development] deani77:
Will try that method on RR ROM later on.... As mentioned by that post... All custom ROM can be convert to F2FS as long as we used right kernel right?
[Nexus 6P Android Development] HTC_Phone:
For the most part, yes. Most Roms will work with f2fs as long as you're using a supported kernel. I've tested 7 or 8 different Roms and haven't had an issue yet.
[Nexus 6P Android Development] deani77:
Thanks... Will try again if I have free time. Did you manage to get DU also to F2FS. Since they apply their own custom Kernel. Other custom kernel have some problem with that ROM. Will try other ROM for my next F2FS trial.
[Nexus 6P Android Development] HTC_Phone:
Yea I had DU running with f2fs, I just flashed Flash kernel after flashing the ROM. Don't boot before flashing the kernel though
[Nexus 6P Android Development] deani77:
I have tried that but my phone won't boot in F2FS. It will stay at Google logo. After reboot back to recovery it will change itself to ext4. Anyway which DU version you are using RC or weeklies/official version?
[Nexus 6P Android Development] HTC_Phone:
Interesting.. I used the RCs
[Nexus 6P Android Development] opz187:
does anyone know i we can make backups of boot/system/data/etc in flash's latest TWRP when data and cache are f2fs? by the way, for the life of me I couldn't get f2fs to stick until I tried it with the latest nitrogen. then I was good, able to flash mods after and data still on f2fs. nitrogen was my key. and flash kernel of course. anyway, anyone know about making backups? I've left TWRP rm-rf
[Nexus 6P Android Development] Nasty_z:
I'm having an issue on my phone, not sure if it's f2fs related but I'll try to explain it as best I can.

I am unable to send gifs and even some images via WhatsApp. If I take a picture via the camera application and share from there, it gives me the error "Sending failed, please try again later". However, I can send the image on WhatsApp when shared from a file manager or the Google Photos application.

Furthermore, any gifs I try to send give me the same error. I use chrooma keyboard and gifs don't even load up when searched using the keyboard gif search. Same problem with 9Gag app, gifs don't load at all. On Chrome gifs work fine though. Also WhatsApp, same issue, gifs won't load when you use the app's gif search..

I have tried switching back and forth from Ext4 to F2fs but it's the same problem.

My cache and data partition are both on F2fs and I am running Uber ROM with Flash kernel.

Any help would be greatly appreciated. Thanks in advance
[Nexus 6P Android Development] :
Try flashing Franco kernel and see if you have same problem. Its F2FS compatible.
[Nexus 6P Android Development] Nasty_z:
Holy crap that worked! Thank you.

So then this would be a kernel and rom combo issue right? because as far as I know others don't have this problem with Flash Kernel.

EDIT: Actually, it partially worked. Gifs load up now on Whatsapp and 9Gag as well as in the keyboard but I am still unable to send pictures shared from the camera app or even gifs in Whatsapp.

EDIT 2: It's fine now. Had to reinstall Whatsapp. Everything is okay now. Thanks for your help :)
[Nexus 6P Android Development] DorianX:
I don't have that problem...

- Pure Nexus

- Flash Kernel

- Open Gapps

- SuperSU

- WhatsApp Beta

Enviado desde mi Nexus 6P mediante Tapatalk
[Nexus 6P Android Development] opz187:
hey when you guys flash different ROMs and whatnot, do you take any special steps to preserve f2fs? do you stay rm-rf instead of formatting?
[Nexus 6P Android Development] kakabobo:
any benefit if only cache partition converted to f2fs?
[Nexus 6P Android Development] Nasty_z:
Yeah it's fixed now. It works fine with Franco kernel and I reinstalled whatsapp so everything is fine now. I can send gifs and images, view gifs etc.

EDIT:Had to delete the DCIM folder through file manager to make the camera photos sharing work. Once the folder was deleted, newly captured photos had no issues being shared on Whatsapp.
[Nexus 6P Android Development] DorianX:
I haven't changed ROM since I changed data/cache to f2fs, only updated PN (dirty flash, using rm-rf instead of formatting)

Good to hear that [emoji106]

Enviado desde mi Nexus 6P mediante Tapatalk
[Nexus 6P Android Development] :
If you want to use Flash Kernel, just wait till he releases the rebase, sure he just has to clean few things up.
[Nexus 6P Android Development] hsiehboss:
Since I started using f2fs (using flash kernel), some App are incompatible and can not access the data.

Yesterday used the franco kernel, those App normal.

Provided to you for reference.

我從使用 Tapatalk 的 Nexus 6P 發送
[Nexus 6P Android Development] Dbj.Dhaval:
Hey flash I am using ur lastest twrp with RR rom and ur kernel with f2fs enabled for data and cache but when I today tried to do a backup with twrp was getting the following error
[Nexus 6P Android Development] Dbj.Dhaval:
Also the log
[Nexus 6P Android Development] dadme:
Can't format cache partition. Error:255 on mkfs.f2fs
[Nexus 6P Android Development] infus38:
Hello I would like to warn you that my nexus 6p is dead following the installation of the f2fs I can not go back to stock with the factori image google yet I reformat all the partion in etx4 with fastboot format: etx4 "name of the partition "I get a bootloop and after the second show start google sceen and the phone shut down.thanks for all dev and all rom / mod for nexus 6p I had fun :)
[Nexus 6P Android Development] kouss77550:
You are on an old version of the recovery, use latest flash TWRP

---------- Post added at 11:19 AM ---------- Previous post was at 11:18 AM ----------

You're typing "ext4" right, not etx4 ? That would explain why it fails to return to ext4 filesystem

Also, why don't you use TWRP recovery to change you're filesystem ?In the "wipe" section
[Nexus 6P Android Development] opz187:
yea it kinda boggles my mind why you would fastboot the partition.. it's kind of common sense to just go back into twrp and advanced wipe to format back, you know, how you converted to f2fs in the 1st place.
[Nexus 6P Android Development] infus38:
Hello this is a fault I am talking about ext4 and i also try out by flash twrp which doesnt work
[Nexus 6P Android Development] lesterinidad:
can i flash the modified TWRP thru the normal twrp recovery? im having issues connecting my device to the computer
[Nexus 6P Android Development] nathanchance:
Yeah just hit the Select image button under Install, choose the image, flash it to the recovery partition and reboot.
[Nexus 6P Android Development] lesterinidad:
i successfully changed my data and cache to f2fs using ur recovery but I cant flash a rom because i dont see any files on twrp. help please :(

im on the latest megapixel rom before i did this btw..
[Nexus 6P Android Development] kaisarito:
Eehh internal storage gets completely wiped when you change Data to f2fs.
[Nexus 6P Android Development] lesterinidad:
yeah man, i'm fked up now huhu please help me what to do now :(
[Nexus 6P Android Development] kaisarito:
You're gonna have to download your ROM and kernel to a PC and transfer to your phone, remember to use a f2fs compatible kernel.
[Nexus 6P Android Development] lesterinidad:
just changed my file system to f2fs and flashed chad's uber+faster kernel. it doesn't boot up my device, it just keeps rebooting please help!!
[Nexus 6P Android Development] kaisarito:
Follow this post for instructions on how to set up data & cache on f2fs
[Nexus 6P Android Development] lesterinidad:
Thank you sir! I'm done doing the tutorial, I did every step BUT still after I reboot my device just keeps restarting :( My phone only boots on ext4 using PN :(
[Nexus 6P Android Development] 13stitches:
I am not sure what but I had troubles completing the steps. I did however get it switch to f2fs eventually. All I can say is to double check and to make sure it stay at f2fs and not reverted back to ext4. Reboot your recovery and make sure it stays. I ended up using pure nexus build, flash kernel and mini dynamic gapps. I did have troubles with Nitrogen OS.
[Nexus 6P Android Development] lesterinidad:
What can cause my device to revert back to ext4? Right now it's running fine with f2fs but i cant flash a kernel bc im afraid it might return to ext4.
[Nexus 6P Android Development] nathanchance:
At this point, nothing should cause you to revert back to ext4. If you flash a kernel without the f2fs driver or f2fs mounts in the fstab, your device just won't boot past the Google logo.
[Nexus 6P Android Development] nathanchance:
New recovery available in the OP.
[Nexus 6P Android Development] aamadorj:
Do you have any information about the adb backup feature available at TWRP 3.1.0, [MENTION=6842057]The Flash[/MENTION]? I searched for details, including how to used it, but I only found general announces of this feature. TIA.
[Nexus 6P Android Development] nathanchance:
https://github.com/omnirom/android_bootable_recovery/commit/ce8f83c48d200106ff61ad530c863b15c16949d9
[Nexus 6P Android Development] Face_Plant:
So what's the secret to getting F2FS to stick? I spent 8 hours researching, downloading, wiping data, converting data, flashing, and pulling my hair out last night and eventually gave up and went back to EXT4 because I had to wake up for class in 2 hours. At the time of conversion I was running Pure Nexus on my 128GB Nexus 6P. My procedure:

1. Install Flash's latest modified TWRP

2. Copy Flash's latest kernel to my internal storage

3. Boot to recovery

4. Flash kernel

5. Convert data/cache to F2FS

6. Select "use rm -rf instead of formatting data" in settings

7. Reboot

Common problems I run into:

1. Device will loop between bootloader warning and the Google splash screen

2.. F2FS will not stick and data will revert back to EXT4

3. Every time I reboot to recovery my internal storage will have been wiped, so I lose all of my TWRP settings and other things on my internal storage

Fixes I have tried:

1. Formatting data in TWRP and/or with fastboot before converting to F2FS

2. Other ROMs that have users reporting successful F2FS conversions (ABC, Uber, and others I can't remember)

3. Other kernels with F2FS support

4. Wiping everything before converting

5. Clean installs of ROM/kernel before converting

6. More I'm forgetting

I would really like to try F2FS, but at this point I'm ready to give up. Could my phone being 128GB be an issue?
[Nexus 6P Android Development] JRJ442:
You are downloading the newest TWRP version at the bottom correct? Version 3.1.0.5.
[Nexus 6P Android Development] Face_Plant:
I originally started out with 3.0.3, which I used once and it didn't work. Then I realized there was a new version, and I used that for my remaining tries.
[Nexus 6P Android Development] JRJ442:
You are flashing SuperSU before the kernel and not after right? That's the only thing I know of that would cause issues.
[Nexus 6P Android Development] aoaleman:
I get the same issues as Face_Plant. Gave up a long time ago. lol
[Nexus 6P Android Development] JRJ442:
It's really got to be a simple step missed or something left out. It worked fine the first time for me. This isn't something that just works for certain people and certain ones it doesn't. I've clean flashed and all and haven't had anything revert to ext4. I've checked many times to be sure.
[Nexus 6P Android Development] Face_Plant:
I never flashed SuperSU. My goal was just to get it working, then take it a step further by signing into my Google account, rooting, etc.

I forgot to mention that near the end I was thinking that something was going wrong with the ROM/kernel install, so I would:

1. Flash ROM while still on EXT4 and boot it once to make sure everything was good

2. Flash kernel

3. Boot again to make sure everything was still good

4. Convert to F2FS

5. Have my hopes and dreams crushed when it wouldn't boot or reverted back to EXT4

Glad I'm not alone.

I'm sure it is something simple that I'm missing. My brain was pretty fried last night from developing a website for one of my midterm projects, then trying to convert to F2FS from 9PM-5:30AM (I was hell bent on getting it working...), so I'm sure I was just forgetting something simple.

I'm somewhat suspicious that I got a bad download of something, most likely the modified TWRP. Even though I'm back on EXT4, my internal storage is still getting wiped every time I boot to recovery.
[Nexus 6P Android Development] aoaleman:
To get my phone back to normal, I've had to reflash the factory image, then restore my TB backup.
[Nexus 6P Android Development] Face_Plant:
I like to live dangerously, so I didn't make any backups ;)

I'm going to try a fresh download of the modified TWRP and check the MD5 this time to make sure there's nothing funny about. A fresh download and verifying the MD5 are the only two things I didn't do last night for some reason...
[Nexus 6P Android Development] nathanchance:
I'm adding a new blurb to the OP about supporting F2FS at a ROM level.
[Nexus 6P Android Development] lesterinidad:
If I update my TWRP to the latest version, will it still wipe my internal storage? Currently on f2fs with the version before the latest is what im using. I'm afraid I might start all over again
[Nexus 6P Android Development] JRJ442:
No, you'll be fine to update. I did yesterday. All is well.
[Nexus 6P Android Development] nathanchance:
I'll be fixing TWRP themes later today thanks to [MENTION=2719389]z31s1g[/MENTION]
[Nexus 6P Android Development] JRJ442:
What's wrong with them? The ones from his testing 3.1 folder work for. From what I've seen so far anyway.
[Nexus 6P Android Development] nathanchance:
Reboot does not work.
[Nexus 6P Android Development] JRJ442:
That's weird. Seems to work fine for me. I tried all the options from the main menu and after flashing a zip.
[Nexus 6P Android Development] nathanchance:
Hmmm interesting...
[Nexus 6P Android Development] JRJ442:
https://s.basketbuild.com/devs/z31s1g/Testing/a from that folder. They're the same ones I used on the last version.
[Nexus 6P Android Development] Face_Plant:
To those that have F2FS working: what size is your 6P (32GB, 64GB, or 128GB) and who is/are your storage manufacturer/manufacturers?

I tried again when I got home tonight and it was still a no-go. I used a fresh download of Flash's TWRP, verified the MD5, and nothing. I'm all out of ideas as to why it won't work for me. The only things I can think of at this point are my 6P being 128GB or my storage manufacturer being Toshiba as the things preventing this from working.
[Nexus 6P Android Development] mrgenie1:
32GB, never had issues
[Nexus 6P Android Development] jamsoolee:
Not sure who my manuf. is, but I also have a 128GB variant.

I can get it to work every time with RR, but I only ever got it to work once on PN, which is my rom of choice.

At this point, I've given up and am happy with ext4.
[Nexus 6P Android Development] z31s1g:
I've had a second look at this.

The problem isn't with the xml, it's in action.cpp.

The patch that introduces the check for the twrp app brings two new actions that my theme calls, but that aren't present in the builds from this thread.

But this only poses a problem if the "promt to install app if not installed" option is checked in the recovery settings (of any custom theme - the stock ui of the f2fs builds does not show the option).

If the option is disabled, rebooting works fine.
[Nexus 6P Android Development] nathanchance:
Haha seems I just missed this before I sent my message... What I may need to do is add a dummy action so to speak; maybe copy over the reboot code into these methods? Because I just verified this myself, definitely happens.
[Nexus 6P Android Development] z31s1g:
Looks like a plan :good:
[Nexus 6P Android Development] nathanchance:
New recovery available. TWRP app has been added back in order to keep themes from breaking but the prompt is disabled by default so you'll never see it unless you explicitly check it (not sure why you would but I don't know you :p)
[Nexus 6P Android Development] deani77:
If I'm not using theme then there is no need for to upgrade right?
[Nexus 6P Android Development] nathanchance:
Not really I suppose
[Nexus 6P Android Development] deani77:
Hi all...

Is there is special method to update ROM when using F2FS... If I'm doing backup on F2FS... Can I just restored it like ext4?

TQ
[Nexus 6P Android Development] nathanchance:
Should be able to but I've never tried.
[Nexus 6P Android Development] nathanchance:
New build pushed. Added a changelog section in the OP.

Side note, I forgot how much I love z31s1g's Materialized TWRP since I've been sticking with the stock theme for so long... but the black Play theme is straight fire. New builds are available here: https://xdaforums.com/showpost.php?p=71378469&postcount=3612
[Nexus 6P Android Development] iluvamk:
Flash can u check something? In the latest 3.1 builds after screen goes off, and I turn it back on brightness is supper low and doesn't brighten back up until it is manually changed in settings
[Nexus 6P Android Development] nathanchance:
Yeah I've noticed as well, I'll try to remember to look into it
[Nexus 6P Android Development] dracinn:
Should I just use version four if I don't understand the technica l​differences between some some of the others?
[Nexus 6P Android Development] nathanchance:
Why would you use something that's not the latest when there's been nothing but fixes since?
[Nexus 6P Android Development] deani77:
Just want to share my experience convert my DU ROM to F2FS...

My setup... latest DU official, latest Flash kernel, open gapps aroma and magisk SU and latest flash twrp

1. Clean flash ROM with all add on... Boot it up and do the initial setup

2. Reboot back to recovery and backup data partition

3. Move backup data and other files to PC or other external source

4. Clean flash ROM, gapps, kernel, magisk and other add on

5. Convert data and cache to F2FS

6. Move back backup

7. Restore data with rm-tf tick

8. Reboot system
[Nexus 6P Android Development] theracermaster:
FBE Support

Hi,

Could you enable file-based encryption (FBE) support in TWRP? You should only need to add TW_INCLUDE_CRYPTO_FBE := true in BoardConfig.mk.

Thanks!
[Nexus 6P Android Development] nathanchance:
Sure though I don't know if it will take with the 6.0 tree and the 7.1 tree still has a couple of issues but I'm watching the commits on Gerrit that should fix some of those.
[Nexus 6P Android Development] DEVILOPS 007:
[MENTION=6842057]The Flash[/MENTION]

Not sure if you know already but you have set the wrong times for the time zones.
[Nexus 6P Android Development] Raza Qadri:
Does any rom supports /system f2fs ?
[Nexus 6P Android Development] nathanchance:
Not that I know of because f2fs on /system is a really bad idea. Read speeds are slowing on f2fs than ext4 and system is read only 99% of the time.
[Nexus 6P Android Development] rakkkar:
I was running f2fs recentlyon cache and data and at the time I wanted to encrypt my phone so I went into settings and pressed encrypt. After finishing encrypting and getting to the encryption pin screen on boot, it accepted my pin but told me that the partitions were corrupted so I had to format back to ext4 and lost my setup. Is it currently possible to run encrypted on f2fs and does it depend on the ROM? Or is there an alternative method of encrypting without issues? I once even suddenly lost the pin request on boot while staying encrypted and when I turned on the option once more, it broke my encryption password and would only accept it in TWRP. Sorry for going a little off topic but I am curious, if I am just incapable of encrypting properly :confused:
[Nexus 6P Android Development] nathanchance:
I don't think f2fs's crypto driver works with Google's implementation but I've never really looked into because I don't like encryption.
[Nexus 6P Android Development] rakkkar:
Oh I see, I mean I don't like encryption for the added hassle but I do enjoy knowing my data is a little more secure. I might stay unencrypted and go back to f2fs or maybe not but thanks for the info!
[Nexus 6P Android Development] Face_Plant:
I decided to try to converting to F2FS again just for fun and magically it worked! The only thing I did differently this time was after wiping system, cache, and data I didn't go into the terminal and do an fstrim on those partitions. Restoring my data now, I hope F2FS is worth all of this effort...
[Nexus 6P Android Development] Triscuit:
For anyone having issues with conversion, make sure you follow the conversion procedure EXACTLY, you cant just flash this TWRP and convert to F2FS. READ PEOPLE!!! I am up and running PureNexus with Flash kernel, I used to use F2FS on my Samsung S4 and it made a HUGE difference, the Nexus 6P shows a little less increase in performance but it is still noticeable.
[Nexus 6P Android Development] ugvpkn:
I followed this process - http://xdaforums.com/showpost.php?p=69980946&postcount=2497

I had to allow the ROM to boot to the android setup screen, then go back to change the filesystem. Otherwise it would get stuck in a bootloop.
[Nexus 6P Android Development] minhgi:
That warning is correct, but it is restoring without formatting the partition back to ext. The switch just copy all your data content back to the data partition in f2fs. You need to disable it after the restore.

There are guide that have that step the f2fs conversion process. Hope it help.
[Nexus 6P Android Development] NOTilyass:
what are all the roms compatible with f2fs ??
[Nexus 6P Android Development] TrainNanpaMaster:
I was able to restore an ext4 nandroid backup through TWRP on to a freshly partitioned f2fs formatted phone without problem.

Some people are saying that it doesn't stick and that everything reverses to ext4 upon a restart, but this was not the case with me.
[Nexus 6P Android Development] justin1221:
If you change the filenames in the backs up from *ext4* to *f2fs* you don't get the warning. If the warning even means anything. I clean flashed latest PN with Flash. Made a back up of a fresh install with all my apps set up. Changed the filenames and after changing filesystem s to f2fs, the data restored perfect and file system changes stuck for once.
[Nexus 6P Android Development] bsg411:
I'm getting confused on the restore data part. I for a clean flash of latest PN with flash kernel, then made a backup of the fresh install. I backed up almost everything...boot, system, system image vendor, vendor image data. Then I changed the filesystem for the data and cache to f2fs. What do I do after this point??