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

Status
Not open for further replies.
Search This thread
I already tried that without luck :( It seems that the creation of the location provider services is very very early at boot (in "system process") and that the RRO engine is not working at this time. I did make sure that the apk is working by overriding a visible marker and can confirm that my overlay apk was working. If I didn't miss something I'm afraid there is no option for this.
Could you please share your AndroidManifest.xml and vour core/res/res/values.xml file, which you have used to create your RRO? And where did you put it and how did you create and sign it?
 

115ek

Senior Member
Jan 30, 2017
564
632
[MENTION=8036586]
I did but unfortunately without success. The framework-res ended up with
Code:
<string-array name="config_locationProviderPackageNames">
        <item>com.google.android.gms</item>
        <item>com.android.location.fused</item>
</string-array>
Is it possible for your to have a deeper look? It would be ok if it's impossible. In this case I have to wait until I get some free time again and will dig into building my own ROM.

Umm, okay. It seems the overlay overwrites instead of appending to existing stuff.
I applied this patch now and uploaded a new build.

But don't get so much hope this will ever be merged in lineage. I highly doubt it.
 
Apr 30, 2016
6
0
Could you please share your AndroidManifest.xml and vour core/res/res/values.xml file, which you have used to create your RRO? And where did you put it and how did you create and sign it?
The source is at github.com/greenflash1986/UnifiedNlpOverlay/ together with the answers of the other questions in the readme. The commented code in config.xml L11 and L12 was my marker for "overlay is working" because this is visible. I already tried a version with "isStatic" in the manifest. Thank you for looking into this.

[...] and uploaded a new build.
Thank you very much! It's working! :D Atleast Unified was working until I but Gapps on the phone. Digging deeper in the code it seems that there is in fact only one service allowed. Not questioning if this service is enabled or not ... Anyway, the "best" service is based on the "serviceVersion" in the metadata of the manifest in the package... :D you can have a look at github.com/LineageOS/android_frameworks_base/blob/lineage-16.0/services/core/java/com/android/server/ServiceWatcher.java#L244
One is able to look for possible matching services with
Code:
pm query-services -a com.android.location.service.v3.NetworkLocationProvider
.
I will dig deeper in this stuff the next days. Thank you very much for providing me a working image! Would cost me some days to get into building a ROM on my own. Thank you very much!

(PS: had the same problem with the download as 2faraway2. But where successful after some attempts and mirror changes)
 
Last edited:
Hi all,

I have uploaded new builds for both build variants, they are already offered as OTA updates.

A. Standard LineageOS 16.0 build
  • Version string 2020-12-01 (this month, no kernel updates found)
  • System Webview on 86.0.4240.198

B. Pre-installed microG build variant with additional security patches
  • Version string 2020-12-01 (this month, no kernel updates found)
  • Bromite System Webview on 87.0.4280.106
  • F-Droid updated to 1.10-alpha1-114
  • microG updated from upstream to 0.2.14.204215-15 (picked until 720b089)

As indicated before, I am planning to start providing a respective 17.1 microG build and then stop the 16.0 builds, so @115ek and I would offer only 17.1 builds - more to come soon.

@115ek - right now, with the new XDA forum software and DevDB gone, I am not able any more to edit the OP (have posted a question about that in the respective support thread). So could you please update the change log of the OP accordingly? Thanks!

Happy flashing, regards M.
 
Last edited:
@MSe1969 did you find something else in the repo I could try?
Sorry for the late reply, I was very busy work-wise. And no, I did not try myself or found anything.
However, I have seen that you considered already all the points, I could think of and which I would have tried, if they hadn't been mentioned already by you. So it indeed seems to be the case, that the RRO "engine" only comes into effect 'too late' for location providers...
 
Heading towards EOL . . .

Hi all,
as you have read already in previous posts, we are switching over to lineage-17.1 now.

@115ek had since about a year already the below thread for the regular lineage-17.1 builds for the amami device, and since longer time, those builds have been stable and in daily-driver quality:

In the last weeks, I have started to provide lineage-17.1 test builds of the "microG" 2nd build varaint and since last month, I have also added the lineage-17.1 "microG" build as 2nd build variant to the above thread.
I have now built both variants for 17.1 and published them in above thread.

As mentioned already before, you can simply "dirty"-flash the 17.1 build over the 16.0 build, if you stay in the build variant, i.e.:
lineage-16.0 build variant A => lineage-17.1 build variant A
lineage-16.0 build variant B => lineage-17.1 build variant B

In fact, going forward, this is what @115ek and I recommend to you. We will keep this thread still open for a while and will also answer questions concerning the 16.0 builds (especially migration to 17.1 related questions).

Besides that, thank you for your interest in our 16.0 builds and looking forward to seeing you in our above mentioned known 17.1 amami thread.

Cheers,
115ek and MSe1969
 

z1compactuser

New member
Jan 21, 2021
1
0
Hi! Thank you so much for your hard work on all your roms for the z1 compact!

This is the first time I have found a problem, I tried to update from lineage-16.0 build variant A to lineage-17.1 build variant A by "dirty"-flashing but I must have done something wrong because after it tried to boot for a while (it was stuck on the lineage logo) I was then just rebooted back to the recovery. Thankfully I was able to recover a backup.

I have the latest standard lineage os 16 with GApps installed and the twrp that allows for ota-uppgrades.

If you have the time, could you please provide some more detailed instructions on how to dirty-flash from the standard lineage os 16 to the standard lineage os 17.1?
 

115ek

Senior Member
Jan 30, 2017
564
632
If you have the time, could you please provide some more detailed instructions on how to dirty-flash from the standard lineage os 16 to the standard lineage os 17.1?

Maybe these official instructions on how to do a version upgrade may help you.
Yes, they are for the Z3 compact, but these steps are device independent.
You don't have to do the installation via sideloading - copying the new zips to sdcard/internal storage and flashing them from TWRP works as well.

I'd guess you made the mistake to not install the new (17.1) gapps package after installing Lineage 17.1 and before the first boot.
 
Last edited:
EOL
Hi all, in the LineageOS 17.1 successor thread, new builds with the February ASB patches have been published.
As already announced, this thread is EOL and we recommend you to upgrade (scroll back for more information), if not yet done.

We'll stop watching this thread and recommend to ask questions regarding migration to LineageOS 17.1 in our 17.1 thread.
@115ek - I suggest to ask the XDA forum admins to close this thread.
 
  • Like
Reactions: 115ek
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    This thread is discontinued - please visit the LineageOS 17.1 sucessor 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.

    If you want to install Google Apps (GApps) you have to use this build variant.
    GApps are optional, of course. The smaller the GApps package, the better (pico). If you want "Okay google" support you need at least nano.
    Just check the package comparison to see what fits your needs.

    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
    • eSpeak TTS engine (FOSS TTS solution)
    • 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
    • Constified JNI method tables


    Status
    List template by AdrianDC
    Code:
    - Boot : Ok
    - 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
    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
    FAQ
    What recovery system to use?
    Please use this TWRP if you want to use OTA updates and/or encryption.

    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):
    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 :)
    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
    You'll find information about logging here.
    Please also note how you got the error or how it can be reproduced.
    Sources
    Credits
    • 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

    Changelog
    13.12.2020
    • ASB Security string 2020-12-01 (this month, no kernel updates found)
    • Webview updates for both builds (microG build on M87)
    • microG build only: F-Droid updated to 1.10-alpha1-114
    • microG build only: microG updated from upstream to 0.2.14.204215-15 (picked until 720b089)
    Expand for older changelogs:

    10.11.2020
    • ASB Security string 2020-11-05
    • Fix for CVE-2020-15999
    • AOSP E-Mail widget fixed
    • Webviews upodated to/within M86
    • microG build only: microG - fixes in EN API and GCM
    • microG build only: Replaced weak F-Droid signatures with ROM's V2 signatures
    13.10.2020
    • ASB Security string 2020-10-05
    • microG build only: Bromite Webview on M86
    • microG build only: microG 0.2.12.203315 - including "Exposure notification API" for use of Covid tracing apps
    • microG build only: Additional hardening: constified JNI method tables
    13.09.2020
    • ASB Security string 2020-09-05
    • Webviews on M85
    • microG build only: Added eSpeak TTS engine (microG build variant)
    09.08.2020
    • ASB Security string 2020-08-05
    • Webviews on M84
    • microG build only: Location of firewall UI now in Network => data usage (Settings menu)
    12.07.2020
    • ASB Security string 2020-07-05
    • microG build only: updated prebuilt microG GmsCore fom /e/ project (fixed FCM registration issues)
    • microG build only: F-Droid updated to 1.8 / F-Droid privileged extension updated to 0.2.11
    • microG build only: Aurorastore updated to 3.2.9 / AuroraServices updated to 1.0.6
    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
    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.2019
    19.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-11-10

    Created 2019-01-04
    Last Updated 2020-12-13
    8
    New builds with May 2020 ASB

    Hi all,
    new builds are ready and are also offered through the updater app as OTA update:

    A. Standard LineageOS 16.0 build
    https://sourceforge.net/projects/li...20200509-UNOFFICIAL-signed-amami.zip/download
    • ASB Security string 2020-05-05
    • System Webview on 81.0.4044.117

    B. Pre-installed microG build variant with additional security patches
    https://sourceforge.net/projects/li...8-UNOFFICIAL-microG-signed-amami.zip/download
    • ASB Security string 2020-05-05
    • Bromite Webview on 81.0.4044.127
    • AuroraStore updated to 3.2.8

    Cheers, M.
    8
    First OTA update

    First OTA update is rolling out now. If you don't use OTA function go over here
    07.07.2019
    • fixed AudioFX effects completely (thanks @NeoArian)
    • synced LineageOS sources (security patch level July 05, 2019)

    Please share your experiences if updating worked flawlessly (or if not).

    By the way: as I'm testing some TWRP decryption stuff my lineage is encrypted. And although there isn't a TWRP available for our device capable of decrypting /data (for oreo/pie) the OTA update worked fine!
    It seems the lineage updater stores the new update in a non-encrypted temporary partition. :eek:
    8
    New build is now available:
    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)

    You'll find it here.
    7
    New builds with April 2020 ASB

    Hi all,
    new builds are ready and will soon be offered through the updater app as OTA update:

    A. Standard LineageOS 16.0 build
    https://sourceforge.net/projects/li...20200410-UNOFFICIAL-signed-amami.zip/download
    • ASB Security string 2020-04-05
    • Fix for CVE-2020-8597 (external/ppp)
    • Kernel: CVE-2019-10638 siphash 128bit for IP generation *
    • System Webview on 80.0.3987.132

    B. Pre-installed microG build variant with additional security patches
    https://sourceforge.net/projects/li...0-UNOFFICIAL-microG-signed-amami.zip/download
    • ASB Security string 2020-04-05
    • Fix for CVE-2020-8597 (external/ppp)
    • Kernel: CVE-2019-10638 siphash 128bit for IP generation *
    • Bromite Webview on 81.0.4044.76
    • AuroraStore updated to 3.2.4

    Cheers, M.
    ________________________________________
    * Kernel is frequently updated every month, but this one I found worth mentioning