yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Android Development (Snapdragon)] liammendes:
This is where my expertise steps in,

- I am fine with the Mixer Paths as for me personally, is directly the same as in stock. Sometimes I use Audio Mods..... Continue at your own risk.

- The Mic for Google Assistant only works with the following requirements,

☑ That you have a compatible Google Assistant Device - Samsung Galaxy S5 Plus G901F/G906*

is a compatible device

☐ That you have the Latest version of Google - Google Assistant runs on the Google App

✖ That you have your language and/or region set as a Google Assistant Language and Reigon - Try setting your language to English (US) and then it should work

☐ That no other Application is using your Microphone when saying "Ok Google" - e.g. Bixby/ S Voice if appliciable

☐ That your phone is running the latest version of Android by your manufacturer, e.g. 6.0.1 stock - In this case, just make sure your up to date with all of the LineageOS OFFICIAL build put out by [MENTION=3419717]cvxda[/MENTION] (You cannot run the Google Assistant on Android 5.1.1 or below)

- Yes the Google Assistant works, look at the Requirements above

- As to the REASONING behind Encryption failing, I'm guessing here but just listen, Maybe its the way that encryption is implemented on Custom Roms. Maybe Encryption on a Samsung Device requires the Encryption keys to be stored on the Knox Chip itself which Samsung may or may not have released Source Code for, or Device Maintainers don't know how to implement encryption because maybe there is no source code for security reasons..... I have this weird feeling that having a SD Card inserted while encryption or attempting to boot into a Encrypted OS affects the device (I might be wrong though)

---------- Post added at 10:53 PM ---------- Previous post was at 10:01 PM ----------

[MENTION=3419717]cvxda[/MENTION] Quick Question, How do people pull in many commits at once and patch them to a source tree. Sometimes I would see a bunch of patches in review.lineageos.org and I would wonder how do they commit so much at once, surely they don't type 100's of commands for those 20 patches, especially due to the fact that they are usually committed all at once..... I am porting LineageOS to a device and this is one of the reason's I stopped doing Kali NetHunter for kccat6, There are a bunch of patches and I assume the Kali NetHunter Kernel was putting out rejects on patch and not even booting because I missed a few commits,

Right now this is what I do, If I want to get a patch, I download it manually or curl it, I run the patch command, browse the kernel source tree for the .rej file, compare the code using common sense and place rejected code in a sensible place save the file and keep the .orig and also try to build the kernel again.

This is becoming a tiresome process and I think I could be a lot more productive and get a lot more ports and mods done for many other device if there was another way if there is.....

Just look how close these patches are

https://drive.google.com/file/d/0ByDMAv5EZq0JV2tYcl9sQzNyZ3M/view?usp=sharing

all at once.....
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
I'm not going to claim my process is the most effective, but I can guarantee you that you get quicker and better results by getting a firmer grip on using git.

Let's have an example: You have a local kernel tree, which is a clone of your own github tree. Your github tree is the remote tree called "origin" (here's mine):

$ git remote -v
origin	git@github.com:github-cygwin/android_kernel_samsung_apq8084.git (fetch)
origin	git@github.com:github-cygwin/android_kernel_samsung_apq8084.git (push)

Let's assume you want to include patches from Linus' upstream repo. Here's what you do from inside your local repo:

$ git remote add torvalds git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
$ git remote update torvalds
$ git remote -v
origin	git@github.com:github-cygwin/android_kernel_samsung_apq8084.git (fetch)
origin	git@github.com:github-cygwin/android_kernel_samsung_apq8084.git (push)
torvalds	git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git (fetch)
torvalds	git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git (push)

You can now immediately access patches from Linus' repo via their SHA-1:

$ git cherry-pick <sha-1>

This either applies cleanly to your tree, so you're done, or you get conflicts. `git cherry-pick' tells you what's going on and which files have conflicts, so you can just start editing them, fixing the conflicts. Then:

$ git add <files with fixed conflicts>
$ git cherry-pick --continue

That's it. You can add more remote repos as you see fit. You can also cherry-pick more than one patch per invocation (see `man gitrevision'). And there are lots of other useful git commands.

HTH,

Corinna
[Galaxy S 5 Android Development (Snapdragon)] liammendes:
I really really appreciate this, this is really helpful, Right now I am busy with a HTC Device and basically HTC removed the comments from pretty much all of their source code meaning that if I try to patch anything, Everything is a conflict, luckily [MENTION=251708]Patrik[/MENTION] has added the comments back when development was active meaning that I have to now work off of the work that he left off and not the clean source code.

Does any Samsung device have a similar issue causing everything to be a reject?

I really really appreciate this advice and this is probably one of the most important pieces of knowledge you need to know about kernel development so thanks.

If so, the morale of the story is avoid HTC xD
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
All Samsung kernels come without git history, so you can't simply check if a patch has been applied with `git log' or `git show'. You rather have to check the source itself.

The fact that some programmers at Samsung and Qualcomm apply patches manually rather than cherry-picking them from upstream isn't helpful either. Sometimes patches have conflicts just because of white-space differences to upstream.

Naah. Where's the fun if it's too easy? :cyclops:

Corinna
[Galaxy S 5 Android Development (Snapdragon)] brenty108:
Hello. How to I turn off capacitive button lights guys? Ty
[Galaxy S 5 Android Development (Snapdragon)] k2828:
settings/ hardware buttons

[MENTION=8354072]liammendes[/MENTION]

is "audio mods" a spacial app, or do you saying that i should search for.....what exactly? :D i already applied the "stereo" mod and its a bit better.

assistant:

assistant works now. updated to the latest playservice beta via aptoid. few hourslater the assistant was there and got a setup invation. language was still set to german. but have added english us as second language though.

just the option always ok google is greyed out.

encryption:

[MENTION=3419717]cvxda[/MENTION] maybe you should take a look in the lineageos 14.1 build of i9506 s4. there encryption works.

iinstalled a the latest weekly. did a factory reset before. also i found few bugs:

-livescreen dont changes to night mode. when its day or night: after reboot it changes to nightmode for a few seconds and then back to mode.

-"hand wave" feature works but brightness is lower then lowest level

the bug above leads to:

-background light of lcd does not work after display was of. i have to press the power button multiple times to get it working.

if i dont wink. the backround light works normal

-also i noticed that a taping "power down" and "softreboot" leads to a restart, or restart leads to recovery.....

- "do not distrub" seems to also not work

-no adblocker does work: unified hosts, adfree, adblock etc

NEVERMIND. was a magisk error. just flashes supersu. for adaway i additionally just had to enter sentenforce 0 in terminal.

logfile:

http://www77.zippyshare.com/v/M2GtgRdu/file.html

[MENTION=3419717]cvxda[/MENTION] it would be very kind if you could try to boost volume and also give an option to have "stereo"

UPDATED THE WHOLE POST
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
Good news: I fixed the "Ambient Display" brightness problem. "Ambient Display" is the functionality showing notifications in low brightness in doze mode. It can be switched on or off in Settings -> Display.

In doze mode's "ambient display", the kccat6/lentislte display is running in a low-power mode. The downside of the low-power mode is that setting the brightness has no effect. When you touch the screen or the power button, the OS just raises the brightness values, which is ignored by the kernel in low-power mode without the OS knowing. The display stays dark because nothing switches the display back into normal mode.

I created a kernel patch to recognize this scenario and to switch the display back to normal mode, so subsequently raising the brightness actually works and the display is immediately usable, without having to switch the display off and on again.

This fix will be available in the next weekly.

Have fun,

Corinna
[Galaxy S 5 Android Development (Snapdragon)] k2828:
[MENTION=3419717]cvxda[/MENTION] thx for your work. i just updated my privous post. maybe u can find something usefull
[Galaxy S 5 Android Development (Snapdragon)] liammendes:
If you want to enhance the sound of your kccat6 or lentislte device respectively, You can use Modifications like Viper4Android,

What I stupidly done is turned up the value from 84 in the mixer_paths when I had my G901F, I changed it to 100 which distorted the speaker, made it much louder (louder than any other phone) and made the speaker vibrate (I HIGHLY UNRECOMMEND DOING THIS, DOING SO AT YOUR OWN RISK PLZ JUST READ THE WARNING TRUST ME ITS FOR YOUR OWN GOOD.....)

I also just reinstalled lineage and besides the speaker being distorted at 100, the speaker was not damaged at all. You should only change this speaker value in your mixer paths from 84 to around 87, however I only see the slightest of differences and I really don't mind having it at 84 which aligns the sound at around the same volume as different phones e.g. my friends iPhone's etc....
[Galaxy S 5 Android Development (Snapdragon)] k2828:
[MENTION=3419717]cvxda[/MENTION]

i encountered another bug:

if you try to unlock the phine via finger print, it does not recognize ur finger a few times in a row and recognize it finally, the phone gets unlocked but the lockscreens is still active. you have to swipe the lockscreen up to. it should be in the last log
[Galaxy S 5 Android Development (Snapdragon)] Loc2262:
PERFECT! :) I was just about to write a report here about this bug. ;)
[Galaxy S 5 Android Development (Snapdragon)] mdimarucot:
Hi, thank you for this wonderful ROM. I just installed the latest LineageOS, my model is Samsung S5 G906L (CPL2). Everything works fine but there's a problem with battery drain and my phone overheats even my wifi and mobile data is turned off. Much heat when wifi and data are on. I just wanna ask if there's something I can do to solve this issue? Thanks in advance.
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
The fingerprint reader is a bit flaky, so it often doesn't recognize a fingerprint on the first try. I worked around that by storing a fingerprint for the same finger more than once, but even then it often takes two or three times before it recognizes my finger.

Also, doze mode appears to make the reader somewhat sleepy, so if the phone was sleeping for a long time, I often have to press the button first (so I'm on the lockscreen) and then the fingerprint reader kind of wakes up and works again. However, every time my finger is recognized, the phone gets fully unlocked.

Corinna
[Galaxy S 5 Android Development (Snapdragon)] k2828:
is it possible to make the reader always awake?my lockscreen has to be swiped manually unfortunally but only when the fingerprint do not get rcognized after doze and multiple trys and then get recognized finally.

i have one baseband related question. do we have all worldwide availible bands(espacially lte) or do we have to ad mods like this?
[Galaxy S 5 Android Development (Snapdragon)] meloalain:
Hi please i have dôme bluetooth issues on g906s the 21st build
[Galaxy S 5 Android Development (Snapdragon)] Loc2262:
Yeah I can confirm that, my observations show the same.

When on the lock screen, the fingerprint reader works quite well. When the phone is sleeping, much more often the fingerprint is not recognized. So my assumption too is that in sleep mode the fingerprint reader works less reliably due to reduced power. Which is kinda sad, since the fingerprint can, if it works properly, wake up and unlock the device with one operation. :)

---------- Post added at 11:05 AM ---------- Previous post was at 10:56 AM ----------

My first step in such cases is usually trying to find out which app causes the phone to "heat up", which usually means high CPU load. I currently use the following apps to diagnose such issues:

"Simple System Monitor": One of many apps that shows - among other things - all running processes and their CPU usage. Use it to check if an app is running rampant with the CPU.

"CPU Spy Plus": Records the frequency/deep sleep state of the CPU. Run it, "Reset Timers", turn off the phone. Wait 10 minutes, turn it back on, and see if the "Deep Sleep" state shows being active 85+% of the time. If not, some app is preventing the system from sleeping.

"Wakelock Detector Free": Used to record which apps prevent the system from entering deep sleep and how often.

And finally, the OS' own "Battery" stats show what other components (screen, radio, wifi, os) use what percentage of the battery consumption. When the phone is being used, "Screen" should be at the top. If the phone isn't used much, and a specific app is at the top of the list, you have the culprit. Don't worry if "Phone idle" is way up in the list - it's a relative percentage of the total battery use.
[Galaxy S 5 Android Development (Snapdragon)] k2828:
[MENTION=3419717]cvxda[/MENTION] just dirty flashed the latest build. brightness after using the ambient display is as it should now. sadly the ambient display it self is still in such a low brightness that it has to be complet dark so you could see something. is it possible that you add a brighness regulator to the ambient light?

s4 vs s5 ambient display comparison:
[Galaxy S 5 Android Development (Snapdragon)] meloalain:
Hello cvxda please am facing issues using bluetooth in order to connect to my pc. Is there any way it can be get fixed?
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
Maybe, maybe not. It may has something to do with the job priority of the fingerprintd daemon process. There's another device in the LineageOS tree which uses a kernel hack to make sure fingerprintd always runs with max priority when the screen is switched off. I can try the same hack but it's no safe bet that it fixes the issue for our devices.

No, we don't. The band selection depends on the device. See the wiki pages for kccat or lentislte. You have to use NVRAM hackery to add more. There's also no guarantee that all bands you desire will work. Especially lentislte seems finicky. I didn't manage to get LTE working in Europe, even though the bands are supposedly supported. Maybe there's some kind of SIM lock only affecting LTE in my G906S device :(

Corinna
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
No. Did you read my description?

Corinna
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
Without any details? Nope.

Corinna
[Galaxy S 5 Android Development (Snapdragon)] meloalain:
Its ok thanks for your response. I had to wipe cache.
[Galaxy S 5 Android Development (Snapdragon)] k2828:
Thats great good luck!

i have the g906k model and had lte a few hours ago i gues. will keep an i on that.

jein :D so you sayin:"its not a bug, its a feature!" ?

i got it. so in "Battery/Battery saver and performance" i have to set my "Device performance" to "Performance" ? if its only that its not working. still low brightness. or do i have to also/just set an app/service in "Battery/battery optimization" to "not optimize"? if yes which app exactly?
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
Nope, doesn't help. It seems the problem is elsewhere and needs more debugging. So, sorry, no quick solution here.

The big problem is that it's really hard to get hands on a G906S/K/L. On Ebay lots of people sell G900 as G906, either because they don't understand the difference, or probably because the technical data sounds better so they have more hope to sell. Real G906 are super-rare, it seems. How did you get yours?

Stop right here. The LP display mode has nothing to do with the device performance settings. You just can't change the brightness in LP display mode, full stop.

That's what's different on S4 (jflte) and S5 (klte): They are using an older display driver which doesn't support the LP mode, so they just go with low brightness in doze mode. And *that* can be easily tweaked in device settings.

The only way to get more brightness in ambient display is to make sure the display is not using LP mode at all. There's a way to do that in the apq8084 kernel as well, but I'm not quite willing to sacrifice LP mode for a slightly brighter ambient display. The idea of ambient is that you see a kind of shadow of what's there. If you want to see details, just touch the display once.

Corinna
[Galaxy S 5 Android Development (Snapdragon)] k2828:
thx anyway.

thats exactly what i thought. but then every 5th seller would be i scammer. i think the ebay auto device suggestion plays a role and then the average smartphone use isnt smart enogh to notice that mistake..

from ebay. search for galaxy s5 g906 and set the articelposition to worldwide. now you are gonna see devices sold in south korea. almost the same price,or cheaper then in germany. you just have to consider the "einfuhrumsatzsteuer" on top of the price(includnig cargo cost).

i gues lp mean low power?

ok so your sayin that doze mode have to be running but then you could tweak brighness(of the lockscreen)? if yes where can i find that setting?
[Galaxy S 5 Android Development (Snapdragon)] Kernle 32DLL:
Oh boy. I can confirm the fix for the Ambient Display with the 28.07 build [MENTION=3419717]cvxda[/MENTION]. Thanks a lot, that bug was so darn annoying!
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
That's exactly how I found my G906S, but there's really only a very limited number of G906 available. I wonder if my phone's LTE is just broken, somehow :confused:

Yes

No, I didn't say that. tl;dr: apq8084 kernel uses LP mode -> No brightness setting possible.

Corinna
[Galaxy S 5 Android Development (Snapdragon)] k2828:
That could be the case. i will check if i have lte the next few days.

i now i got it. i work with chargin stations so i can live with LP off for the display. do you have a link/tutorial what to mod in that kernel do disable lp for the display?

also is it possible to add another sim tray to the g906? the mainboards ̶l̶̶o̶̶o̶̶k̶̶i̶̶n̶̶g̶̶ ̶̶i̶̶d̶̶e̶̶n̶̶t̶̶i̶̶c̶̶a̶̶l̶. the solder points for the second tray are also there. only the socket is missing.

S5 Mainboard

S5 Duos Mainboard

Also the software seems to be integreated in LOS cause it states Card 1 as there could be also a Card 2
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
No kernel patch required with the latest kernel sources. Just change config_screenBrightnessDoze in the device repo to a value > 1. Klte uses 17 here.

I have no idea.

Corinna
[Galaxy S 5 Android Development (Snapdragon)] k2828:
[MENTION=3419717]cvxda[/MENTION]. im at the trainstat and have lte. i did some research and and found out that the only lte frequenze missing is the 800 mhz which only should matter in rural areas. so unless u arent in a rural area the phone could have an hardware/software error.
[Galaxy S 5 Android Development (Snapdragon)] phamanhvu01:
Did you try setting your carrier's APN configuration? My lentisltektt only gets to work with LTE (on LOS) if I manually set the APN....
[Galaxy S 5 Android Development (Snapdragon)] phamanhvu01:
Also, I've found a way to make the speaker sounds louder by editing the mixer_paths file in /system/etc. Simply open the files, change the "RX7 Digital Volume" value, located in the bottom part of the file (like in the pic) from whatever it is to a higher value.

For anyone who wants to enable stereo speaker, add this line before the one I mentioned earlier. Make sure both are aligned correctly:

<ctl name="RX1 Digital Volume" value="87" />
[Galaxy S 5 Android Development (Snapdragon)] Anestis123:
Easy to flash as the other custom roms

not a bad rom but it have some issues : when the wifi is open consumes too fast the battery

, you can not save a message without sent it

Calendar is not easy to use
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
I'm living in a rural area, but I did test it in the next big town. My kccat6 gets LTE, the lentis doesn't.

In terms of the 800 MHz band, I enabled it in the lentis NVRAM, but to no avail.

The hint with the APN is interesting. I just found that the APN wasn't set, in fact. Setting it didn't change the reception, unfortunately, but I can try again in "big town" next week.

If that all doesn't work I guess I try to fetch another lentis for testing. Not the cheapest solution, but, whatever.

Edit: Maybe it's something in terms of lentisSKT vs. lentisKTT? Does the SKT have some provider locking in the NVRAM, perhaps?!?

Thanks,

Corinna
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
I get the part about tweaking RX7, but I don't understand the one about RX1. The "RX1 Digital Volume" entry is already in mixer_paths.xml...

Corinna
[Galaxy S 5 Android Development (Snapdragon)] phamanhvu01:
To be honest I dunno about the difference between both models.

Mine was pre-unlocked when I bought it from a local retailer...

And, crap, I forgot that in my case, I have to go to the APN setting and DELETE all the APNs inside there, then add the APN configuration for your carrier's LTE band. I guess? (check the first and second pic)

Then set the preferred network type from 3G to LTE (before that APNs menu). And with luck, it should go from (third pic) to (last pic). Yay. XD.

~Pham Vu
[Galaxy S 5 Android Development (Snapdragon)] phamanhvu01:
It is for you? For mine it's not there when I look at it. Or it's just my memory messing with me again....I'm sure it's the first one tbh...

Anyway that entry is responsible for the volume of that tiny speaker on top of the phone, so if you want that speaker to work when you play music, you have to add the line I put above right under or on top of the RX7.... -ps plox don't add it to the nightly build, i only post it here for people who want the stereo mod...-

And for the RX7 value, I found 81 to be the optimum ones. Should be loud enough without risking getting the speaker broken...

~Pham Vu
[Galaxy S 5 Android Development (Snapdragon)] jhony benitez:
If we change voice rec to True, will be available in the native call application the option for recording calls?

Enviado desde mi SM-G901F mediante Tapatalk
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
It's not for me alone, it's there for everyone etc, blah blah.

Nonsense. You were talking about the speaker entry, I didn't notice that, sorry.

Corinna
[Galaxy S 5 Android Development (Snapdragon)] MaierHermi:
Hi, can I use this rom also for my Samsung Galaxy S5 - SM-G900F ?

Please confirm before I install it.

Thank you.

Br,

Hermi
[Galaxy S 5 Android Development (Snapdragon)] phamanhvu01:
It's for the kccat6 and the lentislte only. Use the one from here: https://download.lineageos.org/klte

~Pham Vu
[Galaxy S 5 Android Development (Snapdragon)] MaierHermi:
Thank u but is there also any stable version available?

And where can i find a thread for my version?
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
https://review.lineageos.org/#/c/179536/

Corinna