yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] lm089:
sorry, then no further idea. And I agree, the pic doesn't look like a dying battery; I swapped mine some weeks ago, so I know what it looks like when it's dying.

What you could try is switching off mobile data and wifi then see how long battery lasts. Then switch on wifi but not mobile data and observe again.

I'm having a similar (but nearly as dramatic) situation with an old xperia tablet z (wifi only). Just by lying around without being used really battery looses ~60% in 2-3 days.

Just for testing I now keep wifi off for the biggest part of the day, only switch it on for half an hour in the morning and another halt hour in the evening. Since I started that I lost 11% in 4d 17h (according to GSam)

I know, this is not what mobile devices are there for. But it helps me identify who is sucking battery power.

Good luck!
[Xperia Z1 Compact Android Development] underflash:
It is not even about lasting battery, but about terrible lagging. It is frustrating to wait for 3-4 minutes for Whatsapp to open or get 'not responding' messages every 10 minutes. It is obviously overloaded CPU problem. I have started using LTE a lot, maybe this a problem, but I have to, so there is no solution.
[Xperia Z1 Compact Android Development] MSe1969:
Hi all,

new builds with the July '22 ASB patches (Security String 2022-07-05) are available and offered already as OTA update through the Updater app:

A. Standard LineageOS 18.1 build

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20220713-UNOFFICIAL-signed-amami.zip/download

B. Pre-installed microG build variant with additional security patches

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20220712-UNOFFICIAL-microG-signed-amami.zip/download

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] lm089:
your post made me curious so I left my phone running all by itself (i.e. without any interaction) for nearly a day (22h to be exact). Here's the output from GSam:

(forget what it says on top regarding the 30 days, it's been 22h 20min really)

And no lagging at all etc.

Some app running in the background maybe? Probably helps to freeze anything that's not absolutely necessary then reboot and observe
[Xperia Z1 Compact Android Development] zyngfang:
I have two possibly related issues on a fresh install. The home and recent nav menu buttons (the circle and square) at the bottom of the screen don't seem to work. And I can't seem to exit out of the camera app. The back button (triangle) works fine.

lineage-18.1-20220713-UNOFFICIAL-signed-amami

open_gapps-arm-11.0-pico-20220215

twrp-3.4.0-1-amami

I've switched to using nav gestures, and that is a workaround for the nav button issue - I go home by swiping up and show recent by swiping up and holding. But if I disable gestures again, those two default buttons still don't work. I haven't tried installing a new launcher, and am using the default Trebuchet.

The default camera app seems to work great, but I can't exit the app. The system swipe gestures also won't work when the camera is open. I end up having to hold the power button to reboot the phone. Then everything works fine again as long as I don't open the camera. Also, I don't know how to configure the physical camera button on the Z1 Compact to work as a shutter button in the default camera. I haven't tried installing a new camera app.

So far, everything else seems to work well. Nice job getting LOS 18 on the Z1 Compact! Thanks.
[Xperia Z1 Compact Android Development] Dystinato:
If you swipe up right next to the round "take picture"-button, you will get the system bar from where you can exit.
[Xperia Z1 Compact Android Development] underflash:
I'm still struggling with heavy phone lags. It seems Magisk 25.2 (/system/bin/sh) is constantly using up to 10% CPU. I have tried flashing older versions 20.3 and 20.4 with no luck (Error 1). I need root to stream via AirMusic app.

Any solution?
[Xperia Z1 Compact Android Development] lm089:
interesting: swipe-up next to the "take picture" button doesn't do anything on my side. I don't have any problems getting out of the camera, though
[Xperia Z1 Compact Android Development] lm089:
my z1c isn't rooted so I can't tell. Have you tried in one of the magisk related forums / threads?
[Xperia Z1 Compact Android Development] underflash:
I could not find any solution regarding Magisk flashing Error 1. I just wanted to check if older Magisk is using less CPU, maybe it is just normal to use 10% and with newer devices is not noticeable.
[Xperia Z1 Compact Android Development] lm089:
Just checked on my old XPeria Tablet Z (about the same age as the Z1c but having an even lesser CPU). That one is rooted using Magisk 25.2. Just checked GSam Battery Monitor, and Magisk isn't even in the battery usage list since I last charged the tablet (7h ago). Checking Device Settings >> Apps >> Magisk App Info it says 0 min. background useage, 4 min. active, 1% battery since last full charge (which was 39 days ago as I stop charging at around 80%)

So: no, I don't think that 10% is normal here... Really strange

You could try to restrict background usage and/or choose battery optimization for a while then control whether that is making a difference
[Xperia Z1 Compact Android Development] underflash:
To check active processes I'm using Simple System Monitor. It works with root, so can't check CPU usage without Magisk. Catch 22.
[Xperia Z1 Compact Android Development] lm089:
If you are realy sure that your problem has to do with root access then you could try to temp disable that for all of your root apps then have an eye on battery usage. No other idea, I'm afraid
[Xperia Z1 Compact Android Development] underflash:
Battery usage is not a good indicator, at the end of the day I can hook phone to the power bank, but if it is not responding... there are moments I want to smash it... Testing now HEBF Optimizer with the best performance profile.
[Xperia Z1 Compact Android Development] Dystinato:
That's quite weird.. Swipe up like described is the only way I can exit the camera app, maybe I have poked some dubious setting somewhere because the system bar is hidden in the camera app. First time I launched the app after flashing the ROM, exiting the app again was my biggest issue until I figured it out.
[Xperia Z1 Compact Android Development] zyngfang:
Swiping up anywhere around the round camera button does not have any effect on my Z1 Compact. But I have discovered that if I take a photo and then view the photo in the gallery, then at that screen I am able to use the "recent apps" gesture swiping up from the bottom of the screen to show recent apps and from THAT screen I can now exit the camera by swiping it away.

But it seems possible to me that I somehow didn't get quite a clean install of this LOS 18.1. I had a couple problems with bootloaders and had to go to two different firmwares and use an older version of TWRP before updating to the new TWRP and this LOS before I finally got everything working. And now I realize I have a few other issues, so I'm putting camera troubleshooting on hold until I get the phone generally working. I'll post back here if I have more info or details to add about any other issues later. Right now, I assume my problems are somewhat unique and related to a slightly wonky install/firmware update process.
[Xperia Z1 Compact Android Development] MSe1969:
Hi all,

new builds with the August '22 ASB patches (Security String 2022-08-05) are available and offered already as OTA update through the Updater app:

A. Standard LineageOS 18.1 build

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20220806-UNOFFICIAL-signed-amami.zip/download

Security string 2022-08-05

System Webview 103.0.5060.71

B. Pre-installed microG build variant with additional security patches

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20220806-UNOFFICIAL-microG-signed-amami.zip/download

Security string 2022-08-05

Bromite Browser and Webview on 103.0.5060.140

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] GryQ Lec:
Hi, I've installed this ROM to fix a GPS week rollover problem. Unfortunately, my phone still cannot catch the correct fix, even though it can see about 30 satellites. What could be the problem?

...

Ok, nvm. Phone needed about 1h to catch the fix. I'm wondering how much time it will need next time. Is it the case that once he has grabbed a position, he will do it faster next time?
[Xperia Z1 Compact Android Development] underflash:
GPS is a pain in the *** on this phone. Just recently I had many problems with the fix and wasted many hours trying to find solution including "playing" with internal antenna connections and etc. Amazingly if you hold the phone with 2 fingers just on top and bottom signal gets stronger. The "best" and "perfect" solution is sticking particular size needle into GPS antenna RF switch connector aka testing port (blue square in #2 pic), signal jumps from 24 to 44 and then fix is acquired in seconds. Unfortunately, RF switch connectors are not the same as for coaxial cables, so no way to jury-rig it.

Try editing gps.conf and test, test, test. How strong is your signal from GPS and Glonass satellites? Post the screenshot from https://play.google.com/store/apps/details?id=com.chartcross.gpstest
[Xperia Z1 Compact Android Development] GryQ Lec:
Oh my bananas from Bananaland... Thx a lot underflash... I'm trying to catch the fix, to make a screenshot - now I have 20 satelites in view and 0 in use... But phone is on my desk near the window. 2nd phone has in the same place 49 in view and 35 in use (but low avg snr: 19.2).

I think, I need to open the phone case and first off all clean contact pins on PBA (as in 1.14.1 point of your instruction). Or stick needle into GPS antenna - as U wrote.

Im trying to use this phone only for bike navigation - the phone is small and is ideal for this purposes...
[Xperia Z1 Compact Android Development] underflash:
If you have good signal strength (average +30) and no fix, then try various gps.conf mods. Maybe it will work... Signal strength changes just by holding phone differently indicate fundamental antenna design flaws.
[Xperia Z1 Compact Android Development] GryQ Lec:
OK, thx a lot mate! Would U be so nice and told me where this gps.conf is located? (if U remember of course)
[Xperia Z1 Compact Android Development] underflash:
With root access it should be in /system/etc/
[Xperia Z1 Compact Android Development] honeycakehorse:
Hello, I have upgraded to LOS 18.1-20220806, microG version.

It runs without errors, however the OS now seems very sluggish. The apps take a very long time to launch.

I do not know if it could be due to the latest version, I have not updated for a long time.

Could it be Magisk?
[Xperia Z1 Compact Android Development] GryQ Lec:
@honeycakehorse, I have the same experience, but in my case the problem was caused by my stupidity - I've installed LOS without clearing apps from old installation - so I had all google aps and other stuff from Sony. When I've uninstalled all old apps - the problem gone for me.
[Xperia Z1 Compact Android Development] underflash:
For me it is definitely latest Magisk causing heavy lagging, but I use non-microG version.
[Xperia Z1 Compact Android Development] MSe1969:
I myself am not using Magisk, but as stated by @115ek in the OP,

DO NOT

use any Magisk version > 20.4

From what version did you upgrade?
[Xperia Z1 Compact Android Development] underflash:
Yeah just >20.4 impossible to flash with Error 1 in TWRP. Removed Magisk v.25.2 and all root required stuff, phone started working more or less okey. I do not expect it to be super swift and smooth, but e.g. waiting for keyboard to popup for minutes is just ridiculous. Before LOS 18.1 I have been using AICP 14.0 without any such crap, so probably time to roll back.
[Xperia Z1 Compact Android Development] lm089:
Indeed that's too long! Can't confirm that, though. I use my phone more or less just as a container for banking and other security related apps. Goes unrooted for that reason, and it is very responsive. Have to admit that it only has to handle a few apps, none of them giving a heavy load on the device. And GPS has always been awful, got from bad to worse the day I installed custom ROMs (and I tried quite a few).
[Xperia Z1 Compact Android Development] MSe1969:
Please test: Performance improvement for "microG variant"

I have created a test build for the "microG variant", which is supposed to be more agile.

By default, the so-called "exec spawning" as system hardening feature is now disabled (can be re-enabled by an option in "Settings - Security"), as this seems to be a little bit too demanding for our old Z1c device.

You can simply manually flash the test build over any existing current microG build variant of this ROM. I currently don't have my Z1c with me (until next weekend), so I can't test myself. Thanks in advance for your support.

Appreciate your feedback.

Thanks & regards - M.
[Xperia Z1 Compact Android Development] jurkoman:
I think there is pretty good performance, but more battery drain and apps are installing slower than on LOS 17.1. Waiting for keyboard is lil bit quicker than on previous 18.1 build. Performance or battery lasting still needs improvement but is in good way. Good work.
[Xperia Z1 Compact Android Development] MSe1969:
Question: Any interest for 'sandboxed play services' ?

Hi all,

for a different device in another thread, I have created a test build providing a 'sandboxed play services' compatibility layer (GrapheneOS feature). The details of this approach can be read in the below linked post:

https://xdaforums.com/t/rom-unoffic...eos-18-1-oneplus-7t-pro.4335053/post-87329041

My question:

Would something like that also be interesting for the Z1c device ?

Upon your feedback, I may consider creating such a test build also for the Z1c...

Regards, M.
[Xperia Z1 Compact Android Development] android666:
I did not experience any problem with latest "microG variant", all looks very good. thanks for this release
[Xperia Z1 Compact Android Development] lm089:
Thanks you for the offer! Sounds interesting enough to try out in the first place... Then again I'm not too sure whether I want to risk wiping the entire device: I'm using it basically for banking and other sensible apps, and it hardly ever is leaving my desk (an immobile mobile device :cautious:). At least one of the apps is hard to re-install and set up; not sure whether a full backup will be enough.

So, in case I was the only one interested I'd say it's maybe not worth the time and effort.

BTW, as a side note: in the past I tried Optimum Pro's Jaguar ROM for my OP6, and I'm still following the thread. As I understand, only recently the dev implemented some parts from GrapheneOS with the result of some problems with latest Magisk versions which apparently are fixed now. Don't know whether this is related or of interest here
[Xperia Z1 Compact Android Development] MSe1969:
Thanks for the info. To be kept in mind, but maybe not relevant, as for the amami, an older Magisk version would be needed...
[Xperia Z1 Compact Android Development] android666:
I run latest Magisk v25.2 (with Fox's Mmm) with no problem

https://xdaforums.com/t/question-where-do-you-get-modules.4419109/
[Xperia Z1 Compact Android Development] android666:
deleted
[Xperia Z1 Compact Android Development] MSe1969:
Hi all,

new builds with the September '22 ASB patches (Security String 2022-09-05) are available and offered already as OTA update through the Updater app:

A. Standard LineageOS 18.1 build

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20220909-UNOFFICIAL-signed-amami.zip/download

Security string 2022-09-05

Many kernel patches applied

System Webview 105.0.5195.68

B. Pre-installed microG build variant with additional security patches

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20220909-UNOFFICIAL-microG-signed-amami.zip/download

Security string 2022-09-05

Many kernel patches applied

Bromite Browser and Webview on 104.0.5112.91

microG updated to 0.2.24.214816-30

Performance improvement (exec spawning OFF by default)

Contacts app slightly 'de-Googled'

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] tramp20:
Hi,

thank you.

Can we standard users expect the performance improvement too?
[Xperia Z1 Compact Android Development] MSe1969:
No - in fact, the change makes the "exec spawning" hardening measure (which is only available in the 2nd build variant) switchable and defaults it to "disabled". For the amami, this puts in certain situations a bit too much load.

EDIT: To say it differently, the 2nd build variant has had, different from the standard variant, sometimes a performance decrease. This has been fixed.
[Xperia Z1 Compact Android Development] android666:
maybe also interesting here:

does it mean, GPS does not work without spying us?

may GPS work, if the following DNS are in "hosts" with 127.0.0.1 ?

supl.vodafone.com

supl.sonyericsson.com

supl.google.com

https://news.hitb.org/content/hackers-find-simple-workaround-samsung-vibrant-gps-issues
[Xperia Z1 Compact Android Development] honeycakehorse:
Hello, the new 2nd build has really a better performance, also with Magisk! Thank you!
[Xperia Z1 Compact Android Development] MSe1969:
As he explains in his video, w/o SUPL, you don't get a quick GPS fix via A-GPS

In regards to the data transmitted to SUPL, in the "microG" build variant, there is a patch aiming at "simulating" a device w/o SIM card, when invoking a SUPL call - I however can't really say, how effective that is, as the Baseband processor, which operates independently from the phone OS, has its own life...

By the way, he also explains the microG approach to Tower and Wifi triangulation...

So at least, you're better off - if talking about the builds offered in this thread - with variant B or variant A without GApps (with GApps, you are spied out in so many different aspects...)

See above, no A-GPS - but I am not sure, whether it's a good idea to divert to locahost instead of - if really wanted - entirely blocking via firewall...
[Xperia Z1 Compact Android Development] MSe1969:
Hi all,

new builds with the October '22 ASB patches (Security String 2022-10-05) are available and offered already as OTA update through the Updater app:

A. Standard LineageOS 18.1 build

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20221012-UNOFFICIAL-signed-amami.zip/download

Security string 2022-10-05

System Webview 106.0.5249.79

B. Pre-installed microG build variant with additional security patches

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20221010-UNOFFICIAL-microG-signed-amami.zip/download

Security string 2022-10-05

Bromite Browser and Webview on 105.0.5195.147

microG updated to 0.2.24.223616-61

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] Bergfex2:
Hello,

Has someone problems with the GPS? I have the feeling that my GPS is not working very well. It needs extremely long to get a signal. Thanks Bergfex.
[Xperia Z1 Compact Android Development] lm089:
same here, but since day one after I abandonned Sony's stock ROM. It got a little better after upgrading fom LOS 17.x to LOS 18.x. Inside my flat I hardly ever get a connection. Outside (in the city, i.e. between buildings) it can take 5 minutes and longer. Trying to start recording an outdoor track had me often standing in the open for minutes waiting for the device to finally get a lock. Meanwhile I'm using a different device (OP6), again running with LOS, and a GPS lock (even inside my flat) takes 2 - 5 seconds.

When this Xperia device was still my daily driver I tried many different GPS helper apps, none of them really improved the initial connection time. Finally I used GPS locker. I had the feeling that this app managed to at least keep GPS connection alive over a longer period and running in the background. BUT: I cannot say whether this was really the fact, maybe just a placebo?
[Xperia Z1 Compact Android Development] Bergfex2:
Hi. I have now re-installed the AICP Rom for testing purposes. Then the GPS works. So it can't be a hardware defect.
[Xperia Z1 Compact Android Development] android666:
it's not hw related, ROM is prepared well as well - to be on safe side.

review gps.conf and if u want, add there supl.google.com and during TTFF activate your mobile data. you will get quick TTFF, but at the same time monitored by big-brother
[Xperia Z1 Compact Android Development] Bergfex2:
Hello.

Originally, my plan was to use OSMAND. But I have read that there are problems since Android 11 and the SD-Card => "There are new storage access rules in Android 11-12. The problem is related to storing maps on SD-cards. On Android 11 and 12 very slow file access performance and access restrictions to folders on SD-card."

Do you know a good app for my motorcycle-journeys? Thanks.
[Xperia Z1 Compact Android Development] dreifel:
Apps are not specific to a particular model, thereby off-topic.

I have sent a personal message.
[Xperia Z1 Compact Android Development] MSe1969:
New builds available

Hi,

new builds with the November '22 ASB patches (Security String 2022-11-05) are available and offered already as OTA update through the Updater app:

A. Standard LineageOS 18.1 build

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20221112-UNOFFICIAL-signed-amami.zip/download

Security string 2022-11-05

System Webview 107.0.5304.91

B. Pre-installed microG build variant with additional security patches

https://sourceforge.net/projects/lin18/files/amami/LineageOS_18_signed/lineage-18.1-20221112-UNOFFICIAL-microG-signed-amami.zip/download

Security string 2022-11-05

Bromite Browser and Webview on 106.0.5249.163

microG updated to 0.2.25.223616-10

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] tramp20:
Thank you but the link is from the lat update 202212
[Xperia Z1 Compact Android Development] MSe1969:
Thanks for the hint - fixed.
[Xperia Z1 Compact Android Development] Queen of Scots:
We run the Standard LOS 18.1 version NOV 2022 We tried to run a app after installing it shows: '... won't run without google play services, which are not supported by your device'

When having location activated makes no difference: same message.

Is it still possible to get this app running? If so do you need a google account?
[Xperia Z1 Compact Android Development] 2faraway2:
Did you install any kind of GAPPS package ? See OP ... ;)
[Xperia Z1 Compact Android Development] Queen of Scots:
No haven't, and it seems it is not possible anymore since we run Standard LOS 18.1 version NOV 2022.

Besides we haven't gone all the lenght to return to the Gulag sw So it would be rather annoying if we would have to. ;)
[Xperia Z1 Compact Android Development] Queen of Scots:
Somebody sugested ... is thst a good idea?
[Xperia Z1 Compact Android Development] MSe1969:
First of all, what is the app, you are talking about?

Generally spoken, if an app has linked Google dependencies, you either need Gapps (*yikes!*) or microG to run this app.

Depending on the app's purpose, there may (or may not) be FOSS alternatives, which could even be better.

In regards to "patched app variants" or the use of things like Lucky patcher, I can't say anything, as I don't mess around in that direction.
[Xperia Z1 Compact Android Development] Queen of Scots:
The app in question is https://www.happycow.net/ There is none the like in fdroid!