• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[NEW ROM][UB] February 9: Jaguar Leo LP 5.1.1 Official Hardened

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
This is the Official Jaguar rom for Leo, which is based on AOSP with some flavors from Slim and Dirtyunicorn plus a bunch of features only this rom has, such as a working camera button. . The rom was originally made for Xperia Z1 Honami in August 2015, then extended to Z1c and now to Z2/Z3/Z3c. The rom has been downloaded thousands times and enjoyed great success. I hope the trend will continue with Jaguar for Leo.

Why LP, as opposed to MM and Nougat? Several reasons. The main one is Sony's unfriendliness to development community. Camera sucks, because Sony wouldn't provide proper blobs. Also, MM brings very few features, as opposed to LP. MM is still in alpha, but is already being abandoned by developers in favor of Nougat. Nougat will never work for Z1/Z2/Z3, because Sony wants you to buy a newer device. And finally, all LP roms, except Jaguar, have been abandoned by their developers since November 2015. CM still publishes nightly LP, but they have abandoned CM 12.1 kernel, meaning, they haven't incorporated about 800 security patches from Google and Code Aurora in LP kernel. Another reason - I take changes from Android Gerrit Master Branch, Code Aurora, Google Security Bulletins and 3.10, 3.18 and 4.x kernels. Enough reasons for you?

The main difference from other roms is the emphasis on security and multiple features. With that in mind , let's see what Jaguar has to offer:


1. Hardened Kernel, modified M5; hardened rom built with HYPERTOOL 5.4
2. All ciphers enabled in kernel instead of just a few
3. Hardened/Fortified Bionic and Libs
4. Fstack protection strong to resist buffer overflows
5. Many System apps and processes are made read-only, to reduce elevation of privilege
6. Selinux replaced with Tomoyo Security, Yam security
7. Disc encryption, keymaster to 256 bit AES instead of 128
8. Latest TWRP with working brightness and ability to decrypt Data (Coming Soon)
9. Random number generation mixed hardware/software, as recommended by Linus Torwalds
10. Options to randomize host on every boot
11. Option to have a separate password for lock screen and boot
12. Qualcomm's Time Services disabled due to leaking on early boot (set time to automatic to get it from your carrier)
13. WIFI Background Scanning disabled to prevent leaking
14. Internet disabled for both WIFI and Data until Afwall is set and activiated (Afwall included in download, install as regular app)
15. The phone is VOLTE ready and you have all network options available in Cell menu (not just LTE/WCDMA/GSM)
16. GRsecurity features, such as Sidechannel implemented
17. Some Pax Security Features
18. Option to deny USB connection: denied always; denied when locked; and allowed always
19. Hardened webview with Google and other "interesting" IPs removed
20. Prevention of bruteforcing screen pin: the phone will reboot upon 3 unsuccessful attempts
21. Perfect_Event_Paranoid ported from Grsecurity: now third party apps can't use other apps including system to elevate privileges
22. Camera hardware button works to focus, take pictures and start video recording
23. Option to disable writing to Tombstones (a lot of private info is dumped there if there is a crash)
24. Option to disable continuing writing of logcat
25. Option to disable device cameras: back; front, both or none
26. Option to disable third party apps to access clipboard
27. Always latest Google Security Patches
28. Always latest Code Aurora Security Patches
29. Changes ported directly from Google Android Gerrit, so most of those in MM and even N are in this rom
30. About 80% of kernel changes are ported into Jaguar kernel from 3.10 and 3.18 (not Sony AOSP 3.10 that has Down Syndrome, but Linux/Google/Code Aurora one)
31. Rom is odexed to significantly increase boot speed (under 30 seconds) and application start
32. Many more security features ported from Linux and Copperhead OS
33. Dns Crypt: a feature allowing to choose among many Dns providers (all encrypted)
34. Seccomp: secure computing enabled in kernel

Other features include: Layers Theme Engine; Native Call Recording with interface integrated in Dialer with no restrictions; Privacy Guard; Native Wakelock Blocker; Native Black List; Global Menu; Slim Recents; Traffic Indicators; Advanced Reboot; Slim Pie; CPU Info on Screen; Ram Bar in Recents; Open Source Supeuser included and integrated in Settings; True Offline Charging with Screen Off; Kernel Adiutor included (unzip and install as a normal app) and integrated in Settings plus more

Things users need to know to have smooth experience:. These are not bugs, but rather an explanation of some features

1. If you want to do data encryption, keep in mind that unlike Android, Jaguar uses 256 bit encryption. If you were encrypted on other roms, you won't be able to decrypt. So, wipe encryption and then re-encrypt on Jaguar. Also, keep in mind that if you ever did factory reset on official TWRP 3+ for honami, your data partition is screwed and have to be resized to enable encryption. This has nothing to do with the rom, but rather with the official TWRP itself. Fastboot my unofficial TWRP 3.0.2, (it is coming for Xperia Z3c, which, by the way has working brightness, as well as ability to decrypt and mount data

2. Jaguar contains a script running on early boot, which cuts the internet access to both WIFI and Data until Afwall is running. This is done to prevent leaking, as well as having all your internet traffic routed through some interesting number of servers, including this IP: 26.147.196.22. So, install Afwall and activate it, otherwise, no Internet for you

3. If your system language is different from English and you want to make changes in Phone/Cell Network settings, switch to English first, make the changes and then return to your language. The changes you made will hold. If you try to make the changes in your language, you will have com.android.phone crash. Localization takes time and is virtually impossible to implement in Jaguar, which is a one-person-rom

4. Sony TimeKeep, which is ported from MM/N, now sets the correct time on reboot without the Internet or GSM signal. All you need to do is set it once and TimeKeep will save/recalculate/restore the same on each reboot

5. GAPPS: if you use them, you need to flash them right after the rom (or each update) and before reboot. Flashing after reboot will result in multiple f/c

6. Due to Volte implementation, you might be required to flash LP or MM stock baseband (only if you have no 2g/3g signal)

7. Helpful fastboot commands: for flashing TWRP: fastboot flash recovery recovery.img
for flashing kernel: fastboot flash boot boot.img

Download: All updates and change logs are in Post #3

Instructions:

1. Be on LP at least, have TWRP, unlocked bootloader and root
2. In TWRP, wipe data/factory reset, then wipe System/Data/Cache/Dalvik
3. Flash the rom
4. Reboot, install Afwall and Kernel Adiutor as normal apps; activate Afwall to have Internet
5. Enjoy the rom, say thank you, donate or do both


Warning: If your device and/or anyone in the immediate vicinity dies, don't blame me: it is all China and Russia's fault.

Credit: CM, AOSP, Slimroms, DU, Copperhead OS, Myself5 (kernel)

UPDATED KERNEL SOURCE: https://forum.xda-developers.com/devdb/project/dl/?id=23107 . Don't flash. This is not kernel, but rather sources to compile kernel

Kernel Source: https://github.com/AOSP-Jaguar/kernel_sony_msm8974

XDA:DevDB Information
JAGUAR LEO OFFICIAL HARDENED, ROM for the Sony Xperia Z3

Contributors
optimumpro
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Unlocked Bootloader
Based On: AOSP,CM,SLIM,DU

Version Information
Status: Stable
Stable Release Date: 2016-10-18

Created 2016-10-18
Last Updated 2017-02-09
 
Last edited:

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
Development update and some Screenshots

I broke my Z1 screen again and I am not in the mood for after market screens. And I am sick and tired of Sony crappy treatment of development community.

I am now looking at Lenovo Zuk Z2 or Z2 pro. Both excellent phones with the latest CPU and made out of metal and glass by Motorola which they bought from Google a couple of years ago. Zuk is friendly to developers and their blobs don't dumb down camera and they don't seek to "unify" bugs for all their devices. I no longer wish to support a fat bastard corporation that can't make a good phone, but thinks that just by putting their logo on the phone would make it worth $700.

RE Jaguar. I will continue to maintain Jaguar mainly with security patches... for a while, but my main work will be concentrated on Zuk. There is a lot of work to be done cleaning Android N and implementing security and other features from Jaguar...



Screenshots are here: http://forum.xda-developers.com/showpost.php?p=62560391&postcount=2
 
Last edited:

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
Download Section

February 9: New release including

1. February security patches
2. Sony TimeKeep to set the correct time on boot
3. Dns_Crypt (numerous choices of encrypted Dns providers) in Settings/Security
4. Open Source Superuser integrated in Settings
5. Seccomp/secure computing implemented and enabled in kernel
6. Twrp that supports data decryption, as well as TimeKeep

To use Dns_Crypt, you must allow Internet for 'apps run as root' in Afwall


Download Rom: https://forum.xda-developers.com/devdb/project/dl/?id=23079

Download TWRP: https://forum.xda-developers.com/devdb/project/dl/?id=23078
__________________________________________________________________
January 29. XDA is having a problem with upload/download. So, here is updated TWRP 3.0.2 that is able to decrypt and mount encrypted data partition. This one is different from the originally posted, because it includes the correct time. Together with the February release (not now), it will set the correct time both in recovery and the rom:

Download: https://www.androidfilehost.com/?fid=745425885120704246 There is a new TWRP on top of this post and in the download section...

January 12: New release This should take care of a color line on Auo displays. Also included is the fully working NFC-HCE for Android Pay (to pass Safety Net, you'll have to delete Supersu and su binary). And January security patches, of course...

Download: https://forum.xda-developers.com/devdb/project/dl/?id=22563

You may flash dirty on top of another Jaguar release. Otherwise - clean install

__________________________________________________________________________________
December 31. TWRP 3.0.2 able to decrypt data. This works well for Xperia Z1 and Z1c, but, since I don't have the device, it may or may not work for Z3. So, test it and report

Unzip the file (attached to this post) and flash in fastboot like this: fastboot flash recovery recovery.img
____________________________________________________________________________________________
December 14. New build with increased brightness levels. Flash only if you have a type of display that has flickering on low brightness. If you have no flickering, no need to upgrade

Download: http://forum.xda-developers.com/devdb/project/dl/?id=22108
______________________________________________________________________________
December 10: Rom updated to include

1. December security patches
2. Signature Spoofing (Omnirom type), switch in Developer settings
3. USSD fixed (maybe)


Download: http://forum.xda-developers.com/devdb/project/dl/?id=22020

__________________________________________________________________________________
November 10: Rom updated to include November Security Patches. I have also removed SuperSU, as there is a built-in root manager and quite a few people no longer like the Chinese owned SuperSU[/COLOR]

Download: http://forum.xda-developers.com/devdb/project/dl/?id=21437
__________________________________________________________________________________
October 18. New release including Code Aurora and Google latest security patches. Also, there is a new feature - option to prevent apps from accessing clipboard in background.

Download Rom: http://forum.xda-developers.com/devdb/project/dl/?id=20976

Download Afwall/KernelAdiutor: http://forum.xda-developers.com/devdb/project/dl/?id=20974
 
Last edited:

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
I flash the baseband but after reboot the baseband is unknown again. And the ussd code not working.
Flash the correct baseband AFTER flashing the rom. If it says unknown baseband, you won't have even a sim card recognized.

USSD is a known issue. It works, but slowly: I get a response in 2-3 minutes...
 
Last edited:
  • Like
Reactions: veiron144lww

leesiangcheng

Senior Member
Jul 5, 2012
80
15
0
Flash baseband alreadyworking .but after reboot the base band is gone.btw the rom is super fast.hope u can fix the baseband and ussd. Thanks for the rom.
 

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
Flash baseband alreadyworking .but after reboot the base band is gone.btw the rom is super fast.hope u can fix the baseband and ussd. Thanks for the rom.
You have to flash baseband for your country variant. I am in the US and had euro baseband and it took 10 sec for the phone to find signal. Then I flashed US baseband and and now I get signal right away...
 
Last edited:

blackhawk_LA

Elite Member
Dec 27, 2010
1,464
621
113
Thanks for a great aosp rom! I'll try whenever I have time.
What do you mean with "localisation takes time"? Do you mean that gps is slow?

Sent from my D6603 using Tapatalk
 

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
Thanks for a great aosp rom! I'll try whenever I have time.
What do you mean with "localisation takes time"? Do you mean that gps is slow?

Sent from my D6603 using Tapatalk
No, everything is fast here. Localization means translation to foreign languages. If you want to change mobile network settings (2g/3g/Lte), you would have to switch to English, make changes and then return to your language. That's the only area where you need to do that...
 
  • Like
Reactions: blackhawk_LA

blackhawk_LA

Elite Member
Dec 27, 2010
1,464
621
113
The ROM is FAAAST. Incredible, it restored my apps with titanium twice as fast as with other ROMs .
I have a little request, and is to have the network speed indicators in the right side, at the left of the WiFi indicator.
Thanks!

Sent from my Xperia Z3 using Tapatalk
 

mathorv

Senior Member
Jun 5, 2011
366
271
63
This is greatest Z3 endeavor so far focused on security and stability!
We cant blame Sony for lack of official N ROM, however, lack of working MM source, no up to date MM ROM, which on galaxy s5 is something obvious makes me wonder if Sony doesn't make z3 obsolete for purpose.
Thank you for your effort!

Are there any prolonged battery life features?
Could any of users share battery life and image quality info?

To check if there is any camera distortion its enough to shot something like computer screen and see if its rectangle or it is distorted.
 
Last edited:

blackhawk_LA

Elite Member
Dec 27, 2010
1,464
621
113
Camera fisheye bug is present.
Also, I I'm experiencing some light flickering on the screen at minimum brightness. Is more noticeable on white screens.

Sent from my Xperia Z3 using Tapatalk
 

xz123

Member
May 20, 2012
21
5
0
This is awesome! I didn't expect a proper ROM for the Z3 anymore; Paranoid Android development seems slow and I'm still on infected's last CM12.1 ROM – so this is exactly what I'm looking for: A ROM with focus on security. I'll try it out as soon as possible.
 

king960

Senior Member
Feb 4, 2013
318
71
0
24
Warsaw
Do you guys experience overheating? I encrypted my phone and it burns now... Using the same ROM but for Z3C...
Edit:
Is it possible to decrypt my phone ? I can only see the information that my phone is encrypted, can't click on it.
 
Last edited:

optimumpro

Senior Member
Jan 18, 2013
6,266
13,594
113
Do you guys experience overheating? I encrypted my phone and it burns now... Using the same ROM but for Z3C...
Edit:
Is it possible to decrypt my phone ? I can only see the information that my phone is encrypted, can't click on it.
Your phone is 'burninig', not because of encryption, but because you changed some settings in Kernel Adiutor. If you don't know what you are doing, don't touch anything. Untick all 'apply on boot' and reboot the phone to load default values. Jaguar on Z3c doesn't get over 50 degrees at highest loads (playing graphic intensive games)...
 
Last edited: