[Xperia Z4/Z3+ Android Development] bruno$0:
Hello guys.

Today i will post a kernel that i (just run the wizard to) created for Z3+ DUAL variant version 32.4.A.1.54. My simple contribution! I'm no responsable for bricks or 3º global war if this kernel make something bad. I sold my device so i created this kernel by historical method.

PLUS: Old Kernel version - 32.3.A.2.33 / 32.2.A.0.253 / 32.2.A.0.305 / 32.2.A.5.11 / 32.3.A.0.372 / 32.3.A.0.376.

This kernel contents (newest one):

-TWRP

-dm-verity disabled

-fake DRM key

-Ric Disabled

Maybe works :

-SafetyNet

-Pokemon Go / Android Pay support

If you install the Magisk, maybe you can have the root and use Android Pay / POGO.

Update 8

Based on the new firmware 54. Same features like previous version. In this version i disabled the RIC, so pay attention to don't something stupid. LOL

Update 7

7.23.1

I made a test and in the previous version we cannot bypass safetynet. So i remove the busybox from this image. Using Magisk + MagiskSu i was able to bypass Safetynet.

7.23.0

Based on the new firmware 33. Same features like previous version.

Update 6.22

6.22 update: From root kernel thread: "Bug in the vendor overlay creation. Existing directories (like /vendor/bin) have not been replicated correctly".

6.00 update: Same features from update 5 but using the new firmware 376 as base. Expect a better battery life and sound issues fix.

Update 5

If you have a backup from your TA partition you can use it to get a better compatibility with sony features. At this time this kernel support superuser as an alternative to SuperSU and fix in the overlay layout which could prevent some libraries from loading and cause battery drain.

Update 4

At this moment we don't have a workaround for SafetyNet that keeps our root alive. The only method that i use if i need chage something is using the recovery terminal. :'( . I f someone found a way please send me a email to test it on this kernel.

This version appears content only November Security Path, but seems that tooks almost 200 Megas and i think that Sony perform some changes that he can't tell for us. :P

All process to flash it is bellow on update '3' or '1'.

Update 3

I create a new kernel for newest Sony Firmware 32.2.A.0.305. In order to keep Pogo running use the same method above, but use the last suhide version instead ( currently 0.54 ).

Ps. Seems that POGO UID has changed to 10245

Update 2

Last Saturday reading the news from ChainFire, i found a intersting method to hide su for specific apps. Think on it i imagine that this could bring back the Pokemon/Android Pay support. Since Magisk keep telling that his last version isn't compatible with Sony. Even so i give a try but this method don't work for me.

I perform alot of test to create a full operational kernel with all features that we like:

DRM key, TWRP, root, Xposed AND... Pokemon Go / Android Pay Support!

I still keep still enable RIC protection. So you still use the bellow commands to give write acess to System.

Please, follow this sequence:

Flash Kernel v3

Flash SuperSu 2.78 SR1 - need to be this ( other version could be not work )

- Deprecated Flash SuHide 0.52 - user the last version instead

Flash Xposed 86.2 from [MENTION=5345056]DVDandroid[/MENTION] Modded by me to leave it install on a SuperSu SR1 version.

Uninstall the Orignal Xposed Installer and install the Material Xposed Installer from same OP of Xposed.

After that we need to put the apps that we can avoid to obtain root access in the SuHide blacklist. Please, refer the SuHide OP to learn how to do that.

Ps: Pokemon Go UID: 10238 :P

Links:

SuperSu 2.78 SR1 OP Thread:

http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

SuHide Op Thread:

http://xdaforums.com/apps/supersu/suhide-t3450396

Material Xposed mod for SuperSu 2.78 SR1:

https://mega.nz/#!hYoiwCTL - Key: !GYCbKxwFuCs9z3LFWSgnsWaT0sJN2DuUoe4MgRCREy8

So sorry to modify you work Mr. [MENTION=5345056]DVDandroid[/MENTION], but your check avoid to install the Xposed with this version of SuperSu. :'(

So..... After all have fun catching some Carterpies. Lol :P

Update 1

Reading the Tobias OP i understood that for update the Su Binary we must reflash a new Kernel with new version of SuperSu. This makes the process not so convenience to perform, since we need to compile a new kernel for a not always a new Kernel Version. So i decide to create a new version of thsi Kernel without root, because this way we can flash SuperSu over a zip file and Keeps our device always up-to-date. Another reason to perform this change is about the 'Magisk" OP that brings (not for us YET ) the Android Pay functionality in a ULB with root. I this setup we must use a most like 'Stock' kernel that we can because Magisk will try to put a mod version of SuperSu/PHH root. By this way it's better we not include root in our kernel. :D

Another changes was a remove DRM function on Kernel to give a opportunity to you choose best method for your. Please, search of DRM function restore on Xda and flash the proper zip file.

I don't disable RIC function this time, because Tobias belive that device get more security with RIC running. If you needs to write something on System folder you can use TWRP recovery or.... just go to the /sys/kernel/security/sony_ric edit the enable file, put a '0' without quotes, save it, the go to a terminal command app and type this using su: pkill /sbin/ric | mount -o remount, rw /system . this will make the system writetable until next restart. I think its better we deal with this.

I create a shell script to make to system partition temporarily writeable:

https://mega.nz/#!ZRQHyKqJ - Key: !55mhkn9A-2tfaNOFW5ipgTBK7xk_1WNb9-4Puipcd8Y

Please, change his permission with chmod on twrp file manager and copy it to data folder. Run it in a terminal program with ./gravasys.sh

Now you should be able to write on system folder until next restart. -- useless with new kernel

How to install it:

Run this command at command prompt -> fastboot flash boot boot.img

Where to download it:

54 Firmware Version

https://mega.nz/#!QVQzUbyb V1.00 - Key: !WgpKxjpVctoEcJ6qKuES_CgPvbD_8ExKWpNwwbUmg7s

33 Firmware Version

https://mega.nz/#!4c4m0ZKL V2.23- Key: !dC-zVyHUTruPGd2pa_PigI88CmMueD9uITZUg7TEmrs

https://mega.nz/#!MZoGUaJY V1.23 - Key: !nxnjQYVUWFpvxJkZtqI29dwXn2qyxzN6tyapf7JklcA

376 Firmware Version

https://mega.nz/#!0ZpwAAzD V1.22 - Key: !w_oin39T9BaFy49JD88Sr-W2RuR0gMEhSptbv3jkptA

https://mega.nz/#!sI5BHDYD V1 - key: !vd8rdAy-obpKbx6kTH1a2A-xnt1eNOqHhiBpQCTevsw

372 Firmware Version

https://mega.nz/#!BZJERYQR V2 - Key: !cyPTAgGuhGk_AHyrX05BKkVQ4W90XP1JfLzW5XsW3cw

11 Firmware Version

https://mega.nz/#!ZYIlwL7K V1 - key: !dEIYxesFpGPgrmQlpfhUUzDnl0mpiYXdVzBS9-qH9gE

305 Firmware Version

https://mega.nz/#!YFJBhBqD V1 - key: !VdmfhUuAiBM4wlBPik0QFvop607GXGoXbHmdYhAHvds

253 Firmware Version

https://mega.nz/#!JQoViBxB V3 - key: !Yt2zBL4ZLawyUyMsrYHb9hoUoOd1qgaCuHzoJECHt8o

https://mega.nz/#!cERT2bKA V2 - key: !WSPehajEAaHziOQbfCnBEePx5D3NHXg1c79XD9PGdP4

https://mega.nz/#!BNoR3KAb V1 - key: wR4F2bUGC2OUoMnD1FlY48nHD1UlD-AXc0WRsB_UdKY

Or.....

Use the Flashtools in a fastboot mode, then choose the Flash option by DoomLord.

Or... If you already have any other version kernel, you can flash another kernel by Twrp in install function by 'flash image' option.

Or....If you wanna update you firmware, download the proper kernel version and flash it on twrp. After this, go to 'REBOOT' and SHUTDOWN your phone. Now go to the flashtools and flash the original firmware but MARK the option to EXCLUDE the Kernel or you will need flash my kernel through PC again- I think that process sucks...

Please, Don't thanks me. All the hard work was performed by Mr. Tobias Waldvogel in this thread:

http://xdaforums.com/xper...el-dm-t3301605

And another guys mention above.

So, if you like this kernel, please pay a coffee for these guys!

Sorry about my english.....

Warning

DON'T use this kernel on single model. I don't know whats happens!

Deprecated for V2/V3

Ps3: The most important part -> The tool that i used to make this kernel isn't ready to create it with a proper Twrp Recovery, so i made a 'workaround' to the tool understood that new rom version is compatible. Maybe could be happen something wrong while using Twrp altrohugh i already used it to install xposed again.

Bonus! Single Sim Version:

Fw 33: https://mega.nz/#!tRA0RA5B V2.23 - Key: !yPOImsO3ltXWDzy5GLxhFwyhAy92L3QLCMLuolY6kkc

Fw 376: https://mega.nz/#!ZR4nSKgYV1 - Key: !2NnhQChLiMS3exgsr51GjocM-ubB-0BCP-QHEsnI0zo