[CLOSED][10] LineageOS 17.1 for z3c

Status
Not open for further replies.
Search This thread

L.Lmar

Member
Aug 4, 2016
41
17
MAC randomization work. ALWAYS. The current build force-enables it EVERY TIME.
This is weird because mine has permanent mac and I would like it to be random on public networks.
And no, 5GHz is not working in AP mode correctly...
I mean Wifi 802.11ac (link speed up to 433Mbps) for now it only handle N which is 200Mbps, and if router configured to 'AC only' wifi doesn't connect at all.
I did not have this issue on previous android versions
 

slyver.96

New member
Jul 28, 2020
1
0
Hi! I tryed to install the ROM but TWRP respond:
"E:String resource 'zip_compatible_err' not found.
using default value.
Zip Treble compatibily error !
Invalid zip file format !"
....
 
This is weird because mine has permanent mac and I would like it to be random on public networks.
I would really like this behavior. Maybe it has something to do that I have not wiped my phone before installing this update? Because sometimes - onyly sometimes - my lockscreen shortcuts are there. But they are officially removed from Android 10.

I mean Wifi 802.11ac (link speed up to 433Mbps) for now it only handle N which is 200Mbps, and if router configured to 'AC only' wifi doesn't connect at all.
I did not have this issue on previous android versions
2.4GHz and 5GHz (whatever band) works flawless for me. Only 5GHz hotspots are buggy...
 

NeoArian

Recognized Developer
Nov 25, 2017
1,325
3,089
Sony Xperia Z2
Sony Xperia Z3 Compact
Hi there!

I have built an update for z3c.
This build includes latest lineageos sources and a few device side fixes. It would be cool if you can specifically test GPS, audio and the time after a reboot.
At all this build should be release quality. Please report back if there are any further issues.
You can download it here: https://sourceforge.net/projects/ephedraceae/files/z3c/lineage-17.1/
If nothing goes wrong i plan to go official 17.1 within the next days.

Happy flashing!
 

tblr0ne

Member
Feb 28, 2019
25
9
Thank you for continuously providing LOS.

I have tested with a clean flash. GPS doesn't work. I had to manually copy back the same gps.conf and to reboot to get it work, which is somehow strange. The initially mounted gps_debug.conf seems to have no info for whatever reason.

And there's still this Bluetooth wakelock. No deep sleep after disabling BT.

Everything else works quite well for me!
 

allerd

Member
Apr 3, 2011
24
10
Big thank you for all your efforts! I did a clean flash without microg or gapps. GPS and audio worked for me. Reboot time from a running system are 38 seconds.
 

NeoArian

Recognized Developer
Nov 25, 2017
1,325
3,089
Sony Xperia Z2
Sony Xperia Z3 Compact
Thank you for continuously providing LOS.

I have tested with a clean flash. GPS doesn't work. I had to manually copy back the same gps.conf and to reboot to get it work, which is somehow strange. The initially mounted gps_debug.conf seems to have no info for whatever reason.

And there's still this Bluetooth wakelock. No deep sleep after disabling BT.

Everything else works quite well for me!
That's interesting. The gps_debug.conf should be exactly the same as gps.conf since we mount the GPS.conf over gps_debug.conf in order to get xtra servers again. Which config did you push to where exactly?
 

tblr0ne

Member
Feb 28, 2019
25
9
That's interesting. The gps_debug.conf should be exactly the same as gps.conf since we mount the GPS.conf over gps_debug.conf in order to get xtra servers again. Which config did you push to where exactly?

Just tested again to be sure, because of the curiosity.

Fresh install with gapps. -> No GPS (SatStat shows nothing -/- for minutes)
Reboot -> Nope
Copy out gps.conf from /etc and copy back in the same file to /etc overwriting it, reboot -> GPS is working immediately (SatStat 13/30, fixed under 30 seconds.)
 

NeoArian

Recognized Developer
Nov 25, 2017
1,325
3,089
Sony Xperia Z2
Sony Xperia Z3 Compact
Just tested again to be sure, because of the curiosity.

Fresh install with gapps. -> No GPS (SatStat shows nothing -/- for minutes)
Reboot -> Nope
Copy out gps.conf from /etc and copy back in the same file to /etc overwriting it, reboot -> GPS is working immediately (SatStat 13/30, fixed under 30 seconds.)
Could show me your modified gps.conf?
Also, could you please give the exact paths to the files you replace?
 

tblr0ne

Member
Feb 28, 2019
25
9
Could show me your modified gps.conf?
Also, could you please give the exact paths to the files you replace?

I did not modify it. Just overwrote it in its original place ( /system/etc/gps.conf ) with itself.
So the config values seem perfectly right, but they seem not to be used before the file is rewritten and the system restarted. It's strange.
 

Mr.Tom_Tom

Senior Member
Feb 16, 2008
184
242
Munich
I did not modify it. Just overwrote it in its original place ( /system/etc/gps.conf ) with itself.
So the config values seem perfectly right, but they seem not to be used before the file is rewritten and the system restarted. It's strange.

We are still trying to figure out what the issue might be here. Just to better understand what you have done: How did you replace it? How did you mount /system?
 

Mr.Tom_Tom

Senior Member
Feb 16, 2008
184
242
Munich
User feedback wanted!

Material Files is capable of writeable root access to the system partition. I used this to copy gps.conf to SD and back, overwriting it.
Thanks for your reply. Did you have an active SIM card in your phone during all tests, and was the phone connected to a base station, do you remember that?

To (all) users who want to help us with some GNSS (GPS) debugging: Could you please report if you have GPS working with Arian's latest build (10 Aug 2020)? Please report if you have an active SIM card in your phone. If it does not work with a GPS fix within 30 seconds max, plese try again with the phone in Airplane mode.

Update 20 Aug 2020:
I think we found a solution to make GPS work again with an active network connection - we will release updated builds for the Z3 and Z3c shortly.
 
Last edited:
  • Like
Reactions: martinsegura84

tblr0ne

Member
Feb 28, 2019
25
9
Thanks for your reply. Did you have an active SIM card in your phone during all tests, and was the phone connected to a base station, do you remember that?

To (all) users who want to help us with some GNSS (GPS) debugging: Could you please report if you have GPS working with Arian's latest build (10 Aug 2020)? Please report if you have an active SIM card in your phone. If it does not work with a GPS fix within 30 seconds max, plese try again with the phone in Airplane mode.

Yes, SIM has been active and connected. Just tested again, after a fresh installation it is not working with a connected SIM; BUT it is working in airplane mode!
After this "copy gps.conf out and back in followed by a reboot thing" both scenarios are working.
 
  • Like
Reactions: Mr.Tom_Tom

hubert-bangol

Member
Jul 3, 2007
28
4
Thank you so much for this great ROM!

Everything is working fine, except Bluetooth (seems like an A2DP problem).

Playing songs from my mobile works without any problems.
But my Car is not displaying song information (title,artist,etc).
The controlling of the car audio works well (play,pause,next,etc.)
Even the song length and the time is displaying correctly while playing a song.

Anyone else with those problems?

Thanks,
Michael

Same problem, I wrote a message last year about this problem: https://forum.xda-developers.com/showpost.php?p=79514484&postcount=1062
 

mrmartischmi

Member
Apr 30, 2010
44
1
Gießen

I checked other mobile phones in my car and they all worked perfect.
I also checked my phone in other cars (older and newer ones) and it worked as well without any problems.

Just in my car (Mitsubishi Outlander PHEV) it does not.
I already have my car audio updated to the newest firmware with no success.

At least I have to assume its not a problem of the ROM...
 
Last edited:

0LDST4R

Senior Member
May 2, 2018
310
224
LE/Germany
Thanks for your reply. Did you have an active SIM card in your phone during all tests, and was the phone connected to a base station, do you remember that?

To (all) users who want to help us with some GNSS (GPS) debugging: Could you please report if you have GPS working with Arian's latest build (10 Aug 2020)? Please report if you have an active SIM card in your phone. If it does not work with a GPS fix within 30 seconds max, plese try again with the phone in Airplane mode.

Update 20 Aug 2020:
I think we found a solution to make GPS work again with an active network connection - we will release updated builds for the Z3 and Z3c shortly.


Wooooohaaaaa!

Magisk 20.4
No mods in gps.conf
GApps pico
Sim inserted, mobile dara off, indoor

First fix took about 9 minutes, then it worked normally.

18.08. build

Sorry, just noticed it was my Z3, not the Z3C, but i think it makes no difference.
 

Attachments

  • Screenshot_20200821-205953_GPS_Locker.png
    Screenshot_20200821-205953_GPS_Locker.png
    108 KB · Views: 87
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    url]

    Code:
    [COLOR="Purple"]#include <std_disclaimer.h>[/COLOR]
    [COLOR="Navy"]/*
     * Your warranty is now void.
     *
     * 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.
     */[/COLOR]

    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 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. Install ROM.
    4. Install 10.0 Gapps for ARM. **
    * recommended TWRP: Post #2
    ** optional, opengapps

    Downloads
    Download the ROM

    Over the Air Updates
    To use OTA updates please read Post #2

    Sources
    DEVICE:
    https://github.com/LineageOS/android_device_sony_z3c
    https://github.com/LineageOS/android_device_sony_msm8974-common
    https://github.com/LineageOS/android_device_sony_shinano-common

    KERNEL:
    https://github.com/LineageOS/android_kernel_sony_msm8974

    Addons
    OpenGapps
    Magisk

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

    Bugs
    Current hardware support state: Gist
    WHAT'S BROKEN
    • You tell me.


    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.x
    ROM Firmware Required: 23.5.A.1.291
    Based On: AOSP

    Version Information
    Status: Beta

    Created 2019-10-02
    Last Updated 2020-01-04
    20
    OTA and TWRP recovery

    Over the Air Updates
    My upload script automatically pushed OTA updates to my GitHub.
    If you want to make them visible through the Updater you can flash the attached magisk module LineageOS-17.1_z3c-OTA-v1.zip or add the line
    Code:
    lineage.updater.uri=https://raw.githubusercontent.com/ArianK16a/OTA/lineage-17.1/z3c.json
    manually to your build.prop. You should use the recommended TWRP so that the updates flash fine.

    TWRP recovery

    TWRP 3.3.1 for our z3c with Android 10!
    The TWRP for Android 10 is attached to this post.
    Source is available at: https://github.com/z3c-pie/twrp_device_sony_z3c/tree/android-10.0

    Changelog for twrp-3.3.1-1-z3c-20191212-sar.img
    • Improved System as root support, /system is a symlink to /system_root/system now

    Changelog for twrp-3.3.1-1-A10.0-z3c.img
    • Added Bootlogo, booting from offline state will display the original sony logo now instead of nothing
    • Fixed fastboot boot
    • Updated kernel cmdline from 23.5.A.1.291

    How to install this build:
    • 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
    • Rename the downloaded image to twrp.img
    • 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
    14
    The new build is up!
    Get it from here: https://sourceforge.net/projects/ep...age-17.0-20191002-UNOFFICIAL-z3c.zip/download
    Make sure to use the new TWRP from Post #2 because Android 10 introduces System-as-Root which can lead to weird behaviour in the old TWRP.
    Note that there are not all features from LineageOS 16.0 ported over yet and there can be unexpected, yet unlisted bugs.

    MY personal hardware support list can be found here: https://gist.github.com/ArianK16a/1e46c463a5c910efb322d9cf0e16c3c0 but as always, i can't guarantee you anything!

    Happy flashing!
    12
    MOD EDIT: quote removed

    While I appreciate the advertisement, its absolutely disrespectful to Arian to advertise it in *this thread*. It's like going to Ferrari and showing all the customers that Lamborghini released a new car...
    11
    Hi there!

    I have built an update for z3c.
    This build includes latest lineageos sources and a few device side fixes. It would be cool if you can specifically test GPS, audio and the time after a reboot.
    At all this build should be release quality. Please report back if there are any further issues.
    You can download it here: https://sourceforge.net/projects/ephedraceae/files/z3c/lineage-17.1/
    If nothing goes wrong i plan to go official 17.1 within the next days.

    Happy flashing!