[ROM] LineageOS 15.1 UNOFFICIAL - BETA8 (2018-10-22)

Search This thread

toejam119

Senior Member
How is the idle battery drain on people's XZ1C with these releases? I noticed that on Beta8 it was 0.5% / h which is oddly high considering my 5 year old Galaxy S4 Mini (1900 mAh) only had about 0.3% / h on LineageOS Nougat. With idling I mean 3G data on + sync on, with screen off and no foreground apps running, all other radios are off. Almost always battery stats show Google Play Services as no. 1 app using battery. I tried everything I knew to reduce battery life including shutting down some services and broadcast receivers from "Google Play Services" with MyAndroidTools. No help, it was still draining 0.5% / h on average when deep sleeping mostly. I even uninstalled all 3rd party apps from my phone and still I had 0.5% / h drain.

Then I wanted to see battery details, but as Oreo for some reason omits this information that Nougat had (when the phone is active, dozing, screen on etc.) I had to download GSam Battery Monitor and I noticed my phone stays highly active even when Dozing. Then I downloaded Greenify, with default settings it didn't help at all, but then I set it as rooted (my phone is rooted with Magisk) and used Aggressive Doze and this was key. The phone is no more active during Dozing and my drain is on average 0.25% / h when in deep sleep. I've tested this for a week now and it's consistent. Also when my S4 Mini Nougat was dozing it wasn't active, so now the dozing between the two phones seems to be working the same.

Downside to using Greenify's Aggressive Doze is your phone has maintenance window of once per hour or less in Doze compared to once every few(?) minutes in stock Doze, so while you get calls, text messages, Whatsapp messages and other messages straight up as they use GCM, but Gmail doesn't use it so I get Gmail emails only once, or less, per hour. Same with Youtube notifications but they're not important. I learned that Aquamail uses GCM and it works with Gmail and it looked great but it doesn't support Gmail labels so I couldn't really use it.

Maybe this is only in Beta releases? I haven't tried derf elot's newer releases. If I remember right while I used the stock Pie for two weeks the idle drain on it was also about 0.5% / h. Beta8 and stock Pie are the only two releases I've tried so far. Also noteworthy is that the reception at my home is great 3G is -57 dBm and 2G is -51 dBm, I got two cell towers within 800 meters of my house as often bad reception drains battery when one cannot find culprit for battery drain.

The first picture where I mention stock Doze I mean Beta8 stock Doze.

update: phone again seems to be mostly "active" during aggressive doze according to GSam Battery Stats especially after I restarted my phone but the drain is still only 0.25% / h.
 

Attachments

  • Screenshot_20190419-170826_GSam_Battery_Monitor_text.png
    Screenshot_20190419-170826_GSam_Battery_Monitor_text.png
    111.2 KB · Views: 736
  • Screenshot_20190419-170851_GSam_Battery_Monitor_text2.png
    Screenshot_20190419-170851_GSam_Battery_Monitor_text2.png
    173.7 KB · Views: 734
Last edited:

Nouatik

Senior Member
Jan 10, 2011
213
213
Regards: audiofocus
When I call or get a call I simply enable and disable loudspeaker to get it working again.
A workaround until los16 or other fix
 
  • Like
Reactions: _that

DerSteppo

Senior Member
Aug 10, 2017
212
57
Frankfurt
ASUS ZenFone 8
I have reported the issue with the loss of audio focus to the sipgate developer team. They will check if they can get hold of a Linage OS phone to check. Fingers crossed.

BTW: Does the bug exist in LOS 16?
 

Ogdilla

Member
Sep 13, 2008
9
4
Did the GPS Time-To-First-Fix performance regress for anyone else with the April build? I'm coming from the 2018-09-17 release where it was fixed ( <5 seconds) and now it's back up to 30-40.
 

sylphio

Member
Nov 11, 2016
10
5
flashing the build you were using before should work. you cannot dirty flash these builds over the betas, nor can you restore a twrp backup of /data as these ones require a format of /data. that's due to the different keys. you can only migrate by backing up apps/data from within the beta ROM (on sdcard), then format /data, flash new ROM and restore from within new build.

edit: reminder to myself: I should probably mention this again with every new build I post. it has been mentioned several times already now, but always a few pages back.

Should we wipe system in addition to data, cache and Dalvik cache ? If so, do we have to re-flash the firmware ?
Thanks in advance =)

EDIT: Interestingly, the bootloop caused by this dirty flash is avoided if I wipe the Dalvik cache.

EDIT2: I just realised you wrote "format /data". So, a wipe is not enough?
 
Last edited:

RootKidMitch

Senior Member
Oct 13, 2008
51
5
Hey guys, my lower speaker ended it's service for some reason and I want to send it back to an repair shop, which is why I want to flash my XZ1C with LOS 15.1 back to a stock ROM.
Can somebody please help me with a step by step guide?
I already browsed through several ones, used TFX Xperia Flashtool, got a stock ROM via XPeriFirm but I don't get the flashing working correctly.

Thanks a lot guys! :)
 
  • Like
Reactions: Zawisz

dcrin3

Senior Member
Jun 12, 2010
273
179
Hey guys, my lower speaker ended it's service for some reason and I want to send it back to an repair shop, which is why I want to flash my XZ1C with LOS 15.1 back to a stock ROM.
Can somebody please help me with a step by step guide?
I already browsed through several ones, used TFX Xperia Flashtool, got a stock ROM via XPeriFirm but I don't get the flashing working correctly.

Thanks a lot guys! :)

Why don't you use newsflasher with your latest firmware, which is what? .62.,80? Depending on whether you want to keep data, remove userdata.sin or use it to wipe it clean. ALSO... by unlocking your bootloader you may have voided your warranty. :(
 

RootKidMitch

Senior Member
Oct 13, 2008
51
5
Hey guys,
I'm using this Rom for almost one year and I'm totally in love with it, no issues at all.
Recently I wanted to pair the phone via miracast to a Microsoft Wireless Display Adapter but I can't get it working. Neither do I find the adapters wi-fi network, nor does it list any devices in the "Streaming"-menu...

Can somebody help please?

Thanks a lot! :)
 

kingstah

Senior Member
Apr 3, 2012
50
11
Permissions in /sdcard/Android broken

Hi,
I have been using this ROM here for a long time and am super happy with it. But I am now running into a strange issue.
- A new app I have installed can't run properly and complains about not being able to read and write data.
- The app does not require read/write access to external storage, as it is only using the /sdcard/Android/data/<app> directory
- When I look at the permissions in /sdcard/Android/data, I see they are all

drwxrwx--x 3 root sdcard_rw 131072 2020-02-24 16:19 <app>

By comparison, when I look in /data/data/, I see entries like

drwx------ 7 u0_a237 u0_a237 4096 2020-02-25 11:29 <app>

which is more as it should be.

So it looks like the permissions/owner/group in my /sdcard/Android/ directory are broken. I have done some research and have learned that they are somehow governed by SELinux contexts. So I did "Fix Contexts" in TWRP, but this did not change anything.

Can anyone help?
 

elChorche

Member
Nov 5, 2018
9
8
Hi,
I have been using this ROM here for a long time and am super happy with it. But I am now running into a strange issue.
- A new app I have installed can't run properly and complains about not being able to read and write data.
- The app does not require read/write access to external storage, as it is only using the /sdcard/Android/data/<app> directory
- When I look at the permissions in /sdcard/Android/data, I see they are all

drwxrwx--x 3 root sdcard_rw 131072 2020-02-24 16:19 <app>

By comparison, when I look in /data/data/, I see entries like

drwx------ 7 u0_a237 u0_a237 4096 2020-02-25 11:29 <app>

which is more as it should be.

So it looks like the permissions/owner/group in my /sdcard/Android/ directory are broken. I have done some research and have learned that they are somehow governed by SELinux contexts. So I did "Fix Contexts" in TWRP, but this did not change anything.

Can anyone help?

Hey there! For LOS 16 there is a fix for broken sdcard permissions. I don't know about LOS 15.1, but maybe this hint will help you as well:
https://forum.xda-developers.com/showpost.php?p=81732137&postcount=903
 

OceanKnoxville

New member
Oct 28, 2019
3
0
with all my respect, can anyone get back on Lineage15.1 and release a stable no bug version? cuz to consider the battery performance for this phone android 9 or 10 are no better than 8.1. so if some developers can look back, and get on the most suitable android version rom for this phone i believe lots of ppl will be happy abt it. with all my respect from China!

---------- Post added at 07:01 PM ---------- Previous post was at 06:57 PM ----------

with all my respect, can anyone get back on Lineage15.1 and release a stable no bug version? cuz to consider the battery performance for this phone android 9 or 10 are no better than 8.1. so if some developers can look back, and get on the most suitable android version rom for this phone i believe lots of ppl will be happy abt it. with all my respect!
 

Kalimohan

Senior Member
Mar 10, 2017
81
8
This makes no sense, what you are writing about.
The best battery duration I got with LineageOS 17.1!


---------- Post added at 07:01 PM ---------- Previous post was at 06:57 PM ----------

[/COLOR]with all my respect, can anyone get back on Lineage15.1 and release a stable no bug version? cuz to consider the battery performance for this phone android 9 or 10 are no better than 8.1. so if some developers can look back, and get on the most suitable android version rom for this phone i believe lots of ppl will be happy abt it. with all my respect![/QUOTE]
 

OceanKnoxville

New member
Oct 28, 2019
3
0
This makes no sense, what you are writing about.
The best battery duration I got with LineageOS 17.1!


---------- Post added at 07:01 PM ---------- Previous post was at 06:57 PM ----------

[/COLOR]with all my respect, can anyone get back on Lineage15.1 and release a stable no bug version? cuz to consider the battery performance for this phone android 9 or 10 are no better than 8.1. so if some developers can look back, and get on the most suitable android version rom for this phone i believe lots of ppl will be happy abt it. with all my respect!
[/QUOTE]
so, a 2017 phone got better battery performance on android 10 than 8.1? how come u come up with the conclusion?i got worse on Lineage16.1 than 15.1 thats why i wrote this.
 

rez78

Senior Member
Nov 16, 2017
135
27
A question: if i install this lineage os on my device can i use my sony apps like xperia xome,nusic,album etc? Thanks
 

XDA-shark

Senior Member
Mar 2, 2018
73
30
A question: if i install this lineage os on my device can i use my sony apps like xperia xome,nusic,album etc? Thanks

No, These won't work any more with the exception of the camera app.

However, I would not recommend to moving to LOS 15.1 any more. There is also 16.0, and 17.1 available by now.
 

ParkourPaul

Member
Jan 15, 2015
25
16
A question: if i install this lineage os on my device can i use my sony apps like xperia xome,nusic,album etc? Thanks

Hey! There is a magisk module called 'Sony device dummy' on the magisk repo that once activated, will allow you to see, download and install all Sony apps on play store.
Another way might be to use 'MagiskHide Props Config' magisk module to change your device fingerprint to that of your Sony device though I can't remember trying this myself due to the handy nature of the former module. I suspect it works just fine though.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 69
    LineageOS 15.1 for Sony Xperia XZ1 Compact

    screenshot_lilac_01.png
    screenshot_lilac_02.png


    BETA RELEASE

    This release is a beta release. It works very well and can be used as a daily driver. Please check the lists about what works or not below and check what needs testing and feedback.

    FEATURES
    • Signed with dev keys
    • FDroid preinstalled
    • FDroid Privilege Extension
    • Bugs 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

    • IMS support is missing (we are working on it, but it isn't trivial)

    HARDWARE

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


    UNTESTED


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

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

    ROM OS Version: 8.x Oreo
    ROM Kernel: Linux 4.x
    ROM Firmware Required: TWRP Recovery
    Based On: LineageOS

    Version Information
    Status: Beta
    Current Beta Version: 8
    Beta Release Date: 2018-10-22

    Created 2018-02-05
    Last Updated 2018-10-22
    25
    CHANGELOG

    2018-10-22
    • Updated Kernel to version 4.4.161
    • Use same vibration strength as stock
    • Updated GPS stack
    • Recommended firmware: 47.1.A.16.20


    2018-09-17
    • Updated Kernel to version 4.4.156
    • Improved GPS performance, GPS fix in less than 10 seconds now
    • Added stock camera app
    • Recommended firmware: 47.1.A.16.20


    2018-08-14
    • Updated Kernel to version 4.4.147
    • Some performance improvements (The system should be more responsive)
    • Improvements to save some battery
    • Fixed touch pressure issues
    • Requires firmware version: 47.1.A.12.270

    2018-06-12
    • Updated Kernel to version 4.4.136
    • Added support for WireGuard VPN
    • Added support for Sony modem configurations

    2018-05-16
    • Updated to completely new kernel which follows Linux 4.4.x stable (Thanks @derf elot)
    • Updated display stack to newer version
    • Fixed USB Tethering which broke with BETA2
    • More volume steps for media playback
    • Fixed IRQ balancing (found by derf elot) (This is broken in Stock ...)

    2018-04-16
    • Updated to April build
    • Fixed 'OK Google'
    • Fixed wifi startup issues
    • Fixed GPS issues

    2018-03-23
    • Kernel bugfixes
    • Native exfat support
    • Several audio improvements
    • Updated vibration patterns
    • Updated brightness levels
    • Fixed IMS
    • Fixed MTP
    • Fixed offmode charging

    2018-02-19
    • Added HWComposer improvements (efficient ColorTransform)
    • Added Kernel support for exfat formatted sdcards
    • Added Vulkan compute feature
    • Added IPv6 ebtables
    • Switched Snap to Camera API2 with extended features (ubifocus, optizoom, blur, pro mode, etc.)
    • Fixed headphones audio
    • Fixed NFC
    • Fixed tethering support
    • Fixed audio effects

    2018-02-06
    • The big bang!
    23
    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.

    Google Apps

    You can download and install the Google Apps from opengapps.org. You need ARM64 and 8.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

    Doesn't provide API level 27 builds yet ... will probably available in future with signature spoofing.

    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!
    20
    So you have abandoned the ROM before it even got out of beta? This makes no sense whatsoever. Some people are not interested in using brand new Android version that's not matured yet... :/

    a) This is a spare time project and my spare time is limited
    b) The source code is open source, fix the remaining issues.

    I'm looking forward to your contributions.
    16
    I have a new build with updated SDM stack and a completly new kernel from @derf elot however we've run into some issues with the new kernel and working on fixes. Once we have them we will provide a new build.