• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][Unofficial][8.1.0][deprecated] Lineage OS 15.1 for Xperia Z1 compact 29.12.18

115ek

Senior Member
Jan 30, 2017
493
537
93
This Thread is deprecated!
Please use https://forum.xda-developers.com/sony-xperia-z1-compact/development/rom-lineageos-15-1-xperia-z1-compact-t3884247/
We'll provide Lineage 15.1 builds there as well. They come in two different flavours:
  • pure LineageOS
  • Security hardened microG LineageOS
Functionality is completely the same as provived by the builds from this thread - they are build from the same sources. Only difference: The new builds are signed to guarantee a maximum of security.


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 Micro recommended
- 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
- ANT+ : Ok
- Vibrator : Ok
- Microphone : Ok
- Audio & music : Ok
- Bluetooth audio : Ok
- MHL: didn't test
- NFC : Ok
- Kernel : Ok
- Graphics : Ok
- 3D Rendering : Ok
- Clock : Ok
- Offline Charging : Ok
- USB : Ok
- USB OTG : Ok
- Encryption : Ok, but installing updates only works with adb sideload!
- SEPolicies : Enforcing
Download
FAQ
What about device encryption?
Device encryption is working. You only have to keep in mind that you need a PC with adb to install systemupdates.
Flashing via recovery isn't working until now, because there isn't a recovery capable of decrypting Oreo /data partitions at the moment. But an easy "adb sideload" should do the job. Or installing from the external SD card.
What about reboot to recovery?
Reboot to recovery is only working with magisk installed. Investigating this...
Reboot to recovery is working as it should now (and of course also without magisk).
What about GPS?
GPS apps like GPS Status&Toolbox or SatStat don't get location fixes. Nevertheless navigating with Osmand or googleMaps should work. Positionfinding is also slow. Got better :)
I found a bug. What should I do?
We need your feedback for optimization. But your feedback is only useful in connection with logs --> see section Bugreports
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):
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

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

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

ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.4.x

Version Information
Status: Beta
Beta Release Date: 2018-09-10

Created 2018-09-10
Last Updated 2019-03-18
 

115ek

Senior Member
Jan 30, 2017
493
537
93
Changelog

13.12.2018
  • fixed wrong bluetooth MAC address (00:00:00:00:5a:ad on all devices), now displaying correct device specific one
12.12.2018
  • synced LineageOS sources (security patch level December 05, 2018)
11.11.2018
  • fix problem with Lineage SU addon by using 64-bit binder API (thanks @NyQuilXT)
  • synced LineageOS sources (security patch level November 05, 2018)
14.10.2018
  • fixed GPS 3D fix
08.10.2018
  • fixed MHL (thanks @koron393)
  • added callrecording
  • synced LineageOS sources (security patch level October 05, 2018)
23.09.2018
  • fixed reboot to recovery without magisk
  • minor improvements from AICP devices trees (thanks @SpiritCroc)
  • synced LineageOS sources
10.09.2018
  • initial release
 
Last edited:

Jeroen1000

Senior Member
Jul 26, 2012
104
16
0
Hi 115ek. Thanks for making this. I'm not new to flashing but I have a question nonetheless. What do you mean by
Encryption : Ok but needs recovery capable of Oreo decryption for installing updates (AFAIK such a recovery doesn't exist until now for our device...)
I'm actually having some trouble finding a up-to-date recovery.
 

115ek

Senior Member
Jan 30, 2017
493
537
93
Hi 115ek. Thanks for making this. I'm not new to flashing but I have a question nonetheless. What do you mean by

I'm actually having some trouble finding a up-to-date recovery.
You can use this https://androidfilehost.com/?fid=5862345805528046823 or that https://forum.xda-developers.com/sony-xperia-z1-compact/orig-development/recovery-twrp-3-2-1-t3759450.

For Lineage 15.x flashing you need TWRP>=3.2.x If the version is older you'll end up in a error 7.

Concerning decryption: Google introduced some new encryption stuff and so the decryption of /data from inside TWRP is broken. Some guys are working on it (@nailyk).
Encrypting the device should work fine, but I don't know what happens if you want to update the encrypted device. (I'm going to test that ;)).
Basically you need to store the update package outside of encrypted partitions... Maybe adb sideload works - but it's circumstantial.

Edit:
That's only interesting if you plan to encrypt your device. Otherways you can relax.

Edit2:
adb sideload should do the job. But you need a PC for updating. Installing an image directly via recovery isn't possible until now.
 
Last edited:

ULT][MO

Senior Member
Oct 11, 2015
99
24
0
The rom looks very stable and balance, but I've some problems with root procedure. I tried the lineage addon, the root seems active, but opening apps (es. Ad away) results unrooted, any ideas?

Update: Now Works. Flashed lastest Magisk ;)
 
Last edited:

vildevilde

Senior Member
Aug 6, 2014
221
59
28
Amazing to see this old device on Oreo, just installed and it feels smooth and nice. Just a pity that I have broken the sim card connectors inside so I cant use it as a phone but I will fins use of it at home just for fun. :) Thank you for your work 115ek :good:
 
Last edited:

115ek

Senior Member
Jan 30, 2017
493
537
93
Great to see this rom realy! This rom have stock camera?
What do you mean with stock camera? ;)
There was a thing with kernel versions 3.4 and 3.10, wasn't it? We're using 3.4.
Concerning the camera: I'm not that expert, but it looks okay I would say. ;)

Feel free to contribute: There's still the reboot-to-recovery problem and Pie is in the starting blocks.
 

115ek

Senior Member
Jan 30, 2017
493
537
93
my phone reboots to recovery.
Need to install Magisk
without it I also do not reboot to recovery
Thanks, but I already knew this ;)
But I like to reboot to recovery without magisk. I think there are people around who don't like/need magisk (including me).
The fact that it works with magisk may locate the problem to the boot.img. I have init_sony in mind and will check that.
Any ideas welcome :)
 

munjeni

Senior Member
Jun 2, 2011
9,003
21,764
113
Thanks, but I already knew this ;)
But I like to reboot to recovery without magisk. I think there are people around who don't like/need magisk (including me).
The fact that it works with magisk may locate the problem to the boot.img. I have init_sony in mind and will check that.
Any ideas welcome :)
I meant does this rom have stock camera blobs? Do you have property: ro.bootmode

and does /proc/cmdline shows diferent bootreason when you set reboot reason to recovery?
 
Last edited:
  • Like
Reactions: mirhl

115ek

Senior Member
Jan 30, 2017
493
537
93

115ek

Senior Member
Jan 30, 2017
493
537
93

munjeni

Senior Member
Jun 2, 2011
9,003
21,764
113
Seems rom have stock blobs. To distinguish between AOSP and stock blobs... depends on kernel you have using, aosp kernel can't be used with stock blobs since aosp camera kernel module is diferent, but I'm out of development for long, have no free time and to be honest I still didn't forgot treatment & injustice for my status on xda, that made me more inactive here. Recognised members have bad treatment here, seems senior members have much more priority than recognised members, and thats reason why everybody here need to care how many hours per day to waste here. I decided to stop wasting my time on xda since xda leaders do not respect anybody's hard work here. I recommend the same to everyone here.
 
Last edited:

ULT][MO

Senior Member
Oct 11, 2015
99
24
0
I tried "reboot to recovery", after Sony logo the phone reboot again (also if you press recovery button), and to enter in recovery you've to push again the button at the second reboot.
It is like a normal reboot... But it's not a problem ?
 

115ek

Senior Member
Jan 30, 2017
493
537
93
I tried "reboot to recovery", after Sony logo the phone reboot again (also if you press recovery button), and to enter in recovery you've to push again the button at the second reboot.
It is like a normal reboot... But it's not a problem
What recovery are you using? I recommend this one: https://forum.xda-developers.com/sony-xperia-z1-compact/orig-development/lineageos-12-1-z1c-current-sec-patches-t3614936.
With mine from here https://forum.xda-developers.com/sony-xperia-z1-compact/orig-development/recovery-twrp-3-2-1-t3759450 it still won't work. Maybe a timing thing.
But it's okay if we have at least one working TWRP. :cool:
And oreo /data decryption is still an issue we have to address.