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

  • stock 7.0
  • 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
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
3. Reboot
4. Done!
To root and install Xposed, you should flash BETA-SuperSU-v2.67 and in TWRP.
First/second boot will be bootloop and take some time to boot up correctly.

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

Add support for 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.