yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] jurkoman:
My point is, on incoming call, instead of answer or see Call ID directly at screen, i see black area with status bar like FC or not responding.

I must put down quick settings to see incoming call and answer...
[Xperia Z1 Compact Android Development] Dystinato:
Thank you for your answer, when running the Sony Flash Tool (Emma) there are no firmware to get, only a full clear and ROM install, so I guess I am on the latest firmware. In fact, getting into TWRP with hardware buttons never was an issue if I just unplugged the USB cable - my bad :rolleyes:

I took out the SIM card out, cleaned the contacts with alcohol and used a piece of paper soaked in alcohol to clean the contacts in the SIM card slot, and now it seems like (knock on wood) there are no more issues with phone calls! :D

The issue with no notification on SMS is still unclear, there are no issues in the log that could hint what causes it. It seems to get worse with higher power saving modes. Calendar notifications are sometimes delayed by several minutes, which may be related to same "issue".

Another thing someone may be helpful with is that the microphone sensitivity is fine during phone calls, but when recording audio (or video with audio), the sound is barely audible - almost not present. It may be related to noise cancellation, anyway I would appreciate any hints on how to solve this.
[Xperia Z1 Compact Android Development] 115ek:
This is how it looks for me.

Incoming call when screen turned off:

Incoming call when screen turned on:

This is the standard build with no gapps installed at all.

Maybe you use some different caller app and you're missing permissions or so. No idea. But for the standard configuration I'm not able to reproduce your problem.

Nice to hear that :)

Yes. This is a general problem on android. I think even some google apps itself are affected by that. I remember there was something about alarms from the google clock app ringing too late or not at all. It's a topic that comes up over and over again. It has to do with the doze mode.

Audio is a tricky topic. We also have this echo cancellation problem still open. Some parts of the audio handling is like a black box. There are some binary files containing audio configurations you can only read/write with a proprietary qcom tool (you need to sign an nda for that).

Then there is also the mixer_paths.xml https://github.com/lin18-microG/android_device_sony_amami/blob/lineage-18.1/audio/mixer_paths.xml you could use to tweak some things. It defines some register values that should be set for specific use cases.
[Xperia Z1 Compact Android Development] jurkoman:
Yes, i tested LOS 15.1, 16 and 17.1 and this issue is in these versions. Incoming call screen FC, i think this "app" is sensor/hardware related, my device has maybe broken sensor or bad connected. Is not big problem, i need to put quicksettings down and answer from there.

Okay, thanks for check this issue and i will stay with LOS 17.1, i prefer android 10 UI.
[Xperia Z1 Compact Android Development] Dystinato:
Annoying. I remember once reading this info about optimizing for doze, but I since forgot about it. Notifications may be delayed by up to 9 minutes during doze. There might be a bug in the handling of "exempt from optimization" or Android is somehow detecting what is regarded as misbehavior from an app which is then having its notifications suppressed until behaving again. I guess that what is a feature for some is a bug for others! ;)

Weird that this is made so hard to handle. Audio recording in the stock ROM was poor at best, but in LOS 18.1 it is more or less completely absent. I might look at those mixer settings at some point and report back if I have any luck with that.

Thanks!
[Xperia Z1 Compact Android Development] MSe1969:
Hi all,

new builds with the January '22 ASB patches (Security String 2022-03-05) are available and should be 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-20220315-UNOFFICIAL-signed-amami.zip/download

Security string 2022-03-05

Many kernel patches

System Webview 98.0.4758.101

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

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

Security string 2022-03-05

Many kernel patches

Bromite Browser and Webview on 99.0.4844.58

microG 0.2.24.214816-2

AuroraStore 4.1.1

@115ek - please update OP/Changelog

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] tramp20:
Thank you for this new update.

OTA update successful even with a running Magisk 24.3 :-)
[Xperia Z1 Compact Android Development] irobbanka:
so much lag.
[Xperia Z1 Compact Android Development] Vslchk:
Hello guys, can anyone share fastboot or/and adb drivers? I can't find them anywhere... Without them, I can’t install the recovery to install this OS?
[Xperia Z1 Compact Android Development] Dystinato:
You need Android Platform Tools.
[Xperia Z1 Compact Android Development] lm089:
Hi, I'm having some kind of a weird problem here:

I'm still running on 17.1 but plan to finally upgrade to 18.1 soon (standard installation with GAPPS etc). In fact I already did back last December but then had to go back to 17.1 for some organisational reasons. Before I upgraded to 18 I of course created a full V17.1 backup from TWRP. I finished the 18.1 setup then again back to TWRP, created a 18.1 backup and restored 17.1.

Yesterday I decided it was time to finally upgrade to V18, so I booted to TWRP, created yet another V17.1 full backup and restored my V18.1 backup from December. Tried to boot to system but got into a boot loop. After staring at the LOS animation for ~10 Minutes I stopped this and tried another clean flash using the March version of the 18.1 (left internal storage intact). Flashed latest MindTheGapps on top then booted to system and did the usual setup. Like in December all appeared to be fine. Back to TWRP, created a new full backup and tried to test it right away. And again ended up in the same boot loop as before.

As I never before had any trouble with creating and restoring full backups: does anyone here have an idea what could be going wrong? As my backups apparently are working with V 17.1, what could it be in V 18.1 that sort of breaks the backups? Is it probably the way I install and setup everything?
[Xperia Z1 Compact Android Development] MSe1969:
An idea, at least to exclude any obvious reasons:

When you say "full backup", this also includes the system partition, right? This question may sound stupid, but I remember having had a while back a case (not sure on which device), where backing up system was skipped and the backup did not contain the system image.

You could also simply try to flash 18.1 and the Gapps stuff again, after having restored the 18.1 backup.

Finally, are you using Magisk? Maybe also worth a try to install it again after restore...
[Xperia Z1 Compact Android Development] lm089:
Good idea, thanks for your input.

Looking at the backup folder, it contains system.ext4.win (1.46 GiB) + the accompanying .sha2 file + system.info. But maybe it's still broken. Trying to re-flash 18.1 + Gapps sounds promising, I'll try that tonight!

Magisk is not in the game (yet). It's a "left-over" device (with a slowly dying battery, fair enough after 8 years). No SIM card and to be used for security-aware apps (banking, etc.)
[Xperia Z1 Compact Android Development] lm089:
OK, got it to work, if I follow a very strict path (different from what I'm used to), which I still think is quite strange.

Starting point is my full backup from December '21, which has BitGapps plus Magisk V23 (a canary version to be exact) installed:

- restore that backup, then - still in TWRP - flash latest LOS 18.1 + latest BitGapps. Remark: while flashing latest LOS I see messages regarding some BitGapps OTA survival script being active...

- boot to system - works fine

- in system update all apps that had updates since last December

- uninstall Magisk V23, let phone reboot to system

so now I am unrooted. Reason is that any new full backup which has a working Magisk installation seems to fail when it come to restoring it. Although I'm not quite sure whether BitGapps might be the root of my problems, see messages mentioned above

To restore that new backup I have to:

- restore backup from TWRP

- reflash latest LOS, but NOT BitGapps (that is giving me "error 1" messages I admit that I don't understand). Maybe that's because I don't have a newer BitGapps version, but maybe not

- reboot to system

In case I want root I have to do a new Magisk installation

What I don't understand is the fact why my old December backup can be used although it contains Magisk AND BitGapps, but any newer backup canot (I tried ~5 times in various combinations).

Does that make any sense? But for the moment I'm a happy Z1c LOS 18.1 user.

Finally some rather off-topic questions - sorry for that: I googled quite a bit last night but couldn't find proper answers:

As far as I get it Magisk is patching the boot partition. So wiping boot then flashing LOS should have the effect of removing Magisk. Correct? Or am I missing something?

Which partition is a GAPPS solution installed to? Is that system, or is it data? Or even some place else?

Thanks for your patience anyone
[Xperia Z1 Compact Android Development] MSe1969:
Hi all,

new builds with the April '22 ASB patches (Security String 2022-04-05) are available and should be 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-20220413-UNOFFICIAL-signed-amami.zip/download

Security string 2022-04-05

System Webview 100.0.4896.58

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

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

Security string 2022-04-05

Bromite Browser and Webview on 100.0.4896.57

@115ek - please update OP/Changelog

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] MSe1969:
In general yes, very simple.

However, I am not up to date with newest Magisk methods (as I don't use it). In earlier times, there used to be a "survival script", which did some re-patching during ROM updates, which was stopped later. Not xure what is the current situation.

Gapps are flashed to the /system partition, also very simple.

But there are two specific considerations involving /data as well:

The system partition is mounted read-only as part of android's design. Updates to system apps are therefore stored on the /data partition. When you flash an update, you should therefore avoid the situation, that the system apps on /system become newer than the updates on /data

Magisk may also bring some additional complexity. The rough ideas of Magisk is to leave the /system partition untouched, but to patch the kernel and divert selected access attempts, which aim at the /system partition, to a specific Magisk directory on /data, where the modifications to the /system partition are located.
[Xperia Z1 Compact Android Development] lm089:
You're going unrooted then? Or using a different method? I'm asking because Magisk is getting more and more complex, beyond of what need...
[Xperia Z1 Compact Android Development] MSe1969:
Basically yes, unrooted - however, I use the microG build, which offers some functionality, which otherwise would need root. And for analyzing stuff, when developing, adb root is sufficient.

Out of interest: What do use root for?
[Xperia Z1 Compact Android Development] 115ek:
I definitely do so. For me root over adb is totally sufficient.

Other topic:

Unfortunately I need to share some bad news. My beloved Z1c I use daily shows signs of aging. Since some weeks the touchscreen got worse. There are some areas that don't even react at all. For me that probably means saying good bye slowly. If someone has a fully functional device he does not need or knows where to get a cheap one I'd be interested, though. However, I'm not going to spend so much money on an ancient device. Maybe time for something new has come. Even if it is really difficult for me.

Furthermore there is no real hope to see a fully functional 19.1 on our device due to the 3.4 kernel we are using, so 18.1 will most likely be the last major version.

I'll still be around here and we'll provide some more 18.1 builds of course.

I just wanted to put the expectations into perspective.
[Xperia Z1 Compact Android Development] lm089:
This device here is usually not rooted. On my other devices I'm using acc, a tool to control battery and charging behaviour. Helps prolonging battery life. Plus I'm using Titanium to back apps.
[Xperia Z1 Compact Android Development] tramp20:
I bought long time ago a refurbished good Z1c.

Sony Xperia Z1 Compact Refurbished online kaufen | eBay

Tolle Angebote bei eBay für Sony Xperia Z1 Compact Refurbished. Sicher einkaufen.

www.ebay.de

You could try to find a cheap one.
[Xperia Z1 Compact Android Development] 115ek:
@MSe1969 is going to provide a device to me. Thanks a lot for that!

So it seems like the story with that tiny device could go on :)
[Xperia Z1 Compact Android Development] Ikesankom:
Greetings to all. I have noticed that, upon reboot, desktop shortcuts to applications located on the mixed partition disappear. Does anyone else have this happen?
[Xperia Z1 Compact Android Development] lm089:
mixed partition? Are you referring to a way you formatted an external SD card?
[Xperia Z1 Compact Android Development] Ikesankom:
To give more internal memory to the Z1 Compact, I have enabled a mixed partition sharing memory with the internal memory of the mobile.

I have a 128GB microSD card with the A2 feature (enhanced ability to run applications from the card faster) with two partitions, one the internal shared one (about 32GB) and the remaining 96GB destined for external shared memory (to be able to insert it in a PC for example).

Despite being an external memory, the speed is very good.

Nowadays cell phones have a fairly large internal memory, which makes this technique practically unnecessary.

If you want to take a look: https://xdaforums.com/t/make-your-sd-card-semi-adopted-works-great.3399510/

Well, as I was saying, when restarting the mobile the desktop shortcuts of applications installed on that shared internal memory, not the applications themselves, disappear. Fortunately, there are only two and I just have to drag the icons on the desktop. In version 17.1 it did not happen.
[Xperia Z1 Compact Android Development] lm089:
OK, understood. Had that once in the past on an old HTC phone, don't have it on my Z1c, though.

However, what I see upon first login after a new boot is a message in the notification area that my external SD needs to be prepared. That can take up to 20, maybe even more. During that time I don't have any access to the external card through file managers or other apps that are using the card.

So I guess it's more an issue of the launcher than that of the ROM itself. Maybe you can try some alternative launchers (to be honest: I never liked Trebuchet anyways...)
[Xperia Z1 Compact Android Development] MSe1969:
Hi all,

new builds with the May '22 ASB patches (Security String 2022-05-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-20220509-UNOFFICIAL-signed-amami.zip/download

Security string 2022-05-05

System Webview 100.0.4896.127

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

lin18 - Browse Files at SourceForge.net

sourceforge.net

Security string 2022-05-05

Bromite Browser and Webview on 101.0.4951.53

microG updated to 0.2.24.214816-10

Mozilla Location provider on 1.5.0

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] Ikesankom:
Good morning

I have installed the latest update. I had Magisk installed and working. Now as far as I can see, I will have to wipe the data partition again to get it working again, assuming I have to reinstall and configure everything I had before. Isn't there a way around this?

Thanks!
[Xperia Z1 Compact Android Development] MSe1969:
Why would you have to wipe the /data partition?

Updating the ROM overwrites boot.img, so you would have to re-patch boot.img again, I would guess.

Or simply flash the last created patched boot.img, as the kernel hasn't been updated in the ROM.
[Xperia Z1 Compact Android Development] underflash:
Installed the latest Standard build with Opengapps Pico and Magisk v24.3

Play Store shows Device is not certified, so Revolut app is not compatible with device (does not show in store at all), Paypal app is crashing on startup. Any solution?
[Xperia Z1 Compact Android Development] tramp20:
All standard builds are certified:

I am on lineage-18.1-20220509-UNOFFICIAL-signed-amami.zip, PicoGAPPS and Magisk 24.3 too and don't have this problem.

Perhaps a new try (factory reset)?
[Xperia Z1 Compact Android Development] underflash:
adb sideload lineage-18.1-20220509-UNOFFICIAL-signed-amami.zip

adb sideload open_gapps-arm-11.0-pico-20220215.zip

adb sideload Magisk-v24.3.zip (this is official .apk file renamed to .zip)

Here is how I flashed it with complete wipe, very much doubt new try will help. Your Play Store version is higher, maybe this is a problem, but I have used the latest pico version from opengapps.org and can't update it with message 'Google Play Store is up to date'.

Downloaded and manually updated com.android.vending_30.8.14-21_0_PR_451445873. No changes, still Device is not certified... WTF?!?!
[Xperia Z1 Compact Android Development] underflash:
Please take a look at Paypal 8.17.1 crash log. Any fix?

Spoiler content hidden.
[Xperia Z1 Compact Android Development] lm089:
had a similar issue some weeks ago on my OnePlu6 running LOS 19.1. Found a hint somewhere in the Magisk / Zygisk thread that basically recommended to uninstall current play store version than start from scratch. Unfortunately right now I can't find that post, but anyway in my case it helped.

UPDATE: found it - it's not uninstall playStore but delete data and cache:

https://xdaforums.com/t/discussion-magisk-the-age-of-zygisk.4393877/post-86888355
[Xperia Z1 Compact Android Development] underflash:
Thanks, just deleting data and cache will not solve this problem. I had to wipe everything and install just ROM and gapps, then Play Store will be certified and update to the latest build. After disabled Play Protect, flashed Magisk, installed Magisk apk and added Play Store and Google Play Services to Deny list.
[Xperia Z1 Compact Android Development] 115ek:
@underflash

Is your paypal also working again now?

From your log it looks like an internal paypal problem:

06-03 14:02:24.614 10176 795 795 E AndroidRuntime: Caused by: java.lang.ArithmeticException: divide by zero

But this could have multiple root causes. I could also think of some safety check performed by the paypal app which is not implemented properly or so.

That's why I'm curious if it works with a google play certified device.
[Xperia Z1 Compact Android Development] underflash:
Thanks for taking a look. Nop, latest 8.18.1 is crashing identical as before, just before any logo/login window appears (only white screen, then crash).

Unfortunately, AirDroid: File & Remote Access 4.2.9.10 app installed from Play Store is crashing too straight after app splash screen appears.

Also I get terribly slow GPS fix in an open area. It takes 15 minutes and more to get the fix with 28-30 sat in view and +15 in use. Any solution?

Spoiler content hidden.
[Xperia Z1 Compact Android Development] jurkoman:
Hi, i have actually installed LOS 18.1, May 9 version with Microg.

Comparing with 17.1 latest it has more battery consumption and more delayed reactions.

I have experienced more delay for loading some options in apps like settings, camera, file manager and almost every app is opening with some 1-5 second delay more than 17.1.

It is normal in Android 11?

If not, someone had experienced similar thing?

This is old device, but it has good hardware and can go better.

In my case, 17.1 is going better with lower battery consumption. I will do an revert back.
[Xperia Z1 Compact Android Development] MSe1969:
Hi, thanks for your feedback.

In general, every major android release is significantly more resource demanding - and Android 11 vs. 10 isn't an exception. So yes, there is a certain lag to be observed - but I did not experience too significant lags on my own device, compared to 17.1 (although there is, not debating this). Having said so, Android 11 for sure marks a boundary for this device, which cannot be overcome (e.g. because this ROM still uses a 3.4 kernel).
[Xperia Z1 Compact Android Development] MSe1969:
Hi all,

new builds with the June '22 ASB patches (Security String 2022-06-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-20220614-UNOFFICIAL-signed-amami.zip/download

Security string 2022-06-05

System Webview 102.0.5005.78

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

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

Security string 2022-06-05

Bromite Browser and Webview on 102.0.5005.96

microG updated to 0.2.24.214816-11

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] tramp20:
Thank you for this new update.

But now my backup apps have no longer access to sdcard_extern\Android\data and ..\obb.

I have this new problem since this update yesterday on all of my Z1c.

Total Commander gets access with an internal trick, Root Explorer without problems.
[Xperia Z1 Compact Android Development] underflash:
Any idea how to enter Sony Service Menu?

*#*#7378423#*#* does not work.
[Xperia Z1 Compact Android Development] marsa47:
The service menu is only available on the original ROM from Sony.
[Xperia Z1 Compact Android Development] underflash:
Got this battery drop over night. Gradual discharge does not look like a faulty battery, but at the same time Doze mode is active. Any suggestion where to start digging?
[Xperia Z1 Compact Android Development] lm089:
Temp install some app that records background activity like BBS, or GSam Battery Monitor (last one is what I use in cases like these)
[Xperia Z1 Compact Android Development] underflash:
The screenshot is from GSam Battery Monitor. It shows Doze mode and I could not see any app eating the battery. Plus battery health is good.

In general, Z1 is terribly slow, lagging and shows very high CPU usage, but there is no particular app or process to blame (removed almost all non-essential).

I can post more sreenshots from GSam Battery Monitor if this could help to identify the problem.

Probably will try this https://xdaforums.com/t/app-4-1-heb...r-and-root-toolbox-2021-05-31.3401341/page-60

or something similar e.g. L Speed or Kernel Adiutor. Thought these tweakers are obsolete on latest Androids...