yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] ytgbg:
As always thank you for the comprehensive answer and clearing up a lot of thinks that were not clear to me (and maybe to a lot of us non-devs)!

Also thank you for your hard work and dedication to improve our ancient but capable device on every possible level (camera, sound, performance, etc.) and your efforts on bringing up Android N for us are epic.

Cant wait to try your kernel magic with AOSPA 7 on LG G2!
[G2 Android Development] GalaticStryder:
Can you logcat bluetooth A2DP (sound) on BETA 5 on CM14 to compare against my findings? That would make a lot of help, I just need a logcat to compare where the channel propagates on CM and where it does on my HAL. Then I'll be able to try fixing it more accurately.
[G2 Android Development] ytgbg:
Mate, I had to revert back to MM as the non working camera on N did bring me some inconvenience on several occasions when I needed working camera in my everyday life and I could not bare that anymore...

But I hope some of the users here could help seeing this post!
[G2 Android Development] TSLNL:
Only the source code is available as download for Infinito Beta 5 MM... Or are the builds still compiling?
[G2 Android Development] android extreme:
[MENTION=6175749]GalaticStryder[/MENTION] there is a way to enable the sdcard clock scaling control without synapse? Maybe a string through the terminal emulator?
[G2 Android Development] GalaticStryder:
Yes.

Enable:

echo 1 > /sys/devices/msm_sdcc.1/mmc_host/mmc0/clk_scaling/scale_down_in_low_wr_load

Disable:

echo 0 > /sys/devices/msm_sdcc.1/mmc_host/mmc0/clk_scaling/scale_down_in_low_wr_load
[G2 Android Development] I_am_Groot!:
I've flashed the latest crDroid experimental build with BETA 5 and played music on a mobile speaker via Spotify. Hopefully this will help.
[G2 Android Development] love4k21:
I tried beta 5 for marshmallow. It works but if I turn on WiFi I get a reboot.

I hope these logs will help you!

I am on cm13 snapshot form 8/20

Thanks
[G2 Android Development] GalaticStryder:
Thank you, that's a lot of help.
[G2 Android Development] BaschtlWaschtl:
Hi, I'm on latest dirty unicorns and want to try this ib5m kernel.

Does it work with dirty unicorns 6.0.1 and is it enough to backup boot in twrp if I want to go back to stock kernel?

What's about the issue cod. 003? Is it solved?

Thx in advance.
[G2 Android Development] GalaticStryder:
Yes, it's enough backing it up.

The issue cod. 003 was mitigated in BETA 4.
[G2 Android Development] berezker:
Just a suggestion.

Can you make "Swipe to Sleep" disabled by default?

It's really irritating when playing games.
[G2 Android Development] android extreme:
I've noticed a strange thing: when i flash latest beta 5(but this happened in the past with other release) on aicp (05/10) the virtual machine setting were completely messed up. This issue happened also on other g2 that have tried to use this combo(aicp+lambda kernel)?
[G2 Android Development] Davido_96:
I have problem with fast charging, yesterday i had 1600mA in Ampere app, but today i have 300. Whats wrong
[G2 Android Development] khanjui:
Many things are effecting the charging rate. Battery, CPU, SoC temperatures for example. Nothing is wrong if there is no damage on your charger or cable.
[G2 Android Development] ig_df:
I don't understand why don't we have the latest beta 5 on ls980 for 6.0.1. What's the problem?
[G2 Android Development] _FroX_:
Where is Beta 5 in general? I don't see any link...
[G2 Android Development] ig_df:
https://github.com/GalaticStryder/kernel_lge_msm8974/releases

Here.
[G2 Android Development] Floodland:
After some days I can say Infinito Beta N5 for MM is providing incredible battery juice and performance with latest MM RR. Amazing job!

With this quality development it will be hard to find the will to try any Nougat for at least some time... (Long life to Marshmallow!)
[G2 Android Development] ig_df:
Wanna try this kernel too, but i don't understand and also want repeat my question, why don't we have the latest beta on ls980?
[G2 Android Development] Lawlrus:
[MENTION=6175749]GalaticStryder[/MENTION]

No, to the best of my knowledge, we don't have what's needed in the frameworks to make it happen.

Not that I can prove it or anything
[G2 Android Development] OT-Xtreme:
sweep2wake will be amazing thing to have, also pretty unique
[G2 Android Development] android extreme:
Try to set zzmoove as default governor and set the profile_number on 9, then go to gpu setting and use as governor msm-adreno-tz activate the Simple gpu algorithm sert the ramp thredsholt to 6 and disablethe adreno idler. Don't mess to sert the zen scheduler to zen and use 128-256 kb of buffer cache. For the battery life don't worry on exodus i get easily 6 hour of screen on time with high web usage and playing to some high end graphic games(without any lag)
[G2 Android Development] salmankhere:
M stuck at sound mod.how to enable loud sound in synapse. I have tried it in sound setting but always it revert back to stock any help please?
[G2 Android Development] Lawlrus:
Edit your mixer paths.
[G2 Android Development] salmankhere:
I have edited it with root browser value set 75 but sound's like creepy .... Just one more question is it necessary to use synapse to set the sound value ?? Or just mixer path is enough?
[G2 Android Development] GalaticStryder:
You shall not do anything in mixer paths file, it is shipped the way it should be, there are hundreds of people in CM review watching this device, if anything could be improved they would do for sure. As far as I can see, these sound issues are LG LP business and also affect their ROMs. I'm patching Faux sound to match Dorimanx audio solutions but it takes more time since I'm using the updated version for this driver. Next release will have all patched (I'm testing those changes right now) in terms of sound. Synapse did the job just fine for me on speakers and headphones, calling is also clear as I tested. Although we should not rely on this app that much since is quite outdated in many aspects. Adiutor can't control Faux driver but the official app still can be used. You just need to set Quality preset in it and then level up the Digital Output Gain the way you wish... At least for now that's the recommendation to get a better sound experience until next update.

Enviado de meu LG-D802 usando Tapatalk
[G2 Android Development] Trixanity:
I've been messing around with the audio settings a bit. So far the problem is that settings don't stick. I've tried disabling kernel adiutor but no luck.

Changing gain can remove hiss but can also introduce audio distortion. I don't think the gain settings are granular enough or rather, I think other settings need to be changed either instead of or in addition to gain.

I concur with the audio problem originating with LG and not a product of CM or AOSP. I'm still not sure if it's entirely a software problem or if a hardware problem exists as well. I know that software can at least mask any such hardware problems, since Dorimanx has fixed it on his end, as I mentioned earlier.

So I can only urge users not to point any fingers at the devs. They're doing what they can and it's apparently a hard problem to solve (I mean LG haven't solved it and it's their stuff) and I also believe it varies from device to device. Mine suffers horribly while others have no issues. It's hard to cater to a small portion of one's users.

I'm still trying to come up with a more permanent solution but I do think it needs to be baked into the audio drivers. It seems like the settings available to the user are not enough to fix it, so it needs the hands of a dev.

I experience lower audio as well (both speaker and headphones) but adjusting the digital gain (as mentioned by the kernel dev) can increase it. Messing with the analog gain increases the power to the hardware directly and can actually damage your hardware I believe. So be careful if you want to tinker on your own.

I'll carry on experimenting.

Edit: the official faux sound app doesn't look like it's being maintained, last update was almost a year ago if I recall correctly. So I'm not sure if it's worth while investing in. I think synapse and the faux sound app do a similar job, so there's still issues of settings potentially not sticking. I tested the official app a little bit but decided to get a refund within fairly quickly. I might give it another try.

Edit2: I forgot to mention that I've also tried with viper4android as suggested. At first my audio was crystal clear, then it went back the way it was without me doing anything, so that's why I'm thinking something is reverting the changes I do.
[G2 Android Development] proyatzu:
Music bug is present with this kernel?

(when playing music changing the time of the song freezes the music player)
[G2 Android Development] Lawlrus:
Its not a kernel issue, its a ROM issue. And I'm pretty sure right now its a 6.0 issue. People were talking about it being on other devices.
[G2 Android Development] Maritus1:
Hi, i'm afraid it doesn't stick on Domino Stable with Kernel Adiutur. But when you use Synapse, everything works fine :D
[G2 Android Development] Dynamatrix:
Is there initd support? How do i enable?
[G2 Android Development] eric93se:
Those of you with settings not sticking in Synapse, try updating the app to 0.44. Setting audio quality now works for me, also Intelliplug shows up (didn't before). After a reboot a 'root permissions' error prevented the app from running, so in 'Privacy Guard' I then enabled root permission (normally this is not an issue).

I was using Renders version before updating, change log shows updates for 'M'.
[G2 Android Development] Trixanity:
I went from no synapse to 0.44 :)

Privacy guard is disabled and root permission is granted. Still have issues with settings sticking.

What rom do you use?
[G2 Android Development] OT-Xtreme:
we really need Stweaks/xtweaks support, Synapse and Adiutor are buggy and forgetting settings, its a bummer like this
[G2 Android Development] GalaticStryder:
All settings stick properly, except Faux Sound cause I'm still patching it to work as intended, and that's the main problem that doesn't allow Synapse to cover up all settings after boot up, forcing it to cancel the setup one wanted to set before. Adiutor doesn't stick some settings, although those have nothing to do with Faux.
[G2 Android Development] gozzaa:
i changed my rom from cm13 to aicp. that helped alot.

also i use your settings now. seems to work great. sometimes there is a hickup here and there but much better than before
[G2 Android Development] somboons:
Link me to MM AICP ROM.
[G2 Android Development] somboons:
Unofficial , thanks
[G2 Android Development] Stevica Smederevac:
Nightly's just started few hours ago. Stil no builds for lg g2. Wait for couple of hours or days
[G2 Android Development] szabyka95:
Sound control works?
[G2 Android Development] android extreme:
[MENTION=6175749]GalaticStryder[/MENTION] random reboot on resurrection 5.7.4 on a clean flash
[G2 Android Development] ig_df:
LS980 latest betais now available. Thx a lot. It has a good feedback.
[G2 Android Development] ytgbg:
As always - thanks for the useful information provided.

All this makes me sad and leads me to the conclusion that we will probably not have soon good and stable Nougat with working camera, if at all. And if/when this happens maybe there will be problems with every new update of the android code...

I guess I will soon change my G2 with OP3... As it is very cheap for what it offers and probably will have the biggest dev support ever...

For the time being as you are working hard on N, is there a chance a final ASOPA 6.0.1 build coming soon with some of the performance goodies backported from N?
[G2 Android Development] GalaticStryder:
Yes, I'll update the base version and merge the CAF updates on the repos we had on marshmallow-caf. Probably start backporting some great addons like sdcardfs and clang compilation.
[G2 Android Development] ytgbg:
That's great news and you are one of the main reasons I am still not leaving my G2.

I tried Nougat and as much as it is fluid and fast there are a lot of bugs to be ironed and at the same time AOSPA/EXODUS 6.0.1 + Lambda (and some tweaking) is a lot faster than CM14/AOSP 7.0 and this 6.0.1 ROM/Kernel combo is stable, got more battery and no bugs.

Your future AOSPA 6.0.1 update and Kernel development makes me content and satisfied with 6.0.1 and not so tempted with Nougat :)
[G2 Android Development] zizuka:
Makes me curious, are the Nougat optimizations mostly kernel or ROM parts then? If both, then maybe it's time for StryderROM ;)
[G2 Android Development] ulihh:
wifi reboots on beta 5 mm

I have IB5M running on cm13-20161015-nightly-d802. I had reboot loops in my home wifi with Beta 4, now my phone reboots once when entering my home wifi. I managed to get some log lines. I had adb logcat -b kernel running and then turned on wifi. Famous last words before rebooting were

10-18 19:54:49.128 0 0 W : [ 463.961123 / 10-18 19:54:49.123] ETHER_TYPE_802_1X [RX]: ver 2, type 3, replay 2
10-18 19:54:49.168 0 0 W wl_bss_connect_done succeeded with 34: 31:c4:41:39:40
10-18 19:54:49.198 0 0 I : [ 464.029361 / 10-18 19:54:49.193] CFG80211-TRACE) wl_cfg80211_set_btcoex_dhcp : DHCP session starts
10-18 19:54:49.281 0 0 W [ 464.115061 / 10-18 19:54:49.277] dhd_set_suspend: Remove extra suspend setting
10-18 19:54:49.298 0 0 W [ 464.129476 / 10-18 19:54:49.293] dhdcdc_set_ioctl: SET PM to 0
10-18 19:54:49.310 0 0 I : [ 464.141531 / 10-18 19:54:49.303] init: Starting service 'dhcpcd_wlan0'...

Then I did the same with adb logcat running and found a few lines with interesting looking errors:

10-18 21:05:22.035 1126 1917 E WifiHW : Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
10-18 21:05:22.432 1126 1917 E WifiConfigStore: readAutoJoinStatus: Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/autojoinconfig.txt: open failed: ENOENT (No such file or directory)
10-18 21:05:25.898 6417 6417 W dhcpcd : wlan0: NAK: wrong address requested via 172.16.1.1
10-18 21:05:26.824 1126 1919 E ConnectivityService: Unexpected mtu value: 0, wlan0

Between these lines it looked ok, if you want the whole logs just tell me.
[G2 Android Development] berezker:
Not sure if you have eyesight issues or not but the download site clearly and visibly has a download link for LS980

https://github.com/GalaticStryder/kernel_lge_msm8974/releases/download/IB5M/Lambda-Infinito-Marshmallow-Beta-N5-LS980-10182016.zip
[G2 Android Development] Kid Zen5:
Lambda-Infinito-Marshmallow-Beta-N5-F320 Where is link ?
[G2 Android Development] rigok9:
https://github.com/GalaticStryder/kernel_lge_msm8974/releases
[G2 Android Development] jeongin8885:
There are only N4 kernel for f320,not N5. Kernel maker noticed that N5 kernel is supported all varients for MM,but there are no N5 kernel for f320 model.
[G2 Android Development] blakeatl:
N5 keeps rebooting on the d801. Went back to N1.....no reboots.
[G2 Android Development] cingkrab:
Is there a build of Infinito Beta 5 Nougat for D803? I might just be blind and missed it...
[G2 Android Development] jeongin8885:
It might be that nougat kernel for f320x and d803 isn't uploaded
[G2 Android Development] chenweifei:
random reboot on resurrection 5.7.4 on a clean flash D802
[G2 Android Development] khanjui:
Without a log, your post doesn't make sense.
[G2 Android Development] astherion:
[MENTION=1441576]galati[/MENTION]kStryder, thanks for the awesome kernel! Latest N5 Beta for LS980 works smooth, fast & fine on crDroid 7.0. Didn't see any issues.
[G2 Android Development] shaneel1491:
[MENTION=6175749]GalaticStryder[/MENTION] Thanks for the good work, currently running on Nougat with your Kernel, just wanted to know which commit(s) is/are essential that allowed kernel to be compatible with Nougat, I'm just trying to get Beta 3 working with Nougat (battery life was exceptional on beta 3)

Thanks ;)
[G2 Android Development] GalaticStryder:
Don't waste your time backporting the changes to BETA 3 state, the changes introduced in BETA 4 and 5 don't make it more aggressive in terms of battery, thus they are totally security driven.

I've got some work done locally to push this weekend as well as another BETA release for marshmallow and nougat. I'd be scared if nougat is ever going to be working properly - I'm running AOSPA 7 but I don't feel like getting pictures with an external camera because I can't fix the hardware encoder properly.

Let's see what is going to come up from CM, I've already rolled my development partition back to M source code and might be doing some merges and security updates on top of it to test.

Don't expect too much for now, maybe wait for the nougat paranoia to fly by and then start recapping M where it has stopped... or maybe some LGE marshmallow update leak.
[G2 Android Development] runekock:
But on the crDroid thread, people say that the camera now works (only you have to install an app for video). Is that without hardware encoding, then?

Anyway, maybe what the Xperia S devs did can serve as inspiration? http://xdaforums.com/xperia-s/s-development/rom-naosprom-xperia-s-t3462373/post69235202
[G2 Android Development] shaneel1491:
Can confirm that Camera is working on CrDroid, there is a flashable zip on the recent pages that fixed the camera (image works everywhere but video only works on footej).

But it seems the problem with the camera lied within libcamera_client.so
[G2 Android Development] errikosd:
Can you please upload a build of AOSPA Nougat, just to get a flavor of it? I know it's not ready yet and you don't want to deliver half-done things, but I think it will be the best Nougat option right now. Thanks!
[G2 Android Development] GalaticStryder:
I've built it fully dex optimized which is 400MB+, I can upload it on my free time but not right now.

It's a precompiled version of the camera code that lies under frameworks/av, it has the MediaHandler to NativeHandler "fix" but it's not something acceptable nor safe.
[G2 Android Development] SREEPRAJAY:
See what a two day crazy seminar can do to your mobile... :P

Thanks [MENTION=6175749]GalaticStryder[/MENTION] it is a great one no matter what
[G2 Android Development] GalaticStryder:
Test build for Nougat!

Hello, everyone. Just a quick test build for D802/5/6 users.

ONLY NOUGAT!

Don't flash it on marshmallow,

NEVER

EVER

flash nougat builds on marshmmalow. Read the .zip file to make sure you've got the proper version...

It's compiled with the changes that are coming in BETA 6:

- Patched DirtyCow vulnerability/exploit. It's now DeadCow!

- An occasional xbuf overflow that results in kernel panic.

- A binder cleanup that removes a mummy function.

- Re-introduction of the latest version of the MSM hotplug from upstream + my touches to settle down with the rest of the Kernel.

- Ultra low latency framework, it's useless for CM but it's a must for my AOSPA builds to get audio working. I need someone to test audio playback on CM/crDroid to make sure this hasn't broken anything.

[B]#!/dev[/B]
Now we're making the additional features disabled for [B]generic[/B] builds, if you're not building Lambda Kernel or you don't want - let's say MSM limiter - we don't need to force it to be built. This is for the dudes compiling their own Lambda Kernel locally.

File dropped on Drive

Remember nougat and D802/5/6 only.

BETA 6 will be dropped after this test, as fast as possible to ensure everyone is safe 'n happy.
[G2 Android Development] hteles:
Testing on crdroid NOUGAT.

Audio ( music ) working great on speakers, also on my Bluetooth earpiece. Didn't test phone calls.

Thanks.
[G2 Android Development] GalaticStryder:
DirtyCow exploit

As of BETA 5, as of any Lambda Kernel revision, as of any Linux machine running without this patch... As of 2016, October more precisely, everyone is talking about this exploit.

Here's a screenshot of an applet that makes the run-as command trigger the root using the exploit itself.

Original resolution to actually read the text.

The affected Kernel versions are any versions that are not the previous testing one with the "fix".

So, it means that any device that doesn't receive or doesn't have an external Kernel support that's updated regularly is affected and can be exploited to the good or to the bad.

echo "Unpatched Linux kernel version:" && adb shell dmesg | grep 'Linux version' | head -n 1
Unpatched Linux kernel version:
[ 0.000000 / 01-01 00:00:00.000] Linux version 3.4.112-Lambda-Infinito-Experimental-D802 (galatic@wildschwein) (gcc version 6.1.0 (crosstool-NG crosstool-ng-1.21.0-286-g6ac8e31 - PWR-CORE) ) #1 SMP PREEMPT Wed Oct 26 22:23:17 BRST 2016

The run-as is just a proof of concept, there are probably other always to force this to happen with more dangerous commands like exec or rm.

Patched Linux kernel version:

echo "Patched Linux kernel version:" && adb shell dmesg | grep 'Linux version' | head -n 1
Patched Linux kernel version:
[ 0.000000 / 01-01 00:00:00.000] Linux version 3.4.112-Lambda-Infinito-Experimental-D802 (galatic@wildschwein) (gcc version 6.1.0 (crosstool-NG crosstool-ng-1.21.0-286-g6ac8e31 - PWR-CORE) ) #1 SMP PREEMPT Thu Oct 27 13:45:28 BRST 2016

After the patch the run-as command returns the "normal" (safe 'n sane) output again as it should.

It means that the Kernel patch doesn't allow buffering memory to create the needed race condition that sets a given user entity to acquire the root privileges internally anymore.
[G2 Android Development] ytgbg:
Testing with latest AICP Nougat - absolutely no problems with audio playback!

Smoothness and speed ate just amazing. Played with new MSM with options and all is better/faster.

I don't know what black magic you are doing mate. You rock!!!

Whenever you feel like posting your AOSP 7.0 build hit me up - it will be an honor to use your new build and provide logs/test if you need!
[G2 Android Development] GalaticStryder:
I had a bare idea that it wouldn't cause problems on audio once the Multimedia 3 path isn't used on CyanogenMod. I've switched all my audio stuff on AOSPA 7 and it's been ultra responsive on ULL, it's quite loud as well compared to the deep_buffer use cases plus almost real time on cable headphone.

The combo impulse/msm_hotplug is now default, that has got faster than usual and helps not wasting CPU cycles as interactive/blu_plug.
[G2 Android Development] Davido_96:
What is this error? Any solution or any help? What is this?xD
[G2 Android Development] miloske83:
Hello I'm flash first hybrid bootsack and Rom,can now flash Lambada kernel? In first page says must have bumped bootstsck ? Any user flash hybrid bootsack and Lambada?
[G2 Android Development] Floodland:
Short answer, yes. Hybrid bootstack is bumped
[G2 Android Development] blastagator:
Suggestion: http://review.cyanogenmod.org/#/c/166771/

Actually, as I said in the comments, I would completely disable

CONFIG_MSM_CACHE_ERP=y

It is some unnecessary logging crap and the way it is currently configured causes unnecessary kernel panics.
[G2 Android Development] VzQzZ:
First of all, thanks GalaticStryder for your amazing work. I'm a big fan of your kernel and AOSPA build. They are truly amazing!

So, I got 2 questions:

1) Can I switch Selixux from Permissive to Enforcing?

2) Can I use this kernel without root installed on ROM? I mean, can I use the "fully unroot" option from SuperSU app and still enjoy some Lambda love?

Once again, thanks. You're keeping G2 alive and that means a lot!