[OFFICIAL] LineageOS 17.1 for z3c

Search This thread

NeoArian

Recognized Developer
Nov 25, 2017
1,227
2,762
Gladbeck
@NeoArian are you aware of the sound issues with latest build :confused: Cheers

Yes, i'm aware of it.
I have had much stuff to do, hence i couldn't reply earlier.
tl;dr: There was an issue with the build server, which somehow synced an old state of the vendor/sony repository and hence the audio HAL was completely missing. The broken build will be deleted as soon as possible and we are working on a solution.
Sorry for the inconvenience! :(
 

tomKater

Member
Jul 29, 2014
30
5
Huawei MediaPad M5 Lite
Yes, i'm aware of it.
I have had much stuff to do, hence i couldn't reply earlier.
tl;dr: There was an issue with the build server, which somehow synced an old state of the vendor/sony repository and hence the audio HAL was completely missing. The broken build will be deleted as soon as possible and we are working on a solution.
Sorry for the inconvenience! :(

@NeoArian thank you for your feedback. For my information, do you think there will be a new build today or tomorrow? I hesitate to flash 0610 from scratch so I could decide to wait for or not.
 

NeoArian

Recognized Developer
Nov 25, 2017
1,227
2,762
Gladbeck
@NeoArian thank you for your feedback. For my information, do you think there will be a new build today or tomorrow? I hesitate to flash from scratch so I could decide to wait for or not.
No, the build won't be rebuilt. The next build will be there 7 days after the latest build.
Best would be to go with the older build for now.
However, if I find some time for it, I will provide a hotfix zip for the users who already updated to the new build.
Greeting, Arian.
 

NeoArian

Recognized Developer
Nov 25, 2017
1,227
2,762
Gladbeck
Quick update: I have created a flashable hotfix!
It is attached to this post.
This can be used on Xperia Z3 and Z3 Compact.
It is only tested in lineagerecovery so far, TWRP mounts system at a different point. I didn't confirm that also works.

EDIT:// I have added hotfix3, it fixes the file path for one lib. In the first version I accidentally derped this.
You don't have to flash the first two hotfixes for hotfix3 to work
 
Last edited:

Zwulfulfsn

Member
Jan 13, 2020
7
5
Quick update: I have created a flashable hotfix!
It is attached to this post.
This can be used on Xperia Z3 and Z3 Compact.
It is only tested in lineagerecovery so far, TWRP mounts system at a different point. I didn't confirm that also works.

EDIT:// I have added hotfix3, it fixes the file path for one lib. In the first version I accidentally derped this.

I can confirm that with installed hotfixes #1 - #3 via TWRP sound came back on my device (calls, music, headset, bluetooth). Big thank to NeoArian for his immeadiate help.
 

xfranky81

New member
Oct 13, 2020
3
0
Quick update: I have created a flashable hotfix!
It is attached to this post.
This can be used on Xperia Z3 and Z3 Compact.
It is only tested in lineagerecovery so far, TWRP mounts system at a different point. I didn't confirm that also works.

EDIT:// I have added hotfix3, it fixes the file path for one lib. In the first version I accidentally derped this.
You don't have to flash the first two hotfixes for hotfix3 to work

Yay, thanks! Hotfix3 confirmed working \o/ :good:
 

Serf95

New member
Oct 24, 2020
3
0
Thank you @NeoArian.

1) Is the encryption working correctly?

2) The delay time when you lock the screen, works incorrectly. The time you have not set before locking the screen is immediately locked after you turn off the screen. Could you fix this bug? I would like to set the time before auto-locking.
 

YukiS

Member
Feb 28, 2013
7
0
Mine has the same issue. Everything works fine except the rear camera (It is still useful as daily driver for my use cases).

Is it known if there are different hardware variants of the camera built into the Z3C?

I bought my Z3C from Aliexpress as refurbished. Seems more that it is new-old-stock. Came with original box, accessories and on all of them where still the protection plastic foils like it was never touched. Also first Android 4.4 was installed and I followed the official installation guide (well written, I found everything I needed to know in there, thx!) to flash the latest stock and after that the Lineage OS installation incl. bootloader unlock.


After a fresh boot I can use the flashlight. When I use FreeDcam I can use the front camera and afterwards the flashlight still works. When I use the Android Camera app sometime the app crashes, sometimes it remains black but afterwards always the flashlight also stops working (Button is greyed out. Hardware disappears? Driver crash?).

What kind of logs would be helpful for you to dig into this?

I also bought my Z3 Compact from AliExpress and was having the same issue until I restored the stock 23.5.A.1.291 firmware with the official flashing tool Emma (instead of Flashtool as the installation guide suggests) then did a clean flash back to LOS 17.1 afterwards.
 

tblr0ne

Member
Feb 28, 2019
21
9
Audio again isn't working in the 1027 update. At least hotfix3 from some posts above can still repair it. The calendar widget is missing as well.
 

shadowCOD

New member
Feb 11, 2011
1
0
2 annoying but manageable issues found

Hello NeoArian,

I have used your LOS 17 build for a while now on my z3c and it has been a treat and I could not thank you enough already for bringing android 10 to our precious (small formfactor) devices, however I have 2 annoying issues.

The touchscreen bottom and upper part of the screen are not responsive unless I am in the in the initial set-up screen, the next and back button work responsively and they are at the exact same place as where the navigation buttons are placed, it seems to be triggered when the navigation bar comes up (after the intial android set-up screen) I have this on video. I am using the simulate screen cutout option in the developer menu as a workaround atm, but maybe you could look into this?

The second issue I have encountered is with Bluetooth. When trying to use the sixaxis controller app.
The app can establish a bluetooth network on a rooted version of the .291 os However, it does not work on your rom.
I have made a adb logcat but since I'm a junior member here on XDA I'm not able to post with an attachment.

If you have any questions I am happy to help/answer and try to fix these issues.

is there time for you to look into these issues, If not I totally understand that there is more to life than these kind of minor bugs.

Greatz,

ShadowCOD
 

NeoArian

Recognized Developer
Nov 25, 2017
1,227
2,762
Gladbeck
Audio again isn't working in the 1027 update. At least hotfix3 from some posts above can still repair it. The calendar widget is missing as well.
The broken build server got in again :/
It will be fixed again with the next build, sorry for the inconvenience.

lineage-17.1-20201027 no sound :crying:
You can flash the hotfix I have provided here a few posts ago for now. You can find it here: https://forum.xda-developers.com/z3...cial-lineageos-17-1-z3c-t4160347/post83713969

Hello NeoArian,

I have used your LOS 17 build for a while now on my z3c and it has been a treat and I could not thank you enough already for bringing android 10 to our precious (small formfactor) devices, however I have 2 annoying issues.

The touchscreen bottom and upper part of the screen are not responsive unless I am in the in the initial set-up screen, the next and back button work responsively and they are at the exact same place as where the navigation buttons are placed, it seems to be triggered when the navigation bar comes up (after the intial android set-up screen) I have this on video. I am using the simulate screen cutout option in the developer menu as a workaround atm, but maybe you could look into this?

The second issue I have encountered is with Bluetooth. When trying to use the sixaxis controller app.
The app can establish a bluetooth network on a rooted version of the .291 os However, it does not work on your rom.
I have made a adb logcat but since I'm a junior member here on XDA I'm not able to post with an attachment.

If you have any questions I am happy to help/answer and try to fix these issues.

is there time for you to look into these issues, If not I totally understand that there is more to life than these kind of minor bugs.

Greatz,

ShadowCOD
Is anyone else here affected form the first issue?
I will look into the controller support when I find some time.
 
Last edited:

pawloland

Senior Member
Jan 23, 2019
178
67
Hello NeoArian,

I have used your LOS 17 build for a while now on my z3c and it has been a treat and I could not thank you enough already for bringing android 10 to our precious (small formfactor) devices, however I have 2 annoying issues.

The touchscreen bottom and upper part of the screen are not responsive unless I am in the in the initial set-up screen, the next and back button work responsively and they are at the exact same place as where the navigation buttons are placed, it seems to be triggered when the navigation bar comes up (after the intial android set-up screen) I have this on video. I am using the simulate screen cutout option in the developer menu as a workaround atm, but maybe you could look into this?

The second issue I have encountered is with Bluetooth. When trying to use the sixaxis controller app.
The app can establish a bluetooth network on a rooted version of the .291 os However, it does not work on your rom.
I have made a adb logcat but since I'm a junior member here on XDA I'm not able to post with an attachment.

If you have any questions I am happy to help/answer and try to fix these issues.

is there time for you to look into these issues, If not I totally understand that there is more to life than these kind of minor bugs.

Greatz,

ShadowCOD
I would normally say that the first issue you mentioned is caused by damaged digitizer (common point of failture on z3c, I was also affected by this). After some time it stops recognizing touches in some areas of the screen, even if the phone was never dropped and glass on display isn't cracked. You say that it is sometimes working, sometimes not, so given that, it is possible that your digitizer is slowly dying.

Speaking of sixaxsis controller app. If I am not mistaken it wasn't updated for ages and it isn't even available for download from play store. The last android version that is supported by the app is IIRC android 6 or 7. You can easly find people complaining about it online, from back the android 7/8 era.
 

eXecu7or

Member
Jul 25, 2010
37
0
2020-10-20 - same sound issue for me.

I'm sticking to 2020-10-06 since it's the most stable.

I do have a slight inconvenience whereas after a reboot, the SD card takes some time to activate the apps on it. It generally requires a reinsertion, even thought the storage applet reads it properly and all.

Thank you for your continued effort.
 

crott

Member
Jul 25, 2014
21
2
Wroclaw
www.netcreate.pl
I can confirm encryption issue same as here
I set password before encrypting phone. After encrypting, during boot I'm asked for password, after I enter the password I stuck at LOS loading screen. I hope donating will help solve this problem :)
Thank you!
 

NeoArian

Recognized Developer
Nov 25, 2017
1,227
2,762
Gladbeck
I can confirm encryption issue same as here
I set password before encrypting phone. After encrypting, during boot I'm asked for password, after I enter the password I stuck at LOS loading screen. I hope donating will help solve this problem :)
Thank you!
A common issue with encryption would be that you formatted data with an old recovery. Have you definitely used lineage recovery or the latest TWRP which can be found in the main post in this thread? If not, please use one of these recommended recoveries and format data again in order to get encryption working.
 

crott

Member
Jul 25, 2014
21
2
Wroclaw
www.netcreate.pl
A common issue with encryption would be that you formatted data with an old recovery. Have you definitely used lineage recovery or the latest TWRP which can be found in the main post in this thread? If not, please use one of these recommended recoveries and format data again in order to get encryption working.
I used both Recovery and Lineage with same version 20201103. But now I tried as you suggested: with TWRP from main post in this thread. Exactly same result LOS loading screen.
This time I tried with pin instead of password.
I'm doing something wrong or there is some issue indeed.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    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!
    1
    I use Magisk 20.3 because everyhting works fine :)

    No warranty that the latest version works and there is no other way since LOS 17, AFAIK....
    1
    @pawloland Thanks for answering! I successfully backed up my DRM keys using "Universal (Dirtycow-based) TA Backup v2" which was very easy to do and didn't even need rooting the device prior.

    *EDIT* I successfully installed this ROM now, all looking good so far. What's the recommended method to root this LineageOS ROM?

    *EDIT2* Well, the enjoyment with the device only lasted for a very short while since I now discovered that SD-cards won't click-in into the Z3Cs reader. Appalling quality control at Sony, attention to detail traditionally only to their DRM systems :-( I'll try to get a replacement device from the seller, so my question above regarding how to root best is still valid.
    Magisk 20.4 flashable zip, can be updated to the latest via the app, but it seems versions after 20.4 do not survive LOS updates. Magisk app v.22 is fine
    p.s. Need to push sdcard quite deep so that it snaps into place
    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.
  • 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
    6
    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!
    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