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

Search This thread

115ek

Senior Member
Jan 30, 2017
553
623
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
- GApps : OpenGApps aren't available yet
- Partitions (Data, Cache) : Ext4 and F2FS supported
- Bluetooth : Ok but MAC address is not correctly set (random address)
- WiFi : Ok
- WiFi Hotspot : ?
- RIL - Phone - Data : Ok
- GPS : Ok
- Camera : Ok
- Camcorder : Ok
- Lights : Ok
- MicroSD : Ok
- Accelerometer : Ok
- Compass : Ok
- Gyroscope : ?
- 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 : ?
- Encryption : ?
- 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
  • 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-06-11
 

Attachments

  • Screenshot_20210514-014606_Trebuchet.png
    Screenshot_20210514-014606_Trebuchet.png
    76.5 KB · Views: 73
  • Screenshot_20210514-014901_Trebuchet.png
    Screenshot_20210514-014901_Trebuchet.png
    68.5 KB · Views: 73
  • Screenshot_20210514-014401_Trebuchet.png
    Screenshot_20210514-014401_Trebuchet.png
    119.5 KB · Views: 76
  • Screenshot_20210514-014428_Settings.png
    Screenshot_20210514-014428_Settings.png
    74.5 KB · Views: 76
  • Screenshot_20210514-014523_Trebuchet.png
    Screenshot_20210514-014523_Trebuchet.png
    215.9 KB · Views: 69
  • Screenshot_20210514-014811_Trebuchet.png
    Screenshot_20210514-014811_Trebuchet.png
    103.5 KB · Views: 63
  • Screenshot_20210514-014821_Trebuchet.png
    Screenshot_20210514-014821_Trebuchet.png
    44 KB · Views: 54
  • Screenshot_20210514-015037_Settings.png
    Screenshot_20210514-015037_Settings.png
    99 KB · Views: 74
Last edited:

115ek

Senior Member
Jan 30, 2017
553
623
Changelog

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
553
623
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
236
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
I will wait until I can find and download GAPPS.

BiTGApps
 
  • Like
Reactions: 115ek

tramp20

Senior Member
Jan 15, 2012
736
138
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
736
138
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
736
138
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
553
623
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
736
138
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: 20
Last edited:

tramp20

Senior Member
Jan 15, 2012
736
138
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
553
623
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
    New build. :)

    22.05.2021
    • fixed NFC settings not shown (ref)
    • fixed offline charging
    3
    11.06.2021
    • fixed fm radio SE linux denials
    3
    26.05.2021
    • fixed netmgrd SE linux denials

    @infoflo I'm not sure if your issue was related to that. Could you check? Unfortunately I can't really test it - I have no WPA enterprise setup available.
    @jho55 The revised power menu has been merged. The screenshot button is now back there.
    1
    Thank you very much :)

    Are there important changes to the kernel?
    If yes I have to uninstall Magisk, flash the new kernel and install Magisk again :-(
    Nothing changed on the kernel side.
    To be honest: The kernel gets the least attention from my limited overall attention for this device.
    I wanted to switch to the maintained one @MSe1969 uses on the 17.1 build at some point of time. There at least important backports are made to our ancient 3.4 kernel.
    But so far I haven't done it.
    1
    Thanks to the dev for enabling us to have Android 11 on our old device. Works like a charm and it's super responsive! I just have a problem with 802.1x (entreprise) wi-fi. It just does not connect for some reason.
    What network are you trying to connect to? Eduroam or an other company network? Did you set it up correctly? WPA2 enterprise requires some more configuration than just a simple password.
    Often, there are configuration apps to handle that for you. I also struggled a couple of times setting it up manually :p
    Anyway a more detailed error report/description would be helpful. As well as a log.
  • 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
    - GApps : OpenGApps aren't available yet
    - Partitions (Data, Cache) : Ext4 and F2FS supported
    - Bluetooth : Ok but MAC address is not correctly set (random address)
    - WiFi : Ok
    - WiFi Hotspot : ?
    - RIL - Phone - Data : Ok
    - GPS : Ok
    - Camera : Ok
    - Camcorder : Ok
    - Lights : Ok
    - MicroSD : Ok
    - Accelerometer : Ok
    - Compass : Ok
    - Gyroscope : ?
    - 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 : ?
    - Encryption : ?
    - 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
    • 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-06-11
    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
    I finally managed to upload a new build. This is built from the latest sources.
    However, there are still some open points:
    • finishing SE policy cleanup
    • signing image
    • enabling OTA updates
    • offline charging
    • ?
    3
    New build is up:
    • Lineage 18.0 -> Lineage 18.1 (android-11.0.0_r17 -> android-11.0.0_r19)