yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Rrreutel:
From what I can see, the lineage-20_old branch was maintained until end of july, it includes CIP-st42.

The new lineage-20 branch is in unknown state, because it's based on common-kernel it's probably updated once in a while by a lineageos maintainer. Flamefire commented that they probably apply single commits/patches (from the CIP updates or other sources) one at a time, so it's hard to tell the state it's in currently in. Derf mentioned that he hasn't applied CIP patchsets yet to lineage-20, because there's some testing to do before that, so it's likely still incomplete and lagging behind. When I diff the current state against the lineage-20_old branch, there's about 18000 files in the kernel tree with differences IIRC from a few days ago, quite a lot.

Since the lineage-20_old branch is what's been in use up to the end of july 2023 for Derf's releases, I'd say that branch is probably more stable than the current linesage-20, despite the fact that it's missing a few months of TLC by now.

BTW The current lineageos-20 branch builds and runs as far as I can tell, it's just in an unknown incomplete state.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
What is CIP & CIP-st42?

CIP in this context being `Civil Infrastructure Platform` as in https://gitlab.com/cip-project/?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Rrreutel:
Yes, that's it. They have taken it upon themselves to maintain kernel version 4.4 (amongst others) with security fixes upto 2027, despite it having reached EOL early 2022. When you look at the CIP tags you see tags like 4.4-st45 providing updates and security fixes, those tags can usually be merged into derf's kernel.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] dirsu63:
Hej,

finally, I was able to flash my XZ1 Compact with the latest release from here.

Looks quite nice and, after a short period playing with it (using WIFI), I like it ;)

After I was able to move all required accounts/permissions(banking, etc. and a view tests, I wanna start using it as a phone as well ,)

Unfortunetaly, after I insert the Sim (Germany, Vodafone, E-Net), it is not able to connect (Message "Service not available"). Is there a way to fix this ?

BR
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] kevneh:
Thank you all! Unfortunately I had the same issues and it didn't work out...

18.1 from here -> mobile network and data is working

19.1 from here -> mobile network and data NOT working

20.0 from here -> mobile network and data NOT working

Since I installed Lineage OS 18.1, 19.1 and 20 through Havoc 4.19 I am not able to go back to Havoc 4.19.

I erased all and wanted to install Havoc 4.19 from SD card again. TWRP says the installation was successful but in the end it doesn't boot and starts TWRP again. Can anybody tell me what I should do to reinstall Havoc 4.19 with TWRP?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Did you format data partition before installing? That's the usual cure for bootloops
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] kevneh:
It worked formattig the data partition. Tried again from Lineage 17, 18, 19 and 20. From 19 on data doesn't work... I'll stay on Android 11 with Lineage 18 or Havoc OS for now.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
I have finally got my hands on a factory unlocked XZ1 Compact (having returned the previous XZ1 Compact which turned out was not factory unlocked).

I'm in the early stages of the process to getting this custom ROM on the device and I'm still very new to all this.

I'm following the Sony instructions to unlock the bootloader: here and here

When I get to step 3 below and go to Devices and Printers directory, I cannot see 'the fastboot driver' which is referred to. Am I missing something? What am I to do?

Thank you!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
Solved. I have now managed to unlock the bootloader. Now I shall try to continue onwards
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
I've managed to flash TWRP but when I try to boot into it, it is stuck on the splash/welcome screen. It's not even working to turn the phone off with the power button (I don't know if that has anything to do with the fact that I think it's in recovery mode). I've done some searching but can't find solutions. Any suggestions?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
You can always power off the device: press and hold Volume up and Power buttons: after ~3 seconds it will vibrate once. Keep holding both buttons until it vibrates three times. It is now powered off.

How did you flash TWRP?

Which TWRP version?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
After it vibrates 3 times, the Sony logo appears and then it returns to the TWRP screen

I flashed it using the non root method from the TWRP website here

The TWRP version linked at the top of this thread, twrp-3.6.2_12-0-20221002-lilac

Hopefully I haven't messed up and can be solved...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
Strange! I just tried pressing and holding Volume up and Power until after ~3 seconds until it vibrates three times

and this time it seems to have turned off.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
Perhaps I shouldm't have flashed TWRP using the non root method even though the device is now rooted/bootloader unlocked (or are those two things not synonymous?)...?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
I've just gone into fastboot mode and connected the phone to computer and ran fastboot boot twrp.img to see if that would work, but it's gone onto the sony logo screen and is stuck there at the moment
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
`That should be `fastboot flash recovery twrp.img`. The recovery on this device is in its own partition, separate from the boot partition. I'm pretty sure `fastboot boot twrp.img` will overwrite the image in the boot partition, which is never going to work
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
Ok, I think that's what I did first though when following the instructions. I've just ran `fastboot flash recovery twrp.img` successfully, disconnected the phone and tried to boot into TWRP (power + volume down), but it's still stuck on the TWRP welcome/splash screen
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
And following the commands highlighted below when connected to computer turns the phone on as normal without going into TWRP recovery
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
I'm having a lot of trouble with this. Now when I run fastboot devices the device is not showing up. Is this an indication that the USB drivers are not installed properly or something? If so, how do I go about sorting the USB drivers, is there a guide anywhere I can follow? Thanks
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
I've tried to restart the process of installing TWRP and getting it to work. I've reinstalled the Sony Xperia XZ1 Compact drivers (not sure I did it correctly before, still no 100% sure if I have but I think so) and tried to repeat but when I run fastboot devices again nothing comes up again
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] android666:
hi, I'm not sure how much in trouble you are, but in case of big problem, you may follow this (of course, there is plenty of another options) and... I expect driver in your PC is prepared (you should not loose internalSD_data):

- twrp is there, but stuck (most likely system/vendor/ maybe data are also broken);

- extract from lineage zip recovery.img and #> fastboot flash recovery recovery.img

- boot into this recovery (pover+volume UP for shutdown; power+volume Down into RECOVERY);

- in this recovery try to find Update - it provide ADB Sideload; then for software zip issue #> adb sideload lineage-19.1-20230916-MICROG-lilac.zip

- shutdown; and (volume up + USB) then flash TWRP #> fastboot flash recovery twrp-3.6.2_12-0-20221002-lilac.img

- power+volume-down into TWRP; flash your zip firmware directly from TWRP now

I'm sorry If above does not work, or I did not understand your situation properly.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
Thank you very much!

I have managed to solve it now and I have my phone connected to the computer with TWRP working!

Now I'm not exactly sure what the next steps to get LineageOS 20 up and runnning are but I somehow suspect that it will be more straightforward from now. Could you please direct me a little or point me to a guide as to what to do next?

When you say zip the firmware directly from TWRP, does that mean that I need to transfer the firmware file onto the phone or?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] android666:
How to install Cusrom ROM using TWRP: link1, link2, ...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
I feel like I'm at a critical stage, but I feel a little out of my depth and not really sure what I'm doing and might risk bricking the phone or something. When I try to turn the phone on now, with the intention of transferring the rom and gapps files to the internal storage of the phone, the phone gets stuck on the Xperia bootloop. I can however still boot into TWRP. I'm unsure as to how I can get the files I need onto the phone now since the phone gets stuck on the bootloop.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
Thanks a lot for these links, they look helpful. I think I might have messed up/missed a step by not transferring the rom and gapp files onto the internal storage previously (although the steps I followed from elsewhere didn't mention anything about doing that at the time). Wondering how to get them onto the phone now...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] android666:
I'm using microG distribution (without gapps), for AA I use this working method (Microg): link1, link2, link3, link4, ...

access internal/external SD storage can be achieved also by restarting into TWRP (or check TWRP Mount section)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
Thank you, I'll look at that once I've figured out how to get files onto the phone. When I connect the phone via USB the phone isn't showing up in Windows. (Maybe that's because the phone original OS has been overwritten with TWRP or something?). So maybe I'll have to try and get the files onto the phone using sd card or usb otg cable
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
I managed to find a microSD card and put the files on there, which are visible/accessible via TWRP. I thought I was on the right track but now I'm getting error messages when I format the data and also factory reset (see attached images). Must I have done something wrong previously? It feels like I'm so close yet so far

After this I rebooted the system. I then found that I was unable to re-enter TWRP. So I went through what I thought was the right process again and flashed it again and then I was able to boot into it again. I then tried wipe -> factory reset and I was met with the following:

Should I be concerned about these error messages or is it possible without breaking anything to continue regardless with installing?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
Sorry I've fixed it and have now installed the rom and gapps
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
I've managed to do it and have LineageOS working on the phone! I'm so pleased and grateful to everyone who makes this possible, I love this phone so it's much appreciated!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
I'm very satisfied with this phone and having LineageOS on it. One issue I'm finding is the internal storage space for apps. I think I've seen it mentioned that it is possible to transfer storage of apps onto an SD card (perhaps with the help of certain apps?). If someone here is in the know, could someone please advise how I can go about transferring app storage onto a SD card? That would make this phone perfect!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] alesimattia:
I tried many times with multiple recoveries but, in my G8441 global, the command:

fastboot flash *recovery* myrecovery.img

never flashed anything while returning any error.

I actually found that I had to flash the boot partition via fastboot to get the recovery so the working command for me was:

fastboot flash boot myrecovery.img

Then immediately reboot to recovery with keys up+power ('fastboot reboot recovery' doesn't work urghh)

Once in recovery flash whatsoever ROM you like (microSD) and you'll get both working recovery (keys combination) and ROM
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Using SD card as internal storage is very flakey and often does not work. That's why, in more recent builds it is not offered as an option, and most ROM builders will advice against using it.

I know that's not a lot of help in your current with your current problem, but moving apps to SD card is generally not a good idea because of the flakiness of using SD card as internal storage.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] T-1000000-000:
I decided to flash the smartphone with the latest firmware from the thread (lineage-20.0-20230813-UNOFFICIAL-1.4-lilac.zip ):

1) installed the latest TWRP recovery also from the thread (twrp-3.6.2_12-0-20221002- lilac.img).

2) copied the firmware and Gapps files onto a microsd card and booted into TWRP recovery.

3) chose format data:

Spoiler content hidden.

4) rebooted back to recovery.

5) then I clicked advanced wipe and made a wipe of the sections dalvik / art cache, system, vendor, cache, data, internal storage:

Spoiler content hidden.

6) after that, when trying to flash the firmware, it gives an error:

Spoiler content hidden.

No one knows what the problem might be (maybe I deleted too much)?

Thank you very much and have a good day.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] alesimattia:
No need to wipe data again.

Check the MD5 of your downloaded file!

First on (e.g.) Windows and then in TWRP with this:

How to use TWRP’s built-in MD5 file integrity checker to avoid bricking | AFTVnews
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] T-1000000-000:
Thanks for the hint! Indeed, the firmware file had a different md5 sum, looks something happened to it when copying.

After replacement file flashing was successful.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] bobby090:
Hi,

I've recently bought a second XZ1C and decided to install a custom ROM. I successfully backed up my DRM keys, and have since flashed TWRP 3.7.0 as I hd problems with TWRP 3.6.2 being stuck on the TWRP logo. I successfully booted to TWRP and wiped my device before flashing LineageOS 20.0 as found here as well as Gapps.

This successfully booted however I am having problems with my sim and wifi staying connected. I am from the UK with EE as my provider. I can connect to my wi-fi but it drops out often. I also lose mobile signal at times and have not been able to connect to 4G/LTE on LineageOS.

I have since tried LineageOS 19.0 but had the same problem. Both phone signal and wifi worked on stock rom.

If anyone has a solution or explanation to such behaviour it would be appreciated as I like the look of the OS but for obvious reasons I cannot use them unless I can get phone signal to be reliable :)

My problem seems similar to #434 so am now going to try Lineage 18.1
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
Hi, I tried to partition the SD card in the phone and after I ran m partition disk:179,0 mixed 50 in Android app Terminal Emulator, the phone shut down and went into boot loop. I have no idea what to do now and I feel like massively out of my depth. I've tried a few things but I feel pretty confused, especially with the adb and fastboot drivers, which I think I now need in order to enter recovery, which seem to consistently not work after reinstalling them etc, but I think maybe I'm doing something wrong there but not sure what.

So I can't get adb devices to show up because when I unlock the phone the phone goes into boot loop. So I don't really know what to do. Any help much appreciated, because it feels like this could be bad news after the effort I've tried to put into getting this working and then taking what I thought was a small risk to partition the SD. I have no idea why partitioning the SD would cause this boot loop.

Incidentally, prior to this happening, I was also having the same problem as @bobby090 with wifi dropping. I am also in UK.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
I

I think I've managed to fix this now, or at least stop the boot loop.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Zayeah:
Has anyone had any problems with Google Maps?

It's not working properly for me and none of my saved locations show up. I've tried a few things to try to get it working but no luck yet
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
So does that mean i cannot flash your los 4microg rom using twrp ?

or i can do both now twrp and adb/fastboot ?

And truly thank you for microg version i am now using the normal one but with magisk and lsposed to get the rom to support signature spoofing but it is less then ideal... i had no idea someone made this los 4microg variant

theres no separate thread for it ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
No. You can flash the normal `.zip` file (the latest is `lineage-20.0-20231008-4microg-UNOFFICIAL-lilac.zip` , here) using either TWRP or `adb sideload`.

Alternatively, you can flash the new `-img.zip` file (latest is `lineage-20.0-20231008-4microg-UNOFFICIAL-lilac-img.zip`, here) using `fastboot`. The fastboot commands are:

for dirty flash: `fastboot --skip-reboot update lineage-20.0-20231008-4microg-UNOFFICIAL-lilac-img.zip`

for clean flash, wiping your data partition: `fastboot --skip-reboot -w update lineage-20.0-20231008-4microg-UNOFFICIAL-lilac-img.zip`

Flashing with `fastboot` will overwrite the recovery partition, installing the LineageOS recovery in place of whatever recovery you currently have. So if you want to keep TWRP, then install the normal `zip` file.

No. Any device-specific issues or questions are likely to be the same as for this build, so can be reported in this thread. Issues and questions about LineageOS for microG should be raised in the LineageOS for microG forum thread
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] thyristor44:
Sorry to be dense but one question;

Is it likely to work with open camera.

Thanks for patience. I am learning slowly.

thyristor44
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
New LineageOS for Microg build available here

or installation using recovery https://sourceforge.net/projects/pf...ge-20.0-20231210-4microg-UNOFFICIAL-lilac.zip

for installation using fastboot https://sourceforge.net/projects/pf...0.0-20231210-4microg-UNOFFICIAL-lilac-img.zip

I dirty flashed over the previous build (`lineage-20.0-20231013-microg-UNOFFICIAL-lilac`) with no apparent problems

As with the previous build:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
duplicate message removed
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
@petefoth

I flashed your los 4microg 2023-10-08 and i had 2 issues.

1) Battery drain that is excessive and for some odd reason the way it does it changes it is not consistently the same way.

which is annoying me because for the past year i have been running the normal los 20 in this thread with lsposed to signature spoofing to get microg to work (had no idea there was a seperate version with microg) but this made it have a slight battery drain w figured it be different if it was specificly made for it.

2) Turning off mobile data in the quick settings i do this when i go to bed however next day when i try turn it on again it inconsistently sometimes it takes 5 min to turn on sometimes it wont turn on at all and then it stops reading my simcard and have to take it out couple times and restart it very annoying.

With the normal los 20 it would be lil bit faster but if you pressed the airplane mode on and of it would turn it on instantly and with this rom it wont.

Thank you for your time

FYI i just noticed there is a new update of your los 20 4microg december update i will flash this tomorrow (not dirty flash) to see if it is different.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Hi @mstrnemo

I'm sorry you are having problems with the earlier version. I have not had any other reports of similar problems, so my guess is that the problems are something to do with your individual setup. Do you still have lsposed installed? It's not something I have ever used, and its use is not something that is officially supported by either official LIneageOS or LineageOS for microG.

If you continue to have problems with the latest build, then I can only suggest the following:

Back up your user apps and data, do a clean install of the new ROM, then restore your apps and data

If that doesn't work, then probably best to restore the working 'normal' LOS 20 build and lsposed, as this problem is not something I can investigate or fix - sorry!

As to backing up apps and data, the only working backup and restore solution that I have found is the Android Backup and Restore Tools project. See this post in the /e/OS Community forums for guidance on how to use the tool.

God luck
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Danko Jones:
Hi @petefoth,

many thanks for the update! I dirty flashed the december build and first I didn't noticed any problem. But now I see that there's something wrong with the microG installation after the update (see attachment). Does the problem also occur on your side or do you know how to fix it?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
There is a problem with this build in that MicroG GmsCore appears to not be properly signed - see the previous post from @Danko Jones. I have taken down the build. Please do not install it if you have already downloaded it

I will make a new clean build as soon as I can.

Sorry!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
OK there's a new build available at https://sourceforge.net/projects/pf-custom-roms/files/lilac/los4microg/

- lineage-20.0-20231214-4microg-UNOFFICIAL-lilac.zip

I dirty flashed it using TWRP over the previous build - the lineage-20.0-20231210-4microg-UNOFFICIAL-lilac.zip with broken MicroG - and Microg self-test works - see below
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mstrnemo:
Thank you for your quick reply.

No i do not have magisk or lsposed installed.

I found no way to for a easy back up method annoyingly so i had to it in a very tedious way why is there no titanium back app that is free and open source like the old days? anyway i reflashed and same problem.

I also experienced the problem that @Danko Jones mentioned downloading your new version as we speak. could this have been the reason for the battery drain?

Edit: and thank you for keeping our phone up to date in combo with microg.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] petefoth:
Make sure it is the latest version https://sourceforge.net/projects/pf-custom-roms/files/lilac/los4microg/lineage-20.0-20231214-4microg-UNOFFICIAL-lilac.zip/ , and make sure you install it by copying it to the device (either device storage or SD card) and install using TWRP's Install function. Using `adb sideload` does not seem to be working

I still have no idea why you were having battery drain problems. If you still get them with the new build, then you will have to revert to using normal LOS - I'm right out of ideas

The 'Android Backup and Restore project I linked to does pretty much everything that I recall Titanium backup doing with backing up apps,with no need to root your device (though it is a very long time since I used Titanium)