yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] MSe1969:
Difficult to say.

- Have you flashed anything since last update?

- or installed any app requiring root permissions?

What you could try as a very last resort is to get the Sony flash tool and try to fully restore a Stock image, which would also restore the modem software (which normally isn't touched by the ROM). Be warned: You will loose everything on your device, so make a backup before (e.g. via TWRP and store that backup OUTSIDE the device).

If all that won't work, your device may have started dying from a hardware point of view...
[Xperia Z1 Compact Android Development] MSe1969:
I have no idea about "proot" and how it works.

Which build variant do you use? Standard or microG?

So if proot simply works as (pseudo) "admin" in the uid context of the termux app (i.e. from android's point of view, we still talk about an unprivileged user app), then you would have to try looking for issues in termux.

Further, I have read that at least for Kali Nethunter, you would need to replace the Android kernel with a specific kernel for this device, which brings additional functionality and modules needed for the Kali sandbox/VM.

If however proot aims at being a "real" root app aiming at using or initializing processes as root on the Android host OS via respective kernel calls, you would need a root app (e.g. Magisk?) first. This ROM does not support "real" root apps.

Anyway, nothing I can really help with, as this is definitely an "off-label" use - supporting an own OS within a VM is a topic on its own...
[Xperia Z1 Compact Android Development] MSe1969:
I would have to test it and get back - no idea, tbh.
[Xperia Z1 Compact Android Development] Tom2017:
Hi i use standard build variant. Additional i install open gapps and webview from google play (before install chrome show only white screen) . I try use proot from termux without root and with root (install Magisk by Twrp 3.4.0-1)

Termux proot is opensource and i can try modify memory offset in code and recompile . But i am not a Linux expert and i dont know how do it and create new proot.deb file
[Xperia Z1 Compact Android Development] MSe1969:
New builds available

Hi,

new builds with the August '23 ASB patches (Security String 2023-08-05) 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-20230815-UNOFFICIAL-signed-amami.zip/download

Security string 2023-08-05

System Webview 115.0.5790.166

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

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

Security string 2023-08-05

Mulch Webview 116.0.5845.78

@115ek - please update OP / Change log

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

Hi,

new builds with the September '23 ASB patches (Security String 2023-09-05) 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-20230914-UNOFFICIAL-signed-amami.zip/download

Security string 2023-09-05

Kernel security patches applied

System Webview 116.0.5845.163

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

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

Security string 2023-09-05

Kernel security patches applied

Mulch Webview 117.0.5938.60

Slightly hardened GPS config

Updated CA certificates

AuroraStore 4.3.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 October '23 ASB patches (Security String 2023-10-05) 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-20231014-UNOFFICIAL-signed-amami.zip/download

Security string 2023-10-05

Fixes for CVE-2023-4863 and CVE-2023-5217

System Webview 117.0.5938.140

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

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

Security string 2023-10-05

Fixes for CVE-2023-4863 and CVE-2023-5217

Mulch Webview 118.0.5993.65

microG 0.2.29.233013

AuroraStore 4.3.2

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] MSe1969:
@115ek - just noticed, that I missed to mention "microG 0.2.29.233013" in my Oct. changelog for the microG variant - I've edited my announcement post now, could you please also add this info into the "Changelog" post? Thanks!
[Xperia Z1 Compact Android Development] MSe1969:
New builds available

Hi,

new builds with the November '23 ASB patches (Security String 2023-11-05) 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-20231125-UNOFFICIAL-signed-amami.zip/download

Security string 2023-11-05

System Webview 118.0.5993.111

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

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

Security string 2023-11-05

Mulch Webview 119.0.6045.134

microG and companion app 0.3.0.233515

AuroraStore 4.3.5

@115ek - please update OP / Change log

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

Hi,

new builds with the December '23 ASB patches (Security String 2023-12-05) 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-20231218-UNOFFICIAL-signed-amami.zip/download

Security string 2023-12-05

System Webview 119.0.6045.134

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

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

Security string 2023-12-05

Mulch Webview 120.0.6099.115

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] lm089:
It's that time of the year to once again say THANK YOU to the both of you :love:
[Xperia Z1 Compact Android Development] peelie:
hi all

will this rom work with xperia z1?

thanks
[Xperia Z1 Compact Android Development] MSe1969:
No - this is the Z1 compact (codename: amami), the Z1 (codename: honami) belongs to the same device family, but has a (slightly) different device config.
[Xperia Z1 Compact Android Development] peelie:
ok thanks
[Xperia Z1 Compact Android Development] MSe1969:
New builds available

Hi,

new builds with the January '24 ASB patches (Security String 2024-01-05) 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-20240111-UNOFFICIAL-signed-amami.zip/download

Security string 2024-01-05

System Webview 120.0.6099.144

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

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

Security string 2024-01-05

Mulch Webview 120.0.6099.193

@115ek - please update OP / Change log

Happy flashing, regards, M.
[Xperia Z1 Compact Android Development] chalee7:
Great work!

It's amazing to enjoy LineageOS in an 10 years old device!

I just flashed two Z1c with your last image Form 11.1. with twrp 3.4.0-1/amami and ADB sideloading.

Did No patches like it's on page1 recommend in the perequites.

Everything is running stable and fine.

Just a Problem.with the time and date:

If i am just in flightmodus without LTE and WLAN on, the time and date is from 11.1.!

I troed with fix it in settings and twrp, but no Chance.

If i enable Internet the clock is going to synchronize.

The link to the timezone patch is leading to github like the other patches too, but there is no

File to download and no readme to understand how to install..

Would be great to know how to fix it.

Greets
[Xperia Z1 Compact Android Development] MSe1969:
Thanks for the positive feedback!

I am not sure to get your problem:

Yes, when there is no internet connection, the time can't synchronize, so the device has to rely on its own clock, which needs to be initially set. When I put my device into flight mode and the reboot, it remembers the time and keeps it after the reboot.

What could however be is, that after newly flashing the ROM (or an update), the date/time is reset to the ROM's build time stamp. Is that your issue? Then I have no good idea how to fix that...
[Xperia Z1 Compact Android Development] MSe1969:
New builds available

Hi,

new builds with the February '24 ASB patches (Security String 2024-02-05) 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-20240213-UNOFFICIAL-signed-amami.zip/download

Security string 2024-02-05

System Webview 121.0.6167.101

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

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

Security string 2024-02-05

AuroraStore 4.4.1

Mulch Webview 121.0.6167.164

@115ek - please update OP / Change log

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

But attention:

On 3 Z1c I have now longer access to android\data and android\obb, even with root.

Terrible :-(

I have to restore a TWRP backup.

Edit: after restoring a two days old backup access is ok again.
[Xperia Z1 Compact Android Development] lm089:
SD-card or internal storage?
[Xperia Z1 Compact Android Development] tramp20:
internal storage
[Xperia Z1 Compact Android Development] lm089:
yup, same here, with internal storage AND SD-card. Non-rooted device.

From my PC, using Win Explorer I at least see stuff within Internal storage, not sure about the SD card.

through adb I can see the base folders for each installed app under /data/ but nothing that's in there, Really strange...
[Xperia Z1 Compact Android Development] lm089:
omg, apps no longer seem to be able to store preferences...

Trying to restore now, unfortunately my backup is well aged... stupid me, I became careless lately 😖

UPDATE:

looks as if a Nandroid wouldn't have saved me anyways: somehow the update converted most of the project folders under \external_sd\android\data\ into 0 byte sized files. After attempting to restore my latest backup through TWRP I can no longer boot into system... (I'm not blaming the update, most probably I made some mistakes trying to get back to a working device...)

Lucky me this is only a secondary device with very few apps installed on it; shouldn't be too difficult to start clean again
[Xperia Z1 Compact Android Development] chalee7:
Yes, thank you. This is exactly my problem.

But i can live with this, if the Rest is stable.

Question: which recovery you exactly use?

Do you have a link?

And how to install the patches in your perequites recommendations?

Awesome: you serving the february update via OTA funktion. So great what you ve done! :)
[Xperia Z1 Compact Android Development] lm089:
There's a link in the OP in the FAQ section
[Xperia Z1 Compact Android Development] lm089:
be careful with that update, see posts above:

[ROM][Unofficial][11.0][signed][OTA] Lineage OS 18.1 for Xperia Z1 compact

This thread aims at providing LineageOS 18.1 builds for the Sony Xperia Z1 compact with current security patches. You can consider this thread as a successor of our LineageOS 17.1 thread, where you may also find some useful information. This is...

xdaforums.com

and

[ROM][Unofficial][11.0][signed][OTA] Lineage OS 18.1 for Xperia Z1 compact

This thread aims at providing LineageOS 18.1 builds for the Sony Xperia Z1 compact with current security patches. You can consider this thread as a successor of our LineageOS 17.1 thread, where you may also find some useful information. This is...

xdaforums.com
[Xperia Z1 Compact Android Development] chalee7:
Thank's for the warnings. I will test it .

For now seems to be everything stable and finé, except the time-switch Problem while beeing offline.

Tip: I did a factory reset in twrp after the upgrade!
[Xperia Z1 Compact Android Development] lm089:
Yup, did the same - afterwards. Strange only that so far I never problems with OTA on that device. Too late to find out what was causing this
[Xperia Z1 Compact Android Development] MSe1969:
HI, saw the discussion (had however no time to check before).

You mean internal memory or external SD ?

Anyhow, I don't have any issue on my own device (microG variant) and I did not do an OTA update, as I manually flashed obviously being the dev...
[Xperia Z1 Compact Android Development] MSe1969:
Of course you are free to do a factory reset on your own device, whenever you want - but this is normally not necessary for an OTA update from a previous build of this ROM (and also obviously not desired by most of the users)
[Xperia Z1 Compact Android Development] MSe1969:
Just to be clear to understand what issue you were facing:

You did an OTA update of the "standard build variant" and after that, you've had issues, so you assume, that something must be problematic with that last build?
[Xperia Z1 Compact Android Development] lm089:
exactly

Don't know. Might as well be I made some stupid mistake, or something was wrong with the current setup

Since @tramp20 reported something similar there *might* be something odd with that version, though.

Right now I'm more or less (rather less than more) up and running. Only problem now is that the TWRP installation isn't "sticky". i.e.:

I can do that fastboot "fastboot flash FOTAKernel" thing (tried first with Twrp V 3.4.0-01, then went back to V 3.3.1-04, both the link in this thread's OP), then boot to TWRP, reboot to recovery which gets me backt into TWRP. Then if I boot to system, then from there reboot to recoversy I always end up in the LOS recovery. Strange, never had that before!

Think something messed up real big on my Z1c, might as well start clean and from scratch...

> Reset to Factory settings > re-install january '24 ROM solved that
[Xperia Z1 Compact Android Development] tramp20:
@lm089

For me the ASB patches (Security String 2024-02-05) are the culprits.

Google wants to block the access to android/data even on older Smartphones :-(

Perhaps someone can look into these patches. If there is no solution I will no longer update my Z1c :-(
[Xperia Z1 Compact Android Development] greenflash1986:
Hi there,

I'm trying to install Magisk v20.4 (.zip from here) through TWRP 3.4.0-1 from @115ek but getting the error "cannot mount /vendor". I already tried TWRP 3.3.1-0.4 without success.

For me it seems that there is no vendor-PARTITION in LOS 18.1 although there is a /vendor-Folder present.

I installed LOS 18.1 (version from two or three months ago) via TWRP.

Is this problem related to TWRP or to LOS 18.1 or Magisk? Is there a workaround?

Was somebody able to install Magisk 20.4 or any other root-Method? I want to use titanium for Backups)

Thanks for keeping this device alive. ;-)
[Xperia Z1 Compact Android Development] lm089:
Indeed, there is something wrong here, be it the ASB patches or something else, idk,

Here's the situation right now:

after I managed to get the device back up and running using the January LOS build and TWRP 3.3.4-04. I dared another go at the February build. Downloaded the img and put it onto my SDCard (external_sd, setup as mobile card, formatted FAT32). Also downloaded latest available BitGAPPS (arm version for A11).

Made sure that /android/data on both Internal Storage and the external SD card were fine and accessible through my file managers (MiXplorer as well as the Android Files app).

Got into TWRP, did a factory reset, then flashed the Standard February LOS build

Rebooted to TWRP then re-flashed BitGapps, again rebooted to TWRP (to be on safer side)

Everything looked fine so I rebooted to system

Did the usual basic setup than allowed the setup to restore everything from my SeedVault folder, as I had done with the working January build clean install

When that was finished had a look at both instances of /android/data. Result:

on Internal storage the apps' folders are available through the standard Files app, but not for MiXplorer

on the external SD /android/data again was not available for MiXplorer.

Here the Files app is showing again, that almost all of the apps' folders have once again turned into files by the same name showing a size of 0 bytes.

Same is true for ADB.

If however I put the SD into a card reader and open it on my PC the app folders are still folders, but empty, of course.

What's worth: even the various apps can no longer access to their own folders under /android/data which prevents them from working properly.

I will now go back to the January build. I'm considering going the extra clean install like we have to do when coming from a different ROM (full wipe of everything).

@115ek and @MSe1969 - in case you want me to run some more tests: let me know; I'm getting into a routine now. Else I'll be sticking with the latest working build for now
[Xperia Z1 Compact Android Development] Scranalot:
Good Evening

Any other users i.e.

@android666​

@2faraway2​

@fineb​

@someone8​

@jfora​

@marsa47​

@Zastando​

@coolfranz​

@DeadXperiance​

@ARJ007S​

Had any of these issues with this latest update? :unsure:
[Xperia Z1 Compact Android Development] ARJ007S:
I am on February build currently, updated through OTA and so far its working fine so far. Applications are working properly and are able to store data in the internal storage. I haven't tested with SD Card at the moment though previously a while ago I had some issues with phone restarting after device setup which was fixed when I removed the SD Card.(Maybe it had some file on it which was causing the issue but didn't tried to after to check what it was)
[Xperia Z1 Compact Android Development] MSe1969:
Hi,

first of all - sorry for my delayed comprehensive answer - right now I do not really have a lot of time...

Also on the "microG" variant, which I have on my Z1c, the internal file explorer shows the described behavior on external SD card, whilst ok for the internal storage.

What you describe is in fact the result of the implemented fix for CVE-2024-0032 in the February 2024 ASB, see commits [1] and [2] . Android's storage concept in fact foresees, that the /Android/data/<app name>/ on the SD card is strictly reserved to the specific app - even in case of the manage all files rights.

The way I see it, when I look at the code changes, Google has closed some "loop holes", which have allowed apps to still access those places by their programmers being "creative". Whilst this may be wanted for you as a device owner to look with a file explorer app to see what is going on on your own device, a noisy app (like e.g. the Facebook app and friends from Meta or other questionable, shady apps) should simply not see any app's "private" data and make use of this information.

I however agree, that it is inconsistent to make a difference between Internal storage and External SD card. To be honest, I don't really care about MiXplorer at all, but if apps can't access their own data any longer, then this is a regression and hopefully fixed in the next ASB round (not the first time, that ASB fixes had to be fixed in the next ASB round).

I assume, that most people use the internal storage for private app data and only store truly exchangeable data on the external SD (most modern devices do not even have an external SD) and hence do not have a real issue.

If the observed behavior is not bearable for you, it is right for now to stay with the January version and not to waste any further time with this problem. When the March ASB is published, I will give you an indication, whether Google has applied a further fix.

Regards - M.
[Xperia Z1 Compact Android Development] lm089:
first of all - no reason to be sorry... ;). And many thanks for your answer.

I'm aware of the storage concept, at least partially. Thx for the "manage all files" link, btw, there was something new to learn for me.

now that's the point: its the apps themselves that choose to create their own private folders below /Android/data, on both Internal Storage and the SD. Problem arises when an app tries to store some stuff there and can't find its own folder because it is showing as a file now (that was the MixPlorer excperiment, btw...)

I'm aware you can't do anything here, so of course I'll wait. Honestly, I hardly use my Z1c these days, am even considering to donate it if I can find someone who wants it.

But before I maybe will try to go for a microG install, never had that before :cool:
[Xperia Z1 Compact Android Development] lm089:
slightly different topic: as I wrote above my z1c currently is unrooted but as I'm running some experiments I would like to gain root access temporarily. Unfortunately installation of older Magisk versions fails - I tried 18.1, 20.3 and 20.4.

Tried to flash the Magisk zip from TWRP but get a message saying that the Vendor partition cannot be mounted.

In the OP it says that versions > 20.4 don't work here; is that still true?

Any chance flashing Magisk onto the current build's boot partition?

Edit: I dared to not obey and flashed Magisk V27 - appears to be working.. 🤞
[Xperia Z1 Compact Android Development] MSe1969:
When we originally wrote the advice, it represented, what we were told by folks using Magisk. Neither @115ek nor myself use Magisk, so we've no real insight. Could be that a compatibility layer was brought back in or the not working situation after 20.4 was a meanwhile fixed bug? If it works for you, cool! Do let @115ek know, if the OP deserves an update.
[Xperia Z1 Compact Android Development] lm089:
maybe, but maybe not: like I wrote earlier: I currently hardly "use" the device, so I really can't say whether the combination is stable for everyone. And: the few people that are still using this device seem to be knowing what works and what not...

BTW: I sometimes wonder how many of these devices with this ROM are still running as a (more-or-less) "daily driver". Are you having an idea? I mean, it's just fantastic for a > 10 year old little device to still be running as it is. The applause goes to @115ek and you!!

(One of few reasons why I got me an OP6 a while ago was that the screen was getting to tiny for my ageing eyes :p)
[Xperia Z1 Compact Android Development] DeadXperiance:
I am on January build and use sd card as external . there isn't any issue about it, but phone is became very lagy when connected data or wifi network.
[Xperia Z1 Compact Android Development] greenflash1986:
Could confirm that Magisk version 27 is working by using Magisk.apk.

The app created the img-File from provided system image. After flashing the created img in "boot" partition with fastboot the phone was rooted with Magisk and TitaniumBackup is working.

Best regards and thanks to @lm089 for experiment with Magisk V27.
[Xperia Z1 Compact Android Development] tramp20:
Thank you for your motivating post.

I never could update Magisk since 26102, always I got boot loops.

But now with 27001 I was successful :-)
[Xperia Z1 Compact Android Development] MSe1969:
@115ek - seems you should update the OP...?