yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S 4 Original Android Developme] ktoonsez:
I just made a new option in ktweaker to convert a ROM zip you specify to do all the f2fs commands instead of the ext4 :D. It will be in the next update. Still only works on AOSP since the ROM needs f2fs support to mount properly and since there is no ROM source with TW and GE it might never happen, I have a few ideas I want to try but been traveling for work this week.
[AT&T Samsung Galaxy S 4 Original Android Developme] brizey:
I think I get it. The AOSP/CM ROMs are not modified (they work with just a modification to the updater script), just the kernels are. But you do have the ROM source so you can see what the kernel needs. But even if you have the kernel source for TW and can modify it, without the ROM source you can't be sure your are making the right modifications. Is that right?
[AT&T Samsung Galaxy S 4 Original Android Developme] ktoonsez:
No. There are things that CM added to the ROM that make things work for mounting and access. My part of modding the ROM is just making the installer use f2fs instead of ext4. The reason tw and ge don't work is it needs some ROM mods that might not be possible. Haven't had time to look into it yet
[AT&T Samsung Galaxy S 4 Original Android Developme] ktoonsez:
Change Log 04.28.2014

1. Linux 3.4.88

2. Now compiling with Linaro 4.9.1 a-15 optimized from [MENTION=4825437]Christopher83[/MENTION]

3. Updated kernel flash routine to detect F2FS partitions and include the appropriate fstab so it works with /data and /cache or /data and /cache and /system

4. Updated KT-TWRP.F2FS and KT-TWRP.EXT4 to have one common recovery binary, during flash uses same algorythm as kernel flash zip to use the proper fstab.

5. KTweaker 7.0

6. Under "Tools" screen added "F2FS: Convert ROM ZIP option". To use it, click that option, it opens a KT File Explorer, navigate to the folder where your zip files is, click the ROM zip file that needs converting and it will create a second file with the same exact name except adds a -F2FS to the end. A little hint, instead of using the back button once you are done converting, press the menu button and select close and KTweaker will remember that folder and take you right back the next time you go back in. It takes around 1:45 to do it my phone running ktoonsified v6, other profiles may take longer and if you are converting from external SD it may take longer depending on the quality of your SD.

7. TWRP for normal EXT4 format link is here http://goo.gl/jwMSEn

8. TWRP for F2FS format link is here http://goo.gl/Zw1akJ
[AT&T Samsung Galaxy S 4 Original Android Developme] ac3theone:
I feel like a noob for asking this, but can someone explain what EXT4, and F2FS is. thanks
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
Here http://www.xda-developers.com/android/f2fs-put-to-the-test-against-ext4/
[AT&T Samsung Galaxy S 4 Original Android Developme] ChaosMinionX:
Just tried F2FS with SlimRoms 4.4.2 v2.8 weekly and got it to boot, but it loads to a "encryption has failed screen" and just asks the device to reboot over and over. I must have missed something.
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
Was thinking of converting over myself and trying it with Mahdi ROM but want to know how it's going for others first..

Latest KTweaker converts the ROM zip so it formats system F2FS did you happen to do that? Just curious.

Seems like unless I missed something ( totally possible ) prior to KTweaker converting a ROM zip that you just flashed the ROM zip as is... Wonder if this would eliminate problems such as yours. Not sure.
[AT&T Samsung Galaxy S 4 Original Android Developme] ChaosMinionX:
I had my system as EXT4, booted it up with KT 4/28

I went into the F2FS conversion in Tools of Ktweaker, let it upgrade the ROM.zip that I have and it gave me a ROM-F2FS.zip file.

Followed the instructions verbatim as listed at http://ktoonsez.jonathanjsimon.com/sgs4/F2FS/Instructions.txt

I just get a booted screen saying "encryption unsuccessful"

Looks like it might be an issue of F2FS on the Data partition, going to retry.

EDIT: Found my mistake, at the "Format Data" part, do not use Advanced Wipe and select Data/Internal Storage as this does not format "data" as F2FS, you need to do the actual "wipe data" toggle in the wipe menu, and type yes into the box :)
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
Alright cool thanks for the update. That's how I was going to try it. I don't know enough about this myself... Trial and error I suppose. What your saying makes sense I think

---------- Post added at 02:21 PM ---------- Previous post was at 02:19 PM ----------

The first time did you end restoring data is that what you're thinking?
[AT&T Samsung Galaxy S 4 Original Android Developme] beast3300:
F2FS is still for AOKP/AOSP roms right?
[AT&T Samsung Galaxy S 4 Original Android Developme] LuigiBull23:
Yup..
[AT&T Samsung Galaxy S 4 Original Android Developme] AlkaliV2:
delete
[AT&T Samsung Galaxy S 4 Original Android Developme] ac3theone:
So i shouldn't try this on a GE rom then?
[AT&T Samsung Galaxy S 4 Original Android Developme] LuigiBull23:
Not possible as of yet. Tons of modifications need to be done to GE and TW ROMS in order to format as F2FS.
[AT&T Samsung Galaxy S 4 Original Android Developme] AlkaliV2:
I just installed Ktoonsez's TWRP file from 4/28 posted a page back, but I went to format system and it is still using EXT4 to format. Did he only update the ability for the fstab to recognize f2fs or does the new TWRP binary format system with F2FS? I don't want to flash my phone with the new F2FS rom that KTweaker converted if it isn't going to install to the right filesystem.
[AT&T Samsung Galaxy S 4 Original Android Developme] ktoonsez:
You cant format it until it is converted. TWRP reads current state of the /system partition and formats it the same way. Thats why I wrote the instructions on the F2FS server folder. The 2nd line is the most important:

NOTE: Follow these steps EXACTLY, do NOT add or remove any steps, period!!!!
[AT&T Samsung Galaxy S 4 Original Android Developme] AlkaliV2:
Ok, so for clarity I'm going to ask a follow-up question:

1.) KTweaker ROM converts the ROM for use on F2FS filesystems. It does this by adding/changing the install step of "Wiping System" that most ROMs have to mkfs.f2fs before installing the files to the system partition.

Basically, the KTweaker modified ROM file converts the system to F2FS, not TWRP. Is this correct?
[AT&T Samsung Galaxy S 4 Original Android Developme] ktoonsez:
Yes you got it, it is just a replacement of the format and mounting calls made by the zip file so it doesnt revert your /system partition back to ext4 when flashing it.
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
[MENTION=4325945]ktoonsez[/MENTION] that format cache zip file.... Is that indeed obsolete like someone said couple posts back?

I mean I do see that using the clear cache in TWRP obviously does format it in f2fs.. just wanted to hear it from you.

Also I checked that error log in TWRP like you said to do before flashing the ROM and there was cache errors in there like you said. So I just repeated the format+ cache zip one more time and the errors were no more...
[AT&T Samsung Galaxy S 4 Original Android Developme] ktoonsez:
That file is not obsolete. For people that are converting u need to use that. After conversion there no need for it anymore since the partitions r in the f2fs format.
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
Thanks for clearing that up for me. I figured. I used it, those big red words sunk right in over here
[AT&T Samsung Galaxy S 4 Original Android Developme] AlkaliV2:
...I've made a powerful mistake in my guide. My apologies to ChaosMinionX for saying that the file was obsolete.
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
Hey i wasn't trying to be one of those people on here just looking for you to make a mistake lol I hate that too trust me. I just wanted to know so we can all be 100% that's all
[AT&T Samsung Galaxy S 4 Original Android Developme] AlkaliV2:
I'm really glad you asked. I built that guide through what worked on my phone, but I left out the most important step which was the steps I followed from his guide. If you hadn't asked I'd still be living in ignorance of this and now I am not only smarter, I can rectify my mistake and keep people from making mistakes on their devices. Thank you for asking and thanks to KToonsez for answering our questions despite him probably having better stuff to do :D
[AT&T Samsung Galaxy S 4 Original Android Developme] ktoonsez:
No problem man :good:
[AT&T Samsung Galaxy S 4 Original Android Developme] ac3theone:
Can someone post a aosp rom their using, i want to try out f2fp. Thanks
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
I had no problems with Mahdi and Liquid Smooth.
[AT&T Samsung Galaxy S 4 Original Android Developme] sulpher:
Aokp + f2fs + art = omg...
[AT&T Samsung Galaxy S 4 Original Android Developme] PapaMag:
Ok I'm a bit confused I followed the instructions to the letter, now TWRP says it's f2fs. Does this mean I just flash roms normal as I always did or do I convert the rom with KTTweaker?
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
First convert the ROM zip in KTweaker then flash just like you normally would [emoji1]
[AT&T Samsung Galaxy S 4 Original Android Developme] PapaMag:
Thank you just to clarify what about gapps? Do I also convert it. When I tried gapps fails with the normal package.
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
No not the gapps. When you flash a ROM and it formats /system...that's why you use KT's converter so that it formats in F2FS. I used PA Micro Gapps without issue.

You used the F2FS cache zip and also double checked for errors in TWRP?

I had errors the first time I did it and just reformatted and used the cache zip again and all was good.

---------- Post added at 12:55 PM ---------- Previous post was at 12:54 PM ----------

Could just be something with that gapps too if you can get away with it try the micro gapps
[AT&T Samsung Galaxy S 4 Original Android Developme] PapaMag:
Ok something went way wrong now I have Encryption unsuccessful do a factory reset but it does nothing either
[AT&T Samsung Galaxy S 4 Original Android Developme] mbonus:
http://xdaforums.com/showthread.php?p=52263881

See if that steers you back
[AT&T Samsung Galaxy S 4 Original Android Developme] LuigiBull23:
You're supposed to "format data" in TWRP, not a factory reset.
[AT&T Samsung Galaxy S 4 Original Android Developme] PapaMag:
I understand that. No matter what I do I can't seem to get past this. I will keep trying. My device isn't even recognized in odin to go back and start over. I will follow the steps to the tee once again and see what happens
[AT&T Samsung Galaxy S 4 Original Android Developme] LuigiBull23:
Use this to guide you through the process. Who knows, you may just find where you made your mistake on the spot. Just ensure you use the ATT variant of the kernel.

http://xdaforums.com/showthread.php?t=2729915
[AT&T Samsung Galaxy S 4 Original Android Developme] theshow4life:
Sorry if i sound like a dummy here but can this be used with CWM or does it have to be TWRP? I use Philz touch CWM, thats why i ask thank you!
[AT&T Samsung Galaxy S 4 Original Android Developme] PapaMag:
Now I'm stuck in bootloop
[AT&T Samsung Galaxy S 4 Original Android Developme] theshow4life:
Stupid question but did you loki your rom?
[AT&T Samsung Galaxy S 4 Original Android Developme] LuigiBull23:
Did you flash the latest kernel after the ROM and gapps?

Needs to be KT's nodded TWRP.
[AT&T Samsung Galaxy S 4 Original Android Developme] PapaMag:
All I have is the 04-28-f2fs not sure what happens to the regular one
[AT&T Samsung Galaxy S 4 Original Android Developme] LuigiBull23:
You need to flash KT's latest kernel build directly after flashing the F2FS formatted ROM + gapps, otherwise it will bootloop
[AT&T Samsung Galaxy S 4 Original Android Developme] PapaMag:
Thanks mister unfortunately I don't have it on my sdcard, now I'm just trying to get back to stock with odin but it's not playing either
[AT&T Samsung Galaxy S 4 Original Android Developme] surferboi636:
I find that audio still skips/stutters even with changing the super_conservative_screen_off setting 0, music plays fine with screen on
[AT&T Samsung Galaxy S 4 Original Android Developme] LuigiBull23:
Use the app linked in post #7 of the discussion thread. It will certainly help.
[AT&T Samsung Galaxy S 4 Original Android Developme] ac3theone:
Try setting media hotplugging from 0 to 1 in the governor adjustments. Thats what works for me. That's the only setting i change.
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
How'd you make out? Was wondering what could have gone wrong for ya. Hopefully you at least got Odin to play nice with your phone.

Again I know there is already a guide out there but I just did the following::

Flashed F2FS TWRP

Rebooted Recovery

Formatted Data

Rebooted Recovery

Flashed the format cache F2FS Zip

Rebooted Recovery

Checked Log for errors in TWRP and found some. /cache errors

Repeated Format data+flashed format cache zip once more, rebooting recovery each time again

Checked again.. No errors

Flashed ROM zip I converted in KTweaker earlier + KT Kernel + Gapps

Wiped Cache/Dalvic

Then I was golden!
[AT&T Samsung Galaxy S 4 Original Android Developme] PapaMag:
I didn't have the latest or any KT kernel so that was my problem so I'm back to stock and having trouble getting root
[AT&T Samsung Galaxy S 4 Original Android Developme] Mistertac:
If your on TMobile don't you guys just use Chainfire in Odin to root?
[AT&T Samsung Galaxy S 4 Original Android Developme] PapaMag:
On T-Mobile but a ATT phone
[AT&T Samsung Galaxy S 4 Original Android Developme] mbonus:
Which stock firmware?
[AT&T Samsung Galaxy S 4 Original Android Developme] PapaMag:
I apologizes to KT for all this nonsense. Got up this morning did the same things I was stuck on last night and it ran perfect first time back to where I was. Thanks to everyone for their help
[AT&T Samsung Galaxy S 4 Original Android Developme] meejay:
How to adjust CPU voltages? What does "UV'd" stand for?

Hi Ktoonsez,

I don't understand what does UV'd stand for in your settings. Could you explain since I don't understand which one of the settings to adjust to 50 mV (there are 26) in CPU and 75 mV in GPU settings (there are 3)

Regards,:confused:
[AT&T Samsung Galaxy S 4 Original Android Developme] theshow4life:
UV'd = Under-Volt. So hes Under-Volting his CPU and GPU.
[AT&T Samsung Galaxy S 4 Original Android Developme] JJRules:
TWRP data restore

Has anyone successfully restored their backed up Data partition through the modded TWRP after converting to F2FS? I am able to install ROM and GApps boot my phone up no problem, but restoring Data seems to hang. Maybe I just haven't waited long enough, but restoring the partition under EXT4 takes maybe ~5-6 minutes and so far I've waited about 15 on the restore after converting.
[AT&T Samsung Galaxy S 4 Original Android Developme] topiratiko:
Just sayin....who the hell came up with the acronym f2fs? Its horrible. Flash Friendly File System?=3FS. Patent it KToon

Samsung Galaxy SIV I337

Open Source Evolution OSE

CPA Kernel 1.7
[AT&T Samsung Galaxy S 4 Original Android Developme] :
Thanks, my kernel adjustments dont seem to be sticking O_o

got a 5700 on quadrant LOL

Oops okay fixed it.
[AT&T Samsung Galaxy S 4 Original Android Developme] blkghost22:
my apologies in advance..

im not always good with setting up my kernels.

can anyone give me a good setting where i can crank it up to max yet conserve battery. uv'ing it too
[AT&T Samsung Galaxy S 4 Original Android Developme] jm6001:
Exciting news!!

Any chance you will make one thats compatible with Cyanogenmod??
[AT&T Samsung Galaxy S 4 Original Android Developme] sulpher:
Until we have ktoonservative, my favorite is abyssplug personally.
[AT&T Samsung Galaxy S 4 Original Android Developme] nakedninja42:
my phone is telling me that my sd card is safe to remove after each reboot. I tried mounting in storage but it just says checking for errors for 5 minutes and does nothing else. I have 64 GB sandisk that I had this phone format when I got it. am I missing something? I cleared ktweaker and still happens.
[AT&T Samsung Galaxy S 4 Original Android Developme] :
Not sure what kind of format the 64gb micro sd has to be for this
[AT&T Samsung Galaxy S 4 Original Android Developme] nakedninja42:
I let the phone do it under Storage when I got the S4. Not sure the format as I didn't check after.
[AT&T Samsung Galaxy S 4 Original Android Developme] Siriack:
Same here.... anyone???
[AT&T Samsung Galaxy S 4 Original Android Developme] greekunit690:
You said you used twrp...did you flash the twrp after u loki'd the phone?
[AT&T Samsung Galaxy S 4 Original Android Developme] nakedninja42:
I flashed oudhs. I noticed the fix permissions took a lot longer than normal after I flashed the kernel. ~10 minutes
[AT&T Samsung Galaxy S 4 Original Android Developme] stevehkim:
KT! Here we go again! Finally. Do we still need to rename mpdecision like the s3?

ATT S4 Rooted. Beastin.

4.2.2
[AT&T Samsung Galaxy S 4 Original Android Developme] thatsupnow:
64 gb sd cards need to formatted to fat32 to work properly. When I flashed this kernel and cleared dalvik/cache and fixed permissions the phone wouldn't boot up at all just vibrated and looping the samsung splash screen:(
[AT&T Samsung Galaxy S 4 Original Android Developme] stevehkim:
So can anyone verify the kernel is working on att i337?

ATT S4 Rooted. Beastin.

4.2.2
[AT&T Samsung Galaxy S 4 Original Android Developme] evodon84:
It's working for me.
[AT&T Samsung Galaxy S 4 Original Android Developme] lowspeed:
Any chance for recording support?
[AT&T Samsung Galaxy S 4 Original Android Developme] manny05:
Ahh. Can't wait to try this. I think I'm gonna wait a couple of days to try it since the steps to be able to flash this kernel looks complicated lol.

Sent from my Samsung Galaxy S4
[AT&T Samsung Galaxy S 4 Original Android Developme] evodon84:
Flashing the kernel it's the same as its always been. Flashing recovery is slightly tricky though

sent from tapatalk
[AT&T Samsung Galaxy S 4 Original Android Developme] ChaosMinionX:
When can I expect my phone to turn in to Optimus Prime? I don't see an option for this and does he have to be Loki'd in order to run?
[AT&T Samsung Galaxy S 4 Original Android Developme] MrPlNK:
And thats on performance preset..

Doesnt seem right? Stock was getting like 12000ish
[AT&T Samsung Galaxy S 4 Original Android Developme] lowspeed:
I'm getting this message....
[AT&T Samsung Galaxy S 4 Original Android Developme] Thatoneguy.:
Hmm I'm boot looping every time I flash this in twrp. Stock rom, wipe as stated in op, I must be missing something.
[AT&T Samsung Galaxy S 4 Original Android Developme] ktoonsez:
Lol, yes you missed the title of this forum, this is for AT&T phones only. :good:
[AT&T Samsung Galaxy S 4 Original Android Developme] ktoonsez:
I used the same settings for both AOSP and TW. I dont run faux kernel so I dont know what that the difference would be in UI experience, but you should get better battery on mine since I have all the screen OFF settings.
[AT&T Samsung Galaxy S 4 Original Android Developme] Thatoneguy.:
I realize that, I was flashing it on my Att galaxy s4, I was just posting my issue from my nexus 7.
[AT&T Samsung Galaxy S 4 Original Android Developme] SysAdmNj:
Swipe 2 wake in ktweaker isnt working, correct?
[AT&T Samsung Galaxy S 4 Original Android Developme] jiggytom:
30. KTweaker: Everything in "Extras" is active now except - "Disable Screen Off Mhz Call", "Swipe 2 Wake" and "Trinity Colors". (getting close now )

...
[AT&T Samsung Galaxy S 4 Original Android Developme] CamFlawless:
Correct. Check bullet 30 of the change log. ;)
[AT&T Samsung Galaxy S 4 Original Android Developme] SysAdmNj:
Oh thats gonna be sweet then.
[AT&T Samsung Galaxy S 4 Original Android Developme] djmouse:
thanks for the answer, im usings fauxs with his clock app,was getting great battery when in deep sleep less then a percent an hour,but when using the phone, battery does aright but drains more then stock was but i am oced,gonna install yours now see what happens,one more dumb question should i remove the faux clock app while im using kernel tweaker so theres no conflicts? i also use romtoolbox pro witch has cpu controls but i just check that to make sure its set to the same frequencies,i use that app for other things but i don't wanna have to much conficting apps controlling or should i not really worry about that?
[AT&T Samsung Galaxy S 4 Original Android Developme] ktoonsez:
Both of those apps could interfear. Easiest way is to DENY root access to them in you Super User app.
[AT&T Samsung Galaxy S 4 Original Android Developme] djmouse:
gottcha thanks for that tip, i would have just unintalled faux clock then reinstall if i change back,but that makes perfect sense,alright im done with questions thanks again,actually i lied one more question i did read threw the governs and schedulers explained links,dont see to much on the hot plug, i see the auto hot plug should we just keep that checked and it will either use the hot plug option or not depending if it needs it,or is there a list somewhere what ones use it and ones that don't,dont know to check it or not?
[AT&T Samsung Galaxy S 4 Original Android Developme] family682guy:
Battery seems to not be charging... I've tried with fast charge both off and on. Is this a known bug, or am I just that special? It'll say its charging, but my battery continues to go down...
[AT&T Samsung Galaxy S 4 Original Android Developme] djmouse:
are you using the charger that came with your phone or a knock off,i dont know if you know this but on the s3 and s4 the changed the pin layout in the micro usb connector that goes in your phone from 9 pin to 11 pins so make sure you have the right usb cable,i ran into a problem using a 9 pin conector it will fit but the contacts will be missing 2 of them specially for audio or video you need to have 11 pins,not 100 percent sure about where the power contacts are but start there
[AT&T Samsung Galaxy S 4 Original Android Developme] family682guy:
I've left the charger that came with it at home, I'm at work and I'm using a Samsung cord but its not the one that came with it. I'm definitely going to plug my phone in as soon as I get home. I'll post if it makes a difference or not
[AT&T Samsung Galaxy S 4 Original Android Developme] djmouse:
pm me let me know im curious if thats what it was i doubt ktoonz wants this in his thread its defenatly not due to his kernel
[AT&T Samsung Galaxy S 4 Original Android Developme] joeyone306:
Any chance of adding the infrared red drivers in the future?
[AT&T Samsung Galaxy S 4 Original Android Developme] :
No chance at all. Unless Google edition has IR receiver in it.
[AT&T Samsung Galaxy S 4 Original Android Developme] latinohot:
so this means no remote functions?
[AT&T Samsung Galaxy S 4 Original Android Developme] djmouse:
wait so this kernel you cant use the ir reciver even on tw?
[AT&T Samsung Galaxy S 4 Original Android Developme] :
Correct. It's in the touchwiz framework. And I'm sure the drivers aren't open source. Not portable as far as I know unless it's in the Google Edition as I stated

---------- Post added at 04:35 PM ---------- Previous post was at 04:34 PM ----------

On touchwiz you can. That has nothing at all to do with infrared. The drivers aren't in the kernel.
[AT&T Samsung Galaxy S 4 Original Android Developme] surferboi636:
Is that option called disable_hotplug_media? if so it helped, but one weird behavior i noticed is that on the soundcloud app at the end of the song, it skips to the next song abruptly before the song actually ends
[AT&T Samsung Galaxy S 4 Original Android Developme] ac3theone:
yes thats the option. i dnt think it would be related.