yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] remunramu:
Does anyone have a problem with connecting a controller?

I have DS4, it can connect but does not work, it shown light purple led not blue. I cant play PSX anymore.

Another question, If I update via ota will I lose my root access?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cuynu:
Root access will not lose
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] pgraf:
Is therme any tutorial on how to change the fingerprint, i can Pass the basic integrity check but the cts profile doesn't match - my banking app refuses to install...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
You can run the command "props" via adb or termux as root: adb shell (in case of adb), su (you may need to grant su permissions on your phone. It will automatically ask if you run this command) and then props. It will give you options you can choose from by entering numbers.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] pgraf:
Thanks, worked really easy using termux, entering "su" then "props" and following the instructions....
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] BENETNATH:
sorry, about H8314

https://xdaforums.com/t/rom-12l-xz2c-official-lineageos-19-1.4441829/post-87202013

thanks for your help
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Is there anyone that can please fix the stereo sound? It does,not seperate channels correctly and also one stays very soft no matter how you try to adjust stereo. It is really annoying when trying to stream etc. Top speaker/earphone is soft always. Bottom works fine but does not fade correctly when adjusting balance.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Hichem2006:
how is this app's quality compared to gcam?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rachsutha:
Can only shoot, can't adjust anything as much as gcam and the latest version. Can't use video Old version is required.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Cuonglla117:
No better than that cam come with lineage
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mak6021:
The microphone does not work on the speakerphone, how to fix it? Sony xz2 h8266. The problem is solved by replacing the second microphone (the top).

Issue solved replacing the second microphone (top)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
@dtrunk90

Maybe this helps you to disable the forced dark theme in the battery saver mode on non oled devices.

Using a brighter screen at day because of this drains battery.

Prevent dark mode from activating during battery saver

I just updated my OG Pixel 1 to Android 10. I normally use light mode (not dark mode), but my phone just hit the threshold to turn on battery saver mode, and now it has forced my phone into dark mo...

android.stackexchange.com
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ViskaEilifd:
Hi all,

Thanks so much for everything! I installed LineageOS 17.1 on my H8296 and have been absolutely loving it!! However, a program I was using recently was having problems so I thought it was time to update to a newer version.

Following the instructions for upgrading from 17.1->19.1, I downloaded necessary files, tried to sideload 19.1 but ran into error "Expected Akari not H8296", so I read the posts and realized I need to flash/install 19.1 recovery first. Windows was not recognizing the device in fastboot mode, so again I read the posts and followed instructions to get it to recognize it (Thanks again!! I did everything on Linux before but that computer broke so I am on Windows 10 again for a minute).

So, I performed fastboot flash boot 19.1recovery.img, I saw that it flashed to slot a. I restarted the phone in recovery and TWRP pulled up but was frozen - no menu, no buttons, nothing, just said TWRP and had some background images. I tried to reboot normally and it went to recovery automatically.

I thought maybe the recovery image didn't flash right so I did fastboot flash boot 19.1recovery.img again, and I noticed it flashing to slot b. Now whenever I try to boot up my phone normally or in recovery, it immediately shows an error stating that "your phone is corrupt and will not boot", then shuts down in a few seconds.

When I installed 17.1 before, I had to upgrade stock rom from android 9 to android 10 (I believe I used flashtool/xperia companion), then used TWRP to install it. It was difficult but well worth it! (I was new to Linux so I got to learn a lot about linux and adb/phone ROMs)

So I am currently stuck, cannot boot up phone into recovery. I still have access to fastboot and flash mode (blue led and green led). My first thought is to install stock rom with android 10, then try to install 19.1. But if there is another way (all that really happened was I was on 17.1 then flashed 19.1 recovery twice) that is less work... I am very interested to hear your advice!

Thanks so much!!

-Viska
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ViskaEilifd:
Update!

I had a feeling that the recovery image file was corrupted, so I re-downloaded it and flashed it for the third time. It said it was flashing to B.

I restarted my phone into recovery (volDown+Pwr) and it loaded the LineageOS recovery and went straight into sideload mode! So I sideloaded 19.1 onto my phone, then rebooted, and it works!

So thanks again to everyone - reading through these posts has been very helpful to me. Not having Google on my phone has been very helpful to me too XD

You are welcome to delete my posts if you find it unnecessary to keep them in this thread. Cheers!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] remunramu:
Does anyone know how to gain access on Android/data? I'm rooted.

Tried to use several explorer app but that privacy BS keep forbid me for doing so.

I'm trying to mod some game here.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] trinhloivn:
MT Manager
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] AbelChT:
Hi,

Thanks for the work!.

After installing the latest build of LOS 19.1, the NFC is not working on my device.

From the logcat I extracted some lines that looks related with the issue.

I can to do a further debug to provide more info about the issue if you guide me (I have very little experience with android development).

Thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] osa355:
NFC doesn't work for me either: /
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] SurfRodder:
Any luck with this flashable zip?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
It's not the flashable zip which drives me crazy. It's the incompatibility between libimageprocessorjni.so (stock android 10) and libgui.so from android 12. It just crashes. If i put 25 stock libs into the module at least making photos with the back camera works. But that's not a solution since we shouldn't copy tons of stock libs but making them compatible somehow. I'll let everyone know if/once i got it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] SurfRodder:
Awesome, thanks for all your work thus far! I figured it'd be a big mess on 12 as it seems there's a lot of "updates." I also appreciate the detail in your reply.

For my daily I'll likely use some root method to improve camera...just trying to figure out something better for my wife's phone.

Thanks again! I'll send you some beer funds shortly.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Hi,has anyone had a look at the stereo sound issue that seems to have plagued this rom since atleast LOS 18.1 that i know of? Please if anyone can fix this,it would be appreciated. The low volumes on LOS i have gotten used to by now,but not having proper stereo speaker seperation is driving me mad.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
What do you mean exactly? Stereo is working fine here. Or do you mean the different volume levels?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Both,on my H8216 model the volumes are very different but also the stereo balance in the accessibility menu does not work correctly. When moving balance completely to the right only the one speaker plays as it should. But when moving balance completely left,both speakers remain playing when only left should. On my device the ear side speaker (left) plays at a very much lower volume than the right speaker when balance is centered. I have tested this by changing my custom rom and reverting back to stock Android 10 and the speaker volumes etc are the worst on LOS for some reason.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
I'll put it on my todo list.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Thank you sir,i really appreciate it. If i had the know how of how to do it,i would've worked on a fix myself already 😊🙏
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Wind_Waker:
Hello 👋 thank you for your great ROM, I'm using it without any noticeable problems, what I really like is the colors of the LED notification, it pick the right color depending on the apps.

What I mess is double tape to wake the screen, ( or maybe it's not supported by the device ). Thanks 🙏.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Unfortunately DT2W is not supported for our tama devices.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] BenjinXie:
Hi guys, I have a strange problem after using this ROM. When I play music or video with the volume turned up, I can clearly hear a broken sound coming from the upper speakers. At first I thought the speaker of the phone was broken, so I paid for a new one, but when I put in the new speaker, the broken sound still came out.

When I used the official Sony ROM again, I found that the broken sound did not come from the speaker when I turned on the maximum volume. I thought the speaker was back to normal so i used this ROM again, then I found the annoying broken sound coming from the top speaker again, what caused this?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I have exactly tie same problem. In my case the top speaker sounds broken and has very low volume. Also no proper stereo seperation,the Dev @dtrunk has said he will put it on his to do list,so we just have to wait patiently for fixes.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
That's a known issue: https://gitlab.com/LineageOS/issues/android/-/issues/4333
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] BenjinXie:
○K,thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
Hello,

tried to upgrade to 19.1 with the 18.1 recovery but it did not work. It still reboots to LOS 18.1

Please see this image for status report after adb sideload has completed.

1. Do I have to upgrade the recovery first to 19.1?

2. Will it work then without loss of data and settings on my phone?

Thanks a lot for your great work anyway!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
1. Yes

2. Please refer to the upgrade guide. Everything except upgrading to 19.1 recovery (due to a change) is described there: https://wiki.lineageos.org/devices/akari/upgrade (and no you don't have to install stock 10 because you've done that already for 18.1)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
Many thanks for your quick answer!

It worked really smoothly after upgrading to the 19.1 recovery.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] casouzaj:
Wrong thread. Please delete this post!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bromanbro:
Thanks for this guide! Los 19.1 works pretty well on xz2. Installation was pretty smooth too. Was hoping it would fix the glitchy digitizer on mine but no luck there unfortunately.

Edit: digitizer is actually working better on los 19.1 than my carrier-locked android 9 (I'm sure flashing the latest global ROM helped too)

Having screen dim as a quick tile is a lifesaver.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mak6021:
one option is to upgrade to los 19.1

in the firmware archive, the path META-INF / COM / ANDROID is looking for the metadata file, copying from the archive and changing it, you can open the file with the help of the total commander and change the bottom line pre-device = H8266, H8296, H8216, akari, akari_dual, save and transfer to the same place in the archive with the replacement of the old one. Make a data save.

reboot into recovery and do formatting further gaps reboot system.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Or just upgrade recovery to 19.1...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rain_effect:
Hello everyone, is there anyway to flash LOS on XZ2 docomo variant (SO-03K). I have tried to flash but got error 28 (kDownloadOperationExecutionError). Please let me know, thank you
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
No, jp models are not supported.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] remunramu:
I experienced too often force close ever since around early september updates. My games kept FC after like 20-30 mins. It happened too often that made me drop my ranked record. I flashed to stock last week, no problem whatsoever. What happened to the latest updates? Anyone experiencing this?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] hibikase:
Docomo can't flash any firmware except docomo itself.

But there's guy @cuynu which modify something to make docomo can flash any firmware if I'm not mistake.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] hibikase:
Also for Japanese Model except Docomo, so far can be able flash any custom rom including Lineage OS. But the NFC died because of difference driver. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cuynu:
Flash global bootloader lol
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] fdmorais:
anyone got a gCam working on this?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] fdmorais:
My phone is rebooting everytime I turn it to landscape :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] casouzaj:
Not here. Must be something in your data.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Not sure why,but i suddenly am unable to log in to Whatsapp with my phone. It gives a message that a custom rom has been detected and wont let me log in. How do i fix this please?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
this is not lineage problem i used whatsapp without problems 😁regards
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I never said it is a Lineage problem. I was simply asking if anyone knew of a way to fix it
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
root phone and hide magisk apk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Hi everyone,can someone please help me? I had to do a factory reset on my phone the other day and now i am struggling to get Netflix to work on my device. Play Store says it is incompatible with my device and when i download and install the apk,it wont let me log in.

I keep getting an error message when i type in my password. I have installed and run the hide props config module in Magisk but nothing is working. I have Magisk 25.2 installed,what else must i do or try?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
I remember I've explained it already for you but: You need to pass SafetyNet and it's always good to add such apps to the deny list in order to hide rooting status for these apps. So in order to pass SafetyNet you either need ih8sn from lukasz or magisk + magisk hide props config (run props to set an official fingerprint) + universal safetynet fix.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Yes,i know you explained before somewhere but i dont find it. I have already installed an run the magisk hide props config and tried to change the fingerprint twice to two Sony devices in the list. Still not working and i have also enabled Zygisk in the Magisk app and denied Google Play Store,Google Play services and even Netflix but still in Play Store it says Netflix is not compatible and Netflix wont let me log in @dtrunk90
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Please download a safetynet checker like https://play.google.com/store/apps/details?id=org.freeandroidtools.safetynettest

Also try deleting app data from play store and/or netflix.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I downloaded the universal safetynet zip now and installed it. Problem is fixed now,thank you @dtrunk90
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lm8lm8:
hi

Id like to know

I now changed from old huawei alice L21, to h8216 arakiri.

I saw last lineageos version is 19.1 (andro12)

I have several wonders about it, for lineageos :

*1 does the fingerprint sensor works well?

*2 could I export the different OEM/stock ringers and wallpapers from stock, to import them on LOS?

*3 I run linux, have adb/fastboot ; how could I save the TA partition, and the whole phone, in case Id like to restore it to the stock/original firmware?

*4 is there an equivalent of the stamina (xperia) or "battery power saving" mode with lineageos, without rooting the device? I didnt had it under LOS14 with ALe/L21

*5 would I loss in camera quality if I switch to lineageos?

*6 does this model could be volte-compliant with los?

*7 does it manages the mobile-payment solutions?

*8 which are the best precaution to have the location working with apps, without getting opengapps? (I was using microg-services, didnt worked well)

[I may have several further qustions later]

thank you vm!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
1. yes

2. with root probably yes

3. dunno, never did that. maybe this will also work on tama devices (no guarantee): https://xdaforums.com/t/how-to-back...n-and-root-the-device-detailed-guide.3479532/

4. there's no stamina mode on lineage. you could probably make this one a flashable zip instead of a magisk module in order to get the sony smartcharger to work (i'm not able to provide any help here since i don't have time for that): https://gitlab.com/xperiance/smartcharger

5. yes, but it has nothing to do with lineage itself. i guess you would have loss in camera quality if you just unlock the bootloader and stay on stock rom

6. VoLTE works for most providers. i've copied all available modem configs from all regional tama firmwares into the rom

7. at least gpay works, never tested any other payment solutions but i guess they'll work too

8. afaik there's only gapps or microg
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lm8lm8:
hey guys

running LMDE5 on my laptop, with adb/fastboot

trying to install LOS on my arakiri :

fastboot flash boot /media/disk/arakiri/lineage-19.1-20221116-recovery-akari.img

Warning: skip copying boot_a image avb footer (boot_a partition size: 0, boot_a image size: 7782400).

Sending 'boot_a' (7600 KB) OKAY [ 0.215s]

Writing 'boot_a' FAILED (remote: 'Command not authenticated')

fastboot: error: Command failed

./fastboot --version

fastboot version 33.0.3-8952118

Installed as /tmp/ee/platform-tools/fastboot

root@host:/tmp/ee/platform-tools# fastboot --version

fastboot version 28.0.2-debian

Installed as /usr/lib/android-sdk/platform-tools/fastboot

bootloader unlocked..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] casouzaj:
NFC never worked on my H8296, either, ever since I unlocked its bootloader. Nevertheless, to my surprise, it got back to life when I dirty-flashed unofficial LineageOS 20.0 over AwakenOS 2.10 (A12L). I'm now able to even make contactless payments, through multiple payment apps.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It worked before.

Maybe in LOS 18.

In SODP and stock (european firmware) it works as well.

Also we have the same hardware.

Only the Japanese hardware is different.

So there must be some bug.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lm8lm8:
does it means LOS18 is "better" for compatibility than LOS19?

It might be believable in a way I already saw such behaviour of recent software not compatible with same hw, mainly because of non adapted or closed source parts.

I would not be surprised at all..

just to know, does LOS18 or 19 from official lineageos is ompatible with h8216 arakiri xperia XZ2?

cause I cant use it through fastboot :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Make sure you use the newest Fastboot Version.

Last time you mixed "fastboot" and "./fastboot".
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
Why Lineage team do not kernel update?

maybe it's time to upgrade to a newer one. Regards
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lm8lm8:
hey ;)

it was not really this. In the idea to explain :

LMDE5 came with no adb/fastboot ; so you apt-get install them.

the coming version from repo is the 28 :

fastboot --version

fastboot version 28.0.2-debian

Installed as /usr/lib/android-sdk/platform-tools/fastboot

so its installed at the said path.

Now its also possible to download it. TO unzip it in a specific path.

I did it in /tmp/something, eg :

./fastboot --version

fastboot version 33.0.3-8952118

Installed as /tmp/11/platform-tools/fastboot

that means theere are two version, on in the common system path, on in the /tmp dir. The idea is to avoid mixing them (as the latest one, to replace "by files" the binary and others libs in the specific dirs), because it could create serious issues due to missversions of libs, and break the software (not the system). That's what I want to avoid. But in the idea, it looks like it "could" run the latest release downloaded in a temp folder, but it has exactly the same results as the 28 one, as I see...

so Im a bit stuck here, that plus the idea to choose : official lineageos or releases you dev on your side (with xperia empoyees/devs?)

here it is :)

thank you for your replies :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] npjohnson:
Use the newest one
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lm8lm8:
I did,

i did, unfortunately results are the same..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] orjanraberg:
Thanks a lot for the ROM @dtrunk90!

I installed LineageOS 18.1 on my niece's XZ2 last year and now I want to help her upgrade it to LineageOS 19.1. She doesn't have Google Apps on the phone. Is there a big risk with dirty flashing or will it work in most cases?

The official upgrade instruction on https://wiki.lineageos.org/devices/akari/upgrade says it is enough to sideload the new ROM with adb sideload. Is there any advantage with upgrading the lineage recovery first and then installing the new ROM from the lineage recovery as you suggest? Will the recovery get updated automatically if I sideload the new ROM only?

BTW, the upgrade instruction on https://wiki.lineageos.org/devices/akari/upgrade says that the device should have Android 10 firmware before the upgrade but I understood from this thread that this isn't necessary?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Yeah I've heard from a several ppl their NFC doesn't work. And all have in common they've flashed SODP some time. Probably that messed something up - i don't know. I never had SODP on my devices and NFC is working fine on all of them (akari, akatsuki, aurora and xz2c/apollo).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Because we rely on sdm845 platform drivers and CAF kernel tags. I can pick sdm845 from sodp 4.19 to qcom 4.19. So we have at least 4.19 instead of 4.9 and I can support the devices even longer. But it's time consuming and it's one of the last points with lower priority on my todo list.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Are you in fastboot mode (blue LED)? If not, please check the wiki on how to get into fastboot mode.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Yes, that's because in 20 I switched from stock NFC to AOSP NFC. You probably flashed SODP some time before and stock NFC had some weird problems with some leftovers probably. Maybe flashing all partitions from stock 10 and then flashing lineage again will solve it but i don't know if it's worth the effort.