yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
I was trying to have some rest during these days lol, but nevermind.

Check this, made by me.

It's for Galaxy Ace 2, but you can adapt it for S8.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Alright thanks, gonna look into it when i have time, btw does it wipe the partitions? :p
[Samsung Galaxy S8 & S8+ Cross Device Development] aryx1:
Would it be a good idea to covert ext4 into f2fs? If yes, then which partitions should be converted and what is the method?
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
It's always a good idea to convert ext4 into F2FS. F2FS is just not widely utilized because few can properly implement it without it being unstable.

For F2FS you need BOTH Kernel, ROM and Recovery support. If only one of them does not have it, you're going to bootloop.

It's a good idea because F2FS is DRAMATICALLY faster than EXT4 in anything. EXT4 only wins in stability it seems. But again, properly implemented F2FS will not give anybody any issue.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes. You should do a twrp backup and later after repartition you can restore the backup. But i'm warning you, only modify the file and flash it, if you really know what you are doing. As it can brick your phone if you accidentally override the bootloader.
[Samsung Galaxy S8 & S8+ Cross Device Development] aryx1:
First of all , thanks for your quick responses my friend 😊.

I'm on latest Alexis ROM (9.3) , latest TWRP, and latest A2N kernel. Am i good to go?

What else do i need to keep in mind?
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
Unfortunately I have one good news and one bad news for you. Also, you’re welcome.

I’ll start with the bad news. Alexis ROM 9.3 does not support F2FS. And the developer is very silent about it, as I myself and many others have asked if there is support for it (verifying ourselves that there is not).

The good news is that Alexis ROM, at least to me, is the best ROM on S8 you can get. In fact, it features an hardcoded EXT4 that is different from the other ones used in other ROMs and the one used by stock ROM. It performs MUCH better. It’s not as fast as F2FS by any means, but it’s halfway through and it has all the stability and features of any normal EXT4 partition in any other phone. A2N Kernel + Alexis ROM is the best combination possible. Congrats for having made the right choice. Your S8 is now as debloated, as customizable and as snappy as it can possibly be (RIVALS S9 EXYNOS. Watch my previous benchmarks on page 157 on this forum).
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Right, otherwise twrp from my ftp + this kernel supports F2FS.

Edit: stock ROM seems to have support for F2FS.

But support seems to be incomplete in kernel and twrp.

Will add it in next build.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Okay, thanks for warning about it but i know what im doing.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Should be great when the rom uses a faster filesystem😄 my phone is already super fast compared to months back.😄
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
As for F2FS support in ROM: search in system/bin and system/xbin for binaries like "make_f2fs" .. or anything with "f2fs" .. if you have it, support is there.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
I got only mke2fs binary in /system/bin, so its supported?
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Nothing with f2fs ?

2fs is not F2FS.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
I used the search thingy on root explorer in the /system/bin and it found fsck.f2fs make_f2fs and sload_f2fs, so yea it supported and gonna switch to it when the kernel has fully support for it
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
BUG 1: When I call someone via Discord or Phone call and open a game, right after the game opens the cell phone restarts. I had the do not disturb function activated, I don't know if it influences.

ROM: Horizon ROM
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer i dont think it is a good idea to edit the cm11 repartition zip by myself, im kinda scared i messed up something when i do it and hard brick my phone with it, but i executed parted in termux to print which partitions etc my phone uses and maked a screenshot of it. But if you have time and want to help me with it im rlly thankfull.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
First you need to know how big it should be the system partition.

Then check this.. it's old guide .. but just to understand how it works.

Then just adapt it according to your partition table. Once you understand it, you will be able to make a flashable zip for twrp. If you are unsure i can try when i've time.

Note: F2FS needs also somewhat more space.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Im still too unsure about it😅 okay great, I'd rather leave it to someone who has more experience with it. Yea i guess thats a good idea, but im not sure if changing a fs needs more room. Or i missed something when i learned that kind of info.🤷‍♂️
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
So you was trying to odex the system and got error about insufficient space on /system ?

If so, check what you have in /cache partition. If there is only non critical files like logs, the we can merge /cache to /system ... imcreasing /system from 4,5 GB to 5 GB maybe enough ? That would be easy, otherwise we need to go down to /data partition and grab some space from there. But that's more complicated. Check with "df" cmd about free space on /system and /cache.

Btw ext4 is in many cases faster as f2fs:

F2FS vs. EXT4 File-System Performance With Intel's Clear Linux - Phoronix

www.phoronix.com

Also it's still not fully stable (and likely never will) as ext4:

https://www.reddit.com/r/Android/comments/6txvqx

So probably it's better to stay on ext4.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Yea i readed also that f2fs not is fully stable and can cause data corruption but yea. /cache is 1% used and guess not rlly used as an cache, and system has nearly 1 gig free because i debloated the rom so i guess i have free space enough to odex system partition. I try it again when i got time for it.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
So around 500 MB wasted space lol.

Will try to make some use of it.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Yea indeed, i checked quick in recovery and it is 484mb wasted space lol, quess removing /cache and uses the space to increase the /system partition is the easiest method, dont know if there are more useless partitions what can be removed?, else if you wanna take space from the /data partition u need also to shift it trough the other partitions till the /system partition or removing all partitions and recreating them what can cause a hard brick.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer question out of curiosity, are there planned features for the a2n kernel and app?
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
I would like ace2nutzer to look at the file I am going to send. The cell phone restarts when in standby, it happened 2 times so far.

ROM: Horizon ROM

Latest Kernel and A2N app.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
No.

Thanks, will look into it next week.
[Samsung Galaxy S8 & S8+ Cross Device Development] aryx1:
Can i ask something off-topic?

Because i have looked on internet but can't find a solution and i don't know who else to ask.

It is about a video file stored on my external sd card right now in my phone. This file is very stubborn, i can't copy it, can't rename it, can't upload it to google drive, it is just there , i can play it normally like other videos but can't do anything else. I checked the file properties, the md5 shows "cant calculate, access denied"

I hope maybe someone of you knows what to do, if yes please help. And if this is way too off-topic to stay here, then remove this post, It's okay.
[Samsung Galaxy S8 & S8+ Cross Device Development] aryx1:
Replaced the battery, is this good or not?
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Thank's, you are amazing!
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
This could be for different reasons:

File is corrupted, filesystem of the card is corrupted or the card is half broken. I guess it's FAT32 ? Just delete the file or if it's an important file try to recover the file with any recovery tools.

Try to reset battery capacity, since you replaced the battery.

It's also possible that latest kernel has a battery drain issue and it'll be fixed in next build.
[Samsung Galaxy S8 & S8+ Cross Device Development] aryx1:
I charged it to 100% and waited for LED to turn green, as mentioned there and then unplugged the cable and tapped reset. Is it all that needs to be done or do i have to restart the device after tapping reset?
[Samsung Galaxy S8 & S8+ Cross Device Development] aryx1:
I switched to WQHD+ and then played the video and screen recorded it. And then formatted the SD card. Btw thanks for your willing to help nature, even off topic. You're truly awesome 😊😊
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes, just do what the app said.

You can also reboot and charge again till green LED. Anyway it takes 5 - 7 charge cycles (100 - 2 %) then it shows real battery capacity more accurate.

You will see that will change after every charge cycle.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Alright, i got my rom odexed with 3c rom manager and it worked out with the available space in system, but do you know something to get the apps in /data odexed? Searched for tools or scrips on google but they are for android 4.4x and under and the downloads are removed so yea and most tools for Android 9 and up doing only the rom apps. Only way for now to use manually the odex function on the user apps with luckypatcher one by one. But if you know a better way what automates it let me know.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
No, i don't force AOT compilation.

It's done automatically. While the phone is charging it'll optimize odex files based on apps usage. Of course this takes some time after every wipe dalvik cache.

Read this. By default speed-profile is used and is better as "speed". The only thing to optimize was the /system partition. By default not optimized with speed-profile but only with "quicken" due to the lack of free space. But you already did that. Using 'speed' instead "speed-profile" will make it sooner faster but will use more RAM resulting in worse multitasking. See screenshot, it's taken from /default.prop.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Alright, if the apps automaticly are optimized by the dalvik vm ill leave it be, but still thanks tho for some variables i can change in default.prop 😄
[Samsung Galaxy S8 & S8+ Cross Device Development] bntnja:
A random reboot while I'm using chrome.

it has been 3-4 days up time until the reboot. still pretty stable!
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer i tried to edit the file with some text editors or replace it with twrp file manager and everytime it brings back the stock file, also i noticed when i opened default.prop in twrp it has different variables in it compared to the stock one when i open it with a text viewer app. Kinda weird tbh

Edit:

I guess i know now why, default.prop is also in the initrd or boot.img, so if you change it or replace it and reboot, it is gonna replace it back to stock. Im not gonna fiddle around with the boot.img its difficult and too dangerous to cause a hardbrick on the phone.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Use AIK-Linux.

./unpackimg.sh --nosudo
# edit
./repackimg.sh --nosudo

Use Linux for this.

You don't need to do this for twrp.

In case the phone doesn't boot, flash a working kernel.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Hmm didnt know that the boot.img is also the kernel lol, well i can extract the a2n kernel update zip and extract the kernel boot.img and edit the default.prop file and repack everything and flash that😅

edit:

i got it working first time, but i used the tools maked for windows becus its easier for me instead to do everything on linux, it worked out without getting issues like repacking everything and repacking the flashable.zip of the a2n kernel, my phone is so super optimzed for speed and also for battery saving.:D thanks for helping me out and learn me new stuff. :D
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Happy new year !! (y)
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Happy new year too 😛
[Samsung Galaxy S8 & S8+ Cross Device Development] aryx1:
Still showing 90 % , 😔😔
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Well it just means the battery is new, but it's not fresh. You can accept it, or complain where you purchaesed it.

Another user also replaced the battery and he had 101 or 102 % ... that's all possible, so it was very fresh battery. Even if it's very rare. Most batteries are just old, even if they are "new" and "unused".
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
My real battery percentage is 86% i got it almost 4 years so yea, its working still as good as when i got it new😄
[Samsung Galaxy S8 & S8+ Cross Device Development] aryx1:
Decreased to 78% now, before last full charge i did that *#0228# thing...can it be related? And tbh, it was 100% on first day, then i did all this *#0228# thing it comes down to 90 % and now this
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
No idea, i didn't told you to do that.

You should replace the battery.

78 % is for sure not a new battery.

You should have 100 - 95 % if you really replaced it. Otherwise i would complain where you performed the replacement.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
I should replace it again and complain where you bought it, it isnt good that the battery has that capacity already if it marked as "new".
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Is it recommended to leave touch boost for how many ms?
[Samsung Galaxy S8 & S8+ Cross Device Development] yuan5422:
Can I use it on Android 12？
[Samsung Galaxy S8 & S8+ Cross Device Development] ksant0s:
No. This kernel is only for OneUI i.e. Android 9.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
It's only to fix lags while scrolling.

Start with lowest and see, increase till scrolling is smooth for you. Depending on the app, it's always different. If you set it to the max it'll make every app smooth, but will drain more battery.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
@ace2nutzer i got again the issue after 24 hours uptime that my phone get slow, it freezes a few seconds and like switching to fullscreen on youtube has a rlly bad latency like 5 secs. After a reboot my phone runs smooth again. Do you know what causes that issue?
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Mine happens that sometimes. If I overclock it is slow, if I leave it at the default settings it is also slow. when i leave in the "balanced" option it is perfect, even in games it is wonderful. I don't know why, but it works 😆.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
There is a bug in HMP driver.

It'll be fixed in next build.

Workaround: close all apps, also remove all apps from recently used apps, just before you turn the screen off.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Guess it doesnt matter which profile you take, its mostly when something is gonna build up in 24h or less that causes laggs and slowdowns and now ace says its becus a buggy hmp driver it makes sense

Ok, well i close the apps before turning of screen or restart my phone if i get the issue again. Atleast the kernel is finally stable without getting every 24h one or more reboots😄
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Ouh wait that 94% is percentage of the battery
[Samsung Galaxy S8 & S8+ Cross Device Development] aryx1:
it is the charge percentage, same as what is shown in status bar
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
@ace2nutzer Sometimes when I'm using my mobile phone, I get a Google play services pop up saying "Google play services stopped working". This message appears many times at the same time and after some time and after a few seconds the phone restarts. Can you tell me what it could be? (Sorry for bad english).
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Did you flash his twrp and boot atraight to it before rebooting to android? Or just turning off and on the phone? Else you get mem corruption issues and that can cause issues like getting apps in crash states. Else it has something to do with the kernel, but then you have to attach a kmsg log if it is an hardreboot, soft reboot you can attach a logcat&dmsg log on here, you can both make them with the a2n demo app in the debug section.
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
When I put the Twrp I restarted straight for it. Okay, next time I'll be putting the log. Thank you for your help.
[Samsung Galaxy S8 & S8+ Cross Device Development] bntnja:
wow! I'm really impressed with the 12-20 version so far. I have 187 hours of uptime since the previous random reboot. it has never reboot itself for 7 days!
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
It's happening again, the apps are stopping, but this time it didn't restart.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Just wait for new build. I don't need logs for now.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Well i dont know if anyone reported a softreboot yet, but i got since today a softreboot while 3 1/2 days stable, dont know if it is again app related or kernel related so i post for in case a log.😅 Btw in the 3 1/2 days i didnt get that hmp driver issue so i guess it is something that comes up once in a while randomly🤷‍♂️
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
As i said i don't need it for now, but thanks anyway.

Yes i think it's HMP bug and it happens randomly, that's right.

Causes also CPU Freq to stuck at max_freq, also ramdomly for little or big cluster as well overheating and battery drainign issue. I'm fixing it right now.
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Yeah feel it sometime my battery drain like nothing but no if i drain itself i hope new release have good tune and more stable i got some random reboot when open app or when use a app like open chat someone on whatsapp or IG
[Samsung Galaxy S8 & S8+ Cross Device Development] TechNoobForSale:
I detected that issue too and despite the low CPU usage (10-15%) the CPU ramps up to very high temperatures above 75°C. But for me the issue is due to an app called "Brevent". All I have to do is open it and then simply close it again from the recent apps tab and the CPU calms down. Maybe it's an HMP bug with background apps.
[Samsung Galaxy S8 & S8+ Cross Device Development] rtyuakatsuki:
Hi guys i have been change thermal paste on my phone

.

.

For image see on telegram group

.

I use thermal paste with 13,2w/m.k that transfer hot instantly i can hold 2,6ghz for 3 or 5 second at normal temp of phone 36 or 34°c

Also you can try it and for who ask about my cooling system i will review it soon
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
New build is up !!

Changelog

Kernel V. 2022.01.10

Improved stability

CPU: updated HMP driver

Optimized MIF & INT Freqs qos-requirements

Removed F2FS driver

Uploaded also patched TWRP with this release inside

Release notes:

Please consider new installation method from post #1.

Also it's highly recommended to flash AdAway_hosts_patcher_g95x.zip to hide ads in almost all apps and web-browser. Especially if you are using AdAway app or you had already patched "/system/etc/hosts" then you should flash the patched AdAway_hosts_patcher_g95x.zip in order to fix potentially logcat spamming, because recently official AdAway hosts sources is buggy. Otherwise it causes high CPU load and battery draining. Later once it's fixed then you can use official AdAway hosts sources like usual.
[Samsung Galaxy S8 & S8+ Cross Device Development] pranil60:
sir, I think thou kernels really hate charging

got a reboot while phone was charging.. settings were max safe clocks cpu and gpu with zram 100%

this is surprising cause previous built didn't gave me a single reboot
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Seems like the cpu usage is indeed less with the new build & adaway patch. Hopefully the hmp issues are gone, but will see with an week testing. Seems good so far😄
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
Yes, HMP should be fine now, but unfortunately memory management issue is still there. At least it seems to be only the case for zRam.

Fixing it right now.
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
Can removing the F2FS driver cause any problems?
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
So we can expect reboots caused by mem management issues or will it be fine?

If you use f2fs partitions for /data /system /dalvik etc you can expect issues becus its not anymore supported by kernel i guess, anyway its recommend.
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
A soft reboot occurred when I liked @Ryujin96 comment 😂.

I'm using the latest A2N build.

EclipseStock ROM.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Well thats rlly ****ed up when that happend lmao
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@Driieel thanks, but not needed for now, i'm already aware what's wrong.

No, as we don't use it. It was planned to be used for /system and /data for faster speed, but since it's not as stable like EXT4, we just remove it.

(It allows me to rebuild the kernel faster since i've very old notebook and i'm just too lazy to use a build-server for just a kernel build lol)

Sure it'll reboot, but likely only if zram is in use.

No matter how much percent, even 1 % can cause a reboot.

Anyway, i'm working hard on it, it sucks like hell.

It was never fully implemented for /system & /data.

You was able to use it for a USB external storage if at all.
[Samsung Galaxy S8 & S8+ Cross Device Development] ace2nutzer:
@Ryujin96 @pranil60 @Driieel

I've uploaded a test kernel that tries to fix memory management issue:

pre-release V. 2022.01.12

S8

S8+

Also uploaded A2N app V. 4.0.

Changes: fixed "device offline" issue and "please wait ..." loop.
[Samsung Galaxy S8 & S8+ Cross Device Development] Driieel:
@ace2nutzer Did I ever tell you that you're amazing? I will test it now.
[Samsung Galaxy S8 & S8+ Cross Device Development] Ryujin96:
Great, when im home im gonna flash it after i modify again the default.prop in the kernel. Besides that i dont have issues yet with the latest official build.😛