FORUMS
Remove All Ads from XDA

LineageOS 12.1 for Z1c with current Sec.Patches

197 posts
Thanks Meter: 270
 
By MSe1969, Senior Member on 31st May 2017, 02:00 PM
Post Reply Email Thread
Announcement from MSe1969: LineageOS 12.1 for Xperia Z1 compact
Hi all,

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
  • 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
  • Privacy Browser as replacement of outdated AOSP Browser
  • Removed Cyngn-Tracking and Google-dependencies (same as LineageOS)
  • Support for microG available under development options


Download latest version with August 2017 security patches:

release:
https://www.androidfilehost.com/?fid=889764386195924671

TWRP 3.1.1 for Z1c (amami)
https://www.androidfilehost.com/?fid=961840155545588613

List of available Downloads:

Source code and build instructions:
Build manifest: https://github.com/derfelot/local_manifests
microG-patch: https://github.com/microg/android_pa...master/patches


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 backporting 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.



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!

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
Afterwards, directly boot into 'recovery mode' (enter fastboot reboot on your PC and use the right hardware keys to get into recovery mode) - we recommend not to boot the phone's Android system after having flashed TWRP. Once TWRP has been launched, you may decide to reboot your phone and install the ROM at any time later. But the first boot after flashing TWRP should be TWRP in recovery mode.

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 is a joint effort of derf elot, hahnjo, Micha_Btz and Mse1969, based on the LineageOS sources on GitHub (https://github.com/LineageOS). You can view the progress and discussion about this initiative by looking at the issues in our discussion repository https://github.com/derfelot/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, Micha_Btz, hahnjo, derf elot
Source Code: https://github.com/derfelot/local_manifests

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: 2017-08-23

Created 2017-05-31
Last Updated 2017-08-23
The Following 32 Users Say Thank You to MSe1969 For This Useful Post: [ View ] Gift MSe1969 Ad-Free
 
 
31st May 2017, 02:00 PM |#2  
MSe1969's Avatar
OP Senior Member
Flag Frankfurt Rhine-Main metropolitan region
Thanks Meter: 270
 
More
Change Log
Applies to both versions, 'standard' and 'microG-patched' until July release
Since August, there is a unified build

September 2, 2017
- Privacy Browser updated to version 2.5
- This is only an interim release, which can be found here

August 23, 2017
- ASB August patches (sec. string 2017-08-05)
- Unified build: microG patch included, needs to be enabled in the developer settings
- Android System Webview updated to most current M60

July 16, 2017
- ASB July patches (sec. string 2017-07-05)
- Kernel rebased and merged to release 3.4.113
- Privacy Browser updated to version 2.4
- Lock Clock: Removed built-in Google lib (Back port from LineageOS)
- Settings (1): Rebranding to LineageOS, link to LineageOS privacy policy (Backport from LineageOS)
- Settings (2): Elimination of Stats tracking (Backports from LineageOS: (1), (2), (3), (4))
- SetupWizard (1): Removed built-in Google lib (Back port from LineageOS)
- SetupWizard (2): Removed 'opt-out' for stats tracking (will simply be switched off by default)
- SetupWizard (3): Added option to switch on Privacy Guard
- Trebuchet Launcher (1): Removed 'Cyngn'-tracking (Back port from LineageOS)
- Trebuchet Launcher (2): Show 'Privacy Browser' as default Browser on new installs

June 11, 2017
- ASB June patches (sec. string 2017-06-05)
- Android System Webview updated to most current M59
- Replaced old (and insecure) Browser app with Privacy Browser

May 25, 2017
- ASB May patches (sec. string 2017-05-05)
- Lineage OS 'su hide' patch applied
- Lineage OS Boot animation (instead of old CM)

May 14, 2017
- ASB April patches (sec. string 2017-04-05)
- Removed CMUpdater from build
The Following 5 Users Say Thank You to MSe1969 For This Useful Post: [ View ] Gift MSe1969 Ad-Free
31st May 2017, 02:14 PM |#3  
MSe1969's Avatar
OP Senior Member
Flag Frankfurt Rhine-Main metropolitan region
Thanks Meter: 270
 
More
Open issues
Our open issues can be found here.

Currently open:
  • CVE-2017-0670 - left-over from July ASB, bionic patch (significant code differences, unsure, whether even applicable)
  • ASB 07/2017 - Android Security Bulletin September 2017
The Following 3 Users Say Thank You to MSe1969 For This Useful Post: [ View ] Gift MSe1969 Ad-Free
31st May 2017, 03:58 PM |#4  
Member
Thanks Meter: 7
 
More
Hello!
Good luck in development!

In the cm12 firmware.1 there is a joint in the lower right corner does not respond to touch

Only a Reboot helps
31st May 2017, 05:18 PM |#5  
MSe1969's Avatar
OP Senior Member
Flag Frankfurt Rhine-Main metropolitan region
Thanks Meter: 270
 
More
Quote:
Originally Posted by Viktor245

Hello!
Good luck in development!

In the cm12 firmware.1 there is a joint in the lower right corner does not respond to touch

Only a Reboot helps

Hi,

I could not reproduce the described behavior; I did not experience such a behavior on my own device - could you please provide more details or a screen-shot?

Thanks - M.
31st May 2017, 05:46 PM |#6  
Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by MSe1969

Hi,

I could not reproduce the described behavior; I did not experience such a behavior on my own device - could you please provide more details or a screen-shot?

Thanks - M.

This behavior is not immediate,official firmware is also a school there,does not react to tap in the lower right corner,have to do the screen calibration
1st June 2017, 06:05 PM |#7  
Member
Thanks Meter: 5
 
More
Awesome rom, using it regularly now. No problems so far. Thank you for your work helping us to use this nice phone longer
Looking forward to the next security update!
7th June 2017, 03:57 AM |#8  
Senior Member
Thanks Meter: 56
 
More
can i flash this from AICP12.1 ?
7th June 2017, 06:44 AM |#9  
Micha_Btz's Avatar
Senior Member
Thanks Meter: 49
 
More
Quote:
Originally Posted by nhicko95

can i flash this from AICP12.1 ?

No, downgrades aren't supported by android. You should make a clean install to avoid a lots of problems.
The Following User Says Thank You to Micha_Btz For This Useful Post: [ View ] Gift Micha_Btz Ad-Free
7th June 2017, 07:32 AM |#10  
Senior Member
Thanks Meter: 56
 
More
Quote:
Originally Posted by Micha_Btz

No, downgrades aren't supported by android. You should make a clean install to avoid a lots of problems.

i know that what i means is no need for flash stock rom then flash this rom ? and can you share a picture taken by z1c with this rom ?
7th June 2017, 03:12 PM |#11  
Senior Member
Thanks Meter: 147
 
More
Is this essentially the old cm build with current security patches? So camera is intact and everything works? This is my girlfriend's phone, so I'm trying to make sure I don't mess it up :P
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread