yashsingh1/xdaforums huggingface dataset:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] AgentVoid:
Every time I install the kernel it still on stock kernel why?

I am on crdroid
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] bollt.zain:
Will it work on OREO CUSTOM ROMS?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] AgentVoid:
Is there any one active who can solve my problem? Iam unable to flash kernel on my device. After flashing kernel and bootlogo still nothing happening it still on stock boot logo and kernel. If someone is active here please solve my issue.

ROM crdroid official 7.1.2

Device harpia

Twrp ver 3.2.1-0

:crying:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] BouncingState:
Dear bro :( Forget Nougat and install Oreo (AOSPExtended v5.7), also you don't need any kernel in Oreo. You will love it. Also, update that TWRP Recovery to 3.2.1-1 :)

https://xdaforums.com/devdb/project/?id=16870#downloads

https://xdaforums.com/showpost.php?p=77064089&postcount=261

Don't forget the OpenGapps :) I use SUPER :)

ARM/8.1/[As you wish: Super, Stock, Full]

https://opengapps.org/
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] AgentVoid:
I heard some battery draining issues on aospex because before I used pixel exp before and it also has some battery and performance bugs... That's why I am still on nougat
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jcruzcruz35:
Works for Moto G4 2014 Athene not play?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Oronno Chy:
I will highly recommend u to try AOSP Extended v5.8. No battery draining issue I found & no bugs rather battery backup is good enough. Its the best ROM I've used on Harpia. U can watch details from here: [youtube]Xez44qdX2oA[/youtube]
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] allanph:
All working please?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Sure, just in case.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] nysascape:
Thanks so much for helping. I'm on stock recovery now.

Guessing this means I'm fully set for the 7.0/1 update?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Sure, good luck, man ;).
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
1.3 (stable): January 31, 2017

Changelog

- Enabled advanced TCP congestion managers: veno, westwood, vegas, illinois, and more.

- Set default TCP congestion manager to "veno" for lesser lags while heavily loading the networking area.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] MaanasDwivedi:
Are we actually getting the Nougat official update?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] nick more:
Facuarmo:

Sorry for the question, how goes the tests with the notifications

Facuarmo: perdona por la pregunta cómo van las pruebas con le led de notificaciones????
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
It should work flawlessly, the problem is that no Java developer seems to be able to contribute by doing a notifications listener that, if present blinks LED, else no LED.

/////////

Debería funcionar sin problemas, lo que pasa es que no parece haber ayuda de algún desarrollador Java que programe un sistema en donde se vea si hay notificaciones y, si las hay, el LED parpadee, sino no.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] misutogan123:
curious to test your Kernel. Seems nice. Are the improvements noticeable compared to stock kernel? And thanks for sharing your work!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Yep, in my tests I've not noticed any thermal problems in normal use. Just charging battery on heavy workloads might overheat it now.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
ANNOUNCEMENT: New build will be up tomorrow.

Changelog

- Permanently fixed screen flickering: you won't see any flickers running SELinux in permissive, enforcing or even building the kernel again from source. (added bugfix from mainstream kernel from Moto G 2015)

Those temps rock ;).
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ronaldotalison:
In my rom (aex), this options are available on notification settings, but the notification still doesn't work. This options appears after flashing the kernel.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
There's no normal app ATM able to do it. It's just like an API. I'm trying to learn Java as no Android developer seems to want to help.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ronaldotalison:
I know something about Java, but any related with android development.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
No problem, I know it's different. I'm going to do my best to learn a bit of Android development to make the led client side.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ronaldotalison:
Thanks for the hard work, if you don't understand something about the logical, I might be helpful ☺
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Thanks, I'll contact you later if something goes wrong. But first I gotta make Windows work again as I've completely got rid of it and Android Studio lags all the way in Linux cause of my low RAM issue (4 GB).

I get the logic at most, the problem is the fact that you should write everything by yourself and that's boring and a waste of time, not like clicking and getting ready to program as happened before with VB.Net. At least, I'll get enough acknowledge to handle Objet-Oriented Programming without any help once I get this to work ?.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
2.0 (stable): February 5, 2017

---------------------------------

BROKEN BROKEN BROKEN

---------------------------------

Changelog

- Permanently fixed the screen flickering: you won't see any flickers while running SELinux in permissive or enforcing mode. This is going to work even if you build the kernel from source.

---------------------------------

BROKEN BROKEN BROKEN

---------------------------------
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] lazydesi:
where is download link mate?

thanks for your work.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Here for version 2.0:

https://xdaforums.com/devdb/project/dl/?id=23039

Good luck and the best wishes for you :fingers-crossed:.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] misutogan123:
Hi mate. After installing your kernel my phone will not reboot into system, it keeps rebooting into TWRP. Any idea what went wrong?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
I'm currently running with the latest build as my daily driver.

Maybe you flashed over dirty boot image? Try dirty flashing your ROM again (without deleting your data) and then flashing kernel.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] misutogan123:
Wow, you are fast. Trying now. Thanks!

edit: Did not work, keeps booting into TWRP. If i reinstall Lineage 14.1 Rom without your kernel it boots again normally.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Luckily I'll sleep some time later :p. Good luck, tell me if something more happens :fingers-crossed:.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jsday187:
I can confirm this, same thing happens to me with v2.0 kernel. On AOKP latest nightly and using Magisk v11.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
WARNING: Flash back to the previous version if using custom ROM. The latest build is broken and running ONLY on stock.

I'll be working hard on a fix.

More info:

2.0 is broken, power control compilation bug? Touch boost is also broken. Not yet debugged.

Remove this kernel from your device ASAP, I can't predict what might happen with daily use, even on stock.

Flashing back to 1.3 will do the trick.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ronaldotalison:
I got an error when I was flashing yesterday. Lucky.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] misutogan123:
Thank you fpr your hard work :good:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Expect new release for today. I'm working in some other projects too and don't have too much time.

This release will properly be tested on a custom ROM and it's own security requirements trying not to see any bricks so far again, I'm so sorry about what happened :(.

I'll offer some help in my free time for anyone having trouble to restore her/his device, PM(s) accepted.

Hints about my other projects: bootloader, OTG, boot, stock, flash. :fingers-crossed:

[MENTION=6307989]ronaldotalison[/MENTION] , I'm glad that this time your flash failed and you weren't in need of a boot partition restore :laugh:.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
A bit off topic, but what do you mean the bootloader is another project of yours? I've never heard of a custom bootloader being made before, so I'm curious as to what (if anything) you could modify in it.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Nope, I think it should be possible anyways. Like building a custom UEFI ROM for a computer is possible.

BTW, I was talking about tags. Like tag words, my current project is related with those things.

If no moderator hates off-topic I'm okay with it ;).
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
I think I see what you're getting at, but then again my detective skills weren't too good before were they :)

Just curious, does this kernel support voltage modifications? I have yet to find a kernel tweaker that includes voltage changing options that doesn't crash on startup, but I figured if I found one (and the kernel worked with it) I'd see how far I can undervolt and underclock my device while still getting decent performance: because, you know... battery life.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
In my experience as a constant user, I suggest using Kernel Adiutor, as it's the only one that's easy to use and show you how it does it's job (in the "On boot" tab). If something goes wrong with it (as this mobo might be hard to control or debug if the software isn't programmed as it should be) I suggest Kernel Toolkit, which seems to be a more stable but less featured and less user-friendly choice.

It's something I'm studying a lot before testing. You know, overvolting could blow up the mobo. Maybe I try later as I don't know if the default setup is okay for the voltage controller nor I know how to enable it or control it, for now, I have news:

Kernel is fixed! New build will be up in some minutes, I'm testing in custom ROM.

As you can see in the screenshot, no more avc denials :D.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Okay, all done. Based on the base regulator docs we should be able to manually control the voltage:

https://github.com/FacuM/android_ke...cetree/bindings/regulator/onsemi-ncp6335d.txt

What isn't clear for me is if the smartphone came with the I2C required, if it's enabled nor I picked the right config.

But lowering a bit the voltage can't break a single thing, I've enabled manual voltage control and I'm gonna try now. If it works, I'm gonna include it in the next version :D.

EDIT: Not working :/.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
I couldn't find voltages in adiutor, but I found it in Kernel Toolkit. Unfortunately the current kernel doesn't support manual voltage control. It would be awesome if you could put that in the next build! :D
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
2.1 (stable): February 8, 2017

Changelog

- Rolled back to default SELinux setup

- Switched default GPU governor from "msm-adreno-tz" to "simple_ondemand" for better battery and performance balancing.

- Fixed screen flickering bug by disabling debugging in graphics card. (SELinux socket overflow).

- Fixed noisy output if using audio MODs by disabling aggressive debugging for sound card. (SELinux socket overflow).

Release notes: This is a hotfix release.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] misutogan123:
testing again on Lineage 14.1 20170206-nightly build. Booted smoothly this time. Thank you. Will continue to use your Kernel :good:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Thanks for giving it a second opportunity ;). I hope you enjoy the kernel :cowboy:.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
Uh oh, new problem. Camera doesn't want to work. Running your 2.1 on the latest Lineage build from Squid. I'll get some logcats and dmesg's shortly.

EDIT: https://drive.google.com/folderview?id=0BxupjEjigG4tTmFuSFA5QXR6elk
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] misutogan123:
MY camera works fine. I'm on the latest Lineage 14.1 Build.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Jason, mine's working.

I'm currently using OCT-OS ROM. Maybe it's a ROM bug? I've checked your logs and I can't see anything related to the kernel as the core of the failure. I've just seen an error in the way your Camera app triggers the camera startup.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
I'll try switching ROMs. Rebooting and changing apps didn't work.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Okay, good luck! Tell me what happens then :fingers-crossed:.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
Switched to crDroid running your kernel, everything is good now :)
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
It's good to know yours is working again :D.

Don't hesitate on telling me if something more goes wrong :cowboy:.

PS.: I don't know if you don't care about lags but I have noticed many lags in crDroid and AOKP UI, I don't like those ROMs.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] :
After installing 2.1 with Lineage 14.1 the flickering is gone but it is replaced by my screen randomly inverting colors/high contrast (but in Accessibility it isn't enabled). Haven't tried with stock so far.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
It seems like a hardware or a mainstream bug I haven't noticed where's yet, happened on stock + stock kernel.

Mine experienced that behavior right 3 days after bought. Maybe you can offer a logcat? BTW, I solved it with a reboot and that never happened again.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] :
Seems to be fine so far, happened twice yesterday and never today.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Thanks for giving me feedback, if that happens again, please give me a logcat.

Also, please notice that it's not color inversion. Color inversion, as the name says, inverts colors to their exact counterpart, but this time, black is orange and blue is light blue (I remember that clearly).
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] :
Experienced flickering again today while playing Clash Royale. The screen quickly went to black then back to normal, then in a second it went to black again but it was longer this time.

I would provide a logcat but I have restarted my phone since then so it's lost.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
I have experienced that while using WhatsApp, at least, it's the same bug of the beginning and I have discarded other possible problems.

Now, I'm gonna play with the drivers. Guess I'll get a final fix for tomorrow or later today.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Updated thread:

- Added tested ROMs and info about bugs that might be related to kernel problems.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
Add that ResurrectionRemix 5.8.1 works, I'm using it now and it rocks with your kernel
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] :
Hmm... The high contrast thing happened twice today in the span of 2 minutes (after a reboot!). Downloading stock Lineage to restore in the meantime.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Man, that sounds pretty bad. Maybe you have a hardware issue? Please take a logcat ASAP.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Thanks for testing, added ;).
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
[MENTION=5817781]facuarmo[/MENTION] I just saw your post saying voltage mods in the kernel didn't work. What went wrong with them, out of curiosity?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Just nothing, there's no loaded driver available where to write new values for the voltage table :crying:.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
So if I gather correctly, this is part of the msm 8916 family of chipsets? If I could perhaps find another kernel in the same chipsrt family that has a working voltage mod driver, would it be possible to port it to our kernel?

Edit: meant 8916
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
I guess it'd be possible, but many manufacturers just change many hardware parts. It's not absolutely obvious that it'll work.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
I honestly have no idea how kernel development works (as you can probably tell). I figured it was like ROMs where you can "borrow code" from ROMs on similar devices. But if you think it would help at all, I can look for a kernel for a similar device that supports it and let you know what I find.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
In my experimentation, nothing from the MSM8916 base chipset is working as Motorola changed many hardware parts to a base called Motorola MSM8916, if you can find a kernel for that last base and it works with voltage control, please give me the sources link or the official XDA post.

Thanks in advance ;).
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
Well here's what I came up with after about a minute of research:

SQUID KERNEL FOR MOTO E LTE Here's a kernel for the Moto E LTE (surnia) by squid2, the same user that made the squid kernel for our device. The Moto E LTE uses the same chipset that our devices does: the Snapdragon 410. This kernel doesn't seem to have actual dynamic voltage control, however it is listed in the features that the kernel comes "moderately undervolted". Perhaps just the code that undervolts it from the get-go can be of some help?

VEGITO KERNEL FOR MOTO G4/G4 PLUS Here's a kernel by Dreamstar for the "athene" G4/G4 Plus lineup of devices. This one doesn't say anything about voltages but it does mention something called "arch power" being enabled. I have no idea what that is (and neither does my search engine), but I put it here just in case it's something we can use.

I'll post back if I find anything else.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Thanks for your research, but both of these kernels are just like Squid's ones. "Moderately undervolted" means modding the fixed voltage table, not enabling any other driver.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
In my testing, I ended up noticing that the problem is in the GPU clock management. Please try switching to a max freq of 310 MHz and report back in some hours.

If that works as I think it does, the fix would be as easy as simply changing the max freq to something a bit lower.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] nysascape:
Yup, it's confirmed by Motorola. Search it up.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] MaanasDwivedi:
Hi, I can't get any audio mods to work on this kernel. I've tried it with two ROMs (RR and AOKP) but the audio service crashes. For installing the audio mods, we need to change the SeLinux mode to permissive and this is probably what's causing the error. I'm using the latest version of the kernel.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
I use EqualizerFX from the play store which works fine without root. For advanced stuff like ViperAudio I'd say just wait until they officially support Nougat.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Federic999:
I am using it in Resurrection Remix 5.8.2 but the battery does not have the duration of when it was in stock, it arrived at the 6 hours of screen, will be by the rom or by the kernel? Sorry for my english, use Google Translator

La estoy usando en Resurrection Remix 5.8.2 pero la bateria no tiene la duracion de cuando estaba en stock, llegaba a las 6 horas de pantalla, sera por la rom o por el kernel? Perdon por mi ingles, utilice Google Traductor
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
I doubt it's the kernels problem, I'm using this kernel with LineageOS and the battery is fine. It's probably the new build of Resurrection.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Hi guys, nope I'm not dead (even if you wanted me to), I was just sort of busy and decided to take some time away from this.

Now, I have good news :cowboy: (yep, free time makes me think better). I've found an experimental supposedly permantent workaround for the screen flickering.

A detailed explanation will be added below:

Download Systemless SuperSU (click here)

Download SuperSU Fix (click here - thanks to [MENTION=5723969]parrotgeek1[/MENTION])

Flash both (first fix and then SuperSU) - if you forget that, just do it again in the right order and you'll be good to go.

Reboot to Android

Open a Terminal, don't have one? This one is a basic but totally stable and working. (click here)

In the terminal, type:

su -c 'supolicy --live "allow system_server system_server unix_stream_socket ioctl"'

(It'd be better if you copy-paste everything, maybe you get typos if you write it by hand.)

You should get an output similar to the next one:

If something else prints, please tell me. Also, I beg for logcat(s) and some feedback about a long run with this SELinux policy modification.

** SIDE NOTES: Only tested on Stock ROM. At least until now (1 hour running) it's running fine.

Good luck :fingers-crossed:. Later, I'll keep trying to fix all SELinux bugs and then release an all-in-one .ZIP with kernel and sepolicy fixed.

EDIT: 16 hours running fine :).
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
After a little research, I've found a really good and absolutely simple app that can help you keep the SELinux policy up and running. Try it and let me know later please ;).

[YOUTUBE]https://youtu.be/YOFN2aDOyq0[/YOUTUBE]
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] RawSlugs:
How can I get notification light to work?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
Somebody needs to make an app that supports it. He has the code to do so on the OP, but it isn't "built in" with all ROMs so to speak.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
Well the last time I tried to compile a ROM from source it didn't turn out so well, but I think I'm going to give it another go. I know there's a way to implement a custom kernel's source into the Android ROM source so when you launch the build command it builds the ROM with the custom kernel already compiled into it, but I can't find any articles or guides that tell me how to do this. [MENTION=5817781]facuarmo[/MENTION], if I can figure this out, would you mind if I use your kernel in my build?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] nayan deka:
Can I flash this kernel over RR 5.8.2 ..??

I am using XT1602..

Also this kernel gives good battery backup?

:D:D
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] grinder777:
Yep, it's running fine with latest RR on my 1602 ...

you will have many options to optimize batterie

Have fun!

Gesendet von meinem Galaxy Tab 2 3G mit Tapatalk
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] facuarmo:
Hahaha, no need to ask. It's released under GPL.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] :
I've decided to install it on stock (not rooted) and it's performing really good. However when I'm playing simple 2D games, where I usually have above 60FPS, I get below 24 on parts where there wouldn't be any drops with stock. On stock it works all fine.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Tonystarki:
is possible add double tap to wake?