yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
Thanks! That did the trick for me too. Maybe it's a fixable bug.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
The new TWRP cannot decrypt the old format and it isn't allowed to do updates, this isn't a concern. Just flash LineageOS 16.0 and boot it and you're done.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] danish0175:
Pls can you make a zip of the firmware files to be flashed instead of the whole fw ,cus internet connectivity is really slow here !
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
Hi, is it just me or is anyone else still experiencing random reboots? I just have the phone in my pocket and it went off twice already :(
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
I've had that happen on me some time ago, but not for any of the more recent builds. please provide us with a /sys/fs/pstore/console-ramoops- next time it happens.

anything you were doing in particular when it happened?

---------- Post added at 06:51 PM ---------- Previous post was at 06:45 PM ----------

I can do that later, but only customized DE. i will start working on ims again soon. if want to have _any_ chance of it working at some point (volte, wifi calling, video calling) you will need to flash the oem from your region
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] danish0175:
Thanks , I bought the phone in Germany and currently reside in Nigeria, Africa.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
Hey, thanks for getting back to me on this. Just like with the previous releases, I had the phone in the pocket of my trouser. I realised only later that when I pulled it out I had to re-enter the SIM pin and then the pin to unlock the phone (required after reboot). That was twice this morning, but not after that. I will try to get the log after it happens the next time.

I came from your latest 15.1 release and went this way to upgrade:

1. Download latest firmware (29.04.) with xperifirm

2. Flashed everything that was downloaded with Newflasher

3. Flashed recovery TWRP 3.3.0.0

4. Booted, completed settings for first time, phone was running smoothly on stock ROM

5. Rebooted into recovery

6. Formatted data

7. Wiped everything

8. Rebooted into recovery, copied ROM and latest GApps (29.04.) to internal memory

9. Installed ROM

10. Installed GApps

11. Rebooted

12. profited :fingers-crossed:

I have rooted the phone with Magisk 19.0 and have the following modules installed:

Busybox for Android NDK 1.30.1

Systemless Hosts (for AdAway)

MagiskHide Props Config (I changed the phones fingerprints to XZ1C Pie in order to pass SafetyNet Check, ctsProfile:true since the change, which wasn't before)

Magisk hide is activated for two of the Google Play services (com.google.android.gms & com.google.android.gms.unstable --> idk, it was like this when I first checked and never changed it) and the app from my health insurance company in Germany, which is now working (wasn't without hide).

Any guess? Did you find out what caused the issue on your phone? Maybe it's just my pants being too tight / leg being too fat that I somehow manage to unconsciously press the power button while sitting... :eek: but unlikely, I have a pretty solid cover around the buttons.

Unrelated topic: I have to say that battery life is far more better than with any previous Pie ROM that I tried. Excellent job so far, thank you very much [MENTION=510787]Developer[/MENTION] team! :highfive:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
no, I don't know what fixed it in the end, but is possible that it was caused by selinux issues while it was still in progress (or any other issue that we fixed since then). we need to have a look at your logs if it happens again.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
Hi all, I have entered lock screen information but it does not appear on the lock screen. Can anyone re-confirm?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
I've uploaded the customized DE FW here:

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

---------- Post added at 04:33 PM ---------- Previous post was at 04:30 PM ----------

yes, it also doesn't seem to be sticking here. likely that's than upstream los issue, but not sure.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
The camera isn't working properly for me with LOS camera app. Sometimes it's working but most pictures are blank in the gallery. Anyone else has problems here?

Other than that I can already say that battery lifetime is just awesome! Great improvement to oreo.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Nouatik:
Big thanks! Just updated. Got problems with modem/wifi so reflashed all. Flashed nordic combined but now i cant use wifi. It shows available networks but i cant connect
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] andacro:
You need Customized DE which is 47.2.A.10.45. Nordic Combined's lastest is 47.2.A.10.28.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Nouatik:
Edit: solved

Did a clean wipe, everything works. Big thanks again!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
camera doesn't work properly

For my previous mentioned camera problems I did some further tests and figured out that saving to sd card is the problem. Saving on internal storage is working fine. Nevertheless I tried to create a useful log and attached a screenshot of the taken pictures which are shown in the gallery but not in the file manager (save to sd card option).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
I am fairly sure that this is an issue with how how snap handles access to the external sdcard. I just tried it with the stock camera, and there it works: after selecting the external sdcard, a window pops up asking you to grant permissions for external sdcard access, after that it works fine. Not sure yet if this can be remedied without changes in the affected apps (snap likely isn't the only one with this issue).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] CherAlban:
Could somebody please explain to me how I can upgrade the firmware without installing the stock image?

CherAlban
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] schmolch:
External sd-card access works on AOSP.

Komoot, Spotify, OsmAnd, Calimoto... all work fine using my sd-card (512GB Samsung).

https://xdaforums.com/xperia-xz1-compact/development/aosp-extended-rom-t3921269
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] lordnils:
Thank you for the suggestions! I have the exact same problem as described by Nouatik in this post: https://xdaforums.com/showpost.php?p=79712520&postcount=147 (Wifi disconnects frequently and no mobile no Signal at all)

I followed the steps you suggested but it didn't change anything. I wasnt asked the "Optimize for your carrier" question but forced it by putting in a foreign SIM but then it also didn't change the behavior.

I used the Customized DE firmware 47.2.A.10.80 / R3C, there is a Central Europe 1 firmware I could still try (47.2.A.10.107 / R1C) or the branded version (47.2.A.10.62 / R2C). Also while writing this I noticed a newer "Customized DE" (47.2.A.10.107 / R3C) firmware was available on XperiFirm which I just flashed but to no avail. I also tried the above steps again with this firmware and this time the "Optimize for you carrier" message popped up but it didn't change the result.

Is there anything else apart from a full wipe I could try?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
That will change soon ...

https://www.xda-developers.com/android-q-storage-access-framework-scoped-storage/
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
as a last resort, you could try the following. if your launcher supports creating shortcuts/widgets based on activities, generate one for customization selector -> modem switcher. start that and select the default modem (should be on top, amss_fsg_lilac_tar.mbn). it should then reboot. after reboot, select the one for your carrier.

I think I know what the problem is. after flashing a new modem, it is reset to default without modifications. if the message about restarting for optimizing network pops up, it should reboot and modify the modem. however, there also seems to be a check about which modern modification is currently used with a value stored in a miscTa unit. this would still have the value of the previous modem modification (which is not true, modem was reflashed to standard) and it would not be applied. I still haven't figured out how this value gets reset on stock (its different from the customization id, which we can reset with a .ta). I was going to check the content and size of the miscTA unit to write our own .ta for resetting, but haven't gotten around to it yet. it would also be nicer to figure out how stock resets this so we don't have to manually change the miscTA unit, but I am relatively sure it works via the master reset .ta and Sony settings, which we can't really port over to los.

as a very last resort, flashing the complete stock should always fix this - or skipping the modem at fw update (which is fine if there are no updates for it - some might also be security related).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] lordnils:
Sadly none of the two activities of CustomizationSelector (.CustomizationSelectorSUWActivity and .ModemSwitcherActivity) bring up any UI, Nova launcher just wiggles the icon and nothing happens at all. Logcat doesn't have any interesting things to say. :confused:

Would it make sense to downgrade only the modem.sin to an older version?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
strange. using nova myself and it works here. no selinux denials in dmesg either? its trying to read/write from/to /cache/modem iirc. maybe if you temporarily set selinux to permissive (in terminal, "su" followed by "setenforce 0").

flashing an older modem won't help I don't think.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] .kaputnik.:
Planning to try LOS 16.0 on my phone, currently on 15.1, once RC3 is released and NFC is working as intended :)

Perhaps a stupid question; is the upgrade of modem firmware etc, mentioned in the upgrade instructions, done by the LOS 16.0 installer, or do you have to manually extract modem*.sin and so on from the corresponding stock rom, and flash them separately?

Thanks in advance,
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] lordnils:
No this doesn't change anything.

Did you just add a widget and select the activity from the list or is there another way maybe? But yeah it's strange that logcat does not contain anything, only some messages from SurfaceFlinger and the likes.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
Firmware 47.2.A.10.107

Hi, I just repacked current FW files for the XZ1 Compact since it probably will be the matching FW for RC3. I also uploaded them for everyone who wants to spare some traffic.

https://androidfilehost.com/?fid=6006931924117936003
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
I have found a possible bug: when using the AsciiCam app the camera is extremely laggy.

Lemme just summarize the bugs I've found and reported: [MENTION=4297219]modpunk[/MENTION]

-Here WeGo maps is not working

-Ambient display is disabled

-LightDisplay colors for night aren't as red as they should be (hopefully this is fixed now as part of the 'Fixed live display issues' in RC3?)

-AsciiCam lag, as I just mentioned
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] lordnils:
While preparing for full wipe I noticed the following entries in logcat:

Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1531 android.content.ContextWrapper.startService:664 android.content.ContextWrapper.startService:664 com.sonymobile.customizationselector.EventReceiver.onReceive:60 android.app.ActivityThread.handleReceiver:3417
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
Yes, livedisplay should be properly fixed now in rc3, including the offset color temperature ("too blue" overall sometimes). With that fix, the color profiles ahve also returned and picture calibrations (contrast, saturation ,etc.) also work again. As for the camera, we also fixed up the media_profiles in rc3. Test again there and see if the issue persists.

Those messages are relatively "normal" after boot. I don't know why the CS isn't starting for you. I would recommend doing a flash of stock (maybe already the new .107 version - then you are ready for RC3), and use the ROM from your region. Also, let the stock reboot after it throws that "rebooting for carrier optimization" window. Then flash LOS cleanly and everything should be OK again, including working IMS. I'll have a look at these annoying modem issues soon.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Lemmiwinks86:
Thanks a lot for the upload!

The other firmware I flashed before included the file "persist_X-FLASH-ALL-C93B.sin". That one is not included in your zip. Is this normal?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
I also noticed that the file exist on older FM packages. But looking at the intructions from the first page it should be deleted, so I did it. Please correct me if I'm wrong.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] modpunk:
I've uploaded RC3. Have fun.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] beggar23:
Nice. Even the Sdcard notification is finally gone.

Thanks a lot anyway, [MENTION=4297219]modpunk[/MENTION] and [MENTION=4063475]derf elot[/MENTION]!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Hey thanks for uploading RC3. But I can't install anything because in my TWRP all files and folders are encrypted with random names. How can I fix this?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] jgougos:
RC3 is a great ROM... thank you.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] T_Tank:
Will have to wait a bit till customized us drops for 107 before flashing rc3 as I somehow got tmo USA volte/vowifi working without issue on rc2
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] _Mdroid_:
Thank you for RC3, works great!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Dean F:
Hi.

1. The original post says NFC not working, yet a response below says 'fixed nfc'. If NFC is fixed , then suggest update the original post.

2. Google Pay. Has anyone got any information regarding Google Pay and this ROM? If so, can we here your experience?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Lemmiwinks86:
double tap to wake

[MENTION=4063475]derf elot[/MENTION]: two days ago these was double tap to wake listed as a new feature for RC3. Now it is gone. What happened to it?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
Great Update. Really smooth and stable so far. I can comfirm that livedisplay is finally fixed now.

I also tested the cameras and their sd card write ability again. I deleted the data from both cameras first.

sony cam: Pictures taken with rear camera can now be saved on sd card again (sadly without preview picture so I have to manually change to the gallery). Pitures taken with the front camera aren't saved properly on sd card but curiously enough I get a preview picture here. When I tap on it I only have a blanc picture.

LOS camera: Still no saving on sd card possible. Does that mean in consequence that the LOS team is using a buggy or outdated method for sd card accessibility on their own camera app?

Thanks again for this great rom! Hope that there will be native microg support at some point. :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
looks like you are not using the right twrp version which can decrypt data.

yes it can probably be removed there. all I could test from my side however was reading some tags (like public transport card or my passport). if writing etc. work I can't tell.

our clearpad isn't working well with this feature enabled. it would cause it to no wake up with the screen sometimes. so unless we can find a fix for it, it looks like we can't really use it as intended. I myself am not using this feature anyway, since from experience my phone would also randomly wake up in my pocket. other phones have the possibility to use the proximity sensor to prevent this from happening, but I don't think we can.

yes, this problem also exists in snap from los side. there are a couple of fixes up on los gerrit that would actually make it work, but they have been rejected because it's not the way google has intended it to work. from what I know, nobody with a phone that uses an sdcard has looked into how to do it properly yet.

as for the stock can, you can change the preview in the settings from front only to yes.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Thanks, I was using an older TWRP, flashed RC3 now!

Thanks devs for making RC3! Good to see Night Light and NFC functioning well now. Unfortunately, Ambient Display is still disabled. Is there any reason why that is the case? The other two issues I found are still present, lemme summarize:

-Ambient Display is disabled

-The camera in the AsciiCam app lags

-HERE WeGo maps app doesn't work (gives error "Make sure the memory card is in your device")
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] XDA-shark:
Just updated to RC3, working smooth so far. Thanks a lot to the devs!

The only thing that is still not working for me is IMS (VoLTE and VoWiFi). I updated the firmware to 47.2.A.10.107 as per the first post and used the "Customized" version from my region. Still no luck. It worked in 15.1 Beta8, so my provider must support it. Is there anything I can try/do on my end or is it simply not fully supported so far?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] .kaputnik.:
Thanks for RC3 :)

Trying to upgrade from LOS 15.1 beta8, looks like I've run into a little catch-22.

TWRP 3.2.3 lets me decrypt the internal storage, but will throw me a "Zip Treble compatibility error" message when trying to install RC3.

TWRP 3.3.1 would probably let me install 16.0, but won't ask for the decryption password at boot, and cant seem to find any other way to enter it.

How to go about this? Could definitely use some advice here :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
Open the zip file and delete the "Compatibility.zip" within it. This will prevent the error from appearing and allow the flash to go ahead.

In my case, TWRP 3.2.3 couldn't decrypt it. I downloaded the latest one, 3.3.1, from the link from Page 1, which asked me for my password (basically my Android PIN) and it decrypted successfully.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] .kaputnik.:
Thanks a lot man, that did the trick! Got RC3 up and running now :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
By the way does anyone know how to get Snapchat to log in? It needs to pass SafetyNet test right, how can I bypass or pass it?

No problem dude!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
Time is the main reason. keep in mind that both modpunk and I do this in our free time. it shouldn't be too difficult to enable (just needs some overlay additions) but it also requires some testing with different options. will try to look at it for the next release.

---------- Post added at 04:33 PM ---------- Previous post was at 04:28 PM ----------

the main issue here is that with every modem flash, ims will stop working. that is because the modifications to the modem, required to get ims to work, don't get applied currently. you can read a few pages back where I explain what I think the reason is.

one sure way to get it to work right now: do a clean flash of stock from your region, let it reboot after the initial setup to apply "carrier optimizations" (one of those is the modem modification). then cleanly flash los, without flashing a modem again.

will also try to look at this for next release, so we can flash new modem without loosing ims or causing modem issues/WiFi disconnects (like described a few pages back as well).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] XDA-shark:
Thanks a lot for the explanation. I wasn't aware of the discussion a couple of pages back.

A clean flash is not an option right now, so I'll stick without IMS for the time being.

Edit: Followed your instructions further up to flash modem.sin and cust-reset.ta. The phone did tell me it was rebooting to optimize for my provider, but still no IMS.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
I understand the time taken for development. It's just that I didn't understand the reason why Ambient Display is disabled. The others are bugs which obviously take time to be fixed, but Ambient isn't a bug but merely a feature that isn't enabled in the build.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
OK, looking forward to your PR then.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] DerSteppo:
Ahoi, thanks for RC3, it works great! I had to do a clean install, because NFC was not working properly after dirty-flashing (menu was there, but all greyed out and not click-able :confused:). Now I got Google Pay working again, which is nice and convenient to have.

The random screen wake-up for no reason-behavior still persists, maybe this logcat can help to find out what is going on.

Can someone else try to get the cLock widget working with the openweathermap apk from the LineageOS website? I get force closes. I registered on the website and entered the API key, but it would not recognise it (pending). Also, the calendar entries flicker, so I only use the clock on the home screen. Would be nice to have all three functions available.

Apart from that, great work as usual. :good: Many thanks!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] flameseewa:
There might be an issue in the build related to controlling the notification light. I like to use an app called LightFlow that lets one make custom LED notifications. On the XZ1C though the light doesn't seem to work. Within the app you can test a notification setting but it never actually lights up the LED. This could be related to some sort LED control issue from apps (the light does work when e.g. Charging).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] drissie:
Firstly, massive, massive thanks to modpunk and derf elot for the OS (and TWRP)!! It took me a while to read up enough on everything I needed to do, so I only managed to install RC3 a couple of days ago, but I'm so happy I did and it works beautifully. I have been able to do everything I've needed so far and I haven't had a single issue. Thank you so much for your work!

Thank you so much for this and for the little workflow you posted in response to someone else's question, they helped me a lot. You are right - it is much easier than it sounds, even for someone like me who's last typed a command in Command Prompt in 2007 or something... I'm sure I've made some mistakes (e.g. 2/3 DRM Keys say "not provisioned) and I got stuck a few times, but in the end it all works :victory: So if there is anyone else out there who's hesitating, I'd say go for it - everything you need is somewhere in this forum, just look for it :)

Last but not least, can someone please educate me what the etiquette is for donations to devs? I googled it, but couldn't find anything useful. Like, should I always donate/support? What is a reasonable amount? Thanks a lot in advance for any tips.