yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] der.lange:
Native Xperia-Kamera:

Installieren Sie Magisk und aktivieren Sie Zygisk

Installieren Sie „safetynet-fix-v2.2.1.zip“ und „camera-0.3.0-tama.zip“ als Requisiten

Es scheint nicht notwendig zu sein, eine Genehmigung einzubauen

Die Kamera funktioniert. Ich bin mir nicht sicher, ob es irgendwelche Risiken gibt?
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] dtrunk90:
No, only the common risks having a rooted phone. For the xperiance camera itself there's no other module required.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Cooler13:
I know very little about Magisk and never needed to root any phone. I tried now to study a bit about it.

I want to be able to use my second camera in /e/ OS (which is Lineage OS based). I don't know at which level or to what the "drivers" belong. In Lineage OS because there's a different app and there's an overlay it might be different at "drivers" level, so in Lineage OS I understood that both back cameras work, whereas in /e/ only one is "recognized".

Should be the procedure of der.lange be independent of the ROM used? I mean it's the Camera-tama "self-sufficient" in dealing with the cameras or is there another support needed at the OS level?

Thank you.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] dtrunk90:
This is a LineageOS thread. For issues with /e/ OS please ask somewhere else. In LOS we have Aperture and there's an overlay to enable aux cameras. I don't know which camera app /e/ OS uses. I just can't help here.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Cooler13:
Yes, I'm aware that this is a LineageOS thread and didn't want to "intrude". Apart form first part of my post (which referred to /e/ OS) the second more important part/question was a general one.

I was under the assumption that you know how the Android system works and what are the prerequisites that something works or not.

I think there is very little difference between the core o /e/ OS and LineageOS with microG, but i digress. And I did put these question in /e/ OS forums but got no answers.

Before I would experiment with Magisk and camera 3-tama I wanted to be assured that I have a good chance that it works, rather than have chances to maybe brick my phone.

I don't know for instance if der.lange has google play services on his phone; if these are a prerequisite than it would be a clear no-go.

Thank you in advance for any support.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Cooler13:
Just to be more clear I would like to know apart from using Magisk and camera-0.3.0-tama.zip what else would be needed from the OS?

Is the safety-net-fix related to google play services or just an add-on to by-pass a requirement of the original camera app?

Thank you.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] dtrunk90:
If the camera app in /e/ OS is Aperture you can make an overlay with Magisk yourself, sure. But I don't think there is very little difference between /e/ OS and LOS. I didn't checked it myself what's the cause that /e/ OS camera app doesn't enable aux cameras and I'm actually not interested in fixing things of another OS doesn't contributing to LOS either.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] dtrunk90:
See https://xdaforums.com/t/rom-13-aurora-official-lineageos-20-0.4509475/post-89310414

I wouldn't recommend using this module (it's EOL and archived) if you just want to use the black/white aux camera. Aperture can do that.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Cooler13:
Thank you for your responses.

/E/ OS uses "Camera", a fork of the OpenCamera. As previously stated I have installed Aperture under /E/ OS and it makes no difference regarding the number of cameras available.

Would I be able to somehow add the overlay you'd reference from this post: https://xdaforums.com/t/rom-13-aurora-official-lineageos-20-0.4509475/page-3#post-89189788 ?

Please excuse the stupid questions.. I don't know how the Android systems work...
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] dtrunk90:
You could at least try. I don't know if installing an overlay as non-system app would work. Here's the RRO overlay I've pulled from /vendor/overlay and here's some more information about RRO overlays: https://source.android.com/docs/core/runtime/rros?hl=en
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Cooler13:
Thank you very much for trying to help me. Unfortunately I cannot install the file as I get this error: " App not installed as package appears to be invalid"
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] dtrunk90:
Yeah because it's an RRO overlay which can't be installed like a simple app. Please check the link I've provided above. Everything else is up to you. Safest way is to write a Magisk module which puts this apk in /vendor/overlays. Maybe there's also a way to put overlays in /data so you don't have to root your phone but I don't know if that's possible. Just read yourself into the RRO overlay stuff please.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Cooler13:
Thank you. I have started to read, but it's a bit complicated so I'll do it later when I have more time. It was very nice of you to try to help me.

I would be tempted to install LineageOS with microg but I would miss many nice things from /E/ OS taht cannot be added.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Cooler13:
Hello again dtrunk90

Unfortunately I had no time to properly study what you have sent but I have the intention to do it in the near future (for learning purposes)

My XZ2 premium has some (very rare) issues with the network connection. I don't know for the moment if it's the hardware or the software but I had decided to try Lineage OS soon to check if I still has the same problems.

I saw today the announcement that Lineage OS 21 is about to be launched. On the page with the announcement there was some strange data.. Theoretically some XZ phones would get from 19.1 to 21?! Except that these XZs (XZ2 premium included) are already on 20 and not on 19.1.

Can you please clarify if the XZ2 premium and XZ3 will get the Lineage 21 and if yes approximately when would that happen?

Thank you.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] dtrunk90:
No ETAs
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Cooler13:
But that means they'll get a Lineage OS21 someday? There's no hurry...
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] dtrunk90:
It's planned, yes.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Nana_Mum:
Works fine in japanese version. I use au with sov38 model. You only need to flash the H8116 global ROM (single sim) with firmware version 52.1.A.0.618, but there is a bug when you use the global ROM, the NFC feature will not be active and cannot be used. I don't need that feature, so who cares :).

All the features of LOS 20 are quite good in the Japanese version, only the ones I mentioned earlier.

I haven't tried Docomo yet, because I don't have a Docomo XZ2 premium device. but I have a docomo x compact and managed to install LOS 20 with global rom of course. I think it's possible for Docomo's XZ2 Premium. anyone should try it, right? who knows too.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] valk2000:
Hello, sir. Could you help me? for banking application problems and others. I've used Kitsune Magisk and the Play Integrity Fix module, but it still detects root.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Guuzaka:
Does the 4k60 FPS video mode work on the LineageOS camera for this device?
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] dtrunk90:
This ROM is now EOL. LineageOS 21 will be officially available on 2024-05-15.
[Sony Xperia XZ2 Premium ROMs, Kernels, Recoveries,] Cooler13:
Such a good news.. Thank you!
[Philips, Sony, TCL Android TV] Giuliano69:
Problems with a TCL P6046..

Suddenly the brightness went to "almost black". You can see the image but it is very dark.

The strange thing is that when restarting the TV, the brightness of the TCL brand and the loading of android are very bright.

Tried:

Empty the cache and restart

Disconnect the cable, press the button for 30 "and reconnect

Install the 820 OTA version from scratch, so "implicitly" reset to factory values

Unfortunately, apart from a phenomenal new boot speed (!), the new 820 fw hasn't changed that

The strange thing is that in the first few seconds of boot, until the complete loading of android, the brightness is normal.

But the system saw all settings rewritten with the ota 820 update ..

Kindly ASK

What can it depend on?

Any Ideas on what else to try?

G.
[Philips, Sony, TCL Android TV] violetunderground:
I had this exact problem with my TCL TV
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

About LineageOS

LineageOS is a free, community built, aftermarket firmware distribution of Android 13.x (T),

which is designed to increase performance and reliability over stock Android for your device.

All the source code for LineageOS is available in the LineageOS GitHub repo.

And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

Official LineageOS website : https://lineageos.org/

About LineageOS Legal : https://lineageos.org/legal/

Important Information

1. This ROM will never work with any versions of Google Camera (GCam)!

2. You need to flash Stock Android 10 before flashing this ROM.

Downloads Links

LineageOS 20.0:

Official builds: Link

Google Applications (optional):

MindTheGapps: https://wiki.lineageos.org/gapps

Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

Flashing and updating

Please refer to the official installation guide at https://wiki.lineageos.org/devices/xz2c

Pass SafetyNet

Some apps like banking/payment apps or games require to pass SafetyNet.

1. Download the latest release of ih8sn here.

2. Replace the whole content of system/etc/ih8sn.conf inside the zip file with:

# Does not work anymore as of 2023-11-15
# BUILD_FINGERPRINT=Sony/H8324/H8324:8.0.0/51.1.A.3.159/620448843:user/release-keys
BUILD_FINGERPRINT=google/bullhead/bullhead:8.0.0/OPR6.170623.013/4283548:user/release-keys
PRODUCT_DEVICE=bullhead
PRODUCT_MODEL=Nexus 5X
PRODUCT_NAME=bullhead
BUILD_TAGS=release-keys
BUILD_TYPE=user
DEBUGGABLE=0

3. Install the zip file through recovery.

Issues and reports

Report issues only if you are using the ROM kernel

If an additional mod is installed, make sure it's unrelated, and mention it

Make sure the issue wasn't discussed earlier in the threads

Share a log of the error with Logcat for example

Also thanks to:

Olivier

Sjll

The LineageOS Team

The CyanogenMod Team

Everyone involved in working and testing

XDA:DevDB Information

Lineage 20.0 for Xperia XZ2 Compact, ROM for the Xperia XZ2 Compact

Contributors

dtrunk90

Source Code: https://github.com/LineageOS

Donation

https://paypal.me/dtrunk90

ROM OS Version: Android 13

ROM Kernel: Linux 4.9

ROM Firmware Required: Official Android 10.0 firmware

Based On: LineageOS

Version Information

Status: Stable

Created 2022-10-23

Last Updated 2023-11-22
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] fnoup:
Hi, glad to see LOS 20 on XZ2C!

May I ask you if the Android 10 downgrade is a temporary requirement, or if it will probably stay?

I flashed Android 12 binaries from https://developer.sony.com/develop/open-devices/downloads/software-binaries and am currently running SODP 13. I would like to know if I'd better wait to test LOS?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
SODP is incompatible. You need to flash latest stock android 10 before because of some partitions we don't ship.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] louloudi:
Flashed few days ago. Works very nice, even my dead NFC came back to life.

Thanks!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
One thing worth noting for the build: vibration (haptic feedback) feels a lot weaker than it should be; otherwise, it's pretty effecient and stable enough for daily use.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Thanks, I'll add this to my TODO list and check if i can reproduce it.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] aaawqw:
Hooray! Nice to see we still have stock-based LineageOS 20 / Android 13. Since XZ2 Compact is no longer my main phone, I can start testing it right away.

Just tried to login my Google Account, which requires FIDO/U2F. I tried plug in my USB key, and it seems USB OTG is not working. Kernel / dmesg log attached.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
i just tried connecting my western digital external drive and it works on 19 but doesn't on 20. i guess it's the same issue you face so it's good i'm able to reproduce since i don't have such a usb key. I'll do some investigations. also thanks for the log file.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Magchild:
@dtrunk90 Do you know what changed with "wifi display" and "miracast" in lineageOS 18.1, 19.1, 20.0? I use the screen mirroring function with a Microsoft Display Adapter, and everything works well on 18.1. But on 19.1 and 20.0 I get a generic "wfd.service has stopped working" error when trying to pair. I'm sorry I don't have a log; I already downgraded back to 18.1.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
I probably need to pick some commits.

I'll put it onto my todo list. I first need to check if I have some options to test it here.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
I've updated some blobs in 19.1. Let me know if it works for you after the next update tomorrow.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Magchild:
Thanks! It works great on the 19.1 20221125 blobs.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] odiad:
Hi dtrunk90. I'm using your rom now since 3 days, and until now all the things I'm do/use (normal user - no special things) is fine. Listening to Spotify via BT headset stucked yesterday a bit, but today in the car via BT it was fine again. Maybe it was Spotify itself...I have no USB OTG Adapter, so I can't check issues with external device via USB.

I did a clean flash, first stock A10, then LOS20, Gapps and Magisk.

So thanks a lot for LOS20, Greeting Odiad
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
New build from today uploaded
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Edick1337:
How to update?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Just sideload in recovery
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] aaawqw:
USB OTG is working in 20221219 version. Thanks for the great work!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Funny. Because actually I didn't made any progress on that issue and there was nothing changed on device tree side. Nevermind, as long as it works.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] aaawqw:
Wait what the...

So it must be upstream changes then...
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
I think someone didn't update the instructions, maybe? I went ahead and backed up the original dtbo.img from stock and flashed the updated dtbo.img (dtbo_a && dtbo_b) included with the latest build and no bugs to report. I'm guessing that the partition update is preferrred due to hardware /software related issues and compatibility with the latest version of android.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
No
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] BENETNATH:
Hi, March 3rd install juste crashed my Gapps..

The os is booting and working as expected but not the play store which stays offline.

I've got magisk and luckypatcher installed but did not change anything there.

Any idea ?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Maybe Luckypatcher is the issue
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] BENETNATH:
I managed to fix it by reinstalling gapps, but that was quite strange as all previous L20 updates went without a glith.

Anyway, back on track and thanks a lot for keeping this great phone alive
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
No?, regarding the instructions or regarding the hardware/software requirement for a modified dtbo? I'm assuming that if you manually update the device with fastboot that the .zip of the build no longer contains or hasn't ever a dtbo.img. I haven't payload dumped any of the previous builds so I'm left to question it's presence and why it's being offered?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
It's being offered now because the download portal got a change as you may have realized and it wasn't offered before. And I don't want to discuss this in any way. Just follow the instructions. If they don't tell you the file is required, it's just not required.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
Okay ... I get it, not trying to open the portal of hell here for all those that didn't RTFM to barrage you with questions of how to flash the device. Reading through android open source documentation isn't always as straight forward as it could/should be. As frustrating as it can be answering questions of redundancy, some of us here still do appreciate what is offered, even if there are things to solve on our own.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kjs111:
Hello,

I just installed LOS in my XZ2C and for me GPay doesn't work with magik+safeteyNet. I have some problems with coverage when wifi and Mobile are activated together, I'm using S91.1 and maybe this is the problem, I really appraciate if anyone can suggest me a good modem config.

Kind regards,
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kurtn:
Hi, I will buy such a phone today. Are there typical hardware failures I should watch out for?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kurtn:
@dtrunk90 suggestion: in installation instructions unlocking pull point 6 up after 2. Unlocking website needs phone booted in system.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Boot it into stock OS and use the Support app to make all hardware tests there. This app is pre-installed from sony. Most used devices i saw had a broken mic. So, that's a typical issue with these phones. But that's also covered with the mic test inside the support app. But better test both mics in a call: with and without speaker mode.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
That's a template I used there. I see your point but actually I don't want to start a discussion with the Lineage devs/wiki authors for that.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
see 1st post on how to pass safety net. there are 2 options (with and without root).

S91.1 is Movistar Argentina. I guess it's the correct one used.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kurtn:
Is it normal, lineageOS recovery only reacts on hardware buttons, not screen tap?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
On XZ2, XZ2 Premium and XZ3, yes. On XZ2 Compact, no.

That's something on my todo list but with low priority since hardware key navigation works.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kjs111:
I used the option 2 because I have root access and I want to maintain it.

I'm from spain using Movistar/O2, Is there any place to look wich modem configuration I can use?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
You can use Magisk and still use option 1.

It's weird that it uses argentina config then. What stock fw was installed before switching to LOS? Maybe the wrong region was installed? config for S91.1 was taken from akari fw for GEL region.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kurtn:
Question: is the kernel up to date with security patches? I see quite some work on similar kernels:

https://review.lineageos.org/q/sdm845/lineage-20
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kjs111:
Hello dtrunk90,

I bought my phone in amazon spain and came from stock firmware. Unfortunately i don't know if was an european rom or not but I never had problems with coverage.

Regarding Option1/Option2, I used option 2 (magisk+safetyNet) and I can use my bank app but I only have problems with google wallet. I will try to update to the next LOS but is only this app.

Could you please let me know too where can I find the correct modem config version for spain?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
If you don't know whether the stock rom which came pre-installed was for your region or not the only advice i can give here is to use XperiFirm + newflasher or flashtool and start from the beginning. Maybe flashing only the modem partition is also enough. You could check if the referenced mbn file is in your modem partition.

It's not just magisk+universal safetynet fix. you also have to set a fingerprint manually with another module and props command. and you have to do some other stuff like deny listing apps. if you've ran wallet before passing safetynet also deleting app data might be a good idea.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kjs111:
I followed all the steps and today after resotore magisk from its setting I can started to add cards and pay from GWallet.

Can I flash from recovery modem config/fw like in old cyanogen or I need to "reflash" all the phone. Where can I found modem version for Spain?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
> Maybe flashing only the modem partition is also enough

> use XperiFirm + newflasher or flashtool
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] project_2501:
Portugal Customized should have your modem config for Spain from Xperifirm's repositories. One thought, I don't think flashing modem alone will work because data is stored elsewhere from what I recall that will create conflicts.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kurtn:
Is there a chance to get more apps supported by audioFX? I only get it working with viMusic. But not with antennapod
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] kjs111:
Hello,

Thank you for your patience and help. I don't know what I did but after full reinstall now the slot 0 is S69.1, I don't know if this is the correct configuration but it seems to works better.

I really don't undertand what was happened.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Well, I can tell you what happened: You had the wrong stock firmware running.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] hack1jack:
First, thanks to the group for supporting this device. The problem is that mode extreme battery saver does not work
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] dtrunk90:
Where to find "Extreme Battery Saver"? I can only find the normal battery saver which is working fine here for me. Please provide a crash logcat with "adb logcat *:F"

Isn't "Extreme Battery Saver" a pixel only feature? Please don't tell me you've downloaded the APK and expected it to work.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] ben_2777:
Hi everyone,

Just to let you know I ve got some freeze on top bar refreshing, after disconnecting wifi or gps, it remains "ON" (I have to un slide reslide to see wifi disconnected). it happens since 2 weeks nearly every day. Let me know if you want logcat.

all rest works like a charm.

I have a question: I want to buy a new one but I saw this text on mobile description: "Note：Single SIM H8314 is flashed by Japanese version of the SO-05K"

Is it a No go? I read some "docomo" or japan version are not compatible due to NFC firmware. Can I buy this one to put LOS 20.0?