yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kurtn:
Oh. Your lineageOS idea is about performance, not security patch level? Debloat stock ROM !
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Callmenobody:
OH, how?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kurtn:
Disable pre-installed apps. Either in settings or through adb (end of this off topic discussion)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] mirhl:
You probably want to check this for ih8sn.

Or alternatively PlayIntegrityFix.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] falskmyntarn:
Hej, jag kör den här rommen utan något som helst google installerat och för mig funkar både bankid ,swish och nordeas app. De lipar lite om att google play inte är installerat men den varningen går att klicka bort och sen kör de som vanligt.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Callmenobody:
Grymt tack!

And for other readers sake, does the lineageOS improve performance.

As it is now I need a task killer to regularly kill apps since they slow everything down to a crawl.

5-10s to even open some apps.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] falskmyntarn:
Yes, on my phone this rom has definitely improved performance, it's very smooth and responsive and lots of RAM left . Only things that are slightly worse are fingerprint reader and camera, which both work fine but better in stock. But small price to pay.

Also, I have volte working (halebop /telia ) which was a dealbreaker for me, I did start it at stock first to make sure it was working and it kept working after install. So all in all a great rom and definitely a daily driver!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Callmenobody:
Typical.

I didnt have the patience and bought a zenphone 9 ar auction (tradera).

I guess that I can usd that and Flash the xz2c and the compare.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] odiad:
Hi. Yesterday I updated to newest LOS20, and today I recognized that I don't have access to folders in Android/data/....

The LOS20 version that I used before didn't denied the access.

I am using Root explorer, and my mobile is rooted.

Has anybody else that problem?

Edit: just checked my Samsung S10e, Android 12 with Stock-Rom and not rooted. Same situation on that phone, and - I am not 100% sure - but as far as I remember I had at least read-access to Android/Data/. But now also no access.

So maybe Google itself has something changed.

And I also checked not other explorer-apps (ES explorer and Google file) but no success.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Has nothing to do with the ROM itself. Google changed the way Apps can access storage. It's called scoped storage.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] juask:
I'm absolute newbie in such questions - need info, please!

If I do all steps and Install LineageOS 20 on my xz2с. And afterwards wants to return to stock system - is is doable or this is oneway road?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
You can always flash stock rom with xperifirm + newflasher but be aware that the TA partition gets erased once the bootloader will be unlocked and there's no way back yet. And I don't think there will ever be a way to restore the TA partition or re-lock the bootloader on such an old phone. So, it's a yes and a no. You can go back to stock fw but cannot re-lock bootloader + restore TA partition.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] juask:
Thank you for your answer!

As I said, I'm doing my first steps in understanding, so I googled this things you mentioned - "TA partition" and "re-lock bootloader" - to understand what exactly does in mean if I would not be able to do this two things.

From what I found, I understand (?) that TA partition store DRM keys. But what do I need it for exactly? I've found info that camera would not work without it. Is it true? But what aside from that?

And regarding re-locking bootloader. I've managed to find info that it may pose a security risk if someone malicious get physically my phone. But what else?

Would be grateful if you explain a bit or maybe give some links on already exist explanations!

Thank you a lot!!!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
No, those DRM keys are mainly for some advanced features like camera noise reduction algorithms and the like. The camera itself will work but the quality isn't exactly the same as on stock fw.

In order to install a custom ROM you have to flash a custom recovery first. Because the stock one will verify the build keys and refuse to install it. And in order to flash a custom recovery you have to unlock the bootloader.

If someone has physical access to your phone he can also unlock the bootloader and flash custom stuff. That's not a security risk and only an argument from companies who ban these devices from their apps.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] juask:
Thank you!

So, than what exactly will be drawbacks for me from the fact that I will be living with unlocked bootloader? I understood from your explanation which drawbacks I will have from "TA" part, but what is here?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Depends on your use cases. For example, for me I used Google Pay/Wallet a lot in the past but Google decided to block our spoofed fingerprint and I don't want to spoof fingerprints over and over again to make it work. Also, some Apps are checking for Play Integrity (maybe some games and/or banking apps). They won't work then. But as always, that depends on the apps you use. And for these cases there's Magisk + DenyList in order to bypass that.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] juask:
And are these "Magisk + DenyList" cover all cases of such apps "refusing to work"? Or some are blocked to use forever in case of unlocked bootloader?

Or, and also the question - is "unlocked bootloader" the synonym to "rooted device" or these are different concepts?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
I can't tell if it covers ALL cases - it should.

No, these are different concepts. I've explained above why a bootloader has to be unlocked to flash a custom recovery and install custom ROMs. Magisk however will root your device, so you gain full access to everything.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] juask:
Thank you a lot for your explanations! Now I have at least some basic picture - already notice that some texts becoming more meaningful for me :) Would continue to read.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] zpunout:
If you do choose to unlock the bootloader and install Lineage custom recovery then LineageOS, you may wish to backup the TA partition anyway, despite the fact there is currently no known method to restore the TA partition after unlocking the bootloader. I used this well presented guide by Andres Gomez to backup the TA partition on a few XZ2 Compact H8324 devices (by the way, your phone must be an H8314 or H8324 model, not SO-05K docomo Japanese region model).

After the TA part is backed up, I used the official LineageOS guide (remember to start with the correct Sony firmware version as stated in the official LineageOS guide).
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] mirhl:
Tbh it's exactly when a phone is old AF that it becomes a security swiss cheese.

With Tama in particular (even though it's not really news) not only the earlier firmwares are holed enough that you can have locked bl root, but even have TZ arbitrary code execution is presumably possible.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
This ROM is now EOL. LineageOS 21 will be officially available on 2024-05-17.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Fritz-67:
the problem of whatsapp photos was a mistake on my part. So everything works perfectly.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
How should that work? The purpose of a locked bootloader is to prevent that something else can be flashed onto a device.

Plus Lineage Recovery is the only supported recovery here.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Fritz-67:
is it possible to operate the smartphone with two SIM cards and one SD card under LineageOS.

See Video:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
Yes You're right. Sory for bad question. I was using renoroot when backing up TA partition on XZ1c and then unlocking bootloader of course and install TWRP.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Wtf? No! There are adapters afaik.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
Trying to install recovery for LOS20 but i'm getting error all the time "No such partition". Bootloader unlocked and on latest stock rom android 10. What could be the problem? I didn't have any problems on xz1c with recovery.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Please read the install instructions carefully.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
How to select slot when flashing stock rom with newflasher?

How to flash recovery properly?

Sory for so many questions but i just started with xz2c . I'm using x1c all the time but got xz2c with broken screen and replaced so now trying to do some things.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
It will always flash onto the inactive slot. There's no need to manually switching slots. If you still need to do so for whatever reason this is discussed on xda. google search result #1.

instructions on how to flash recovery are in the installation guide. so before asking please read that first carefully!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
Thanks. Now it's clear and i managed to install recovery , rom , gapps and magisk. It's easier on xz1c but now it's time to try it on XZ2c.Anyway sory for making questions and questions and thanks again for tips how to make it works.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ben_2777:
Hi everyone,

Seems I will keep my XZ2C up to date :) (running on solid LOS19). Here is my question before jumping. I want to remain with no "gapps". Instructions are clear for ROM update. I am concerned to do it for long term and have "bank apps" working.

What option do you recommend to have bank apps working for "long time", please ?(no gapps, will use aurora store if needed)

I f I choose "option 1: ih8sn-aarch64". Is it strong solution to pass safetynet without "gapps" installed?

I have no need for "root", sometimes I read forum, apps detect "root" and they don't like it. Rooting only positive for CPU management and battery saving, for my use.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
To pass SafetyNet you'll need to have Google Services installed. Maybe microg can help here, I don't know. I don't even know how apps which require SafetyNet handling cases where there are no gapps are installed. Maybe someone else can give you a better answer.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ben_2777:
Thanks for prompt reply. No big deal, for now my bank apps is working perfectly, ( LOS 19.1 no gapps, no root). I was just wondering someday they could change there mind.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Magchild:
LOS 20 is working great! Could you add these same commits to get wifi display working as you did in the 19.1 blobs?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Wow! That was easy. I've just updated to LOS12

Incredible easy and without issues so far.

Upgrade LineageOS on xz2c | LineageOS Wiki

wiki.lineageos.org

@dtrunk90

Thx for keeping XZ2c alive.

Sent you some bugs ^_^

Edit:

Can someone tell me where to report camera related feedback and feature requests?

I'm missig resolution and memory path settings.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
I'm using my xz2c with this rom and everything is working great without any problems but today i tried to connect to the internet with LTE/4G first time and can't get any connection at all. What could be the problem? I also noticed that i'm getting notification :

"Open Devices ModemConfig"

Slot 0

Modem configuration: S187.1

Firmware file: mcfg_fw/generic/euro/orange/vlvw/pl/mcfg_sw.mbn
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
My phone bricked itself on LOS 20....

Suddenly Bluetooth wasn't working anymore, refused to connect to any device so I decided to reboot the phone... BOOTLOOP!

I reinstalled LOS 20 with BiTGApps and Magisk => Bootloop

Without Magisk or BiTGApps => Bootloop

Switch to slot a where LOS 19 was installed => Bootloop...

So... <rant about TWRP> yeah... anyone had the same issue with BiTGApps?

I usually use OpenGApps but they officially don't have a stable release for Android 13...

MindTheGApps is a bit bloated... and I still don't know how to get microG working
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
I'm using MindTheGapps-13.0.0-arm64-20221208_045949.zip and works fine on XZ2c as well on XZ1c both with LOS20. I had problems with bitgapps and flamegapps.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Use MindTheGapps. Everything else will be full of trouble. It's just unsupported. And the wiki clearly states: "Be warned": https://wiki.lineageos.org/gapps

Also TWRP is not supported, use Lineage Recovery.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
I was using wrong firmware and couldn't get mobile data connection . Flashed ' H8314_Customized UK_52.1.A.3.49-R6C ' and now everything is working good.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
Coming from LOS19 I'm also not able to get mobile data connection. Haven't noticed this because i'm usually on wifi.

I don't get any modem notification, maybe i've already disabled them on LOS19.

Did you come from stock FW or LOS19?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
Flashed stock UK firmware with NewFlasher and then LOS20. Now it's working but i noticed that only 3G is working but when booting phone after LOS20 flashed and setting up the phone it was 4G. Don't know what is the problem but now at least i have mobile internet.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
To be clear: LOS19 -> Stock UK -> LOS20 ?

I went the sideload way due to dany's recommendation

sideloaded LOS20

rebooted recovery

sideloaded mgapps for A13

rebooted system

I didn't flash any new recovery or magisk stuff.

@dtrunk90

Let me know if i could help to identify the issue

Modem notification:

Slot 0, S8611.1, File: default
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Again: No need to flash stock if you did it once before (except you've flashed something else in between LineageOS). LOS 19 -> LOS 20.

We don't have modem configs for S8611.1: https://github.com/LineageOS/android_device_sony_tama-common/tree/lineage-20/modem-config

If you can find a stock firmware from sony which contains this modem config let me know. But I've imported already all available modem configs from all available stock firmwares. At least for the tama devices (XZ2, XZ2 Compact, XZ2 Premium and XZ3). There's nothing I can do unfortunately.

You can try to add a config file but this file has to contain the path to the mbn file (from firmware partition). Look at the other files to get a clue on what it contains. Maybe you can find a mbn file which fits for you and reference it in a newly created modem config. If anything of that works for you feel free to let me know and I'll add it.

EDIT: maybe one of these:

./S137.1/modem.conf:1:mcfg_sw/generic/euro/dtelekom/vl/aut/mcfg_sw.mbn
./S136.1/modem.conf:1:mcfg_sw/generic/euro/a1/vlvw/aut/mcfg_sw.mbn

put it with root privileges to: /vendor/modemconf/S8611.1/modem.conf, reboot and test if VoLTE works.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
This was a question to GT500s. I didn't go the stock fw way.

Isn't the modemconfig something what shoudn't have changed during the update? With LOS 19 I hadn't any connection issues.

My device isn't rooted and i'm not sure how to perform your suggestion.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
The mbn files are part of the firmware which is from stock (since we don't ship firmware and that's one of the reasons you have to flash stock 10 before installing LineageOS - to get the firmware). So what's your issue exactly if your provider doesn't offer VoLTE?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
I thougt it isn't offered but i just checked my roviders specs and corrected my post.

My issue is a none working mobile data connection.

Please check my attached screenshot in my post above. I've enabled mobile data but the info screen shows 'mobile data: not connected'.

@dtrunk90

If it helps i could send my logcat.

Edit:

Please be lenient - just digging into this the first time with a little of linux knowledge.

I've installed magisk manager, have root access via adb, have found the mbn's

(in ./data/vendor/modem_config/mcfg_sw/generic/euro/... and ./vendor/firmware_mnt/image/modem_pr/mcfg/configs/mcfg_sw/generic/euro/...) but now i want to create the new dir and cpy the cfg what isn't possible because of ro filesystem

xz2c:/ # mkdir /vendor/modemconf/S8611.1
mkdir: '/vendor/modemconf/S8611.1': Read-only file system

Does it need a rw remount?:rolleyes:

Can you give me a hint?

thx

Edit2:

Managed do try both suggested configs but none of them fixes my mobile data issue. :-/
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
Unlocked my xz2c few days ago and flashed newest stock firmware from orange or something like that. Next flashed recovery for LOS20,flashed LOS20 rom,mind the gapps and magisk. Everything went well but couldn't connect to mobile network at all. Found UK stock firmware on Android 10 and flashed it. Next was same steps and now it's working almost perfect. I'm uing Lawnchair 12.1.0 Alpha 4 as provider. Today i was suprised that mobile network is suddenly working on 4G😁
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] userx404:
So, another attempt:

I deleted my 8611.1 directory and undo all changes on FW partition from yesterday.

I did a factory reset and downgraded to LOS19 and checked modem config.

Mobile data connection is working on LOS19 with the same Open Devices ModemConfig:

Modem: S8611.1

FW file: default

Again, a factory reset and sideloaded LOS20 -> same modemConfig as in 19 but no working mobile data.

Afterwards I did some tests after flashing stock and LOS:

stock -> los19 -> mobile data ok

stock -> los20 -> mobile data not working

Sadly I have to go back to 19 for now.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
Strange things happened yesterday with my xz2c . When ended phone call with my friend the phone suddenly freez and couldn't do anything . Did VOLUP+POWER for 20 Seconds and vibrates 3 times . Booting phone with no sim card connected issue and no wifi signals . Flashed same stock firmware with newflasher and phone boots longer with same issue no sim card and no wifi signals . Phone boots to system but shutting down and restarting all the time . Tried other stock roms but same with no sim and wifi . Using my xz1c for now so i know sim card is ok. Is my phone just BRICKED ? Some hardware is down ?

... Tried soooo many stock roms and same thing . Only stable that is not rebooting phone is CE1 stock on Android 8 but still NO SIM CARD AND WIFI CONNECTION.

( 14.01.2022 ) " Android setup isn't responding " after flashing stock UK Android 10 . Phone restarts randomly but when setup is going there is NO SIM CARD and NO WIFI CONNECTIONS . I can flash recovery and LS20 but when booting to system ity always crashes at LOS logo . Tried flashing with flashtool and newflasher but always same result.

I need a break :coffee:
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Fritz-67:
there is a new firmware, what was changed?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Carljaynp03:
The compatibility of using Bluetooth controls is already available, to use with emulators, for example PS4 controls, XBOX etc.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Issue solved, MindTheGApps solved the bootloop and all of my Apps/Files are still there :)

Recommend Swift Backup instead of TitaniumBackup due to compatibility issues!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
Is there any easy way to relock bootloader? Tried with commands and flashtool but no good. Want to try phone fix with xperia companion but need locked bootloader.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
If you want to brick your phone entirely, probably.

https://www.reddit.com/r/LineageOS/comments/n7yo7u
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
So maybe i need to try other methods without need of relocking bootloader. Just looking for any solution to fix problem with my xz2c . Saw on other forums that some people had same problem with so sim card and wifi. Don't know if hardware issue or not. Trying over and over with custom roms but when flashing LOS it freezes at logo all the time. On stock rom there is no sim card and no wifi and phone reboots itself. Wanted to try fix with Xperia Companion but can't do with unlocked bootloader. Any idea , tips that i can try ?

Everything was great after succesful flashing LOS20 to my xz2c and i was using phone for maybe two days and then when ended phone call xz2c freezes and next was no sim card and wifi .
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
As far i found this article

How to Fix No WiFi, Calls, Network after Root or Custom ROM

In this tutorial, we will show you the steps to fix the no WiFi, Calls, or Network issues after root or flashing custom ROM on Android.

www.droidwin.com

Fix Network WiFi Calls Issue by Flashing Modem File​

How can i try if this soulution will work on my xz2c?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
That just describes the step of flashing part of the stock firmware. That's why you have to flash stock firmware before installing LineageOS. We don't ship firmware so this is a required step. Just find a stock firmware where you have signal (you can boot it once to make sure) and then simply do the rest. It's all described in the wiki and i wouldn't recommend doing such stuff if you don't know exactly what you're doing.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] GT500s:
Since the phone freez i'm trying all stock XZ2c firmwares from Android 8 to 10 and still same problem NO SIM and WIFI + phone restarting itself . Getting " android setup isn't responding " on all flashed roms when booting first time. If it's hardware problem with my xz2c it's ok and i won't try to fix but got to be sure. Also phone is not showing it's IMEI in settings.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] a.bispo:
Just flashed LOS20 last night on my XZ2 Compact. This is still my daily driver so I was very pleased to see this new update.

So far I haven't seen any bugs or hiccups. Actually NFC I think it's working better than ever (I was still on LOS18 before migrating, so could've been fixed in LOS19).

Thanks dtrunk90 for the work.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Mythique:
Updated a week ago, and things are going great so far!

My main issue with Telegram was resolved, the camera does not randomly freeze for x seconds after taking a photo. Twitter seems to scroll a bit smoother now. It's not perfect but the performance is not as bad as it was (might also be because of a new Twitter update? Can not be sure).

The fingerprint reader seems to be a bit more fast when the screen is already on (power button to light up the screen, then fingerprint reader), less than half a second I'd guess. But the fingerprint reader if the screen is off is still slow randomly, sometimes 1 or 2 seconds.

Pretty happy to have a major update that improves performances! That's getting a bite more rare (Windows for example...).