[ROM] LineageOS 16.0 UNOFFICIAL - 1.2 [2020-02-11]

Search This thread

modpunk

Inactive Recognized Contributor
Oct 14, 2011
1,718
6,647
Sony Xperia XZ1 Compact
Samsung Galaxy S10
LineageOS 16.0 for Sony Xperia XZ1 Compact

LineageOS_16.0_Trebuchet.png
LineageOS_16.0_Trust_Settings.png


RELEASE

This is an alternative ROM for the Sony Xperia XZ1 Compact. It offers several privacy features and F-Droid App Store preinstalled. If you're coming from LineageOS 15.1 you can simply update! No need to wipe anything.

FEATURES
  • Signed with dev keys
  • FDroid preinstalled
  • FDroid Privilege Extension
  • Well tested but some bugs maybe included

DOWNLOAD

You can download the latest release here. Check the ChangeLog below for firmware requirements!

INSTALLATION

Put the zip file of the ROM on you sdcard or internal store and boot into recovery. If you use my TWRP recovery, you should use that one to flash the ROM.

Make sure you select Zip signature verification.

This will make sure the zip file has not been altered!

KNOWN ISSUES

  • NFC is not working yet
  • Phone doesn't work well with Mifare NFC tokens
  • IMS does not fully work for some carriers yet

XDA:DevDB Information
lineageos_16_sony_lilac, ROM for the Sony Xperia XZ1 Compact

Contributors
modpunk, derf elot, myself5
Source Code: https://github.com/cryptomilk/android_device_sony_lilac

ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
Based On: LineageOS

Version Information
Status: Stable
Current Stable Version: 1.2
Stable Release Date: 2020-02-11

Created 2019-04-28
Last Updated 2020-02-11
 

modpunk

Inactive Recognized Contributor
Oct 14, 2011
1,718
6,647
Sony Xperia XZ1 Compact
Samsung Galaxy S10
SECURITY ADVICE

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


UPGRADE LINEAGEOS

If you're running LineageOS 15.1 you can simply flash LineageOS 16.0, upgrade the firmware for modem etc. and be done. There is no need to wipe the data partition, just clean dalvik and cache after updating LineageOS.

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
    • persist*.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.

FDroid

This ROM comes with FDroid and the Privilege Extension pre-installed.

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!
 
Last edited:

modpunk

Inactive Recognized Contributor
Oct 14, 2011
1,718
6,647
Sony Xperia XZ1 Compact
Samsung Galaxy S10
REQUIRED FIRMWARE: 47.2.A.11.228

CHANGELOG

2020-02-11 | 1.2 | 47.2.A.11.228
  • Fixed issues with storing app data on sd card


2020-01-30 | 1.1 | 47.2.A.11.228
  • Update to kernel 4.4.213

2019-12-15 | 1.0 | 47.2.A.11.228
  • Update to kernel 4.4.206
  • Updated FDroid

2019-11-18 | RC6 | 47.2.A.11.228
  • Update to kernel 4.4.202
  • Added FlipFlap cover support
  • Updated FDroid
  • Fixed tethering issues


2019-10-18 | RC5 | 47.2.A.11.228
  • Update to kernel 4.4.196
  • Fixed FDroid permissions
  • Fixed application pinning
  • Moved to stock audio hal
  • Updated vendor properties


2019-09-18 | RC4 | 47.2.A.10.107
  • Update to kernel 4.4.193
  • Added WFD support
  • Fixed issue with NFC
  • Several cleanups in the device tree

2019-08-14 | RC3 | 47.2.A.10.107
  • Fixed random reboots (bad CAF kernel patch)
  • Fixed perf service and power HAL
  • Fixed issue showing white sony logo for too long
  • Fixed NFC
  • Fixed live display issues

2019-07-08 | RC2 | 47.2.A.10.80
  • Enabled bokeh mode in Snap
  • Fixed bluetooth issues
  • Fixed IMS
  • Fixed irq balancing
  • Updated kernel to latest version
  • Updated Android to 9.0_r44

2019-06-11 | RC1 | 47.2.A.10.62
  • More power efficient Kernel build
  • Added Sony Camera App
  • Improved wifi support and enabled some features
  • Fixed UFS firmware updates
  • Fixed brightness levels
  • Fixed some random reboot issues
  • Fixed some video issues with netflix
  • Fixed system permission issues
  • Fixed airplane mode
  • Fixed adaptive display issues

2019-04-29 | RC0 | 47.2.A.10.45
  • Initial release
 
Last edited:

DerSteppo

Senior Member
Aug 10, 2017
221
62
Frankfurt
ASUS ZenFone 8
YES!!! I am so excited about this moment that I want to have sex with it!

Quick question:
Any chance there will be a version without FDroid? (or, can it simply be uninstalled?)

You guys are the best!

EDIT: removed stupid question
 
Last edited:

danish0175

Senior Member
Oct 3, 2016
190
34
OnePlus 8T
REQUIRED FIRMWARE: 47.2.A.10.45

CHANGELOG

2019-XX-XX
Initial release
@modpunk


Hey, I don't wanna trouble you but i have alot of problem with internet connectivity and slow connection can you upload the required firmware files in zip ,I will be really grateful and wouldn't have to spend all my time downloading the whole fw


Thanks in advance
 
Last edited:

mcgi5sr2

Senior Member
Oct 15, 2012
1,059
1,811
Sheffield
If you coming from stock don't forget to update to latest TWRP 3.3.3 and also to mount system and advanced wipe it. Working really well on this end thanks for the great work devs
 
  • Like
Reactions: .:B:. and i.j

Val81

Senior Member
Jan 14, 2016
81
8
I'm very happy lineageOS 16 is ready! I will flash it when I know more of its battery drain, stock Android 9 sucked a lot in this when I upgraded my phone and I decided to go back to Oreo (lineageOS 15.1,that's better!)
 

mcgi5sr2

Senior Member
Oct 15, 2012
1,059
1,811
Sheffield
Blowing my mind @Derfelot . FYI running the extract-files.sh script leads to lots of files being irretrievable. Using the cryptomilk repos, will try pulling from the un-sin files today or tomorrow.
 

derf elot

Senior Member
May 7, 2011
880
1,895
Blowing my mind @Derfelot . FYI running the extract-files.sh script leads to lots of files being irretrievable. Using the cryptomilk repos, will try pulling from the un-sin files today or tomorrow.

Yes, only the pinned files are in the vendor repo as usual. You need to unsin and extract ramdisk/system/vendor from stock and run the script on that.

Brilliant! Already included in download-ready RC0?

No, it'll be in next release.
 
  • Like
Reactions: beggar23

HeavyMoertel

Senior Member
Jul 6, 2013
50
21
So, it doesn't work well for me.

I came from 47.2.A.10.45 stock (unlocked bootloader), wiped the system partition, installed it and it boots fine.

Then it struggles to get any mobile data (T-Mobile DE), before that the Gapps first installation wizard won't look for Wifi.
After that it loops at "Setting up..." until the screen gets brighter and hangs itself completely.
Not sure if I borked something beforehand or the Gapps 29. April 2019 is borked.
Probably the first option.

Sadly, I can't provide any logcat.
 
Last edited:

derf elot

Senior Member
May 7, 2011
880
1,895
So, it doesn't work well for me.

I came from 47.2.A.10.45 stock (unlocked bootloader), wiped the system partition, installed it and it boots fine.

Then it struggles to get any mobile data (T-Mobile DE), before that the Gapps first installation wizard won't look for Wifi.
After that it loops at "Setting up..." until the screen gets brighter and hangs itself completely.
Not sure if I borked something beforehand or the Gapps 29. April 2019 is borked.
Probably the first option.

Sadly, I can't provide any logcat.

i am relatively sure that you need to format data (not just wipe) in twrp if you come from stock. so you need to backup stuff from internal storage and use titaniumbackup (or similar apps) to backup app specific data.
 

HeavyMoertel

Senior Member
Jul 6, 2013
50
21
i am relatively sure that you need to format data (not just wipe) in twrp if you come from stock. so you need to backup stuff from internal storage and use titaniumbackup (or similar apps) to backup app specific data.

Yeah, that's what I did.
Format data, wiped /system for good measure. Still acting iffy.

I'm considering downgrading to stock 8.1, go LOS15.1 and upgrade from there.
 
Nov 28, 2017
35
4
Barcelona
A couple of questions

Hi everyone. I'm currently on AOSP Extended 9.0 on my XZ1 compact, since Lineage wasn't avaliable then. Now, I don't know if i should do the change to this rom again.
First of all, are there all the customizations of AEX? there are a lot of them, and they work really well, so it woud be sad to loose them.
Second, in EAX I'm having problems with the camera, since the AEX stock sucks and any other app is not working, presumably due to no support for Camera2 API Level 3, only Legacy or (installing a mod or two) Full. Could anyone confirm me if LOS 9.0 Suport Level 3??? It's pretty easy to know, you only have to download Camera2 API Probe from play store . It would help to change my mind ;) !

Third: your opinion!!!


Thanks to all the work, and the answer (I hope)!!!
 

Top Liked Posts

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

    LineageOS_16.0_Trebuchet.png
    LineageOS_16.0_Trust_Settings.png


    RELEASE

    This is an alternative ROM for the Sony Xperia XZ1 Compact. It offers several privacy features and F-Droid App Store preinstalled. If you're coming from LineageOS 15.1 you can simply update! No need to wipe anything.

    FEATURES
    • Signed with dev keys
    • FDroid preinstalled
    • FDroid Privilege Extension
    • Well tested but some bugs maybe included

    DOWNLOAD

    You can download the latest release here. Check the ChangeLog below for firmware requirements!

    INSTALLATION

    Put the zip file of the ROM on you sdcard or internal store and boot into recovery. If you use my TWRP recovery, you should use that one to flash the ROM.

    Make sure you select Zip signature verification.

    This will make sure the zip file has not been altered!

    KNOWN ISSUES

    • NFC is not working yet
    • Phone doesn't work well with Mifare NFC tokens
    • IMS does not fully work for some carriers yet

    XDA:DevDB Information
    lineageos_16_sony_lilac, ROM for the Sony Xperia XZ1 Compact

    Contributors
    modpunk, derf elot, myself5
    Source Code: https://github.com/cryptomilk/android_device_sony_lilac

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 4.x
    Based On: LineageOS

    Version Information
    Status: Stable
    Current Stable Version: 1.2
    Stable Release Date: 2020-02-11

    Created 2019-04-28
    Last Updated 2020-02-11
    28
    SECURITY ADVICE

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


    UPGRADE LINEAGEOS

    If you're running LineageOS 15.1 you can simply flash LineageOS 16.0, upgrade the firmware for modem etc. and be done. There is no need to wipe the data partition, just clean dalvik and cache after updating LineageOS.

    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
      • persist*.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.

    FDroid

    This ROM comes with FDroid and the Privilege Extension pre-installed.

    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!
    24
    I've uploaded v1.1 which is likely the last 16.0 release. I will move to 17.1 soon and provide a ROM :)
    23
    REQUIRED FIRMWARE: 47.2.A.11.228

    CHANGELOG

    2020-02-11 | 1.2 | 47.2.A.11.228
    • Fixed issues with storing app data on sd card


    2020-01-30 | 1.1 | 47.2.A.11.228
    • Update to kernel 4.4.213

    2019-12-15 | 1.0 | 47.2.A.11.228
    • Update to kernel 4.4.206
    • Updated FDroid

    2019-11-18 | RC6 | 47.2.A.11.228
    • Update to kernel 4.4.202
    • Added FlipFlap cover support
    • Updated FDroid
    • Fixed tethering issues


    2019-10-18 | RC5 | 47.2.A.11.228
    • Update to kernel 4.4.196
    • Fixed FDroid permissions
    • Fixed application pinning
    • Moved to stock audio hal
    • Updated vendor properties


    2019-09-18 | RC4 | 47.2.A.10.107
    • Update to kernel 4.4.193
    • Added WFD support
    • Fixed issue with NFC
    • Several cleanups in the device tree

    2019-08-14 | RC3 | 47.2.A.10.107
    • Fixed random reboots (bad CAF kernel patch)
    • Fixed perf service and power HAL
    • Fixed issue showing white sony logo for too long
    • Fixed NFC
    • Fixed live display issues

    2019-07-08 | RC2 | 47.2.A.10.80
    • Enabled bokeh mode in Snap
    • Fixed bluetooth issues
    • Fixed IMS
    • Fixed irq balancing
    • Updated kernel to latest version
    • Updated Android to 9.0_r44

    2019-06-11 | RC1 | 47.2.A.10.62
    • More power efficient Kernel build
    • Added Sony Camera App
    • Improved wifi support and enabled some features
    • Fixed UFS firmware updates
    • Fixed brightness levels
    • Fixed some random reboot issues
    • Fixed some video issues with netflix
    • Fixed system permission issues
    • Fixed airplane mode
    • Fixed adaptive display issues

    2019-04-29 | RC0 | 47.2.A.10.45
    • Initial release
    18
    I've uploaded RC3. Have fun.