[OFFICIAL] LineageOS 17.1 for z3c

Search This thread

NeoArian

Recognized Developer
Nov 25, 2017
1,227
2,765
Gladbeck
2okPze5.png


Introduction
LineageOS, an open-source Android distribution, is available for several devices,
with more being continuously added thanks to the biggest, yet ever growing, Android open-source community.
Join us and breathe new life in your device, be it old or new.
If you don't know LineageOS and would like to read about it before installing it you can take a look at the official Website.

Features
Individuality
Customization is paramount to productivity.
That’s why LineageOS promises to push for user personalization and preference.
Everyone is unique and your device should be too.
Security
Your data, your rules. With powerful tools such as Privacy Guard, you are in control of what your apps can do whenever you want.
Trust will help you understand the security of your device and warn you about possible threats.
We take security very seriously: that’s why we deliver security updates every month to all our supported devices.
And to make your device more secure, lock everything behind an enhanced lock screen.
Longevity
LineageOS extends the functionality and lifespan of mobile devices from more than 20 different manufacturers thanks to our open-source community of contributors from all around the world.

Installation:
If you are on stock OS, you need a custom recovery first. You can get the recommended recovery in the official installation instructions link below.
If you are coming from stock or other ROMs, you need to make a factory reset.
As always, make sure to backup before installing this ROM.

More detailed instructions at:
Install LineageOS on z3c

Downloads
Download LineageOS 17.1 for Xperia Z3 Compact.
If you prefer TWRP over Lineage recovery, you can get it here.
Recommended Google Apps package: Open GApps (choose ARM as Platform and 10.0 as Android, use the Variant you want. Recommended nano package)

Source code
All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

The device specific source code can be found in the LineageOS Github repo.
Z3 Compact device tree
Sony Shinano common device tree
Sony MSM8974 common device tree
Sony MSM8974 kernel
The used defconfig is lineageos_shinano_aries_defconfig.

Changelog:
Changes for z3c

Bug reports:
How to submit a bug report
LineageOS GitLab

Donate to support development:
Donate via PayPal to NeoArian
Donate via PayPal to LineageOS

XDA:DevDB Information
LineageOS 17.1 for z3c, ROM for the Sony Xperia Z3 Compact

Contributors
NeoArian
ROM OS Version: Android 10
ROM Kernel: Linux 3.4.x

Version Information
Status: Stable

Created 2020-09-08
Last Updated 2020-09-12
 

pawloland

Senior Member
Jan 23, 2019
178
67
On this remarkable day, on the 9th of September, when android 11 has official release, z3c was given official build of android 10 with Lineage OS 17.1:laugh:. I am not complaining thought, great work, keep it up man.
 

shadowstep

Forum Moderator
Staff member
Jun 6, 2014
4,921
9,721
30
Ambala
OnePlus 5

NeoArian

Recognized Developer
Nov 25, 2017
1,227
2,765
Gladbeck
@NeoArian There already exists a LOS 17.1 thread created by you. Can you please confirm which one out of the two do you wish to keep? Duplicate threads are not permitted as per the Forum Rules.

Link to the existing thread: https://forum.xda-developers.com/z3-compact/orig-development/10-lineageos-17-0-z3c-t3976529

Additionally, the first post doesn't contain a link to the Kernel source. Kindly add the same as well, as that's mandatory under GPL.

Regards,
shadowstep
Forum Moderator
This thread is for the Official builds, I will close the unofficial thread. The first post lists the lineageos GitHub for the sources where the kernel source code can be found, I will add some more details regarding that in first post.
Greetings, Arian.
 

tomKater

Member
Jul 29, 2014
32
6
Huawei MediaPad M5 Lite
Hi everybody,

First, thank you NeoArian and other contributors for your great work. Just a question : I have no experience with Lineage recovery. What is the differences between Lineage recovery and TWRP ? What are the pros and cons ? If I try Lineage recovery, is it easy to go back to TWRP ? Without a full install ?

Thank you for your reply.
 

shadowstep

Forum Moderator
Staff member
Jun 6, 2014
4,921
9,721
30
Ambala
OnePlus 5
This thread is for the Official builds, I will close the unofficial thread. The first post lists the lineageos GitHub for the sources where the kernel source code can be found, I will add some more details regarding that in first post.
Greetings, Arian.

Thank you for the confirmation, Arian. Please close the old unofficial thread at your earliest convenience and we will be good to do on that front. Regarding the sources, yes, I see the link to the LOS GitHub, but I'll appreciate if you link the kernel repository (and if possible the device tree and vendor tree, if applicable) instead of the single LOS GitHub link.

Thanks for your work!

Regards,
shadowstep
Forum Moderator
 

john_matrix

Senior Member
Nov 22, 2008
410
100
France
Thank you very much NeoArian for your official build of LineageOS 17.1
I have installed it this morning and have only noticed that the rear camera is not working (the front one is working normally).
I have tested it with the bundled camera app and with Footej camera.

Maybe my z3c is dying so is this happen to someone else?
 

bigandyb

Member
Dec 13, 2007
8
0
Thank you very much NeoArian for your official build of LineageOS 17.1
I have installed it this morning and have only noticed that the rear camera is not working (the front one is working normally).
I have tested it with the bundled camera app and with Footej camera.

Maybe my z3c is dying so is this happen to someone else?

I just flashed this over the last 17.1 unofficial build, and the cameras are working.
 

Alizad00

Member
May 16, 2019
15
1
Tabriz
Hello NeoArian
at first id like to thank you for keeping this device alive
second i wanted to ask how can i use this method again to use wifi in middle east
the error says : wifi-service.odex has no dex files
I really appreciate your hard work
Thanks a lot


Edit : Nevermind
Thanks for rom Again
 
Last edited:
Upgrade from 16.0 via TWRP.

For my case: Camera (front/back), Mic, NFC, Bluetooth and GPS works without any issues so far. I wish I could help with some logs but it feels already so stable. I'm so baffled that devices like the Z3C with 2GB is running so fast and reliable with the latest Android.... except their 3.5 jacks of course :)

Abandoned from the company and kept alive by the community.

Thanks to all involved and especially thanks for maintaining @NeoArian

Best regards
 

damiank94

New member
Jul 19, 2016
4
1
Hey,

Could someone tell me how to revert back to stock ROM? Cause LOS changes partitions structure and I can't restore my backup.

BTW. Snap 801 isn't ARM64 SoC. Well, at least I couldn't install ARM64 GApps
 
Last edited:

pawloland

Senior Member
Jan 23, 2019
178
67
Downloads
Download LineageOS 17.1 for Xperia Z3 Compact.
If you prefer TWRP over Lineage recovery, you can get it here.
Recommended Google Apps package: Open GApps (choose ARM64 as Platform and 10.0 as Android, use the Variant you want. Recommended nano package)
Hey @NeoArian. A little typo here, that can cause serious problems for some newbies here. We should use ARM GApps, NOT ARM64. You probably forgot to modify accordingly your post template while creating new thread, since on the lineage's device wiki it correctly specifies ARM Gapps.

If you don't mind, I would also like to ask about updating from official LOS 16 to 17.1 WITHOUT LOSING DATA. So I read here about the procedure but I am not familiar with adb side loading - I am more of TWRP guy myself ;). Are these steps correct for updating through TWRP :confused: :
  1. Have official LOS 16 + your TWRP recommended for android 9 + GApps nano 9 ARM + Magisk 20.4 installed
  2. Download a new TWRP from here
  3. Download latest LOS 17.1 from here and copy it to device
  4. Download GApps from here and copy it to device
  5. Reboot to fastboot and flash new recovery
  6. Boot to recovery
  7. Flash latest LOS 17.1 on top of old LOS 16
  8. Flash new GApps for android 10 (on top of GApps from android 9?)
  9. Flash magisk (on top of old android 9's magisk installation ?)
  10. Reboot to system
  11. Hopefully everything works xD
Have I missed something, or not? Will it preserve my installed apps, their data and system setting, without crashes on new LOS 17? Thanks in advanced.
 
Last edited:

hubert-bangol

Member
Jul 3, 2007
25
1
Fresh install from a stock ROM 6.0.1 => everything seems to be working very well including rear/front camera and GPS fix very quickly.
Nice work, thanks very much, unbelievable to have android 10 on this device.

Questions :
- Cannot install Magisk. I have last TWRP, installed openGapps without problem. But for Magisk (tried 201. to 20.4) it says "unsupported file format"? The same with Magisk Canary version. Even with the Manager it cannot be installed.
- Is it possible to implement the ANC (Active Noise Cancellation)? It worked with unlocked bootloader under stock 6.0.1 when plugging the Sony MDR-NC31E earphones just before flashing LOS 17.1.

Thanks
 

NeoArian

Recognized Developer
Nov 25, 2017
1,227
2,765
Gladbeck
Hey @NeoArian. A little typo here, that can cause serious problems for some newbies here. We should use ARM GApps, NOT ARM64. You probably forgot to modify accordingly your post template while creating new thread, since on the lineage's device wiki it correctly specifies ARM Gapps.

If you don't mind, I would also like to ask about updating from official LOS 16 to 17.1 WITHOUT LOSING DATA. So I read here about the procedure but I am not familiar with adb side loading - I am more of TWRP guy myself ;). Are these steps correct for updating through TWRP :confused: :
  1. Have official LOS 16 + your TWRP recommended for android 9 + GApps nano 9 ARM + Magisk 20.4 installed
  2. Download a new TWRP from here
  3. Download latest LOS 17.1 from here and copy it to device
  4. Download GApps from here and copy it to device
  5. Reboot to fastboot and flash new recovery
  6. Boot to recovery
  7. Flash latest LOS 17.1 on top of old LOS 16
  8. Flash new GApps for android 10 (on top of GApps from android 9?)
  9. Flash magisk (on top of old android 9's magisk installation ?)
  10. Reboot to system
  11. Hopefully everything works xD
Have I missed something, or not? Will it preserve my installed apps, their data and system setting, without crashes on new LOS 17? Thanks in advanced.

Oopsie, fixed it.
The steps you mentioned seem fine and the apps and your data should persist, ideally without crashes :D
Good luck!

Fresh install from a stock ROM 6.0.1 => everything seems to be working very well including rear/front camera and GPS fix very quickly.
Nice work, thanks very much, unbelievable to have android 10 on this device.

Questions :
- Cannot install Magisk. I have last TWRP, installed openGapps without problem. But for Magisk (tried 201. to 20.4) it says "unsupported file format"? The same with Magisk Canary version. Even with the Manager it cannot be installed.
- Is it possible to implement the ANC (Active Noise Cancellation)? It worked with unlocked bootloader under stock 6.0.1 when plugging the Sony MDR-NC31E earphones just before flashing LOS 17.1.

Thanks

Glad to hear that it is working good for you! I didn't use magisk since a while now, unfortunately can't guard you with that. Was that ANC implemented system side?
 

KoMaSo

Senior Member
May 9, 2017
63
13
Hi, big thanks to NeoArian,
all works fine. I come from Stock 291 (German Telekom Brand). I had some trouble after flashing Recovery because I can´t start recovery with "fastboot reboot recovery". In my case always an system reboot appears. After some trys I use the keys (Vol- + Power) to boot in Recovery and all works fine. Please tell this in the install LineageOs on Z3c ( https://wiki.lineageos.org/devices/z3c/install )
 

hubert-bangol

Member
Jul 3, 2007
25
1
Oopsie, fixed it.
The steps you mentioned seem fine and the apps and your data should persist, ideally without crashes :D
Good luck!

Glad to hear that it is working good for you! I didn't use magisk since a while now, unfortunately can't guard you with that. Was that ANC implemented system side?

In fact I change TWRP, I should have installed the wrong one, Magisk is installed now.

About ANC, it is this functionnality, implemented on Z2 and Z3 series only:
https://www.ibtimes.co.uk/sony-xper...ancelling-technology-how-does-it-work-1439906
https://www.youtube.com/watch?v=i-w9vYV3cT8&t=5m
 

tonz87

Member
Mar 28, 2017
6
1
Just a humble question, do the Sony STM10 stereo microphone works with this rom? Now I'm on Lineage 16 and it doesn't work very well with it (lots of stuttering during the recording)
 

KoMaSo

Senior Member
May 9, 2017
63
13
Hi my device is since 3 days in this rom. The battery dranis fast. The device got no deep sleep. I have checked this with "AccuBattery" App. There are no special apps installed. Has anyone other see the same ?
 

pawloland

Senior Member
Jan 23, 2019
178
67
Hi my device is since 3 days in this rom. The battery dranis fast. The device got no deep sleep. I have checked this with "AccuBattery" App. There are no special apps installed. Has anyone other see the same ?
Deep sleep is probably not working because of bt wakelock or something like that. It is a known bug for ages with z3c.
 

Top Liked Posts

  • 3
    Good Evening!

    It's the time again, you might have already noticed that lineage 18.1 is official for some devices now. We, the sony shinano maintainers, were not sleeping and have also prepared our device for 18.1. I have uploaded a test build here: https://sourceforge.net/projects/ep...18.1/lineage-18.1-20210406-UNOFFICIAL-z3c.zip
    I would appreciate some testing/feedback on this build. There shouldn't be major issues on the test build, from my own testing it should be on-par with 17.1.
    I am optimistic that we can also achieve an official release of 18.1 for the z3c.

    All source codes can be found on the lineageos github in lineage-18.1 branches + additional patches for sony msm8974 are up on gerrit: https://review.lineageos.org/q/status:open+-is:wip

    Happy flashing!

    It's been a while since last time I did test a new Android version on this smartphone.
    First of all, I'd like to thank you all maintainers for your effort and to congratulate for the great work done with this first build of lineage 18.1.
    I did some basic testing (don't expect anything too accurate, since this is not my main device for a while) which I'll resume below:
    • Booting was fine and time is quite comparable with previous lineage versions
    • I succesfully installed a test build of OpenGapps (micro configuration of 20210130), which seems to work pretty well
    • account setup and sync works
    • WiFi working at both 2.4/5 GHz
    • Bluetooth working fine, I had no problems connecting to my bluetooth earbuds and listen to some music
    • NearbySharing is working like a charm and quite fast too
    • online charging is working at full speed (about 1800 mA with a quickcharge 3.0 wall charger)
    • MTP working
    • OTG works for both input devices (mouse, keyboard, etc..) or mass storage
    • camera is fully working (taking pictures with both front/rear cameras, taking videos, flash)
    • phone calls are working, but I believe that microphones are swapped, using the upper one as main, resulting in a low volume during calls
    • mobile data is stuck at EDGE for me, I couldn't get it to use LTE instead
    • audio is fine
    • video playback also seems to be fine (tested on youtube at 1080p)
    • chromecast works, in fact I did cast screen and youtube to a Google Nest Hub without any problem
    • the OS is overall responsive and snappy, even with gapps installed
    • screen rotation, accelerometer, gyroscope, proximity sensor, etc.. all fine
    • double tap to wake and other classic gestures are fine
    • I couldn't test hotspot since, as I said, I was stuck at 2G connection which was quite unresponsive
    • unfortunately I cannot test GPS or NFC neither
    I hope I did not forget something important.
    I'm going to keep this installed since it's really stable, so feel free to ask me for some other testing and I'll for sure try to do that as soon as I have some spare time :)
  • 9
    Good Evening!

    It's the time again, you might have already noticed that lineage 18.1 is official for some devices now. We, the sony shinano maintainers, were not sleeping and have also prepared our device for 18.1. I have uploaded a test build here: https://sourceforge.net/projects/ep...18.1/lineage-18.1-20210406-UNOFFICIAL-z3c.zip
    I would appreciate some testing/feedback on this build. There shouldn't be major issues on the test build, from my own testing it should be on-par with 17.1.
    I am optimistic that we can also achieve an official release of 18.1 for the z3c.

    All source codes can be found on the lineageos github in lineage-18.1 branches + additional patches for sony msm8974 are up on gerrit: https://review.lineageos.org/q/status:open+-is:wip

    Happy flashing!
    3
    Good Evening!

    It's the time again, you might have already noticed that lineage 18.1 is official for some devices now. We, the sony shinano maintainers, were not sleeping and have also prepared our device for 18.1. I have uploaded a test build here: https://sourceforge.net/projects/ep...18.1/lineage-18.1-20210406-UNOFFICIAL-z3c.zip
    I would appreciate some testing/feedback on this build. There shouldn't be major issues on the test build, from my own testing it should be on-par with 17.1.
    I am optimistic that we can also achieve an official release of 18.1 for the z3c.

    All source codes can be found on the lineageos github in lineage-18.1 branches + additional patches for sony msm8974 are up on gerrit: https://review.lineageos.org/q/status:open+-is:wip

    Happy flashing!

    It's been a while since last time I did test a new Android version on this smartphone.
    First of all, I'd like to thank you all maintainers for your effort and to congratulate for the great work done with this first build of lineage 18.1.
    I did some basic testing (don't expect anything too accurate, since this is not my main device for a while) which I'll resume below:
    • Booting was fine and time is quite comparable with previous lineage versions
    • I succesfully installed a test build of OpenGapps (micro configuration of 20210130), which seems to work pretty well
    • account setup and sync works
    • WiFi working at both 2.4/5 GHz
    • Bluetooth working fine, I had no problems connecting to my bluetooth earbuds and listen to some music
    • NearbySharing is working like a charm and quite fast too
    • online charging is working at full speed (about 1800 mA with a quickcharge 3.0 wall charger)
    • MTP working
    • OTG works for both input devices (mouse, keyboard, etc..) or mass storage
    • camera is fully working (taking pictures with both front/rear cameras, taking videos, flash)
    • phone calls are working, but I believe that microphones are swapped, using the upper one as main, resulting in a low volume during calls
    • mobile data is stuck at EDGE for me, I couldn't get it to use LTE instead
    • audio is fine
    • video playback also seems to be fine (tested on youtube at 1080p)
    • chromecast works, in fact I did cast screen and youtube to a Google Nest Hub without any problem
    • the OS is overall responsive and snappy, even with gapps installed
    • screen rotation, accelerometer, gyroscope, proximity sensor, etc.. all fine
    • double tap to wake and other classic gestures are fine
    • I couldn't test hotspot since, as I said, I was stuck at 2G connection which was quite unresponsive
    • unfortunately I cannot test GPS or NFC neither
    I hope I did not forget something important.
    I'm going to keep this installed since it's really stable, so feel free to ask me for some other testing and I'll for sure try to do that as soon as I have some spare time :)
    1
    Hi, it might be a bit off topic.
    I just tried 17.1 on my z3c and noticed that some of my apps for work do not work on Android 10, so I wanted to go back to 16.0 but i don't have the zip file anymore. As I could not find a recent download for 16.0 I wanted to ask if someone still had recent version?
    I think I had lineage-16.0-20200901-nightly-z3c-signed.zip (I think it was the last 16.0 Version) so if someone could upload it or point me to a download link it would be very appreciated.

    regards
    You have a PM... For all others: there's still a microG version (only a bit older) on https://download.lineage.microg.org/z3c/
    1
    Just as with other Android 9 and 10 roms, I had heavy battery drain because of the media.extractor process.
    https://forum.xda-developers.com/t/10-official-carbonrom-cr-8-0-z3c.4047649/post-84715425

    I worked around it by killing it at boot with a simple Tasker profile (Edit: I added a two minutes delay to make sure the process is already started) :
    <TaskerData sr="" dvi="1" tv="5.9.3">
    <Profile sr="prof2" ve="2">
    <cdate>1616707624817</cdate>
    <edate>1617276057191</edate>
    <flags>8</flags>
    <id>2</id>
    <mid0>3</mid0>
    <nme>Kill media.extractor</nme>
    <Event sr="con0" ve="2">
    <code>411</code>
    <pri>0</pri>
    </Event>
    </Profile>
    <Task sr="task3">
    <cdate>1616707684454</cdate>
    <edate>1617276057191</edate>
    <id>3</id>
    <pri>100</pri>
    <Action sr="act0" ve="7">
    <code>30</code>
    <Int sr="arg0" val="0"/>
    <Int sr="arg1" val="0"/>
    <Int sr="arg2" val="2"/>
    <Int sr="arg3" val="0"/>
    <Int sr="arg4" val="0"/>
    </Action>
    <Action sr="act1" ve="7">
    <code>123</code>
    <Str sr="arg0" ve="3">killall media.extractor</Str>
    <Int sr="arg1" val="0"/>
    <Int sr="arg2" val="1"/>
    <Str sr="arg3" ve="3"/>
    <Str sr="arg4" ve="3"/>
    <Str sr="arg5" ve="3"/>
    </Action>
    </Task>
    </TaskerData>

    Like mentioned, we currently have to use Magisk 20.4 to root it.
    The best way is to install LineageOS then Magisk 20.4 and finally Magisk 22 all through recovery.

    Edit: I finally identified the problematic file, a 70 MB opus file.
    1
    This occasionally happens to me when flashing the Z3C and other Sony devices. I can usually get round it by taking the following steps in TWRP:
    1. Backup your data partition
    2. Format - not just wipe - the data partition
    3. Flash the new ROM - I usually do it by installing from SD card, but `adb sideload` should work too
    4. Boot the phone and go through the setup wizard app, setting any screen pattern or PIN you had previously.
    5. Restore the backup of your data partition
    I hope that helps

    Thank you very much ! It was indeed the right procedure !

    It saved me a lot of time. Thanks.
  • 9
    Good Evening!

    It's the time again, you might have already noticed that lineage 18.1 is official for some devices now. We, the sony shinano maintainers, were not sleeping and have also prepared our device for 18.1. I have uploaded a test build here: https://sourceforge.net/projects/ep...18.1/lineage-18.1-20210406-UNOFFICIAL-z3c.zip
    I would appreciate some testing/feedback on this build. There shouldn't be major issues on the test build, from my own testing it should be on-par with 17.1.
    I am optimistic that we can also achieve an official release of 18.1 for the z3c.

    All source codes can be found on the lineageos github in lineage-18.1 branches + additional patches for sony msm8974 are up on gerrit: https://review.lineageos.org/q/status:open+-is:wip

    Happy flashing!
    8
    2okPze5.png


    Introduction
    LineageOS, an open-source Android distribution, is available for several devices,
    with more being continuously added thanks to the biggest, yet ever growing, Android open-source community.
    Join us and breathe new life in your device, be it old or new.
    If you don't know LineageOS and would like to read about it before installing it you can take a look at the official Website.

    Features
    Individuality
    Customization is paramount to productivity.
    That’s why LineageOS promises to push for user personalization and preference.
    Everyone is unique and your device should be too.
    Security
    Your data, your rules. With powerful tools such as Privacy Guard, you are in control of what your apps can do whenever you want.
    Trust will help you understand the security of your device and warn you about possible threats.
    We take security very seriously: that’s why we deliver security updates every month to all our supported devices.
    And to make your device more secure, lock everything behind an enhanced lock screen.
    Longevity
    LineageOS extends the functionality and lifespan of mobile devices from more than 20 different manufacturers thanks to our open-source community of contributors from all around the world.

    Installation:
    If you are on stock OS, you need a custom recovery first. You can get the recommended recovery in the official installation instructions link below.
    If you are coming from stock or other ROMs, you need to make a factory reset.
    As always, make sure to backup before installing this ROM.

    More detailed instructions at:
    Install LineageOS on z3c

    Downloads
    Download LineageOS 17.1 for Xperia Z3 Compact.
    If you prefer TWRP over Lineage recovery, you can get it here.
    Recommended Google Apps package: Open GApps (choose ARM as Platform and 10.0 as Android, use the Variant you want. Recommended nano package)

    Source code
    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

    The device specific source code can be found in the LineageOS Github repo.
    Z3 Compact device tree
    Sony Shinano common device tree
    Sony MSM8974 common device tree
    Sony MSM8974 kernel
    The used defconfig is lineageos_shinano_aries_defconfig.

    Changelog:
    Changes for z3c

    Bug reports:
    How to submit a bug report
    LineageOS GitLab

    Donate to support development:
    Donate via PayPal to NeoArian
    Donate via PayPal to LineageOS

    XDA:DevDB Information
    LineageOS 17.1 for z3c, ROM for the Sony Xperia Z3 Compact

    Contributors
    NeoArian
    ROM OS Version: Android 10
    ROM Kernel: Linux 3.4.x

    Version Information
    Status: Stable

    Created 2020-09-08
    Last Updated 2020-09-12
    5
    Hello @NeoArian , hello community. I'am very happy to see that the "BTLowPower" wakelock issue was fixed by @J_C_D and that it was merged into the android_kernel_sony_msm8974 repository last week. Thanks to all of you that spend your time supporting the Z3C and other older devices until now.
    5
    Yes, that's right.
    When Safe Start is turned on, the accelerometer does not work. Therefore, screen rotation, light sensor does not work.
    Thanks for the report. We were able to reproduce it and have fixed it. We will merge the fix within some days so that it will be fixed in the upcoming releases.
    Greetings, arian.
    4
    GOOD NEWS EVERYBODY!!!
    I managed to finally fix the persistent "BTLowPower" wakelock
    which caused the CPU to no longer enter Deep Sleep state and thus resulted in high battery drain once Bluetooth had been enabled! 🍻

    UPDATE: I just found a much simpler solution that does the trick! The real culprit was a #ifdef in BT Power Management that was introduced by a commit in July 2019 and then has fallen into oblivion :ROFLMAO:.
    Fixed! -> Version 3.
    @tblr0ne , @L.Lmar : can you please also test this version?



    *** TESTERS NEEDED! ***

    Find attached the modified boot.img. USE AT OWN RISK!

    Installation:
    - reboot Z3C into Bootloader (Vol+)
    - flash new boot image over current LineageOS17.1 installation using fastboot
    Code:
    fastboot flash boot boot-BTLowPower-fix-3.img
    - reboot
    Code:
    fastboot reboot

    NOTE for Magisk users:

    After flashing the new boot image, it is required to re-install Magisk. Do this by immediately booting into TWRP after the new boot image is flashed.
    Also note that you need Magisk v20.4 for this! Later versions won't work.
    Anyway, you will be able to upgrade Magisk to up-to-date versions using Magisk Manager after the system has booted.

    @NeoArian when everything seems ok, I will create a merge request in LineageOS/android_kernel_sony_msm8974. Is this the correct place / way to go?
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