yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
Thank you for the quick reply.

The link you referred to regarding the

back up wasn't as simple was a whole ordeal to set up as far as could see with my limited knowledge.

If the updated version turns out not to change anything regarding the battery drain and slow activation for mobile data isn't there a way for you to look under the hood?

Using log or something?

It would be grately apriciated

Kind regards

N
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
No, not really. I don't use this ROM on my 'daily driver' phone, and the only time I encountered excessive battery use on an earlier build (actually it may have been a different ROM - I don't remember) it went away, maybe after a clean install, or maybe after uninstalling a rogue or buggy app.

The problem isn't happening for me, or apparently for other users, so it's a problem on your device and there's no point in me looking at logs from my device. And, to be honest, I don't have the expertise to look at logs and work out what might be causing a problem over several hours which would involve megabytes of log files.

The obly thing I can suggest is to install battery monitoring app or two, and see if you can use them to find which app ir system component is causing the battery drain on your device. I have used BatteryBot Pro from F-Droid. There are others iin the Play Store (which you can access using the Aurora Store app) that look interesting / useful, bit I have not used any of them:

Battery Guru

BatteryOne: Battery

AccuBattery

You can probably find others yourself
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Arcline:
The battery drain happened to me in the past and the only solution was a clean flash. I couldn't figure out the reason.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
I can confirm that the 20231214 rom update solves the microg problem. Many thanks for the fast update @petefoth ! I'm really glad that you are part of the XZ1C community.

As addition to your backup discussion: I was using titanium backup in the past but since it's not supported anymore I switched to Neo Backup (also available through f-droid store) and it's working great for app backups (root needed).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
Oke @petefoth so i reflashed your updated version setup up my device charged it until 100 and then left alone not touching at al i have been losing 2 percent an hour or 1 procent very 30 orso minutes. cant see anything that drains the battery because i havent used it strange.

I guess this is it for me sadly i like to use the latest android version and this latest one looks really nice also. In the telegram group for microg they advise to always use a rom that suports signature spooing or built for it like los formicrog then to force it using xposed/magisk so i guess i will use Flamefire rom he also has a for los for microg on andorid 10.

thank you
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Before you give up completely, you could try out my build for IodéOS, also based on the sources used in this ROM, and it also includes MicroG. I use it on my 'daily driver' device and I don't have any battery drain issues.

My build can be found at https://sourceforge.net/projects/pf-custom-roms/files/lilac/IodeOS/, and the latest build is iode-4.7-20231117-lilac.zip
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
I flashed it and then it bricked my device wth man?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Then either you didn't flash it correctly, of you flashed the wrong build or boot image or recovery image for your device.

And it's pretty hard to 'brickc these devices: it's usually possible to revert to stock firmware, though make sure you flash the correct version for your device!

Good luck!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
I just flashed it the way i always have done and have done several times the last couple of days ? without fault and now i flashed the file you posted it started ti bootl back in to twrp constantly and then suddenly stuck in a bootloop.

I have reflashed stock firmware using sony's emma program.

flashed twrp again via adb type command fastboot flash recovery recovery.img

I then try to go into twrp but it stays stuck on the welcome screen of twrp ???? i dont understand what is going on ?

Edit: i checked abd devices and fastboot devices command work they both see my device

Edit: i flashed a diffrent version of twrp and then it worked for some reason ? still dont understand what happend or why i cant get into twrp also some commands did not work hate being a noob in these things but hahaha

Edit: when i flashed rom and magisk i get this message in red i twrp

unable to create /data/media folder

unable to mount .data/media/twrp/,twrp

Failed to mount /data (invaled argument)

what does this mean ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Good you got that far!

I don;t use magisk, so you have moved my experience but....

it looks like you need to format (not just wipe) your data partition, then reflash the ROM: that ususlly fixes the bootloop problem. In T WRP - Wipe | Advanced | Format | type yes when requested.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
I have done what you said but it says it worked but when i try to go to wipe-advance- select dalvik,system,cache,data,internal storage and then swipe to wipe.

I get the following message in red

unable to mount storage

failed to mount /data (invalid argument)

failed to wipe dalvik

updating partition details...

failed to mount /data (invaled argument)

...done

unable to mount storage

what does this mean?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] victor126:
sounds like you have the wrong twrp version. just my thought.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
But i got from the site of twrp ?

Edit: the older twrp is what was giving me problems in the first place?

Edit2: reflashed older twrp then formated again this time no red letter but i get this in yellow

twrp will not recreate /data/media on an fbe device. please reboot into your rom to create /data/media

afterwards when i try to wipe os and what not for new rom i get the red letters again ?

Edit: now after i got the message above in yellow if i wipe system and what not in order to prepare for other rom i get this message in red

error opening: /data/media no such file or directory

seems i am getting closer which is good so what does this mean no data/media ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
It means that you have not formatted the data partition: you have wiped it, which is not sufficient.

My mistake - the 'Format' functionaity is found at Wipe | Format data (not Wipe | Advanced) . You will then see a screen with a keyboard, prompting you to type 'yes' to continue. Type 'yes' (without the quotes) then press the OK tick in the keyboard. If you're using TWRP (instead of the recommended PBRP) then the steps will be similar but may vary slightly. The important thing is that you must format the data partition.

When the formatting is done, your recovery should be able,to access the data partition i.e. /data/
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] victor126:
if you are using this 20 version you need the unofficial twrp in page 1
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
Yes this is what i did

@victor126

if you are using this 20 version you need the unofficial twrp in page 1

yes but @Flamefire also stated that the latest 3.7 works

@norabitox

yes that video shows what @petefoth said i should do and i have done.

Edit: i flashed the old twrp used format and then got this message in red.

E:unable to decrypt fbe device

however if i flash again i will get the old message again???
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] victor126:
if you are using los 20 try "twrp-3.6.2_12-0-20221002-lilac.img" from page 1
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
I have already tried no luck

Edit:

Oke so for reasons unknown to me no more error message after flashing

twrp 3.3.1 and flashing los 17.1 used it for a day and now the error message is gone dont know why ? now i went back to 3.6.2_12 which for some reason doesnt work anymore ?

so flashed twrp 3.7 and los 20 microg.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] victor126:
i had that problem before switching from twrp-3.6.2_12 to official versions

i had to power off then straight to flashing twrp using key combination like three times to get it working. each time powering off.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Sieglinde Festkochend:
Since Version 1.4 significant less Battery drain. 16 hours with V1.2, more than 48 hours now.

Dirty update from 1.2, everything is working: safetynet OK with Magisk and props, Banking APP (VR-Secure) without faults...

t-mobile LTE no problem

Many thanks for your Work!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
Alright so almost a year ago i started using the los 20 then used magisk and lsposed to get signature spoofing to work. This made it so that i took a small hit on battery life.

So now i found out there was a los 20 4microg so i uninstalled magisk and its components and then wiped it and flashed the 4micrg version.

immediatly i noticed excessive battery drain so i then tried the newer version same thing then i used on advice of pete iode os which it had the same problem.

So now i got to flamefire's thread and use his 17.1 4microg version same drain problem then i use the normal 17.1 the exact same drain problem???

Also whether battery saving mode is turned on or not makes no difference it is the same drainage.

I also used without putting back up back but no diffrence.

So it is definitely my devices fault i think.

So what could possible be the problem here? all of this started after i flashed the microg versions which increased the battery drain???
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] norabitox:
LOS20 has not been updated since August.

Is it possible to use MindTheGapps with 4microg ROM?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
Is that made by the same guy or someone else? Because latest update shows that it only has until 8th month. December update doesnt seem to be there. Also where can I see the change log for the updates? Anything major or just security patches? Also do you know if this phone will get android 14?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
No
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] norabitox:
I do not know.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Arcline:
Derfelot said he'll release a new A13 build soon and then focus on A14.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] victor126:
wow that was quick

Changelog:

v1.5 (2023-12-27):

Updated to December 2023 Security updates & any LineageOS changes

Updated kernel with LineageOS updates

NOTE: This will be the last update for A13/LineageOS 20. A14/LineageOS 21 will be next.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] victor126:
it actually detects mint mobile sim card now. i always had to manually set the apn until 1.5
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
By the way if anyone wants VoLTE/VoWiFi, I managed to activate it with Shizuku and PixelIMS app. It works flawlessly with this rom. I set mine to LTE only and it works. It might work on Android 14 too.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
There's a new IodéOS build, based on the latest Whatwurst sources and Android Security update 2023-12-05

* install with recovery iode-4.8-20231229-lilac.zip

* install with fastboot iode-4.8-20231229-lilac-img.zip

I dirty flashed it over the 4.7 build and everything seems to work
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] cincilin:
Hi, I don't have mobile phone service, there is no connection with the provider. Does anyone know of a solution to this problem. Thank you in advance!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
Which provider do you have? Do you use stock or lineage os?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] cincilin:
My provider is Handyvertrag.de - O2 germany-Telefonica-Netz. Bootloader unlocked and then Lineageos 20,( installed without root.) Everything works great but I have no connection with the sim card. This appears on the display: (attached photo) I start searching for a network and when it finds it, I get a message that it cannot be connected!

I found this modem configuration for sony on github, but I don't know if it is a solution and if so, how to implement this change. (config/modem/310/modem.conf - telefonica_germany_volte_vilte_vowifi )
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
Does the phone get a signal with default modem? Then you can just activate Volte with shizuku. Did you also activate reapply modem option?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] cincilin:
Thanks for your Answer! No signal! When I start searching, it doesn't find it

"Did you also activate reapply modem option?" : I will try
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
You have to press restore initial modem and state. Then it restores to default modem. Maybe youll get signal back.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] cincilin:
I switched between various network providers and suddenly it worked. Suuuper! Many thanks, greetings and happy new year 2024
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
Thats good to hear. Does VoLTE work tho?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
There's a new LineageOS for microG build on SourceForge, based on the latest Whatwurst sources and Android Security update 2023-12-05

* install with recovery lineage-20.0-20231231-4microg-UNOFFICIAL-lilac.zip

* install with fastboot lineage-20.0-20231231-4microg-UNOFFICIAL-lilac-img.zip

I dirty flashed it over the previou build and everything seems to work
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
How is microphone over speaker phone? I called someone recently but they cant hear me over speakers. Zero sound. I have to bring the phone close to my mouth completely.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Sorry - I don't know. This doesn't sound like something I can fix in my los4microg builds, which use the same code as the 'normal' LOS builds. IS it a problem in the normal build too?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
Normal build is fine. I switched back to it. Always worked flawlessly.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Which version of the normal build?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
This one.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
OK - I'll make a clean microG build and see if that improves things.

It should be available sometime tomorrow evening
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Where did you download the file from? https://sourceforge.net/projects/pf-custom-roms/files/lilac/los4microg/ is showing zero downloads. Were you definitely working with today's build?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
Previous page, Norabitox had posted one. Isnt that the same as the one you have?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
No. That version is from 14th December - the clue is in the name '...20231215...' :) - and uses the previous version of whatawurst's code. You need the '...20231231...' version from my post. I'll stop the new build
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
Aahh my bad. I didnt pay attention to that. Ill download and try 20231231 right away then ^.^
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] cincilin:
Yes, work! Best regards!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] wellwell999:
Where do I get the PixelIMS app/ What is the exact name of it?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
For me VoLTE & VoWiFi work 'out of the box' (with a SIM from an UK MVNO using the EE network). I can enable, disable and configure using Settings | Xperia Parts. No need for a third-party app
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Random Android User:
I just wrote pixel ims apk on google and downloaded it from there. I dont know if links are allowed to post. But i got it from here. https://github.com/kyujin-cho/pixel-volte-patch/blob/main/README.en.md
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
Where/when did he say this?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
In a github issue
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
For anyone who flashed los 4microg20231231 go to microg part and selfcheck scroll down you will see 1 check box not checked this is for picking microg over other apps. be sure to select this then you get a screen of apps where you select microg as it is not check as standard for some reason.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tonsofquestions:
I decided I wanted to try out this ROM. My understanding is that it needs a special recovery (linked in the first post) for proper A12 encryption support.

I've downloaded it and flashed, but can't seem to boot into it. I get the TWRP logo and version, but then it hangs.

Reading through the thread hasn't been super helpful - no clear answers.

I'm wondering if it's perhaps because I'm currently on stock (Pie) and so the recovery can't read both setups? I'd still expect to be able to boot in and wipe partitions.

Anyone have additional insight?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Pfrinz:
Thanks a lot, that seems to have solved the connection issues I had as well!

The hardest part was to get though all of this thread... ;)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Pfrinz:
Did this work for anybody?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Your build is working fine. Thanks a lot!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
Same was true for me after switching to a sim by Telefonica. Setup by provider took more than a day and during that, signal quality was a mess and most of the time, even login procedure was unsuccessful. I blamed my phone at first, but a day later, it just worked.

Yesterday, 3 months later, I saw the same phenomenon again for some hours. It "resolved" during the night and I am pretty sure it was not my hardware.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] anarki@butterblume:
I sometimes experience battery drain as well. The device even becomes warm on the bottom side. This happens occasionally since about two years. I was running Flamefires early 17.1 builds back then. Apart from that, my device had overwhelming standby time of 4 oder more days.

Now on petefoths build it also happens from time to time. Battery drain is reduced when in airplane mode (wifi is okay) and totally gone with removed sim. So I think this is a hardware or even firmware issue and may not relate to the OS.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tonsofquestions:
I can't believe I'm the only one who's run into this issue! Am I just missing something small?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
Have you tried to see what happens if you flash a different version twrp?

For example official twrp 3.7....?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tonsofquestions:
Yes, that one works fine for me.

But my understanding is that the official 3.7 version is incompatible with Android 12/13, and thus I need the unofficial one for that.

The first post specifically says

> Before first install: flash and boot into the TWRP provided in this thread

thus why I was trying to use it.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Arcline:
Yes, the official TWRP is version 9, which doesn't support decryption on Android 12/13, hence the need for the unofficial version.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tonsofquestions:
Right. And that one does't load for me - it's stuck at the TWRP splash screen - thus the question here.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] project_2501:
Data must be formatted and recreated in order for TWRP to mount it without issue. There are still issues present decrypting it between versions without formatting and there is a specific logical order to keep the encrypt/decrypt functioning properly. Try using version 3.6.2_12 first, only use 3.7.0_9 if you can't get it to boot at all.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
I have twrp 3.7 and flashed this android 13 los rom so i garantee it works.

Also for confirmation check out flamefire thread in his first post he also mentions this version works.

problem solved
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] project_2501:
My only question is: can you decrypt your data partition when booting into TWRP 3.7?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tonsofquestions:
Are you sure? The first post explicitly says to use the ROM linked in the post - which is 3.6, not 3.7.

I''ll try wiping data to see if that works, I hadn't thought of that; I've likely booted into the stock ROM at some point.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tonsofquestions:
Also, I'm not sure what gives you the idea that I'm flashing in any way other than fastboot - that was someone else in a different thread. I'm doing it the normal way.

Though it is worth pointing out that the FOTAKernel _is_ the recovery - at least on the Xperia devices.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] k_basara:
I'm using latest version of official TWRP for XZ1C and it works with this ROM. Except Factory Reset, which will fail. I guess it's because my XZ1C is a DOCOMO version one.

I'm also using latest version of official TWRP for XZP and it works with LOS20.0 ROM. Including Factory Reset.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Arcline:
If you're on Pie and want to flash LOS install TWRP 3.7 or you'll get stuck on splash. After installing LOS install TWRP from this thread.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] project_2501:
Bingo - that's the order needed to install properly (boot 3.7, format data, install 3.6, reboot to 3.6, install latest build). What I've noticed on this device compared to the other Yoshino devices is that data cannot be decrypted for a custom build within TWRP.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] tonsofquestions:
I tested again a little more, and I can confirm this was the problem.

I was not expecting the TWRP that could handle the 12/13 encryption to _not_ be able to handle the 10/11 encryption.

Oddly, the 3.7 ROM _could_ at least boot when it was on Android 12/13 ROM - it just couldn't decrypt the data partition.

At least I understand what I'm dealing with now and can explore the other ROMs. It's just particularly awkward when you have to re-flash to stock (Pie) between two different ROMs (e.g. lineage or eos) and so need to re-flash recovery in order to do anything after a system restore.

Thanks again!

Now I just have to figure out how to get back the old style of notification icons. I'd forgotten how asinine the change was after Android 12...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Why do you need to do that? I regularly swap between different ROMs for this device (los4microg, /e/OS, IodéOS, all Android 13 / los 20) and I have never needed to re-flash stock. I have been using `twrp-3.6.2_12-0-20221002-lilac.img` (the one linked in the first post) and it handles encryption with no problems