yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Ermann123:
Hi!

I recently experienced strange behaviour with my SD card:

Some folders i only can access whith e.g. ghost commander in ROOTED mode.

So, that also meas, that previously saved data on the external SDcard cannot be accessed by apps like maps/navigation. I am not sure, if it is casued by the system or the SD. Anyone also had encountered this issue?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
That happened to my first XZ2 Compact a couple of years ago after 2 years of heavy usage. That was before I installed a custom ROM. In the end, I broke the phone while attempting to change the battery.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] AgentOrange96:
I updated today from a March build to the latest weekly, and I now cannot use mobile networks. Which is absolutely critical. I use Verizon. I'm getting a popup in my notifications from Open Devices ModemConfig that says:

Slot 0

Modem Configuration: S8620.1

Firmware file: default

I just tried reflashing, so now I've lost all my data and I'm still without a usable phone which is really not how I wanted to spend my Wednesday night. It looks like a lot of changes were made for the April 8th build for the modem, which I suspect might be the issue. Unfortunately, there are no older builds available to download. So in the meantime I guess I need to flash something else because I absolutely need my phone to work.

Has anyone else had similar issues?

@dtrunk90, While I am very upset and stressed about this situation, I do understand that you are working on this on your own time and that you probably have no control over how long builds stay up on the Lineage site.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
****, I've had that exact same message and have had mobile network issues which I've been temporarily fixing by going into airplane mode. I thought it was a problem with my sim card.

If anyone has an stable older build, please post it here!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
I have an April 1st build here on my computer still

I have an April 1st build. I just created an account on Android File Host and am awaiting approval for upload privileges.

Can you remember whether your phone was running the latest official firmware prior to installing LineageOS? I'm asking just in case there is a need for you to download the latest stock firmware (I use Xperifirm client) to return the phone back to stock before installing LineageOS
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] AgentOrange96:
Thank you! I believe mine was, since the guide said to do so. At least latest at the time.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] AgentOrange96:
Welp... I tried to flash back to stock firmware in the meantime, and now the phone won't turn on or even respond to anything. It just has a solid red LED whether plugged in or not. No way to put it into fastboot. I think I'm royally ****ed. This is not how I wanted to part with my XZ2C ):

I'd try removing the battery, but you know, god forbid that be an option.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
We have to add configs for S8620.1 - I'll check the stock firmware files and add them if i can find them. So next or second next build should be fine for verizon (S8620.1) again. ModemConfig was added because VoLTE wasn't working without flashing stock and enabling it manually. People were complaining about this and that's why I've added it. But there still seems to be some configs missing. It's easy as this to get them added: https://review.lineageos.org/c/LineageOS/android_device_sony_tama-common/+/329928

Sorry for the inconvenience
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
The red led might mean that the device is in "flashmode". Have you got the Sony newflasher tool?

https://xdaforums.com/t/guide-downgrade-xz2-commpact-from-android-10-to-9-locked-bootloader.4071111/
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
You could have just waited one day. Next build for xz2c is tomorrow and i can add the modem configs later.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Done. Modem config files for US verizon were added: S8620.1 and S8620.2. Next build will include those. So for xz2c this will be tomorrow.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] AgentOrange96:
Unfortunately newflasher and flashtool do not see it, and I don't even see it in device manager ):

Maybe I'll be able to do something once the thicc battery dies. But that's going to take a very long time.

Unfortunately, I do need to be able to receive calls and text in this timeframe. But the timing is soooo unfortunate! Thus why I tried to downgrade which I've never had issues with before. This is the first time I've bricked something. Once the stakes are high of course.

Thank you! I may not be able to try it any time soon if at all, but I do appreciate it nonetheless! Hopefully it'll prevent headaches for others.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
You can force shutdown the device by holding vol+ and power until the device vibrates 3 times. first it vibrates 1 time and then after a couple of more seconds it will vibrate 3 times.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Anyone else experiencing similar battery life? 3 hours of use seems a little low.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Amunhateb:
yes, many people are. Dev is aware, lets hope he'll fix it anytime soon.

@dtrunk90 I think now you can confirm that it's not a hardware issue.

Just a clue, not sure that it's related. VPN (mine is openvpn) may start this power consumption. I noticed it today that until I started my vpn it was okay battery wise. After VPN start device started to heat insane and VPN stoppage didn't fix anything it ran out of battery in 1,5 hours. Could be just a coincidence. I see that on screenshot VPN is also being used.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Good to know I'm not going crazy or have hardware problems. Honestly tho, this is a wake-up call for me that I need to move onto a new phone.

Anyone got any suggestions for a similar-sized phone? The new Sony's are tall boys lol
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Amunhateb:
I have my eyes on Xiaomi 12x or 12. Pretty compact and powerful.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
Xperia Ace 3 is soon to be released or Galaxy s10e Exynos. If VoLTE is important you could do what I did and buy another Xperia XZ2 Compact on ebay or somewhere.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Thank you! I'll give the Galaxy s10e a try.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
For experimental purposes, here is the official build from April 1st. You need to unzip the file before flashing.

Downloads for : Sony Xperia XZ2 Compact Dual | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Ermann123:
After formatting the sd card and disabling all magisk modules, the problem still persists..
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] AgentOrange96:
I tried that. It won't even respond to that. That's how I knew it was megabricked. I've never seen anything like it. I now have a OnePlus 9. (My first thoughts upon seeing it where the "Oh **** its so big" meme) But I definitely would like to get my Xperia going again.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
I believe the issue you have might be due to an upstream Android update a couple of weeks ago with how external storage and permissions are handled. I noticed it when my Sony camera app stopped working with the external storage.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
I might give the Galaxy s10e Exynos a try. The XZ2C will make a good phone for vacations.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Has anyone got Lineage OS working with the new update? Also, should I be concerned that the updater app keeps crashing after installing?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Or a Pixel 4a, if you can still find it. A bit lighter and a more polished OS than the S10e (which is great - I have both, as well as the XZ2c, which btw works superbly with the official LOS 18.1 by Oliver).
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
I never encounter issues with the in-system update process and i'm updating my device every week.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
I get no data with the new update. Battery life is single digit percent better.

I do not recommend anyone update to this latest version.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
I don't have any problems with mine except dual SIM with microSD but so far, battery life is okay...

Almost a day long for a battery with 50% health left since launch
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] benh77:
I've been doing weekly updates for months and battery as good as ever. Even on days when I use heavily it lasts all day no problem.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Amunhateb:
If battery life would impact everyone then dev would be more responsive. Bug usually takes a small amount of people.

For example I would never use VolTE but that doesn't mean that this feature bugs should be ignored.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Flopinours:
Hi there !

I just created an account because I can't install LOS on my newly acquired xz2 compact.

I search over the web and in this particular thread and couldn't find a solution.. So I decided to write this.

I bought it two days ago (second hand) and it was under android 9 which I upgraded to 10 via flashtool (the official app told me that my phone was already up to date).

I followed the official Lineage installation process here --> https://wiki.lineageos.org/devices/xz2c/install

Then I unlocked successfully the bootloader, and the problem started when I needed to "Temporarily booting a custom recovery using fastboot".

I've put the "fastboot flash boot lineage-18.1-20220506-recovery-xz2c.img" command and received this output the first time "fastboot: error: Failed to identify current slot" and then from the second this one "

fastboot: error: boot partition is smaller than boot image"

Searching over the web I tried to change boot to boot_a or boot_b with no success..

Did someone had the same problem as me ? Or can help me with that ?

Thank you anyway for reading this !

My specs :

- Xperia xz2 compact model H8314

- Android version : 10

- Android build number : 52.1.A.3.49
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Raphos:
Hi Flopinours,

You can try here : LineageOS 19.1

It's just working fine !

If you really want to install Los 18 you can use this Twrp recovery for Android 10/11.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Use the installation procedure on the official LOS channel for 18.1. But before you do that, make sure you follow these steps (I know you have already installed A10, but make sure the protocol below was followed, incl. booting to apps):

fastboot reboot bootloader

fastboot --set-active=a

fastboot reboot bootloader

fastboot getvar all

> in flash mode > Flash stock ROM with newsflasher [answer p, then n] > boot to apps

fastboot reboot bootloader

fastboot --set-active=b

fastboot reboot bootloader

fastboot getvar all

> in flash mode > Flash stock ROM with newsflasher [answer p, then n] > boot to apps again

Hope this helps.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Flopinours:
Thanks for the reply, but sadly it seems that it needs los recovery that i can't install.. I'll try with twrp if i can't deal with the help below yours.

Cheers!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Flopinours:
Thank you! I'll try this tomorow and post the result, have a good week end :)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Flopinours:
That done the trick ! Thank you very much, now I can enjoy LOS on my phone :)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zynexiz:
Have anyone manage to encrypt external storage? I just got a 256GB micro SD card, but I can't find a way to secure the data on it. I don't want all my pictures or documents to be open to the world if I somehow loose my phone. One way would be to expand the card as internal, but that option if grayed out for some reason, and there doesn't seem to be a way to use encfs on the external storage at all (or FDE for that sake). In 2022 data at rest encryption is a pretty crucial thing to have IMO.

[EDIT] Found a way to enable adoptable storage thru ADB with sm list-disks then sm partition disk: x,x private and sm set-force-adoptable on. After a reboot the option to use the card as internal storage was enabled. https://www.nextpit.com/how-to-format-microsd-cards-as-internal-storage
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Is there a possibility to replace the recovery with TWRP?

I kinda managed to get TWRP installed... on slot A but slot B have the Lineage Recovery and BTW my TWRP on slot A is bugged, doesn't boot up properly, I even don't know which one I should choose 🙈

My first time handling devices with multiple partitions (I guess)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
Just an update: battery life seems to be better. I still have problems with data.

I just purchased an S10e based off the recommendations above. Whoever's running this rom, great job. You made this phone last for me longer than most other phones I've used. I'm going to keep my XZ2C as a backup.

Thanks for everything.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] House3272:
Having issue with microphone during call.

It's super low and inaudible unless I talk directly into the mic on the bottom loudly and close up.

But microphone itself is fine I think, using the recorder app, recorded volume is normal.

Any ideas?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
I had a similar issue while my XZ2c was running the stock OS, had to open the phone up to replace the microphone which then fixed it. It's worth replacing the battery during the process if the phone is opened up. If possible, I would try to temporarily reinstall the stock OS to try rule out any possible hardware failures before attempting to open the phone up though. It is very easy to ruin the display panel by poking the thin plastic sheet too far under the display. I've ruined 3 out of 5 display panels this way on various phones and had to buy replacements.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Cerhio:
For anyone thinking of going to the S10e as your next compact phone: don't.

I just purchased one and promptly returned it. The battery life was atrocious. I was loosing a percentage of battery every few minutes just browsing the internet. I can't imagine getting through a normal day without having to charge it at least twice.

I might try and wait for the Android 6A as it's relatively compact and cheap and has a decent battery. Does anyone have any other suggestions for a compact phone?

Finally, apologies to the developer of this rom. Your work is amazing. I'll take these minor data issues over horrible battery life any day.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] House3272:
Nah my physical mic itself is fine. Recorder app works no problem.

I'm already needing to replace the display, so probs will look into the battery just in case thanks for tip.

But my issue turns out is with T-Mobile.

The stupid sim only works for like 15 seconds and it only works after I put it in my Xz1c, boot, then take it out and put it in Xz2c haha.

I thought the VoLTE problem is fixed in Lineage 18???

Anyone else using this rom with T-Mo in the US?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
There are two microphones. It's still possible one of them is not working despite the recorder app working. There's a handy app in the F-Droid repository called Fairphone Checkup which tests each microphone separately.

Can't comment on VoLTE as I have a budget carrier which drops back to WCDMA for calls.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
I'm off topic as this is an XZ2c thread, but my S10e battery is way better than the one you had. Nevertheless, I miss using my comfy XZ2c as a daily driver while I'm messing around with an unofficial LineageOS 19 on it and frequently performing factory resets.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Same here. My S10e lasts one day of moderate use (and I always charge it to 85%). Plus it gets its monthly updates regularly and Samsung's A12 (much as I dislike OneUI in general) has the nice old regular quick tiles, not the atrocious bubbly design. It's a bit too large, but considerably lighter than the XZ2c, has a jack, a fast SD, generous memory, and takes very good - if oversaturated - photos.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] House3272:
Dude thanks!

Primary mic was in fact busted on that phone.

But thankfully all working fine on my second one.

T-Mobile still booting me off into Emergency Calls only mode for some reason, but at least the mic issue I know is separate now. Thanks.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] q4q9x:
is there any particular OpenGApps which is recommended for use with this ROM?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Always used pico without issue.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Satusbar:

Anybody encounter similar alignment issue when enableing traffic monitor?

It seems to be always placed center aligned, irrelevant what other symboles are shown (right aligned)

(German UI)

Settings->System->Statusbar->Traffic Monitor
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Have a question;

What are these DSUs and why are they only for Android 12 and 13 (according to Google own repository) :/

S3B1 is Android 12

TPBB is Android 13
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
Yes, this little quirk exists on various devices I've installed custom Android operating systems onto. It also happens on Android 12
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
I learnt from here: https://developer.android.com/topic/dsu

that Dynamic System Updates is a feature to be able to install a Generic System Image, a generic Android operating system.

The GMS options in your screenshot are the versions which include Google's system services. The DSU Loader option is not only for the XZ2 Compact, but is also generally found in LineageOS across multiple devices and some other operating systems which support Treble. There are YouTube videos which show how it works.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
So basically with LOS 18.1 (Android 11) I can "test" Android 12 and 13 from Google just for fun and then switch back to LOS without any kind of risk...

A feature from Google, not intended but also not blocked by Lineage OS because of reasons (?)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Hi @dtrunk90

Comming from 'lineage-18.1-20220603-nightly-xz2c' I ran into troubles with latest 'lineage-18.1-20220610-nightly-xz2c-signed.zip'.

The in-system-updater performed the update but after restart it could not boot properly.

This leads to recovery (18.1 20220610) asking for retry or factory reset.

If i want to install the zip manually within recovery the verification failed with message:

Package is for xz2c but expected H8324.

It looks like recovery got updated correctly but there are issues with the rom package.

I wonder because there are no differences listed at los changelog.

Now i have troubles to get my device back running without data loss.

- Tried to flash 0603 from sd zip and adb sideload on recovery 20220610

- Tried to flash 0603 from sd zip and adb sideload on recovery 20220603

but always ends at the recovery Try again or factory reset screen. :-(
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
The good thing on A/B devices is you could switch slots and get back to a running system. But since you already flashed stuff again this is not possible anymore because both A and B slots are broken now. You could try to enable ADB in recovery and make a backup of your data. We're official on 19.1 since today and there will be no more 18.1 builds anyway.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] FoobyKamikaze:
So I was able to buy a new XZ2C Rev2 H8314, my first smartphone. After two weeks of troubleshooting with Metro by T-Mobile in the USA it was only ever able to connect to their network twice on June 16th and 17th The first time I was on LineageOS 18 and after I completed the first call it was kicked back off. The second time was on the stock firmware which was Canada 52.0.A.11.32-R4B, never all but voice calls worked and was connected for about 7 hours until I turned off the phone to go to sleep and in the morning 0 bars and "emergency calls only". (that firmware seems to be the only version that I tested with full VoLTE enabled and toggle-able in the settings and service menu)

I tried Consumer Cellular with the stock Canada 52.0.A.11.32-R4B, and the phone instantly connected to the network but could not make calls. Attempting to do so resulted in immediate "call ended". I tried LineageOS again yesterday (6-10 build) using the most recent USA firmware on xperifirm, 52.1.A.3.137-R7C, but had the same issue with voice calls failing immediately with "call ended". I also saw a notification that said "slot0, modem configuration 28957.1, firmware file default ". I noticed something in this thread about adding modem configs so today I flashed the UK customized version which I had seen mentioned, 52.1.A3.49-R6C with the same result but the notification has changed to "slot0, modem configuration S263.1, firmware file default ". I have an old Iphone 6+ which does work fine with the SIM.

Is there something else that I am missing? I know I am out of my depth, had to figure out emma, xperifirm and newflash as well as unlocking the bootloader for lineageOS so I could have missed some step. I had issues with the google apps using the "mindthegapps" link as it would get stuck in a loop trying to copy files from an XZ2 Compact device without an option to say no, the Open GAPPs nano worked fine.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Both S28957.1 and S263.1 configs are missing. I'll check later if i can fetch them from the stock firmwares so they're available with the next 19.1 build. 18.1 is not officially supported anymore.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
I've downloaded ALL 200+ latest tama (xz2, xz2c, xz2p, xz3) stock firmwares now and extracted all the modem configs out of them to add missing ones: https://review.lineageos.org/c/LineageOS/android_device_sony_tama-common/+/333483

But still, there was no S28957.1 and no S263.1.

I don't know where to get them from.

If you know how feel free to add them: https://wiki.lineageos.org/how-to/submitting-patches
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
This thread is unwatched by me now since there are no more official 18.1 builds. Pls move over to the 19.1 thread. Thanks.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] landsome:
Hi! Any chance to find somewhere for download the last LOS18.1 build (and associated recovery)? Thanks.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Downloads for Android Devices by dtrunk90 | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com