[ROM] LineageOS 16.0 UNOFFICIAL - RC7 [2019-12-15]

Search This thread

derf elot

Senior Member
May 7, 2011
842
1,831
LineageOS 16.0 for Sony Xperia XZ1

Screenshot-20190616-145336-Trebuchet.png
Screenshot-20190616-145414-Settings.png


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
  • Stock camera
  • WireGuard kernel support
  • Well tested but some bugs maybe included

DOWNLOAD

You can download the latest releases here:

poplar (G8341):
twrp-3.3.1-0-20191013-poplar
lineage-16.0-20191212-UNOFFICIAL-RC7-poplar

poplar_dsds (G8342):
twrp-3.3.1-0-20191013-poplar_dsds
lineage-16.0-20191212-UNOFFICIAL-RC7-poplar_dsds

poplar_canada (G8343):
twrp-3.3.1-0-20191013-poplar_canada
lineage-16.0-20191212-UNOFFICIAL-RC7-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 + su addon (if needed) and Gapps (if needed).

When updating from previous RC builds, simply dirty flash the ROM.

KNOWN ISSUES

  • IMS support is experimental
  • Phone may not work well with Mifare NFC tokens (not tested)

XDA:DevDB Information
lineageos_16_sony_poplar, ROM for the Sony Xperia XZ1

Contributors
derf elot, modpunk, myself5
Source Code (poplar): https://github.com/derfelot/android_device_sony_poplar
Source Code (poplar_dsds): https://github.com/derfelot/android_device_sony_poplar_dsds
Source Code (poplar_canada): https://github.com/derfelot/android_device_sony_poplar_canada

ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x

Version Information
Status: Stable
Current Stable Version: RC7
Stable Release Date: 2019-12-15

Created 2019-06-16
Last Updated 2019-12-15
 
Last edited:

derf elot

Senior Member
May 7, 2011
842
1,831
Reserved

SECURITY ADVICE

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


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 follwing 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 dont 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?

Flash the su addon from LineageOS you can find here: https://download.lineageos.org/extras

Google Apps

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

Privacy Guard for GApps

I wouldn't run GApps without Privcy Guard. Here is what you need to do:

Go to: Settings -> Security & location -> Privacy Guard

Open the advanced menu (3 dots) and select: Enable by default and Show built-in apps.

Search for Google Play Services and turn it on by tapping the entry. A long press will give additional options. There are more Google Apps you should turn it on and revoke permissions like the syncing stuff.

MicroG

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

Simple Mobile Tools

This is a collection of really awesome Open Source and AD-free Apps! Don't get confused by the name! Especially the Calendar and Gallery app are really good! If you like his stuff, support him by buying the Simple Thanks app.

You can find them in FDroid and the Play Store.

Known Issues

Some apps don't work (Gardenscapes, Die Zeit, ...)

When an app is installed then it should ask for Permissions on the first startup. However for some apps this doesn't happen. To fix it you need to go to Settings -> Apps & Notifications -> See all apps -> Select the App -> Permissions. Now manually activate the required permission, normally the Storage Permission is missing in that case!

Got an issue?

Also consider looking at the thread of the XZ1 Compact located here: https://forum.xda-developers.com/xperia-xz1-compact/development/rom-lineageos-16-0-unofficial-todo-t3925675 The hardware is very similar and bugs are likely to exist on both.
 
Last edited:

derf elot

Senior Member
May 7, 2011
842
1,831
Reserved

REQUIRED FIRMWARE: 47.2.A.11.228

CHANGELOG

2019-12-15 | RC7 | 47.2.A.11.228
  • Updated Android to 9.0 December ASB
  • Updated kernel to 4.4.206

2019-11-18 | RC6.1 | 47.2.A.11.228 (dsds variant only)
  • Fixed power HAL for dsds devices

2019-11-17 | RC6 | 47.2.A.11.228
  • Updated Android to 9.0 November ASB
  • Updated kernel to 4.4.202 & latest CAF tag
  • Added support for smartcovers
  • Fixed audio issues with ogg playback
  • Potentially fixed some tethering issues
  • Revert LOS camera (Snap) to API1 (better image quality) and disable DIS (which doesn't work for us)

2019-10-15 | RC5 | 47.2.A.11.228
  • Updated Android to 9.0 October ASB
  • Updated kernel to 4.4.196 & latest CAF tag
  • Updated WiFi to latest CAF tag
  • Fixed WFD issues
  • Fixed audio issues
  • More device tree cleanups
  • Updated WireGuard kernel support to latest snapshot
  • First release for Canadian variant (G8343)
  • ...

2019-09-19 | RC4 | 47.2.A.10.107
  • Updated Android to 9.0 September ASB
  • Updated kernel to 4.4.193 & latest CAF tag
  • Added WFD support
  • Fixed issue with NFC sometimes not working after flashing a new build
  • Improved memory management
  • Reworked init and implemented a fresh kernel merge

2019-08-24 | RC3.1 | 47.2.A.10.107
  • Based on 47.2.A.10.107 Sony FW (July vendor update)
  • Completely switched to stock gps stack
  • Added QC location stack (should help with gps without gapps installed)

2019-08-11 | RC3 | 47.2.A.10.80
  • Updated Android to 9.0_r46 (August ASB)
  • Added support for double tap to wake (Thanks to sjllls)
  • Fixed NFC
  • Fixed media_profiles (4k recording now works in both Snap and stock camera)
  • Fixed no data connection for sim2 [dsds]
  • Fixed random reboots in kernel
  • Several kernel optimizations/improvements
  • Updated kernel to 4.4.188 & latest CAF tag
  • Display fixes - color profiles are back and picture adjustments are working
  • ...

2019-07-21 | RC2 | 47.2.A.10.80
  • Fixed perf service and power HAL
  • Fixed audio issues in kernel
  • Enabled bokeh mode in Snap
  • Fixed bluetooth issues
  • Fixed some IMS issues
  • Fixed irq balancing
  • Updated kernel to 4.4.185 & latest CAF tag
  • Updated Android to 9.0_r44 (July ASB)
  • First release for dsds variant (G8342)
  • ...

2019-06-16 | RC1 | 47.2.A.10.62
  • Initial release
 
Last edited:

7hr08ik

Senior Member
Oct 8, 2011
258
95
First!

Litterally just having an argument with my phone about not working and you drop this!!!! Yeasshh!!!

---------- Post added at 03:06 PM ---------- Previous post was at 02:32 PM ----------

Hey,

Just a quick question.....In OP you say to flash from TWRP, but then in next post you have instructions to remove .sin .ta etc.
Do i just flash full stock then LOS, or do i need to flash the stock ROM with the bits removed, then flash LOS with TWRP?
 

derf elot

Senior Member
May 7, 2011
842
1,831
First!

Litterally just having an argument with my phone about not working and you drop this!!!! Yeasshh!!!

---------- Post added at 03:06 PM ---------- Previous post was at 02:32 PM ----------

Hey,

Just a quick question.....In OP you say to flash from TWRP, but then in next post you have instructions to remove .sin .ta etc.
Do i just flash full stock then LOS, or do i need to flash the stock ROM with the bits removed, then flash LOS with TWRP?

You need to have these stock firmware files flashed, before using LOS. So if you run 47.2.A.10.62 stock, you can simply flash this rom. If you are running SODP-based builds, I would recommend flashing stock first, booting once and then switching over.

The instructions in the second post are for updating FW files when you are already running LOS, without loosing data. LOS builds are tied to a specific FW/stock version. If they don't match, things like camera sometimes won't work. And we always stay up-to-date with FW files and blobs for security etc. reasons.
 

derf elot

Senior Member
May 7, 2011
842
1,831
I hope you can enable Camera2API and support for XZ1 Dual Sim ?

Since this rom is stock-based, we can only support what is there in stock. So full api2 including raw is a no go I'm afraid.

As for dual sim, making a build is not a problem, but unifying them is. Now with IMS support, there are different files in /system and different overlays for CarrierConfig needed for DSDS. Need to come up with a smart way to handle that.

edit: I actually had a look at the files now and they seem to be mutually exclusive. so shouldn't be too problematic. but I will need a tester with a dsds device once its done.

edit2: no, looks like I was too quick - there are some which would clash. so I will opt to make a separate build for dsds for now. will still need a tester or two though ;)
 
Last edited:

derf elot

Senior Member
May 7, 2011
842
1,831
Converted my SOV36 to G8341 and the phone still won't flash the rom. the error message that I been seeing is "not treble compatibility zip".

When did you last update your twrp? Have you tried my version?

https://www.androidfilehost.com/?fid=6006931924117885339

edit: if that fails too, you can delete the compatibility.zip from inside the rom.zip. that should definitely work. but please try with a newer twrp first.
 

HoiFung

Senior Member
Jan 29, 2015
192
47
22
Guang Zhou
weibo.com
Since this rom is stock-based, we can only support what is there in stock. So full api2 including raw is a no go I'm afraid.

As for dual sim, making a build is not a problem, but unifying them is. Now with IMS support, there are different files in /system and different overlays for CarrierConfig needed for DSDS. Need to come up with a smart way to handle that.

edit: I actually had a look at the files now and they seem to be mutually exclusive. so shouldn't be too problematic. but I will need a tester with a dsds device once its done.

edit2: no, looks like I was too quick - there are some which would clash. so I will opt to make a separate build for dsds for now. will still need a tester or two though ;)

It Can't it be unified using a way like maple?Just curious:good:
 

sinkoo1979

Senior Member
Oct 29, 2016
634
95
Yigo
Last edited:
  • Like
Reactions: derf elot

derf elot

Senior Member
May 7, 2011
842
1,831
It Can't it be unified using a way like maple?Just curious:good:

hi, yes that would work, but the devil is in the details.

I don't think we can get ims to work that way because the modem customization files are different, yet have the same names - at leat I think the sony-modem-switcher binary doesn't care about whether the files contain "fsg" or "dsds" in the name.

also the manifest for the dsds is slightly different as it contains entries for the second sim slot. not sure how important they are. but I know that SecureElement for example will crash on a single sim device if an entry for the second sim is present. not sure about the radio ones.

finally, the dtsi's are slightly different for the kernel. I haven't tried running the single sim device with the ones from dsds. it might work.

I might try making a unified build eventually, it would also make my life easier. but first I'll go for separate builds to verify things are working - especially since I don't have a dsds device to test.

speaking of which, I made my first build for dsds. adding some finishing touches for ims right now. I will need a brave tester or two soon ;)
 

HoiFung

Senior Member
Jan 29, 2015
192
47
22
Guang Zhou
weibo.com
hi, yes that would work, but the devil is in the details.

I don't think we can get ims to work that way because the modem customization files ate different, yet have the same names - at leat I think the sony-modem-switcher binary doesn't care about whether the files contain "fsg" or "dsds" in the name.

also the manifest for the dsds is slightly different as it contains entries for the second sim slot. not sure how important they are. but I know that SecureElement for example will crash on a single sim device if an entry for the second sim is present. not sure about the radio ones.

finally, the dtsi's are slightly different for the kernel. I haven't tried running the single sim device with the ones from dsds. it might work.

I might try making a unified build eventually, it would also make my life easier. but first I'll go for separate builds to verify things are working - especially since I don't have a dsds device to test.

speaking of which, I made my first build for dsds. adding some finishing touches for ims right now. I will need a brave tester or two soon ;)
OK, I see:).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    LineageOS 16.0 for Sony Xperia XZ1

    Screenshot-20190616-145336-Trebuchet.png
    Screenshot-20190616-145414-Settings.png


    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
    • Stock camera
    • WireGuard kernel support
    • Well tested but some bugs maybe included

    DOWNLOAD

    You can download the latest releases here:

    poplar (G8341):
    twrp-3.3.1-0-20191013-poplar
    lineage-16.0-20191212-UNOFFICIAL-RC7-poplar

    poplar_dsds (G8342):
    twrp-3.3.1-0-20191013-poplar_dsds
    lineage-16.0-20191212-UNOFFICIAL-RC7-poplar_dsds

    poplar_canada (G8343):
    twrp-3.3.1-0-20191013-poplar_canada
    lineage-16.0-20191212-UNOFFICIAL-RC7-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 + su addon (if needed) and Gapps (if needed).

    When updating from previous RC builds, simply dirty flash the ROM.

    KNOWN ISSUES

    • IMS support is experimental
    • Phone may not work well with Mifare NFC tokens (not tested)

    XDA:DevDB Information
    lineageos_16_sony_poplar, ROM for the Sony Xperia XZ1

    Contributors
    derf elot, modpunk, myself5
    Source Code (poplar): https://github.com/derfelot/android_device_sony_poplar
    Source Code (poplar_dsds): https://github.com/derfelot/android_device_sony_poplar_dsds
    Source Code (poplar_canada): https://github.com/derfelot/android_device_sony_poplar_canada

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 4.x

    Version Information
    Status: Stable
    Current Stable Version: RC7
    Stable Release Date: 2019-12-15

    Created 2019-06-16
    Last Updated 2019-12-15
    11
    Reserved

    REQUIRED FIRMWARE: 47.2.A.11.228

    CHANGELOG

    2019-12-15 | RC7 | 47.2.A.11.228
    • Updated Android to 9.0 December ASB
    • Updated kernel to 4.4.206

    2019-11-18 | RC6.1 | 47.2.A.11.228 (dsds variant only)
    • Fixed power HAL for dsds devices

    2019-11-17 | RC6 | 47.2.A.11.228
    • Updated Android to 9.0 November ASB
    • Updated kernel to 4.4.202 & latest CAF tag
    • Added support for smartcovers
    • Fixed audio issues with ogg playback
    • Potentially fixed some tethering issues
    • Revert LOS camera (Snap) to API1 (better image quality) and disable DIS (which doesn't work for us)

    2019-10-15 | RC5 | 47.2.A.11.228
    • Updated Android to 9.0 October ASB
    • Updated kernel to 4.4.196 & latest CAF tag
    • Updated WiFi to latest CAF tag
    • Fixed WFD issues
    • Fixed audio issues
    • More device tree cleanups
    • Updated WireGuard kernel support to latest snapshot
    • First release for Canadian variant (G8343)
    • ...

    2019-09-19 | RC4 | 47.2.A.10.107
    • Updated Android to 9.0 September ASB
    • Updated kernel to 4.4.193 & latest CAF tag
    • Added WFD support
    • Fixed issue with NFC sometimes not working after flashing a new build
    • Improved memory management
    • Reworked init and implemented a fresh kernel merge

    2019-08-24 | RC3.1 | 47.2.A.10.107
    • Based on 47.2.A.10.107 Sony FW (July vendor update)
    • Completely switched to stock gps stack
    • Added QC location stack (should help with gps without gapps installed)

    2019-08-11 | RC3 | 47.2.A.10.80
    • Updated Android to 9.0_r46 (August ASB)
    • Added support for double tap to wake (Thanks to sjllls)
    • Fixed NFC
    • Fixed media_profiles (4k recording now works in both Snap and stock camera)
    • Fixed no data connection for sim2 [dsds]
    • Fixed random reboots in kernel
    • Several kernel optimizations/improvements
    • Updated kernel to 4.4.188 & latest CAF tag
    • Display fixes - color profiles are back and picture adjustments are working
    • ...

    2019-07-21 | RC2 | 47.2.A.10.80
    • Fixed perf service and power HAL
    • Fixed audio issues in kernel
    • Enabled bokeh mode in Snap
    • Fixed bluetooth issues
    • Fixed some IMS issues
    • Fixed irq balancing
    • Updated kernel to 4.4.185 & latest CAF tag
    • Updated Android to 9.0_r44 (July ASB)
    • First release for dsds variant (G8342)
    • ...

    2019-06-16 | RC1 | 47.2.A.10.62
    • Initial release
    10
    Hi all,

    I finally managed to get a TWRP built that can decrypt 17.0. I also fixed a few more issues in 17.0 itself. If time permits, I might upload a first public beta release tomorrow. For those who already tested my previous 17.0 build, here is what I can confirm being fixed:
    • TWRP decryption
    • widevine DRM
    • BT audio
    • WiFi hotspot
    • offline charging
    • several under the hood improvements

    Issues I am currently looking into:
    • IMS (this one might take some time)
    • WiFi display
    • some graphics driver improvements

    For everything else, I will need feedback again.

    Cheers
    10
    Hello,

    RC7 is uploaded. I haven't had much time recently for various reasons (work, holiday, etc.), so it "only" includes security updates for December.

    I will have more time to work on it (los17.0 primarily) in the next few days.

    Enjoy.
    9
    I uploaded RC6. As always, you can check Post #3 for a changelog.

    Most of my time from now will likely be spent on getting 17.0 to a state for a general release.
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