[Nexus 7 Android Development] namerke:
*** Disclamer ***
[U][COLOR="red"]NOTE: This is an experimental build with some bleeding edge features enabled.[/COLOR][/U]
I'm not responsible for anything that may happen to
your tablet as a result of installing custom roms and/or kernels.
You do so at your own risk and take the responsibility upon yourself.

CREDITS:

Ziyan , Sheffzor for setting up their Unlegacy Android project, which is the base of this experimental build.

If you can afford to support some of the developers, please donate to them instead of me.

Shout-out to:

AndDiSa, ParrotGeek, daniel_hk, and franciscofranco for their involvement in Nexus 7 kernel/ROM development.

Features:

The same as Unlegacy Android's kernel, with the addition of ZRAM & ZSMALLOC from upstream kernel 3.10 , and with the addition of SDCARDFS.

Installation:

0. MAKE A BACKUP

1. This kernel is compatible with Unleagcy Android's ROM only, and nothing else.

2. If you have the above mentioned ROM installed, boot in to bootloader mode and flash the boot.img with the following fastboot command:

fastboot flash boot boot.img

3. If you were previously rooted, don't forget to re-apply root to avoid any related boot loops.

4. Altough ZRAM is added as a feature you have to actually set a size to it in Kernel Adiutor (or some other similar kernel manager app)Download#1/Download#2 and tick "Apply on boot" and reboot your device to turn it on.

Or alternatively create an init.d script to enable it with your desired size at boot.

You can verify if your swap/zram device is working by typing "free" or "vmstat" into a terminal emulator.

If the size of the swap device is anything but 0, it will work.

[IMG="ZRAM"]http://i.imgur.com/nm0ud1u.jpg[/IMG]

Zram is set to LZ4 compression and 4 streams by default, swappiness is set to 50.

5. [Optional] SDCARDFS is enabled by default , you can verify that its working by typing the following commands into a terminal emulator:

su
df -t sdcardfs

If some lines shows up like on the picture below then SDCARDFS works just fine.

[IMG="SDCARDFS"]http://i.imgur.com/OrUEWMQ.jpg[/IMG]

6. Various ramdisk scripts like re-mounting the drives and trimming are currently not added, to avoid any bug reports related to these additions. You can still use SSD Boost or FSTrimmer app to achieve these effects. If this build proves to be stable enough we can look in to adding the scripts to the ramdisk.

7. Have fun

Bugs:

Same as on the base 3.4, for example I rarely encounter a hang/freeze with some graphical glitches, but it's pretty much the same with the unmodified base version.

Due to the lack of a Tilapia device, I was only able test the kernel on a Grouper.

SDCARDFS is highly experimental, it caused some issues on other devices for some users (like space not freeing up after deleting some files), although it works fine for me, you should bear this in mind when you install this kernel.

As mentioned above, you have to either enable swap for zram via an init.d script or via a kernel manager app like Kernel Adiutor.

This is despite the fact that the block device is added to the fstab and swapon_all is added to the init.grouper.rc . Still have to figure out how to get around this, but currently i don't have the time to do so.

Downloads:

Check the downloads tab at the topic title, or

click here for the download link

Sources:

https://github.com/csabaszalonna/android_kernel_nvidia_tegra3

Changelog:

2017.06.26

Initial release

Added and enabled ZRAM & ZSMALLOC from upstream 3.10

Added and enabled SDCARDFS

Enabled F2FS for both Cache & Data

XDA:DevDB Information

[TEMPORARY HALT][ALPHA][3.4][ZRAM][SDCARDFS]Experimental Nexus 7 kernel build, Kernel for the Nexus 7

Contributors

namerke, Ziyan, Sheffzor

Source Code: https://github.com/csabaszalonna/android_kernel_nvidia_tegra3

Kernel Special Features: SDCARDFS, ZRAM, F2FS CACHE/DATA

Version Information

Status: No Longer Updated

Created 2017-06-26

Last Updated 2017-11-10