Hi all,
this thread is discontinued
this thread is dedicated to keep the LineageOS (former Cyanogen Mod) version 12.1 (Android 5.1.1) alive for the Sony Xperia Z1 compact with current security patches.
Features
- Enforcing SELinux (unfortunately, many ROMs for this device don't have it, but we do!)
- Based on LineageOS sources (former CyanogenMod), branch 'cm-12.1'
- Rebranded to LineageOS
- Current Android security fixes included
- Kernel 3.4.113 including Android Security Bulletin patches (frequently maintained and updated)
- Privacy Browser as replacement of outdated AOSP Browser
- Removed Cyngn-Tracking and Google-dependencies (same as LineageOS)
- Support for microG available under development options
- Current Android System Webview (M86 stable)
- Enhanced Privacy Guard: Own switches for Wi-Fi scan, clipboard, notifications and vibrate
- Renewed CA certificates from AOSP master branch
- Use Cloudflare DNS 1.1.1.1 as default fallback (instead of Google)
Download latest version with November 2020 security patches:
release:
https://sourceforge.net/projects/cm...e-12.1-20201112-UNOFFICIAL-amami.zip/download
TWRP 3.2.3-1 for Z1c (amami)
https://www.androidfilehost.com/?fid=6006931924117909119
(Please note, that this TWRP does only support full-disk encryption (FDE) in all android releases; it does not support file-based encryption as of Nougat/Oreo)
Older TWRP versions: https://androidfilehost.com/?w=files&flid=174382
List of available Downloads:
- https://androidfilehost.com/?w=files&flid=155737
- https://www.androidfilehost.com/?w=files&flid=199304
- https://sourceforge.net/projects/cm12-amami/files/
Source code and build instructions:
Kernel: https://github.com/cm12-amami/android_kernel_sony_msm8974
Build manifest: https://github.com/cm12-amami/android & https://github.com/cm12-amami/local_manifests
microG-patch: Until July 2017 official microG patch, since August 2017 base and Settings patch for unified build (equivalent implementation as in OmniROM)
Bug reports:
If you have a problem please create a post with these information:
Original Kernel shipped with this rom:
Build Date:
And try to get log as described here
A comment about Custom CM12.1 Themes:
CM 12.1 (Android 5.1) is meanwhile quite "aged", and maintaining it with security patches also involves back-porting stuff from newer Android versions, as well as keeping the Android Webview engine up to date. The majority of available CM 12.1 Custom Themes however is not really maintained any more. We have had one reported and one suspected case, where an active CM12.1 Custom theme which hasn't been maintained since more than two years, has caused an issue. Hence, if things crash and you use a custom theme, please try first to activate the shipped default theme. We cannot and will not put any effort to solve compatibility issues with old custom themes.
Magisk
It is reported that Magisk in general works up to version 19. From version 19.1 onwards, the recovery boot is broken, so do not use Magisk 19.1 and above with this ROM!
We cannot, hence we will not, provide any support related to issues with Magisk.
Installation instructions
YOU ARE RESPONSIBLE SOLELY YOURSELF FOR ANY ACTIONS YOU DO WITH YOUR DEVICE !!!
Please note - we won't explain any single aspect (e.g. how to install 'fastboot' on your PC or troubleshoot USB connectivity issues under Windows). Search the net and consult the search engine of your choice or look here in XDA, there is plenty information available.
Pre-Requisites
- Get familiar with the hardware keys of the Xperia Z1 compact device, especially how to enter fastboot mode and recovery mode
- Have fastboot and adb installed on your PC and make sure, you can connect via USB to your device in fastboot mode and via adb
- Download the most current .ZIP file of our ROM and place it to your phone's internal memory or SD card
- If you wish to install Google apps (GApps), please refer to the GApps section further below
- An unlocked bootloader (read the warnings carefully and backup your data!)
- In case your device is still with the pre-delivered Sony Stock ROM: It is recommended that you have updated the Stock ROM to the latest version offered by Sony to make sure that the bootloader has the needed capabilities (see also 'trouble-shooting' below)
Install TWRP recovery
If you come from stock ROM and have just unlocked your boot loader, this is the next thing to do. If you have already a working custom recovery on your device, there is no necessity to replace it. However - we recommend to use the TWRP recovery linked in this thread. The following instructions are based on TWRP.
To install TWRP, download the TWRP.img file (Note: replace "TWRP.img" in the following instructions with the real file name) from this section to your PC, connect the phone via USB to your PC, get it into 'fastboot mode' and enter the following command on your PC:
Code:
fastboot flash FOTAKernel TWRP.img
Trouble-shooting:
Depending on the Stock ROM you are on, you may face some difficulties to get the phone into recovery after flashing TWRP. If you are facing such difficulties (i.e. phone always boots into Stock ROM), get into fastboot mode, and manually boot into TWRP by entereing the below command:
Code:
fastboot boot TWRP.img
Advanced Wipe
ONLY perform the steps described here, if you come from Stock ROM or a different Custom ROM!
Boot into recovery mode. In TWRP, choose "Wipe", "Advanced" and spefify "Dalvik", "System", "Cache" and "Data" to be wiped. Make sure NOT to wipe "Internal memory" or "SD Card". Swipe to confirm the deletion and get back into the main menu.
GApps
You do not need to install GApps, but you may wish to do so. In that case, download GApps from here and put the .ZIP also to the SD card or Internal memory of your device. Choose ARM as platform, Android 5.1 and the flavor of your choice. We recommend "pico", as this leaves you the most freedom to only install, what you really need; you can later still install all the Google products you want and do not need to live with pre-installed Google applications you have no use for.
Install our ROM
In the TWRP main menu, choose "Install". A file manager appears to let you navigate to your internal memory (path /sdcard) or your SD card (path /external_sd). Choose the .ZIP file of our ROM and swipe to flash.
If you update from a previous version of our ROM, you don't need to perform a wipe. If you had GApps already installed before the update, there is no need to flash them again. They will be automatically restored during the flash process. (Note: If you wish to get rid of GApps, navigate to TWRP's file manager in the Advanced section of the main menu, go to path /system/addon.d and delete the file 70-gapps.sh, before flashing the ROM update)
If you come from a different ROM (or stock firmware), make sure that you have performed the Wipe steps above. If you wish to install GApps, select the respective .ZIP file directly afterwards, do not boot into Android before having flashed GApps.
When finished flashing, return to the main menu, choose "Reboot" and then "System", which will cause your phone to boot into our Lineage OS 12.1 - be patient, the first boot after flashing a new ROM takes quite long!
This has been a joint effort of hahnjo, Micha_Btz and Mse1969, based on the LineageOS sources on GitHub (https://github.com/LineageOS). Meanwhile, hahnjo and Micha_Btz aren't active any longer in this project. Special thanks also to derf elot, who is not active any longer in this project, but he has laid the solid foundation for it.
You can view the progress and discussion about this initiative by looking at the issues in our discussion repository https://github.com/cm12-amami/discussion - contributions and pull requests are welcome, since applying backports of the actual android security bulletins is a lot of work.
XDA:DevDB Information
LineageOS 12.1 for Xperia Z1 compact , ROM for the Sony Xperia Z1 Compact
Contributors
MSe1969, derf elot, Micha_Btz, hahnjo
Source Code: https://github.com/cm12-amami
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Unlocked Bootloader
Based On: LineageOS
Version Information
Status: Stable
Current Stable Version: cm-12.1
Stable Release Date: 2020-11-12
Created 2017-05-31
Last Updated 2020-11-29
Last edited: