AndroPlus Kernel
for Xperia XZ
  • Xperia XZ [F8331 and F8332]

  • stock 7.1.1
  • 41.2.A.7.76 -> v31
  • 41.2.A.7.65 -> v30
  • 41.2.A.7.53 -> v29
  • 41.2.A.7.35 -> v28
  • 41.2.A.7.8 -> v27
  • 41.2.A.2.223 -> v25 - v26
  • 41.2.A.2.199 -> v23 - v24
  • stock 7.0
  • 39.2.A.0.442 -> v22
  • 39.2.A.0.417 -> v21
  • 39.2.A.0.386 -> v20
  • 39.2.A.0.361 / 39.2.A.0.374 -> v19
  • 39.2.A.0.327 -> v17 - v18
  • stock 6.0
  • 39.0.A.3.30 -> v05
  • 39.0.A.1.213 / 39.0.A.1.250 -> v01 - v04

  • Unlocked bootloader
* The development for this kernel is discontinued.
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-3.0.2-0-kagura.img
You can enter into recovery by this way: power down -> press power + volume minus -> when logo appears, release only power and hold volume minus
3. Reboot
4. Done!

* The development for this kernel is discontinued.
Changed kernel base to 41.2.A.7.76
Changed kernel base to 41.2.A.7.65
Added patch for BlueBorne

Changed kernel base to 41.2.A.7.53

Changed kernel base to 41.2.A.7.35

Changed kernel base to 41.2.A.7.8
Add ANT + support (not confirmed)

Add Maple I/O scheduler
Add I/O scheduler switcher (I/O scheduler of some block devices will be changed to noop when sleep to save some battery)
Tuned Makefile
Add patches to improve performance

Changed kernel base to 41.2.A.2.223

Updated alucard CPU gov
Disabled some debug logging
Updated kcal
Added support for F2FS (not confirmed yet)

Changed kernel base to 41.2.A.2.199

Add support for 39.2.A.0.442
Fixed "adb reboot recovery" command (now you can enter into recovery with it)
NOTE: Keypress on boot is broken now. Please use official way (power down -> press power + volume minus -> when logo appears, release only power and hold volume minus)
Reverted DRM fix to old one because it breaks some functionality such as SoundEnhancement

Changed kernel base to 39.2.A.0.417
Add "androidboot.verifiedbootstate=green" patch (for SafetyNet bypass, not tested)
Update DRM fix to V5.21 (thanks tobias.waldvogel)

Changed kernel base to 39.2.A.0.386

Add support for 39.2.A.0.361 and 39.2.A.0.374

Fixed DRM patch
*NOTE: Please update TWRP to TWRP-3.0.2-4-dora.img or TWRP-3.0.2-4-kagura.img to fix decryption support (thanks AdrianDC)
To root, you have to install System-less SuperSU and wipe cache/dalvik after installing.

Now supports 39.2.A.0.327!
Please note TWRP is not fully working and DRM patch is not working.
I updated TWRP to support touch on 39.2.A.0.327, so please install TWRP-3.0.2-9-F8132.img or TWRP-3.0.2-3-kagura.img.
You can't load TWRP with pressing volume key when LED is on, but you can load with official way (power down, press power + volume minus, release only power (continue to hold volume minus) when logo appears, wait for TWRP splash)
When you see "Enter password" screen, just cancel it. You can't use /data, but you can modify /system.

Now supports 39.0.A.3.30
Enabled Ethernet adapter support

Fix CVE-2016-5195 "Dirty COW"

Fixed random reboot because of bad patch
Added core_ctl
If you want to test it, you have to setup core_ctl. Example:
echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/disable
echo 2 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus
echo 2 > /sys/devices/system/cpu/cpu0/core_ctl/max_cpus
echo 60 > /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres
echo 40 > /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres
echo 100 > /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms
echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/task_thres

echo 0 > /sys/devices/system/cpu/cpu2/core_ctl/disable
echo 1 > /sys/devices/system/cpu/cpu2/core_ctl/is_big_cluster
echo 0 > /sys/devices/system/cpu/cpu2/core_ctl/min_cpus
echo 2 > /sys/devices/system/cpu/cpu2/core_ctl/max_cpus
echo 68 > /sys/devices/system/cpu/cpu2/core_ctl/busy_up_thres
echo 40 > /sys/devices/system/cpu/cpu2/core_ctl/busy_down_thres
echo 100 > /sys/devices/system/cpu/cpu2/core_ctl/offline_delay_ms
# big won't be online much
echo 1 > /sys/devices/system/cpu/cpu2/core_ctl/not_preferred
Updated darkness & alucard gov

Added kcal, darkness & alucard gov, some security patch, USB keyboard function, fiops & sio... and more!

Disabled DM_VERITY, force module sig and CORESIGHT (debugging)
Added DRM patch
(please delete
once to enable patch)
ric disabled
insecure adb
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,

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