yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] blastagator:
Anyone know how to make synapse work with selinux enforcing? Dumped a log for the denials:

<36>[ 956.010747 / 03-26 19:22:57.370] type=1400 audit(1459034577.370:460): avc: denied { read } for pid=11083 comm="sh" path="pipe:[83436]" dev="pipefs" ino=83436 scontext=u:r:qti_init_shell:s0 tcontext=u:r:init:s0 tclass=fifo_file permissive=0
<36>[ 956.011121 / 03-26 19:22:57.370] type=1400 audit(1459034577.370:461): avc: denied { write } for pid=11083 comm="sh" path="pipe:[83816]" dev="pipefs" ino=83816 scontext=u:r:qti_init_shell:s0 tcontext=u:r:init:s0 tclass=fifo_file permissive=0

Not exactly sure what file it is trying to interact with.

Did some googling - all posts say to change to permissive. Not helpful!
[G2 Android Development] GalaticStryder:
Looks like enforcing blocks sh command to read and write, sh is needed for UKM iterations like device checking and etc. almost everything we do inside the app. I'm not sure if we can fix this by creating an entry on libsupol though. Most custom kernels use permissive by default, but I can do some digging (not a specialist on su).
[G2 Android Development] blastagator:
When I get some time I am going to see if I can modify the synapse code. SU should be able to get around selinux problems. Some day when I have free time!
[G2 Android Development] GalaticStryder:
Found a helpful place to start:

A close denial is present on a samsung mondrian dmesg that I founf here: https://jira.cyanogenmod.org/secure/attachment/51900/dmesg.log

[ 4.916345] type=1400 audit(1397149965.910:16): avc: denied { getattr } for pid=247 comm="sh" path="/system/bin/btnvtool" dev="mmcblk0p23" ino=155 scontext=u:r:qti_init_shell:s0 tcontext=u:object_r:btnvtool_exec:s0 tclass=file permissive=0
[ 4.916736] type=1300 audit(1397149965.910:16): arch=40000028 syscall=327 per=800008 success=no exit=-13 a0=ffffff9c a1=b6cff124 a2=bed080d0 a3=0 items=1 ppid=1 pid=247 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="sh" exe="/system/bin/sh" subj=u:r:qti_init_shell:s0 key=(null)

Looking into mondrian's device repo on CM, I found that commit: https://github.com/CyanogenMod/andr...mmit/48c262b912e4741b82f7fb26aebb9f8954b2fcd0

The date doesn't match though cause the commit was in Sept. 2015, and the log Jan. 2016. But I noticed they enabled enforcing right after this patch. qti_init_shell.te wasn't there before. G2 common doesn't have such a file/policy.

Another mondrian's sepolicy patch, this time in kernel: https://github.com/CyanogenMod/andr...mmit/311fd403c12841076685af69c6d46a48e27f1c74

AVC related as well.
[G2 Android Development] GalaticStryder:
O.P. Updated to BETA 1

I'm currently building the BETA 1 of G release. I just wanted to update the O.P. with 27/03 date before I forget what I wanted to write. For the BETA:

- Latest GCC 5.3 from dorimanx with sysroot libs support

- Fast Lane set of optimizations created by me to make this sh** even faster

- Linux 3.4.111 from 6 days ago

- GPU inlined with 3.10 stable

- Simple Thermal properly adapted for our devices

- Updated Synapse + UKM to latest

- Updated AnyKernel2 to use .sh instead of flash script + boot-up tweaks working natively

- FIOPS/SIO new schedulers

More is coming...
[G2 Android Development] jneto3000:
Galante Beta N1 install and booted fine in D805 (D802 zip) with AICP 11.

Pretty smooth and battery seems good too.

Synapse says "No UCI support..."

Best MM Kernel for G2. I think I can use this one as DD easy.
[G2 Android Development] blastagator:
Silly detail, but I noticed the zip flashing script still says kernel .110 :)

Booted on d800. Speed appears to be flying! Great work!!!
[G2 Android Development] Floodland:
Boots ok, but had to rename /system/bin/mpdecision-rm to /system/bin/mpdecision in order to be able to activate it.

There are some troublemaker GPU govs available (hwmon*), it might be a good idea to remove them.

Now, beta N1 feels best than ever up to now, amazing job! Testing slightly tuned interactive gov and zen as scheduler, really smooth.

Best regards
[G2 Android Development] 4r44444:
Does BETA incluced intellimm Governor?
[G2 Android Development] mal13:
To me new beta 1 didn't went smoothly at all in aicp 11. Programs started slowly if they started at all. Kernel adiutor waited 3min for root rights & after it stopped that app and so on. Synapse said something i havent seen before...your device isn't supported when it opened. N6 version worked really nicely on same device aand rom: d802, aicp 11 24/3/16, opengapps pico.

Edit: i'll do fresh install to see how it goes after that.

Edit2: clean install did the trick. All fine on d802, beta1 & opengapps front.
[G2 Android Development] paul89rulez:
Aicp last nightly d802 LP bootstack. All works fine
[G2 Android Development] Calvin Gross:
Silly question: did Lambda Kernel fix CM13/MM wifi disconnect issue?

If someone could help to give me the answerer, I'd like to know it before I did the flash...
[G2 Android Development] johnb380:
U guys everytime u flash a new kernel make sure to wipe Synapse and kernel auditor data and that will make sure things aren't weird in your config...
[G2 Android Development] rdlegy:
Is the galante kernel the one that you talked a few days ago with the 1.8 ghz frequencies and better battery life?
[G2 Android Development] jneto3000:
No underclock, but battery is pretty awesome.
[G2 Android Development] android extreme:
Try to ask to renderbroken how to add 3.4.107 kernel version(just andò advice, nothing more :) ). Ah i've a question for you: is possible add synapse app to the zip of the kernel to have a better controll on the system?
[G2 Android Development] paul89rulez:
Noo! Why you removed OC? Is good to have free more power! Please, consider to add it back.
[G2 Android Development] ales100i:
I am getting a black screen after a few minutes on the latest test version. Have to reboot device. Tried both on cm13 and also AICP 11. Have a d802. Don't have any problems on both stock kernels.

Poslano z mojega LG-D802 z uporabo Tapatalk
[G2 Android Development] android extreme:
+1
[G2 Android Development] fendaris:
Why did you comment +1 for his comment? Just hit the damn like button.

---------- Post added at 02:47 PM ---------- Previous post was at 02:45 PM ----------

OC isn't needed because our phone's CPU is plenty fast, and just having OC there will drain battery for us that don't use it.
[G2 Android Development] Lawlrus:
We all eagerly await the new ocable kernel you plan on making then.

What part of developers make kernels that they USE and share them for us don't you people understand?

Do you let people on the internet tell you how to make, and what to use in your sandwiches you eat for lunch?
[G2 Android Development] paul89rulez:
Yesterday i did 9h+ screen on with wifi use with this kernel Oc'd. Please explain me what kind of battery drain you will have if dev add back Oc.

Simply downclock to your preferred freq, and do some downvolt too if you want. For me is good to have more choices. If he want to add it back its better in my point of view. If not, i will use this kernel too, because is a masterpiece.

To MustacheGuy avatar man, calm down, i ve simply telled to the developer my opinion.

Sorry for my bad english.
[G2 Android Development] SimpleX91:
He's not telling what to do, he's simply asking dev to *consider* bringing OC back. And the one to be rude here is you, actually.

If you start sharing your sandwiches, then yes, people would start asking you to somehow alter the recipe to their liking. It's up to you whether to refuse or not.

One more thing. What [MENTION=2497001]paul89rulez[/MENTION] wrote here is called feedback. It's not flame or offtop and it's directly related to development. What you did (and I, unfortunately) is not related to development at all.

Back to the topic.

If it's possible, it would be nice to have per-core controls (like in DorimanX kernel) for freqs and govs.

Btw, Dorimanx have a lot of commits from 3.10.y and even 3.16.y, maybe it's possible to merge some of them? Just asking ;)
[G2 Android Development] GalaticStryder:
Third release is available...

Hi guys, maybe tag it as stable? Candelabro (third release, C letter) is ready for evaluation.

~ Release notes ~

Rebuilt the kernel from the scratch for better filtering bugs.

Added date to .zip name as someone said pages ago.

Fixed lambda postboot init script.

Added the goods (zzmove, hotplugs...) from [MENTION=5438598]RenderBroken[/MENTION] 's kernel.

Added simple thermal manager from [MENTION=4800121]Sultanxda[/MENTION] (OnePlus kernel).

LG lock was conflicting with smpboot, fixed as well, now they coexist in peace.

ION updates from Samsung from ZeroBlade.

Recoded sound control for G2 and cleaned it up.

+ Fixes and updates.

If so, then next updates will be less intrusive in user experience and much smooth and precise. OP updated with changes and download links.
[G2 Android Development] raikol:
Latest working on Aicp 5.1.1 D800
[G2 Android Development] Lawlrus:
Awesome. That's pretty sweet to see it booting on lollipop
[G2 Android Development] raikol:
Somebody needed to try. I'll use it for a few days and see what happens.
[G2 Android Development] gozzaa:
Just flashed the new version on cm13.

Will report if i find bugs :)
[G2 Android Development] matrixios:
Thanks for kernel but I can find zzmove covernor. Anyway the kernel run very smooth

Στάλθηκε από το LG-D802 μου χρησιμοποιώντας Tapatalk
[G2 Android Development] alexx_kidd:
Would you be kind enough to share with us some settings combinations?What do you use for example?
[G2 Android Development] Hbohd:
[MENTION=5422660]Galactics[/MENTION]tryder

Thank you for a new and first kernel project for MM on our G2 :)

May I ask why did you remove wlan wakelocks control? Wasn't it working?
[G2 Android Development] reemar:
[MENTION=6175749]GalaticStryder[/MENTION] thanks for writing dates in the zips filenames, an other question..

this kernel will run smooth with RR 5.6.0?
[G2 Android Development] eggeioss:
Flashed the latest version on Mokee marshmallow and it works...seems quite stable for now.

EDIT: through kernel auditor doesn't stick any change of parameter. I tried to rise up the gain of the speakers and change the hotplug but after closing the app the settings were reseted to default.
[G2 Android Development] GalaticStryder:
Use Faux Sound app, Audiutor will not be able to control it. Except audio, Audiutor controls everything properly, profiles and etc.

Enviado de meu LG-D802 usando Tapatalk
[G2 Android Development] ales100i:
Ok. Problem gone with latest version. Great work. It's really working nice.
[G2 Android Development] threeem:
Hey Guys,

Is there a way to change CPU Hotplug in this kernel?

I tried Synapse and Kernel Audiutor, but only MPDecision is aviable.

I have Galante N1 beta d802.

BTW decent work this kernel is mile a head of stock CM13
[G2 Android Development] Floodland:
Beta N1 does not include other hotplugs. And you might need some extra task to make mpdecision work (check my previous post). If mpdecision starts and sticks for you, forget what I just wrote.
[G2 Android Development] Floodland:
Good news, seems like mpdecision name issue was something derived from the ROM I was using. Made a clean install of another one (Exodus this time, R22), installed N1 on top of it and mpdecision kept working as intended. I am not sure how the binary got renamed before, but seems it the kernel was not to blame.

Thank you and regards
[G2 Android Development] jaydee 77:
DoubleTap2Wake does not stay activated in Kernel Adiutor with N1 Galante on D802 Resurrection ROM.
[G2 Android Development] GalaticStryder:
This kernel doesn't handle double tap to wake through dt2w driver (commonly a Nexus driver by showp). Instead, we're using lge_touch_core input handler to pass the commands from the kernel to the CMHardware environment, it means you won't need to enable/disable anything related to dt2w in kernel tweaks but in the ROM settings itself - I'll see if I can change that in a near future but I'm afraid that having two drivers for the same purpose, they'd race each other pretty often.
[G2 Android Development] edi194:
[MENTION=4112965]jaydee 77[/MENTION] On my phone in Kernel Adiutor it also shows that dt2w is switched off, but it's still working (becouse of system settings).
[G2 Android Development] GalaticStryder:
Incremental for D802

Guys, anyone willing to get the latest candy?

As usual, it's in my G.Drive, this time, I don't wanna list the changes cause, man, they are so many. In general, they are forwardports like msm_hotplug (up-to-date), cpu voltage table (not the one we had but the code looks ok), cpu boosting, window based load, impulse, memory tools, battery, slimbus overclocking, lots of stuff related to CPU that I'd you to test. As usual, incremental build are staging, this one is super staging.

My boot-script values have been enhanced for battery efficiency as well + lots of beauty. Report.

WIP
[G2 Android Development] lonca198:
Bootloop for me, just appears LG logo and that it :/

Sorry on bad English
[G2 Android Development] MB525:
One question. With your kernel I get about 200-300MB more free ram than with others.

Why?
[G2 Android Development] Floodland:
I see no new build for d802 but several for d801, is any of them misspelled?
[G2 Android Development] GalaticStryder:
No, not actually. John owns a D801, I let him test a little bit first to see whether it works or not, as for the latest, audio ain't working, so I didn't build D802 until audio gets fixed. Tomorrow morning we may have it up and working as expected.
[G2 Android Development] GalaticStryder:
Just built D802 now, it's uploading as of now. Can you get us some lights? Test all kinds of playback.
[G2 Android Development] blastagator:
Anyone else get modem crashes? I have seen other reports of modem crashing from bad contact between phone and SIM card. Curious if anyone else gets these?

This was on recent Beta 1.

[20546.417250 / 03-27 13:40:26.212] [LGE][MMC][mmc_rescan ( ) START!] mmc0
[20546.417390 / 03-27 13:40:26.212] [LGE][MMC][mmc_rescan ( ) START!] mmc1
[20546.417497 / 03-27 13:40:26.212] PM: suspend exit 2016-03-27 17:40:26.228888904 UTC
[20548.851378 / 03-27 13:40:28.662]
[20548.851407 / 03-27 13:40:28.662] SMSM: Modem SMSM state changed to SMSM_RESET.
[20548.851606 / 03-27 13:40:28.662] Fatal error on the modem.
[20548.851687 / 03-27 13:40:28.662] modem subsystem failure reason: FW@lte_LL1_schdr_main.c:2577 Assertion (ustmr_count_diff( start_streaming_univ_.
[20548.851741 / 03-27 13:40:28.662] subsys-restart: subsystem_restart_dev(): Restart sequence requested for modem, restart_level = SYSTEM.
[20548.851792 / 03-27 13:40:28.662] Kernel panic - not syncing: subsys-restart: Resetting the SoC - modem crashed.
[G2 Android Development] GalaticStryder:
Can you reproduce this error? Was it random? I don't think 3.4.111 introduced this, fast lane optimizations maybe and that's all from N6 wich is based on pure.
[G2 Android Development] blastagator:
Honestly, I feel like this might be something I've seen before, I wouldn't dig too much unless anyone else reports the same crash. Was more of a "hey, anyone else?" than a "go drive yourself crazy digging through code" :)
[G2 Android Development] Floodland:
Thanks, N32 boots fine but I do not see Impulse gov, other hotplugs or CPU freq voltage table.

However, audio playback works flawless here, Viperaudio processing fine through headphones and speaker. Listened to local mp3s, a YouTube video and played a run with Need for Speed No limits. Everything played audio just fine. Anything else you want me to test?
[G2 Android Development] eak1080:
Encryption for cm13 only works on the pure builds??

Figured I'd ask before going ahead and losing my /data partition if it doesn't work on the beta builds lol
[G2 Android Development] GalaticStryder:
Actually, encryption was totally disabled on latest pure cause we didn't know what to expect from it. Incremental/beta should have it up-to-date with Nexus 5 kernel encryption.

Wanted you to check twitter video or snapchat video playback. Also, N33 is up with some more CPU upgrades. I'm adding stuff as you confirm they are working properly.
[G2 Android Development] Androloid:
On incoming call ringing screen turns on only after several (3-4) seconds.

D-802, Bliss-v6.2

Послато са LG-D802 уз помоћ Тапатока
[G2 Android Development] ytgbg:
N33 is working without issues on my 802 with DU 6.0.1. Snappy and smooth!
[G2 Android Development] idkwhoiam322:
Twitter video playback on d802 n32 is perfect :)
[G2 Android Development] GalaticStryder:
Well, thanks for the report about Twitter. I'm considering building N34 now with hotplug support. Then voltage on N35 and finally BETA2 tomorrow after we test all that on incremental.
[G2 Android Development] daveomg:
In my opinion sound control is great feature :) .Btw new version is very fast , no problems found .
[G2 Android Development] GalaticStryder:
I'll "kang" dorimanx sound control from scratch. I can also ship my patched mixer paths for higher volumes if needed.

N34 is up. I disabled mpdecision in preparation for the new hotplug drivers, added my modded mixer_paths for D802 targets, overclocked slimbus, added back window based load with boosting, enhanced cpu_boost driver and some more frequency related stuff for next voltage table control. Any reports? Always clean synapse cache on app after upgrading.

Fast lane is still enabled so... it will be faster than ever if it boots ok. I think these changes will intruce some playback issues on twitter/youtube this time though.
[G2 Android Development] android extreme:
Galacticstrider where did you upload the n34? In google drive the incrementalbuildisn't present(or at least iìm not ableto find it:silly:)
[G2 Android Development] idkwhoiam322:
Same here, can't find it. Eager to try it out considering how much better it's getting with every build! :D
[G2 Android Development] GalaticStryder:
Reload the page, it's in incremental. I needed to upload again. Report back if any concern, I'll try to get it going.
[G2 Android Development] idkwhoiam322:
Yea, for now, twitter and YouTube playback seems fine :)

However, the simple thermal driver seems to be slowing down the device causing frames to drop every now and then. Rest seems fine for now, will report further.
[G2 Android Development] android extreme:
Now i've found it,just a question: there is a particular type of rom that unleash better than other the potential of the kernel?( AOSP or Cyano based)
[G2 Android Development] idkwhoiam322:
May I ask about what happened to your aokp project, sir?
[G2 Android Development] GalaticStryder:
You can adjust the mitigation stages of Simple Thermal easily on Synapse.

Max Temp / CPU clock allowed to this temperature / Temperature to get back to normal.

I can't please everyone with one setting only. Most people prefer battery oriented settings for daily tasks that don't demand higher CPU clocks for good amounts of time.

In your case I'd go for higher values for 'em all.

58 2100 54

64 1900 60

72 1700 66
[G2 Android Development] johnb380:
Yo what's up?

Where we at with the kernel Ìcaro?

Anything u need me to check out bro?

I wanna test something too... Lol!
[G2 Android Development] idkwhoiam322:
Yea, tried that out and idk, even though I maxed it out at lower than the values recommended it smoothed out by selecting a value and not keeping default ones. Overall it seems really smooth with good battery :)
[G2 Android Development] GalaticStryder:
It's not my project, I just pushed the official support for them and they'll approve when the server gets back to full functionally. I don't see a reason to use AOKP at this time, no big deal for now. It's a CM with some AICP things... So I'd go for AICP directly or DU. My personal reference for decent ROM is Slim though.

Go testing Simple Thermal values, I'll add some presets in Synapse for it soon but we got test them first.
[G2 Android Development] Floodland:
Snapchat video works fine as well here. Waiting to get N38 for d802, keep rocking [emoji14]

Damn you are quick, already got N40, anything in particular to test?
[G2 Android Development] GalaticStryder:
I'm trying to get state notifier (latest) to not bootloop. Try N40 if you can, almost sure it's looping.
[G2 Android Development] Floodland:
You are not wrong, it does boot loop. I will be here to test the next one if you want to.

Thanks
[G2 Android Development] GalaticStryder:
I'll get some stuff from dorimanx kernel in F release letter, for now I'll just add what we've got in domino back.
[G2 Android Development] peanutsz:
Is it normal to have around 1.5. - 1.6 GB of RAM usage? im on Galante Beta 1, everything works great, just wondering
[G2 Android Development] idkwhoiam322:
Tried gaming on n34, light and moderate games don't really heat up much even on extended use, heavy 3d games however heats up the phone after about 30 mins ( no real stutters till about 45 mins).
[G2 Android Development] GalaticStryder:
I'm preparing a more balanced profile for next BETA release, I pushed the incremental N44 to Drive for testing. I've set higher values for simple thermal to avoid unneeded throttling on relative "low" temperature. Also, added Alucard touch boosting to compare against the CPU boost from N34 enhanced by neobuddy. I don't know if our Synapse has CPU boosting for Alucard driver but if it doesn't I managed to add some good values since boot as well, I'll write the UI for Alucard if it does boot and works good. State notifier was causing bootloop for the LG G2, even importing from dorimanx kernel, I think I managed to make it work now by putting it to initialize on the next layer and disabling it by default to be enabled only on bootscript.
[G2 Android Development] ytgbg:
N44 = boot loop.
[G2 Android Development] GalaticStryder:
We need to keep testing until we fix that. I'll see if normal priority workqueue can fix that. Uploading N45.
[G2 Android Development] ytgbg:
Mate, N45 = boot loop also.
[G2 Android Development] Garfield3333:
N45 = looping
[G2 Android Development] GalaticStryder:
Sadly, I'll stay away from state notifier for this release. N46 might boot then.
[G2 Android Development] ytgbg:
Sorry mate, N46 boot loops also.
[G2 Android Development] GalaticStryder:
Ok, sorry for bothering. I returned back to the default enhanced cpu boost, as for dorimanx changes, I'll need further investigation when my screen gets back. N47 should, then, boot.
[G2 Android Development] ytgbg:
N47 = boot loop.

Unfortunately I am not going to have more free time for testing today. I hope the other members will take over from here.
[G2 Android Development] GalaticStryder:
It booted on D801 right out of the box yesterday. I'll repair my screen today, this will make the development much easier.
[G2 Android Development] Garfield3333:
N47 = looping.....

You`re on the right way.....dont give up ;)
[G2 Android Development] johnb380:
He got his screen now he's putting it in! So hopefully soon we will have better than ever kernels then [MENTION=6175749]GalaticStryder[/MENTION] will be able to test them himself to make sure they boot then we can grab logs if there are errors or problems to narrow down the issues if they come up!

I believe he is putting his screen in now to his G2 so maybe by tonight he will be able to see what the problems are with the changes in the kernel!