yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] my1stSmartPhone:
It looks like I can avoid individually pulling and pushing files because adb push/pull are recursive commands. The source argument can be a list of multiple files. I might have found from google that a destination directory on the handset must be specified in terms of ./relative/path or might have needed a terminating "/" -- I can't remember, and unfortunately, I closed down my bash shell, so I can't examine the history.
[Galaxy S 4 Q&A, Help & Troubleshooting] svenk:
Hello,

I just upgraded from Kitkat 4.4.2 to Lollipop 5.0.1 via Kies. The phone was rooted and became unrooted, of course. Everything went fine with the upgrade and re-rooting after some trouble shooting.

However, I noticed, that after auto-update of Google Play services, that those would always stop working after reboot. Before that update, everything was fine. So I did a factory reset, and even flashed the unrooted version again, but this did not help for long since Google Play services would start crashing again after the next update.

My Lolipop 5.0.1 version is I9505XXUHOB7, the working stock version of Google Play services is 6.5.something, while the version that I got via auto-update is the newest 7.0.99. After some backup restoring and factory resetting I finally figured out that I could revert Google Play services to stock version after removing the device admin setting, and flash any version from apkmirror.com. Now I know that all versions of Google Play services above 7.x and newer definitely *will* crash on my S4 with the new Lollipop.

Does anybody know about this? As I wrote, this happens on a clean unrooted install after factory reset as well. The last working version of Google Play services for me is com.google.android.gms-6.7.76_(1745988-438)-6776438-minAPI21. Older versions will not crash, but I will keep messages that Maps, Gmail or such things require a newer version. Now I am wondering which update of those apps will break my phone again...
[Galaxy S 4 Q&A, Help & Troubleshooting] Strephon Alkhalikoi:
Google will automatically restore settings related to your device when you sign in to your Google Play account, thus a factory reset does nothing here. You need to wipe Google Play Services' data, preferably after the update to the latest version. Then reboot and see if anything changes.
[Galaxy S 4 Q&A, Help & Troubleshooting] svenk:
Thx for the reply, but I when the phone asks, I always deny to store anything on Google servers. I have my own backups. And, it worked with the initial install and only stopped working after the Google Play services update. Would that not mean that every user must be affected? I read a lot that Google Play services stop working recently, but no apparent explanation.

Edit: I just noticed that, without me doing anything, Google Play services got auto-updated to the faulty new version again, crashing again. Very annoying. I tried the solution with deleting all data, but that helped noting. I reverted to the last functioning version manually.

Is there a way to prevent this auto-update?
[Galaxy S 4 Q&A, Help & Troubleshooting] svenk:
Just had a chat with Samsung Support (there seems to be no way to officially address this issue with Google directly). They were not aware of the problem until now and walked me through a couple of steps. Unfortunatelly, nothing helped. They promised to address the issue to Samsung development. Hope this helps, but small hope it is...
[Sony Xperia E4 Questions & Answers] LeonXperiaXC:
Well after spending a lot of time on this phone I managed to get full root access :D :D

Instructions :

Download Kingo (Search good due I can't post any link.)

Install and run kingo.

Now just connect your phone in debugging mode at your pc.(How to find debug more? Look the pictures below!)

Press "ROOT" on the Kingo program and let it until it says "Root was successfully"

After that just see a small tune you can do to your mediatek processor! :D

You're done,now your have full root access!! Have fun!! :D

(AM NOT RESPONSIBLE IF YOU BREAK DOWN YOUR PHONE!MAKE IT WITH YOUR OWN RISK!!)
[Sony Xperia E4 Questions & Answers] emerzee:
Sounds good! Someone else has tested? :confused::cyclops:
[Sony Xperia E4 Questions & Answers] LeonXperiaXC:
Am working on the source code of the kernel stand by! And if any moderator can create a section for Xperia E4 would be great for the new user of this phone! :D :rolleyes:
[Sony Xperia E4 Questions & Answers] emerzee:
If the root fail, my phone is bricked? (Sorry for my english... :D ) You not want make youtube video, from rooting process? I dont want brick my phone... i'm afraid... :eek:

I love custom roms, and i hate bloatwares. (in this phone is too many...)
[Sony Xperia E4 Questions & Answers] LeonXperiaXC:
OK I will make and upload a video tomorrow for the rooting process!!
[Sony Xperia E4 Questions & Answers] emerzee:
you are the best! :good: Thank you!
[Sony Xperia E4 Questions & Answers] emerzee:
we waiting:rolleyes:
[Sony Xperia E4 Questions & Answers] Dynfer:
Ok im waiting ;) But finally thank you im waiting for the roms on 5.0 and then make my own. Old experience from the xperia lwW. Peace bro
[Sony Xperia E4 Questions & Answers] Dynfer:
It works :D

Sorry for double post
[Sony Xperia E4 Questions & Answers] c0ka:
hello, i rooted my device with kingo too. it`s very easy :)

you really need no video for it
[Sony Xperia E4 Questions & Answers] LeonXperiaXC:
Slow upload speed

Many thanks for the people who are waiting the video because i recorded it!! But, i have slow upload speed(arround 60kbs) and it should be online at the morning of 11 April!! [YOUTUBE]
[Sony Xperia E4 Questions & Answers] LeonXperiaXC:
*UPDATE*

Here's the video https://www.youtube.com/watch?v=jtsmNz43iE8
[Sony Xperia E4 Questions & Answers] emerzee:
Thank you! I did it, and works! Now it writes programs to the sd card! Its fantastic! :D Now we are waiting for a new rom! :angel:
[Sony Xperia E4 Questions & Answers] LeonXperiaXC:
Don't worry! I suggest a light 4.4.4 neither the Lolipop 5.X.X because it has a lot of bugs!!
[Sony Xperia E4 Questions & Answers] LeonXperiaXC:
New ROM

I created a poll for the Xperia E4 users or now called "admins" :D choose what ROM they want!

I am trying on the 4.4.4 right now, for a light version of it!! Any help would be grateful!! :D:D:highfive:
[Sony Xperia E4 Questions & Answers] emerzee:
my first question is: Somehow, please solve it to work for link2sd. It would be very good! :)

ps.: Second question is: Please kill the system notifications! (New update relased, energy tips etc...)
[Sony Xperia E4 Questions & Answers] LeonXperiaXC:
OK mate I will try make a script
[Sony Xperia E4 Questions & Answers] Dynfer:
If you want i can help you with aroma installer and compiling the rom because i have a strong pc
[Sony Xperia E4 Questions & Answers] LeonXperiaXC:
I would like someone to help me with his knowledge about the 4.4.4 ROM, but thank you mate I appreciate it!
[Sony Xperia E4 Questions & Answers] Dynfer:
Can you add usb otg drivers?
[Nexus 6  General] bbedward:
I didn't see anything about how to convert to f2fs for the nexus 6 so I thought i'd write something up as somebody requested me to do this.

What are the benefits of using f2fs over ext4?

I could list pros and cons, but I strongly encourage you to do your own research on the matter.

Should I do this

If you want to at your own risk

Pre-requisites

You need a recovery that supports f2fs in kernel and has the f2fs tools. Dhacker20 has provided one (TWRP 2.8.5.0) here: https://twitter.com/dhacker29/status/568070387306766336

You will need a kernel that supports f2fs for /cache and /data (Obviously I recommend Zen Kernel, but there are some others. Zen has the newest f2fs from upstream, while others may not)

ONLY YOU ARE RESPONSIBLE FOR YOUR DATA. IT IS YOUR RESPONSIBILITY TO UNDERSTAND THE RISKS AND YOUR RESPONSIBILITY TO BACKUP YOUR DATA

How-To

1.) Back up everything you care about to your PC (everything will be erased, including sdcard)

2.) Install a kernel that supports f2fs. Get the boot.img and do "fastboot flash boot boot.img" in bootloader (Like Zen)

3.) Install the recovery with f2fs support (fastboot flash recovery twrp-recvery-f2fs.img)

4.) In TWRP, go to Wipe

5.) Do a full wipe by swiping right

6.) Go to Wipe -> Advanced Wipe

7.) Choose /cache

8.) Choose "Change Filesystem"

9.) Pick f2fs, proceed

10.) Do the same thing for /data

11.) While still in recovery, plug phone into PC and do this:

# adb shell
# mount -o rw /system
# cp /sbin/fsck.f2fs /system/bin/
# cp /sbin/mkfs.f2fs /system/bin/
# chmod a+x /system/bin/*f2fs*

12.) Reboot and you are done.
[Nexus 6  General] purian23:
Reserved
[Nexus 6  General] jiv101:
Is adb shell in terminal app
[Nexus 6  General] bbedward:
No adb is part of the android SDK platform-tools
[Nexus 6  General] brando56894:
I did this a while ago (except for step 12), and I remember something happening, which caused my data partition to become corrupted. I tried to format the partition again using ext3 or whatever the default is and that ended up giving me a soft brick. I had to restore the factory software. I have read things of where it does improve R/W speeds but I don't know if it's worth the hassle of possibly losing everything at the drop of a hat if you flash ROMs often.
[Nexus 6  General] info[]box1:
RSVP..

Thanks for the information on F2FS well needed..!
[Nexus 6  General] bbedward:
The last step is a huge component of the whole process. If the rom doesn't have f2fs-tools in by default (most don't have fsck.f2fs/mkfs.f2fs) you will not have standard integrity checking every time you boot like you do on ext4. If you do the last step you will get integrity checking every time you bootup.

Also, since f2fs is a relatively young file system it can do harm to revert to older versions of the file system. For example, zen kernel has the newest f2fs which was updated last about 2 days ago. If you go on stock kernel you will find an f2fs that is 1+ year old. There may be a compatibility issue between these two where if you flash different roms (which almost always bundle a kernel)/kernels you will almost certainly have an issue.

But that's all part of the risk with using a relatively young file system. I do not understate the risks of data corruption in doing something like this - but anybody who is doing this and has significant worry should take precautions is backing up all their important files.
[Nexus 6  General] lobrau:
Is there any sort of confirmations when you are doing the last steps? I see this when I do them and I'm not sure if it has actually done the last steps.

C:\Development\platform-tools>adb shell

~ # ←[6nmount -o rw /system

mount -o rw /system

~ # ←[6ncp /sbin/fsck.f2fs /system/bin/

cp /sbin/fsck.f2fs /system/bin/

~ # ←[6ncp /sbin/mkfs.f2fs /system/bin/

cp /sbin/mkfs.f2fs /system/bin/

~ # ←[6nchmod a+x /system/bin/*f2fs*

chmod a+x /system/bin/*f2fs*

~ # ←[6n

C:\Development\platform-tools>
[Nexus 6  General] purian23:
That's about it, you can type exit to get out of adb shell or just close it.

On your device you can make sure f2fs took by simply typing "mount" in terminal emulator. You should see you data and cache reads f2fs now.
[Nexus 6  General] bbedward:
Nope, it will only inform you if something went wrong (like file not found) of it all went through with no error it worked.

After you bootup you can verify it worked by typing "mount" in adb shell or terminal emulator. It should say f2fs on /data and /cache. Also in something like root Explorer if you navigate to /system/bin you should see the files you copied (fsck.f2fs and mkfs.f2fs)
[Nexus 6  General] lobrau:
Perfect thanks for the quick response looked like it worked. Just out of curiosity is there any reason to format system to f2fs or does it end up causing issues, or just no changes in use?
[Nexus 6  General] bbedward:
I've tested it partly in testing the newest f2fs Zen merges as well as just general f2fs testing before.

It seems like writes are a bit faster, especially sql stuff. I've seen some grossly huge benchmark differences on other devices - on the n6 I've seen improvements but nothing astronomical like those benchmarks portrayed (I presume the 200% increase in write performance they showed is not accurate regardless) .
[Nexus 6  General] shaitan667:
Recovery

So currently I'm on a 5.1 stock based rom (sinless) and TWRP 2.8.6

HAve Downloaded the latest Zen Kernel, and am downloading the latest 5.1 Benzo Rom.

Am I going to have issues rolling back to a 2.8.5 recovery - does 2.8.5 support 5.1 based roms?
[Nexus 6  General] bbedward:
Yea it's compatible. There isn't a 2.8.6 with f2fs support yet that I know if and I haven't had the time to make one myself, but the 2.8.5 one works just fine.
[Nexus 6  General] dany20mh:
[MENTION=2632235]bbedward[/MENTION]

I didn’t know any about the part 11 (I mean I convert mine to F2FS before I read this) so I’m wondering I’m gonna face any problem or not?

And also if have to do it, can I do it now or I have to wipe everything and then do it (cause changing partition to F2FS will clean everything)

Also I’m on your kernel.
[Nexus 6  General] bbedward:
Every time you boot your phone, it automatically runs fsck (for ext4 on stock). Essentially it's an automatic integrity check and repair.

So if it finds issues at boot up in the file system, it will tend to fix them automatically. If you look at boot up logs currently you will probably see something like "/system/bin/fsck.f2fs not found skipping integrity check"

You don't have to wipe everything though, you can just install the tools now.

I'm almost happy I posted this now hopefully it saves a few filesystems for folks who didn't do it completely. :cowboy:

---

When you see a kernel say f2fs compatible it means:

- f2fs is built into the kernel or a module is provided

- It's ramdisk's fstab allows for mounting of partitions as f2fs. On zen - it supports /data and /cache

When you see a rom say f2fs compatible it means:

- They have an f2fs-compatible kernel included

- They have the f2fs tools in the rom (As step 11 does)

This is why I say in the title this is "Any Rom" compatible as it will work on any rom, while on other devices you may see "Rom x, rom y, and rom z are the only known roms to be fully compatible." If you just do it this way it doesn't matter because it'll make any rom compatible with f2fs.
[Nexus 6  General] philsfan:
[MENTION=2632235]bbedward[/MENTION] this worked perfectly! But I just want to confirm that it switches back to ext4 after flashing a new ROM? After wiping and doing a clean flash it seems I'm not booting in f2fs anymore.

Am I doing something wrong or will I have to do this every time I clean flash?

Thanks again for the tutorial!
[Nexus 6  General] bbedward:
I think most likely when you flashed a rom it overwrote your f2fs kernel, which caused it to reformat to ext4 when you booted it up.

Whenever you flash a rom you will need to flash f2fs-kernel right afterwards, and re-copy the tools (step 11) if the rom doesnt have them already in order to keep f2fs.
[Nexus 6  General] philsfan:
Thanks for responding so soon!

So I did flash zen9 (so good BTW) immediately after but I didn't repeat step 11 again. So that means Chroma doesn't have the necessary files for f2fs, good to know!

Edit: [MENTION=2632235]bbedward[/MENTION] does that mean I don't have to reformat again? Just do step 11?

Edit 2: entered step 11 in recovery and now i'm back to f2fs thanks again!
[Nexus 6  General] brando56894:
That was probably it! It was just a pain because this is the first phone that I've had in a while that doesn't have an SD card, I had a nandroid, but it doesn't do any good if you can't access your data partition Hahaha I have now taken to uploading my nandroids to Google Drive or putting them on my pc just in case that happens.
[Nexus 6  General] bbedward:
It also will probably really help if you create the file system with the latest tools (mkfs.f2fs) and use the newest version of it.

I'd probably prefer to build a twrp image with the newest tools and post them here, but I haven't had the time. My cross compiler was acting wonky when I tried to build them for arm earlier.
[Nexus 6  General] mystifiyer:
Nice guide!

Managed to convert mine to F2FS without much fanfare.

If its not too much trouble, is it possible that you can link to this guide from your kernel thread's first post? Just in case this thread gets buried. "General" forums tends to get overwhelmed by new threads much often that those in development, especially "Original Development".

If you rather not, its fine also.

Thanks
[Nexus 6  General] purian23:
That shouldn't be a problem. I can update the FAQ's in the Zen Kernel thread later today.
[Nexus 6  General] dany20mh:
So if we do all of those step (my point is specially step 11) and we wipe data, cache, system, dalvik and install another ROM, do we have to do the anything again or not (like do we have to do step 11 again)?

Thanks.
[Nexus 6  General] purian23:
Yes if the ROM doesn't support f2fs out of the box, you will have to perform this again.
[Nexus 6  General] dany20mh:
Is there any way that we can have a zip file and flash it through the TWRP so it do the step 11 automatically?

Cause sometime if you want to change the ROM or update the one that doesn’t support it out of the box and don’t have access to the computer it’s not possible to do it.

It would be awesome if it’s possible to have such zip file that do that step automatically.

Thanks.
[Nexus 6  General] bbedward:
Yes I actually want to build the newest f2fs tools and bundle this, however my time is very limited at the moment :crying:
[Nexus 6  General] dany20mh:
That would be awesome if you find time and can do it, I'm looking forward to it.

Thanks in advance :)
[Nexus 6  General] urnamese3:
[MENTION=2632235]bbedward[/MENTION] thanks for this guide it was fairly simple to follow. I only have question: what are the steps to convert the system partition? Would they be like this: wipe /system, convert to f2fs, flash rom and then step 11?

Because I did that, but once I installed the rom and gapps system shows as ext4

btw rom is CM 12.1 temaseks build
[Nexus 6  General] bbedward:
Few problems with it.

mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");

Many roms use the above line to mount /system and explicitly define ext4. I'm not sure it matters because I know you can do it without defining ext4 explicitly (mount /system will just work). I'm not sure if this matters or if it will mount it as f2fs anyway.

format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");

Even worse for such things is many roms use the above line. Which explicitly formats /system as ext4. So even if you format it before flashing the rom, it will become ext4.

But those may not even be the killers, the CM12.1 rom you are on may not even do either of those things (it may just do a mount /system or something)

---

Aside from those killers, I haven't seen a single kernel or rom ramdisk that supports /system as f2fs.

F2FS really shows more gains in write performance I think, which is an almost irrelevant gain on /system since you never really write to it ever when you are booted.

So to go rogue with f2fs on /system you will probably need to decompile+recompile your boot.img, add a line for /system as f2fs in fstab.shamu (mostly just copy/paste the ext4 one). And also likely extract your rom zip and edit it's updater-script to work for f2fs. Likely more hassle than it's worth.
[Nexus 6  General] elkay:
Is there any benefit in holding off for a TWRP build from latest vs just using the 2.8.5.0 one that's out now? I'm also a little concerned that TWRP doesn't have this baked in by default. I'd like to use F2FS, but don't want to box myself in which is what it sounds like moving to F2FS would do right now.
[Nexus 6  General] purian23:
No not really any benefit in waiting. It's not hard to put on or get off of if you want. It's just a Clean ROM install each time.

I'm sure we'll see TWRP support this officially soon enough as they already have multiple other formatting options.
[Nexus 6  General] elkay:
Ok cool. I'll probably give this a shot tomorrow. I don't see any reason why I can't do a backup of data and sdcard and just simply do a restore following the conversion? I would think that would negate the problem of starting from scratch. I was already able to do that successfully going from encrypted > unencrypted.
[Nexus 6  General] purian23:
Yeah I think you'd be fine in doing so. Just keep in my, you're either backing up Ext4 formatted data or F2FS data and you're good : )
[Nexus 6  General] elkay:
So I did the wipes, selected f2fs, copied my internal back via ADB, restored /data, and now /data is back to ext4. /cache is still f2fs. It looks like TWRP is doing a partition restore instead of a file restore? Odd because the backup process makes it look like it's a file copy, not raw copy. Other instructions I've seen say this should have worked and the restore should have left /data as f2fs. I'm a little confused.

---------- Post added at 11:27 PM ---------- Previous post was at 11:19 PM ----------

Nm. I didn't check the "use rm" option when I did the restore. Sending the backup to the phone and "take 2". Le sigh. Lol.
[Nexus 6  General] elkay:
Worked that time. Hope pointing out that step helps save someone else some time lol.
[Nexus 6  General] fitz420:
Just curious here, cause between the combo of Zen + Optipop I truly can't imagine how this device could be any faster......do those of you running F2FS notice much difference in terms of speed on day to day use?
[Nexus 6  General] gannjunior:
If I've understood well from the first page, I follow the instruction and after I can flash my preferred rom and It will work ? of course after the rom flash I will have to re-flash Zen kernel, correct?

thanks

ciao
[Nexus 6  General] ahmarchi:
[MENTION=2632235]bbedward[/MENTION] hey bud not sure if u posted in here on zen thread yet but did you or anyone ever come around to making a zip for the last few steps...especially if we are away from a computer?
[Nexus 6  General] purian23:
Almost, I think we should switch step 2 an 3, but it'll work regardless. Be sure to get the custom recovery, flash your ROM, then Kernel. Then follow the rest of the steps. At this point you're only clearing your cache and data to change their file systems. Should be set!

He hasn't yet. He's prepping his College Finals for this Friday. After he's all Graduated an stuff we'll start pestering him even more haha
[Nexus 6  General] gannjunior:
Ok. Basically now I have the Euphoria Rom. I flash zen. I flash the mod 2.8.5.0 TWRP. I forma data and cache in f2s file system and after I run the command line code in the first page. Nothing else.

Of course (because of wiping data) I will lose my app settings etc, so I can do a titanium backup before and after the procedure I can restore it.... Correct?

Thanks mate!

ciao
[Nexus 6  General] elkay:
I feel like I'm missing space. I can't get the check disk to run. I have fsck.f2fs and mkfs.f2fs in /system/bin/ and both have proper permissions/owners. Any suggestions? FYI -

Total space: 55.65GB

----------------------------

Avail: 16.23GB

Apps: 20.54GB

Pics/vid: 579MB

Audio: 14.40MB

Downloads: 65.53MB

Cached: 689MB

Misc: 3.83GB

That only adds up to ~42GB. That's a lot of missing space. The error I'm seeing is:

tmp-mksh: /system/bin/fsck.f2fs: No such file or directory

Busybox is installed:

1|root@shamu:/system/bin # busybox | head -1

busybox | head -1

BusyBox v1.23.1-Stericson (2015-02-06 13:50:32 EST) multi-call binary.
[Nexus 6  General] purian23:
Yeah man, you should be good after that [emoji2]

Any chance you fastboot flashed userdata.img? There has been known issues with that. The fix if so is simply reformating your system by twrp wiping or fastboot format userdata.