yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Touchwiz TEST Kernel with Update2 source merged in

http://www.mediafire.com/?m37z3ftr3l12ygw

Be sure to remember that Im on AT&T and our firmware is at MDB so I have NO way to test. Have fun :D
[Galaxy S 4 i9505 Original Android Development] Dx9:
Working great KT on Omega 6 MF4 with the test kernel
[Galaxy S 4 i9505 Original Android Development] thunderserpent:
Using the latest AOSP test kernel. OTG is fully working for me now :good:

I've only had one restart, and that was when I first changed the CPU gov from interactive to ktoonzeractive.
[Galaxy S 4 i9505 Original Android Development] vassalle:
Hi KT, works great on stock DEODEXED mea. Smooth as usual. Antutu is still sub 20k though on stock settings - got around 24-25k on stock kernel. Thanks again.
[Galaxy S 4 i9505 Original Android Development] dandroid13:
Forget about benchmark sh!t and enjoy the awesomeness, c'mon!

Enviado do meu Galaxy S4 4G turbinado com Omega Rom
[Galaxy S 4 i9505 Original Android Development] Abu-khulzat:
Just flashed it on BMF5, working well only untill Folder mount starts mounting folders. After that sdcard content disappears and the system shows it as 0 gb.

Waiting for the next release
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Dont use folder mount
[Galaxy S 4 i9505 Original Android Development] rlorange:
I use folder Mount too and have no problem with my extsd card. Fat32 32gb
[Galaxy S 4 i9505 Original Android Development] tvhak:
thanks a lot downloading and testing now. but i am sure it will be great
[Galaxy S 4 i9505 Original Android Development] Abu-khulzat:
I better wait until new exfat binary is ready. Is it going to be anytime soon?

Thanks anyway for your work on this kernel, man, I just don't like workarounds when there is chance to do something straightforward. Therefore I will wait for update on exfat binary
[Galaxy S 4 i9505 Original Android Development] khein:
Working on Omega 6 (MF4), still the smoothest kernel I've used on my S4. SD card mounts properly BUT, my apps still won't recognize my extSDcard.

Previously moved to SD apps are now unreadable, Games that have an option to download data to extSDcard are now asking me to redownload to internal SD card. I've attached screenshots from ES File Explorer, that when using Adam or Stock, it can easily detect ExtSDCard, but after flashing KT, it wont. Though manually navigating to /storage/extSdCard is working fine.

Temporarily returning again to Adam, as I really need those apps that were moved to extSdcard.
[Galaxy S 4 i9505 Original Android Development] culbuto:
Last version 06/22 work fine on Omega V6.0 MF4.
[Galaxy S 4 i9505 Original Android Development] cobra11111:
Setting for 27-28 antutu please ?

Gesendet von meinem GT-I9505 mit Tapatalk 2
[Galaxy S 4 i9505 Original Android Development] vakaviti:
Latest test tw version working great on omega v6 here. Great work now to test battery life
[Galaxy S 4 i9505 Original Android Development] zujko:
Hello folks

Which are the best settings for battery savings?

What do you think about these settings?

Ktweaker-General-cpu governor-ktoonservativeq

Extras-

screen off profiles mhz 594mhz

screen off profile sched-noop

screen off gpu max mhz-200

Governor Adjustments

boost_2nd_core_on_button 1

boost_on_3rd_core_on_button 1

boost_on_4th_core_on_button 1

sampling_rate 350000

Or are there better settings for saving battery?:D

This settings are, copy/paste from there:)
[Galaxy S 4 i9505 Original Android Development] kenzolo:
After a deep clean of the phone...freeze still here on aosp rom and the last test version of kernel

just using ktconservativeq governor...all the rest default.

I put the log later ;)
[Galaxy S 4 i9505 Original Android Development] MattyDip:
Working great on prerooted odex rom. Also with FolderMount no problems.
[Galaxy S 4 i9505 Original Android Development] iamnotkurtcobain:
Could those newer blobs/stuff from newest sources be used for a aosp test kernel too?

Gesendet von meinem GT-I9505 mit Tapatalk 2
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
If you have the international model, couldn't you just download and flash the latest international firmware with Odin?

flashaholic? :fingers-crossed:

For this hole thing about exFat, on cm10.1 (and I guess all other aosp roms) are automaticilly mount ext3 formatted extSdCards, and because of the mtp that's also on Windows no problem.

Doesn't that work with TW roms? I mean I haven't tested that yet and haven't read something against it yet, so could someone confirm if it works or not, because if it works with ext3 on Stock roms also, why should we fight further on with a proprietary microsoft licensed filessystem :D ?

L
[Galaxy S 4 i9505 Original Android Development] smeroni68:
CM11... but it is a problem to do always script update...

Inviato dal mio GT-I9505 utilizzando Tapatalk
[Galaxy S 4 i9505 Original Android Development] hawkerpaul:
Perhaps developers should start considering changing their updater-scripts to perform a delete-recursive as opposed to a format.
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
Should I change it for you and upload to my db quickly?

One option would be that someone makes once a week or so a repack and posts it on a seperate thread for all firmwares the users wants it

Another one would be as above my post with delete_recursive

Or a third one maybe can kt modify the recovery so that it formats to f2fs even if the updater-script says ext4?

L

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] smeroni68:
Just need updater script... probably the most useful is a script to extract, modify and repack rom... on phone directly... it can be used on most rom to change script...

Inviato dal mio GT-I9505 utilizzando Tapatalk
[Galaxy S 4 i9505 Original Android Development] MohamedN:
Wanted to share my results so far..

Battery is ridiclous, getting six to seven hours min of screen time.

Performance is top notch

Thankssss a million awesomness god [MENTION=4325945]ktoonsez[/MENTION]
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
If you do it on your phone you could extract your rom, copy paste from my post the format and mount line to your rom's script.

L

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] HaTrED_:
Could you share your setup/profile/tweaks pls?

:good:
[Galaxy S 4 i9505 Original Android Development] skitzophrenic:
updater script

hi, would anyone be so kind and share updater-script for f2fs for cm11

changed mount points but didn´t have a clue about run_program points so i didn´t get any further

so if someone knows how to, would u pls explain or share ure script for latest nightley?

regards niklas

-edit-

im on a I9505 s4

and i would like to have all formated as f2fs

TY
[Galaxy S 4 i9505 Original Android Development] Chahk:
I have the 9505G (GS4 Google Play edition). Coming from latest CM11 nightly. Flashed the modified TWRP from CWM Touch, but the recovery can't even find the /data partition. Here are the logs:

E:Primary block device '/dev/block/mmcblk0p29' for mount point '/data' is not present!
E:Unable to mount '/data'
...

Looking at adb shell ls -l /dev/block/platform/msm_sdcc.1/by-name/ there isn't even a mmcblk0p29 block device:

aboot -> /dev/block/mmcblk0p6
apnhlos -> /dev/block/mmcblk0p1
backup -> /dev/block/mmcblk0p24
boot -> /dev/block/mmcblk0p21
cache -> /dev/block/mmcblk0p18
efs -> /dev/block/mmcblk0p10
fota -> /dev/block/mmcblk0p23
fsg -> /dev/block/mmcblk0p25
m9kefs1 -> /dev/block/mmcblk0p13
m9kefs2 -> /dev/block/mmcblk0p14
m9kefs3 -> /dev/block/mmcblk0p15
mdm -> /dev/block/mmcblk0p2
misc -> /dev/block/mmcblk0p19
modemst1 -> /dev/block/mmcblk0p11
modemst2 -> /dev/block/mmcblk0p12
pad -> /dev/block/mmcblk0p9
param -> /dev/block/mmcblk0p20
persdata -> /dev/block/mmcblk0p27
persist -> /dev/block/mmcblk0p17
recovery -> /dev/block/mmcblk0p22
rpm -> /dev/block/mmcblk0p7
sbl1 -> /dev/block/mmcblk0p3
sbl2 -> /dev/block/mmcblk0p4
sbl3 -> /dev/block/mmcblk0p5
ssd -> /dev/block/mmcblk0p26
system -> /dev/block/mmcblk0p16
tz -> /dev/block/mmcblk0p8
userdata -> /dev/block/mmcblk0p28

Old TWRP version had the same issue, but was fixed ages ago. I have a feeling that it's the same issue. Can this TWRP be patched to work on 9505G?
[Galaxy S 4 i9505 Original Android Development] MohamedN:
Attached my profile.

Omega ROM

Screen brightness is never above 35

2g only most of the time

wifi is always on

Greenefied most of my apps
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
Indeed, on your phone the userdata partiton is the 28th partiton of the emmc instead of the 29th one like on the I9505 :eek:

Could you try if this works on google editon S4, please?

https://dl.dropboxusercontent.com/u/51440464/jfltexx/f2fs/TWRP-MOD-KT.F2FS-jgedlte.zip

L
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
It was thought to simply copy paste the complete line and replace also the complete line in your existing script, but here you go for cm11.

Remove the file ending and place it into your roms zip ;)

L
[Galaxy S 4 i9505 Original Android Development] Chahk:
Yup. One of the little differences between jfltexx and jgedlte. I believe "boot" is definitely different also ("/dev/block/mmcblk0p21" on i9505G vs. "/dev/block/mmcblk0p20" on i9505) and "recovery" may also be different, but can't confirm right now. I'll report back with the new version shortly.
[Galaxy S 4 i9505 Original Android Development] skitzophrenic:
TY

One more question... IF i update to next build, is it just so simple to replace next updater scriptwhit this one?
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
Yep. Once you have f2fs running you only have to change on every downloaded rom the updater-script's mount and format lines and everything else is working like before. :good:

L
[Galaxy S 4 i9505 Original Android Development] mythoc:
hey 9Lukas5 thanks for your pm before! Just returned home charging and getin ready to try f2fs on S4! :) Which roms have you tested so far? Did anyone made a list of updater-scripts for roms? EDIT: sorry i just read that we can change the file ourselves, im too tired >.<

I currently use SOKP rc3 build, i was looking at the script but something wasnt right in my eyes, will investigate further! https://db.tt/H1F2sKR4 [stock sokp updater script] mount script was in more than one place, didnt test yet if changing both would work. And where would the run-program be used? Excuse my noob questions, first time changing this exact script and trying to learn before doing staff!
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
For me it looks good. Seems to be the same / a similar updater-script like cm

one mount line for backup a few things

then format and mount again.

I have marked it for you so it's a little bit clearer for all: The red one has to be replaced by the green ones

L

assert(getprop("ro.product.device") == "jflte" || getprop("ro.build.product") == "jflte" ||
getprop("ro.product.device") == "jfltexx" || getprop("ro.build.product") == "jfltexx" ||
getprop("ro.product.device") == "i9505" || getprop("ro.build.product") == "i9505" ||
getprop("ro.product.device") == "GT-I9505" || getprop("ro.build.product") == "GT-I9505" ||
getprop("ro.product.device") == "jgedlte" || getprop("ro.build.product") == "jgedlte" ||
getprop("ro.product.device") == "i9505g" || getprop("ro.build.product") == "i9505g" ||
getprop("ro.product.device") == "GT-I9505G" || getprop("ro.build.product") == "GT-I9505G" ||
getprop("ro.product.device") == "jfltevzw" || getprop("ro.build.product") == "jfltevzw" ||
getprop("ro.product.device") == "jfltespr" || getprop("ro.build.product") == "jfltespr" ||
getprop("ro.product.device") == "jflterefreshspr" || getprop("ro.build.product") == "jflterefreshspr" ||
getprop("ro.product.device") == "jfltetmo" || getprop("ro.build.product") == "jfltetmo" ||
getprop("ro.product.device") == "jfltecri" || getprop("ro.build.product") == "jfltecri" ||
getprop("ro.product.device") == "jfltecsp" || getprop("ro.build.product") == "jfltecsp" ||
getprop("ro.product.device") == "jflteatt" || getprop("ro.build.product") == "jflteatt" ||
getprop("ro.product.device") == "jfltecan" || getprop("ro.build.product") == "jfltecan" ||
getprop("ro.product.device") == "jflteusc" || getprop("ro.build.product") == "jflteusc" ||
getprop("ro.product.device") == "jfltezm" || getprop("ro.build.product") == "jfltezm" || abort("This package is for \"jflte,jfltexx,i9505,GT-I9505,jgedlte,i9505g,GT-I9505G,jfltevzw,jfltespr,jflterefreshspr,jfltetmo,jfltecri,jfltecsp,jflteatt,jfltecan,jflteusc,jfltezm\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
[COLOR="Red"]mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");[/COLOR]
[COLOR="Green"]mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");[/COLOR]
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
set_metadata("/tmp/backuptool.sh", "uid", 0, "gid", 0, "mode", 0755);
set_metadata("/tmp/backuptool.functions", "uid", 0, "gid", 0, "mode", 0644);
run_program("/tmp/backuptool.sh", "backup");
unmount("/system");
show_progress(0.500000, 0);
[COLOR="Red"]format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");[/COLOR]
[COLOR="Green"]run_program("/sbin/mkfs.f2fs", "/dev/block/platform/msm_sdcc.1/by-name/system");
mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");[/COLOR]
package_extract_dir("system", "/system");
[Galaxy S 4 i9505 Original Android Development] mythoc:
thats what i thought! thanks for making it clear!
[Galaxy S 4 i9505 Original Android Development] topiratiko:
I'm not fallin for this f2fs stuff. Any REAL world difference?

Samsung Galaxy SIV I337

Open Source Evolution OSE

CPA Kernel 1.7
[Galaxy S 4 i9505 Original Android Development] skitzophrenic:
hi again

replaced updater-script

followed all steps and recovery gives me no errors about filesystem

installed cm11 latest and stuck on boot whit led blinking blue ;(
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
On a freshly installed system you might won't notice much. But f2fs is supposed to stay fast with longer use instead of ext4 which slows down with the time.

The filesystem was made from Samsung to have a filesystem specially for flash memory (ssd, sdcards, emmc of our devices, ...) and was introduced with Linux 3.8 if I'm not mistaken.

Also it tries to use the whole memory steady-going:

If you start to write files on your memory and then delete some, it only removes the link to the file, but if you write new data it continues to write those data's where it stopped before till it reaches the end of the partiton. Then it starts again and writes to the again free parts. This way the whole memory should be able to live longer as the write access gets spread over the whole memory instead of concentrating always to a small part :good:

L
[Galaxy S 4 i9505 Original Android Development] Chahk:
Isn't wear leveling part of the flash controller's firmware, and independent of the file system?
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
Have you flashed the kernel that is modified for f2fs system or the one from the ota download?

L

---------- Post added at 07:44 PM ---------- Previous post was at 07:39 PM ----------

I have only read back what I read on a german computer newspaper^^

L
[Galaxy S 4 i9505 Original Android Development] skitzophrenic:
yes, im using kernel from link in topic

http://goo.gl/s0lw7Z
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
no, this one won't work. In the instruction set I've linked the zip named jflte-ALL-F2FS.zip

There's a modded one included for booting from a f2fs system ;)

L
[Galaxy S 4 i9505 Original Android Development] topiratiko:
Anyone on f2fs and aosp based 4.4 ROM run a quadrant and lemme know. Curious to see this alleged massive increase in i\o

When I switched from dalvik to ART it went from 7900 to 10200

Samsung Galaxy SIV I337

Open Source Evolution OSE

CPA Kernel 1.7
[Galaxy S 4 i9505 Original Android Development] skitzophrenic:
oooomg.. TY again, forgott about that one so ill guess that explains it.. gonna give it a try now!

---------- Post added at 06:55 PM ---------- Previous post was at 06:52 PM ----------

again.. ty for your help... now it´s working ;)
[Galaxy S 4 i9505 Original Android Development] CamFlawless:
http://xdaforums.com/showthread.php?t=2297379&highlight=f2fs+bench&page=1131

Scroll down and you can see where KT and Piggy share there results on F2FS vs. EXT4
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
We haven't seen any benchs with all three on f2fs, but I have to say I don't even trust those benchmarks^^

L
[Galaxy S 4 i9505 Original Android Development] Chahk:
Reporting success with this TWRP version on GS4 GPe (jgedlte) and latest CM11 nightly with the linked KT kernel.
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
Ok great. Was a one character change in the recovery's ramdisk :laugh:

L
[Galaxy S 4 i9505 Original Android Development] topiratiko:
Botched post
[Galaxy S 4 i9505 Original Android Development] topiratiko:
This is what I'm getting on stock ext4 and ART. Something ain't right

Samsung Galaxy SIV I337

Open Source Evolution OSE

CPA Kernel 1.7
[Galaxy S 4 i9505 Original Android Development] mythoc:
mount | grep f2fs

using this command in terminal to check if everything went well aaaaaaaaaaand CM11 booted with all partitions f2fs!

Just a problem..i cant make sokp to install through recovery.. i think i messed up that script... when i edited cm11 it went so smooth... cant figure it out with sokp. Can someone test if its my script or something else? Thanks in advance!
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
This app is strange. Go to settings and set as sequential write 3072 and test again and then show the result. I don't think that this app can make a clear statement if it's good or worse

L

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

What is sokp? or did you mean aokp?

Maybe this rom doesn't support f2fs yet. Ask the dev of the rom if f2fs support is integrated yet

L
[Galaxy S 4 i9505 Original Android Development] mythoc:
SOKP sounds funny doesnt it? :P Here's the ROM's thread, its cm11 based so i think it should at least make it through the flash proccess.

http://xdaforums.com/showthread.php?t=2724109
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
So the rom doesn't flash successfully or it only doesn't boot?

Have flashed the kernel after the rom again?^^

[MENTION=535343]all[/MENTION]

Here's a list of the roms that work out of my head, anything missing there?

cm11

broodplank1337's AOSP

carbon

anything not listed, please tell me

L
[Galaxy S 4 i9505 Original Android Development] vagaBond07:
Anyone tried updating the script on Broodplank ROM? Please share your Updated script.:fingers-crossed:
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
yep, that was the first one I tried. remove the fileending and place it into the zip^^

Why everyone asks for getting the ready script instead of making it by themselfes :confused:

L
[Galaxy S 4 i9505 Original Android Development] mythoc:
My bad i didnt get the log from recovery, i'll try flash it again to see what the error was. So yeah, the rom doesnt flash. I dont even know if I should bother to be honest, but you know, im curious! Did i make any mistakes here? https://db.tt/H1F2sKR4

Also, restoring data from ext4 backup to f2fs went smooth. art is working too. Not bad :) [on cm11 f2fs]
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
hm, looks ok to me. If you change the rom I would suggest you to format system (under wipe/advanced/system) before flashing the new rom so you have a clean system

L
[Galaxy S 4 i9505 Original Android Development] smeroni68:
[MENTION=4325945]ktoonsez[/MENTION]: can we assume that your next releases of kernel will support all stages of F2FS formatting?

I mean that for official KT, /cache and /data are already implemented on kernel zip as ext4/f2fs check/fstab change... but now some of us (me too!) has also /system as f2fs formatting... let's forget the changes on rom script, but for kernel we can expect the complete managing of all levels of f2fs? Or let's say the new f2fs level is updated to all partitions mentioned?

This is important to know... ok testing, but support is important too.

Thanks
[Galaxy S 4 i9505 Original Android Development] 9Lukas5:
Here's the answer bro

http://xdaforums.com/showthread.php?p=52063836

L

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Yes my next release will have some fancy scripting to determine which partitions are formatted to f2fs and mod the ramdisk accordingly.
[Galaxy S 4 i9505 Original Android Development] smeroni68:
Thanks... I missed it!!

Thanks for your good work!!
[Galaxy S 4 i9505 Original Android Development] vagaBond07:
Tried it earlier but no good on me :). To be honest I don't have background in programming, I'm just self-learning from your tutorials.:D
[Galaxy S 4 i9505 Original Android Development] smeroni68:
No promises... but I've ask to a member of my dev team to analize and prepare an automatic procedure to "convert" rom zip from ext4 to f2fs... let's see if something good will come up!! Will let you know here...
[Galaxy S 4 i9505 Original Android Development] Technical:
1) Four reboots while using with KT kernel (04.17.2014) and KTweaker:

1st: Hydra script + Super Battery Saver 3.0.

2nd: Hydra script + Bless the Child.

3rd: Feed the Machine

4th: Misanthrope

2) The OTA download stops suddenly while downloading a new kernel (16%-18%).
[Galaxy S 4 i9505 Original Android Development] LuigiBull23:
Not much anyone can do without a log. And have you tried the latest release?
[Galaxy S 4 i9505 Original Android Development] Shiroh1ge:
Not sure if this is the place to ask, but what is the difference between EXT4 and F2FS, are there any benefits?
[Galaxy S 4 i9505 Original Android Development] vagaBond07:
For those who tried f2fs system, which part of the provided script am I going to copy and paste on my preferred ROM? What specific line to start and to end. Sorry self learning programming.
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Well good news bad news. I was able to add a function in ktweaker to modify a flashable ROM zip to make it format /system to f2fs, bad news is it takes about 6 minutes or so to do it. Zip functions are so sloooooooooooooow on the phone.
[Galaxy S 4 i9505 Original Android Development] PiggySmalls:
Would it be easier to make a script to change it on a PC?
[Galaxy S 4 i9505 Original Android Development] Technical:
I also want to know (and learn). Thanks for asking.
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Yes it would and I already have a Windows exe that can do that but hard to remember to do it on PC everytime and if you travel like me and update thru the phone on occasion you would be screwed. There has to be some BufferInputStream for zip API. Im still searching, maybe someone else that does java can chime in. What really annoys me is you cant edit a zip, you have to read it and write to a new file just to replace a file, so stupid.
[Galaxy S 4 i9505 Original Android Development] Alxnjs:
[MENTION=4325945]ktoonsez[/MENTION], check with [MENTION=4277844]chenxiaolong[/MENTION]. He has dualboot patcher app for create new patched zip for flash.

Enviado de meu GT-I9505 usando Tapatalk
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Does it extract the entire ROM zip and rebuild it? How fast is it?
[Galaxy S 4 i9505 Original Android Development] Alxnjs:
For extract slimkat zip and create new install patched, the process leave ~2 minutes for complete.

Enviado de meu GT-I9505 usando Tapatalk
[Galaxy S 4 i9505 Original Android Development] ktoonsez:
Thanks, thats about what I got mine down to now with a CPU boost.