• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[ROM][Unofficial][11.0] Lineage OS 18.1 for Xperia Z1 compact 19.07.21

Search This thread

115ek

Senior Member
Jan 30, 2017
564
632
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.
*
*/
Status
List template by AdrianDC
Code:
- Boot : Ok
- Partitions (Data, Cache) : Ext4 and F2FS supported
- Bluetooth : Ok but MAC address is not correctly set (random address)
- 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
- ANT+ : ?
- 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 : ?
- SEPolicies : enforcing
GApps
You could install additional Google Apps if you want to. This has to be done directly after the lineage installation BEFORE the first boot.
The smaller the package, the better in terms of performance. (None is of course the most performant). If you want "Okay google" support you need at least nano. Else I'd recommend pico.

Downloads:
OpenGapps
BitGapps
MindTheGapps (mirror)

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
  • more to be figured out
Download
FAQ

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
  • koron393
  • 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


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

Contributors

115ek, SpiritCroc, koron393, NeoArian, drakonizer, rcstar6696, SuperLamic, AdrianDC, nailyk, LineageOS team
Source Code: https://github.com/115ek/manifest

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

Version Information
Status:
Testing

Created 2020-12-06
Last Updated 2021-07-19
 

Attachments

  • Screenshot_20210514-014606_Trebuchet.png
    Screenshot_20210514-014606_Trebuchet.png
    76.5 KB · Views: 146
  • Screenshot_20210514-014901_Trebuchet.png
    Screenshot_20210514-014901_Trebuchet.png
    68.5 KB · Views: 144
  • Screenshot_20210514-014401_Trebuchet.png
    Screenshot_20210514-014401_Trebuchet.png
    119.5 KB · Views: 147
  • Screenshot_20210514-014428_Settings.png
    Screenshot_20210514-014428_Settings.png
    74.5 KB · Views: 152
  • Screenshot_20210514-014523_Trebuchet.png
    Screenshot_20210514-014523_Trebuchet.png
    215.9 KB · Views: 140
  • Screenshot_20210514-014811_Trebuchet.png
    Screenshot_20210514-014811_Trebuchet.png
    103.5 KB · Views: 124
  • Screenshot_20210514-014821_Trebuchet.png
    Screenshot_20210514-014821_Trebuchet.png
    44 KB · Views: 114
  • Screenshot_20210514-015037_Settings.png
    Screenshot_20210514-015037_Settings.png
    99 KB · Views: 146
Last edited:

115ek

Senior Member
Jan 30, 2017
564
632
Changelog

19.07.2021

  • synced LineageOS sources (security patch level July 05, 2021)
20.06.2021
  • added livedisplay
  • synced LineageOS sources (security patch level June 05, 2021)
11.06.2021
  • fixed fm SE linux denial
26.05.2021
  • fixed netmgrd SE linux denials (ref)
22.05.2021
  • fixed NFC settings not shown (ref)
  • fixed offline charging
15.05.2021
  • fixed wifi problems when WPA3 is used (ref)
13.05.2021
  • fixed wifi MAC address readout
  • synced LineageOS sources (security patch level May 05, 2021)
24.04.2021
  • enable OTA updates
  • switch to enforcing SE linux
  • start signing builds
23.04.2021
  • synced latest lineage sources
01.01.2021
  • using snap camera now (instead of camera2)
  • fixed NFC (thanks @AdrianDC)
19.12.2020
  • Lineage 18.0 -> Lineage 18.1 (android-11.0.0_r17 -> android-11.0.0_r19)
08.12.2020
  • fixed screenlock
06.12.2020
  • initial release
 
Last edited:
  • Like
Reactions: infoflo and tramp20

115ek

Senior Member
Jan 30, 2017
564
632
New build is up.
08.12.2020
  • fixed screenlock

Furthermore I updated the manifest and build instructions - just in case someone wants to build from source.
It would be nice if you can share your experiences, so that we can complete the status list.
 
  • Like
Reactions: lm089 and tramp20

jho55

Senior Member
Sep 8, 2015
237
60
Munich
I have already mentioned it in the 17.1 thread but I think it is also good to post it here:

The bad font rendering from 17.1 is gone in this build.
 
  • Like
Reactions: 115ek

koron393

Senior Member
Jan 25, 2014
226
641
Saitama
d.hatena.ne.jp
  • Like
Reactions: 115ek

tramp20

Senior Member
Jan 15, 2012
739
139
Rosenheim
BiTGApps

I tried already this link but they have server problems since 9 days :-(
MOD EDIT: Link Removed
Perhaps someone can upload these GAPPS to Onedrive, DropBox or GoogleDrive.
 
Last edited by a moderator:

-FancyUsername-

New member
Jun 12, 2019
4
3
I will share a few first experiences with the build of 19.12.20:
- GPS and compass seem to work (Google Maps constantly crashes, Waze does show the right location and the compass moves when I move the phone. But I can't say for sure if it's maybe just using other sensors and Wifi for that)
- FM Radio : yes (can't judge the quality)
- Microphone : yes
- bluetooth audio : yes
- NFC : greyed out in the control center

Other:
- runs pretty fast for such an early version actually that was a lie, because it runs pretty fast for any version
- once got stuck on the Sony logo, which was fixed by holding power + volume up
- when I used the restart option from the power off menu, when it turned back on it was really slow and the screen flickered slightly. that happened just once though, so probably nothing to worry about
 
Last edited:
  • Like
Reactions: lm089 and tramp20

tramp20

Senior Member
Jan 15, 2012
739
139
Rosenheim
@115ek
thank you for this new ROM.

1. I have only installed BitGAPPS, but in the settings of Play Store I see "device is not certified".
Of course I deleted memory and cache of Play Store (was updated already) and Play Services.

2. Long pressing the power button does not show sreenshot, only power off and restart.

3. Restart to Recovery goes to Lineage Recovery and not to TWRP. How to change this?
I had already flashed TWRP again in fastboot mode.

It seems that TWRP has gone :-(
 

tramp20

Senior Member
Jan 15, 2012
739
139
Rosenheim
Has someone successfully installed/flashed Magisk 21.1 and when yes how?
I can flash it without errors but nothing is really installed, no Magisk framework and no Manager :-(
 

115ek

Senior Member
Jan 30, 2017
564
632
1. I have only installed BitGAPPS, but in the settings of Play Store I see "device is not certified".
Of course I deleted memory and cache of Play Store (was updated already) and Play Services.
The google certification algorithm changes from time to time and your phone can be classified as "not certified" at any point of time. I'm no gapps user, so unfortunately I can't give any tips here nor know what consequences this certification state really has.

2. Long pressing the power button does not show sreenshot, only power off and restart.
That's a lineage framework thing and most likely will change in the future.

3. Restart to Recovery goes to Lineage Recovery and not to TWRP. How to change this?
I had already flashed TWRP again in fastboot mode.
It seems that TWRP has gone :-(
That's also a thing forced by lineage. During the setup wizard you'll now be asked if you want to update the recovery. Don't check this box if you want to keep TWRP. Else you'll end up with lineage recovery.

Has someone successfully installed/flashed Magisk 21.1 and when yes how?
I can flash it without errors but nothing is really installed, no Magisk framework and no Manager :-(
I hadn't had a look into magisk yet. I'm just using root over adb for development purposes. Going to check that if I find some time.
 

tramp20

Senior Member
Jan 15, 2012
739
139
Rosenheim
@115ek,
thank you for all answers.

To lineage recovery : I found this already after some tries, this check box should not be pre-activated.

I saved the TWRP recovery.log after installing the latest Magisk-v21.2.zip.
But nothing is really installed, no Magisk framework and no Magisk Manager :-(

Perhaps you see something in this logfile.
 

Attachments

  • recovery_install_212.zip
    6.5 KB · Views: 24
Last edited:

tramp20

Senior Member
Jan 15, 2012
739
139
Rosenheim
@115ek,
I need a stock boot.img of the Z1c to patch it with the Magisk Manager.
All my tries failed: the ROM is always booting fine but neither Magisk nor Magisk Manager are installed.
This is happening with all Magisk >v20.4.

Every boot.img in the Lineage and AICP ROMs are different. Which one can I use?
I have TWRP backups from Android 5.1.1 but I don't know how to extract the boot.img.

Edit:
In the meantime I could extract the kernel.elf from the original firmware tft and convert this file with Android Image Kitchen to a boot.img. But this is ~ 2 MB bigger than yours in your ROM.
 
Last edited:

115ek

Senior Member
Jan 30, 2017
564
632
New Build is up:
  • using snap camera now (instead of camera2)
  • fixed NFC (thanks @AdrianDC)
Perhaps you see something in this logfile.
Not a the first sight, unfortunately.

This is happening with all Magisk >v20.4.
Earlier versions work fine?

Which one can I use?
None. The kernel needs one specific commit, pre-11 kernels don't have. Else it won't boot.
Besides that, you'd have to add a androidboot.selinux=permissive to the kernel command-line as this 11 build is still permissive.
 
  • Like
Reactions: tramp20

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    A new build including the latest lineage sources was uploaded and should reach via the OTA updater.
    Furthermore, there are plans to bring a lineage 18 microg version as well. It is currently being worked on. (@MSe1969 )
    There may be a first testing version soon.
    1
    ---
    Furthermore, there are plans to bring a lineage 18 microg version as well. It is currently being worked on. (@MSe1969 )
    There may be a first testing version soon.

    Perfect, thanks in advance :)
    1
    Furthermore, there are plans to bring a lineage 18 microg version as well. It is currently being worked on. (@MSe1969 )
    There may be a first testing version soon.
    Hi all, here we go:
    I just have announced in our 17.1 thread a first test build for the LineageOS 18.1 microG build - please follow the below linked post:

    Feedback appreciated. Regards, M.
  • 10
    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.
    *
    */
    Status
    List template by AdrianDC
    Code:
    - Boot : Ok
    - Partitions (Data, Cache) : Ext4 and F2FS supported
    - Bluetooth : Ok but MAC address is not correctly set (random address)
    - 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
    - ANT+ : ?
    - 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 : ?
    - SEPolicies : enforcing
    GApps
    You could install additional Google Apps if you want to. This has to be done directly after the lineage installation BEFORE the first boot.
    The smaller the package, the better in terms of performance. (None is of course the most performant). If you want "Okay google" support you need at least nano. Else I'd recommend pico.

    Downloads:
    OpenGapps
    BitGapps
    MindTheGapps (mirror)

    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
    • more to be figured out
    Download
    FAQ

    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
    • koron393
    • 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


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

    Contributors

    115ek, SpiritCroc, koron393, NeoArian, drakonizer, rcstar6696, SuperLamic, AdrianDC, nailyk, LineageOS team
    Source Code: https://github.com/115ek/manifest

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

    Version Information
    Status:
    Testing

    Created 2020-12-06
    Last Updated 2021-07-19
    5
    New build
    20.06.2021
    • added livedisplay
    • synced LineageOS sources (security patch level June 05, 2021)
    5
    I found some time again.
    Please report if the OTA update is working properly.

    13.05.2021
    • fixed wifi MAC address readout
    • synced LineageOS sources (security patch level May 05, 2021)
    3
    New build. :)

    22.05.2021
    • fixed NFC settings not shown (ref)
    • fixed offline charging
    3
    New build is up:
    • Lineage 18.0 -> Lineage 18.1 (android-11.0.0_r17 -> android-11.0.0_r19)