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

Search This thread
D

Deleted member 10584191

Guest
hello,
I don't know why, but I can't edit permission: on internal memory
trying mix, this failed
trying on a terminal under my phone, this seems to work, but no.
the only way I managed to get it working is by change file permission under TWRP :/
edit: I managed to get it working y using adb root on my laptop

I miss the "secure startup", with a pass for the first startup? (phone seems to be complete encrypted)

I believe I may be having a similar issue. The internal storage ("sdcard") seems to be encrypted, as the folders there have hash-like names and apps can't utilize it for storage. Trying to use the Camera or Gallery app, the app throws an error about not enough space or no storage available. The "Storage" section of the Settings reports that I have plenty of free space. Installing apps only works because they default to the sdcard I have in the phone ("sdcard1").

Checking the directory in the TWRP terminal, the folders are owned by user and group "media_rw". Should this be something different?
The phone boots and run just fine, I just can't use the internal storage. I would take screenshots, but those don't work either due to "lack of storage space"... :eek:

Any suggestions? I'm not even sure where to start on this. I figure if LOS has encrypted the files, it should be able to decrypt them on boot.

EDIT: I found a suggestion to use the "Fix Contexts" option in TWRP, but should that fail, I'm not sure what the resolution for that is. I am hesitant to try it.
EDIT 2: I threw caution to the wind and used the "Fix Contexts" option, but the issue remains.

SOLUTION: Formatting the system through TWRP fixed the issue. Luckily I wasn't too deep in setting things up on the phone, so nothing of value was lost. I'm not sure how this all started, but its done now...
 
Last edited by a moderator:
D

Deleted member 10584191

Guest
Now after a week of testing, I am sure to say that my network location issues are gone since switching to microG and it's build of UnifiedNlp. Thereby, I get a network location fix instantly and as soon as I enabled the location switch...

As a note for anyone following this, make sure to either change the microG Service Core APK name to match the package name given in the XML permissions file or vice-versa.
e.g. this step: adb push /path/to/com.google.android.gms-19420020.apk /system/priv-app/microg/
should match this step: <privapp-permissions package="com.google.android.gms">

Otherwise the phone will be stuck in a boot loop. Deleting the APK and the XML file from the /system folder will fix it.
 

muebbel

Member
Nov 12, 2018
28
3
@modpunk maybe its possible to add fulldiskencryption like on the z3c, so we can use a "secure startup" and the sdcard mounted as internal BEFORE the systemui starts? :)
 
  • Like
Reactions: i.j

alximiktik

Senior Member
Aug 26, 2011
133
13
Yerevan
Is this firmware have also the problem with ram after some take pictures? I got it after some take pictures, and smart began work very slowly
 

Radiolaria

Member
Oct 13, 2017
9
2
Hello, i need a new phone and i want to ask if there are any updates planned for lineageos 16?

kind regards

---------- Post added at 04:36 PM ---------- Previous post was at 04:36 PM ----------

Hello, i need a new phone and i want to ask if there are any updates planned for lineageos 16?

kind regards
 

neurer

Member
Mar 10, 2011
34
20
Was wondering, if there's still anyone out there, successfully self-building. Worked well up until the repo switch, but now I'm stuck at this. Despite a clean directory and sync.

Bash:
[ 66% 65524/98557] build /home/neurer/lineageo...ts_26.0_intermediates/built_26.0_plat_sepolicy 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/neurer/lineageos/repo/out/target/product/lilac/obj/ETC/treble_sepolicy_tests_26.0_intermediates/26.0_plat_policy.conf 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  policy configuration loaded 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  writing CIL to /home/neurer/lineageos/repo/out/target/product/lilac/obj/ETC/treble_sepolicy_tests_26.0_intermediates/built_26.0_plat_sepolicy 
[ 66% 65538/98557] build /home/neurer/lineageo...ts_27.0_intermediates/built_27.0_plat_sepolicy 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/neurer/lineageos/repo/out/target/product/lilac/obj/ETC/treble_sepolicy_tests_27.0_intermediates/27.0_plat_policy.conf 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  policy configuration loaded 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  writing CIL to /home/neurer/lineageos/repo/out/target/product/lilac/obj/ETC/treble_sepolicy_tests_27.0_intermediates/built_27.0_plat_sepolicy 
[ 66% 65619/98557] build /home/neurer/lineageo...lat_sepolicy_intermediates/built_plat_sepolicy 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/neurer/lineageos/repo/out/target/product/lilac/obj/ETC/built_plat_sepolicy_intermediates/base_plat_policy.conf 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  policy configuration loaded 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  writing CIL to /home/neurer/lineageos/repo/out/target/product/lilac/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy 
[ 66% 65620/98557] build /home/neurer/lineageo...t_sepolicy.cil_intermediates/plat_sepolicy.cil 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/neurer/lineageos/repo/out/target/product/lilac/obj/ETC/plat_sepolicy.cil_intermediates/plat_policy.conf 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  policy configuration loaded 
/home/neurer/lineageos/repo/out/host/linux-x86/bin/checkpolicy:  writing CIL to /home/neurer/lineageos/repo/out/target/product/lilac/obj/ETC/plat_sepolicy.cil_intermediates/plat_sepolicy.cil 
[ 67% 66677/98164] build /home/neurer/lineageo...he-xml_intermediates/dex-hiddenapi/classes.dex 
FAILED: /home/neurer/lineageos/repo/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/classes.dex  
/bin/bash -c "(rm -rf /home/neurer/lineageos/repo/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (mkdir -p /home/neurer/lineageos/repo/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find /home/neurer/lineageos/repo/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex/ -maxdepth 1 -name \"classes*.dex\" | sort | xargs -I{} cp -f {} /home/neurer/lineageos/repo/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find /home/neurer/lineageos/repo/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ -name \"classes*.dex\" | sort | sed 's/^/--dex=/' | xargs /home/neurer/lineageos/repo/out/host/linux-x86/bin/hiddenapi --light-greylist=/home/neurer/lineageos/repo/out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=/home/neurer/lineageos/repo/out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=/home/neurer/lineageos/repo/out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt )" 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47] No DEX files specified 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47] Command: /home/neurer/lineageos/repo/out/host/linux-x86/bin/hiddenapi --light-greylist=/home/neurer/lineageos/repo/out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=/home/neurer/lineageos/repo/out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=/home/neurer/lineageos/repo/out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47] Usage: hiddenapi [options]... 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]  
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]   --dex=<filename>: specify dex file whose members' access flags are to be set. 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]       At least one --dex parameter must be specified. 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]  
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]   --light-greylist=<filename>: 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]   --dark-greylist=<filename>: 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]   --blacklist=<filename>: text files with signatures of methods/fields to be marked 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]       greylisted/blacklisted respectively. At least one list must be provided. 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]  
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]   --print-hidden-api: dump a list of marked methods/fields to the standard output. 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]       There is no indication which API category they belong to. 
hiddenapi E 12-14 16:54:19 314487 314487 hiddenapi.cc:47]  
[ 67% 66684/98160] //external/guava:guava javac [common] 
ninja: build stopped: subcommand failed. 
16:54:36 ninja failed with: exit status 1 
 
#### failed to build some targets (04:22:51 (hh:mm:ss)) ####
 

kai ming

Member
Jul 1, 2019
9
1
Did you ever get it to work?
Mhl do not work, but i find a way that you can connect to a tv and simultaneaus can charge the phone. It is expensive how i did, but actually i had all these gadget laying around my house. So what i did is to use the displaylink protocol, that i have (hardware device, mine is a targus travel displaylink dock). The dockingstation have only usb a - port, so what i did is use the huawei matedock that came with my matebook x pro laptop to plug in the sony phone via the usb -c port. That dock have a usb - c to usb -a (converter), but it have also a another usb type c for charging passtrough. On the phone side i installed displaylink presenter app. So thats how i got it working to connect to a external monitor. Its at the moment in good use as a airplay/chromecast receiver.
 
  • Like
Reactions: rsk_kelkar

neurer

Member
Mar 10, 2011
34
20
Here's what seems to work for me:

XML:
<?xml version="1.0" encoding="UTF-8"?>
  <manifest>
      <!-- SONY -->
      <project name="whatawurst/android_kernel_sony_msm8998" path="kernel/sony/msm8998" remote="github" />
      <project name="whatawurst/android_device_sony_common-treble" path="device/sony/common-treble" remote="github" />
      <project name="whatawurst/android_device_sony_yoshino" path="device/sony/yoshino" remote="github" />
      <project name="whatawurst/android_device_sony_lilac" path="device/sony/lilac" remote="github" />

      <!-- Pinned blobs for lilac -->
      <project name="whatawurst/android_vendor_sony_lilac" path="vendor/sony/lilac" remote="github" />
  </manifest>

Also, this commit fixes the missed touch events on 16.0 too. Thanks to @Rooted_Ansh for the hint.
 

Attachments

  • Screenshot_20201215-182340_Settings.png
    Screenshot_20201215-182340_Settings.png
    80.3 KB · Views: 56

DaniJaponezu

Member
Apr 6, 2019
12
1
Hi. After flashing LOS 17 and 18, i decided to go back to this 16 one. But after wipe and flash, the phone boot back into twrp recovery. Its the same 16 ROM i used before. Do i need to format before flash? Or what happened?
Thank you
 

wyt18

Senior Member
Hi. After flashing LOS 17 and 18, i decided to go back to this 16 one. But after wipe and flash, the phone boot back into twrp recovery. Its the same 16 ROM i used before. Do i need to format before flash? Or what happened?
Thank you
i'd like to know this too. have the same problem and would like to downgrade from LOS 17 to LOS 16. what's the best way to do this?
 

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.