yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] dorimanx:
News Update!

Kernel 2.9

12/06/15

*Added support for VS980 Model. need to have last KK bootloader for this model to boot kernel.

*Merged updates to Alucard,Nightmare,Darkness CPU GOV from DEV.

*Merged fixes to kernel modem driver.

*Merged fixes to input driver and to spi_qsd driver.

*Disabled SELINUX totaly on boot. you can enable it via Dorimanx APP if you wish,

This will fix many bugs and increase performance and save more battery power. (if it's stay OFF)

*Merged big update to driver core code. many updates to checks and power code!

device will wakeup from suspend faster! and power is saved more in suspend.

*Disabled ROM kernel log to data, waste of room and power by using CPU non stop.

*Fixed many file permissions bugs that i have discovered after updating drivers core.

*Merged updates to Alucard HotPlug from DEV.

*Merged update to BFQ I/O gov to build v7r8

*Fixed some adb start stop in USB ramdisk scripts.

*Set faster CPU gov sample rate for performance profiles.

*Fixed no GSM link for other models than D802

*Merged Selinux context perms mods by @blastagator

VS980 build is untested, waiting for reports.

if you have that model make sure you have latest KK bootloader! or kernel will not load.

USE ONLY ONE FOR YOUR MODEL! same goes for other models! never install bootloader not for your device.

Now selinux is OFF on boot. no policy! no enforce or permissive. more free RAM and less bugs! :)

If you really need it, you can enable it in dorimanx app. till next kernel reinstall / update

then you need to do it again. or just leave it OFF.

have fun :)
[G2 Android Development] d_Schizzo:
Wth!!! Just installed 2.9 and finally v4a xhifi is working perfect and without any "install driver bootloop". I think disabling selinux may be fixing also some strange bugs in other root apps.

Thank you for your outstanding work [MENTION=2376110]dorimanx[/MENTION]!!!

Regards,

Schizzo
[G2 Android Development] samuele94:
Thanks dorimanx,no force close at boot with play services android M! (dorimanx 2.9)
[G2 Android Development] crazylife:
G4 keyboard and weather FC in start up is gone. seperSU 2.49 didnt ask to update in boot thats good

boot up is much faster

till now all perfect thanx
[G2 Android Development] blastagator:
All working great so far! Thank you! However, I don't think it is best practice to run selinux permission fix every boot. Unnecessary command/process. Maybe better idea to add button to STweaks to run command? Then user can run once to fix ROM after install and not have to touch again. Also, if SELinux is disabled, I don't think restorecon works correctly, so command shouldn't be run if SELinux Disabled, and user shouldn't be able to push button with SELinux disabled.

Just a suggestion!

https://github.com/dorimanx/lp_ramdisk_dorimanx/commit/6952325da246ca431cbc8e27c49001a1e79c9353

As always, thanks for all of the awesome!

Random Note: All of my text messages exist in duplicate now.
[G2 Android Development] donalberto17:
Trying vs980 version and everything seems to be working, I need to test more but it seems promising, Thanks (Y).
[G2 Android Development] smartpr1v4t3:
I installed 2.9 and after the first boot, the phone was incredible slow, because it didnt changed after 5 minutes i did a additional reboot.

Now it is running really fine and it feels more smooth then the versions before. Will test it the next days and will report.
[G2 Android Development] siggey:
Ls980 boot and run ok

_____________________________________Read more write less and be smart
[G2 Android Development] jamesd1085:
2.9 is running great...huge performance improvement already noticeable...will report any issues...thanks!
[G2 Android Development] dorimanx:
No problem to run this even if selinix is off.

Its very fast command, max 2sec run, and its using rom and kernel ramdisk to do it.

Its harm less. But useful if selinux enabled.

Sent from my LG-D802
[G2 Android Development] aleasto:
2.9 has some kindof magic in it :D

The phone feels so much smoother and more reactive than previous versions!

Keep up the good work :)

Inviato dal mio LG-D802 con XDA Forums
[G2 Android Development] the baptizer:
switched back to my lg g2 from G4.. the big brother is resting in my closet till dorimanx starts kernel for it...

2.9 is a BEAST... i can feel the performance gain for sure.. no placebo.... !!!!!
[G2 Android Development] obvious:
I was keeping my mouth shut about lag for so long. I used to wait seconds for the phone to respond so kept going back to stock kernel. It's early days but 2.9 is flying. Thank you !
[G2 Android Development] jamesd1085:
[MENTION=2376110]dorimanx[/MENTION] my wifi calling is broken with new kernel...tried enabling SELinux but on reboot i got a constant toast about Gapps force close...went back to 2.8 for now...can any other d801 users confirm this issue...if others report no issue i will try it again...couldn't get log because only way to get working system was to restore backup
[G2 Android Development] drew150931:
[MENTION=2376110]dorimanx[/MENTION], 2.9 kernel is superb. no issues, and very fast and smooth ui. my viper4android and other apps that need a selinux permissive are all working. also thanks for [MENTION=5031300]blastagator[/MENTION] for helping dorimanx to fix the bugs and issues in his previous kernel. after i installed 2.9 i notice the difference in the previous kernel and i think this kernel is stable. Thanks for your hard work for helping G2 community.
[G2 Android Development] theinspector:
I just tried wifi calling on the latest version and it works good for me.
[G2 Android Development] jamesd1085:
Thanks for checking...third time is the charm...all working now
[G2 Android Development] Abrilabr:
2.9 on my D800 with Ondemand (Core 0) and rest Darkness (1.7Ghz) and my cellphone is flying! Will check how`s battery life
[G2 Android Development] bbender716:
vs980 is finally lag free!! Running xdabebb 3.1.1 on TMobile sim. Thank you dori!
[G2 Android Development] slipknot31:
2.9 installed on D802, at first seemed a bit slow but after a few minutes all improved quickly. thank you very much for your hard work [MENTION=2376110]dorimanx[/MENTION]
[G2 Android Development] blastagator:
[MENTION=2376110]dorimanx[/MENTION] -

[MENTION=3970210]krija[/MENTION] was nice enough to send me the source for Dorimanx.apk and gave me permission to put it on github:

https://github.com/blastagator/krija_dorimanx_stweaks

So, I posted a git of Dorimanx.apk source and made modifications to fix SELinux Enforce:

https://github.com/blastagator/krij...mmit/702faac7c43acf77f07c041704294aa038fd13d6

https://github.com/blastagator/krij...mmit/a9de3f33a0e7cf67e6d440090a4adc87f50cc1eb

Compiled and working on my phone. Although it looks like the source he sent me has had more changes since last version of apk he sent you (the error messages are gone, oddly?). Either way, hopefully he sends you new build soon with fix :)

(APK Version in Kernel is 2.0 - Source compiled to 3.1 !!)
[G2 Android Development] blastagator:
If anyone wants to avoid the first boot after upgrading kernel (since it can cause issues with /data and loss of some settings, specifically for me Textra lost its settings), I made a script:

http://xdaforums.com/lg-g2/development/dorimanx-lp-script-to-enable-selinux-t3134013

Flash after flashing Kernel and before reboot, and SELinux will be turned back on.

---------- Post added at 12:44 AM ---------- Previous post was at 12:26 AM ----------

@dorimanx - Script doesn't work -

https://github.com/dorimanx/lp_ramdisk_dorimanx/commit/6952325da246ca431cbc8e27c49001a1e79c9353

If I manually 'chcon' a file and change its context, boot script doesn't change it back. Running command manually in shell after boot changes it back and it stays changed back.

Just FYI that it is broken.
[G2 Android Development] drew150931:
I already flash the 2.9 kernel of dorimanx later this morning, and now if i want to install your selinux script, what would i do? flash it directly in TWRP recovery then reboot my phone? or do i need to re flash the 2.9 kernel then flash your selinux script before i reboot my phone? Thanks :)
[G2 Android Development] blastagator:
No. If you already booted after install, script is pointless. Just turn SELinux on with Dorimanx app.
[G2 Android Development] drew150931:
ah ok i get it. thanks :good:

---------- Post added at 05:26 AM ---------- Previous post was at 05:22 AM ----------

What if i flash my stock lollipop kernel then retry to install dorimanx kernel 2.9 then install selinux script before to reboot? it is okay or not?
[G2 Android Development] Faakarna:
Anyone having random reboots on 2.9? Had one so far, with LSpeed mod installed. Just uninstalled, and will report back. So far... Very smooth. Smoother than blisspop aosp rom.
[G2 Android Development] oudbrood:
Hi Dori,

With every new version I give it a try.

Flashed 2.9 and around 15min later while browsing with Firefox the screen freezed and a reboot lg logo ?

Then flashed back to BC kernel.

After this I had no wifi and no gsm signal.

Flashed again 2.9 and wifi and gsm are working again.

Changed sellinux to On and flashed BC kernel again. Wifi is now working but no gsm signal.

Flashed the rom again and everything is working fine now.

Rom: Somboons 30b eur.

D802

https://www.dropbox.com/s/i7qq8leimlfxc3k/dorimanx_debug.zip?dl=0
[G2 Android Development] Lizzacore:
One, maybe stupid, question ,what SELinux does ? I mean for security okay but what does it exactly?

Wikipedia and other sides can't help :/

Sendet from my LG-D802 with Tapatalk!
[G2 Android Development] xdocvetx:
Will you implement this on kk kernel too?

Sent from my LG-D802
[G2 Android Development] :
Has colour control stopped working for anyone else on 2.9?
[G2 Android Development] Nigglenuts:
It works for me.
[G2 Android Development] :
Thanks. I think a clean install is called for here.
[G2 Android Development] krija:
Thanks again.

New apk is already compiled. Testing is in progress. Error messages are back after your changes ;)

[MENTION=2376110]dorimanx[/MENTION]

I think no data nor settings were lost. I think that data and some settings can not be reached/read and new ones can not be written.

FYI Cache partition is either not trimmed or it is trimmed with disabled SElinux, but then it is too fast and it just doesnt show up in toast .
[G2 Android Development] d_Schizzo:
Maybe you have cache formatted as f2fs? If so, then cache will not show up as f2fs trims automaticly.
[G2 Android Development] krija:
[MENTION=4782115]d_Schizzo[/MENTION] thanks for info, but i´m on EXT4.
[G2 Android Development] Faakarna:
Ive got some problems with 2.9 massive hangs where the phone becomes extremely slow and unresponsive.
[G2 Android Development] xxoscarxx28:
No logs... Means no problem
[G2 Android Development] iall5tar:
Awesome [MENTION=2376110]dorimanx[/MENTION] you made my G2 faster than rocket!

no problems at all.

i didn't realize this kind of performance...

OMG!
[G2 Android Development] dorimanx:
Some apps write there data different when selinux on, or off.

This why when we switch, we loose data for this apps.

Textra loose data for me too, when i switch from off to on for selinux, and reboot

Also go keyboard and advanced adnroid task killer.

Didnt found any other app that lost data.

Sent from my LG-D802
[G2 Android Development] Ati75:
I have to say 2.9 is a milestone. Always had some minor lags when typing with swiftkey as the main keyboard. Since flashing 2.9 everything is smooth and responsive. Never had any reboots, lockups whatsoever with any of the prior versions, but this makes it soo much better. Great work as always!
[G2 Android Development] Djsam92:
Had a reboot while i was watching youtube video, 2.9 with performance profile

https://www.dropbox.com/s/11lv1soulzfvajp/dorimanx_debug.zip?dl=0
[G2 Android Development] krija:
Can not test more for now. When i try enable SElinux my device always get a bootloop. Same result with [MENTION=5031300]blastagator[/MENTION]´s script and with [MENTION=2376110]dorimanx[/MENTION] app too.

Dorimanx app

Changelog:

-app version changed to 3.2

-some UI changes

-code clean

-blastagator´s root/selinux fix - thank you
[G2 Android Development] AlexVipXDA:
With 2.9 titanium cant have root acces i move it in system app and work again

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] iall5tar:
When I try to change the parameters in color control , doesn't stuck as I would like always get by default... Even after reboot... I guess is some5hing related to selinux? Maybe?
[G2 Android Development] samuele94:
It works fine on d802 and dori 2.9,if you need some test with your app (it's beatifull) tell me,thanks again for apk
[G2 Android Development] mannequin:
people with reboots, do you monitor your CPU temperatures by any chance?

i noticed that sometimes (gaming but not necessarily, switching from no signal to LTE, heavy usage, etc) CPU will ramp up and heat up real quick and fails to cool down no matter what the settings are. looks like it's tryingto throttle down and that just causes the phone to spasm and soft reboot at the extreme cases. still figuring out what are the ideal settings for smooth temperature scaling but nothing seems to do the job properly. LP on our phones is quite frustrating.
[G2 Android Development] blastagator:
Did you do both commits? Still getting 'no kernel support'

https://github.com/blastagator/krij...mmit/a9de3f33a0e7cf67e6d440090a4adc87f50cc1eb

https://github.com/blastagator/krij...mmit/702faac7c43acf77f07c041704294aa038fd13d6
[G2 Android Development] rebar71:
WiFi calling works fine for me on 2.9
[G2 Android Development] markus4000:
2.9 and SeLinux change seems to make it impossible to switch between stock and dorimanx kernel. I don't use dorimanx as a daily driver because I have better experience with stock but I test it again from me to time. After installing 2.9 and booting all seemed fine until I had some lags and hiccups again (dont blame you and I'm fine with that). As always I wanted to restore to stock kernel, but after boot my phone was basically bricked. almost all apps had problems starting (crash) or lost all data (or at least access to it), even GSM was broken. So I can't switch between kernels anymore which is a huge downside imo. I'm now forced to use your kernel or restore a backup (From a couple weeks ago) or do a factory reset.

Please consider this in your next build.

Appreciate your work.
[G2 Android Development] krija:
Sorry my friend, now i see that i have modified another version of the MainActivity.java file. Ill be back :)
[G2 Android Development] blastagator:
No problemo.
[G2 Android Development] d_Schizzo:
You need to enable selinux first in dorimanx app, reboot, and then you can install stockkernel again.

Regards,

Schizzo
[G2 Android Development] krija:
Please, download again and let me know if it works:

http://xdaforums.com/showpost.php?p=61323287&postcount=1701
[G2 Android Development] markus4000:
Thanks for the tip, but it doesn't work for me. GSM is still broken after dorimanx app says "selinux enabled", reboot and flash stock kernel.
[G2 Android Development] d_Schizzo:
But apps are working? With GSM you mean Mobile Data?
[G2 Android Development] blastagator:
Working now with SELinux Enforce. Thanks :)

On my phone, after install kernel, radio was broken until I ran

su
mount -o remount,rw /system
restorecon -RF /system

This assumes you have SELinux on.
[G2 Android Development] lynxrz:
Wonderfull

I can confirm battery life is amazing and device is smooth with alucard governor.
[G2 Android Development] dorimanx:
thanks. i will mod this to work in boot script and not in rc. probably init cant do that command.
[G2 Android Development] dorimanx:
next time just stay with stock. thanks.

i am working hard for all people to have something great, and there are always people that mess all, and complain.

makes me want to do it for me only.

then i count till 3, post something like this and go on. hoping not to do it again.
[G2 Android Development] dorimanx:
seems like running scripts from RC files no longer works as should. same was with f2fs script... it's was not executed.

this solution is GOOD and should work.
[G2 Android Development] blastagator:
Perhaps add button to Dorimanx app to do this? If not, that's fine too, just trying to help other people not make things a mess :good:

Thank you much for all work! Ignore the people who break things. They probably don't even read OP before messing phone up!

Also, silly thing I notice (that doesn't matter). I noticed you didn't push commit to change version on git to 2.9.
[G2 Android Development] barturblits:
Did a fresh install of dorimanx and could not change profile to performance so reverted back to stock kernel. Had the same problem as d_schizzo, gsm not working with stock. Made a backup before flashing kernel so restored that and no harm done. Btw I read the OP and still broke something but thats the idea of testing right? And helping others to fix problems during testing. Gonna try dorimanx kernel later next week again when I have more time and do some logcats when I find problems.
[G2 Android Development] renzo090513:
Testing darkness in every gov and alucard hotplug and everything seems to be fine and smooth. Battery life is also great. Thanks for the work and go on like this, you are the best.

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] samuele94:
Reboot (profile reset on boot) with interactive, no problem with other gov ( only darkness and intellimand reboots) here is log (dorimanx 2.9 and srk 2).Thanks for you work!
[G2 Android Development] :
Clean flashed 30b this afternoon. No issues with 2.9 so far and I've been using the device a lot. Re installing apps and stuff. ☺
[G2 Android Development] Nigglenuts:
I've been using darkness governor since 2.9 was released. No problems thus far.

Edit: Just had a reboot with darkness. Nightmare is working though haha
[G2 Android Development] samuele94:
which max freq do you use? It reboot with my g2
[G2 Android Development] dorimanx:
for best stability do not change cpu0 cpu gov. just leave it ONDEMAND.

this will help with all reboot problems.

2.9 kernel downloaded over 10000+ downloads! we are ONLINE and seen over the earth! enjoy :)

And thanks for support and trust!
[G2 Android Development] Lizzacore:
Why the kernel get unstable with the changes gov from cpu0 ? For me , I have nightmare on all cpus it's only get laggy. Its because this ?

Sendet from my LG-D802 with Tapatalk!
[G2 Android Development] markus4000:
Well I think I will from now on. I'm sad you seem to get angry about my post, I tried to be as positive as I could. I don't mess with anything but your kernel just doesn't want to work with my phone and I accept that now. I really appreciate your work though. I develope apps myself (no hardcore kernel stuff) but I know how hard it can be when people have errors one can't reproduce or even understand.

I just didn't expect a broken rom after flashing a kernel, which I guess was foolish of me.

Keep up the good work. ;)
[G2 Android Development] oudbrood:
Deleteplease
[G2 Android Development] siggey:
Titanium here work well as normall app, no root problems.

_____________________________________Read more write less and be smart
[G2 Android Development] dorimanx:
Always do backup when i release something that not for all.

Kernel is like changing car engine. Rom is the car.

So yes. Make sure you did all right.

Sent from my LG-D802
[G2 Android Development] dorimanx:
I cant alswer that. I dont know.

This what we learned about lp.

Stock kernel use ondemand on core0 so we should too.

But we can set any other on cores1,2,3

Sent from my LG-D802
[G2 Android Development] Peppe91:
I've noticed a silly thing [emoji1] with same daily usage between stock kernel and dorimanx.. With stock I had at lesst 500 mb of free ram in every circumstances, with dorimanx sometimes free ram goes down until 200/300mb.. Phone it's incredible fast, stable and I really like this amazing kernel so I don't care if I see more or less ram.. The important thing is that goes great and it does! Just reporting my impression about it. [emoji1] ?

Inviato dal mio LG-D802 utilizzando Tapatalk
[G2 Android Development] Lizzacore:
Now i habe cpu0 gov on on-demand and everything is fine and smooth.

Still 33k points an antutu( if anybody is interested) but I can't trim the cache (not f2fs formatted) is this a bug about SELinux ?

Sendet from my LG-D802 with Tapatalk!
[G2 Android Development] dorimanx:
cache is too small cant be trimmed.

and no one care about antutu :)
[G2 Android Development] dorimanx:
free ram is a wasted ram. kernel convert it to cached boosted RAM that ready to be used by APPS or write access.

free ram will not go lower than 120MB and that on default OOM profile.

that is all you need to know. all the rest managed by kernel. no need to have free uncached RAM.
[G2 Android Development] 60nine:
alucard on all cores works just fine here (since 2.4 on d802)
[G2 Android Development] dorimanx:
i will set something like this. thanks for idea.
[G2 Android Development] dorimanx:
thanks for you work on update.

But can you please restore the underlines on every tunable value? (freqs govs and others) it's looks too FLAT...

no difference from one control to other...

in older version, you can see clearly every paragraph and control, separators and colors...

in new app all that is gone... it's just flat text... dont take it to hearth but i like the old style more... YOU did great job there!

Dont fall for others mods that brake your style!

If you can please make graphic restores... the green selectors, kind of nice i guess...

Thanks for your time and work.
[G2 Android Development] marek_poland:
[MENTION=2376110]dorimanx[/MENTION]

Thanks for your hard work and excellent kernel. Everything works, no problems, no lags:)

I had your kernel on my previous phone(SGS2) and everytime you have made a great job.

Small donation from me:

5XL34423DM539980V

PS. Titanium Backup works perfectly on disabled selinux
[G2 Android Development] dorimanx:
good to see you here too. :)

Thanks for support :)

all my apps works ok with selinix OFF.
[G2 Android Development] goran_oh:
All apps works ok for me to with selinix OFF,great job.

Sent from my LG-D802
[G2 Android Development] renzo090513:
Do you have a debloated rom? Cause with any rom i have 500mb of free ram but when i use SRKROOM the more-debloated version i have 900mb of free ram. And now with dorimanx kernel have 1.2 gb of free ram. And when i have some app in the backround goes down till 400mb max.

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Android Development] MilanStojkovic:
2.9 on vs980 3.1.0 xdabbeb

First time using dorimanx kernel. I followed the kitkat thread for a while now and couldn't wait for the lollipop one to come. And here it is! You sir truly are a master!

Default profile, didn't mess around with anything.. Holly cow! I have never seen my phone this smooth! Battery life is amazing! All the apps are working, wifi, gps, bt, everything... Just leave it on default and enjoy the best lollipop experience so far.

VS980 users, do yourself a favor and flash this beast. Xdabbeb's rom too. I think I am done with flashing for a while :victory:
[G2 Android Development] drew150931:
[MENTION=2376110]dorimanx[/MENTION] if i want to re flash the 2.9 kernel do i need to turn off or turn on the selinux hard on off in dorimanx apps? Or direct flash it tru twrp? Also going back to stock kernel do i need to turn on selinux hard on off? Thanks
[G2 Android Development] Peppe91:
I do not have a debloated Rom, i have stock with some lg apps disabled.

I'm wondering one thing, does someone use greenify app? I do, because I don't like fb or social running. Also I noticed a little bit of more battery. Does greenify could Interfere with some memory teak of dorimanx? Thanks in advance

Inviato dal mio LG-D802 utilizzando Tapatalk