[G3 Original Android Development] Tectas:
RIN Kernel for D855/P/K | F400/K/S/L | D852

Close to stock with some sugar added ... delicous!

Hey guys and girls,

you may have seen my unified stock kernel thread already (or may not, but doesn't matter). This kernel is my attempt to build up on the fixed source and add some additional features for us mod lovers to thinker with and to personalize your device to your usage. For now, I'll keep it close to my stock source and just pull some additional features and fixes in, but not to much. That may change in the future (maybe even soon), but for now, I'll stick to that paradigm.

First of, DISCLAIMER, I'm not responsible for bricked devices, dead unicorns, rainbows with missing colors, world war, nose bleed, void warranty (you know that already, don't you? your warranty is void now and it's your fault :P) or any other harm happening to your device, you or people around you!

What does it serve? (Features)

Built with sabermod 4.9 toolchain

IO Schedulers

BFQ

CFQ

DEADLINE

FIFO

FIOPS

NOOP

ROW (default)

SIO

TRIPNDROID

VR

ZEN

Governors

Adaptive

Conservative

DanceDance

IntelliActive

IntelliDemand

Interactive (default)

Lagfree

Lionheart

OnDemand

Performance

Powersave

SmartassV2

Userspace

Wheatley

Smartmax

TCP Congestion Algorithms

BIC

Westwood

Vegas

Veno

Yeah

HTCP

Cubic (default)

Reno

init.d support

intelliplug

intelli thermal v2

Memutil optimizations

Voltage control

SoundControl

OC to 2.7GHz and UC support

Cpu limiter

2-Way Call Recording support

Simple GPU Algorithm

Simple_ondemand GPU Governor fixed

exFat support

ntfs support (bugged)

Oversharpening fix

DriveDroid support

android logger sysfs toggle (disabled by default)

high priority workqueue

Many under the hood fixes

Stability

More to come

How to apply it? (Installation)

IMPORTANT: Read through all the requirements, steps and warnings before you do anything, if any requirement doesn't match or you don't know what one or more of the steps below mean or do, ask before you do any of them, if you don't know how all the steps can be done, let it be, I warned you, if you don't do and something bad happens, I'll just laugh at you!!

Requirements? Yes!

D855/P/K, F400/K/S/L, D852

Custom Recovery

Stock or Stock based ROM (no AOSP)

How to flash the kernel?

Download zip

Place on internal or external SD

Reboot to recovery

Choose install zip

Search for the downloaded zip

Confirm flashing

Wipe cache

Reboot

Have fun

How to boot unbumped kernels?

Only needed for the img files prior version 1.7

Plugin your device to the PC

Open a terminal and execute

adb shell # open a shell over adb
su # change to superuser
dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/storage/external_SD/stock-laf.img # backup the stock download mode to your external sd
exit # exit the superuser shell
exit # exit the adb shell
adb pull /storage/external_SD/stock-laf.img . # backup the download mode image from you external sd to the PC
adb shell
su
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/laf # remove the stock download mode

BEWARE, THIS WILL REMOVE YOUR DOWNLOAD MODE!!! YOU WON'T BE ABLE TO FLASH KDZ FILES BEFORE YOU RESTORED IT!!!!

Turn off the device completely, plug in the USB-cable, if you pulled it out and start the device by holding vol up + power till you see some white text on the screen, fastboot should be written somewhere on the screen, afterwards execute the following command on the PC (while in the directory you've downloaded the kernel image to).

D855:

fastboot boot D855-rin-1.6.img # boot the kernel

F400:

fastboot boot F400-rin-1.6.img # boot the kernel

BEWARE, NEVER USE FLASH AT FASTBOOT ONLY BOOT, IT WILL TRIGGER SECURITY OF THE LOCKED BOOTLOADER AND YOU WON'T BE ABLE TO BOOT ANYMORE!!!!

You're done now and booted to the custom kernel!

How to make sure you're running the kernel?

To check if you properly booted into the kernel execute this in the command line (terminal emulater or through adb shell):

cat /proc/version

it should show

Linux version 3.4.0-rin-g58903a9-dirty (tectas@tectas-rogg750jx) (gcc version 4.9.1 20140710 (prerelease) (crosstool-NG linaro-1.13.1+bzr2673 - Linaro GCC 2014.07 - Cortex-A15) ) #53 SMP PREEMPT Thu Aug 14 13:26:42 CEST 2014

Once more a warning READ IT!!:

BEWARE, when you reboot you'll boot to the stock kernel, you'll have to boot the custom kernel over fastboot every time, when you boot normally, you'll be on the stock kernel, this won't lead to issues, but you'll miss the benefits of this kernel, I know that's not optimal, but the best we can get with the locked bootloader.

How to restore Download mode?

adb shell # open a shell over adb
su # change to superuser
dd if=/storage/external_SD/stock-laf.img of=/dev/block/platform/msm_sdcc.1/by-name/laf # restore the stock download mode from the backup on your external sd

Changes? (Changelog)

26.11.2014/1.8.5

Less frequency steps to UC (better performance for governors hitting each step)

Oversharpening fix (Credits to [MENTION=2174433]Skin1980[/MENTION])

Kernel now flashed with dd within recovery

Added external radio-iris-transport module to fix fm radio

20.11.2014/1.8

lollipop support (credits to [MENTION=2174433]Skin1980[/MENTION] and his rooted ramdisk)

build with sabermod 4.9

Graphite build flags

NTFS support

sysfs interface for android logger (Logger disabled by default)

TCP cong algorithms (BIC, Westwood, HTCP, Vegas, Veno, Yeah)

More frequency steps between 300Mhz and 2.7Ghz

17.11.2014/1.7.2

Raise max microvolt at cpu for pm8941 and pma8084 (Possible Green Screen Fix)

Additional warnings fixed

11.11.2014/1.7

D852 support added

images bumped

flashable zip

init.d support (busybox required)

AIO optmimizations enabled

intelli plug added (credits to [MENTION=3332811]faux123[/MENTION])

****load of warnings fixed

23.10.2014/1.6

D850 support added

Simple GPU Algorithm Support

Overclocking up to 2.76 Ghz

exfat support

intelli-thermal v2 added

smartmax governor added

memutil optimizations

build with NEON kernel mode

2-way call recording patch

DriveDroid cdrom emulation support

Faux SoundControl

Simple-OnDemand fixed

Cpu Freq Limiter

some small fixes and enhancements

17.08.2014

Support for F400 variants added

14.08.2014/1.0.1

net/ipv4|include/asm-generic: Enhancement of out of bounds fix

14.08.2014

Initial release

Full list of commits can be found here

Where to get it from? (Download)

AndroidFileHost | xda | dev host | google drive | trialsrider1

Let me test!! (Beta Testing Community)

Google+ LG G3 Beta Testing Community

Show me the so(u)rce(ry)! (Source Code)

https://github.com/tectas/android_kernel_lge_msm8974ac/tree/rin-kitkat

Donators (huge thanks, you're simply great :) )

[MENTION=5994672]Toneman07[/MENTION]

[MENTION=4513560]Helloworld294[/MENTION]

[MENTION=56253658]shaarky[/MENTION]

[MENTION=4652765]Dreamxtreme[/MENTION]

[MENTION=3647976]guyd[/MENTION]

[MENTION=57063146]mosincredible[/MENTION]

[MENTION=4877142]tobitege[/MENTION]

[MENTION=4204233]AndroidUzer[/MENTION]

Credits

XDA

Google

LG

[MENTION=1211160]HolyAngel[/MENTION]

[MENTION=3332811]faux123[/MENTION]

[MENTION=3505796]KAsp3rd[/MENTION]

[MENTION=4152171]myfluxi[/MENTION]

[MENTION=3164832]trialsrider1[/MENTION]

[MENTION=2174433]Skin1980[/MENTION]

[MENTION=947981]Lord Boeffla[/MENTION]

[MENTION=4884121]GuneetAtwal[/MENTION]

[MENTION=2784807]DooMLoRD[/MENTION]

If you like my work, please show your appreciation by pressing the thanks button, if you want to do more, i've nothing against a little donation, but I'm as happy when you just thank me by pressing the button :)

XDA:DevDB Information

Rin Kernel, Kernel for the LG G3

Contributors

Tectas

Source Code: https://github.com/tectas/android_kernel_lge_msm8974ac/tree/rin-kitkat

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: 1.8.5

Stable Release Date: 2014-11-26

Created 2014-08-14

Last Updated 2015-01-09