yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] justin1221:
Make sure you back up is in your pc. Change filesystems to f2fs.I just backed up Data,that's all you gonna restore. But make sure you tick the line in settings for not formating, after changing to f2fs because TWRP settings get reset during that. Then just restore the data backup. Sorry if I'm not making it clear, I'm at work. So basically change f
[Nexus 6P Android Development] Dbj.Dhaval:
Is it some app if yes then wic one

Edit got it.
[Nexus 6P Android Development] bsg411:
So your saying you backup just data only with TWRP......basically a nandroid of the data only. But you then copy the nandroid onto your computer? When you check "Use rm -rf instead of formatting" option in settings, it then deletes the backup that was made. So at that point how do you restore the data from the pc from twrp?

---------- Post added at 04:02 PM ---------- Previous post was at 03:59 PM ----------

How you do it?
[Nexus 6P Android Development] justin1221:
Correct. Make sure you data backup is in your pc, hair copy the whole TWRP folder from SD. change the f2fs. Then I reboot and make sure the filesystem change stuck. And make sure you go to settings again and make sure that formating box is still ticked. Then when you connect you phone to the PC while in TWRP, you can can transfer the folder back the you jnternek storage and restore the back up. While the back up is on your PC replace ext4 with f2fs in all the files that have ext4 in the name. Then just restore the data back and you should be good.
[Nexus 6P Android Development] justin1221:
Make sure you tick the box in settings after you change the filesystem. Then restore backup. I changed the filenames a little but I'm not sure if it's needed.
[Nexus 6P Android Development] spedyx7:
Tick what box ?
[Nexus 6P Android Development] justin1221:
The box in setting that I mentioned it the last few post, please read back a few pages. It the box that prevents formating. Idk what's it's called off hand.
[Nexus 6P Android Development] Triscuit:
Guys OP might want to update, this is the guide I used to get PN with Flash kernel up and running with F2FS on data/cache.
[Nexus 6P Android Development] Pollie81:
I have to recall my earlier statement, everything does seem quite smoother after everything settled down after i did a clean install..

Liking it so far!

For what it's worth..

What i did:

Installed custom twrp

Formatted everything including internal storage

Changed file system on data and cache to f2fs

Installed saosp including flash kernel

Voila!!
[Nexus 6P Android Development] bsg411:
Ok, I got the data restored from my pc, and then rebooted the system but it still bootlooped. Im gonna try it again with a full nandroid backup and see it that boots up

---------- Post added at 05:38 PM ---------- Previous post was at 05:35 PM ----------

Which flash kernel are you using?

---------- Post added at 05:51 PM ---------- Previous post was at 05:38 PM ----------

Thats just it...I cant do step 13 because when I change to f2fs and try to rebootthere nothing there to reboot to because it wipe the internal data clean.....so how can you boot to a blank sd card??
[Nexus 6P Android Development] justin1221:
Try doing everything that that says, start from a clean install , boot to the startup screen, reboot TWRP, backup data, copy to PC, change filesystems to f2fs, tick box in settings, copy back from PC to phone and restore Data. That might work. I might try that later to have a really clean install.
[Nexus 6P Android Development] Triscuit:
Converting to F2FS will wipe internal storage but not system. You should still have a ROM to boot into after the convert.
[Nexus 6P Android Development] 4930:
Hi, if possible can you share how to compile TWRP to have f2fs support please.

I'm currently holding a Nexus 6P with your work and it's great but I would also like to have it on my Nexus 6.

Appreciate your time
[Nexus 6P Android Development] note3userr:
Do I need to do anything special if switching roms? Or just the standard wipe and flash new rom and it will keep f2fs
[Nexus 6P Android Development] nathanchance:
I have a compatible Shamu recovery here: http://nchancellor.net/Downloads/TWRP/shamu

I can still give you an overview if you want.
[Nexus 6P Android Development] 4930:
Thanks for your reply and thanks for the info. Regarding the walk I would appreciate it, again thanks!
[Nexus 6P Android Development] bobby_digital234:
so this may be a long shot but is there any way to add the f2fs commits to an existing rom? maybe through a flashable zip? or does it have to be compiled that way from the kitchen.
[Nexus 6P Android Development] nathanchance:
I don't think so, it needs to be compiled from source since it is a part of the core system. It's very easy to add though, you can link your ROM developer to my OP for those commits.
[Nexus 6P Android Development] bobby_digital234:
No worries I bounce around ROMs a lot and have been curious if a flashable would help prevent me from having to switch back and forth. But from now on I'll just survive with the available ROMs that I can get to boot f2fs. So many great ROMs I can not ever decide what to stay on more than a week lol
[Nexus 6P Android Development] nathanchance:
It's really all in the device tree and kernel (you need to have some semblance of technical knowledge like git, Makefile, and C):

1. Set TARGET_USERIMAGES_USE_F2FS to true in the BoardConfig.mk in the device tree and add f2fs fstab mounts like so: https://github.com/Flash-ROM/device_moto_shamu/commit/af8e416174b2940bec460f9619c681837318bc28

2. Add F2FS to the kernel source from kernel.org:

and add it to the defconfig.

3. Then build the recovery image and you should be good to go.
[Nexus 6P Android Development] Upy3r:
Is possible to convert data and cache to F2F2 with stock 7.1.1 and Flash Kernel? :)
[Nexus 6P Android Development] Dbj.Dhaval:
Not tried but have read that few have done iy
[Nexus 6P Android Development] Neejay:
I just attempted this today. After a couple of failures (my fault), I finally got it. I didn't have to clean wipe/flash /system at all.

I thought it failed, because it was stuck at the Google boot screen, so I started researching and left it on that screen "just in case"...then it actually booted up after like 5+ minutes of sitting on it.

So, just a word of advice not to give up too soon on the first boot after the conversion. I'd give it 5+ minutes before going back to the drawing board.

EDIT: Scratch everything I said. I tried flashing the weekly Dirty Unicorn update, and all hell broke loose. After hours of trying this and that, even after wiping /system, /data, /cache, I can't get anything to boot. I had a ton of stuff corrupt and have to re-download to even attempt to flash them. ROM + Flash kernel won't boot, and neither will just ROM (I'd assume because of the DU kernel not being f2fs compatible).

Semi-EDIT: I tried "Vanilla", and it worked...but I couldn't get a consistent data connection, and Wi-Fi wouldn't work at all (yes, I flashed the recommended /vendor). And Titanium Backup would freeze when I tried to restore missing apps.

I'm not asking for help, because I'm going back to ext4. FOR ME AND MY PHONE, this just isn't worth the hours put into the troubleshooting. Congrats to those that it worked for, without much hassle.
[Nexus 6P Android Development] deani77:
As for DU you can try this method

https://xdaforums.com/showpost.php?p=71389809&postcount=371
[Nexus 6P Android Development] Neejay:
Thanks, yours is actually what I was initially going by, minus a few tweaks (Since DU doesn't appear to officially/fully support F2FS, your post gave me hope.) I tried your EXACT method this morning, but no dice.

I admit defeat. Ah well.
[Nexus 6P Android Development] LazerL0rd:
I've had it working before.

---------- Post added at 04:53 PM ---------- Previous post was at 04:51 PM ----------

I'm gonna try something crazy. I'm gonna try convert a file-based encryption over to F2FS. I hope this works... (very unlikely though)
[Nexus 6P Android Development] Raiden823:
How do I install an ota, and still keep custom recovery/f2fs?
[Nexus 6P Android Development] deani77:
I'm also move to other ROM due to my intention to use f2fs. Eventhough I'll success change my DU ROM to f2fs but it will gave me problem when to upgrade ROM or kernel. A bit hard to do clean install Everytime to upgrade ROM or kernel.

---------- Post added at 12:52 PM ---------- Previous post was at 12:51 PM ----------

Maybe you can sideload it. But I never try...
[Nexus 6P Android Development] npjohnson:
DU won't work with F2FS until they merge the commits of Flash's I threw onto their Gerrit.

The person who reported that likely didn't use root, or was mistaken and the file-system reverted to ext4.
[Nexus 6P Android Development] nathanchance:
It's a hit or miss. Once the F2FS block device is created, it generally stays intact (I've flashed stock with F2FS and it was fine) but fs_mgr is always a little wild sometimes lol.
[Nexus 6P Android Development] Neejay:
That's exactly the conclusion I came up with. I searched DU's github for the two commits, and found nothing. I did the conversion, but it reverted back to ext4, like you said.
[Nexus 6P Android Development] Dbj.Dhaval:
No this is not entirely true I was able to convert du with SU and it stayed intact the thing is u should have enuf data in the phone orelse it will change to ext4 try restoring data with rf option then when the phone boots try to move data in the phone then reboot
[Nexus 6P Android Development] discodestroyer10:
Right...

Tried three times already and after following the steps and reboot, everything stays untouched. However, DiskInfo shows that cache partition is, indeed, f2fs. But Data still stays ext4 and all my files are intact.

Halp?

I'm on latest RR + latest Magisk + latest Flash kernel + TWRP from this thread
[Nexus 6P Android Development] nathanchance:
Are you restoring a backup?
[Nexus 6P Android Development] discodestroyer10:
Nope. Decided not to.

Its just weird, the whole procedure seems to be fine, I don't get any errors. And, as I said, it worked for "cache" partition.

screenshots below

https://drive.google.com/open?id=0B4mksoFH2Hm4MURnS0NSNDVnZVk

https://drive.google.com/open?id=0B4mksoFH2Hm4Y1VCVGtzbkI5dG8
[Nexus 6P Android Development] nathanchance:
Make sure RR has the two commits I mention in the OP. I can't imagine they wouldn't since they are on RR but what you are describing is exactly what those commits fix. I've verified on four ROMs.
[Nexus 6P Android Development] discodestroyer10:
Thanks, The Flash.

I did check the RR xda thread and there are users posts saying that they're on F2FS (latest from 7th of march). Maybe newest build is broken? Will try other rom or previous build of RR.

---------- Post added at 08:29 PM ---------- Previous post was at 07:47 PM ----------

Just flashed NitrogenOs and still no luck. Damn it.
[Nexus 6P Android Development] dracinn:
Pure Nexus runs great.
[Nexus 6P Android Development] Cave_diver:
I'm not sure what you are talking about exactly but DU does work with F2FS on data and cache for me. I am using the Franco kernel though, not sure if it would work with the stock DU Kernel. Also running Magisk and not SuperSU.
[Nexus 6P Android Development] deani77:
Officially DU didn't support F2FS on their ROM and kernel but you can use other kernel that support... But you cannot log any complaint to them regarding F2FS since that was not their ROM problem
[Nexus 6P Android Development] joelunch:
Ok I tried about 8 different ways and times based ion different instructions in this thread. I was installing Nougat stock. I got a boot loop a number of times, but it would never stick so have given up.
[Nexus 6P Android Development] HikingMoose:
I have a couple bugs on the new build. The second to last build of TWRP for f2fs could reboot to recovery and bootloader. The latest build cannot. It tries to boot the phone instead of rebooting to what you choose (official TWRP has always done this to me lately also). Is it fine to stay on the -4 build instead of -7? Also -.7 screen is nearly black if you wake it after screen timeout.
[Nexus 6P Android Development] nathanchance:
If it works, it works.

I can't reproduce your restart issue and yeah the screen timeout thing I know about. It's either an official TWRP bug or I forgot a flag or something.
[Nexus 6P Android Development] HikingMoose:
Ok, thanks bud! I still can't get f2fs to work. I spent an entire weekend trying 3 weeks ago, and just tried all morning. Never boots, ever. Flashing nothing but my f2fs compatable rom, and your Flash kernel. Must be that only some phones can run on f2fs?

Here's what I've tried about a dozen times. Boot to recovery, wipe everything. Reboot recovery. Wipe everything. Convert data and cache to f2fs. Reboot. Flash SAOSP, Flash kernel. Reboot system. Bootloop city. Even formatted userdata with fastboot. Then went through process again. I've done it with wiping cache and dalvik inbetween flashing rom and kernel, then agian after kernel. Still won't boot. Hmmm. I give up.
[Nexus 6P Android Development] Neejay:
I actually meant to report this myself. I'd have to go back into settings and move the brightness slider to anything, for it to turn the backlight back on. I know turning off backlighting is a new feature of 3.1, but is there a way to turn it back on?

I also had the issue of having to manually​ reboot into the bootloader via physical buttons.
[Nexus 6P Android Development] JRJ442:
I think I misread something. Why the repetitive reboot to recovery? I don't think that's necessary. Personally I clean flashed Pure, f2fs kernel. Reboot and sign in. Then reboot to recovery and formatted data, change file systems and reboot. ADB pushed all my stuff back. Worked fine on both 6p and OG N6.
[Nexus 6P Android Development] HikingMoose:
I've tried every which way to Sunday. But the instructions say to reboot recovery after.

Whatever goes wrong, it requires a full fastboot of stock image to get phone working again. I just had to do that again, same as the last time I tried for an entire weekend lol.
[Nexus 6P Android Development] Neejay:
I'll try it this way... But only after I compile PN myself and merge the two commits mentioned by The Flash.
[Nexus 6P Android Development] JRJ442:
The commits are already in. Official works fine. Has for me for months now. I think all those reboot to recovery steps might be corrupting the data partition somehow. When the internal storage has been wiped, Android sets up the internal storage on the first boot. I think the reboot to recovery between each step is messing things up. I'm not even sure why someone would recommend that to be honest. I just switched my N6 over a few nights ago. Clean flashed the ROM, and kernel. Reboot, sign in. Reboot to recovery and changed data and cache to f2fs. I don't think I even wiped the storage beforehand. Changing file systems does that anyway.
[Nexus 6P Android Development] HikingMoose:
Interesting. I think I have tried it before without the reboot. But I didn't today. It was 3 weeks ago that I tried last, so I can't remember for certain if I ever tried without the reboot. Hmmmm. I don't feel like doing it all over again now lol. I'm all set back up.
[Nexus 6P Android Development] JRJ442:
I think you should go for it. What's another hour? Lol
[Nexus 6P Android Development] Neejay:
Yeah, I'm gonna go for it again. The tech in me doesn't want to be defeated LOL
[Nexus 6P Android Development] tusharg:
can I install this recovery on YU Yuphoria? my custom rom supports f2fs.
[Nexus 6P Android Development] HikingMoose:
What on Earth is YU Yuphoria?
[Nexus 6P Android Development] tusharg:
Google search it. ;)
[Nexus 6P Android Development] DorianX:
You also need to use Google before post on this thread ?

Enviado desde mi Nexus 6P mediante Tapatalk
[Nexus 6P Android Development] HikingMoose:
I just did. Add suspected, you're way, way off into the weeds. You should totally flash this though. It's great!
[Nexus 6P Android Development] JRJ442:
Lol. Don't tell him that. He might actually do it and have an expensive paperweight.
[Nexus 6P Android Development] nathanchance:
I have no words...
[Nexus 6P Android Development] HikingMoose:
Lol, I know, I was getting him back for the snide remark mwa ha ha ha!

---------- Post added at 10:18 PM ---------- Previous post was at 10:09 PM ----------

Any luck bud?
[Nexus 6P Android Development] Neejay:
I literally just attempted and finished an hour ago: no luck.

Back to my original plan :(
[Nexus 6P Android Development] HikingMoose:
Same here. Just tried 3 more times without the reboot after formatting to f2fs. I tried it by formatting to f2fs, and leaving my system alone, and booting, no dice. Then I tried formatting to f2fs, and flashing my rom and kernel, and booting, no dice. Then I tried formatting to f2fs, wiping system and everything, then flashing my rom and kernel and booting...wouldn't you know it....no dice. lol I think people are pulling our legs, I don't think the 6P can run on f2fs, not like my older phones that could 2 years ago.
[Nexus 6P Android Development] nathanchance:
¯\_(ツ)_/¯

https://hastebin.com/uxubacuyok.sql
[Nexus 6P Android Development] justin1221:
It's a real thing. ?
[Nexus 6P Android Development] Neejay:
Haha I think it's just one of those luck of the draw things...

I won't be attempting again though, until I can prove a ROM has those two commits. I searched, but couldn't find the commits in the PN angler branch, nor the main/system base branch... But I'm a GitHub n00b.

---------- Post added at 06:52 AM ---------- Previous post was at 06:50 AM ----------

What app is that? I used to use it years ago, but now I can't remember its name.

EDIT: even after restoring, /cache is still f2fs lol wtf
[Nexus 6P Android Development] tusharg:
I know that the above twrp is only for Nexus 6P but I was just asking If it can work on Yuphoria or not. but I'm pretty sure it won't.
[Nexus 6P Android Development] justin1221:
Diskinfo on playstore :good:
[Nexus 6P Android Development] :
Reverting to older build, screen brightness bug is driving me koo koo for cocoa puffs.
[Nexus 6P Android Development] astrall:
Does this recovery compatible on File-based encryption?
[Nexus 6P Android Development] nathanchance:
I don't know.
[Nexus 6P Android Development] Neejay:
Does anyone know where the first f2fs commit listed in the OP was moved to? Or if it was updated/changed? I got the second listed.

EDIT: Nevermind, I found it. https://github.com/Flash-ROM/system_core/commit/612d8f2639e8cb37c275b88362da14c99f27a527
[Nexus 6P Android Development] ugvpkn:
Looks like Mr. Flash re-based that directory. Here is the new commit:

https://github.com/Flash-ROM/system_core/commit/612d8f2639e8cb37c275b88362da14c99f27a527
[Nexus 6P Android Development] Neejay:
I left my EDIT un-submitted lol But thanks for taking the time to reply!
[Nexus 6P Android Development] nathanchance:
Whoops lol, will readd to the OP
[Nexus 6P Android Development] Love4Taylor:
Nexus 6

twrp-3.1.0-4-shamu-f2fs-20170311.img

OTG Don't Work
[Nexus 6P Android Development] nathanchance:
Not interested in fixing my Shamu TWRP, sorry.
[Nexus 6P Android Development] digita_life:
Changed Settings Don't Stick. Brightness issues.

For some reason changed settings do not stick. The settings I attempted to change were the Time Zone selection which kept reverting back to Central time. Also, disabling Screen Timeout and brightness go back to default after rebooting back into Recovery.

Also for some reason the screen brightness is way too low no matter where the brightness slider is at. It can be at 100 and still be very dark. Pressing the slider sets it to the correct brightness until the screen times out.
[Nexus 6P Android Development] Face_Plant:
Which version are you using? I'm on 3.1.0-7 and everything works perfectly for me.
[Nexus 6P Android Development] Neejay:
That's a bug. A couple of us have had the same issue. It's hit or miss with the screen light turning off and not back in until tapping the screen brightness slider.
[Nexus 6P Android Development] :
I reverted all the way back to 3.0.3-4, there is no screen brightness issues. As soon as 3.1.0 came out thats when the screen brightness bug was introduced.
[Nexus 6P Android Development] hh11bbaacchh11:
Can I, somehow, use this as a regular TWRP even if I don't necessarily use f2fs?I just want to use the recovery, and not use f2fs anymore.
[Nexus 6P Android Development] pvtjoker42:
I use it as a regular recovery, f2fs not required! :good:
[Nexus 6P Android Development] pr0adam:
So I tried this out but data is reverting back to ext4 while cache is staying f2fs. I formatted user data before doing this and completely wiped my phone as well prior to it so I'm not sure what went wrong.
[Nexus 6P Android Development] Neejay:
What ROM are you using? I was having the same issue, until I added the 2 missing F2FS commits to a personal build of Pure Nexus.

After that, no issues.
[Nexus 6P Android Development] pr0adam:
I was using RR but then I switched over to PureNexus to see if itd make any difference. Data is still ext4 and cache is f2fs. I think im just gonna give up the f2fs its been a pain setting it up, but im not sure if them mismatching is gonna cause more of a pain down the line
[Nexus 6P Android Development] shadowstep:
I am running the latest 7.1.2 build of Dirty Unicorns (v11.3) with f2fs on /data and /cache. I clean flashed very recently, before which I converted the partitions to f2fs using the instructions mentioned in the OP and it went extremely smoothly, without even a single hiccup. Thank you, [MENTION=6842057]The Flash[/MENTION]!
[Nexus 6P Android Development] deani77:
Have you try dirty flash DU over newer build?
[Nexus 6P Android Development] shadowstep:
Nope, I will be dirty flashing next month, when the next official is released. I doubt it should pose any issues though, but I'm still planning to keep a nandroid handy, just in case. :)
[Nexus 6P Android Development] deani77:
Last time when I use with F2FS, I will have problem when dirty flash ROM but maybe DU already fix that and support F2FS.
[Nexus 6P Android Development] shadowstep:
They added the two commits mentioned in the OP under ROM support before releasing the latest official build. You should try flashing DU now and see if you can face any issue(s).
[Nexus 6P Android Development] Dbj.Dhaval:
So now does du supports f2fs.?
[Nexus 6P Android Development] shadowstep:
It should work fine with /data & /cache on f2fs, provided you use a custom kernel that supports f2fs (like Flash Kernel). UnicornBlood (their default kernel) doesn't support f2fs.
[Nexus 6P Android Development] discodestroyer10:
I can confirm that latest DU works FANTASTIC with F2FS. All you need is custom kernel (I use Flash)

Been playing with tons of ROMS (7.1.2) in past few days and dont know why, but all of them were pretty laggy, loads of stuttering here and there, especially while swiping down quick settings. Was really unhappy with whole user experience and nearly went back to 7.1.1. And then I gave the last final shot to DU and finally have snappy phone again!
[Nexus 6P Android Development] Neejay:
I really wish PN would reconsider officially supporting it and just maybe have a f2fs disclaimer. I need to figure out how to make a flashable zip just for the 2 f2fs commits and/or learn more git/repo stuff.
[Nexus 6P Android Development] JRJ442:
There's something in the next builds changelog for supporting f2fs. I just run either Flash or Franco on Pure. Always works just fine.
[Nexus 6P Android Development] nathanchance:
Beans added the commits in the OP, it will be supported in the next release.
[Nexus 6P Android Development] Neejay:
Thanks, using it right now on my unofficial ROM :svetius: :svetius:
[Nexus 6P Android Development] drewski_1:
does it make much difference on the 6p? i tried it once and didn't notice much, if anything.

on my N7 & N10, it is very noticable.
[Nexus 6P Android Development] deani77:
Did you succeed dirty flash DU when upgrading new version?

---------- Post added at 08:28 PM ---------- Previous post was at 08:22 PM ----------

Which version you use currently... RC or Official/Weeklies?