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

Search This thread

tramp20

Senior Member
Jan 15, 2012
733
138
Rosenheim
New Build is up:

Thank you.

1. Update OTA does not find this new build.
2. Flashing this build over the last lineage-18.1-20201219-UNOFFICIAL-amami ended in a boot loop (at Lineage animated boot). I repeated this 3 times.
Then I made a factory reset.
3. I miss "long pressing backspace stops the running app".
4. In Trust I see SELinux deactivated.
5. and in Play Store/settings: device is not certified.
6 You wrote " you'd have to add a androidboot.selinux=permissive to the kernel command-line".
Sorry I don't know where :-(
 

115ek

Senior Member
Jan 30, 2017
550
620
Update OTA does not find this new build.
Yes, because I didn't enable OTA updated yet. These are early experimental builds...
Flashing this build over the last lineage-18.1-20201219-UNOFFICIAL-amami ended in a boot loop
... and that's what they can lead to. Although they shouldn't and that's strange anyway.
I miss "long pressing backspace stops the running app".
This feature was dropped. However, I haven't more details about it. Check this.
In Trust I see SELinux deactivated.
Yes, that's also stated in the OP. SELinux permissive (not enforcing) will lead to this warning in trust.
and in Play Store/settings: device is not certified.
I can't do much about this. Maybe read this for further background.
You wrote " you'd have to add a androidboot.selinux=permissive to the kernel command-line".
Sorry I don't know where :-(
That was only a remark what has to be done if you'd like to use a bootimage on a system which isn't capable of running enforced SELinux. You have to unpack the bootimage, add the flag to the kernel commandline and repack it. Else this defaults to enforcing mode automatically. (And this would render the device unbootable in the worst case).
Anyway: As I already stated you can't use o/p/q bootimages on r, as it needs a special commit.
 
  • Like
Reactions: tramp20

tramp20

Senior Member
Jan 15, 2012
733
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
I open an issue on Github:
Perhaps you could look at the last answer from Fox2Code.
 
  • Like
Reactions: 115ek

115ek

Senior Member
Jan 30, 2017
550
620
Can I Flash this on normal Xperia Z1 (C6903)? If not, is it possible to just port this?

Of course you could. But I'd bet this won't boot.
However, it shouldn't be that hard to build it for honami as it is really similar to amami.
Have a look at my manifest. You just have to find an up-to-date honami device tree and exchange it with the amami one.
For example that one by @NyQuilXT https://github.com/NyQuilXT/android_device_sony_honami
Then of course you'd need a decent internet connection to download 50 GB source code or so. And 200 GB free diskspace would also be great (on a linux machine, of course.) Maybe you could also use WSL 2 now.

So it totally depends on your abilities. Forget about porting as unpacking a zip file, editing a text file, repacking it - done. That's bullshit in most most cases.

Good luck.
I'd be glad to help you with reasonable questions :)
 
  • Like
Reactions: veloc_h and MIcHiJK

veloc_h

Senior Member
Oct 10, 2019
52
3
In recovery I select ADB and get the message Enabled ADB

D:\dl\z1c\bitgapps>adb devices
List of devices attached
CB5A216LZU recovery


D:\dl\z1c\bitgapps>adb sideload BiTGApps-arm-11.0.0-R21_signed.zip
loading: 'BiTGApps-arm-11.0.0-R21_signed.zip'
error: closed

Why can't I install bitgapps?
Edit: I tried with another USB and it seemed to work now (
adb kill-server
2) I switched the usb-port
3) adb start-server
4) adb devices
5) adb sideload BiTGApps-arm-11.0.0-R21_signed.zip
Then I get the messages:
- Installing toolbox
- MOunting system
- mounting apex
Unable to find installation layout... aborting unmounting

How do I manage to revert to twrp?
Edit: I managed to reinstall an earlier version of LOS (16.1) using the 18.1 recovery, but didn't succeed to install bitgapps, the device was not recognized... after reboot into recovery the adb sideloard was accepted, but at 47% it finished...
Going to try to test the internal source install in the 18.1 recovery
Installing toolbox
mounting /system
cannot mount aborting...
failed to load keys...

I managed to flash twrp without the bootloader mode:
1)switch off the mobile
2) connect the usb cable to the pc
3)swith on and volume + at the same time
4) fastboot flash recovery twrp-3.4.0-1-amami.img from the command line.
 
Last edited:

jho55

Senior Member
Sep 8, 2015
236
60
Munich
Here you can find GApps for 18.1: MindTheGapps (funny name by the way. When I was in London 20 years ago with my school I bought a t-shirt with that slogan ;) )
They are working for me with the build before the last build.


Quote from the website: IMPORTANT: If you reboot into LineageOS before installing Google apps, you must factory reset and then install them, otherwise expect crashes.
 
  • Like
Reactions: tramp20

tramp20

Senior Member
Jan 15, 2012
733
138
Rosenheim
One more build:
24.04.2021
Where can I find the file with the stored WLAN Mac address?
Someone of the devs has changed it from the LOS versions before to another one so I have difficulties to use different LOS versions on the same device.
With the newest LOS 18.1 (signed) the MAC is now xx:xx:xx:89:89:FF
before it was always xx:xx:xx:FA:F5:AB

And I really miss the function "kill running app" with a long pressed back key, please.
 
Last edited:

115ek

Senior Member
Jan 30, 2017
550
620
Where can I find the file with the stored WLAN Mac address?
Someone of the devs has changed it from the LOS versions before to another one so I have difficulties to use different LOS versions on the same device.
With the newest LOS 18.1 (signed) the MAC is now xx:xx:xx:89:89:FF
before it was always xx:xx:xx:FA:F5:AB
Yeah, I also noticed this yesterday.
I made some changes to "macaddrsetup" and "btnvtool" services.
Now they are failing due to some permission problems. I just need some time to debug which files are actually affected. So it's more a less a question of when I find time again. Hopefully soon.
The mac addresses are stored in the ta partition by the way.
If reading them fails, most probably a fallback address is used (the one you see right now). But don't worry - they're not deleted. Just not set correctly :)


And I really miss the function "kill running app" with a long pressed back key, please.
I can't do much about this. This feature was dropped due to some issues afaik. https://review.lineageos.org/c/LineageOS/android_lineage-sdk/+/289041


EDIT:
Just a hint: If you want to disguise your mac address (like you did with xx:xx:xx) it makes more sense to hide the last three bytes. The first three bytes describe the vendor and it that case the vendor is more or less known. ;)
There are some possibilities as our vendor not only has one vendor bytes triplet though.
:)
 
Last edited:
  • Like
Reactions: tramp20

tramp20

Senior Member
Jan 15, 2012
733
138
Rosenheim
I found some time again.
Please report if the OTA update is working properly.

13.05.2021
  • fixed wifi MAC address readout
Thank you for this new update :)
1. OTA tested and it worked but with Magisk versions > 20.4 boot fails because the update changes boot (no more boot to TWRP and/or boot loops).
So I have to update in TWRP first and without booting restore only boot (made ofc before updating).

2. MAC address ok again.
 

jho55

Senior Member
Sep 8, 2015
236
60
Munich
Issues with 13.05.2021 build:
- btw offline charging is broken

@tramp20 :
I have updated via TWRP and the patched Magisk 22.1(which is mentioned from you in an earlier post) is still working for me. After flashing the rom I have to flash Magisk again. What I always do. MindTheGapps are not needed to be installed again.

Annoyance in 18.1: Background wallpaper is blurred. Also zooms out when going in the app drawer. Seems to be an issue a lot of people are annoyed of. In 17.1 the broken font in the app drawer also bothers me. Still stuck at 16.0
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    11.06.2021
    • fixed fm radio SE linux denials
    3
    New build. :)

    22.05.2021
    • fixed NFC settings not shown (ref)
    • fixed offline charging
    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.
    2
    quick question, just because I'm currently having trouble updating my current 17.1 build, and there's some discussion going on about Magisk causing all kinds of trouble these days (although I slightly doubt that my updating problems have anything to with Magisk):
    what other simple root/su solutions are currently out there that I could use instead of Magisk either with LOS V17.1 or this ROM here? I don't care at all for modules on my z1c just need to have root access

    @lm089: For Magisk have you tried the solution @tramp20 was mentioning earlier in this thread? It is simply changing 1 or 2 lines in Magisk and I am able to use Magisk 22.1 (have not tried it with the newest release) with 18.1.
    1
    How can I make a screenshot?
    Press volume down and power simultaneously.
    the setting to switch NFC on/off is missing too.
    You mean in settings? That's true. I'll have a look into it.
    But NFC can be still activated with a quick settings tile.
    in the developer options there is a german text "Bluetooth-Gabeldorsche aktivieren" since the first build. What does this mean?
  • 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
    11.06.2021
    • fixed fm radio SE linux denials
    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
    • ?
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