AndroPlus Kernel
for Xperia Z4 Tablet
Requirements
  • Xperia Z4 Tablet [SGP712 / SGP771]

  • stock 7.0
  • 32.3.A.0.376 -> v43 -
  • stock 6.0.1
  • 32.2.A.5.11 -> v42
  • 32.2.A.4.3 -> v41
  • 32.2.A.0.305 -> v39 - v40
  • 32.2.A.0.253 -> v34 - v38
  • 32.2.A.0.224 -> v31 - v33
  • stock 6.0
  • 32.1.A.1.185 -> v23 - v30
  • 32.1.A.1.163 -> v20 - v22c
  • stock 5.0.2
  • 28.0.A.8.260 -> v10 - v14
  • 28.0.A.8.251 -> v4 - v8
  • 28.0.A.7.24 / 28.0.A.7.27 -> v1 - v3

  • Unlocked bootloader
Download

--------------------------------------
How to install

1. Reboot into recovery or bootloader
2. Flash kernel using recovery or fastboot
WARNING: Make sure you downloaded correct zip for your model.
Recovery - Install zip
fastboot - Extract boot.img from zip and run this command:

fastboot flash boot boot.img
If you have no recovery, you also need to flash recovery by this command:
fastboot flash recovery TWRP-***.img
NOTE: You can download TWRP for both SGP712 and SGP771 in this page.
3. Reboot
4. Done!

Changelog
--------------------------------------
Please refer to kitakami r2 changelog. v24
Added cluster_plug
Enable hotplug (1=enable, 0=disable):
echo "1" > /sys/module/cluster_plug/parameters/active
Enable low power mode (1=enable, 0=disable):
echo "1" > /sys/module/cluster_plug/parameters/low_power_mode
Disabled workqueue
Separated download page for LTE SGP771 and Wi-Fi SGP712 model

v23
Updated ramdisk to 32.1.A.1.185
Added fix for bug in bcl
Added fix for CVE-2016-0774

--------------------------------------
v22c
Added some optimizations
Added support for USB to Ethernet Adapter

v22b
Disabled some unneeded drivers

v22a
Disabled CPU Quiet as it caused random reboot

v22
Added CPU Quiet - "runnable" is recommended.
Disabled msm_performance hotplug
Disabled touch input boost by default (it causes conflict with CPU Quiet)
Removed undervolting since it isn't working
Added some optimization patches

v21
Removed PowerSuspend due wakelock problem
Added support for cdrom (DriveDroid)
Set ROW I/O scheduler as default
Fixed overflow in /sys/kernel/debug/msm8994_cpuinfo (thanks Tommy-Geenexus)
Enabled elementalx CPU governor
To limit CPU freq and fix CPU governor, run script like this:
for i in `seq 0 7`
do

if [ $i -le 3 ]; then
if [ -e /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq_hardlimit ]; then
echo "1344000" > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq_hardlimit
fi
fi

if [ $i -ge 4 ]; then
if [ -e /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq_hardlimit ]; then
echo "1536000" > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq_hardlimit
fi
fi

if [ $i -le 3 ]; then
if [ -e /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor_hard ]; then
echo "elementalx" > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor_hard
fi
fi

if [ $i -ge 4 ]; then
if [ -e /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor_hard ]; then
echo "elementalx" > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor_hard
fi
fi
done
Note this is incomplete and you will loose those settings sometimes...

v20
Updated to Android 6.0 Marshmallow 32.1.A.1.163
Removed underclock due it break build
--------------------------------------
v14
Added undervolting (thnaks Hundsbuah)
*Note: Please don't blame if you get random reboot after undervolting.
Updated workqueue
Fixed some bugs and logspam

v13
Added thunderplug - hotplug & load balancer
Enable hotplug (1=hotplug, 2=load balancer):
echo "1" > /sys/kernel/thunderplug/hotplug_style
Change endurance mode (0=disable, 1=quad core mode, 2=dual core mode):
echo "1" > /sys/kernel/thunderplug/endurance_level
Disable hotplug and Enable load balancer (default):
echo "0" > /sys/kernel/thunderplug/endurance_level
echo "2" > /sys/kernel/thunderplug/hotplug_style
Change load balancer mode (1=Balanced, 2=Turbo performance):
echo "1" > /sys/kernel/thunderplug/sched_mode
Added saving log of kernel panic (pstore)
previously it was last_kmsg, but now log location is
/sys/fs/pstore/console-ramoops
Fixed kernel crash when msm thermal limits CPU freq
Added ZZMoove (test version)
Added some patches

v11
Added patch commits for performance
Added power_efficient workqueue
Added option to disable Gentle Fair Sleepers in kernel adiutor and other apps
Added elementalx and conservative CPU gov
Added option to control throttle temp
Mute logspams: e.g. _cpu_up: attempt to bring up CPU n failed

v10
Update source to 28.0.A.8.260
Added toggle for preventing wakelock
Added Powersuspend
Added some patch
Changed version name to contain version number: e.g. 3.10.49-v10 AndroPlus@org #10
NOTE: The number after # is random number.

-------------------------------------
Show older changelog
v8
Updated sound control
Reverted patches for crypto as it causes softbrick

v7
!Important! Changed to load recovery image only from recovery partition to reduce file size
* You can download my TWRP image from same folder of download link
fastboot flash recovery TWRP-2.8.7.0.img
Changed sound control to tomtom_control (thanks Tommy-Geenexus)
Enable tomtom-sound-control:
echo "1" > /sys/class/misc/tomtom_control/enabled
Change headphone volume (first one is left, second is right. From -20 to 20)
echo "-1 -1" > /sys/class/misc/tomtom_control/hpgain
Change mic volume (first one is left, second is right. From -20 to 20)
echo "-1 -1" > /sys/class/misc/tomtom_control/micgain
Change camera mic volume (first one is left, second is right. From -20 to 20)
echo "-1 -1" > /sys/class/misc/tomtom_control/cmicgain
Added some patches for crypto
Muted some logspam

v6
Fixed brightness in TWRP
Added impulse CPU governor
Added Boeffla Sound
*This is not included in Kernel Adiutor for now.
To enable, you have to run command or mod file with root explorer.
Enable Boeffla Sound:
echo "1" > /sys/class/misc/boeffla_sound/boeffla_sound
Change headphone volume (first one is right, second is left)
echo "-1 -1" > /sys/class/misc/boeffla_sound/headphone_volume
Added Zen I/O scheduler
Added some optimizations

v5
TWRP is now working!
Merge fxp's patch for touch driver

v4
! this version and above are kernel for 28.0.A.8.251 !
Disabled DM_VERITY and CORESIGHT (debugging)
SELinux is now Enforcing
-------------------------------------
Show older changelog
v3
Updated kcal and cpuquiet
Added some patches

v2a
Enabled loading recovery image from recovery (FOTAKernel) partition

v2
Added KCAL
Added additional TCP cong algorithms
Added intelli_thermal v3.0
Added CPUQuiet
Enable all cores at boot for faster booting
Added sysfs interface to Enable / Disable Android Logger (/sys/kernel/logger_mode)
Enable class AB sound by default

v1
First custom kernel!
GPU clock 630Mhz
Some GPU related patch
I/O scheduler SIO and FIOPS
ric disabled (thanks DHGE!)
half-insecure adb (thanks to security...)

--------------------------------------
Source
More from AndroPlus

FTF for Japanese Xperia

Mega collection of FTFs for Japanese models. If you have FTF which is not listed on the website, please send me via Google Drive or PM me on xda.

Xperia Codename List

The list of codenames of all Xperia!

Get my Xposed modules for Xperia

Simple and effective Xposed modules for Xperia devices - you can enable hidden features and mods with one tap.

Go to my blog, AndroPlus.org

My blog for Xperia related information. Sorry, but most blog posts are only displayed in Japanese.