[9] LineageOS 16.0 for z3c

Status
Not open for further replies.
Search This thread

BenEl

Member
Apr 14, 2008
11
1
Hi, thanks for this beautiful firmware. It works like a charm but unfortunately 5ggz wifi doesn't work on my phone. Could you please advice how to fix that?

Hello,
also thanks for this beautiful firmware. Have same problem with Wi-Fi. 5Ghz doesn't work on D5803, but on stock firmware worked fine.
I checked Wi-Fi hotspot on 5Ghz mode. Same promlem - it does not work.
I hope it will be fix.
- Sony Xperia Z3 Compact D5803
- unlocked bootloader
- TWRP 3.3.1-0.4-z3c
- lineage-16.0-20191007-UNOFFICIAL-z3c.zip
- 9.0 Gapps NANO for ARM
- Magisk v20.0
 

DinikS

New member
Oct 25, 2019
2
1
No problems with my local 5GHz WiFi network.

You're lucky ))) During initial settings my phone found my local 5ggz network, I tried to connect but it disappeared suddenly and from that moment the phone can't find any 5ggz access points. And I can connect only to 2,4ggz APs.
Returning to "aospextended rom" 5ggz wifi works well.
 
  • Like
Reactions: rasoooli

BenEl

Member
Apr 14, 2008
11
1
Everyone who has trouble with WiFi (5ghz).
I solved this problem with installation magisk mogule - "wifi bolding (Qualcomm) by simonsmh"
Now wifi works good as stock rom (sry for bad eng).
Just tested v1.11. Does not work...
"- Installation FAILED. Your device didn't support WCNSS_qcom_cfg.ini."

Also reinstall "lineage-16.0-20191007-UNOFFICIAL-z3c.zip" without any Gapps and Magisk but with Wipe Data, Cash, System. No result. WiFi 5ghz does not work...
 
Last edited:

NeoArian

Recognized Developer
Nov 25, 2017
1,283
2,937
Sony Xperia Z2
Sony Xperia Z3 Compact
Hi, thanks for this beautiful firmware. It works like a charm but unfortunately 5ggz wifi doesn't work on my phone. Could you please advice how to fix that?
I can't reproduce it, 5GHz is and always was working on my device. Same for hotspot.

No problems with my local 5GHz WiFi network.
Same. As long as I neither get logs or a way to reproduce I can't do anything on this anyway.
 

NeoArian

Recognized Developer
Nov 25, 2017
1,283
2,937
Sony Xperia Z2
Sony Xperia Z3 Compact
I wonder whether the issue of not being able to connect to 5GHz WiFi hotspots might be associated with the D5803 variant or not? Mine is the D5833 model, and I don't face that problem. Anyone could either confirm or reject such scenario?
I doubt this. I think that it is related to the country where the z3c is used. I see that CarbonROM applied this: https://github.com/CarbonROM/android_device_sony_z3c/commit/c3b51f51f8715c4214bd6ef3af35c8791336ac33

Since I am in Germany anyway it didn't matter for me so I didn't pick this. Can someone with the problem please try to apply the change on his device manually? The file is available in /system/vendor/firmware/bcmdhd.cal
 

rasoooli

Senior Member
Jul 22, 2010
260
57
HI!
Thanks for you're Great rom
I Have WIFI Problem Too
yesterday I Unlocked my phone and flash the last version Of TWRP & Rom
Rom Boots & everything worked Like Charm .
But I can't see any of my around WIFI signals
 

Bore1

Senior Member
Jul 31, 2013
63
21
Off topic many of u have changed lcd so what u used to glue it back ? the adhesive that came with cd or b-7000 glue or maybe something else?and how well it stays glued?
 

BenEl

Member
Apr 14, 2008
11
1
I doubt this. I think that it is related to the country where the z3c is used. I see that CarbonROM applied this: https://github.com/CarbonROM/android_device_sony_z3c/commit/c3b51f51f8715c4214bd6ef3af35c8791336ac33

Since I am in Germany anyway it didn't matter for me so I didn't pick this. Can someone with the problem please try to apply the change on his device manually? The file is available in /system/vendor/firmware/bcmdhd.cal

It work but just with open SSID network. If wifi 5ghz network have Hide SSID, phone does not see net (of course, network was added before).
 

pawloland

Senior Member
Jan 23, 2019
186
74
Sony Xperia 5 II
I just want to state that the sound volume is good now (or at least with an effort can now be adjusted to be good). When I have a volume at the max while calling and then change it to minimum it will in fact be at minimal level, which doesn't make my ears blood. The problem steps in when i change to loud speaker mode, an then set the volume to the max. When i quit loudspeaker mode volume at minimal level is sooooooo loud, and can't be turned down. I have to set it to the max and only then i can start turning it down to minimum which make it quiet again. Sometimes I have to go back and forth from normal mode to loudspeaker mode adjusting volume levels in both to minimum, so at the end the normal mode is quiet.
 

NeoArian

Recognized Developer
Nov 25, 2017
1,283
2,937
Sony Xperia Z2
Sony Xperia Z3 Compact
I just want to state that the sound volume is good now (or at least with an effort can now be adjusted to be good). When I have a volume at the max while calling and then change it to minimum it will in fact be at minimal level, which doesn't make my ears blood. The problem steps in when i change to loud speaker mode, an then set the volume to the max. When i quit loudspeaker mode volume at minimal level is sooooooo loud, and can't be turned down. I have to set it to the max and only then i can start turning it down to minimum which make it quiet again. Sometimes I have to go back and forth from normal mode to loudspeaker mode adjusting volume levels in both to minimum, so at the end the normal mode is quiet.
Wait what, I had some success yesterday evening with this, now the volume in the top speaker changes significant more but I didn't push the build yet XD
I will upload it in a few hours (1-3 probably). Please test this build again :)
Delayed to tomorrow, my upload speed went close to zero... Sorry :rolleyes:
 
Last edited:

liberteus

Senior Member
Jan 17, 2009
103
18
Redmi Note 10 Pro
Coming from CarbonROM, I can't install the latest LOS16:
- got twrp 3.2.3 installed, as I get remote dtb errors when using higher versions (3.3. etc)
- able to install LOS16 from february or CR7.0

twrp 3.2.3 gives me error 7 when trying to install latest. fastboot boot latest twrp doesn't work, flashing it and it's not working either (for the reasons explained in post 2 of this thread), but no path to upgrade is given.
So what should I do to upgrade the twrp and move to newer versions? Do I have to install all LOS16 old versions until one of them solves the issue and I can install the new twrp? Should I flash a specific kernel (FOTA?) or something? Honestly I'm at a loss...

Edit 1: added more info, clarified the above.

Edit 2: wanted to dig the thread to find solutions. Here's what I tried (and failed):
- edited install script from within total commander on the phone to remove error 7. successfully installed an april version that gave error 7.
- flashed recommended TWRP to FOTA, using fastboot flash FOTAKernel A9_twrp.img (renamed the twrp obviously first). Recovery still doesn't work.

I think I tried every idea I had in mind and I'm still stuck. What can I do?
 
Last edited:

NeoArian

Recognized Developer
Nov 25, 2017
1,283
2,937
Sony Xperia Z2
Sony Xperia Z3 Compact
Coming from CarbonROM, I can't install the latest LOS16:
- got twrp 3.2.3 installed, as I get remote dtb errors when using higher versions (3.3. etc)
- able to install LOS16 from february or CR7.0

twrp 3.2.3 gives me error 7 when trying to install latest. fastboot boot latest twrp doesn't work, flashing it and it's not working either (for the reasons explained in post 2 of this thread), but no path to upgrade is given.
So what should I do to upgrade the twrp and move to newer versions? Do I have to install all LOS16 old versions until one of them solves the issue and I can install the new twrp? Should I flash a specific kernel (FOTA?) or something? Honestly I'm at a loss...

Edit 1: added more info, clarified the above.

Edit 2: wanted to dig the thread to find solutions. Here's what I tried (and failed):
- edited install script from within total commander on the phone to remove error 7. successfully installed an april version that gave error 7.
- flashed recommended TWRP to FOTA, using fastboot flash FOTAKernel A9_twrp.img (renamed the twrp obviously first). Recovery still doesn't work.

I think I tried every idea I had in mind and I'm still stuck. What can I do?
You should just flash my twrp-3.3.1-0.4 from post #2 as described there (fastboot flash recovery twrp.img). You just have to be in fastboot mode, it doesn't matter on which ROM you were previously. After you flashed it you can hold power and volume down button from powered off device to boot into twrp. If you can't flash it with fastboot somehow I would need the output from your Terminal if possible.
Good luck!
 

sugarbrie

Member
Oct 18, 2018
30
4
Coming from CarbonROM, I can't install the latest LOS16:
- got twrp 3.2.3 installed, as I get remote dtb errors when using higher versions (3.3. etc)
- able to install LOS16 from february or CR7.0

twrp 3.2.3 gives me error 7 when trying to install latest. fastboot boot latest twrp doesn't work, flashing it and it's not working either (for the reasons explained in post 2 of this thread), but no path to upgrade is given.
So what should I do to upgrade the twrp and move to newer versions? Do I have to install all LOS16 old versions until one of them solves the issue and I can install the new twrp? Should I flash a specific kernel (FOTA?) or something? Honestly I'm at a loss...

Edit 1: added more info, clarified the above.

Edit 2: wanted to dig the thread to find solutions. Here's what I tried (and failed):
- edited install script from within total commander on the phone to remove error 7. successfully installed an april version that gave error 7.
- flashed recommended TWRP to FOTA, using fastboot flash FOTAKernel A9_twrp.img (renamed the twrp obviously first). Recovery still doesn't work.

I think I tried every idea I had in mind and I'm still stuck. What can I do?

The latest TWRPs by NeoArian are here:
https://sourceforge.net/projects/ephedraceae/files/z3c/twrp/
.
 

caley13

Member
Oct 26, 2019
6
2
Wifi problem too with both 2.4 and 5 GHz, flashing "lineage-16.0-20191007-UNOFFICIAL-z3c.zip"

Error Message: NETWORK SELECTION DISABLED ASSOCIATION REJECTION

I have MAC filtering enabled on router. With CarbonROM 6.1 Wifi was working fine.
 
  • Like
Reactions: rasoooli

Mr.Tom_Tom

Senior Member
Feb 16, 2008
182
235
Munich
Wait what, I had some success yesterday evening with this, now the volume in the top speaker changes significant more but I didn't push the build yet XD

@NeoArian did you find a general solution for that? So far I looked at the mixer_paths config files (found no issue there) and started to look at the msm8974 kernel audio driver. Now I wanted to dig into that a bit deeper but then saw your post here. I can also do some A/B tests today if you like.
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 57
    0aSPzXe.png

    Code:
    /*
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */
    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.

    Images
    Here are some Screenshots of this ROM.
    bOQ82bf.png

    DNrD93e.jpg

    8RZsTTU.jpg

    APeLLBj.png

    OGSBS0p.png

    i9Bs8wZ.png

    yDNON6C.png

    dysZUA3.jpg

    nIOSrmT.png

    Rpr8xvm.png


    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 instructions
    Prerequisites:
    • Unlocked Sony Xperia Z3 Compact
    • Fastboot drivers to install TWRP
    • Micro-USB Cable to connect your phone to your computer
    Install:
    1. Reboot to TWRP. *
    2. Wipe cache, dalvik cache, data and system.
    3. Format data to get rid of encryption.
    4. Install ROM.
    5. Install 9.0 Gapps for ARM. **
    * recommended TWRP: Post #2
    ** optional

    Update:
    • Get the latest build
    • Boot into TWRP
    • Flash the downloaded build
    • Reboot, if you don't wipe system backuptool will handle to reapply your modifications, for example: GApps.

    Changelog
    Code:
    Changelog 2019-10-07
    * Fixed offmode charging at Wall chargers (previously bright screen)
    * Fixed offmode charging at computers (previously reboot loop)

    Old Changelogs

    Code:
    Changelog 2019-10-06
    * Fixed camera for everyone
    * Set media volume steps to 25 and voice call volume steps to 7
    * Actually use our cache partition, previously we were using a link to /data/cache instead of mounting the cache partition as /cache
    * Cleanup of rootdir scripts
    Code:
    Changelog 2019-08-28
    * Rolled fingerprint back to Sony's 5.1.1 fingerprint
     -> safetynet CTS check works again
    * Set original shipping API level to KitKat
    * Minor cleaning
    Code:
    Changelog 2019-08-14
    * Singificantly improved GPS
    * August Android Security Bulletin
    * Cleaned, script generated vendor
    Code:
    Changelog 2019-08-05
    * Attempt to fix ANT+
    * Added settings to control the camera button
    Code:
    Changelog 2019-07-08
    * July Android Security Bulletin
    * Rebased Linux 3.4.113 Kernel
    -> Solved video recording lags with Snap
    Code:
    Changelog 2019-06-15
    * Fixed Audio problems
    * LED Notifications work again
    * Manual Network selection fixed
    Code:
    Changelog 2019-06-07
    * June Android security Bulletin
    * LED seems to work with notifications now
    * 4.0 Audio HAL -> NO, this does NOT fix our problems :/
    Code:
    Changelog 2019-05-10
    * Enforcing sepolicy
    * Fixed sensors
    * Fixed FM Radio
    * Fixed EXFat, sdfat and vfat
    * Camera works fine
    * May Android Security Bulletin
    * Sound seems fixed - Maximum Volume still decreases still after a few seconds when using internal speakers
    Code:
    Changelog 2019-05-06
    * Fixed AudioFX
    * Fixed Camera
    Code:
    Changelog 2019-04-24
    * Fixed Notification LED
    Code:
    Changelog 2019-02-19
    * Fixed GPS
    * Fixed Video Playback
    Code:
    Changelog 2019-01-09
    * Fixed Bluetooth


    Downloads
    Download the ROM

    Sources
    DEVICE:
    https://github.com/z3c-pie/device_sony_z3c
    https://github.com/z3c-pie/device_sony_msm8974-common
    https://github.com/z3c-pie/device_sony_shinano-common

    KERNEL:
    https://github.com/z3c-pie/kernel_sony_msm8974

    Addons
    OpenGapps
    Magisk
    SU-Addon

    Thanks
    Whole LineageOS Team for this amazing ROM
    @rcstar6696
    @Myself5
    @drakonizer
    @tomascus
    @koron393
    @nailyk
    @SpiritCroc
    I hope I haven't forgot anyone :)

    Bugs
    WHAT'S BROKEN
    • 4K Video recording doesn't work in stock camera, but works for example in OpenCamera.
    • You tell me.


    FAQ
    Q: Why i can't reboot into the recovery from advanced reboot?
    A: Because you have installed Magisk 19.1 which breaks it. Keep up to date here: https://github.com/topjohnwu/Magisk/issues/1418
    - fixed by @Myself5 since 2019.05.20

    XDA:DevDB Information
    [9] LineageOS 16.0 for z3c, ROM for the Sony Xperia Z3 Compact

    Contributors
    NeoArian
    Source Code: https://github.com/LineageOS

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 3.4.x

    Version Information
    Status: Stable
    Current Stable Version: lineage-16-20190510
    Stable Release Date: 2019-05-10

    Created 2019-01-05
    Last Updated 2019-10-10
    14
    Good evening, i guess it's time to share an Android 10 build.

    It is uploading to: https://sourceforge.net/projects/ephedraceae/files/z3c/testing/

    currently bluetooth doesn't work.
    Huge thanks to @koron393 who updated the camera shim to Q sources that fast.

    I wouldn't recommend to use it yet if you actually use your phone, there could be some bugs but it's a great proof of concept for now :D

    Have fun tasting Android 10 on z3c!
    13
    Good evening everyone!

    So i have been doing this LineageOS 16 for Z3 Compact since the 5th of january and it's already more then the half of a year. I think it's time to say thank you to you all. Working on this device is so much fun (it repressed my Xiaomi Mi 6 in my spare time) and also the communication is working just great through XDA at this point. Thanks that you help with testing, contribute with fixing bugs or just listing them or even donating some money to me. We really have a community here i enjoy to work with :) I have spent too many nights while doing stuff here but i never regretted it or had the feeling it wasn't worth.
    I hope that we can continue this project in future and keep this five years old device alive as long as possible. This also motivates me to get a new screen for my 2nd device. I guess i will go with the one @StarGeneral shared.
    In the near future i will also sharea new twrp compiled within an android-9.0 environment as already mentioned here: https://forum.xda-developers.com/showpost.php?p=79892993&postcount=3
    Right now i am stuck on the decryption but i am pretty optimistic that we can get this work, apart from this it seems to work fine. If anyone wants to look at the minimal tree, here it is: https://github.com/z3c-pie/twrp_device_sony_z3c

    However i can tell that there won't be any updates within the next two weeks because i am going on holidays finally :)

    Have a nice time
    13
    Short update about Android 10/LineageOS 17 for Xperia Z3 Compact: Bluetooth and the camera after a reboot has been fixed. I will go through a checklist tomorrow and see about remaining problems, it seems pretty good already so I guess that I can share another build tomorrow.
    Good night!
    11
    TWRP 3.3.1 for our z3c out of an Android 9.0 environment!

    Changes:
    Code:
    3.3.1-0.4-z3c
    * Fixed fastboot boot
    * Added bootlogo
    * Dropped TWRP App

    Code:
    3.3.1-0.3-z3c
    * Fixed encryption when security patch level doesn't match the recovery's
     - [url]https://github.com/z3c-pie/twrp_device_sony_z3c/commit/411862532c247aea2c7b48d52aa596b40305e9ea[/url]

    Code:
    3.3.1-0.2-z3c
    * Added a script to handle the CPU
     -> increased the battery life significant ([url]https://github.com/z3c-pie/twrp_device_sony_z3c/commit/63f864068ad2f17ae2f1202b4edc311d74e2803d[/url])

    Code:
    3.3.1-0.1-z3c
    * Fixed time
    * Further Clean up's

    Code:
    3.3.1-0-z3c
    * Switched from Android 6.0 to Android 9.0 environment
    * Completely reworked tree
    * Working decryption


    The latest build is attached to this post.
    Old builds are available here: https://sourceforge.net/projects/ephedraceae/files/z3c/twrp/
    Source is available at: https://github.com/z3c-pie/twrp_device_sony_z3c/tree/android-9.0

    How to install this build:
    • Rename the downloaded twrp image to twrp.img
    • Reboot to fastboot by holding volume up while connecting your device to your computer
    • Open a terminal and move to the directory with TWRP in it
    • Type
      Code:
      fastboot flash recovery twrp.img
    • Boot into TWRP while the device is powered off press the power and volume down button

    Feel free to ask questions or give feedback about TWRP here .

    Have a nice day!

    Additional information about the recovery on this device:
    First of all we should make the basics clear: On our Z3 Compact we have got a bootloader update which can boot a recovery from powered off state by pressing volume down and the power button. Because we haven't ever had this updated bootloader and not all sony devices received the update, there have been some intelligent people who brought a special init binary which can handle recovery boots during a normal boot. This means when using advanced reboot from the ROM or pressing a volume key while the sony logo appears at boot. https://github.com/LineageOS/android_device_sony_common/commits/lineage-16.0

    To make this work there is this method to extract the ramdisk: https://github.com/LineageOS/androi...eage-16.0/extract_ramdisk/extract_ramdisk.cpp which uses zlib to decompress it. So far so good, zlib can decompress the default compression for recovery ramdisk which is gzip. However LZMA is more effective to reduce the size so we took it's advantage: https://github.com/omnirom/android_...mmit/885b01223a460d3f2500155ea415bdc8573679bc in order to fit recoverys compiled from recent environments (android-9.0 in my case) into our small FOTAKernel partition.

    According to this change the init_sony can't handle the recovery boot anymore because it can't decompress the recovery's ramdisk so nailyk and Diewi (as far as i know) added support to decompress LZMA compressed ramdisk's with this chain: https://github.com/sonyxperiadev/device-sony-common-init/pull/20/commits
    However these commits have never been merged into the LineageOS/android_device_sony_common nor the sonyxperiadev/device-sony-common-init. Since your ROM, CarbonROM, is using a fork of LineageOS/android_device_sony_common is missing these commits the recovery boot fails with a kernel panic, like this: https://del.dog/egawososux.htm

    So you can either use a recovery which doesn't compress the ramdisk with LZMA (for example the one from here: https://forum.xda-developers.com/z3-compact/development/recovery-twrp-3-2-3-0-aries-t3837192 or ask your ROM developer to pick the according commits into the sony_common tree/use my fork of LineageOS's one https://github.com/z3c-pie/android_...mits/fa85dfcc07f42d73f9a1abf1f4c82d8bf0486a93 which would enable you to use recent TWRP builds with a LZMA compressed ramdisk.

    I hope i presented it clearly and in the right way,
    Have a nice day!

    EDIT: Minimized patch for LZMA is available here: https://review.lineageos.org/c/LineageOS/android_device_sony_common/+/252923