yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S 5 Unified Development] haoyangw:
Apologies for the many issues in my recent builds, here is a quick bug-fix build to fix the kernel properly. It has the same changes as the 3007 build, except that kernel has been rebuilt rather than repackaged for integrity. Please try it out and let me know, for those that have issues with 3007! Those that can use 3007 just fine without problems, just skip this! Download the 1308 build here. Thanks again for everyone's feedback and testing! I'm currently still working on fixing up the kernel so that I may finally do a repo sync, until then I would like to hold on releases as a build without the latest security patches has no point in my opinion. Just fyi, I went on vacation the past 2 weeks so I really couldn't post any builds, but I did do some testing! I can verify that the kernel works properly(boots fine), and I could flash Intelli kernel over it and also boot just fine with everything working. Could not manage to test other kernels due to lack of time sorry, not trying to be biased against any kernel. Until the next build then :)
[Samsung Galaxy S 5 Unified Development] godofsalt:
Edited....

Could be the XDA Lab app.. Could also be Operator error also. But this new build 1308 "HERE". The link, has a bad URL.

I also see that, that 1308 build is not with your other builds.

Could you place that build, where you

keep the others?

Thanks
[Samsung Galaxy S 5 Unified Development] haoyangw:
My bad, yes you are right I put in the wrong link, one that doesn't work. I have now fixed it, thanks :) I removed the problematic builds, so currently you will not find the July builds anymore on my AFH folder. Download the 1308 build instead, it works well.
[Samsung Galaxy S 5 Unified Development] haoyangw:
Oh yes, anyone interested in an OTAUpdater app that automatically/manually checks for updates and can download updates? I have written a very simple one before for one of my less known ROMs years ago, I can improve it a little to make it a full-fledged OTAUpdater app just like LineageOS' one.
[Samsung Galaxy S 5 Unified Development] vlad3647:
Hi

Do we need to install your kernel or not?

Thanks
[Samsung Galaxy S 5 Unified Development] godofsalt:
Well, I thought, that since I was using XDA Lab app ... that being mobile, I was not able to download. I know that some links through out XDA require "Desktop". Even put Firefox in desktop mode, but still didn't work...

Thank you for the info... downloading now...

---------- Post added at 12:38 ---------- Previous post was at 12:17 ----------

OK... But... "Where will these be stored ? (location e.g. Internal SD card, OPT 7.1...or some hidden place? )

which brings in ... How many Roms will be stored there? current plus last, or 3, 5, or 9? just asking! Personally, I could handle 2, but would hate to see my Storage get completely full in a week or 3.

in short, Yes! I could make things a bit easier for all ( you the Dev. and us poor sad users) . which Los does rather well. Makes the Owner seem in charge and in control.
[Samsung Galaxy S 5 Unified Development] haoyangw:
Nope! The ROM already comes with a fully working kernel that's the most stable it has ever been so far
[Samsung Galaxy S 5 Unified Development] haoyangw:
Oh it's a very simple app actually! It will not have its own download manager, but instead will use the system one, so updates will go into the usual /sdcard/Download directory! I actually haven't thought about changing the download location until you mentioned the storage problem, but you have a good point, perhaps I'll implement a mechanism to clear out updates so I only store one or two at any time :) And also allow selecting a different location to download updates to
[Samsung Galaxy S 5 Unified Development] godofsalt:
Edit....

OH, now stop...

You are "OverThinking" all this!

I was only pointing me dirty finger, at Los, they try and hide the download. Plus, not easy peasy to find! Yes, one can delete an older build. But one could also have way too much in some hidden folder....

But I tend to hold on to a build that seems to work for me. When actual improvements come, then, of course I trash the older build.

Hope you can see what I'm thinking....

You seem to be heading in a "Good" way, so don't over think it!!!

Keep it going!

Pls.

Tanx
[Samsung Galaxy S 5 Unified Development] haoyangw:
Ah I get what you mean, I've tried many times to find all these hidden folders that LOS and companies like Samsung use for updates also, so I know the frustration. Thank you for the kind words :)
[Samsung Galaxy S 5 Unified Development] godofsalt:
Wow... Finally!!!

Am glad to know I am not the only one! Me head can be pretty thick!

Yeah, Samsung has done a wonderful job at hiding those files needed to change anything. Plus, like written in Korean/Chinese.....Then incrypted. What a pain.

Hey look at it this way, Once somebody can actually break the code/process of all those special files.... Bam! S5 will still rule.

Seen the Note S10 is out now (pre-sale)... Sorry, just can't seem to pay so much for a phone. It's like taking the wife's Jeep payment and the House payment Plus Cable/Internet bills all rolled into a Phone that gets dropped, stepped on, played with by Great Dane. Not to even get into all new cables, case or cover.... Just don't see it happening!
[Samsung Galaxy S 5 Unified Development] LightC:
I have been running the 3007 build for a while now and tried to flash the 130819 build thinking it had the latest updates but the phone rebooted into ODIN/download mode after flashing 130819.

Should I keep 3007 or flash to 240619 for the latest changes? For now, I have just flashed Unified Kernel over 130819 and it seems to boot fine.
[Samsung Galaxy S 5 Unified Development] haoyangw:
3007 and 1308 are perfectly identical, other than very small changes in the kernel that likely doesn't cause much difference. So just stay on 3007! The ROM is exactly the same, so no new updates here
[Samsung Galaxy S 5 Unified Development] Fryflex:
Thank you for this!

Just picked up a sm-g000w8 for $6 and installed this rom, it works great thank you OP!
[Samsung Galaxy S 5 Unified Development] pascua28:
Are you serious that it's $6?
[Samsung Galaxy S 5 Unified Development] Fryflex:
Yeah it was $5.99 CAD at my local thrift store I just needed a new battery because the old one was garbage.
[Samsung Galaxy S 5 Unified Development] 刷刷刷:
Does it apply to G9008W?
[Samsung Galaxy S 5 Unified Development] haoyangw:
I'm not sure sorry, I have only tested it on G900F

Chinese: 我不是很清楚，抱
[Samsung Galaxy S 5 Unified Development] haoyangw:
Alright another release is finally here! I am very sorry for the very long delay, I really couldn't find time earlier :( Download it here.

Changelog:

-Updated to the latest security patch(Aug 5 2019 at the moment)

-Fix several warnings on the kernel side(thanks to [MENTION=7427799]pascua28[/MENTION] for most of the fixes)

-Upstream changes for the past 2 months(did a repo sync yesterday)

Have already tested it like usual, everything works! Also tried flashing Intelli Kernel on top, works too :) But if there are any issues, do let me know. Happy flashing!

PS: Sorry about the other klte variant users, I'm still planning to release the ROM for the other variants. I wish to incorporate some changes into the kernel first though. Then I'll definitely work on the other variants :) Of course, I'll incorporate any changes into other variants as well
[Samsung Galaxy S 5 Unified Development] haoyangw:
A little surprise! Managed to cook up a semi-custom kernel with some nice changes. Get it here. Changes compared to default kernel in 290819 build:

-F2FS updated to Linux Mainline 4.11(thanks [MENTION=7427799]pascua28[/MENTION]! All credits to him)

-Random driver backported from Linux mainline 4.13

-Disabled ZRAM and switched to SSWAP instead(read more on SSWAP below)

What is SSWAP?

It's very similar to ZRAM used in most Android phones nowadays. Basically, it compresses a portion of your RAM(1GB for S5) for use as swap, at a 2:1 ratio(i.e. there's a 500MB swap file in your RAM that contains 1GB of data). It's based on ZSWAP, and is used by Samsung in old devices from our S5 era(like Note 3/4, etc).

Why SSWAP instead of ZRAM?[/]

Samsung chose SSWAP instead of ZRAM for our S5 and its sibling devices, so I believe it had to be for a reason. From my testing, it works really well anyway, so I'm fine with it.

The idea behind this sudden release is that I'm planning on maintaining my own semi-custom kernel alongside this Optimized ROM for people who like a little more features and optimization but don't need the full features of a custom kernel. But I won't include it as the stock kernel for my ROM as there are personal choices of features here that not everyone will like. Do help to test its stability and for bugs! If all goes well this may just be V1 of my kernel :) Happy flashing, as always! I predict that September security patch will be released tomorrow, Sep 2, so I will try and prepare my source tree beforehand so I can repo sync and release a Sep build ASAP. Thanks everyone!
[Samsung Galaxy S 5 Unified Development] Adzkii:
whats lineage14.1_klte_betterMultitasking? :)
[Samsung Galaxy S 5 Unified Development] haoyangw:
I had a feeling someone was watching, I was right ;) see below!
[Samsung Galaxy S 5 Unified Development] haoyangw:
Hi there! Another mini-surprise from me! Anyone remember zeppelinrox's SuperCharger script? And its ability to change OOM Groupings to improve multitasking? Well since the day I got into Android dabbling I've always wanted to have that feature in any ROM I use, so I've worked for many years to port it over to the latest Android version, until I no longer could since Android Marshmallow changed the OOM code drastically(and my smali/baksmali skills sucked). Hey then I had this brilliant idea a few days ago to try again and I succeeded! So here you go! Read below for in-depth explanation of what's changed:

-Launcher ADJ set to 1 to keep it in RAM and prevent redraws

-Various ADJ values tweaked to make the apps that matter stay in RAM longer, based on: source(check out the Ultimatic Jar Patcher thread by zeppelinrox here for details on this! Too much to explain)

So what's the effect? Launcher redraws should no longer happen, and you should see apps that you recently used be kept in RAM longer rather than restarting everytime. For greater effect use it with my semi-custom kernel(which has SSWAP) to noticeably improve multitasking! Download the TWRP flashable zip or the Magisk Module. Happy flashing :)
[Samsung Galaxy S 5 Unified Development] pascua28:
Good thing you updated f2fs too. Feel free to ping me about any issues. Meanwhile, I'm thinking of switching to vnswap too. I'll try updating vnswap from s7 or higher Samsung devices.

Zram is disadvantageous, in that, you have to reserve space for it. Once reserved, it will always be on the ram, and whenever a process touches that reserved area, it will always compress and decompress. On vnswap, however, it's quite the opposite, as it doesn't reserve an area in the ram, and will only compress when needed (zswap does this). Vnswap, on its own, is pretty useless. It needs zswap, which is I think still more efficient than zram
[Samsung Galaxy S 5 Unified Development] haoyangw:
Ah, that explains the general great performance I have with VNSwap so far. Thanks so much for your work backporting so many features :)

Oh btw you can update the sswap code in kernel but I believe you can leave the sswap binary in /sbin intact because I fear S7/later devices have a 64bit version of that binary. Would you like me to upload my vnswap trees? In my testing you need to add some selinux rules for vnswap to operate, otherwise it will just not work without giving any errors in dmesg :/
[Samsung Galaxy S 5 Unified Development] haoyangw:
Btw, for anyone using VNSwap - Do set vm.swappiness above 100, otherwise it is mostly unused(10-100MB used), which defeats the point. I'm using vm.swappiness=140 and can switch between 3-6 apps with no issues, with Swap use between 300 and 1000MB(max is 1024MB), which I dare say is great for our 2GB RAM. I constantly have at least 400MB free RAM, which leaves enough for a lot of background processes. I do believe our lowmemorykiller can be decreased further though, as there is no need to kill most apps until there's only 200+ MB RAM free. Just my opinion :) If anyone's interested, I can upload a kernel with default vm.swappiness=140
[Samsung Galaxy S 5 Unified Development] pascua28:
Of course the binary is 64 bit. You may not need to add selinux rules, you can execute it as a service and then specify the service's selinux context
[Samsung Galaxy S 5 Unified Development] pascua28:
Yep. Stock behavior is swappiness=130
[Samsung Galaxy S 5 Unified Development] haoyangw:
For those who noticed the new build that I just uploaded(7 Sep), don't download it. Reason is not because of bugs, but because there is no difference from the previous build lol... LOS seems to have stopped actively incorporating security updates for LOS14.1, including the latest security patches(Sep), so my repo sync did nothing. Don't worry though, I'm gonna merge in those security patches myself and then release a new build, so stay tuned! I'm gonna update my semi-custom kernel slightly too, I have some new ideas :) Hint: Some I/O addition
[Samsung Galaxy S 5 Unified Development] LightC:
Thanks for all your work on this ROM and kernel.

Does anyone have experience using LastPass with this ROM? It seems like it keeps forgetting my user credentials and AutoFill settings after every reboot
[Samsung Galaxy S 5 Unified Development] haoyangw:
Oh what I coincidence I do too. What do mean forget user credentials? Like it forgets username and password that you told the app to save? Not sure whether I have the same problem, but I've never had success with its autofill. I always just open the app, copy the password I want and key in everything myself lol.
[Samsung Galaxy S 5 Unified Development] haoyangw:
Hi everyone! Not here for a new update this time, but I promise one soon! Anyway, I've set up a poll(view it in browser, XDA app does not show it) to get some opinion on whether there's demand for newer Android Versions(in optimized mode). Reason is Android 10 was just released on Sep 5, and from the looks of the cm-14.1 repos on LOS, it appears LOS14.1 is no longer maintained. I am fully willing to continue maintaining this ROM with security updates whenever there are real security vulnerabilities being disclosed on Android's monthly security bulletin, however, even if I work on another Android version. But I am actually considering moving on from Nougat! I still love the stability and battery life on Nougat, but I do value security updates and just new additions/fixes from upstream too(I don't like the idea of using a 'dead' ROM/version). I acknowledge [MENTION=7427799]pascua28[/MENTION]'s request for Android Pie a few months ago(oops) haha, and I think he has a point. Perhaps with good optimizations, work is done faster by our CPU and battery life improves? Who knows, there's only one way to find out :)

PS: Yeah, I'll just be frank. I kinda got jealous when I saw Android 10 being released on new devices and I think about my phone being on Android 7.1. LOL Flasholics need those latest changes and features yeah!

Edit: Right I need to keep this on top of my to-do list. Builds for other klte variants coming soon! I'm thinking klteduos, kltekor, kltedv. Any other requests? My sincere apologies for the lack of releases :(
[Samsung Galaxy S 5 Unified Development] pascua28:
Regarding security updates, might try starting visiting Android security bulletin for kernel vulnerabilities
[Samsung Galaxy S 5 Unified Development] LightC:
I typically use fingerprint authentication in LastPass. It works fine initially when I enable FingerPrint authentication as well as all the autofill settings but for some reason the settings do not stick after a force closure of LastPass or a reboot. I haven't had this issue in the prior ROM I was running (RR Pie).

When LastPass is opened after a reboot, it is as if I have never opened the app before with all the welcome intro prompts.
[Samsung Galaxy S 5 Unified Development] haoyangw:
Ah I get what you mean now, I just force closed LastPass myself and yes, when I reopened LastPass app it needed me to re-enable AutoFill, as if it was the first time I was using LastPass. But you do have a misunderstanding, the app was just asking you to re-enable AutoFill only, not re-configure everything(I believe fingerprint authentication should still work, for example). The reason is the AutoFill feature relies on LastPass running an Accessibility Service in the background, and so when you force-stop the app, the Accessibity Service is also stopped, which prevents LastPass from doing AutoFill again. Hence it shows dialogs to teach you to re-enable AutoFill as it doesn't know you have already been taught. To solve this do not force close LastPass at all!! It is not a malware or battery-draining application, you need to just let it be and let it run whenever it likes. I know that sounds bad and scary, as you might think apps are not supposed to run in the background all the time, that' drain your battery, but here's another misconception you have. On Android many apps run in the background like 99/100% of the time, such as your SMS app. But you don't see your SMS app ever appearing on your top battery-draining apps list under Battery, because good apps can keep running in the background, but not do anything until they are supposed to. Battery drain happen when bad apps run in the background and keep doing useless work, causing your CPU to keep running and drain battery. As for why it doesn't stick after a reboot, have you given LastPass the permission to run on boot under Privacy Guard? This is because the Accessbility Service, like many other Android Services, are killed after a reboot, so the app needs to run automatically when your device boots so that the service can be restarted, and let AutoFill work again. I have been using LastPass on my device for very long now, and it has worked properly for me, AutoFill and all. Perhaps you wanna check your Privacy Guard settings? And also any apps like Greenify that might force stop your LastPass app(it doesn't need to be Greenified! Don't worry). Hope this helps :)

Edit: Oh yes, about the forgetting your user credentials part also. When I force stopped LastPass it also logged me out(I was only saved by the 5min grace period that I set in the settings). So just don't force stop LastPass, and it'll be back to normal :)
[Samsung Galaxy S 5 Unified Development] LightC:
Thanks for looking into this. I guess I might need to do a clean install because the fingerprint authentication and autofill settings don't stick when I reboot without forcing closing the app. This appears to be different behavior than what you have experienced in your post.

I'm not running greenify and I made sure to set LastPass not to be battery optimized in the battery settings.

Thanks again for your help
[Samsung Galaxy S 5 Unified Development] vlad3647:
Any one have problem with Bluetooth?
[Samsung Galaxy S 5 Unified Development] haoyangw:
Oh, my apologies I couldn't help :(

What kind of problem? Frequent disconnects?
[Samsung Galaxy S 5 Unified Development] vlad3647:
Nope,I can't connect at all to my car ,but no problem to connect to my headphones

thanks
[Samsung Galaxy S 5 Unified Development] godofsalt:
[MENTION=7081486]Haoyang[/MENTION] You will Keep us in the loop as to you Switching to a Newer Build, Correct?

Q- This New Kernel that you have "Better Multi-Tasking" IS this Only for your Build ? (Only ask, since I believe some changes you have in the Rom, and new Kernel probably work only together)

Q2- When you Make the "Switch" or Jump to a newer Build, Do you plan to make your own Kernel?

OH... Since I Cant seem to change my Vote- here on the Web or through the XDA Lab App, (IT wont let me do that. Just reads, that I have already Voted)

-- I do so Now... I Vote for Pie / Los16 !

Seeing how at this time, there is Only 1 for 15, and 2 for 16

(sorry really did not think it though! Would rather have LOS16 /Pie in lue of LOS15 /Oreo , It does make more cents to Move there, Seeing how they really have stopped work on 15, (which i thought, was not done yet -IMHO))

Ready to Jump too!!!
[Samsung Galaxy S 5 Unified Development] CStadler:
Thanks for your efforts glad someone is interested in optimising roms for S5. Between you and pascua it's made my s5 experience better.

I curious to know, the optimisation you do etc, can that be used with the source code to build other aosp/los roms with the optimisations you implement?
[Samsung Galaxy S 5 Unified Development] haoyangw:
I must apologise again, I cannot test connecting to car myself so I am unable to help with that :( Though I suspect it might have something to do with audio profiles being missing. My guess is, it might have something to do with this Android version being seriously outdated. So sorry again!
[Samsung Galaxy S 5 Unified Development] haoyangw:
Yes! Definitely, I will wait for more feedback before I jump. More votes would be more representative in my opinion. Actually, you all can just reply on this thread what ROM version you want, I don't really mind that kind of discussion :)

Yes, unfortunately because of the nature of my changes for SSWAP, I am only able to implement it on a case-by-case basis. But don't worry! [MENTION=7427799]pascua28[/MENTION] has created a magisk module for use with his kernel that works on most ROMs, try that :)

Of course! A kernel with the same features and more is definitely on my to-do list :) Big reason is cos I use my own kernel as daily driver haha

No worries, I understand. Good reasoning :)
[Samsung Galaxy S 5 Unified Development] haoyangw:
Yes definitely! In fact, none of the optimizations are my idea - I cherry-picked the changes from Github. There are many ROMs, from jelly bean to pie, with these optimizations so yeah, you can apply it to almost every ROM source code, but definitely with some changes(some things just don't like optimizations, gotta workaround them)

PS: Just to make it clear, I'm not biased towards pascua28 or anything, but I just cherry-pick from him because his commit history is neat and he has a mixture of amazing changes that are very convenient and useful. Helps me maximise my limited time :)
[Samsung Galaxy S 5 Unified Development] godofsalt:
[MENTION=5189434]haoyangw[/MENTION] - (Thought I would reply this way... Really don't want to waste space on your Thread!)

Edit..

OK, Glad that you have replied to all those Q's !!! Thank you.

Now, at time of writing...Running the latest Rom w/Your Kernel (at this time, I did the Zip through Recovery) !!! Now One thing i am uncertain about, IS which is "Better" ! Doing a Magisk Module, seems great. But, is the result the same as doing a Zip through Recovery ??

Really do enjoy the work that you have done!!! Am Dam happy someone is honestly doing a great Job! We all know many have jumped to newer Phones, Different Manufactures and such. Have rebuilt a few of the S5's. Seeing I am not spending a House payment on a new phone, which makes me even very happier!!

I will get back to you about, Issues /Problems /Ideas on your Kernel.

(Been only using 2 Different Kernels of Lately. Both of which, have ran really well on LineageOS 15 and 16. As you may tell, Came down here for a smoother running Rom. Both of which, seem to share Issues/problems!)

Awesome work here!

My "Vote" ---Would Love to Move to Pie....Only, IF, YOU were to Build it!