yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Original Android Development] NeoArian:
[IMG="LineageOS"]https://i.imgur.com/0aSPzXe.png[/IMG]

[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

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

Security

Longevity

Installation instructions

Prerequisites:

Unlocked Sony Xperia Z3 Compact

Fastboot drivers to install TWRP

Micro-USB Cable to connect your phone to your computer

Install:

Reboot to TWRP. *

Wipe cache, dalvik cache, data and system.

Install ROM.

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

[MENTION=5688409]koron393[/MENTION]

[MENTION=6425591]SpiritCroc[/MENTION]

[MENTION=3816568]Myself5[/MENTION]

[MENTION=6979267]nailyk[/MENTION]

[MENTION=5258151]drakonizer[/MENTION]

[MENTION=5621191]rcstar6696[/MENTION]

[MENTION=4675360]tomascus[/MENTION]

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
[Xperia Z3 Compact Original Android Development] NeoArian:
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

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

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:
[Xperia Z3 Compact Original Android Development] NeoArian:
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!
[Xperia Z3 Compact Original Android Development] hhpl:
I will try, thx :>

but there are no opengapps for 10,

what about this? will be good?

https://www.cyanogenmods.org/download-gapps-for-android-10/
[Xperia Z3 Compact Original Android Development] hhpl:
hah ok now I don`t know anything... ;/

still same problem with this freakin camera and torch exactly like in v16

all my steps:

1.

flashtool64 -> Stock Android 6.0.1 for D5803 - 23.5.A.1.291 - Unbranded - Baltic Generic (1288-5413)

https://xdaforums.com/z3-compact/general/list-stock-firmwares-d5803-d5833-t2906706

2.

TWRP for 6.01 - with this https://xdaforums.com/z3-compact/general/recovery-root-mm-575-lb-t3418714

Kernel .575 -> recovery for mm575 ->kernel .291

3.

installation of yours TWRP - twrp-3.3.1-A10.0-z3c

4. in twrp 3.3.1 wipe cache, dalvik cache, data and system, rom installation

5. camera and torch doesn`t working ;/ "camera keeps stopping" and torch is greyed out
[Xperia Z3 Compact Original Android Development] Xostl:
NIce, thank you
[Xperia Z3 Compact Original Android Development] NeoArian:
I don't understand what you are doing after you flashed stock. Can you also format data within my twrp? I have recognised that the /data partition size has been set wrong in most older TWRP's.

There are GApps: https://sourceforge.net/projects/opengapps/files/arm/beta/20190928/
[Xperia Z3 Compact Original Android Development] hhpl:
ok I had something in my head that I needed first this marshmallow recovery... I don`t know why :)

but now I flashed once again 291 and then yours twrp and wiped all the stuff ofc included data and still torch and camera doesn`t work ;/
[Xperia Z3 Compact Original Android Development] NeoArian:
Format is not wipe. Make sure that twrp asks you to confirm by typing yes.
[Xperia Z3 Compact Original Android Development] hhpl:
ok done, once again nothing new, still same situation
[Xperia Z3 Compact Original Android Development] LyaKich:
Can this ROM be installed on top of LineageOS 16 without wape?
[Xperia Z3 Compact Original Android Development] marcogiannetta:
Camera and Bluetooth are fine.

Flashing the only gapps for Android 10 I found made the navbar buttons not to work.

I guess we should wait for better gapps build.

Great anyway, thanks
[Xperia Z3 Compact Original Android Development] NeoArian:
Are you talking about the GApps I posted a few posts back? https://sourceforge.net/projects/opengapps/files/arm/beta/20190928/ If I remember correctly I didn't have problems while I tested them...
[Xperia Z3 Compact Original Android Development] marcogiannetta:
No, I found a beta version on Google.

Gotta check again with the one you provided, I'll edit this post in a while

Edit: buttons don't work again
[Xperia Z3 Compact Original Android Development] hhpl:
wow, so what I`m doing wrong... could you tell me how you install this rom step by step and what rom you had before? steps before installation and steps after or something, I have installed this rom 10 times and never got my camera work, that is crazy :eek:
[Xperia Z3 Compact Original Android Development] marcogiannetta:
The same basic steps you'll find in the OP
[Xperia Z3 Compact Original Android Development] Barciej33:
I've experienced the same issue after installing gapps - only back button works. Gesture navigation is working fine.

Other bugs I've noticed:

-battery icon style cannot be changed

-launching camera app with hardware button doesn't work

-system accent color cannot be changed (there is only one option listed)
[Xperia Z3 Compact Original Android Development] koron393:
You must read 1st to 3rd post.

LOS17 is just getting started.
[Xperia Z3 Compact Original Android Development] JamesMars:
[MENTION=8746471]NeoArian[/MENTION] Any chance for a screen recording of how it runs?
[Xperia Z3 Compact Original Android Development] NeoArian:
No? If you are interested you can test it yourself.

I have my holidays now anyway.
[Xperia Z3 Compact Original Android Development] NeoArian:
You are not using my twrp. Since there was another device released with codename aries we decided to rebrand z3 compact(aries) to z3c.
[Xperia Z3 Compact Original Android Development] Laus_bub:
Hm, think I do. I downloaded the TWRP from Post 2 and even flashed the first version with that. I even downloaded yeasterday your updated recovery from your page and flashed this one from inside TWRP als image - do I have to flash TWRP via PC adb?

Ok, I reflashed TWRP via adb and flashing works now ... Thanks!
[Xperia Z3 Compact Original Android Development] Myself5:
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...
[Xperia Z3 Compact Original Android Development] Hooin Kyoma:
[MENTION=8746471]NeoArian[/MENTION] changelog for 20200207 and 20200209?
[Xperia Z3 Compact Original Android Development] Azmipemha:
[IMG="bug"]https://xdaforums.com/picture.php?albumid=16045&pictureid=60005[/IMG]

Bug in play video with whatsapp and facebook. This can't play.
[Xperia Z3 Compact Original Android Development] henry2344:
my z3c(D5833) cant use NFC in this version QQ
[Xperia Z3 Compact Original Android Development] NeoArian:
Good evening!

I have built a new build of LineageOS 17.1.

DOWNLOAD

I would be happy about some specific testing.

First major change is: I have switched to the prebuilt Audio HAL from the stock ROM. I am tired of trying to imitate the behavior of it in the open source HAL. There could be some new issues (but should not), if you find something weird about audio please share your findings.

Second major change is: I have switched to stock RIL and Qualcomm framework stack. Previously we were using the Sony open devices libs for RIL and Qualcomm framework. With one work around the stock RIL seems to work okay. Could you please report back about signal strength and other possible problems about RIL (mobile data, SMS, phone calls). Please also write if you don't feel any improvement here, then we can stay with the Sony open devices libs.

Apart from that, there are some more changes.

For example some kernel fixes, support for the camera button, Glove mode support, fix for thermal HAL and enabled call recording for everyone(Use call recording on your own risk!).

Happy flashing!
[Xperia Z3 Compact Original Android Development] Gelindo67:
Hi NeoArian, you can create a build of LineageOS 17.1. with the Gcam installable or installed?
[Xperia Z3 Compact Original Android Development] pawloland:
Well, I think he would do it, if only there was such possibility. Z3c doesn't have any gcam apk and would not receive any in future, because it doesn't support it at hardware level (please correct me if I am wrong).
[Xperia Z3 Compact Original Android Development] craftyguy:
You didn't ask for this testing, but encryption seems to be completely broken with this. After encrypting the device, the boot just hangs at the lineageOS loading animation (which keeps looping with no end in sight, waited 1hr and gave up). This happens after being prompted to enter the pin/passphrase (tried both). It seems like data is encrypted, I can boot TWRP and get prompted to decrypt it, and decryption is successful.
[Xperia Z3 Compact Original Android Development] NeoArian:
No, that's not possible. Google camera depend on the Camera HAL3 which we do not support.

Encryption works for me. Did you format data with my TWRP before? Did you set a password before encrypting?
[Xperia Z3 Compact Original Android Development] m0d:
Open devices was always riddled with bugs, in branch used and all

They were never using proper branches, so audio always had problems. and blobs mismatched etc.

As nothing worked properly on open devices,

It was just a publicity stunt to get more press.
[Xperia Z3 Compact Original Android Development] craftyguy:
Yes.

Yes.

My steps were:

1) format data, system, cache in TWRP

2) flash latest build (2-24-2020)

3) boot, set passphrase or pin

4) enable encryption

5) 'success', but lineageos boot is stuck
[Xperia Z3 Compact Original Android Development] caccamo88:
hi guys

someone using it for recording cycling activities? Basically would like to understand if sensors/features working correctly (proximity and barometer sensors, GPS, ANT+)

Regards
[Xperia Z3 Compact Original Android Development] Hooin Kyoma:
Did you actually format data (not just wipe)?
[Xperia Z3 Compact Original Android Development] thehead85:
About adding more 3G/LTE bands in the Z3c...

Hello there! I have a Z3c running Lineage OS 16.1 at the moment (planning to update it to 17.1) and I need to enable some 3G and LTE bands on it, the 3G 900Mhz and LTE 4 specificly for solving poor coverage issues, I saw a post right here in XDA (for some reason I can't post the link) and I want to know if it's possible to enable those bands in my phone using that tutorial, in the post they're claiming that it works in most of the Qualcomm enabled smartphones from that time, thank you very much for your attention!
[Xperia Z3 Compact Original Android Development] mister_r:
Being a new build, will OTA update be possible, or should this replace the previous version of 17.1 I have on my Z3C at the moment?

Thanks for your amazing dedication to this :D
[Xperia Z3 Compact Original Android Development] Hooin Kyoma:
build 20200223 - all fine

build 20200224 - either dirty or clean install - trying to dial some number/ussd - Mobile network not available, network is available actually - incoming calls/sms are working fine.
[Xperia Z3 Compact Original Android Development] NeoArian:
Thanks, I have also noticed that outgoing calls are broken. I will go back to the Sony Open Devices RIL stack, for that we don't need hacks so it's better anyway.
[Xperia Z3 Compact Original Android Development] mxperial:
build 20200224 - For me besides the outgoing calls, mobile data doesn't work in this last build as well, audio seems to be fine tho
[Xperia Z3 Compact Original Android Development] pogsee3:
Hi, I'm really sorry to bother with an issue that's probably not related to the ROM (though this defo doesn't happen on stock) I found that the SD card always says it's missing on boot. This is a real problem because it trips up Spotify every reboot, so it doesn't detect it and tries to redownload my playlists every time. I tried moving Spotify itself to the card and it didn't work. I read in other places online that this has been a problem forever across Lineage and it can't be solved. Is it true? I can't really use the phone if that's the case cause 16GB isn't enough for everything+spotify :( Thanks for the awesome work on supporting this device.

Edit : further research indicates this is just lineage so yeah.... I'm running 14.1 now, without this issue. It's because SD card is not mounting before first unlock (only with lock method) and I can't run a phone without a lock obviously :) Would be great to see this fixed at some point.
[Xperia Z3 Compact Original Android Development] john_matrix:
Hello NeoArian,

Seems that LineageOS team start to roll out OFFICIAL 17.1 releases for some devices.

Do you still plan to build LOS 17.1 for Z3C? and do you think it will be possible to update OFFICIAL 16 to OFFICIAL 17.1 without losing data?

Many thanks in advance!
[Xperia Z3 Compact Original Android Development] NeoArian:
Yes I plan to but currently my sister is using my z3c because her phone broke. Now she destroyed the touch screen partially already, we will see what remains from the phone when I get it back.

Migration from official 16.0 to official 17.1 will be possible.
[Xperia Z3 Compact Original Android Development] J0SH1X:
Nice work for the OTAS i was trying to bring them up on my device (g7 thinq) and found your thread and was able to make it work, gr8 work man
[Xperia Z3 Compact Original Android Development] J0SH1X:
i created a script to update the json file for latest builds , might be usefull to you

https://github.com/J0SH1X/Lineage-OTA/blob/master/gen_ota_json.sh
[Xperia Z3 Compact Original Android Development] Raphos:
Hi,

I just update to the last build using the last TWRP (no Wipe cache, dalvik cache, data and system).

The system is booting and I have to enter the pattern to unlock the phone.

After entering the pattern, the screen turn black like the phone will be unlocked and unfortunately the phone comes back to the screen where I have to swipe and enter the pattern.

No error that tells me the patter is wrong (and I know it's not wrong !)...

Did someone had this problem ??
[Xperia Z3 Compact Original Android Development] mister_r:
Hi all,

sad to report it seems that Google Maps is not keeping a lock on my position when navigating. It finds my position (slowly), but then any further movement is not recognised until restarting Maps.

Anyone else here using Google Maps navigation successfully in a car on their Z3C with this Rom? If so, which GApps package are you using? What are your GPS settings? (I currently am using Pico GApps and I have precise GPS with wifi and BT scanning switched on, and Maps has permission to access location always).
[Xperia Z3 Compact Original Android Development] gangbgr:
Hello all! Glad to see BIG news about this device! I still using this brilliance phone. I remember that my antutu scores on stock last android was 40k and here 60k, this is magestic. Can we expect LineAge 17 without any bugs? Thank you very much for supporting our device!
[Xperia Z3 Compact Original Android Development] Smndora:
What ram usage are you getting with this rom?
[Xperia Z3 Compact Original Android Development] koraymers:
here
[Xperia Z3 Compact Original Android Development] Smndora:
I thought the Z3 Compact has 2 GB of ram?
[Xperia Z3 Compact Original Android Development] gangbgr:
Im very tired of testing several ROMs with bugs or other inconvenience and I use stock more then year. But very suprised that android 10 here on our device. I just interested and look up for this.

though that RAM using on other SONY, but actual LineAge RAM using
[Xperia Z3 Compact Original Android Development] mister_r:
I am experiencing two remaining issues at this point in time (using latest 17.1 from this thread):

- GPS won't keep a lock. Tried many different settings after installing GApps Pico, but I just can't seem to get it to work reliably.

- Echo during calls (traditional calls). Telegram / Skype / Whatsapp calls are all fine. But just calling someone the old-fashioned way is not usable currently.

It seems that the Z5C guys are also experiencing a call-echo problem, which they may have found a fix for, but I am not sure that has any relevance for Z3C development?

https://xdaforums.com/z5-compact/development/rom-lineageos-17-1-z5c-suzuran-t4052973

Quote:
[Xperia Z3 Compact Original Android Development] koraymers:
i use z2 but shinano platform uses basicly same ram management i guess. when you switch to lineage os, u will probably have same percentage around %50 of ram using
[Xperia Z3 Compact Original Android Development] pawloland:
Sorry for assking about ETA, but is there any ETA? You wrote quoted post almost month ago. I hope you are good during pandemic.
[Xperia Z3 Compact Original Android Development] NeoArian:
No, sorry. My sister is still using the phone and I have got much other stuff including my final school exams in 2 weeks.
[Xperia Z3 Compact Original Android Development] pawloland:
Ok, then good luck!
[Xperia Z3 Compact Original Android Development] BigBrother84:
I flashed Los17 after wiping all partitions.

I experienced strange bug - when someone was calling, phone was ringing but nothing appeared... And second - after encryption system apps crashed and system became unusable

Wiped and Flashed once again and "calls issue" appeared

Decided to flash stock.

I used flashtool and xperifirm and finally got bootloop.

I'd be very grateful if someone help me.

Here is my thread (created it, to not spam here): https://xdaforums.com/z3-compact/help/how-to-to-stock-black-rear-camera-t4045215

Edit:

I got really fast help and rescued device using Emma. Now I'll test if everything is ok with calls (but don't want to check once again encryption).

Edit2:

Calls works properly :good: thank you for that great rom!
[Xperia Z3 Compact Original Android Development] minixperia:
In the last build 20200224 network connection not work
[Xperia Z3 Compact Original Android Development] mister_r:
So you can make and receive calls (via normal means, not whatsapp or telegram or skype etc) and they sound just right for you? No echo or any other issues? Without a headset / microphone?

I'd be interested to know about this, as I can't seem to get that sorted here.
[Xperia Z3 Compact Original Android Development] BigBrother84:
To be honest, it's not my phone, it's my dad's phone. He uses it as a daily driver. I need to ask him but I saw him talking with someone without any additional stuff.

I'll try to describe my previous problem precisely:

I came straight from LOS16 wiping all internal partitions.

Calls pop-up screen wasn't appearing when someone called.

So using flashtool I flashed stock firmware branded for my country (R4D) got bootloop and repair it using Emma. There was R12D firmware it flashed. After that did first config and flashed recovery I wiped mentioned in first post partitions and flashed LOS17. Everything is ok.

Edit: so I asked him and he said there is no echo.
[Xperia Z3 Compact Original Android Development] BigBrother84:
[MENTION=8746471]NeoArian[/MENTION]

Unfortunately I think I found bugs:

There is no cellular data connection. Tested in different places.

Of course I checked APN, restored them, create new. Reboot. Disconnected from vpn.

Sometimes when I try to run ussd code I got attached information.

It seems that it is software problem, cause on LOS16 It worked.

The problem is I haven't been trying to connect mobile data on stock, so cannot say anything about it. Maybe branding problem? For may country it was R4D Emma flashed R12D. Actually there were some more R options not only 12. May I try another one?

Second bug is really strange - in tutanota mail app writing emails is actually impossible - phone goes down on every keyboard type (I use Xperia keyboard with Sony Device Dummy). It happens only in this app :confused:

Shall I send logs?

I really appreciate your hard work and just want to help it become better and better :) Hope you'll go through your exams without any problems. Thank you one more time!

Edit: unfortunately I had to move to carbon...

There were too many bugs. I flashed stock and check if in Emmas R12D mobile data works and yes, it worked. So flashed carbon.

On my device Bugs after stock flashed were:

-No mobile data connection

-lost time after reboot until sync with time server

-really slow experience in tutanota mail app

-sometimes Sms and calls lost

I'm really sorry that I haven't created logcat that could be useful...
[Xperia Z3 Compact Original Android Development] NeoArian:
Good evening,

I'm uploading a new build to https://sourceforge.net/projects/ephedraceae/files/z3c/lineage-17.1/ (should be available within 5 minutes, sourceforge needs to mirror it)

Since it has been a while i don't have a changelog but there has been many changes in lineage and also some device related stuff like fixed some selinux denials about timekeep so that the time will not reset after reboots.

The problem with RIL (calls, mobile data) from the last build has been resolved.

This build is using the stock audio HAL.

Happy flashing!
[Xperia Z3 Compact Original Android Development] DaveyJC:
Thanks a lot! Can I flash/update it on top of 20200224 release? Great rom!
[Xperia Z3 Compact Original Android Development] pawloland:
That's great! Why did you revert back to sourceforge from osdn? Wasn't it super slow before?