[ROM] LineageOS 18.1 UNOFFICIAL - 1.0 [2021-01-17]

derf elot

Senior Member
May 7, 2011
842
1,821
123
LineageOS 18.1 for Sony Xperia XZ1



RELEASE

This is an alternative ROM for the Sony Xperia XZ1, offering several privacy features.

Please report any issues you observe apart from the ones listed below. Logs are needed for me to fix anything (preferably dmesg and logcat). I can't test NFC very thoroughly, to please report your findings.

FEATURES
  • Signed with dev keys
  • Up-to-date kernel
  • WireGuard kernel support

DOWNLOAD

You can download the latest releases here:

poplar (G8341):
twrp-3.5.0-0-20210117-poplar
lineage-18.1-20210117-UNOFFICIAL-1.0-poplar

poplar_dsds (G8342):
twrp-3.5.0-0-20210117-poplar_dsds
lineage-18.1-20210117-UNOFFICIAL-1.0-poplar_dsds

poplar_canada (G8343):
twrp-3.5.0-0-20210117-poplar_canada
lineage-18.1-20210117-UNOFFICIAL-1.0-poplar_canada


Check the ChangeLog below for firmware requirements!

INSTALLATION

Put the zip file of the ROM on your sdcard or internal storage, boot into recovery and flash. When coming from stock: boot into TWRP, format data, reboot to recovery and wipe all internal partitions. Then flash the ROM, GApps (if needed) and root (if needed).

Note: There is not going to be a LOS su addon anymore. If you need root, flash a root manager of your choice. No guaranteed support from LOS for this.

When updating from builds, simply dirty flash the ROM.

If coming from 17.1, please see advice below in second post ("UPGRADE LINEAGEOS").

KNOWN ISSUES
  • WFD is not working yet (waiting for new non-BSP blobs)
  • Stock camera is not working anymore due to incompatibility of stock library (libimageprocessorjni.so) with new libgui
  • You tell me...

Contributors
derf elot, modpunk, Rooted_Ansh

Thanks to the testers
coin3x, feduss, GiaSen, Gizanagi, hsheemi, kaancaliskan, sohrab1985

Source Code
poplar:
https://github.com/whatawurst/android_device_sony_poplar
poplar_dsds: https://github.com/whatawurst/android_device_sony_poplar_dsds
poplar_canada: https://github.com/whatawurst/android_device_sony_poplar_canada

kernel: https://github.com/whatawurst/android_kernel_sony_msm8998

Rom Information
ROM OS Version:
Android 11
ROM Kernel: Linux 4.4

Version Information
Status:
Stable
Current Stable Version: 1.0
Stable Release Date: 2021-01-17

Thread Information
Created
2021-01-17
Last Updated 2021-01-17
 
Last edited:

derf elot

Senior Member
May 7, 2011
842
1,821
123
SECURITY ADVICE

Don't flash ROMs or Magisk modules which set SELinux to permissive or you welcome malware on your device!


UPGRADE LINEAGEOS


I have not tried upgrading the device from 17.1 and cannot guarantee that it will work - you should do a backup just in case. If things go wrong, flash it as if coming from stock (see instructions in OP).

The following steps should work though:
  • Flash new twrp and boot into it
  • Flash new rom, opengapps and any updated root solution you use
  • Optional: Clear cache
  • Reboot
Note: When updating form Lineage 17.1, you maybe have to once change your preferred network type from 3g back to 4g/LTE.

UPGRADE FIRMWARE

  • Grab the Sony Stock firmware using e.g. XPeriFrim. You should always flash the firmware matching the LOS build.
  • Grab newflasher and put it in the same folder as the firmware files.
  • Read the newflasher original post on XDA for general instructions!
  • Remove the following from the folder so they won't get flashed:
    • all *.ta files (keep the one in the boot/ directory)
    • cache*.sin
    • fotakernel*.sin
    • kernel*.sin
    • system*.sin
    • userdata*.sin
    • vendor*.sin
  • Turn off your phone
  • Hold the volume down button and attach it via USB to your system till you see LED turning green
  • Run newflasher from within this directory to flash the remaining files
    You can say yes to the first optional step, in case you don't have working drivers installed.
    Skip the second optional step (dumping of trim area), it's useless if your bootloader is unlocked already and takes a long time.

How to get root?

As mentioned before, there will not be an official su addon from LOS anymore. If you need root, flash an unofficial solution.

Google Apps

You can download and install the Google Apps from opengapps.org. You need ARM64 and 11.x. I suggest to *always* use the pico or nano package. If you need additional apps you find them in the Play Store.

Open GApps for Android 11 is still in beta. You can download those releases here

MicroG

This ROM doesn't support Signature Spoofing. However we are watching MicroG and check if they provide newer builds e.g. for Android 11.
 
Last edited:

derf elot

Senior Member
May 7, 2011
842
1,821
123
Thanks @derf elot ! For all your and the rest of the Dev team's efforts.

What can we (the community) do to help get the camera back up and running?
Unfortunately, I am not sure there is much that we can do. The stock library that we need for the stock camera app to work properly (libimageprocessorjni.so) is not liking the new Android 11 libgui. We (also with the help of @j4nn ) tried to fix these issues in various ways, including shimming and forcing the use of the 10 libgui but haven't managed to get it working properly yet. Maybe we'll have a crack at it again at some point, but I wouldnt get my hopes up too much. It also doesn't help that the XZ2/3 series is not getting an official Android 11 update. Opencamera is a decent alternative, although it does lack some of the stock camera options.

Ok THIS WAS THE BEST BIRTHDAY PRESENT EVER... I'll test it asap:)
Happy birthday. I hope you enjoy :)
 

DigitalDreamer

Senior Member
Jun 9, 2010
179
44
48
Oh nice, and I just got the device today (new and unopened) but for some reason I can't flash it to a different or use even the official tool from Xperia to "repair" my software.
First thing I'll do after upgrading will be checking this rom.
Thank you a lot!
 

dzenius

Member
Jun 21, 2018
12
3
3
Hello, nice job.
Smooth fresh install rom+Nikgapps, everyhing works nice,
but time to time phone call was inposible - calling stops in a 0 seconds.But i still was able receive phone calls. After receiving call - i can make a call for few times.Sorry can't provide any logs - use this phone as my main daily device, so quickly return to my previous rom (resurrection remix 8.6.4), where everything running well.
 
  • Like
Reactions: 5555yxy

kaancaliskan

Senior Member
Jul 20, 2018
70
19
8
Hello, nice job.
Smooth fresh install rom+Nikgapps, everyhing works nice,
but time to time phone call was inposible - calling stops in a 0 seconds.But i still was able receive phone calls. After receiving call - i can make a call for few times.Sorry can't provide any logs - use this phone as my main daily device, so quickly return to my previous rom (resurrection remix 8.6.4), where everything running well.
It's just working fine here with opengapps beta. Mostly likely nikgapps broke dialer app.
 
  • Like
Reactions: SGH-i200

sohrab1985

Senior Member
Feb 26, 2011
578
349
93
Hello, nice job.
Smooth fresh install rom+Nikgapps, everyhing works nice,
but time to time phone call was inposible - calling stops in a 0 seconds.But i still was able receive phone calls. After receiving call - i can make a call for few times.Sorry can't provide any logs - use this phone as my main daily device, so quickly return to my previous rom (resurrection remix 8.6.4), where everything running well.
I also tried Nikgaaps (full version from 12/30/2020) and I don't have this issue. Maybe you used a different version or build.
 

LYSZY6

New member
Oct 10, 2020
3
1
1
The carrier profile can use the files from XZ3(oem.sin).XZ1 stop updating very early,XZ3 is constantly being updated.
The carrier which are China Unicom and China Telecom used is from XZ3(oem.sin).

This file is modified according to XZ3.(by iovf and 沙河新基金啊)
 
  • Like
Reactions: SGH-i200

derf elot

Senior Member
May 7, 2011
842
1,821
123
The carrier profile can use the files from XZ3(oem.sin).XZ1 stop updating very early,XZ3 is constantly being updated.
The carrier which are China Unicom and China Telecom used is from XZ3(oem.sin).

This file is modified according to XZ3.(by iovf and 沙河新基金啊)
I have added support for both of these internally, so a custom OEM should not be needed anymore. I know at least of one person where it's working on maple. is it not working for you?
 

LYSZY6

New member
Oct 10, 2020
3
1
1
I have added support for both of these internally, so a custom OEM should not be needed anymore. I know at least of one person where it's working on maple. is it not working for you?
I'm sorry. I just found this option in Settings. It seems to work.
Thank you again for your reply.
By the way,are there any plans to add volte video calling?(This is not a requirement.)