yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] Lannig:
Hi folks,

I've put my hands on an abandoned Z1C so I've decided to give it a new life with a more modern Android. Looking for stability so I've decided over this one. Installation with Gapps went all smoothly, but I have a mobile data issue: LTE is just not stable at all. I lose signal as soon as there's some traffic going on (browsing web or such). Then operator signal comes back but without data. No way to fix without a reboot. Forcing 3G mode seems to avoid the issue but I'd hate to give up on 4G altogether...

Is this a known issue with this build? I've failed to find anything related. Could it be linked to the stock firmware that was previously used? (leftover modem or such). I've tried quite a few foreign ones (I'm in France) before switching to LineageOS.

Thanks for any hint. I like this build and would like to stick to it.
[Xperia Z1 Compact Android Development] lm089:
No problems with the March build of this ROM from my side. I last was on O2 Germany (meanwhile got me an oneplus 6 for daily usage, and no 2nd SIM).

You shouldn't have probs with leftover stock software if you thoroughly formatted the entire device before installing Lineage
[Xperia Z1 Compact Android Development] MSe1969:
No issues on my side either... So currently no idea.
[Xperia Z1 Compact Android Development] MSe1969:
New release available with July ASB patches

Hi all,

new releases having the July ASB patches incorporated and also updated webviews are available for download:

A. Standard flavor

https://www.androidfilehost.com/?fid=6006931924117909508

B. microG flavor

https://www.androidfilehost.com/?fid=6006931924117909507

Regards, M.
[Xperia Z1 Compact Android Development] andmate:
Hi there,-

first, really thank you guys for your effort! It's really great what you're doing here and without your work I wouldn't be able to keep my good old z1c at life. thank you!!

I just installed the latest July-release and what I've seen so far, everything is working as expected. :+1

There's just one small issue: When an app is open or when I am on homescreen #1, I'm not able to pull down the status bar (notification bar). I have to go to homescreen #2 or #3, and only there I can pull down the status bar.

Until now I couldn't figure out if this is just a hidden setting anywhere that I have to change or if it's intentionally not working.

I also heard of some "workaround" where one has to boot to safe-mode, switch to guest account and back to owner account again. But this is not working for me.

Are you aware of this? Is it a known issue?

Thanks in advance! ... looking forward to reading from you! ;)
[Xperia Z1 Compact Android Development] lm089:
What's your launcher? At first sight looks as if the source could be there, but I may be wrong.

I never had that issue, neither with LOS 5.1 nor with 16.0, which I'm using now. And neither with LOS's default Trebuchet nor with SmartLauncher (which is my standard launcher).
[Xperia Z1 Compact Android Development] andmate:
Hi, I guess it's the default Trebuchet; at least I didn't change anything. It's also getting weirder and weirder. Since a few hours the status-bar-pull-down is not working at all. So, from nowhere. Seems anything is completely broken on my setup or my device. I will try to find out what's happening here and I'll let you know when I found something - ... and I will give the SmartLauncher a try ... :)
[Xperia Z1 Compact Android Development] lm089:
Try any launcher you like, Smartlauncher in my eyes is cool, but the interface is very different from others. See for yourself.

On the other hand trebuchet should be fine as well, mentioning launchers was just a vague idea. Have you tried restarting, and/or deleting cache / dalvik from Twrp?
[Xperia Z1 Compact Android Development] andmate:
Yes, I already rebooted several times and also deleted the dalvik in twrp. -> unfortunately no change. pull down the notification bar still not possible.

Then, I installed Nova Launcher. Same behavior, but at least I could configure it to access the notifications by pressing the home button. (helped a lot to connect via USB to my PC)

Now I installed LOS 16.0 (https://xdaforums.com/sony-xperia-z...om-lineage-os-16-0-xperia-z1-compact-t3886233), unfortunately the behavior is similar. At least I can pull down the notifications on any home screen; still not while an app is active. :(

Anyway, I will give it a try ...

As (it seems) I am the only one with this problem, mostlikely it's an issue with my device...

I'll keep my eyes and ears open if anyone else is also facing this kind of problem, but for the moment, I'll stay at the 16.0; maybe I'll give the AICP-p9.0 a try ...

Anyway, thanks for your support & have a nice evening! :)
[Xperia Z1 Compact Android Development] jho55:
After updating to the July build, the Android System WebView still shows version 74.0.3729.157 instead of 75.

By the way, I have a 2nd z1c phone here and the battery drain is 0,3% per hour. Ok, not a real life scenario because everything is deactivated like mobile data, but I think it is quite impressive. It can lay around for over 10 days until I need to recharge it again.
[Xperia Z1 Compact Android Development] MSe1969:
Thanks for letting me know, can others confirm?

Don't have time now to verify by backing up/reflashing, as I use the microG build.

If confirmed, sorry about that - could have been that something went wrong when switching branches and cherry-picking, as I did some stuff in parallel.

As there is no sec. issue with M74 webview, I will then only update the change log.

Yes, quite impressive (my device having 15.1 needs soon a battery replacement, but indeed, I find the battery behavior also OK)

Regards, M.
[Xperia Z1 Compact Android Development] esemef:
I installed the standard flavor and App Info for Android System WebView shows 74.0.3729.157
[Xperia Z1 Compact Android Development] MSe1969:
OK, thanks - updated the "Change Log" post accordingly - will then be provided next month
[Xperia Z1 Compact Android Development] MSe1969:
OTA Updates

Announcement:

We are planning to provide the OTA updates feature starting with the next (August) release, so you would need to manually flash the last time a new release and afterwards, you can receive OTA updates from within the ROM.

One necessary step to be able to use OTA updates from within the ROM is to update the TWRP recovery by installing TWRP 3.2.3-1 for amami. You can do that already now, if you like.

IMPORTANT: BEFORE UPDATING TWRP, MAKE A 'NANDROID' BACKUP IN TWRP! -

It may happen, that the first TWRP launch after updating TWRP will perform a factory reset.

Will keep you posted.

Regards, M.
[Xperia Z1 Compact Android Development] MSe1969:
Interim Test build

Following the previous post announcing OTA updates in the next release, I have created a test build of the "standard" build flavor.

As I had to upload it in order to be able to test the OTA functionality, I just thought of making it available.

There is no immediate need to download it (

i.e. NO urgent fixes

), it has in fact the below two differences only, compared to the standard build flavor linked in the OP and earlier announced:

The System Webview is now on M75

The Updater is now available, but it will show you right now, that there are no updates, as this obviously is right now the latest version (you could however take advantage of the updater already, when the next release is published)

Regards, M.

P.S.: Thanks to [MENTION=8036586]115ek[/MENTION] for getting the information on how to do this
[Xperia Z1 Compact Android Development] esemef:
Is it definitely standard? The url and the page both say lin15-microG, which makes me question it...
[Xperia Z1 Compact Android Development] MSe1969:
Yes. The

name of the file

indicates the build flavor. The URL shows the project, which I had to create, and same as my Github org, I called it 'lin15-microG'.

I could also have called the project "Goofy", if I had in the mood to (assuming nobody else would not have used that name already), then the URL would contain the string "Goofy".
[Xperia Z1 Compact Android Development] esemef:
What will happen if new builds are installed but TWRP hasn't been updated? Will the OTA update just not work, or will it cause issues?
[Xperia Z1 Compact Android Development] MSe1969:
OTA update will just not work, I assume. (Haven't tested)

Nobody is forced to do OTA updates, you can always continue to manually flash, but if you decide to use OTA updates, you should update TWRP, and if you update TWRP, make a backup first!
[Xperia Z1 Compact Android Development] esemef:
Does upgrading TWRP to this new version always wipe the phone? I have encryption enabled, does that need to be redone if the phone is wiped? I have a vague feeling it needed to be enabled on an older version of lineage and then upgraded, is that still the case? Sorry for all the questions :D
[Xperia Z1 Compact Android Development] MSe1969:
Normally, TWRP can be upgraded w/o any impact.

However, in this specific case, where a Mount point was added, and with the Z1c device, it did perform a factory reset on both of my Z1c devices, both encrypted using a cm-14.1 build, one having cm 12.1, one Lineage 15.1. Afterwards, all perfectly fine. "Only" factory reset, encryption was left intact.
[Xperia Z1 Compact Android Development] filas312:
There's a massive problem with Bluetooth coexistence for me - WiFi won't run together with BT... Help? I'm open to getting proper logs to debug the issue, since it bugs me pretty much whether this feature will work or not, since I've been experiencing the same ridiculous behaviour on previous 7.1.2 ROM and it's been ruining my days since then.

Please let me know whether I can provide anything of value to get this closed...
[Xperia Z1 Compact Android Development] 115ek:
There's a massive problem with missing information for us. ;)

You can find a Bug reports section in the first post. Please share as many information as possible.

What build are you using?

Was it a clean flash?

Is magisk/exposed installed?

What apps are you using?

How to reproduce your problem?

Edit: getting a log
[Xperia Z1 Compact Android Development] filas312:
Will try to follow up with anything that is worth sharing to debug the issue - don't worry, I'm not expecting you'll fix it without any info, just interested whether it happens for anyone else.

What build are you using? Compilation lineage_amami-userdebug 8.1.0 OPM7.181205.001 d53debbead dev-keys

Was it a clean flash? Yes, after wiping system, cache, dalvik cache & data

Is magisk/exposed installed? Magisk is installed, Xposed is not

What apps are you using? anything which uses WiFi, especially noticeable in video calls

How to reproduce your problem? Use WiFi (possibly only with 2.4GHz?) + BT A2DP/HSP profile at the same time, the WiFi will seemingly stay connected, but connections will get broken at moments. Might not be easily reproducible? Try making video calls while using a headset on BT and see whether it makes video hang. Also, web browsers also are affected by the same problems at times.
[Xperia Z1 Compact Android Development] 115ek:
I had no problems with that so far. Playing music from newpipe (wifi) with a bluetooth speaker worked for me.
[Xperia Z1 Compact Android Development] seeayesix:
I just installed Standard LineageOS 15.1 on my old Z1c, which had a locked bootloader and was unrooted.

I had problems getting the drivers to work in Win10, but installing flashtool 0.9.2.26.0 and the driver package finally got my computer to connect to the phone.

I could never install TWRP to the FOTAkernel, and had to go with 'recovery' instead. Phone wouldn't go into TWRP for a few times, just showed a lit up, black screen. Not really sure why but in the end I got into TWRP and from there everything was straightforward. I won't really use this phone, but it's good as a backup if needed :)
[Xperia Z1 Compact Android Development] 115ek:
I can't promise anything as I'm currently on 16.0 and there are more important issues for me.

However, I've got a second z1c for testing purposes. It's no problem to set up your configuration and at least check if it's a general problem.

May you share your detailed setup? Do you use gapps?

What apps in detail are you using and what did you do to force the problem?
[Xperia Z1 Compact Android Development] filas312:
Don't sweat it, I'm just interested whether it repeats to anyone else in some circumstances or not, it's not that important, since it seems to fix itself at times, just it's a tad annoying - but anyways 15.1 works much better than the old ROM I was using, so I'm still glad :) Great that You're still doing this!

Currently I'm using micro gapps. The issue is a general WiFi malfunction - sometimes ending up with disconnecting, at other times the Internet just "doesn't load" - as far as I can guess from my (limited, obviously) knowledge, it is possibly a PHY (layer 1) issue, since I don't have a malfunctioning network if I don't add Bluetooth into mix - it just started occuring after I got a first real bluetooth headset.

The problem is just occuring on it's own - it manifests itself when I'm using WiFi + BT at once, it occurs both on phone calls (SCO mode, synchronous BT) and during video calls with Duo or similar apps (and they might actually also work with SCO, I'm not sure) - it may boil down to problems in Bluetooth stack implementation or some firmware-specific issue.

To check, just disable mobile data connection and enable WiFi (while running on 2.4GHz WiFi - did not check on 5GHz), try using the internet while talking with someone, using a bluetooth headset at the same time. Possibly, it might just sort itself out after a bunch of minutes and some failed attempts after failing to coexist, the devices will sync themselves and work together. It leads to, for instance, Duo video calls getting suspended and/or disconnecting altogether, also happened on Facebook's Messenger on video calls (as I mentioned before). It either causes the device to entirely abandon the connection, or at least degrades WiFi quality up to the point where the video is killed altogether. It also caused missed/aborted file transfers on AirDroid and a general loss of connectivity. It's an interesting issue, actually.

Supposedly, if you do some searching, it might end up being an issue in wcn36xx driver due to some wrongly-tuned Bluetooth coexistence-related parameters. Yet, I cannot assure you that the issue is easily triggered and in case you end up deciding that didn't end up happening, just note the progress and I'll just get a 5GHz AP and be done with it.

Take care and tell me if you need anything else.

Additionally, I've found an interesting commit related to (supposedly used here) wcn36xx driver, which is linked here https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/wireless/ath/wcn36xx?h=v5.3-rc2&id=4119b6160a35693655199f3e9e4a4d7b154a75b0. I could try modifying the kernel sources with the above (it seems easy to apply) fix and checking whether a rebuilt kernel works properly, but I just can't get myself to sit down and learn how to build kernel for this, since it's quite complicated in relation to compiling a typical kernel.

EDIT: I can see we're using the wcnss driver, is that correct?
[Xperia Z1 Compact Android Development] 115ek:
Hey. I haven't got much time now but just some quick info:

I haven't seen drivers/net/wireless/ath/wcn36xx/smd.c after a quick look.

Building the kernel isn't hard. You just need a decent internet connection for downloading the sources.

If you're interested in building (the kernel/bootimage) yourself have a look at https://github.com/115ek/manifest. Instead of

brunch amami

which builds the whole system and needs about 90 min for me, you can use

lunch

and select amami afterwards. Then build the actual boot.img with

mka bootimage

or

make bootimage

which should be very much faster. You'll find the image under out/target/product/amami/boot.img. Just flash this with

fastboot flash boot boot.img

.

I think downloading all the sources is the easiest way.

A more detailed answer is going to follow in some days.
[Xperia Z1 Compact Android Development] filas312:
Okay, thank you! I'll see into wcnss (becuase that is supposedly what is used instead of wcn36xx) things and try to patch something up, maybe from other snapdragon-related devices. I'll also see whether it was a WiFi config issue on my side, as I have some thoughts about that and it might be it.
[Xperia Z1 Compact Android Development] MSe1969:
August builds available

Hi,

new builds are available for download:

A. Standard flavor

https://www.androidfilehost.com/?fid=6006931924117934946

B. microG flavor

https://www.androidfilehost.com/?fid=6006931924117934945

ASB August 2019, security string 2019-08-05

Webviews on M76 (both, standard flavor and microG flavor with Bromite)

OTA Support (see below)

microG flavor only: Aurorastore 3.0.9 with AuroraServices install method (see below)

OTA support

These builds' updates bring back the LineageOS Updater app. Any further updates of these builds will appear in the updater app and you can download them within your phone, i.e. no need to manually flash. You can also jump to this build's changelog from there.

Please note:

One necessary step to be able to use OTA updates from within the ROM is to update the TWRP recovery by installing TWRP 3.2.3-1 for amami.

IMPORTANT:

BEFORE UPDATING TWRP, MAKE A 'NANDROID' BACKUP IN TWRP! - The first TWRP launch after updating TWRP will most probably perform a factory reset! (Afterwards, all will work fine)

Of course, you are free to continue to flash the build manually as before, it is an additional option.

You still have to flash this update manually, as before, otherwise you won't find the Updater (Settings - System - about phone - LineageOS Updates)

The updater will propose newer builds, it will obviously not propose this update, so "no new updates found" is the expected result, if you call the updater after flashing.

AuroraStore update (microG flavor only)

Aurorastore in version 3.0.9 now brings a new app installation method called "AuroraServices". Please perform the following steps after updating:

- Launch the "AuroraServices" app, which you'll find in the app overview and grant the storage permission, afterwards, you may close the app

- Launch AuroraStore, go to Settings - Installations - Installation method and choose "AuroraServices"

Happy flashing!

Regards, M.
[Xperia Z1 Compact Android Development] JPT223:
Hi

I just successfully installed LOS-15. I would like to give a few comments on the installation instructions:

Please mention that you need a MicroUSB-Cable. Took me a while to find out the magnet cable is for charging only. o.O

This instruction contradicts itself. 8-)

This did not work for me.

I installed the linked 14-microG on top of latest stock. Then I booted into it until I could encrypt data. TWRP wasn't able to access data any more. This was before I installed 15-non-microG.

btw what about F2FS for the data partition? Does it work?

Thank you very much for this secure and stable build! Best LOS I ever had ;)

JPT
[Xperia Z1 Compact Android Development] MSe1969:
Thanks for the feedback, which is always appreciated.

Regarding the cable, I think it should be obvious that you need a data connection from your PC to the phone, the OP also explains, that you should verify, that adb and fastboot are working before flashing etc.

Gapps: There are two build variants, the standard one and the microG one. And whilst you can think about Gapps for the standard one, this is a No-Go for the microG variant. I will however add a phrase like "For the standard variant, the following applies:" after the "Don't flash Gapps on microG variant."

Encryption: What do you mean with "on top of latest stock"? The OP explains you need to wipe when you come from stock and that you even have to format the data partition and repeat encryption with the cm-14.1 build. You indicated however, that you managed to get your device into a satisfactory state. What exactly did you do?
[Xperia Z1 Compact Android Development] JPT223:
Well, yes. but it was less obvious that the magnetic cable doesn't have a data connection ;)

Sure I did a wipe. I just wanted to tell that I had stock firmware installed before I installed LOS-14. -- For some devices it's necessary to install latest stock first because of some drivers that go to other partitions (well, did not understand that exactly)

btw, I had massive problems on a different phone with the DATA partition and realized it's because of the QUOTA feature of EXT4.

I think Android 9 Pie installs with QUOTA feature and recent TWRP (3.3) or PBRP (2.9) cannot deal with quota, and thus cannot mount DATA. (and when they cannot mount data they miserably fail with everything, even wiping & formatting)

you can verify this by booting into recovery, attach via ADB SHELL. Then just try a manual fsck, mount, tunefs - or similar - on the data partition. they will tell you, the FS has got the QUOTA feature but the kernel doesn't support it.

Maybe this is your problem with DATA too? or maybe you can find out the cause this way?
[Xperia Z1 Compact Android Development] MSe1969:
I am on vacation now, no possibility to do ADB stuff... Will get back on this topic, but situation is as follows:

Encrypted using cm-12.1 = works perfectly in cm-12.1, but a cm-14.1 or lineage-15.1 ROM can't decrypt, TWRP however can

Encrypted using cm-14.1 = works fine with cm-12.1, cm-14.1 and lineage-15.1, including TWRP

Encrypted with lineage-15.1 = works fine in lineage-15.1, but neither cm-12.1, cm-14.1 nor TWRP can handle.
[Xperia Z1 Compact Android Development] JPT223:
If my input does not help with fixing anything then please ignore.

Enjoy your holidays instead ;)
[Xperia Z1 Compact Android Development] 115ek:
That's not the case anymore. Thanks to [MENTION=8746471]NeoArian[/MENTION] we're now able to decrypt oreo (15.1) and pie (16.0) /data partitions in TWRP.

I just tested 16.0. However 15.1 encrypted devices should work as well. Find the TWRP here

A separate thread is planned therefore in the future, but there is a small thing I want to sort out first (a dirty fix I'd like to get rid of).

Would be nice if someone can test this on a LOS 15.1 encrypted device.

One more thing: I recommend using a current encryption. Older methods tend to be weaker.
[Xperia Z1 Compact Android Development] Hackmann:
As i understand it, GApps, in all its variants (pico, nano, micro, mini, etc), and MicroG are something entirely different. I'm not sure which i would call the "standard" one, they are simply two different options and i would be quite happy if other maintainers would offer the option with a "security hardened MicroG".

I've updated to this version a few weeks ago from within TWRP and then flashed the August build. No factory reset and no other issues so far.
[Xperia Z1 Compact Android Development] MSe1969:
I call the one "standard", because it corresponds to the scope of "official" LineageOS builds. On that one, you can (but don't have to) flash GApps, whatever flavor you like (pico, nano, bloated, fully bloated, or contaminated :) ) - the other one with MicroG is more "special", but I fully agree with you that it would be desirable, if this became more common.

Good to know, thanks - this happened to me however on both of my Z1c devices, so I thought to better raise a clear warning.
[Xperia Z1 Compact Android Development] Hackmann:
I can record 4k videos (not that i really need it), but when i use OpenCamera the Camera2 API seems to be missing. Is this normal?

I've read several threads about porting the original Sony noise reducing algorithms and other features, but they seem to be outdated. How much of those features have been incorporated in this build? Does it still makes sense to apply some of those mods on top of it and which one would be recommended for this build?