yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] MSe1969:
New builds available

Hi,

new builds with the March '24 ASB backports are available for download and also offered by the Updater app.

Please note:

Google has stopped to provide official sec. patches for Android 11. The patches therefore are backports from Android 12. The build therefore hasn't updated the official "security string", but provides an additional entry in the device info screen to show a "Custom build release" indicating the efforts to providing unofficial back ports.

A. Standard LineageOS 18.1 build

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

Custom build release 2024-03-01

System Webview 122.0.6261.90

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

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

Custom build release 2024-03-01

Mulch Webview 122.0.6261.105

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] Scranalot:
Good Afternoon @Im089

I have been forced to upgrade my Falcon due to impending switch-off of 3G by my carrier in my area. I like the size of the Falcon & was therefore looking at one of these z1c's as a replacement but unfortunately all the ones I saw when checked said that the bootloader couldn't be unlocked - so in the interim I bought a Peregrine (4G Falcon clone) however it may be that it is going to be unsupportable by @MSe1969 in the not too distant future.

https://xdaforums.com/t/rom-lineageos-14-1-substratum-for-moto-g-lte-peregrine.3967207/post-89369058

I you are serious about moving your z1c on I would be interested in buying off you

Cheers
[Xperia Z1 Compact Android Development] MSe1969:
New builds available

Hi,

new builds with the April '24 ASB backports are available for download and also offered by the Updater app.

A. Standard LineageOS 18.1 build

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

Custom build release 2024-04-01

System Webview 122.0.6261.119

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

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

Custom build release 2024-04-01

Mulch Webview 123.0.6312.99

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] lm089:
strange behaviour of the updater this time (Standard build, that is):

after clicking "Install" device booted into recovery. Then just showed this on the console:

"Updating partition details

...done

RescueParty"

Then went back to TWRPs main screen. I.e.: did not install and did not reboot to system

I did the flashing manually as well as the reboot. No harm done, but different from before

UPDATE - that's what I thought first but then could not reboot. Instead device booted back into TWRP after showing the boot animation for an unusual long time. Wow!

Trying to go back to the March build now

UPDATE 2 - looks like I have to do another clean install. So it's probably not been the new OTA but maybe something weird on my device. Or both. Or...
[Xperia Z1 Compact Android Development] chalee7:
I did the update and i think it is normal, that its restarting in twrp to flash the update !?

In my case it was rebooting succesfully.

Awesome. Thank%s
[Xperia Z1 Compact Android Development] lm089:
good to hear that, thanks. So it must be something special in my setup that keeps coming back with restoring from SeedVault
[Xperia Z1 Compact Android Development] MSe1969:
New builds available

Hi,

new builds with the May '24 ASB backports are available for download and also offered by the Updater app.

A. Standard LineageOS 18.1 build

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

Custom build release 2024-05-01

System Webview 124.0.6367.82

Kernel patches

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

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

Custom build release 2024-05-01

Mulch Webview 125.0.6422.35

Kernel patches

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] MSe1969:
New builds available

Hi,

new builds with the June '24 ASB backports are available for download and also offered by the Updater app.

A. Standard LineageOS 18.1 build

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

Custom build release 2024-06-01

System Webview 125.0.6422.165

Many kernel patches

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

https://sourceforge.net/projects/li...5-UNOFFICIAL-microG-signed-amami.zip/download

Custom build release 2024-06-01

Mulch System Webview 126.0.6478.71

Many kernel patches

GmsCore & companion v0.3.2.240913

AuroraStore 4.4.4

AuroraDroid (deprecated) replaced with F-Droid 1.19.1

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] MSe1969:
New builds available

Hi,

new builds with the July '24 ASB backports are available for download and also offered by the Updater app.

A. Standard LineageOS 18.1 build

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

Custom build release 2024-07-01

Some kernel patches

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

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

Custom build release 2024-07-01

Mulch System Webview 126.0.6478.122

Some kernel patches

AuroraStore 4.5.1

For the microG build, please read below additional info:

AuroraStore

It is advisable to delete memory and cache of AuroraStore (in Settings - apps) and go through initial steps again. (You need to select AuroraServices as install method AFTER initial setup)

microG

Quote from this issue: https://github.com/microg/GmsCore/issues/2237

"If you are using microG 0.3.2, you can configure https://api.positon.xyz/?key=74600654-2aec-11ef-aa95-3b7218da6865 as an API endpoint in microG Settings -> Location -> ⋮ -> Configure service URL."

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] 115ek:
Which fritzbox do you use? Which firmware version is installed?

Does the guest network has an encryption set?

The first thing I'd think of is a WPA2/WPA3 problem. Just a quick guess.

I just applied https://gerrit.aicp-rom.com/c/AICP/device_sony_msm8974-common/+/109829 and will upload a build soon.

Besides that: A log would be helpful in any case.

EDIT:

I uploaded the new build now. Should also be offered as ota.

And one more question from my side: Do you use mac address filtering in your fritzbox? This could also be a reason, as the mac address was not consistent across the last builds.

EDIT2:

I enabled WPA3 on my fritzbox as well and wifi broke as you decribed. By using the build I just uploaded it is working as expected again. Could you please try updating?
[Xperia Z1 Compact Android Development] 115ek:
Another build:

Fix an issue reported by @Ed_von_Schleck

15.05.2021

fixed wifi problems when WPA3 is used (ref)
[Xperia Z1 Compact Android Development] lm089:
quick question, just because I'm currently having trouble updating my current 17.1 build, and there's some discussion going on about Magisk causing all kinds of trouble these days (although I slightly doubt that my updating problems have anything to with Magisk):

what other simple root/su solutions are currently out there that I could use instead of Magisk either with LOS V17.1 or this ROM here? I don't care at all for modules on my z1c just need to have root access
[Xperia Z1 Compact Android Development] 115ek:
Your issues most likely have something to do with magisk ;)

As far as I know magisk is the defacto standard rooting solution. However, I have nothing else to do with these tools.

For me the inbuilt root over adb is totally sufficient. I have complete control over my device which is especially useful for development purposes.

I think you need to ask yourself if you need root access for apps on your phone at all. What's the benefit? Aren't there any other alternatives?

Especially for backups there's an inbuilt solution now (I know that it still has its limitations).
[Xperia Z1 Compact Android Development] lm089:
Backup (Titanium) indeed is *the* main reason. Another one is the ability to use a terminal emulator just on the device: hooking it up to a PC every time is possible but sort of a nuisance. Esp since I prefer to use adb from Linux, butfiring up my Linux machine takes extra time etc., bla bla :p;) I know, a few week arguments. Titanium aside it's 40% laziness and 60% habit...
[Xperia Z1 Compact Android Development] 115ek:
Adb also works on windows. Or you could use it in WSL if you insist on linux. Oh, and there is adb wireless. You don't even need a cable ;)

Just saying... I think using the miniature keyboard to enter some shell commands is more time-consuming than setting up adb.

Concerning titanium I don't have that much arguments. ;)
[Xperia Z1 Compact Android Development] Ed_von_Schleck:
Hello,

thanks for your great support, installed the update (OTA)

and it worked Perfect.

Fritzbox 7490 7.26

no Mac adress filter

regards Ed
[Xperia Z1 Compact Android Development] jho55:
@lm089: For Magisk have you tried the solution @tramp20 was mentioning earlier in this thread? It is simply changing 1 or 2 lines in Magisk and I am able to use Magisk 22.1 (have not tried it with the newest release) with 18.1.
[Xperia Z1 Compact Android Development] lm089:
No I haven't, because up to this new update issue I didn't really have problems even with the latest versions. I'll try a new complete wipe round next, as I believe that this has its main root somewhere else in my device
[Xperia Z1 Compact Android Development] tramp20:
@115ek

the ROM runs almost perfect even with (a patched) Magisk 23.x :-)

See https://xdaforums.com/t/rom-unoffic...1-for-xperia-z1-compact.4007983/post-85034647

Some whishes:

1. How can I make a screenshot? The icon is missing in the power on/off menu.

2. the setting to switch NFC on/off is missing too.

3. in the developer options there is a german text "Bluetooth-Gabeldorsche aktivieren" since the first build. What does this mean?

Thank you.
[Xperia Z1 Compact Android Development] 115ek:
Press volume down and power simultaneously.

You mean in settings? That's true. I'll have a look into it.

But NFC can be still activated with a quick settings tile.

Android 11's new 'Gabeldorsche' Bluetooth stack was given its name for a great reason

Android 11 Developer Preview includes a Bluetooth setting offering to "Enable Gabeldorsche." That leaves a burning question of "What's Gabeldorche?"

9to5google.com
[Xperia Z1 Compact Android Development] Gohryt:
May anybody tell me why nfc hce is not work? I want try to do something with this.
[Xperia Z1 Compact Android Development] jho55:
"How can I make a screenshot?"

When you have at least one app open, the screenshot button also appears in the open app overview (square button).

But honestly the LOS 16.0 was way more convienient and the start/shutdown menu also a lot nicer than the ugly tiles at the top.
[Xperia Z1 Compact Android Development] 115ek:
Because the nfc stack we're using does not support it.

Ah, right. I totally forgot about this option.

The power menu on 18.1 is indeed not that nice. But there's something in the works. ;)

@tramp20

I figured out why the NFC entry is missing. I already uploaded a patch, so this will be fixed in the next version.

ref: https://review.lineageos.org/c/LineageOS/android_packages_apps_Settings/+/310331
[Xperia Z1 Compact Android Development] jho55:
Good to here. :)

Another annoyance in my opionion is that the background is zoomed when opening the app drawer or the quick settings.

And the wallpaper has a low resolution. But you can fix it by using google wallpaper app to change the wallpaper.
[Xperia Z1 Compact Android Development] tramp20:
Thank you for this tip, I never saw this icon before.
[Xperia Z1 Compact Android Development] 115ek:
New build. :)

22.05.2021

fixed NFC settings not shown (ref)

fixed offline charging
[Xperia Z1 Compact Android Development] tramp20:
Thank you very much :-)

Are there important changes to the kernel?

If yes I have to uninstall Magisk, flash the new kernel and install Magisk again :-(
[Xperia Z1 Compact Android Development] 115ek:
Nothing changed on the kernel side.

To be honest: The kernel gets the least attention from my limited overall attention for this device.

I wanted to switch to the maintained one @MSe1969 uses on the 17.1 build at some point of time. There at least important backports are made to our ancient 3.4 kernel.

But so far I haven't done it.
[Xperia Z1 Compact Android Development] infoflo:
Thanks to the dev for enabling us to have Android 11 on our old device. Works like a charm and it's super responsive! I just have a problem with 802.1x (entreprise) wi-fi. It just does not connect for some reason.
[Xperia Z1 Compact Android Development] 115ek:
What network are you trying to connect to? Eduroam or an other company network? Did you set it up correctly? WPA2 enterprise requires some more configuration than just a simple password.

Often, there are configuration apps to handle that for you. I also struggled a couple of times setting it up manually :p

Anyway a more detailed error report/description would be helpful. As well as a log.
[Xperia Z1 Compact Android Development] infoflo:
Thanks for the fast answer 115ek! It's called Ziggo Wifispots. My internet provider (Ziggo) uses the 802.1x protcol in order for clients to connect to Hotspots (Wifispots) all around the country. To connect, I need a Wifi certificate (which is provided by Ziggo/my internet provider), which is installed on my Z1c, and then I need to enter a domain name (which is given), username and password. It's the regular PEAP+MSCHAPV2 combo. Once i try to connect, it says "connecting.." for less than a second once I click on the network to connect, and then I get the error message "Failed to connect to network". This works on my Xperia Z5 Compact rocking LineageOS 18.1 and all my other device running a Android 11 custom rom. Not sure how relevant this information is but I hope it can help. Eduroam works fine though.
[Xperia Z1 Compact Android Development] 115ek:
Can you get a log after doing this procedure please?

Enable developer options, enable adb, connect your device. Then use

adb logcat -b all > logcat.txt

Another thing coming to my mind: Since when do you use 18.1 on the amami? Did you also use earlier versions?

Maybe it is an SE linux related problem. To exclude that you could also switch to permissive SE linux and try then.

To do that:

enable root over adb

adb root

adb shell setenforce 0

You can check the current state with

adb shell getenforce

or in the "Trust" menu point.

Once you reboot the system will be in enforcing mode again as this is passed as a parameter in the kernel cmdline.

Or use

adb shell setenforce 1

.
[Xperia Z1 Compact Android Development] infoflo:
I did change SELinux to permissive, had to reinstall the certificate after a reboot and set SELinux to permissive again and tried again. It worked! Thanks a lot! However, once I reboot and the status goes back to enforcing, the same error appears. I need to find a way to have SELinux to remain permissive even after a reboot! Thanks a lot for the input man!
[Xperia Z1 Compact Android Development] 115ek:
This should just be used for debugging purposes. ;)

Running an SELinux permissive build is insecure and should be avoided.

That's why I was asking for a log. By checking the log for the denial and adding a proper rule for that afterwards, you can also connect to your wifi with SE in enforcing mode.
[Xperia Z1 Compact Android Development] infoflo:
Log

WifiSpots' SSID is "Ziggo".
[Xperia Z1 Compact Android Development] 115ek:
I'm unfortunately getting a 403 Forbidden.
[Xperia Z1 Compact Android Development] infoflo:
Ah too bad, what about this one.

https://mirr.re/d/3sYq
[Xperia Z1 Compact Android Development] 115ek:
26.05.2021

fixed netmgrd SE linux denials

@infoflo I'm not sure if your issue was related to that. Could you check? Unfortunately I can't really test it - I have no WPA enterprise setup available.

@jho55 The revised power menu has been merged. The screenshot button is now back there.
[Xperia Z1 Compact Android Development] ashtar_sheran:
Hi, a question for developers and users of the Z1c (hope it's not too much offtopic) - what is the general state of VoLTE support on this phone? Is it theoretically posible to be enabled, and if yes, did anyone achieve any success with it? I have looked through the previous posts on various topics, but it seems like a general conclusion hasn't been drawn.
[Xperia Z1 Compact Android Development] multiwirth:
Any news about the issue with magisk? 😃
[Xperia Z1 Compact Android Development] tramp20:
You can read this:

https://xdaforums.com/t/rom-unoffic...1-for-xperia-z1-compact.4007983/post-85034647

topjohnwu works now for Google and he is not allowed to continue Magisk :-(

https://xdaforums.com/t/magisk-general-support-discussion.3432382/post-85107915
[Xperia Z1 Compact Android Development] multiwirth:
Well, don't you think it could possibly be fake?

No official statement and probably fake profile on twitter posting this??

The official profile is called "John Wu" and has "android" as profile pic.

Also a message from him recently about those fake tweets:

https://twitter.com/i/web/status/1394835338208579591

Anyways about the magisk issue:

It works on other devices on 18.1 with msm 8974 so it might be an issue with the rom itself.

Also what you posted is a workaround but no permanent fix :/
[Xperia Z1 Compact Android Development] jho55:
I only needed to patch one or two line in the magisk.apk. Nothing fancy.
[Xperia Z1 Compact Android Development] Ryslan_Z1:
Hi! Thank you so much for android 11, which you make for sony xperia z1 compact!

I noticed that if the phone is discharged to zero, when you connect it to the charger, the charging icon does not appear. Instead, it hangs on the SONY splash screen. After that, the activation is possible only through the recovery.

And question two.

I tried to update the firmware, downloaded it, clicked install, and the phone went into recovery mode. And I didn't figure out how to install it.

Sorry for my google translate
[Xperia Z1 Compact Android Development] 115ek:
I'd say no. At least with my resources I can't handle this. Stock didn't support it so it would be even harder to get it working (even if our SoC could handle it in theory).

But to be honest I'm not that much into it to draw a conclusion here.

Which version are you using? The thing you described sometimes is referred to as "offline-charging". The problem is known and was fixed with the build from 22.05.2021. See the changelog.

Concerning the second thing:

Which recovery system you're using? Make sure it is this one. Else I can't support you.
[Xperia Z1 Compact Android Development] 115ek:
11.06.2021

fixed fm radio SE linux denials
[Xperia Z1 Compact Android Development] tramp20:
Hi,

is ANT+ running on LOS 18.1?

The app "ANT Radio Service" from Play Store does not request permissions but these are necessary. See screenshot 1.

The permission "use ANT hardware" is missing/not selectable.

I tested this on two Z1c.

With LOS 17.1 there is no problem. See screenshot 2. All ANT+ sensors are recognized and running.

The newest app version is 4.16.00
[Xperia Z1 Compact Android Development] tramp20:
@115ek ,

I found this with Google:

Android 11 ANT+ Radio Broken · Issue #5 · ant-wireless/Android_ANTRadioService Missing ant+ service after upgrade to android 11 - OnePlus Community Ant+ Radio Support broken after Android 11 Update | XDA Forums

Perhaps you can add the missing parts e.g. "ANT HAL Service" from LOS 17.1

Thank you
[Xperia Z1 Compact Android Development] 115ek:
Actually the stuff is there (at the first sight).

I'll have a look into it when I find some free minutes.

Thanks for already doing some investigation on this (y)

EDIT:

This one seems to help. Did it work for you?

adb shell
pm grant com.dsi.ant.service.socket com.dsi.ant.permission.ANTRADIO

EDIT2:

Just for reference: https://gitlab.com/LineageOS/issues/android/-/issues/3515
[Xperia Z1 Compact Android Development] tramp20:
Yes, this helps a little bit: I can now activate the sensor and it is working but the values are not stored and the "ANT+ Plugin Manager" cannot see this sensor (device database is empty).
[Xperia Z1 Compact Android Development] 115ek:
New build

20.06.2021

added livedisplay

synced LineageOS sources (security patch level June 05, 2021)
[Xperia Z1 Compact Android Development] tramp20:
@115ek,

till now I had LOS 17.1 running on my main Z1c. Camera pictures and QR-codes were fine.

Today I updated to LOS 18.1 (standard) and now all pictures are completely blurred and QR-codes unreadable, an other camera app (e.g. Vignette) shows the same.

I deleted storage and cache of the camera app but nothing changed. The focus ring on the screen does appear.

On two other Z1c with LOS 18.1 all is ok.

Is there a hidden setting to change this?

I need the QR-codes for the CovPass app.
[Xperia Z1 Compact Android Development] 115ek:
Is it a dirty installation, meaning no /data wipe?

Could you get some logs?

Does reboot change anything?
[Xperia Z1 Compact Android Development] tramp20:
Thank you, in the mean time I remembered that (long ago) this camera problem was caused by not wiping all.

So I made this time a factory reset and now the camera is working fine.
[Xperia Z1 Compact Android Development] 115ek:
Anyway that could be problematic when we're switching from 17 to 18 later on. Actually an upgrade (without wiping) should be possible. Maybe we need to investigate it further then.

Perhaps /data/credmgr needs to be cleaned. At least that comes to my mind with camera issues.
[Xperia Z1 Compact Android Development] tramp20:
I have 5 Z1c to play and test :)

On two of them (LOS 17.1) the auto focus did not work since long time.

On both I deleted /data/credmgr and on the first one the auto focus is working now.

But on the second not (permission of /data/credmgr is 0770), of course rebooted.

Edit: After updating this smartphone today to LOS 17.1 20210710 the camera does auto focus now.

But I don't know why.
[Xperia Z1 Compact Android Development] dr@bunsen:
Does the OTG function on Lineage-18.1? Thinking of trying it on a handheld gaming device that uses the Z1 Compact inside it (Z Pocket Game). OTG is critical so that the physical controls work properly. Someone has had success with Lineage-17.1 on this gaming device but I'm wondering if it's worth giving 18.1 a go?
[Xperia Z1 Compact Android Development] 115ek:
OTG should work as it did on 17.1.

I just tried a using a mouse as input device: worked flawlessly.

It may be that your external input device / gamepad is not configured in the kernel yet. Then a recompilation of the kernel with an adapted kernel config would be required. (Or, even worse, the input device you want to use isn't even supported on our ancient 3.4 kernel).
[Xperia Z1 Compact Android Development] 115ek:
A new build including the latest lineage sources was uploaded and should reach via the OTA updater.

Furthermore, there are plans to bring a lineage 18 microg version as well. It is currently being worked on. (@MSe1969 )

There may be a first testing version soon.
[Xperia Z1 Compact Android Development] 2faraway2:
Perfect, thanks in advance :)