yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mak6021:
Fails validation safetyNet, magisk 23.0 xz2 H8266

In-app antutu performance test, does not pass the you Vulcan test.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
You've unlocked the bootloader and installed custom firmware. What do you expect? To pass SafetyNet? Use MagiskHide Props Config or similar to change the fingerprint of your device to pass ctsProfile.

Vulkan driver was imported from latest stock firmware. Tried chewman with and without that driver and that game is working now so vulkan is available. I don't know why AnTuTu doesn't support these tests. Was it possible on stock firmware?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bayu elf sabayonz:
Hi, how to enable init.d without root,, i want to do swapon upon boot but i cant use magisk because many game and banking app i use can detect root,,
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Create your own flashable zip or use MagiskHide + MagiskHide Props Config

Btw. this is not a question which should be asked here, because it has nothing to do with this rom.

Please create a new thread if you need any help on that.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] GreeDWaR:
NFC is working? My xz2 premium -not working normaly. On stock rom -nfc work-perfectly.

bank cards are not readable and the NFC is turned off and is not active until the restart.(Linage OS)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] StephRiff:
Hi I have a same problem and my fingerprint not working after install LineageOs 18.1

I install with this process: https://wiki.lineageos.org/devices/akari/install

Update :

Fingerprint works after deactivating development options

Nfc still not working on my XZ2
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
So after using my XZ2 with LineageOS 18.1 installed. I have found the following. Overall,the rom is smooth and modern looking with lots of new features. But there are also issues.

I cant install Netflix on my device,no matter what i try.

Fonts dont seem to want to change system-wide. I tried a few

Battery drains badly

The screen brightness is down a lot from stock

The overall volumes are also down a lot from stock and installing Viper had no effect in my case of fixing the low sound.

Nearby Share works,but only when you want to share from the XZ2 to another device and not the other way around. You get no notification to say a device wants to share and the other device wont detect the XZ2 if bluetooth is switched off initially. Only after you switch on bluetooth,the other device will see the XZ2 so some work is needed there still.

If these problems can be fixed,i think Lineage will be a really nice Android 11 rom to use as a daily.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Katzenstreu:
Hello,

I'm using 18.1 (Android 11) from 3rd November 2021 on my Sony XZ2 (H8216).

How to switch between capacitive display mode and pressure sensitive display mode (while it's raining)?

Best regards

Tim
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Does anyone know of a way to change the navigation bar with regards to key size and shape as well as the colour of the keys and making the navigation bar transparent?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rizgiy:
hi

not work gpay. sony xz2 8266

device is not sertified

cts profile match - fail

certification site does not help - https://www.google.com/android/uncertified/

what to do?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
https://xdaforums.com/t/rom-11-lineageos-18-1-official.4276833/post-86059651
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rizgiy:
my fingerprint tab is gone. on the official one initially, installed different ones via newflasher.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
What? I'm not talking about your physical fingerprint reader.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rizgiy:
You have to pass SafetyNet and Play Services as well as Google Pay itself has to be enabled in MagiskHide. Hint: Use MagiskHide Props Config to pass SafetyNet. After installing the module you simply need to run `props` as root on your device and follow the steps to set the fingerprint for your device.

At the end of the sentence, it says about the fingerprint. But it disappeared in my firmware
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rizgiy:
thanks, figured it out
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rizgiy:
don't know how to get the fingerprint manager back
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
You can set the fingerprint in security -> fingerprint, not in security -> screen lock (it's directly beneath that option) because beside of a fingerprint lock you may want to add a fallback screen lock if the hardware can't find a matching fingerprint.

But as I already said: I'm not talking about that fingerprint. I'm talking about the device fingerprint saved as a hash-a-like value in the system and you have to change it using the `props` command from the MagiskHide Props Config module in order to pass SafetyNet/ctsProfile.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] AdrY89:
Hello guys I am using the last version of lineage and i found some problems with the microphone and the speaker

The speaker to max volume it is no very loud and not clear

The microphone it is very low volume on to recorder the messages and in the call.

Can help me? It is a problem of fw. Or my?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Its the firmware. I also have low volume levels on my H8216 variant
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Which is weird because the audio configs are copied from the latest official firmware. I can check the configs later in depth.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Yeah,agreed but it is definately soft. I have even tried running Viper4android to boost it,but had no success
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] AdrY89:
Thanks for the support
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Its a nice rom. Just needs a little work still with certain things like battery drain and so on. Then it will be perfect,cant wait for the Android 12 update.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Didn't had time yet to take a look at the mixer configs but here's a screenshot of my battery usage on my daily driver xz2c. Maybe you've installed something which causes your battery to uncharge fast. Mine is still at 24% after nearly 2 days.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rizgiy:
where can i find the boot.img for the this firmware?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I doubt it. I have the bare minimum installed and everything is set to not use location scanning etc outside of the app. So i have social profiles on fb,insta,tumblr,twitter,linkedin,tiktok,pinterest and youtube which i have always had and none of them drain. Only other apps installed are gmail,chrome,duo,google calendar,google phone,google messages,google contacts,google maps,magisk manager and nova launcher.

None of them drain the battery to my knowledge. It just drains quickly for some reason. I switch off my location and wifi or mobile data settings at night when i go to bed and have and automatic do not disturb setting enabled from 8pm until 7am. So the phone is in a deep sleep mode and even then i get atleast a 4% drain overnight. I use the XZ2 H8216 variant
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
4% over night sounds pretty normal to me. Even if your display is off the device will consume battery because it's still on and running.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
What are you trying to do?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I will take a screenshot after a day of the phone in idle mode. Not even being used and you can then see the amount of drain. It drains way too much. Its always been a bit of an issue for the XZ2. Even on the stock firmware it battles to make a full day with light usage.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rizgiy:
magisk canary is not removed via uninstall.zip. Thought in magisk to patch a kernel and to flash in twrp
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
installing magisk can be done directly through recovery by sideloading the apk
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] osa355:
I have a Sony Xperia XZ2 H8296 with 6GB of frame and everything works fine for me. The battery lasts 2.5 days to 3 days with my use, and I will also prove it with the screen. The earpiece and the lower speaker sound like in the original Android 10 from Sony. The LinageOS system itself runs steadily, smoothly and quickly. Thank you for giving my XZ2 a new lease of life and I wish the author health and happy holidays :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bayu elf sabayonz:
how to pass safetynet on los18 xz2

(masgisk v23)

1.enable magisk hide

2.hide magisk with random package name

magisk module install ;

1.riru ( just install and reboot )

2.universal safetynetifx ( just install and reboot )

3.magisk hide props config ( you need to configure via terminal after install and then reboot, see the official guide )

( universal safety net fix is not available from magisk module tab, manual download from github, the other two are available and can be download and install from magisk moduel tab )

after that, safetynet will pass.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
All you need is MagiskHide Props Config. Nothing else. I'm using GPay many times. There's no need for Riru or Universal SafetyNet Fix or hiding magisk with random package name.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bayu elf sabayonz:
my friend has xz2 premium and its not work without safetynet fix which need riru, do you have all xz2 variant?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Did he changed the fingerprint with the props command? I have all variants, yes.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bayu elf sabayonz:
yes, he did, he also install many other module and all kind of things, which maybe causing the safetynet not pass,, but that method that i use will make basically any phone pass safetynet ( tried on many other brand and os version ) also its just small extra step and cause no side effect, and guarantee pass on almost any device configuration ( not tested on android 12)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
@Sjll

Since the 2021-12-15 update bluetooth, wifi, mobile internet and sdcard are dead. Also I can't access the settings, they are crashing because they can't access bluetooth.

The logs are spammed with E ocessService0:: failed to create Unix domain socket: Operation not permitted and other errors.

It's definitely Selinux. I set it to permissive via adb in the earliest possible boot stage and now everything works.

(If you set it to permissive after android is already booted to the desktop this won't work)

Or use this magisk module which sets your selinux to permissive at boot time. ( Of course it's a security degradation until the developer fixes this issue)

GitHub - evdenis/selinux_permissive: Magisk Module that switches SELinux to permissive mode

Magisk Module that switches SELinux to permissive mode - evdenis/selinux_permissive

github.com
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] farukr1:
Can't confirm these issues, maybe try a clean install using the instructions on los website since they slightly differ than in here.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I do OTA updates since several months over the buildin updater and made a fullwipe before moving to 18.1.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Any magisk modules installed? Can't confirm it on my xz2c but i can try updating my xz2 and check if i can reproduce it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Just installed the previous build (20211208) and updated to 20211215. Can't reproduce any of your issues. Everything works as expected. I guess it's some addon or magisk module which breaks bluetooth, wifi, mobile internet and sdcard for you. Or maybe something went completely wrong during the update.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you for the replies.

I did upgrade from a build 1 month before so probably 20211115? to 20211215.

Sadly there was no magisk module enabled while testing this bug, so probably the update did go havoc or maybe an intermediate OTA did some migration steps by migrating some selinux stuff like selinux labels/context via restorecon?

I attached my errors
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Last changes for akari and tama-common was the vulkan graphics driver blob on Nov 8th. It's hard to find the cause for such a long period in between these builds.

If it's fixed for you by setting SELinux to permissive this must be an SELinux thing as you already pointed out.

In your logs i can see only 2 "avc: denied" entries:

12-20 10:44:06.894 583 583 E SELinux : avc: denied { find } for interface=vendor.qti.hardware.capabilityconfigstore::ICapabilityConfigStore sid=u:r:vendor_vppservice:s0 pid=2415 scontext=u:r:vendor_vppservice:s0 tcontext=u:object_r:hal_capabilityconfigstore_qti_hwservice:s0 tclass=hwservice_manager permissive=0
12-20 10:44:06.896 583 583 E SELinux : avc: denied { add } for interface=::vppService sid=u:r:vendor_vppservice:s0 pid=2415 scontext=u:r:vendor_vppservice:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

Maybe it's not a good idea to skip that many updates.

In tama-common that sepolicy makefile is included, but there weren't any changes since June 14th: https://github.com/LineageOS/android_device_qcom_sepolicy_vndr
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So it's probably something changed at a different place in the code base, maybe in LOS, maybe in AOSP.

But since they officially allow the OTA updater setting to search monthly for updates they shouldn't remove selinux migration stuff before 2 months are over if they did. :(
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's my SeLinux crash log. I wonder where I could fix the selinux label.

restorecon -Rv /data/data/com.android.networkstack

didn't change anything.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
The only persistent quickfix i can think of is writing a small magisk module which only contains the sepolicy.rules. Did you tried updating to a newer build already? Does the problem persist then? Something strange happened to your last update and i wasn't able to reproduce it. I already tried clean installing 20211126 and directly updating to 20211224 (on xz2c however) but everything was working.

EDIT: I've attached a magisk module which only installs the selinux rules. Not sure if other rules are required to be added but that's as simple as checking the `avc: denied` log entries.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, sadly a newer build didn't fix my problem.

And it's sad that you couldn't reproduce it or good, that you don't get it or others.

Sadly your magisk module doesn't work, so it probably wasn't the hwservice_manager.

E SELinux : seapp_context_lookup: No match for app with uid 1073, seinfo platform, name com.android.networkstack.process

Abort message: 'JNI FatalError called: (com.android.networkstack.process) frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:1776: selinux_android_setcontext(1073, 0, "platform:privapp:targetSdkVersion=29:complete", "com.android.networkstack.process") failed'

causes several other selinux denies if I read the log correctly.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TheeWolf:
Hi,

I have a problem with the in call volume, it's way too loud, so loud people in the room can hear the other side.

Of course, I lowered the volume as much as possible but it's still way too loud.

After some Googling I may have found the solution which is changing some values in a file called mixer_paths.xml.

However I see there are four different mixel_paths files:

mixer_paths_i2s

mixer_paths_qvr

mixer_paths_skuk

mixer_paths_tavil

From what I understand, the values I need to change are DECn values (n - number):

<ctl name="DEC1 Volume" value="84" />

<ctl name="DEC2 Volume" value="84" />

<ctl name="DEC3 Volume" value="84" />

<ctl name="DEC4 Volume" value="84" />

<ctl name="DEC5 Volume" value="84" />

<ctl name="DEC6 Volume" value="84" />

<ctl name="DEC7 Volume" value="84" />

<ctl name="DEC8 Volume" value="84" />

<ctl name="DEC9 Volume" value="84" />

<ctl name="DEC10 Volume" value="84" />]

My questions:

1. Those values are in all of those files except for mixer_paths_i2s. So, which file do I have to change?

2. Can anyone confirm the DECn values really are the ones I need to change?

Thank you.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] trinhloivn:
on the latest update everything work.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mak6021:
The Google service and the setting in the phone settings do not work, so it was not possible to enable the transfer of geodata. (11arm64pico gaps was installed)

i didn't find ambient display function?

while everything else pleases everyone thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Can't reproduce but i've installed NikGapps as OpenGapps wasn't available at the time I've moved to LineageOS 18.1. Did you followed that note:

> Note: If you want the Google Apps add-on on your device, you must follow this step before booting into LineageOS for the first time!

Source: https://wiki.lineageos.org/devices/akari/install#installing-lineageos-from-recovery

pico is "the bare minimum" which is also an information when selecting the package you want to download at opengapps website. I don't think "ambient display" is part of that package. Not even sure which package it belongs to. https://github.com/opengapps/opengapps/wiki/Package-Comparison
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
Hi. When i install OTA update and after reinstall Magisk... magisk reverse OTA update and i must install OTA update again few times... WTF?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Please don't tell me you're reinstalling Magisk everytime you're doing Updates.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
Yes according to the wiki
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
You're misinterpreting something then. Do OTA updates through the updater and that's it. There's absolutely no need to reinstall magisk.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
OTA Upgrade Guides

The Magic Mask for Android

topjohnwu.github.io

please read this
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
So that's new to me. But i still don't get why you simply don't use v23 of magisk.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
i use mag23 but some ota updates remove magisk from partition
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
I'm doing OTA updates since at least a year and installed magisk only once when i set up my phone. That's not true.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
I prefer to be safe than sorry I use my xz2 as a daily one

regards
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Same for me. The xz2c is my daily driver.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
Hi, many thanks for your great work!

- I own a Sony Xperia XZ2, model number H8216. After installing lineage-18.1-20220119-nightly-akari-signed.zip and Gapps (MindTheGapps-11.0.0-arm64-20210920_084011.zip) I disabled USB debugging in developer options, disconnected the phone and rebooted.

And there it is: USB debugging is enabled again. When I connect the phone to my computer a message appears, telling me that USB debugging is enabled and in developer options the respective switch is activated.

- No Magisk or anything similar else installed.

Is there any solution, maybe in the next release?

Please see also:

https://www.reddit.com/r/LineageOS/comments/s8ff6w
Greetings
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Yes, there's a bug report see https://gitlab.com/LineageOS/issues/android/-/issues/308

Afaik this can be fixed by us in a qcom usb script. I'll have a look over the weekend.

EDIT: Weird, I just checked our common device tree and this fix was already present. You did a clean install with wiping data/doing a factory reset before? If not, please run:

adb shell setprop persist.vendor.usb.config ""

You could also check that persistent property before re-setting it with:

adb shell getprop persist.vendor.usb.config
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
Hi dtrunk90

Thanks a lot for your quick response and the promising prospect.

All the best
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Please see my edit above
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
Hello

Sorry to bother you once again.

I did a clean new install after formatting/wiping all data in the recovery.

This time I installed lineage-18.1-20220119-nightly-akari-signed.zip

without Gapps or anything else.

After booting first time USB debugging was activated and consequently after deactivating it via developer options and reboot. So unfortunately there was no improvement.

Using the commands you suggested resulted in mainly empty lines:

>> BT-iMac:~ b_o_t$ adb shell getprop persist.vendor.usb.config

BT-iMac:~ b_o_t$ adb shell setprop persist.vendor.usb.config ""

usage: setprop NAME VALUE

Sets an Android system property.

BT-iMac:~ b_o_t$ <<
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
It was worth a try. I'll have a look on the weekend.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Will be fixed with the next build. Thank you for reporting.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] :
Sounds great, thank you very much! So I'm hoping for the best and looking forward to the next build.

All the best
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
After new update when i reinstall magisk =bootloop thanks Devs 😁
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Again: You don't have to reinstall magisk everytime after an OTA update. You're doing something wrong.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
Maybe. No matter. I test now magisk v24 but safetynet broken and new magisk do not have hide components.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
with v24 you can use https://github.com/kdrag0n/safetynet-fix and add stuff you want to hide root for (e.g. some google services) to zygisk denylist - but v23 is pretty stable on 18.1 - you have to root it only once. after every OTA update magiskinit will do the rest automatically for you.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
Thanks dtrunk90. Yes, safetynet pass everythimg works. USNF and Props module. I reinstall Magisk last time. Regards
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rachsutha:
problem LiveDisplay.....!

Each time the device restarts, the settings will automatically change. is the value in the picture did not change the way you wanted.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Mateuszz:
Hello, will I upload this os lineage to H8266?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Matmani:
hello everybody

how to upgrade OTA without lose user data ?

"impossible to disable lineage recovery updates on this device "
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Just update?!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Matmani:
when i uptade via OTA i lose all user data
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
No