yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] Mynacol:
This isn't a strange question, I am always keen to activate/use such a feature. Unfortunately, this Android 4.4 based ROM hasn't such a feature inbuilt, this does mean you have to use an app for this. Simply search for "blue light filter". The most famous app is called Twilight.
[Galaxy S 4 i9505 Original Android Development] Poochini:
Hello. Thanks for infromation. I`ll test this app.

I found one problem - bluetooth. It`s disconecting from car handsfree, also when I use bluetooth speaker :(

I test f.e. 6.0.1 by Side and bluetooth is working well. 4.4.4 is closed topic for this problems?
[Galaxy S 4 i9505 Original Android Development] Lenny Bard:
I made a test, I don't know if it's correct but it's looks like to works
[Galaxy S 4 i9505 Original Android Development] side:
that is my kernel.not the official lineage os kernel.i didnt mean that but its ok :D since u built it ,its urs :D how it goes on 4.4 ? never tested
[Galaxy S 4 i9505 Original Android Development] Mr. Lokkevit:
The rom has LiveDisplay built into it, if I'm not mistaken.
[Galaxy S 4 i9505 Original Android Development] grzwolf:
You may check posts:

https://xdaforums.com/showpost.php?p=72524694&postcount=84

https://xdaforums.com/showpost.php?p=72931426&postcount=89
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Recently there had been two security patches regarding bluetooth.

You may try out an older build, before these patches were applied.

https://www.androidfilehost.com/?fid=745425885120732937

or

https://www.androidfilehost.com/?fid=745425885120722990

That info would help.
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Cool.

I made the same good experience with a stock LineageOS Kernel from a 14.1 ROM, just replaced its ramdisk with the one taken from 11.0.

https://www.androidfilehost.com/?fid=889764386195915686

If your experience holds for few days too, I would update the OP accordingly with such good news.
[Galaxy S 4 i9505 Original Android Development] Lenny Bard:
I chose your kernel to have more choices in CPU governor etc .. It's not mine I've just copy/paste folder, I'm not a developer !

The kernel is perfect on Kitkat, no problem.
[Galaxy S 4 i9505 Original Android Development] side:
yea mate no problem :) i am ok about it.just give the proper credits IF you ever release it
[Galaxy S 4 i9505 Original Android Development] aka70:
hi guys, my battery health not good and i have lost alot battery in stock 4.4.2 & 5.0.1 roms, i think cm11 can help me , Do you think this rom can help me for a good battery or which rom or combination you advise ?

sorry for my bad English.
[Galaxy S 4 i9505 Original Android Development] Mynacol:
Probably, your battery is more or less broken. LOS 11 can slightly improve your battery usage but it won't do wonders.

For example, I achieved a state when my handy was new that while listening music through headphones I lost less than 1% per hour. Today, software can't recover this and even the replaceable battery can't achieve this again
[Galaxy S 4 i9505 Original Android Development] Poochini:
Thanks, I`ll gonna test both of them.

Is there any chance to work on bluetooth driver?
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Sure, I just wait for your input, which of the ROMs works well .

And a logcat would be helpful --> https://xdaforums.com/showpost.php?p=72200390&postcount=72.
[Galaxy S 4 i9505 Original Android Development] grzwolf:
LOS 14.1 Kernel for the LOS ROM 11.0 S4

It turned out (thanks to side), the LOS 14.1 kernel works in conjunction with LOS 11.0.

Just a small modification to its ramdisk was needed.

Benefit:

Security wise the LOS 14.1 kernel is much more advanced compared to the LOS 11.0 kernel.

Download via OP
[Galaxy S 4 i9505 Original Android Development] Poochini:
Hello.

Both of them have problem with bluetooth :( (crashes, ect). In incomming days, I`ll try do do logs.
[Galaxy S 4 i9505 Original Android Development] side:
i am working on BT sources.stay tuned
[Galaxy S 4 i9505 Original Android Development] grzwolf:
With what 4.4.4 ROM version did it work for you?
[Galaxy S 4 i9505 Original Android Development] Poochini:
I test all of them, usually there is a problem with disconnecting in with car or bluetooth speaker.

In stock / 5.1.1 BT is working well. Even in 7.1.2.

4.4.4 is good rom for me, works: camera, Wifi, GSM, minimal battery drain. Only BT is having issues.
[Galaxy S 4 i9505 Original Android Development] makaholic:
I currently using SGH-M919 on your latest rom and working like a charm with exposed framework. I always been a fan of kit kat, the newer roms just don't cut it. I want to give thanks to your hard work in keeping kit kat alive and up to date with ASB security patches. :good:
[Galaxy S 4 i9505 Original Android Development] JerwinSayat:
Is HDR mode not working in this rom? Or its just mine. After capturing in HDR mode it stucks on loading animation and after that I cant connect to the camera. A reboot fix it. Inform me for logs if it is a bug. Thanks! Great work btw :good:
[Galaxy S 4 i9505 Original Android Development] grzwolf:
If you write up a concise recipe step by step, I would link it to the OP.

Confirmed, HDR breaks after a few images with stock camera for me too. So I already have logs to play with ...
[Galaxy S 4 i9505 Original Android Development] grzwolf:
New build is up:

ASB 2017-08-01 security patches

Link to be found in OP
[Galaxy S 4 i9505 Original Android Development] side:
enable those at your camera app overlay at device tree:

<!-- Restart preview for back camera onPictureTaken -->

<bool name="back_camera_restart_preview_onPictureTaken">true</bool>

<!-- Opens back camera using openLegacy() -->

<bool name="back_camera_open_legacy">false</bool>
[Galaxy S 4 i9505 Original Android Development] Belgas14:
Side you're a god ! Thank you
[Galaxy S 4 i9505 Original Android Development] side:
i dont know if those change will fix it.although with some logs i am sure i can fix it....

[MENTION=1622467]grzwolf[/MENTION]

grab my wrapper too

https://github.com/JDCTeam/android_...mon/blob/opt-cm-14.1/camera/CameraWrapper.cpp

you may have a better luck
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Short heads up.

A simple takeover of the tips from side breaks the 11.0 build, so some additional tweaking is needed.

Will take some time ...
[Galaxy S 4 i9505 Original Android Development] side:
Show me the error of build
[Galaxy S 4 i9505 Original Android Development] grzwolf:
...

device/samsung/jf-common/camera/CameraWrapper.cpp:86:1: error: 'camera_module_t {aka camera_module}' has no non-static data member named 'open_legacy'

...

Your CameraWrapper.cpp is more advanced compared to its los11.0 counterpart.

I'm currently kdiffing both, no worries - that's the kind of stuff making this subject interesting.

Edit:

The fail above and similar ones could be easily fixed. Build is now ok ...

... but HDR mode disappeared from the options.

Would have been to nice, if it were working such easy.

Reverting to los11 wrapper + config brings HDR back, oc still unstable.

More work to do, not now - good night for today.
[Galaxy S 4 i9505 Original Android Development] Jelges:
Thank You all for making this build possible. I have recognized the cLock Widget does not work. It does not receive data through any weather provider. Would it be possible to fix it?
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Actually you could help. With what 4.4.4 build did it work?

You may try out older ROMs from here (let's say the Nov 2016 build) and see, if the function you are missing is back.

That would allow to narrow down the root cause, because then one of the recent security patches could be reason.
[Galaxy S 4 i9505 Original Android Development] grzwolf:
HDR issue

The failure happens in all combinations of ROM-LOS11.0 (dalvik / art) + stock kernel / LOS-Kernel14.1.

It looks like, as if the HDR preview thread won't stop at the moment, when a picture is taken.

The logfile contains 3 successful image captures, the 4th attempt let's the camera app freeze.

This failing 4th attempt doesn't save an image.

It rather generates an error message on line 5796 "E/mm-camera-intf( 225): mm_camera_poll_fn: MM_CAMERA_CH_EVT_STREAMING_ERR", which is an anomaly.

This logfile entry comes from a method in "/system/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm-camera-thread.c" line 273.

This method was called by method "mm_camera_poll_thread(..)" in the same file.

Here I lost track, which method was calling the latter.

Logfile line 5849 shows "W/InputMethodManagerService( 624): Got RemoteException sending setActive(false) notification to pid 3276 uid 10038", which could be the smoking gun.

--> "system\frameworks\base\services\java\com\android\server\InputMethodManagerService.java"

Anybody with deeper inside knowledge, who could help here? side?
[Galaxy S 4 i9505 Original Android Development] side:
https://github.com/LineageOS/androi...mmit/a0b55f2d8f47732902d874d582389366c26fe758

i would try this one...

if that fail i would merge that one too

https://github.com/LineageOS/androi...mmit/70381c33dd5dc44892293201494f324f479a01c8
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Short heads up:

Patch set #1 does compile and runs on LOS 11.0, but doesn't fix the HDR freezing after a few images.

To be continued with patch set #2 ...
[Galaxy S 4 i9505 Original Android Development] grzwolf:
No luck.

Patchset #2 (it's rather a complete camera2 replacement) compiles & installs, but doesn't fix the issue either.

Now, since the camera sources are LOS14.1 anyway, I'll takeover further recent patches.
[Galaxy S 4 i9505 Original Android Development] Lenny Bard:
SideCore kernel from here adapted for LineageOS 11.0. I removed SideCoreAudiutor, not compatible with kitkat.

Download

All credits to [MENTION=5968293]side[/MENTION]

I also made a zip for people who want to have Xposed framework, it will flash three files from an old cm11 build : bin/app_process, lib/libandroid_runtime.so and lib/libdvm.so.

After flashing Xposed_fix.zip just install the framework with the official installer.

Download
[Galaxy S 4 i9505 Original Android Development] side:
Thanks for that mate. Nice work done!!
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Again bad news:

Even taking over the 14.1 sources https://github.com/LineageOS/android_hardware_qcom_camera to LOS 11.0 doesn't fix the HDR instability. The camera works well in normal mode - but HDR still freezes after a few images.

I attached the logcat (contains 1 successful HDR capture and a 2nd failing one).

The xls compares "good" and "fail" line by line.

The first anomaly (line 20) shows "E/mm-camera-intf( 4303): mm_camera_poll_fn: MM_CAMERA_CH_EVT_STREAMING_ERR" , which is generated in mm_camera_thread.c.

Big question - why?

Update :

Built both Camera2 apps (straight & msm8998), same behaviour in terms of freezing HDR.

I've run out of ideas.
[Galaxy S 4 i9505 Original Android Development] thedeceivingeye1:
Awesome! I can't believe people still support a gem of a rom like this after so many years. Will definitely try this and report back the results. Hopefully this has good battery life.

I'd love to support GS4 rom development, but I'm too new to some aspects of these topics. I guess I'll have to wait and learn.

Update: Wifi, signal, etc are all fine, I could even make calls, but I couldn't send messages. The preferred mode was set to 'global,' which was the only network mode with a usable signal. Oh well.
[Galaxy S 4 i9505 Original Android Development] side:
[MENTION=1622467]grzwolf[/MENTION] when i find some time i will try to make this **** work mate.promise :)
[Galaxy S 4 i9505 Original Android Development] commandervadeo:
After using snapchat it seems the camera still runs in the background after closing the app and i need to restart my s4 and my battery drains faster. If I need to uplaod a logcat just tell me how
[Galaxy S 4 i9505 Original Android Development] grzwolf:
New build is up:

ASB 2017-09-01 security patches

Link to be found in OP
[Galaxy S 4 i9505 Original Android Development] mohamed786:
[MENTION=1622467]grzwolf[/MENTION] [MENTION=5968293]side[/MENTION] it might be helpful if you fetch some info on how did you do that [reg. ASB] ! i need same thing for my device to..

am also needed to update my los11 security patches to 01-09-201 7 ! help me to avail that on mines device too!!

Update [It May be help for those people who want to google[googling] regarding how to Update Android Security Bulletins To Latest Patch On LOS]:

"How To Update Android Security Patch [ASB] level to newer patches on Lineage Os answered by [MENTION=1622467]grzwolf[/MENTION] ! available Below "
[Galaxy S 4 i9505 Original Android Development] grzwolf:
1. Build environment

Assuming you have setup a working build environment for your device according to http://www.lineageosrom.com/2017/01/how-to-build-lineageos-rom-for-any.html.

2. Already merged patches by LOS

Make sure, your local repository is synchronized to https://github.com/LineageOS (aka "repo sync").

This would bring your local repository up to the state of https://review.lineageos.org/#/q/status:merged+branch:cm-11.0.

3. Take over not yet LOS merged patches to your local reopsitory

Just go to https://review.lineageos.org/#/q/status:open+branch:cm-11.0

Open a patch set, look for the 6 digit Change number and repopick the relevant change from there.

A sample: "<user>@<yourmachine>:~/android/system$ repopick 192011" <-- this would apply to one patch

Note: Patches in "status open" are not yet approved by LOS.

Repeat the "repopick xxxxxx" for all patches needed according to the patch level you are interested in.

Keep in mind a requirement cited from ASB:

"Devices that use the 2017-10-01 security patch level must include all issues associated with that security patch level, as well as fixes for all issues reported in previous security bulletins."

4. Build ROM

Good luck!
[Galaxy S 4 i9505 Original Android Development] mohamed786:
Tq ! Very Much Dude ! Your'e a Good Soul To Humanity ! Gonna Try this:good::good::good::good::good:!

Edit: Will You Pls Post the List Of repopick you have done for 01-09-201 7 ASB[Android Security Bulletin]....
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Your asking for providing a list of repopicks, lets me doubt. You sure, you understood the workflow?

"repo sync" + take over all patches from from https://review.lineageos.org/#/q/status:open+branch:cm-11.0 and you are even up to ASB 2017-10-01.
[Galaxy S 4 i9505 Original Android Development] mohamed786:
Yeah ofc I understand ! I asked just for reference ! That's it !
[Galaxy S 4 i9505 Original Android Development] grzwolf:
New build is up:

ASB 2017-10-01 security patches

Link to be found in OP
[Galaxy S 4 i9505 Original Android Development] aeon senpai:
Very snappy rom though i have yet to test it on games. Btw how to enable root? Need it in my titanium backup. Thanks
[Galaxy S 4 i9505 Original Android Development] Mynacol:
Try to enable root for Apps inside of developer options
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Extra build is up to fix to WPA2 KRACK vulnerability. https://www.xda-developers.com/wpa2-wifi-protocol-vulnerability-krack/

Link to be found in OP
[Galaxy S 4 i9505 Original Android Development] NokiaBricks:
Hi OP,

I've been having severe troubles with my S4 for the last 6 months now, I'm on the brink of going crazy so after some deep googling for the last two weeks, and reading up on XDA regarding ROM's etc, I have definitly settled on flashing a clean OS onto the phone as a last ditch attempt to keep it going! (as ive had it for so long)

I use the phone for GPS/Waze about 10 hours a day non stop every day and for the last six months I've been driving around with the ventilation on full blast cold to keep it cool because it shuts down all apps every 5 minutes including Waze due to overheating. I've updated all apps, restored phoned, upgrade android, got a new battery EVERYTHING!

So over the weekend I want to flash the phone but I can not seem to settle on the best "CLEAN" ROM to go for!

I have found original "PLAY EDITION" version of android but then I have also seen this latest updated of Linage OS.... Which one would you recommend? It must work 100% with GPS and Waze without troubles. The version I pick MUST be 4.4.4 as I believe this was the lightest android made that is reasonably modern. The phone currently has 5.0.1 from OTA and it SUCKS! (I think its the route of the problem but just a guess.)

Thanks man!
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Honestly spoken, I don't know. I have no experience with WAZE, but a a couple of user feedbacks indicate heavy battery drain / power consumption. Not clear, if this could be fixed by installing another ROM. You won't know, unless you give "PLAY EDITION" or this ROM a try.

Good luck.
[Galaxy S 4 i9505 Original Android Development] NokiaBricks:
Thanks for the reply :)

Can you explain what the difference between play edition and linage OS is anyway? More features?

Thanks again!
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Play Edition is imho not maintained anymore, so outdated, perhaps years.

This rom is from a security standpoint up to date.
[Galaxy S 4 i9505 Original Android Development] Nesh89:
in all honesty, your best bet is to try this rom.

This is my every day rom, for a very long time, if it gets buggy, all i do is make a nandroid backup, whip my system clean and re flash the rom, and only restore my data.

And i keep every thing that way.
[Galaxy S 4 i9505 Original Android Development] Buff99:
How can the same logcat come out of every ROM you have posted to?
[Galaxy S 4 i9505 Original Android Development] side:
:laugh::laugh::laugh::laugh:
[Galaxy S 4 i9505 Original Android Development] aeon senpai:
I dont know what seems to be the problem but my games suddenly cant connect to their servers after i installed this rom. For instance, world of warships blitz cant connect to server. Also UC browser. Ut just cant download files directly. It keeps on retrying and retrying until it failed download. I hope there's a fix for this because aside from that i dont have any problems with this rom
[Galaxy S 4 i9505 Original Android Development] grzwolf:
New build is up:

Since there had been no Kitkat/4.4.4 relevant patches on ASB 2017-11,

the new build contains updated KRACK-issue patches.

Link to be found in OP
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Bad news

It seems, beginning from November 2017 AOSP stopped providing security patches for Kitkat/4.4.4.

Good news

A few enthusiasts check security patches intended to be applied to 5.x versions of Android, regarding their relevance to Kitkat/4.4.4.

In a number of cases 5.x security patches could be taken over, which allows to keep Kitkat/4.4.4 alive in terms of security issues.

Note

The ROM stock browser is removed due to severe security issues.

Get a state of art browser (like firefox) from play store instead.

Link to be found in OP
[Galaxy S 4 i9505 Original Android Development] Belgas14:
You can only apply security patches to 4.4 ROMs, what about 5.0.1 LL ? Thanks for your work!
[Galaxy S 4 i9505 Original Android Development] grzwolf:
Correct, I only care about KK due to personal preferences.

It would take quite some dedication to keep LL alive. The LL LOS sources miss all security patches of the past year.

Perhaps a challenge for you?

You could take this as a coarse how to do it. (replace i9100 with jflte and cm11.0 with cm12.1)
[Galaxy S 4 i9505 Original Android Development] fereea:
The last time and also the first time that i have tried this rom, my recovery wasn't compatible with this rom!

I using Official TWRP Recovery v3.1.0-0 for jfltexx from here:

https://dl.twrp.me/jfltexx/

Works better now with the recovery?
[Galaxy S 4 i9505 Original Android Development] grzwolf:
My version of TWRP is 3.0.2-0 and works w/o issues. Otherwise go for a clean install.
[Galaxy S 4 i9505 Original Android Development] Snokerzx:
Hi grzwolf,

just a question, is this Rom working on a i9505 jfltexx?

Thanks for your hard work.
[Galaxy S 4 i9505 Original Android Development] fereea:
I have i9505 jfltexx and i have bootloops (other roms from jdcteam works perfect). I think, my recovery isn't good enough for this rom. you can try on your own risk. Succes!
[Galaxy S 4 i9505 Original Android Development] grzwolf:
My phone is a gt-i9505 = Samsung Galaxy S4 International Qualcomm = jfltexx and runs this ROM fine.

The phone's TWRP version is 3.0.2-0.
[Galaxy S 4 i9505 Original Android Development] Snokerzx:
Thanks, works great.
[Galaxy S 4 i9505 Original Android Development] grzwolf:
New build is up:

ASB 2018-01-01

Link to be found in OP
[Galaxy S 4 i9505 Original Android Development] makaholic:
Thanks for keeping kit kat alive, its working lovely with xposed framework. Keep up the good work my friend.:good:
[Galaxy S 4 i9505 Original Android Development] Roberto W.:
got a question for this rom. air gesture feature is not implemented?
[Galaxy S 4 i9505 Original Android Development] Nesh89:
thank you for one more update and keep this OS alive.

Hope you make a cm12 with the same effort one day.

I have bin using your builds as my every day rom since your first release.
[Galaxy S 4 i9505 Original Android Development] Indha Lezzio:
Hi, would the rom boot in a i9515?

Hope so! Cheers!

Enviado desde mi SM-G925F mediante Tapatalk
[Galaxy S 4 i9505 Original Android Development] Nesh89:
i think this 9515 and 9505 have similar hardware, you maybe need to change some scripts in build.prop and meta-inf, replace the every thing that says 9505 with 9515, and where it says jflte to your device version.

Don't take my word for it, wait for the dev tho.
[Galaxy S 4 i9505 Original Android Development] Mr. Lokkevit:
I belive it also requires a kernel specifically for the i9515.
[Galaxy S 4 i9505 Original Android Development] makaholic:
Youtube not working

It seems that just recently youtube has been giving me an error "Unfortunately, Youtube has stopped". I tried to wipe delvik cache and cache via twrp, cleared app data, tried different versions and nothing works. I was wondering if anyone else using this rom is experiencing this issues. Thanks
[Galaxy S 4 i9505 Original Android Development] Indha Lezzio:
Forget YouTube and install newPipe!

Enviado desde mi SM-G925F mediante Tapatalk
[Galaxy S 4 i9505 Original Android Development] Nesh89:
yes I'm experiencing the same issue.
[Galaxy S 4 i9505 Original Android Development] grzwolf:
New build is up: ASB 2018-02-01

Link to be found in OP
[Galaxy S 4 i9505 Original Android Development] Leone/kyleproxx:
How good is this ROM

Performance and Battery lifw