AndroPlus Kernel
for Xperia Z5 / Z5 Compact
Requirements
  • Xperia Z5 [E6653 / E6603]

  • 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
  • 32.1.A.1.163 -> v20 - v22c
  • stock 5.1.1
  • 32.0.A.6.200 -> v6 - v14
  • 32.0.A.6.152 -> v1 - v5

  • Unlocked bootloader

  • Xperia Z5 Compact [E5823 / E5803]

  • stock 7.0
  • 32.3.A.0.376 -> v43 -
  • stock 6.0.1
  • 32.2.A.5.11 -> v42
  • 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.1.1
  • 32.0.A.6.200 -> v6 - v14
  • 32.0.A.6.152 -> v1 - v5

  • Unlocked bootloader
*E6603 and E5803 is not tested.
Download

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

1. Reboot into recovery or bootloader
2. Flash kernel using recovery or fastboot
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-2.8.7.0-E6653-20151114_material.img
3. Reboot
4. Done!

Changelog
***ABANDONED***
I am sorry but I stopped supporting this kernel because I don't have much time recently.
v43
Add support for 32.3.A.0.376 - Nougat!
Set androidboot.verifiedbootstate=green
Update Alucard CPU gov to v5.0 (experimental, darkness and nightmare are disabled until I can confirm alucard is working fine)
* To enter into recovery, shutdown and long press power key + volume down key until Sony logo appears, then quickly release power key and hold volume down key.
* For Z4 Tablet, touch will not work in recovery (again)...
--------------------------------------
v42
Add support for 32.2.A.5.11
--------------------------------------
v41
Add support for 32.2.A.4.3
Remove verifiedbootstate flag from /proc/cmdline

v40
Fix CVE-2016-5195 "Dirty COW"
Fix recovery booting

v39
Added support for 32.2.A.0.305
Added nightmare CPU gov
--------------------------------------
v38
Enabled core_ctl

v37
Added CPU OC (2054MHz/1708MHz)

v36
Fixed CVE-2016-2059 and CVE-2016-2504
Added darkness CPU governor

v35
Changed ZRAM size to default

v34
Updated to support 32.2.A.0.253

--------------------------------------
v33
Updated DRM patch to v5 beta8
v32b
Updated DRM patch to v5 beta7
Increased default ZRAM to 1073741824
* for some reason v32b and v33 breaks touch function for Xperia Z4 Tablet. Please use v32 for now.

v32
Reverted power_efficient workqueues and bcl_hotplug related commits because of instability
Moved hosting to Google Drive (f**k AFH, my FTP account is banned for unknown reason and no response)

v31
Now supports Android 6.0.1 32.2.A.0.224!

--------------------------------------
v30
Added patch for kexec-hardboot and workaround for USB problem to Z4T and Z5C
Lowered backlight initial brightness
Switched to LITTLE tuning
Enhanced power efficiency

v29
*Z5 only for now
Added support for tap to enter recovery
---Tap screen when LED is blue, or press volume up/down when LED is orange
Updated alucard CPU gov to v4.0

v28
*Z5 only - Added patch for kexec-hardboot and workaround for USB problem (thanks Myself5)

v27
Always enabled CPU core 0 and 4 to prevent freq and gov resetting
Added software crc toggle
Added patch to prevent perfd to change max cpus and freqs
Re-added power_efficient workqueues
Added patch to support touch in MultiROM menu (not tested)
Set default ksm to stop state to save power on boot
Add the possibility to change the value for BCL's low power mode (default: 0)
sysfs path is: sys/module/battery_current_limit/parameters/soc_low_threshold

v26
Reverted optimizations in v25 due it caused FC and other problems
Fixed loading of ecryptfs module (now you can encrypt your data, but decryption in TWRP isn't working)
Re-added alucard gov
Added optimizations for msm-core and vmpressure

v25
Removed cluster_plug (not working as desired)
Added some optimizations
Set HZ tick rate to 300
Disabled modifications of cpu max freq via msm_performance

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

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
Removed some patches including thunderplug
Added limit for min/max cpu frequencies
Limit max freq of A57 (big):
echo "1536000" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq_hardlimit
Limit max freq of A53 (LITTLE):
 echo "1344000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq_hardlimit

v12
Added undervolting (thnaks Hundsbuah)
*Note: Please don't blame if you get random reboot after undervolting.
Updated workqueue
Fixed some bugs and logspam

v11
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 some patches

v10
Added ZZMoove (test version)
Fixed random reboot caused by conservative, elementalx, ondemand and zzmoove
Muted some logspam
Updated TWRP to 3.0.0-0

v9
Fixed CVE-2016-0728 (please redownload if you downloaded v9 before 2016/01/20)
Added DRM functions restore patch (thanks tobias.waldvogel)
--This is just a fallback and you have to delete contents of /data/credmgr to enable restore patch.
--Flashable zip can be downloaded from here.
Added patches for power efficient workqueue
Added underclocking
Added BFQ I/O Scheduler
Added patches for cpugov conservative and msm_performance
Added fix for bug of clearpad

v8
Added patch commits for performance

v7.2
Removed some patches added in v7.1 due microSD card (64GB+) problem

v7.1
Fixed recovery loading (because of strict Enforcing)
Added power_efficient workqueue
Added option to disable Gentle Fair Sleepers in kernel adiutor and other apps
Added some patches

v6
Update source to 32.0.A.6.200
Added Adreno idler
Removed some patches and dynamic fsync control for more stability
--------------------------------------
v5
Z5C only: calibrate jdi_novatek panel (by Tommy-Geenexus)
Added elementalx and conservative CPU gov
Enabled NTFS
Added optimization
Added option to control throttle temp
Mute logspam: _cpu_up: attempt to bring up CPU n failed

v4
Released SELinux Permissive and Enforcing version for Z5
Added toggle for preventing wakelock
Added Powersuspend 1.5
Added some patch
Allowed to show CPU voltage (not changeable)
Changed version name to contain version number: e.g. 3.10.49-v4 [email protected] #41
NOTE: The number after # is random number.

v3
Added dynamic sync control 2.0

v2
Updated sound control
Reverted patches for crypto as it causes softbrick

v1
First custom kernel!
Added impulse CPU governor
Added tomtom-sound-control
*This is not included in Kernel Adiutor for now.
To enable, you have to run command or mod file with root explorer.
Enable tomtom-sound-control:
echo "1" > /sys/class/misc/tomtom_control/enabled
Change headphone volume (first one is left, second is right)
echo "-1 -1" > /sys/class/misc/tomtom_control/hpgain
Change mic volume (first one is left, second is right)
echo "-1 -1" > /sys/class/misc/tomtom_control/micgain
Change camera mic volume (first one is left, second is right)
echo "-1 -1" > /sys/class/misc/tomtom_control/cmicgain
Added Zen I/O scheduler
Disabled DM_VERITY and CORESIGHT (debugging)
Added KCAL
Added additional TCP cong algorithms
Added CPUQuiet
Some GPU related patch
I/O scheduler SIO and FIOPS
ric disabled
insecure adb
--------------------------------------
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.