[ROM][Unofficial][10.0][signed][OTA] Lineage OS 17.1 for Xperia Z1 compact

Search This thread

115ek

Senior Member
Jan 30, 2017
550
620
Calling out for fearless testers

A new feature called seedvault is making its way into LineageOS. It's still under development but I thought it could be nice to check it out already.
Integrating it into LineageOS needs some more testing - so let's do our part ;)
Seedvault is a backup application directly built into the system. It allows encrypted backups which can be stored in various locations ranging from SD card over USB drives to cloud storages like nextcloud. Please have a look here for further information: https://calyxinstitute.org/projects/seedvault-encrypted-backup-for-android.

Please be aware this build is for testing purposes! It won't reach via "normal" OTA updates yet. You need to act if you want to test it.
If you encounter issues during testing please report here or directly open a ticket here and attach logs.
Don't get confused by the "Please file a bug if you see this!" text ;)
As I already said: work-in-progress.

If you now really want to test you've got 2 options:
  1. Download and install it manually. The build is also signed and can be dirty flashed.
  2. Option two: Switch to the testing channel and get it via OTA update. Therefore you have to edit the /system/build.prop:
    • Enable adb and root over adb.
    • Connect device.
    • Code:
      adb root
    • Code:
      adb remount
    • Code:
      adb shell nano /system/build.prop
    • change
      Code:
      lineage.updater.uri=https://raw.githubusercontent.com/115ek/OTA/lineage-17.1/amami.json
      to
      Code:
      lineage.updater.uri=https://raw.githubusercontent.com/115ek/OTA/test/amami.json
 

Attachments

  • Screenshot_20201016-214941_Settings.png
    Screenshot_20201016-214941_Settings.png
    27.2 KB · Views: 142
  • Screenshot_20201016-220537_Settings.png
    Screenshot_20201016-220537_Settings.png
    30.5 KB · Views: 141
  • Screenshot_20201016-220557_Seedvault.png
    Screenshot_20201016-220557_Seedvault.png
    93.6 KB · Views: 141
  • Screenshot_20201016-220626_Seedvault.png
    Screenshot_20201016-220626_Seedvault.png
    72.3 KB · Views: 139
  • Screenshot_20201016-220731_Seedvault.png
    Screenshot_20201016-220731_Seedvault.png
    38.7 KB · Views: 136
Last edited:

115ek

Senior Member
Jan 30, 2017
550
620
New build is up. It is also being shipped as ota update.
08.11.2020
  • synced LineageOS sources (security patch level November 05, 2020)
  • Seedvault is included officially now (inbuilt backup solution)
 

115ek

Senior Member
Jan 30, 2017
550
620
If someone wants to have a look on Lineage 18: here you go
Please consider this as an early preview. Known problems so far: broken camera.
 

Attachments

  • Screenshot_20201128-130455_Settings.png
    Screenshot_20201128-130455_Settings.png
    81.9 KB · Views: 74
Last edited:
  • Like
Reactions: 7alvoo

jho55

Senior Member
Sep 8, 2015
236
60
Munich
If someone wants to have a look on Lineage 18: here you go
Please consider this as an early preview. Known problems so far: broken camera.

The bad font rendering from 17.1 is gone in this build.
 

Guffiuk

New member
Dec 14, 2020
1
0
Hi
Recently rooted my Z1compact via twrp and magisk. Phone is now running well on the latest build 20201108. Only thing I found is that I couldn't send a .Apk file to it, other files works well from a standart Z1c and samsung tablet.
Is this a Android 10 "feature" or Lineage OS?

Thanks
 

115ek

Senior Member
Jan 30, 2017
550
620
Hi
Recently rooted my Z1compact via twrp and magisk. Phone is now running well on the latest build 20201108. Only thing I found is that I couldn't send a .Apk file to it, other files works well from a standart Z1c and samsung tablet.
Is this a Android 10 "feature" or Lineage OS?

Thanks

What do you mean by sending? Sending via bluetooth? Copying over usb?
 

115ek

Senior Member
Jan 30, 2017
550
620
New build is up. It is also being shipped as ota update.
18.12.2020
  • synced LineageOS sources (security patch level December 05, 2020)

Important note:
Encryption AND usage of gapps may cause problems. This is a problem affecting many legacy devices that use full disk encryption (FDE). More details here.
 

115ek

Senior Member
Jan 30, 2017
550
620
Hello,
Any solution to change SD card camera destination .../Android/data/org.lineageos.snap/files , which cannnot be viewed in Gallery app?
You can no longer store images on the sdcard with snap (the default camera app). This feature is broken and got removed. Check this for more details.
You may use OpenCamera or save to internal memory and copy it to the sdcard manually. Or the best option: Fix the "save to sd card" feature in snap and push it to gerrit. I guess you would make many people happy. :)
 
  • Like
Reactions: kedswolm
2nd build variant "hardened microG build" now available

Hi all,
similar to the LineageOS 16.0 thread, which is operated by @115ek together with me, we are now also offering the 2nd build variant of the "hardened microG build" for LineageOS 17.1 - download link here:

For those of you using this "microG" build variant already for LineageOS 16.0, you can simply "dirty-flash" it over the LineageOS 16.0 "microG" build.

Features of this 2nd build variant:
  • Pre-installed microG and F-Droid same as the LineageOS for microG project
  • Pre-installed AuroraStore
  • eSpeak TTS engine (FOSS TTS solution)
  • Bromite as default browser
  • Additional security hardening features listed below
  • Cloudflare as default fallback DNS (instead of Google)
  • Privacy-preferred default settings
  • Optional blocking of Facebook- and Google-Tracking (Settings - Network & Internet)
  • Optional disable captive portal detection or choose from various providers (default is GrapheneOS and not Google; Settings - Network & Internet)
  • 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
  • Extra control of sensor access for additionally installed user apps (Special access under app permissions)
  • Firewall (control internet access per app - under Trust)
  • Constified JNI method tables
EDIT: Sec. string 2020-12-05

@115ek :
Please adapt the OP of this thread accordingly - thanks!
(Unfortunately, the "contributor feature" is gone with the new forum software, I would have loved to get more useful features taken over . . . - nobody e.g. needs this useless "Topics" waste of space on the left-hand side...)

Cheers, M.
 
  • Like
Reactions: J_C_D and 115ek

J_C_D

Member
Jan 30, 2012
18
12
Mannheim / Germany
2nd build variant "hardened microG build" now available

Just installed it and it feels gorgeous! Thank you!!!

One question: Is it possible to get the camera button working again like it worked in the Stock ROM? i.e. directly open the Camera app meanwhile the device is locked.

I do also have another problem: it seems that photos taken by the Camera app cannot be deleted again by the Gallery app. I'll investigate that further.
 

2faraway2

Senior Member
Apr 24, 2016
184
29
2nd build variant "hardened microG build" now available

....

I flashed it dirty over the last MicroG Android 9 build, congratulations for a very, very smooth update possibilty (y):)(y)
Just two small things:

- I would recommend to flash Magisk together with the V10 build, else Magisk is gone (the Magisk survival script doesn't work in this constellation)

- Max front camera resolution for video recording seems to be 1600x1200 ? At least this is what camera2 probe reports.
But our devices support 4K video recording with the front camera, which is imho 3840x2160 pixel

This may cause video recording apps not to support the max size ..

Anyway, a huge thanks for this A10 build which is almost nearly perfect :)
 
  • Like
Reactions: MSe1969

J_C_D

Member
Jan 30, 2012
18
12
Mannheim / Germany
(lineage-17.1-20201219-UNOFFICIAL-microG-signed-amami.zip)
I do also have another problem: it seems that photos taken by the Camera app cannot be deleted again by the Gallery app. I'll investigate that further.
Ok, it's a bug in the Gallery App itself. So let's hope that it's already fixed upstream and the fix will be contained in your next build :cool:
 

zeec

New member
Aug 31, 2020
4
0
After installing 18.12.2020 ota update:

When i try to check for updates "the update check failed. Please check your internet connection and try again later.
Mobile data&wifi works.

Flashlight is greyed out, nothing happens when i try to press it.

When i have sensors off camera app crashes/wont start at all, works when i have sensors on. camera worked on previous update while sensors were off.
 

115ek

Senior Member
Jan 30, 2017
550
620
After installing 18.12.2020 ota update:

When i try to check for updates "the update check failed. Please check your internet connection and try again later.
Mobile data&wifi works.

Flashlight is greyed out, nothing happens when i try to press it.

When i have sensors off camera app crashes/wont start at all, works when i have sensors on. camera worked on previous update while sensors were off.
Which version are you using? Standard or microG?

Concerning the update check: I guess the new repo containing the OTA update information isn't setup yet. It'll be if the next update rolls out. This will also be announced here. Please report back if it doesn't work for you after this.
 
Last edited:
  • Like
Reactions: zeec and MSe1969

zeec

New member
Aug 31, 2020
4
0
Which version are you using? Standard or microG?

Concerning the update check: I guess the new repo containing the OTA update information isn't setup yet. It'll be if the next update rolls out. This will also be announced here. Please report back if it doesn't work for you after this.
Standard, can i switch over to microg in recovery without ADB/SD card?
 

115ek

Senior Member
Jan 30, 2017
550
620
Standard, can i switch over to microg in recovery without ADB/SD card?

Yes. This is possible. The easiest approach would be a clean flash.
  • Download the microg version and save it in the internal storage (should be stored in downloads of internal storage by default)
  • Reboot to recovery
  • Wipe /cache, /data, /system
  • Install the .zip from /sdcard/Download (if you downloaded it to the Download folder...)
  • reboot
This, however, would lead to loosing your data (installed apps, wifi keys, ...). Your internal storage (pictures, media, etc...) will stay untouched.

You could also switch between buildflavours without wiping /data. Please check this thread, especially the point Switching between build flavors.
This requires some more work, though.

@MSe1969 The instructions should be still usable, right? Except that YalpStore is Aurora now...
 
  • Like
Reactions: zeec

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    flashed the May build, tried to reboot to system - and again I ended up in a bootloop
    1. Before uninstalling Magisk you have to restore Magisk to the original name (unhide)!
    After uninstalling Magisk you have to flash the original boot.img from the new LOS ROM (this is very important because on our XPerias the uninstall routine does not remove all changes to ram disk):
    flashboot flash:raw boot boot.img

    2. Don't boot now!
    Instead do a "fastboot reboot" and press Vol down until the phone boots to TWRP.

    3. Install now in TWRP the patched Magisk_23.001p.zip.
    The patched Magisk installs correct, the Maggisk app (formerly Manager) is installed as a stub. Starting this stub downloads the full app.

    4. Then you have to config Magisk.

    5. Make a TWRP backup!

    Patching the boot.img from the Manager fails every time so you have to use this method.

    All Magisk updates can be installed without problems.

    Important: every ROM update destroys parts of the boot partition, you can boot normal but boot to TWRP does not work.
    So if the kernel has no important updates then after installing the update, restore the boot partition from #5.


    Patching the Magisk_xxx.zip:
    Please read my post in https://github.com/topjohnwu/Magisk/issues/3636
    Especially the patch from user bleckdeth (I can use it but I don't understand it).

    I can offer to download
    1. the actual patched boot_patch.sh
    2. the already patched Magisk app-debug_23001p.zip

    Link to 1: https://www.magentacloud.de/lnk/KqvysqQq
    Link to 2: https://www.magentacloud.de/lnk/jVvSM4Qu



    With this method you can flash Magisk on LOS 17.1 and 18.1.
    It seams that many XPeria are affected, topjohwu knows this problem since Jan 2021 :-(
    2
    I think it's not a problem of complexity. It's more a question of if we want to include it.
    If, then it would also only make sense for the microg builds.

    However, I don't really like the fact of including an arbitrary prebuilt apk.
    But in the end the microg builds are in @MSe1969's responsibility. So I'm just giving my opinion here.

    What about adding it on your own at first? Did you already try?
    Hello @115ek, correct, this would only make sense for the microG builds.

    @android666 Thanks for the interesting contribution, I will definitely have a look and do some testing.

    In fact, as this is a Stub, which requires to download the official AA app, which will then "update" the stub, it could be an interesting feature.

    Will get back on that, but no promises
    1
    Hmm... - in fact, as you know, "Internal Memory" is not a "partition", but a directory structure within the /data partition.

    How did you 'backup' Internal memory? Did you simply connect the device via USB and copy all files and directories to your PC via the PC's file manager (and did the restore later the same way)? Or did you use any special "low level method" (or application)? (I am not aware of any, but just to make sure...)

    You could try to purge the 'Android' directory and all its subdirectories from recovery (of course after backing it up) after flashing the May build. This structure will be automatically rebuilt. I suspect, that some app data of system apps stored there causes the trouble...
    Ok, sorry if I mix things up (in regards to misusing the "pertition" term).

    Backup method: yes: just plain copy over all that's in there using Windows' file explorer

    Meanwhile I re-did the entire wipe/format - clean flash May build - re-setup process. It doesn't take too long on that device, there's not too much on it. I had a very recent Titanium backup set. In regards to Magisk, I'm now running V20.3 from early last year, that should do. Only drawback is that I had to install it from TWRP as the newer instlalation method was introduced only a few versions ago.

    Everything appears to be running fine now; hope the next update will run fine.

    There's only one problem left: for some reason I cannot connect the device to the PC in fastboot mode. Adb is fine, but I never get an answer from "fastboot devices". Don't have any problems here with my other devices. But I'll take care of that another day.

    UPDATE: solved, was my windows machine...

    Cheers and good night, L
    1
    For what I use the device for I'm perfectly happy with that solution: no need to hide the root solution.
    Fine :)
    But if you want to ugrade to LOS 18.1 you definitively have to use Magisk >21.x and then you need to patch Magisk.zip too.
    1
    hello 115ek, MSe1969. could you please include AA support into future images, if it's not too complicated ?


  • 19
    This thread aims at providing LineageOS 17.1 builds for the Sony Xperia Z1 compact with current security patches.
    You can consider this thread as a successor of our LineageOS 16.0 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 17.1 build
    This build flavor aims at providing LineageOS 17.1 "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)
    • Bromite as default browser
    • Additional security hardening features listed below
    • Cloudflare as default fallback DNS (instead of Google)
    • Privacy-preferred default settings
    • Optional blocking of Facebook- and Google-Tracking (Settings - Network & Internet)
    • Optional disable captive portal detection or choose from various providers (default is GrapheneOS and not Google; Settings - Network & Internet)
    • 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
    • Extra control of sensor access for additionally installed user apps (Special access under app permissions)
    • Firewall (control internet access per app - under Trust)
    • Constified JNI method tables


    Status
    List template by AdrianDC
    Code:
    - Partitions (Data, Cache) : Ext4 and F2FS supported
    - Bluetooth : Ok
    - WiFi : Ok
    - WiFi Hotspot : Ok
    - 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)
    • MHL does not work
    • 5 GHz hotspot does not work (2.4 GHz hotspot works fine) (5 GHz option disabled with 2020-03-11 build as it isn't even available on stock)
    • GPS gets wrong time due to GPS week rollover since 3rd November 2019 (of importance when you record GPS tracks for example). fixed with 20200520 build
    • Using GApps AND encrypting the device may result in bootloops. More infos here.
    • Standard Trebuchet Launcher shows small artifacts in the fonts of app names in some situations.
    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 magisk (everything > 20.4 is broken):
    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
    We 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
    • NeoArian: also big thanks to him ;)
    • 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


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

    Contributors

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

    ROM OS Version: Android 10
    ROM Kernel: Linux 3.4.x

    Version Information
    Status:
    Stable
    Stable Release Date: 2020-12-29

    Created 2019-11-22
    Last Updated 2021-05-12
    8
    New builds with May 2021 ASB patches available

    Hi all,
    new builds are available and offered as OTA updates via the updater app.

    A. Standard LineageOS 17.1 build
    • Security String 2021-05-05
    • System Webview on 90.0.4430.82

    B. Pre-installed microG build variant with additional security patches
    • Security String 2021-05-05
    • Bromite System webview updated to 90.0.4430.204
    • Bromite Browser updated to 90.0.4430.204
    • microG upstreamed (but no new version)
    • Update: AuroraServices 1.1.1

    @115ek - please update OP/Changelog

    Regards, M.
    7
    New builds with March 2021 ASB patches available

    Hi all, new builds are available and offered as OTA updates via the updater app.

    A. Standard LineageOS 17.1 build
    • Security String 2021-03-05
    • System Webview on 88.0.4324.152

    B. Pre-installed microG build variant with additional security patches
    • Security String 2021-03-05
    • Bromite System webview updated to 88.0.4324.207
    • Bromite Browser updated to 88.0.4324.207
    • F-Droid 1.11
    • microG 0.2.18.204714

    @115ek - please update OP/Changelog

    Regards, M.
    6
    Changelog

    12.05.2021

    • ASB Security string 2021-05-05
    • standard build only:
      • System Webview on 90.0.4430.82
    • microG build only:
      • Bromite System webview updated to 90.0.4430.204
      • Bromite Browser updated to 90.0.4430.204
      • microG upstreamed (but no new version)
      • Update: AuroraServices 1.1.1
    11.04.2021
    • ASB Security string 2021-04-05
    • standard build only:
      • System Webview on 89.0.4389.105
    • microG build only:
      • Bromite System webview updated to 90.0.4430.59
      • Bromite Browser updated to 90.0.4430.59
      • F-Droid 1.12
      • Update: AuroraStore 4.0.4 with AuroraServices 1.1.0
    09.03.2021
    • ASB Security string 2021-03-05
    • standard build only:
      • System Webview on 88.0.4324.152
    • microG build only:
      • Bromite System webview updated to 88.0.4324.207
      • Bromite Browser updated to 88.0.4324.207
      • F-Droid 1.11
      • microG 0.2.18.204714
    07.02.2021
    • ASB Security string 2021-02-05
    • misc. kernel patches
    • microG build only:
      • Bromite System webview updated to 88.0.4324.141
      • Bromite Browser updated to 88.0.4324.141
      • F-Droid 1.10-alpha-234
      • microG 0.2.17.204714-5
    14.01.2021
    • ASB Security string 2021-01-01
    • standard build only:
      • Kernel slightly upstreamed
      • System Webview: Fix of persistent histogram bug (eating space in some cases)
    • microG build only:
      • Bromite Webview on 87.0.4280.131
      • Updated microG from upstream to 0.2.16.204713-10 (picked until 2f29b93)
      • Updated F-Droid to 1.10-alpha1-212
    29.12.2020
    • introduce microG build variant (see this post or the OP for more information)
    18.12.2020
    • synced LineageOS sources (security patch level December 05, 2020)
    08.11.2020
    • synced LineageOS sources (security patch level November 05, 2020)
    • Seedvault is included officially now (inbuilt backup solution)
    07.10.2020
    • synced LineageOS sources (security patch level October 05, 2020)
    13.09.2020
    • synced LineageOS sources (security patch level September 05, 2020)
    17.08.2020
    • synced LineageOS sources (security patch level August 05, 2020)
    13.07.2020
    • synced LineageOS sources (security patch level July 05, 2020)
    16.06.2020
    • further GPS improvements
    • synced LineageOS sources (security patch level June 05, 2020)
    20.05.2020
    11.05.2020
    • synced LineageOS sources (security patch level May 05, 2020)
    16.04.2020
    • synced LineageOS sources (security patch level April 05, 2020)
    15.03.2020
    • fixed livedisplay
    • fixed OTA update URL
    11.03.2020
    • remove 5GHz hotspot option as it isn't available even on stock
    • start signing builds
    • enable OTA updates
    • synced LineageOS sources (security patch level March 05, 2020)
    28.02.2020
    • fixed sony bootlogo
    • fixed TWRP time bug
    25.02.2020
    • fixed buggy bootanimation
    11.02.2020
    • DRM fix (Netflix and co should work now)
    • synced LineageOS sources (security patch level February 05, 2020)
    01.02.2020
    • SE enforcing
    • synced LineageOS sources (security patch level January 01, 2020)
    22.11.2019
    • initial release
    5
    New build is up.
    17.08.2020
    • synced LineageOS sources (security patch level August 05, 2020)
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone