yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] burningcreation:
Any reason why you choose ext4 over f2fs?
[Nexus 6P Android Development] DEVILOPS 007:
ext4 is more stable and not in active development like f2fs is although f2fs has its advantages. I use f2fs as I haven't noticed any negatives personally of using it. I dont know if this is why the flash is on ext4 though.
[Nexus 6P Android Development] xflowy:
ok, so now a question which is actually addressed to you: why are you answering for [MENTION=6842057]The Flash[/MENTION]?
[Nexus 6P Android Development] DEVILOPS 007:
I never said I was. I just simply answered what my opinion was and why he might use ext4. Don't think I'm not answering for him because I'm not. Don't like my opinion then that's on you. I just tried to answer your question from my opinion. He can answer you if he wants.
[Nexus 6P Android Development] drewski_1:
I've had file system corruption on other devices with F2FS.

Fact . . . but not speaking for the flash :cool:
[Nexus 6P Android Development] nathanchance:
Did I stutter, since that's what I just said lol. I apologize for my snarky attitude but come on...

Encryption being the main reason although [MENTION=6262409]Mrcactuseater[/MENTION] pointed out he's on F2FS with encryption so I may switch back.
[Nexus 6P Android Development] xflowy:
[MENTION=6842057]The Flash[/MENTION] [MENTION=7494055]DEVILOPS 007[/MENTION]

one could think, that i implied with this the further question "why are you not on f2fs?" since i wrote this to someone whose thread is about offering a f2fs twrp.

when this someone then states he is on ext4, i find it not that far stretched, that sth like an "eh, you are on ext4?" goes more after the reasons behind that, since it would be more obvious he is on f2fs.

for everyone still not on the boat: imagine a rhetorical question like "you got an f in math?" you say to someone who just told you that he has a f in math with the background that he mentioned days before that the exam was pretty easy.

like we know now. there are two types of people. the ones answering "ya, like i just said". or the ones saying sth like "yea, i dont know.. i had really had a good feeling until we had the results....". judge for yourself which one is a waste.

sorry i assumed some kind anticipation. wont happen again! :)
[Nexus 6P Android Development] nathanchance:
No offense but I don't like you turning this around on us and making us the bad guys. It's a waste of my time to reply to a post like that. Because I'll reply "yes, I'm no longer on f2fs, that's what I said" then you will ask your real question then I'll reply to that. I don't answer implicit questions so ask what you really want answered up front and I'll be happy to oblige. Thanks.
[Nexus 6P Android Development] xflowy:
no ones bad here! speaking of waste, you could have just saved your time with the redundant answer. thought my intention was clear. but yea, you right. should have just asked ahead, what i wanted to know. if i don't do so, theres a reason ofc. i just wasnt that sure if your prior statement really was like it sounded or if i missed sth, so i made this little "pre-step". cause i would not want to assume sth based on an information (which eventually was out of context) and then be blamed for false presumptions. cause everyone is quite critical here.

enough with explanations. we can move on now.

no need for "why no f2fs" infos, either - if someones wondering. not that important ;)
[Nexus 6P Android Development] Lucius1972:
For the ones who didn't notice, there is a new build available twrp-3.1.1-11-angler-f2fs-20170704.img You can find it in the usual TWRP download folder of Nathan. [MENTION=6842057]The Flash[/MENTION] I suppose this one should be twrp-3.1.1-12-angler-f2fs-20170704.img and not .11 as there are now 2 x .11 versions.
[Nexus 6P Android Development] smartymcfly:
It might seem kind of hard to imagine, but there was an article or interview done with franco, and in this articlr hr says he doesn't even use an Android as his everyday phone, he has an iphone.

http://www.computerworld.com/article/3086869/android/how-i-use-android-francisco-franco.amp.html
[Nexus 6P Android Development] nathanchance:
I needed to make sure nothing was broken before bumping the version and I fell asleep before I could make that happen. That's also why there was no thread announcement (since this will break some TWRP themes). I'll sort it out later today.
[Nexus 6P Android Development] nathanchance:
Update!

Standard update, upstream fixes and such. The primary reason for this post is to notify you that your custom themes may or may not work, given the TWRP theme version has been bumped from 2 to 3. I know for a fact [MENTION=2719389]z31s1g[/MENTION] has some test themes for this here. Other than that, everything works perfect. Enjoy!
[Nexus 6P Android Development] Lord. Tech:
anyone using it successfully with RR for 6p?
[Nexus 6P Android Development] nathanchance:
Version 13 uploaded, just a Flash Kernel and upstream update.
[Nexus 6P Android Development] spedyx7:
why TWRP change after reboot back to 3.0.3.0 ?
[Nexus 6P Android Development] nathanchance:
Did you fastboot flash or fastboot boot?
[Nexus 6P Android Development] spedyx7:
I used Nexus Root Toolkit and i think that was the problem, because i just used fastboot flash recovery, and rebooted and it didnt change so i think NRT was the issue.
[Nexus 6P Android Development] Secretcow:
I literally changed my guide to mirror Nathan's guide, except to make it boot for Nitrogen lolz. The data partition gets formatted back to EXT4 anyways.
[Nexus 6P Android Development] NoobInToto:
Yes I got that warning too. But one guide said that the warning doesn't matter (guide not for this phone I guess). Also, my friend with OnePlus one restored nandroid after formatting, so I thought I was good to go. But nope.

---------- Post added at 02:13 AM ---------- Previous post was at 02:08 AM ----------

Did you try mounting system before checking if system partition was empty?
[Nexus 6P Android Development] ariefabuzaky:
What app ?
[Nexus 6P Android Development] justin1221:
Diskinfo
[Nexus 6P Android Development] bsg411:
When I tick the box in settings, my sd card get disconnected from the phone therby not allowing me to restore data unless I reboot the recovery at which time the file system goes back to ext4.
[Nexus 6P Android Development] justin1221:
Try changing filesystem twice then reboot recovery and if it sticks, check the formatting box in settings then format data where you type yes. Nathan mentioin the OP that you might have r to do that for it to stick. Then you can transfer the TWRP folder back to SD and restore. It worked for me.
[Nexus 6P Android Development] bsg411:
It finally worked.....i followed what you wrote above....had some issues formatting data(typing yes)...but somehow it eventually worked without successfully formatting the data. Anyway...thanks a million.
[Nexus 6P Android Development] :
Dude you are a GENIUS! Thanks for tips.
[Nexus 6P Android Development] Dbj.Dhaval:
Can you please explain me this part

Before restoring, go to Settings, then make sure "Use rm -rf instead of formatting" is turned on, otherwise a restore will change your partition back to EXT4.

Is the above restore to be done in twrp?

And can you tell me if the process I am following is right or not bcoz no matter what I try data won't survive the reboot. Using latest nitrogen rom. The process is

Flash rom gapps flash kernel then advanced wipe and clear data and cache then again advanced wipe change data and cache partition to f2fs then reboot and copy paste every thing ie titu backup and media files from hard disk. Bt when I reboot the data Is changed to ext4 again however cache survives.
[Nexus 6P Android Development] bmg1001:
Yeah, the restore I'm referring to is TWRP's restore.

When you tried to change data to F2FS, it's not actually formatting it to F2FS but simply wiping it. Try formatting to EXT4 then hitting F2FS. If that doesn't work, do the full data format (where you have to type "yes") then try formatting to F2FS. Watch the log, if it says "wiping data without wiping /data/media", it's not formatting correctly. If it says "formatting data using mk2.f2fs or something along those lines, it worked.

Funny thing is, I ran into this same problem when I was wiping my device an hour ago...You know.... Accidentally wiping my own device while trying to accurately write the tutorial...
[Nexus 6P Android Development] Pollie81:
Could this cause real issues?

For example, I'm on saosp with flash kernel on f2fs. Aosip has just released a new rom and I'd like to try it, i already asked if it's compatible with f2fs.

If i would just flash aosip and it turns out it's not compatible with f2fs.. what could happen?
[Nexus 6P Android Development] spuri78:
bootloop is all I'm aware of
[Nexus 6P Android Development] Pollie81:
Thanks!

That I'm not afraid of.. as long as i can enter the bootloader i can almost fix everything..
[Nexus 6P Android Development] spuri78:
you sure can. I'm having no luck with f2fs and twice I've been stuck and I have always managed to flash google stock image via bootloader etc.
[Nexus 6P Android Development] 4930:
Are you really seeing a notable difference in your system? I had to do a clean install, and once in a while it freezes, but then it starts working again.
[Nexus 6P Android Development] bsg411:
I finally got my f2fs system working. I cant say it's a dramatic difference but the system does run quicker and is buttery smooth......no stuttering at all and apps do seem to open a bit quicker too. So yes I notice the difference but what I question is whether the performance increase is from the file system change or from unloading/cleaning out my entire internal storage. The true test will be once my phone is all configured and everything is loaded back on that got wiped. If it's still fast then....then f2fs makes a difference.
[Nexus 6P Android Development] churchey360:
Is this still worth using over the official twrp even if we don't use f2fs?
[Nexus 6P Android Development] nathanchance:
Up to you, everything works just the same as official TWRP but it's just more updated.
[Nexus 6P Android Development] Toutatis_:
Quick report: 311X_v1 theme from [MENTION=2719389]z31s1g[/MENTION] doesn't work with latest build indeed. However, 311X_v2 works fine. :good:

Keep up the good work and thank you for letting us know!
[Nexus 6P Android Development] CyberpodS2:
Stupid question but what is the connection between the kernel and recovery that one necessitates updating the other. I never thought about.
[Nexus 6P Android Development] nathanchance:
The recovery's kernel is Flash.
[Nexus 6P Android Development] churchey360:
Great recovery thanks ?
[Nexus 6P Android Development] adame09:
I'm having issues formating data to F2FS on the latest recovery. It says it has changed but as soon as I boot up the system all my data is still there.
[Nexus 6P Android Development] adame09:
Going to try the last release see if it will format my data partition right.
[Nexus 6P Android Development] mdfarazb2:
Thanks f2fs is working fine here for data and cache.. very easy to install .. rr+electron... Btw I feel the ui to be very laggy and stutters very much...:( Even during scrolling for selecting the zip to flash...Anyone else facing the same issue?
[Nexus 6P Android Development] mkos86:
I'm feeling the same lagginess, think it was better few versions ago..
[Nexus 6P Android Development] mdfarazb2:
Oh...thats strange...:(
[Nexus 6P Android Development] itsbonnyb:
I'm on PureNexus (june 2017), Franco Kernel, F2FS. I would like to revert to EXT4.

I already tried going back to EXT4 once before, though, and my phone went all crazy and it kept rebooting itself or bootlooping. This eventually stopped when I went back to F2FS.

So is there anything I did wrong? Something I have to watch out for when going back to EXT4? I was so desperate at the time I even tried flashing a stock image but that didn't seem to solve the problem.
[Nexus 6P Android Development] nathanchance:
Going back to ext4 is exactly like going to f2fs, just replace f2fs with ext4 in the instructions
[Nexus 6P Android Development] raphytaffy:
Is converting to F2FS required for 3.1.1.0?

I flashed through fastboot and selected the option to write TWRP to system, but still having issues persisting the flash.

Steps:

> adb reboot recovery
> fastboot flash recovery ~/Downloads/twrp-3.1.1-0-angler.img

// selecting recovery boots into TWRP
// chose to install to system

// selecting reboot recovery from TWRP reboots back to TWRP

// selecting power off from TWRP and then booting while holding power + volume down reboots back to TWRP

// rebooting system and attempting to reboot recovery will go back to stock recovery

Using a 6P on 7.1.2.

Edit: Resolved after installing SuperSU.
[Nexus 6P Android Development] Az Biker:
Setting up my replacement 6P up, I am running into bootloop just after the colored balls start juggling.

Fastboot bootloader latest

fastboot radio 3.79 (Verizon)

Fastboot recovery (The Flash's 3.1.1-13 F2FS)

Changed file system (data, cache to F2FS)

Loaded all the needed files in TWRP folder (right from Bean's update post)

Wiped (factory reset)

installed according to The Flash's instructions HERE

Used SuperSU 2.82 latest stable

The Flash's F2FS kernel 2.4

bootlooping after the colored GOOGLE balls start juggling. (about 25 minutes now)

Anybody have any ideas?
[Nexus 6P Android Development] Lucius1972:
Hi Az_Biker,

I had the same issue a couple of weeks ago converting to F2FS (I am back on EXT4 again however).

You should backup everything important to PC before doing this!

Before you convert "wipe the userdata" that fixed it for me.

Edit: you can do this with adb (fastboot format userdata) or TWRP.

Good luck and let me know.
[Nexus 6P Android Development] CyberpodS2:
Wondering why you returned to EXT4. Was there issues?
[Nexus 6P Android Development] Lucius1972:
Not really an issue, I felt like it.
[Nexus 6P Android Development] Az Biker:
Not sure if it was a borked file (all the copy/paste movement, or just a random bad d/l) or if starting from scratch with converted F2FS (data, cache) had anything to do with it.

I'll decrypt and convert back to F2FS tonight, after work.

Just glad to be up and running the latest PN goodness :D.
[Nexus 6P Android Development] Lucius1972:
Glad it worked! ;)

For reference, these are my steps I do when converting, it never disappointed me (if you wanna go back to EXT4, just replace F2FS with EXT4):

1. Reboot into recovery.

2 .Connect device to PC via USB.

3. Copy all files/folders from Internal Storage on device to PC using file manager on PC.

4. Reboot into bootloader.

5. Format userdata to remove encryption (I do this any time I flash a custom ROM).

ADB Code: fastboot format userdata (or use TWRP)

6. Reboot into recovery.

7. Go into Wipe > Advanced Wipe and check Data.

8. Tap Change or Repair File System > Change File System > F2FS.

9. Slide to confirm.

10.Go back to Wipe > Advanced Wipe and check Cache.

11.Tap Change or Repair File System > Change File System > F2FS.

12.Slide to confirm.

==== As of here if you are already on F2FS

13.Reboot into recovery.

14.Tap Settings and check Use rm -rf instead of formating.

15.Copy PN ROM, custom kernel, Gapps, Magisk from PC into Internal Storage on the device through file manager on PC.

16.Wipe everything but Internal Storage (Dalvik/ART Cache, System, Data, Cache).

17.In TWRP, flash PN, BeansGapps, Custom Kernel, then Magisk.

18.Reboot into System.

19.Go through initial setup and restore apps from cloud.

20.Copy any other files, to be kept, from the files saved to PC in step 5 above using file manager on PC.

21.Complete setup of apps and settings.
[Nexus 6P Android Development] Trenth2247:
F2FS on nexus 6p with 4 core mod

hey guys so my 6p recently got the bootloop of death but i fixed it with the 4 core mod with the included modded twrp. Is there anyway F2FS can be added to the 4 core mod twrp? thank you!
[Nexus 6P Android Development] neek1:
hi trent
[Nexus 6P Android Development] ART:
So I've successfully switched to f2fs and flashed carbon ROM. My question is when to toggle rm-rf on. Is it before or after flashing the ROM, or does it even make a difference?

(I first flashed the twrp image, then wiped user data , converted to f2fs, flashed ROM , then tapped rm-rf). Is that the right or wrong way to do it ?
[Nexus 6P Android Development] AzraelsKiss:
Has your /data partition reverted to ext4? If not, then you're fine.

Have a good one!
[Nexus 6P Android Development] Az Biker:
I've flashed with this setting both ways, never noticed any difference. If in doubt, follow the advice given in OP, that guy is a certified genius!
[Nexus 6P Android Development] ART:
Nope, still f2fs. So I'm in the clear !
[Nexus 6P Android Development] xflowy:
I need your help guys.

In the process of converting my new phone to f2fs i pushed over some files to flash (rom etc.) to the phone (via pc). The problem is they somehow didnt get to the "proper" sdcard directory (which is only generated later, i guess) and are now stuck in the storage-emulated folder (s. screenshot) one level before the /0 folder.

There I cant get to delete them. Tried with root explorer and other ones. Any ideas? Kind of redundant storage space and I would like to get rid off it.

Any ideas? Perhaps the allmighty [MENTION=6842057]The Flash[/MENTION] ? :)

I recall it worked when I did this before..
[Nexus 6P Android Development] DEVILOPS 007:
You should be able to use the file manager in TWRP to delete them without issue.
[Nexus 6P Android Development] xflowy:
didnt even show there :l
[Nexus 6P Android Development] ART:
Will stock Android work with f2fs(Nexus 6p) or will I need a custom kernel?
[Nexus 6P Android Development] spuri78:
you need a custom kernel such as flash, franco etc.
[Nexus 6P Android Development] ART:
But then I won't be able to get OTA updates I'm guessing?
[Nexus 6P Android Development] Mrcactuseater:
You guess correctly.
[Nexus 6P Android Development] ART:
I still got the OTA update, so what happens if I install it ?
[Nexus 6P Android Development] spuri78:
hard brick/loss of root.
[Nexus 6P Android Development] chevycam94:
[MENTION=600147]THE[/MENTION] Flash I take it you're also stopping updates to your TWRP build?
[Nexus 6P Android Development] nathanchance:
I'll still most likely provide updates as necessary but I'll see.
[Nexus 6P Android Development] chevycam94:
Part of the reason I ask is because I've had your server bookmarked, so I could quickly check for updates, and I see it's no longer available. Did something happen?

UPDATE: I figured it out. You just rearranged some things, and my specific link got broken. All good now. :D
[Nexus 6P Android Development] nathanchance:
Lowercase all the characters. I changed the directory structure.
[Nexus 6P Android Development] Chaprnks:
This doesn't seem to work anymore. I tried changing the cache partition to F2FS, & even though it says "successfully changed"; it still shows as ext4 :/
[Nexus 6P Android Development] xSilas43:
Working fine for me still, have you wiped internal storage?
[Nexus 6P Android Development] Chaprnks:
I may have a while back. Would that cause changing partition to F2FS stop working?
[Nexus 6P Android Development] xSilas43:
Not but you must format internal storage before you convert to f2fs or it will do as you described and simply change back to extract.
[Nexus 6P Android Development] Cobra11Murderer:
:( link down no longer can be downloaded
[Nexus 6P Android Development] fLipz:
twrp-3.1.1-13-angler-f2fs-20170719
[Nexus 6P Android Development] DEVILOPS 007:
[MENTION=6842057]nathanchance[/MENTION] What's the chances you'll support the new 3.2 version of TWRP? Hopefully as it's be awesome, thanks.
[Nexus 6P Android Development] nathanchance:
Slim to none lol but I'll try to take a look at the changes soon.
[Nexus 6P Android Development] phantom146:
I'm not using f2fs but we would really appreciate it if you would :)
[Nexus 6P Android Development] iamreinvented:
*Slides you one dollar, slightly ripped*

?
[Nexus 6P Android Development] DEVILOPS 007:
That'd be great thanks. Are there any guides on building twrp for angler with f2fs because I remember years ago building a version for an old HTC phone. I'd be happy to give building twrp a go. Thx.
[Nexus 6P Android Development] Sohip:
I'm still resisting from upgrading to Android 8.1 based roms because I don't wanna lose f2fs :(
[Nexus 6P Android Development] demanzke:
The are 8.1 kernels available that support f2fs, superuber is one example.
[Nexus 6P Android Development] Sohip:
Yeah I'm currently using SuperUber :)

My problem is with flashing Lineage 15.1 (based on Android 8.1). I think it requires the latest TWRP to flash it, but the latest official TWRP doesn't see the f2fs data filesystem at all last time I tried...
[Nexus 6P Android Development] DEVILOPS 007:
Hi guys. Download TWRP 3.2.1-0 with f2fs support from the link below. Just flash over current version or fastboot flash it. AFAIK there are no bugs or issues at all.

Edit:New link

https://drive.google.com/file/d/1S_UfT4g3jqXo8Vtg5v2KwD_VeIw1yu1U/view?usp=drivesdk
[Nexus 6P Android Development] flecky22:
Hi, link don't work
[Nexus 6P Android Development] DEVILOPS 007:
Please try above link.
[Nexus 6P Android Development] flecky22:
It works, thank's a lot ;)
[Nexus 6P Android Development] Sohip:
Thank you kind sir!

I actually tried to compile the kernel myself but I was unsuccessful.

I had a live linux os running in a Virtual box, figured out the commands to gain root and "repo sync" the 8.1 stock recovery source to it, Plus downloaded f2fs tools, nexus6p files tree, f2fs supported kernels if I needed to swap files.

But for the life of me, I couldn't figure out what's the magic code to type into the terminal to merge the f2fs tools, nexus6p specific vendor files/kernel into the stock recovery from different folders to get the final kernel image ?

Xda guides and YouTube videos were very basic and dated and weren't very explanatory, so I gave up.

/rant end
[Nexus 6P Android Development] DEVILOPS 007:
You're welcome.:) Feel free to PM me and maybe we can talk on WhatsApp or telegram so I can help you. I didn't know how to do everything but luckily I talked to some amazing Devs who helped me when I came across errors such as afaneh92 on XDA.
[Nexus 6P Android Development] spakkkk:
i cant format cache with last build... its showing me error 255

can u help me?

thanks
[Nexus 6P Android Development] spakkkk:
with latest version I can't format cache into f2fs, its giving me error 255... can u help me?
[Nexus 6P Android Development] DEVILOPS 007:
Yeah I know. I'm sorry about that, there must have been an issue in the boardconfig.mk somewhere. There seems to be another issue where it doesn't always recognise your phone's SDK after wiping system. I haven't had much spare time because of College but until I fix it I would recommend using The Flash's older TWRP build.
[Nexus 6P Android Development] Az Biker:
[MENTION=6842057]nathanchance[/MENTION]

I'm going to flash latest angler Oreo on my 6P but I am still running it TWRP 3.1.1 w/ F2FS as my data partition is F2FS.

Will flashing the factory image overwrite that or do I need to revert it back first?

And stock format is EXT4? It's been a along time since I converted it :p

TIA!
[Nexus 6P Android Development] nathanchance:
You'll need to do the conversion procedure in the OP but select ext4 instead of f2fs.
[Nexus 6P Android Development] Az Biker:
Once I convert, and it wipes the internal, 6P TWRP only has an image file to boot into, there is no zip file to install TWRP, or is this different than the 2 XL?

I mean after flashing the factory image, then booting into the device from fastboot with TWRP.IMG, then installing TWRP.ZIP... wait, there isn't a twrp.zip for angler...

I should've never stayed off the 6P as long as I did...

Thanks for the help!

EDIT: I figured it out, thanks again! :D