FORUMS

[ROM][Unofficial][9.0][signed][OTA] Lineage OS 16.0 for Xperia Z1 compact

434 posts
Thanks Meter: 552
 
By 115ek, Senior Member on 4th January 2019, 09:36 AM
Post Reply Email Thread
This thread aims at providing LineageOS 16.0 builds for the Sony Xperia Z1 compact with current security patches.
You can consider this thread as a successor of our LineageOS 15.1 thread, where you may also find some useful information.
This is the joint effort of 115ek and MSe1969 (contributions welcome).

Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * We are not responsible for bricked devices, dead SD cards,
 * thermonuclear war or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at us for messing up your device, we will laugh at you. Hard & a lot.
 *
 */
We offer two build variants:
A. Standard LineageOS 16.0 build
This build flavor aims at providing LineageOS 16.0 "as is" with most recent security patches.

B. Pre-installed microG build variant with additional security patches
For the security/privacy focused (more details about below feature list, see here)
  • Pre-installed microG and F-Droid same as the LineageOS for microG project
  • Pre-installed AuroraStore
  • Additional security hardening features listed below
  • Access to /proc/net blocked for user apps
  • Bundled netmonitor app to allow network monitoring
  • Enhanced Privacy Guard: Switches for motion sensors and other sensors
  • Cloudflare as default DNS (instead of Google)
  • Privacy-preferred default settings
  • Optional blocking of Facebook- and Google-Tracking
  • Optional disable captive portal detection
  • Increased max. password length of 64
  • No submission of IMSI/phone number to Google/Sony when GPS is in use
  • Default hosts file with many blocked ad/tracking sites
  • Privacy-enhanced Bromite SystemWebView
  • Additional restriction options for secondary users


Status
List template by AdrianDC
Code:
- Boot : Ok
- GApps (only build variant A): The smaller the better (pico package). If you want for example "Okay google" you need at least nano.
Just check https://github.com/opengapps/opengap...age-Comparison to see what fits your needs.
- Partitions (Data, Cache) : Ext4 and F2FS supported
- Bluetooth : Ok
- WiFi : Ok
- WiFi Hotspot : only 2.4 GHz
- RIL - Phone - Data : Ok
- GPS : Ok
- Camera : Ok
- Camcorder : Ok
- Lights : Ok
- MicroSD : Ok
- Accelerometer : Ok
- Compass : Ok
- Gyroscope : Ok
- Touchscreen : Ok
- FM Radio : Ok (mono)
- ANT+ : Ok
- Vibrator : Ok
- Microphone : Ok
- Audio & music : Ok
- Bluetooth audio : Ok
- MHL: broken
- NFC : Ok
- Kernel : Ok
- Graphics : Ok
- 3D Rendering : Ok
- Clock : Ok
- Offline Charging : Ok
- USB : Ok
- USB OTG : Ok
- Encryption : Ok
- SEPolicies : Enforcing
Limitations
Quote:

Following limitations are known:

  • NFC-HCE does not work (needed for example for google pay)
  • FM does not work in stereo mode (mono works fine, though)
  • Problems with some 5 GHz Wifi channels (can be avoided by not using autochanneling) fixed with 20190408 build
  • MHL does not work
  • 5 GHz hotspot does not work (2.4 GHz hotspot works fine)
  • ANT+ does not work fixed (see FAQ)
  • installing Magisk 19.1 prohibits entering recovery fixed with 20190521 build
  • GPS gets wrong time due to GPS week rollover since 3rd November 2019 (of importance when you record GPS tracks for example).
    This also happens on stock and several other legacy devices.
    fixed with 20190611 build

Download
Quote:

SourceForge

FAQ
Quote:

What recovery system to use?
Please use this TWRP if you want to use OTA updates and/or encryption.

Quote:

What about root access?
Root isn't included per default (except root over adb, but it's off by default).
If you want to gain root access to your apps use one of these (depending on your taste/needs):

Quote:

ANT+ isn't working?
You need the 2 apps:

afterwards setting proper permissions is essential!
  1. Go to Apps & Notifications -> See All Apps
  2. Select 'ANT Radio Service'
  3. Select Permissions
  4. Select Additional permissions
  5. Slide switch to allow using of ANT hardware
This refers to those instructions which worked for me

Quote:

I've got problems AND have magisk/exposed installed
I won't support anything related to magisk/exposed/other heavily system modifying things.
If you're encountering problems please make sure you're using a clean installation (at most gapps) to verify/reproduce the issue.

Bugreports
Quote:

You'll find information about logging here.
Please also note how you got the error or how it can be reproduced.

Sources
Credits
Quote:

  • SpiritCroc: big thanks to him for maintaining the device trees and a lot of very useful hints
  • rcstar6696
  • SuperLamic
  • drakonizer
  • AdrianDC
  • munjeni: thanks for tips and tricks
  • nailyk: thanks for tips and tricks
  • All the other contributors on Sony msm8974 platform
  • LineageOS team

Installation instructions
Quote:

Please see the OP of our (deprecated) LineageOS 15.1 thread or also here

Changelog
Quote:

11.06.2020

  • Security string 2020-06-05
  • GPS improvements / modernisation
  • Enable MIDI support
  • microG build only: Bromite Webview on M83
  • microG build only: Netmonitor exception in SEPolicy f. "Tracker Control" app
Expand for older changelogs:

09.05.2020
  • Security string 2020-05-05
  • Standard build only:System Webview on M81
  • microG build only: AuroraStore updated to 3.2.8
11.04.2020
  • Security string 2020-04-05
  • Fix for CVE-2020-8597 (external/ppp)
  • Kernel: CVE-2019-10638 siphash 128bit for IP generation
  • microG build only: AuroraStore updated to 3.2.4
  • microG build only: Bromite Webview on M81
07.03.2020
  • Security string 2020-03-05
  • System Webviews on M80
  • 2nd build variant 'hardened microG build' (known from 15.1 thread) available
  • microG build only: AuroraStore updated to 3.2.0
19.02.2020
  • fixed DRM (we now have widevine Level 3, Netflix for example runs fine)
  • fixed TWRP time bug
  • added option to prevent USB gadgets working when screen locked (trust HAL)
  • enabled changelog (can be accessed under /settings/system/updater/changelog)
  • synced LineageOS sources (security patch level February 05, 2020)
16.01.2020
  • synced LineageOS sources (security patch level January 05, 2020)
13.12.2019
  • synced LineageOS sources (security patch level December 05, 2019)
13.11.201919.10.2019
  • synced LineageOS sources (security patch level October 05, 2019)
13.09.2019
  • bring back wifi display
  • three finger screenshot gesture
  • synced LineageOS sources (security patch level September 05, 2019)
12.08.2019
  • fixed manual mobile network selection (once again)
  • synced LineageOS sources (security patch level August 01, 2019)
07.07.2019
  • synced LineageOS sources (security patch level July 05, 2019)
  • fixed AudioFX effects completely (thanks @NeoArian)
03.07.2019
  • start signing builds (please check this if you want to update)
  • enable OTA updates (thanks @NeoArian)
10.06.2019
  • synced LineageOS sources (security patch level June 05, 2019)
21.05.2019
  • fixed recovery issue introduced by Magisk versions starting with 19.1 (thanks @Myself5)
11.05.2019
  • synced LineageOS sources (security patch level May 05, 2019)
08.04.2019
  • fixed manual mobile network selection (thanks @SpiritCroc)
  • fixed problems with 5 GHz Wifi channels
  • added aptX/aptXHD
  • synced LineageOS sources (security patch level April 05, 2019)
11.03.2019
  • fixed alarm delay (came with new lineage sources)
  • fixed some more offline / USB charging problems (thanks @SpiritCroc)
  • synced LineageOS sources (security patch level March 05, 2019)
17.02.2019
  • fixed occasional camera problems (thanks @SpiritCroc)
  • various kernel patches (thanks @SpiritCroc)
  • synced LineageOS sources (security patch level February 05, 2019)
15.01.2019
  • fixed video playback for some applications (thanks @SpiritCroc)
  • fixed offline charging (thanks @SpiritCroc)
  • fixed FM radio (thanks @SpiritCroc)
  • updated webview to version 71 (thanks @MSe1969)
  • synced LineageOS sources
04.01.2019
  • initial release

XDA:DevDB Information
Lineage OS 16.0 for Xperia Z1 compact - amami, ROM for the Sony Xperia Z1 Compact

Contributors
115ek, MSe1969, SpiritCroc, drakonizer, rcstar6696, SuperLamic, AdrianDC, nailyk, LineageOS team
Source Code: https://github.com/lin16-microg/local_manifests

ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.4.x

Version Information
Status: Stable
Stable Release Date: 2020-06-11

Created 2019-01-04
Last Updated 2020-06-15
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20190914-160153_Trebuchet.png
Views:	2754
Size:	158.8 KB
ID:	4819453   Click image for larger version

Name:	Screenshot_20190914-160236_Trebuchet.png
Views:	2752
Size:	104.8 KB
ID:	4819454   Click image for larger version

Name:	Screenshot_20190914-160243_Trebuchet.png
Views:	2714
Size:	74.5 KB
ID:	4819455   Click image for larger version

Name:	Screenshot_20190914-160304_Trebuchet.png
Views:	2578
Size:	105.9 KB
ID:	4819456   Click image for larger version

Name:	Screenshot_20190914-160310_Trebuchet.png
Views:	2526
Size:	73.9 KB
ID:	4819458   Click image for larger version

Name:	Screenshot_20190914-160328_Settings.png
Views:	2566
Size:	78.1 KB
ID:	4819459   Click image for larger version

Name:	Screenshot_20190914-160344_Settings.png
Views:	2538
Size:	89.3 KB
ID:	4819460   Click image for larger version

Name:	Screenshot_20190914-160359_Settings.png
Views:	2494
Size:	78.0 KB
ID:	4819461   Click image for larger version

Name:	Screenshot_20190914-160408_Trebuchet.png
Views:	2430
Size:	150.7 KB
ID:	4819462   Click image for larger version

Name:	Screenshot_20190914-160440_Trebuchet.png
Views:	2414
Size:	160.3 KB
ID:	4819463   Click image for larger version

Name:	Screenshot_20190914-161607_Trebuchet.png
Views:	2332
Size:	144.2 KB
ID:	4819465   Click image for larger version

Name:	Screenshot_20190914-161554_Trebuchet.png
Views:	2268
Size:	143.2 KB
ID:	4819466   Click image for larger version

Name:	Screenshot_20190914-161542_Trebuchet.png
Views:	2196
Size:	155.0 KB
ID:	4819467   Click image for larger version

Name:	Screenshot_20190914-161507.png
Views:	2144
Size:	109.9 KB
ID:	4819468   Click image for larger version

Name:	Screenshot_20190914-161439_Trebuchet.jpg
Views:	2164
Size:	102.1 KB
ID:	4819469  
The Following 24 Users Say Thank You to 115ek For This Useful Post: [ View ] Gift 115ek Ad-Free
4th January 2019, 09:36 AM |#2  
OP Senior Member
Thanks Meter: 552
 
More
Changelog
The changelog was moved to the OP due to xda not allowing secondary thread owners to edit this post
The Following 6 Users Say Thank You to 115ek For This Useful Post: [ View ] Gift 115ek Ad-Free
4th January 2019, 09:36 AM |#3  
OP Senior Member
Thanks Meter: 552
 
More
Tips & Tricks
microG initial configuration after 1st install (microG build variant only)
After the first installation of this ROM, you need to setup microG.
Please read the instructions given on the LineageOS for microG site, section "Post Install - UnifiedNlp"

OTA Updates on an encrypted device
In case your device in encrypted and you have flashed apps creating "survival scripts" in /system/addon.d (e.g. Magisk), there *may* be a dependency to files in the data partition.
An OTA update until current TWRP 3.3.1 does not decrypt the data partition, as this is usually not needed - under specific circumstances however, this may lead to unwanted effects (up to a non-booting device!) during an OTA update, if such scripts aim at modifying files located in the data partition. If unsure, rather perform the update manually as dirty-flash in TWRP or - which in general is a good practice - regularly perform backups in TWRP. If you haven't flashed anything on top of my build (except for the LineageOS root addon, which is no problem), there shouldn't be any issue.
(This commit in TWRP indicates, that this potential issue will be solved in future TWRP releases).
The Following User Says Thank You to 115ek For This Useful Post: [ View ] Gift 115ek Ad-Free
4th January 2019, 12:57 PM |#4  
Member
Flag Cà Mau
Thanks Meter: 11
 
More
Ok ok .
15th January 2019, 07:59 AM |#5  
OP Senior Member
Thanks Meter: 552
 
More
new build
New build:
15.01.2019
  • fixed video playback for some applications (thanks @SpiritCroc)
  • fixed offline charging (thanks @SpiritCroc)
  • fixed FM radio (thanks @SpiritCroc)
  • updated webview to version 71 (thanks @MSe1969)
  • synced LineageOS sources

https://androidfilehost.com/?fid=11410963190603900297
The Following 6 Users Say Thank You to 115ek For This Useful Post: [ View ] Gift 115ek Ad-Free
15th January 2019, 04:24 PM |#6  
OP Senior Member
Thanks Meter: 552
 
More
Important announcement:
There were problems with FM radio in lineage-16.0-20190114 which was linked one post above.

Please use lineage-16.0-20190115 from here: https://www.androidfilehost.com/?fid...63190603901105
The Following User Says Thank You to 115ek For This Useful Post: [ View ] Gift 115ek Ad-Free
23rd January 2019, 09:56 AM |#7  
lm089's Avatar
Senior Member
Flag Munich
Thanks Meter: 139
 
More
Took a while, but last night I flashed this. And it's fabulous! Some observations, regarding your list in the OP (couldn't test everything, though):
GPS: not just OK but I had the fasted 3D fix since I moved away from stock! Much faster than with signed LOS 15.1 or munjeni's LOS 7.1.2 (well below 10 seconds from my living room window, down from sometimes 90 - 120 seconds!)
WiFi Hotspot: working good and reliably
Compass: somewhat working but GPS Test says "unreliable", and indeed compared to my tablet directions are off by several degrees (pointing to NNW where the tablet says N); attempts to calibrate didn't have any effect
FM radio: working but mono (you wrote that already)
USB OTG: working good and at least reading is about as fast as with other ROMs (USB stick is formatted NTFS, btw)
===
I flashed together with Magisk 18 and openGapps 9 pico
During first boot phone froze completely during boot animatoin; had to hard reset, then it booted fine into system
Google initial setup was a bit weird, had a FC first, then a short loop through the initial three screens, but after a few attempts it finally ran through.
Didn't do much more now, as I need my phone for, well, what you usually need a phone for , so I'm going back to 15.1 now. But the first few steps were extremely promising. Probably will be testing a bit more over the weekend.
Can't wait to use this as a daily driver!
The Following User Says Thank You to lm089 For This Useful Post: [ View ] Gift lm089 Ad-Free
4th February 2019, 07:31 PM |#8  
lingowistico's Avatar
Senior Member
Flag Stockholm
Thanks Meter: 376
 
More
Using 15/01/2019.
Dirty flashed over last 15.1 (wiped cache/dalvik/system but kept data).
Working really well so far.
One thing I've noticed is that the UI seems a bit slower/somewhat choppier than 15.1, very slightly though. Barely noticeable, but the UI does seem to be a bit slower.
Other than that it's really impressive and is going to be my daily driver until/if something goes bad.
Another thing is twrp 3.2.3 backup restore of this rom seems to result in bootloop, but that might as well be because of me keeping data from 15.1.
7th February 2019, 10:23 PM |#9  
Member
Thanks Meter: 22
 
More
Quote:
Originally Posted by lingowistico

Using 15/01/2019.
Dirty flashed over last 15.1 (wiped cache/dalvik/system but kept data).
Working really well so far.
One thing I've noticed is that the UI seems a bit slower/somewhat choppier than 15.1, very slightly though. Barely noticeable, but the UI does seem to be a bit slower.
Other than that it's really impressive and is going to be my daily driver until/if something goes bad.
Another thing is twrp 3.2.3 backup restore of this rom seems to result in bootloop, but that might as well be because of me keeping data from 15.1.

It's just my impression, but I've seen that sometimes the sense of slow UI may be just due to the speed of animations. Try changing the 3 scale animations on developer settings from 1x to 0.5x as is a common value
The Following 2 Users Say Thank You to Brozada For This Useful Post: [ View ] Gift Brozada Ad-Free
9th February 2019, 03:46 PM |#10  
lingowistico's Avatar
Senior Member
Flag Stockholm
Thanks Meter: 376
 
More
Sorry if this is the wrong place to ask this but: when using Dir file manager (super clean and light weight) I can't add home screen shortcuts to files for some reason. This worked on stock lollipop but not on Lineage 15.1 or 16.
How do I make this work again?
9th February 2019, 04:26 PM |#11  
OP Senior Member
Thanks Meter: 552
 
More
Quote:
Originally Posted by lingowistico

Sorry if this is the wrong place to ask this but: when using Dir file manager (super clean and light weight) I can't add home screen shortcuts to files for some reason. This worked on stock lollipop but not on Lineage 15.1 or 16.
How do I make this work again?

It's definitely a problem with the app itself.
I just tested my preferred file manager - Total Commander - and it worked fine.
Also ES did the job.
Only your mentioned Dir file manager wasn't able to do it.
It seems there is a new api to access shortcuts? Maybe they don't support it? Did you tried on an other device with Android >=8 ?

I just made a screenshot how it should look like (the confirmation dialog).

EDIT:
Yes. Had the right suspicion: https://github.com/veniosg/Dir/issues/126
It's a known app problem.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20190209-052348_Trebuchet.png
Views:	1218
Size:	60.6 KB
ID:	4702361  
The Following User Says Thank You to 115ek For This Useful Post: [ View ] Gift 115ek Ad-Free
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes