[G3 Original Android Development] Tectas:
RIN Kernel for D855/P/K

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

Intelliminmax

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

root support

Voltage control

SoundControl

Intelliplug

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)

F2FS support

Enhanced Oversharpening fix (set to 22)

DriveDroid support

KSM

android logger sysfs toggle (disabled by default)

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

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.0

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)

12.12.2014/1.2

F400 support added

F2FS support

NTFS fixed

intellimm added

intelliplug readded

intelliactive and intellidemand removed

loads of upstream changes from V20C F400 Source

V20D ramdisk

boot partition clean up before flashing kernel in updater-script

28.11.2014/1.1

selinuxfs storage fix

Build in KSM module

26.11.2014/1.0

Initial Release

Full list of commits can be found here

Where to get it from? (Download)

google drive | AndroidFileHost | dev host

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-lollipop

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

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: 1.2

Stable Release Date: 2014-12-12

Created 2014-11-26

Last Updated 2015-01-09