[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] rajatgupta1998:
Introduction

NOTE:

Hello everyone, this is my first kernel for the Moto G4 Plus. I will try to maintain a stable kernel however bugs might arise since I'm not a super star kernel developer. I hope you enjoy the releases.

Important information

I will not reply to complains that do not include clear steps to reproduce the bug, a logcat, and a console ramoops (if random rebooting) or a dmesg (any other issues). Follow this guide to do this.

Features

Here are the major features of the kernel (feel free to explore Github)

Update to date with the latest Linux upstream version (3.10.108-EOL)

Westwood as the default congestion algorithm with many more to choose from

Several subsystems converted to use power efficient workqueues

Compiled with Google's arm-eabi 4.9 toolchain

Audio control from flar2

Downloads

Oreo 8.0 : https://sourceforge.net/projects/babyfish-kernel/files/athene/oreo_caf/

Nougat 7.1 : https://sourceforge.net/projects/babyfish-kernel/files/athene/nougat_caf/

Nougat 7.0 Stock :https://sourceforge.net/projects/babyfish-kernel/files/athene/stock_nougat/

Installation:

NOTE: Please make sure that you return to the stock kernel of the ROM before flashing this kernel. The kernel is unified for Moto G4 and the Plus variant so everything should be working fine.

Install the latest adb and fastboot: https://developer.android.com/studio/releases/platform-tools.html#download

Grab the boot image from the download links above

Method 1:

Using adb and fastboot

Reboot into the bootloader using either restart and hold power button and volume down or adb:

adb reboot bootloader

Flash the boot image. Run the following command in the folder with the boot image and ensure fastboot is in your PATH:

fastboot flash boot <boot_image_name>.img

Reboot and profit!

Method 2: TWRP

Keep the bootimage on your phone's storage and boot to TWRP.

Install > Select Install Image > Choose the image > Boot partition > Reboot

Changelog

28 November 2017

Oreo-CAF:

Initial Release
Introduce Tossug Baby Fish kernel
Add Sound Control
Add TCP congestion algos
Disable crc check for 30% performance improvement in I/O
Linux 3.10.108

Nougat-CAF:

Initial Release
Introduce Tossug Baby Fish kernel
Add Sound Control
Add TCP congestion algos
Disable crc check for 30% performance improvement in I/O
Linux 3.10.108

Stock N:

FAQs

1.1 Q Can you help me I have this problem?

1.1 A I will surely try to help if proper bug reporting is done as per the fashion described above.

1.2 Q: Can you add xyz feature?

1.2 A: If you link me the commits or tell me what kernel you had the feature in, I can take a look at them. I will not add any useless governors or features that I don't find practical.

1.3 Q: How do I control the kernel?

1.3 A: I recommend using EX Kernel Manager or Kernel Auditor (Both need root)

1.4 Q: OMFG MY BATTERY SUXXXX PLS FIX!!!

1.4 A: The kernel doesn't drain any battery unless you have overclocked it, I have kept it at stock frequencies and voltages. Use an app like BetterBatteryStats to figure out what app is screwing with your phone.

Thanks to:

The various other developers for their patches (if you want a specific mention, please let me know)

All of you guys for viewing the thread

Thiago Neves @lcrd512 and Abhijeet Bohra.

Kernel source links.

8.0.0 CAF : https://github.com/tywinlannister7/android_kernel_motorola_msm8952/tree/oreo_caf

7.1 CAF : https://github.com/tywinlannister7/android_kernel_motorola_msm8952/tree/nougat_caf

7.0 Stock :

If you like my work, buy me an Appy Fizz or whatever you like :)

https://www.paypal.me/tywinlannister7 :good:

XDA:DevDB Information

Reviver Kernel, Kernel for the Moto G4 Plus

Contributors

tywinlannister7

Source Code: https://github.com/tywinlannister7/android_kernel_motorola_msm8952

Kernel Special Features:

Version Information

Status: Stable

Created 2017-11-28

Last Updated 2018-12-10