Directions to setup wifi/data without captiveportal and with Afwall:
http://forum.xda-developers.com/showpost.php?p=62560397&postcount=3
March 3. New release.
1. LP 5.1.1 r.34
2. Up to day google/cm changes
3. Improved WIFI handling to cellular
4. M5 kernel with fixed sound
Download: http://forum.xda-developers.com/devdb/project/dl/?id=17183
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
February 15. Updated kernel to fix headphone sound.
Download: forum.xda-developers.com/attachment.php?attachmentid=3647315&d=1455549561
Unzip and flash in fastboot
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
]anuary 24: Rom updated to release 33
Warning: All my roms now include a custom script that executes on boot, not at init.d level, which comes much later, but at init.rc. This script disables internet access to prevent data leaking from android system during boot before init.d or your firewalls come in. After the phone is booted and Afwall starts, it resets iptable rules and you then have the internet. Afwall is a must if you care about your privacy and battery life. If you, however, are not going to use Afwall, then delete the following file: /system/etc/crashdod.sh and reboot.
1. Release 33
2. January security patches
3. Wakelock blocker added
4. Updated M5 kernel to include latest CM/Sony changes
Kernel Source: https://github.com/AOSP-Argon/android_kernel_sony_msm8974
Download: http://forum.xda-developers.com/devdb/project/dl/?id=16401
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
November 25. Updated M5 Kernel built with the latest Ubertc 5.2.1 Nov 21 edition. Also, Sony bootlogo image themed in a teal color, the Tesla way.
Download: http://forum.xda-developers.com/devdb/project/dl/?id=15345
Unzip and flash. Or you can flash the image with Kernel Adiutor.
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
November 22: New build. This is release 29 with Anti-Piracy features removed. Probably the final build. Enjoy.
Download: http://forum.xda-developers.com/devdb/project/dl/?id=15314
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
November 1. New kernel. [/COLOR]
1. Enabled hardware based encryption mixed with software (you need to re-encrypt to have the feature),
2. Enabled hardware random number generation also mixed with software
3. Your WIFI will work regardless of whether you have old wifi binaries or new
4. I have not incorporated some CM/M5 commits, as they cause random reboots.
5. Some security improvements in init files: now adb won't really work if usb debugging is set to off. Before that even if debugging was off, kernel would still get adb root rights during boot, which is insecure
Dowonload: forum.xda-developers.com/attachment.php?attachmentid=3527276&stc=1&d=1446392027
Sources for kernel: https://github.com/HonamiZ1/android_kernel_sony_msm8974
Instructions:
1. This boot.img does not have TWRP, so use Fota recovery image from my thread here http://forum.xda-developers.com/xperia-z1/orig-development/twrp-2-8-7-fota-partition-brightness-t3237229
2. Unzip boot.img and flash in fastboot: fastboot flash boot boot.img
3. To install TWRP 2.8.7 in Fota or Recovery (depending on whether you have upgraded your bootloader or not) do this also in fastboot: fastboot flash recovery recovery.img
4. Reboot. Now, you will have TWRP independent from kernel
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
This is Tesla-Redux resurrected by me. As you know, the latest official build does not recognize simcard, virtually turning your phone in a wifi device. Moreover, rhine devices are no longer officially supported and the honami thread itself is closed. Well, I fixed the simcard issue and built the rom from the latest sources.
Features include: SlimPie, RRO Layers, Customizable QS Tiles, SlimRecents, Slim's Power Menu, Slim's Nav bar, Hardware keys configuration, Animation Control, App Circle Sidebar, Lockscreen Weather, Screenrecorder settings, Kernel Aduitor built in plus more. My usual hardened features include hardened kernel (modified M5) plus removed nefarious IPs pooped by Google all over the source; full network choice in Cell menu; background wifi scanning is disabled for privacy and battery sake; cell network is handled by Android, as opposed to the modem; Volte provisioned; TWRP 2.8.7 in boot image, and much more...
This rom does NOT include the latest CM power scheme change, which causes random reboots and other issues. It is neither in this rom nor in my DU or Jaguar rom. The original power scheme was fine, no bugs, nothing to fix. So, why fix it, especially, that CM and Sony folks are incorporating 5-10 year old changes just now. I am not blaming Sony kernel developers, as they are not given the latest Sony blobs that are used in stock. So, as a result, they are working like kittens in the dark trying to bridge kernel with android and hardware. The same applies to the latest kernel commits including wifi. Prima driver worked fine in my latest Jaguar/DU builds, there were no WIFI issues. Moreover, the latest M5 changes cause multiple errors during build, so, kernel in this rom is stable as of October 8 or 9. This is the best you can get, as I doubt anyone will be paying any attention to lollipop any longer. .
Usual XDA warning: if your device dies or kills everybody in the vicinity, blame Putin, but I don't recommend it, since Russians mean business nowadays.
Instructions:
1. Unlocked bootloader, root and TWRP recovery
2. Wipe everything including internal SD card
3. Flash the rom, reboot and enjoy
Credit: Tesla Team, Slimroms and CM
Download: http://forum.xda-developers.com/devdb/project/dl/?id=14909
Kernel Sources: https://github.com/AOSP-Jaguar/android_kernel_sony_msm8974
XDA:DevDB Information
TESLA-REDUX-RESURRECTED, ROM for the Sony Xperia Z1
Contributors
optimumpro
Source Code: https://github.com/tesla-redux
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Unlocked Bootloader
Based On: AOSP,Slimroms,CM
Version Information
Status: Stable
Stable Release Date: 2015-10-26
Created 2015-10-26
Last Updated 2016-03-03
http://forum.xda-developers.com/showpost.php?p=62560397&postcount=3
March 3. New release.
1. LP 5.1.1 r.34
2. Up to day google/cm changes
3. Improved WIFI handling to cellular
4. M5 kernel with fixed sound
Download: http://forum.xda-developers.com/devdb/project/dl/?id=17183
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
February 15. Updated kernel to fix headphone sound.
Download: forum.xda-developers.com/attachment.php?attachmentid=3647315&d=1455549561
Unzip and flash in fastboot
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
]anuary 24: Rom updated to release 33
Warning: All my roms now include a custom script that executes on boot, not at init.d level, which comes much later, but at init.rc. This script disables internet access to prevent data leaking from android system during boot before init.d or your firewalls come in. After the phone is booted and Afwall starts, it resets iptable rules and you then have the internet. Afwall is a must if you care about your privacy and battery life. If you, however, are not going to use Afwall, then delete the following file: /system/etc/crashdod.sh and reboot.
1. Release 33
2. January security patches
3. Wakelock blocker added
4. Updated M5 kernel to include latest CM/Sony changes
Kernel Source: https://github.com/AOSP-Argon/android_kernel_sony_msm8974
Download: http://forum.xda-developers.com/devdb/project/dl/?id=16401
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
November 25. Updated M5 Kernel built with the latest Ubertc 5.2.1 Nov 21 edition. Also, Sony bootlogo image themed in a teal color, the Tesla way.
Download: http://forum.xda-developers.com/devdb/project/dl/?id=15345
Unzip and flash. Or you can flash the image with Kernel Adiutor.
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
November 22: New build. This is release 29 with Anti-Piracy features removed. Probably the final build. Enjoy.
Download: http://forum.xda-developers.com/devdb/project/dl/?id=15314
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
November 1. New kernel. [/COLOR]
1. Enabled hardware based encryption mixed with software (you need to re-encrypt to have the feature),
2. Enabled hardware random number generation also mixed with software
3. Your WIFI will work regardless of whether you have old wifi binaries or new
4. I have not incorporated some CM/M5 commits, as they cause random reboots.
5. Some security improvements in init files: now adb won't really work if usb debugging is set to off. Before that even if debugging was off, kernel would still get adb root rights during boot, which is insecure
Dowonload: forum.xda-developers.com/attachment.php?attachmentid=3527276&stc=1&d=1446392027
Sources for kernel: https://github.com/HonamiZ1/android_kernel_sony_msm8974
Instructions:
1. This boot.img does not have TWRP, so use Fota recovery image from my thread here http://forum.xda-developers.com/xperia-z1/orig-development/twrp-2-8-7-fota-partition-brightness-t3237229
2. Unzip boot.img and flash in fastboot: fastboot flash boot boot.img
3. To install TWRP 2.8.7 in Fota or Recovery (depending on whether you have upgraded your bootloader or not) do this also in fastboot: fastboot flash recovery recovery.img
4. Reboot. Now, you will have TWRP independent from kernel
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
This is Tesla-Redux resurrected by me. As you know, the latest official build does not recognize simcard, virtually turning your phone in a wifi device. Moreover, rhine devices are no longer officially supported and the honami thread itself is closed. Well, I fixed the simcard issue and built the rom from the latest sources.
Features include: SlimPie, RRO Layers, Customizable QS Tiles, SlimRecents, Slim's Power Menu, Slim's Nav bar, Hardware keys configuration, Animation Control, App Circle Sidebar, Lockscreen Weather, Screenrecorder settings, Kernel Aduitor built in plus more. My usual hardened features include hardened kernel (modified M5) plus removed nefarious IPs pooped by Google all over the source; full network choice in Cell menu; background wifi scanning is disabled for privacy and battery sake; cell network is handled by Android, as opposed to the modem; Volte provisioned; TWRP 2.8.7 in boot image, and much more...
This rom does NOT include the latest CM power scheme change, which causes random reboots and other issues. It is neither in this rom nor in my DU or Jaguar rom. The original power scheme was fine, no bugs, nothing to fix. So, why fix it, especially, that CM and Sony folks are incorporating 5-10 year old changes just now. I am not blaming Sony kernel developers, as they are not given the latest Sony blobs that are used in stock. So, as a result, they are working like kittens in the dark trying to bridge kernel with android and hardware. The same applies to the latest kernel commits including wifi. Prima driver worked fine in my latest Jaguar/DU builds, there were no WIFI issues. Moreover, the latest M5 changes cause multiple errors during build, so, kernel in this rom is stable as of October 8 or 9. This is the best you can get, as I doubt anyone will be paying any attention to lollipop any longer. .
Usual XDA warning: if your device dies or kills everybody in the vicinity, blame Putin, but I don't recommend it, since Russians mean business nowadays.

Instructions:
1. Unlocked bootloader, root and TWRP recovery
2. Wipe everything including internal SD card
3. Flash the rom, reboot and enjoy
Credit: Tesla Team, Slimroms and CM
Download: http://forum.xda-developers.com/devdb/project/dl/?id=14909
Kernel Sources: https://github.com/AOSP-Jaguar/android_kernel_sony_msm8974
XDA:DevDB Information
TESLA-REDUX-RESURRECTED, ROM for the Sony Xperia Z1
Contributors
optimumpro
Source Code: https://github.com/tesla-redux
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Unlocked Bootloader
Based On: AOSP,Slimroms,CM
Version Information
Status: Stable
Stable Release Date: 2015-10-26
Created 2015-10-26
Last Updated 2016-03-03
Last edited: