yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cuynu:
When i using an VPN (1.1.1.1) , some time my games/apps can't be connect to server such as : MicroG,YouTube Vanced,Genshin Impact (4201), After restarting the VPN normally, but after about 10 minutes connecting to the VPN, the above problem occurs. this problem is in the rom, not in vpn
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nextgoodone:
Hi @dtrunk90 . I saw that tama phones were promoted to official 19.1. Can you say it'll be possible to update from unofficial to official without formatting?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
> A full data wipe is needed if you are coming from something other than an official build of LineageOS.

Frequently Asked Questions | LineageOS Wiki

wiki.lineageos.org
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] fdmorais:
can I clean flash this from recovery from Awaken OS 2.x rom?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
You can clean flash whatever you want, sure. But keep in mind that we only officially support Lineage Recovery. If it works for TWRP or Awaken OS' Recovery it's good but I can't give support for something I don't have access to. And better use the official build which is out as of today.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Official builds are now available!

In order to switch from unofficial to official builds a clean flash is required. Please refer to the official installation guide on how to clean flash properly.

EDIT: And please don't forget to update recovery as well. Otherwise you'll notice an error message when trying to install 19.1.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
@dtrunk now that there is an official build available,can you please provide a step by step guide on how to correctly update to Lineage 19.1 coming from Lineage 18.1. I have already downloaded all required files to update to 19.1 and would appreciate a step by step of how to update. Is it possible at all via Lineage Recovery?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
dirty flash:

1. make a backup of all of your data

2. update lineage recovery (fastboot flash boot command like described in the official install instructions)

3. install 19.1 in new lineage recovery

clean flash:

1. make a backup of all of your data

2. please refer to the official installation instructions

Additionally: https://wiki.lineageos.org/devices/akari/upgrade
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Just the official instructions also guide use to do a dirty flash, except if we want to remove or add gapps.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Upgrading from official 18.1 to official 19.1:

Installation aborts with:

I modified the .zip file to expect the H8296 and it installs fine.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
That's why I said: And please don't forget to update recovery as well. Otherwise you'll notice an error message when trying to install 19.1.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ah, sorry. I only read the official 18.1 to 19.1 upgrade instructions instead of your messages.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Yeah, I had to make a change (https://review.lineageos.org/c/LineageOS/android_device_sony_akari/+/322635) otherwise the installation was aborted on 19.1 recovery. So updating recovery is required only because of that change.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nextgoodone:
Hi, is this official build working with TWRP? Also, can you provide a link to the latest one? (H8266)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ah, funny fix.

Good that it's only needed the first time.

I think the LineageOS works.

But I can't deactivate the dark theme in battery safe mode.

The xz2/c has no OLED screen, so I don't understand why it's forced here.

So if I want to save battery at day in the city I'm unable to see the screen contents anymore or they are much harder to see.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The dtbo is different, it would need a specific twrp for stock, sodp and each stock ported ROM (if they edited the dtbo).

Due to lack of time (main reason) and test devices even the sodp twrp is delayed.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Not sure why though. It took the whole comma-separated list of targets as a single value instead of splitting it. That wasn't the case in 18.1. Nevermind. It works. :-D

Idk, that's something you'd have to ask the lineage devs. I'm just the device maintainer and that's something not on my side I guess. I mean, maybe there's an overlay I could add to the tama-common device tree for that.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] fdmorais:
getting som random reboot, and everytime I press the camera button the phone reboots
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Which camera app? Or do you mean the physical one on the side? Do you have a logcat? I cannot reproduce it here. Everything is running just fine. Also making photos works.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] fdmorais:
the physical button on the side, as soon as I press it, the phone reboots. the camera app, works
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
The physical button should do nothing (except for if the camera app is running it should take a photo). Can you provide a logcat please so I can check it since I cannot reproduce it?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
xD

I hope there is an overlay.

Also there are no color options in the theme settings.

But I saw them on a different device with lineageOS 19.0

I don't know if it's a 19.1 bug or also an overlay thing.

Also the device shows android 12 / los 19.

Only the updater shows 19.1.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Might be an unofficial build then. There is no theme settings other than wallpaper and dark mode in official lineage builds. I had this discussion yesterday and i got told they want to improve system themes app instead of relying on 3rd party like repainter.

Yes, that's intended behavior.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
What am i doing wrong? I have put the files inside the adb folder on my p.c. but get this message. When i try to update via recovery,i get the error message H8296 was expected.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Did you updated recovery to 19.1?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
No,i have not. I asked on Reddit following the link from Lineage but got no reply. So clearly i need to update the recovery first and then update to LineageOS 19.1 after,is that correct? How do i update the recovery? Via adb?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Yes, you first have to update recovery. No, with fastboot flash boot command like described here (Step 5): https://wiki.lineageos.org/devices/...rily-booting-a-custom-recovery-using-fastboot
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Thank you,i will give it a try tomorrow
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Suren Manukyan:
Does any one of you guys use signature spoofing with this? I used this hacky workaround to patch signature spoofing into LineageOS 18.1 at every update, until i eventually grew tired of it and stopped updating it completely. Now that i see 19.1 out, i wonder if there's maybe a better/more painless way of patching signature spoofing into it so I'll update.

P..S. i need signature spoofing for microg
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I used magisk and xposed / riru there last time if I remember correctly
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Suren Manukyan:
on 18.1 or 19.1?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
There's an overlay config which i'm using in one of my xperiance magisk modules. I don't think this discussion belong here. Nothing related to lineage on xz2. See https://gitlab.com/xperiance/smartcharger
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Suren Manukyan:
I'm not sure i understand what you mean by this to be honest. My question is whether any one in the thread enabled signature spoofing on Lineage 19.1 on XZ2 and if so, how. I might be misunderstanding you though, what does the overlay config you mention do?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
It adds a signature to the already existing platform signature so apps not signed with the platform signature can run as system apps. That's exactly what you're trying to achieve, isn't it?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Suren Manukyan:
I don't actually have enough knowledge to answer that question tbh. I just know i need my rom to allow apps to spoof their signature, which lets microg's gms core pretend to be Google Play Services (got from here). I think you'll be more qualified to say whether what you describe is what im trying to achieve, haha.

edit: Upon more reading, no i dont think platform signature signing is what I want.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] jphoerth:
How did you change that?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
You can fix that by updating recovery before. No need to modify the zip file.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Or in Linux open it with the standard archivemanager and then the right file with a text editor and replace the =akari line with your device code

hihihi
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
And if you do this, I won't give any support here in case anything acts weird. hihihi ;-)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
:D

Something is wrong with the darkmode.

The quick settings are always black.

Also the Google search in chrome is always black themed.

And my widgets randomly switch to the black mode while I use the white mode.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I think there is another overlay issue which was also there in 18.1

If I swipe over the status bar to reduce the brightness, the far left point turns my screen to maximum brightness.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Quick settings are always black. That's AOSP:

https://www.reddit.com/r/android_beta/comments/ps1kdp
There are no theme related overlays in our device trees.

I guess the same applies to chrome search.

Not sure if this is device tree related. Is this a Trebuchet launcher feature? I can't even do that here.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Done at https://gitlab.com/LineageOS/issues/android/-/issues/4831

Currently it is invisible because it's marked as "Confidential".

It's the default launcher.

The setting to activate it is at System -> Statusbar -> Swipe to change brightness
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Sorry, I've edited my post. There's no light mode for quick settings since there is no light mode in AOSP. I don't think they will implement such stuff in lineage.

I just checked the brightness control by sliding over the status bar and could reproduce it. Once you reach the clock it jumps back to max brightness. But I think that's intended since the status bar area you can slide is in between the icons. And that's also more of an AOSP "issue" than lineage or our device trees.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ahhh a ninja edit xD

If I check the brightness slider at this maximum brightness it is set to 0%.

AOSP has a swipe notiication bar to change brightness setting?

I didn't find it in AOSP11 and LineageOS 18.1 for the xz2 has the same bug.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
If that's the case it seems to be more a general lineage bug, yeah.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Does anyone have a link to working adb drivers for the XZ2 model H8216. I need a working fastboot driver,when i boot my phone into bootloader with adb,the connection is broken so i cant update the Lineage recovery to 19.1
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Did you enabled usb debugging? Fastboot should detect your phone.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Yes,it is enabled and set to file transfer in developer options but connection is lost when booting into bootloader or fastboot
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Don't set it to file transfer. This will disable adb/fastboot.

EDIT: Which color has your LED? blue or green? It should be blue for fastboot mode.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Led shows blue,but adb and pc dont find the device
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
Hi. Please turn off signature verification in windows 10/11 then instal minimal adb and fastboot drivers 😁 regards

Minimal adb and fastboot drivers:

minimal_adb_fastboot_v1.4.3_setup.exe | by shimp208 for Utilities

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Please provide a link to download if possible. Also,how do i turn off signature verification? Its just strange to me that when i try the same process with my nom-rooted S20,it boots into bootloader mode and both adb and my pc show a connection to it. But my XZ2 disconnects
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
This is simple instructions up! Please read and working 😁

I also remind you that all files for flash should be in the directory where windows will install adb and fastboot like c/program files/minimal adb and fastboot
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] casouzaj:
Launch Device Manager. Double-click on the device (usually Android or adb, or...) bearing an exclamation mark. Select the Driver tab and click on 'Update driver'. Select that you'll grab from your computer, and that you'll choose from a list. Browser through and select Sony SA0113 (something like that). Let the driver to be installed. If your phone in fastboot (download) mode is not promptly detected, reboot your PC and try again.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I did try this already. Windows says the best driver is already installed for the device. I tried to manually update also with no success
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
Do You have install FLASHTOOL when not install it without signature verification and check device in menu
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
No,i dont have flashtool installed on my pc
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
Maybe this is problem for You Xperia 😁 install it fast
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I will search for it and install tomorrow. Hope it helps
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
has all the drivers you need, it's a waste of time to search one by one and turn off antivirus for this moment
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Thank you,i will try this tomorrow
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] cuynu:
Can you fix this gesture problem while on landscape?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
With the new LineageOS 19.1 my logcat is spammed with error messages
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] &(*):
I have my setup with all the flashing software you can think of and did not have to disable driver signature verification (better safe than sorry). Post a picture of your device manager page if you can. You should see the device manager page refresh when you plug in the phone via fastboot or adb, if not you may have a damaged USB port that semi functions (have repaired an XZ2 displaying the same issue you are facing).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Wow. That's a huge java stack trace. So huge we can't see the initial exception. Any mods installed? Gapps/Magisk+Modules?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] binnoboiz:
is there any problem with this custom rom?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Hi,when the phone is switched on and i connect it to the pc,device manager shows it as Xperia XZ2 and adb picks it up when i type in adb devices,but after i type the command adb reboot bootloader and the phone swiitches off,the connection is lost. Device manager does not refresh then at all.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Can someone PLEASE help me? I have now installed Sony Flash Tool and Xperia Companion on my pc. I have also tried numerous usb cables and have even reset my device but still no luck when booting into bootloader mode. Device turns off and shows blue led. But pc device manager refreshes and shows faulty Android device no matter what i try. How do i update my phone to new Lineage 19.1 recovery and LineageOS 19.1?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I use linux for this job without problems.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Unfortunately i dont have access to a Linux device. Otherwise i would try it,my problem is that for some unknown reason the fastboot driver is not installing on my pc. See screenshot attached.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Please follow these instructions for latest adb and fastboot: https://www.xda-developers.com/install-adb-windows-macos-linux/

It should work out of the box.

I don't use windows myself so I'm not much of a help here, sorry.

EDIT: Also try another cable and/or usb port.

EDIT2: And if you still can't get the drivers installed you could also try this: https://www.howtogeek.com/167723/ho...8.1-so-that-you-can-install-unsigned-drivers/ But keep in mind that I don't think the official drivers from google are unsigned and there might be some viruses around. So please always install stuff from its official sources.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I have done all of this already. Nothing is fixing the problem
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Try either a different computer or Linux.

Or maybe you need to reinstall windows, but that would be the last resort.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Try the following: Instead of using adb reboot bootloader simply power off your phone, then press and hold volume up and connect the usb cable. This should also boot into bootloader/fastboot mode.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
i tell you yesterday turn off signature verification and then install drivees from FLASHTOOL and turn off antivirus or install linux on pendrive - manjaro is best for me
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
With EndeavourOS (and in the past with Linux Mint) everything worked out of the box.

The last windows I tried it with was 10 and the usb android driver installation was pure horror.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
When i power off the phone and then press and hold the volume up key while connecting the usb cable i get a green led and in device manager it shows SOMC Flash Device. But adb still has no connection when typing fastboot devices to see if there is a connection.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
Yes i now but turn off signature verification fix problems 😁

Trace go to fastboot mode from console adb reboot bootloader and fastboot device for check serial no.

Drivers from FLASHTOOL is in c/FLASHTOOL/drivers or /usb drivers i don't remember now
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I did do all of this already and NOT WORKING
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
Then you're not pressing the volume up but volume down key. volume up press and hold + connect usb cable + release key when led turns blue you'll enter fastboot mode. with volume down instead you'll enter flashtool mode.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
What 'h get in Flash Tool now with device switched off. But still no working fastboot mode in adb
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I do know the difference between volume up and volume down. I am pressing volume up and get a green led. I will try volune down key now and see if led changes to blue
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
just to make sure: you already installed a custom rom (like 18.1) and your bootloader is unlocked already, right?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] scaniathe:
Trace i write for You instructions step by step but afternoon because not time now
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Yes,that is correct. Bootloader is unlocked and device has LineageOS 18.1 installed. I tried volume down key now and still green led. Removed the phone from case and tried volume up again. Got a blue led but device manager shows faulty android device driver still.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Thank yoq,i will wait for the instructions later and try them.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
ah so it was the case which pressed the volume down key all the time lol

at least now this is solved.

pls remove all the drivers and companion **** and reinstall from the xda blog post i gave to you.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I am going to try now from my laptop instead. Will install adb and drivers there and see if it works. If not i will wait for instructions from @scaniathe later and try them
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Same result on my laptop,connection is lost when booting into bootloader mode. Will wait for instructions later.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shoey63:
To fix 'faulty android' in device manager while in fastboot:-

- right click > update driver

- Browse for drivers on your computer > Let me pick from a list . . . .

- Universal Serial Bus devices > next

- Click WinUsb Device on left, then ADB device on right > next

- Ignore Update Driver warning and click yes

- close window about successful ADB device driver update

- It will now show up in device manager as Android in USB devices

- Start fastbooting ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Thank you,i will give this a try now quick. Hopefully it fixes it
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
@shoey63 thank you. My phone is now staying connected in bootloader mode at last. Now adb is not finding the recovery.img file,but i will figure it out. Atleast the phone is staying connected now 😊
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Rogier Oudshoorn:
So i thought I'd update my backup xz2 to LOS 19, but i get an error with sideload:

"Package is for product akari but expected H8296"

Anyone have a clue what i did wrong?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ben_2777:
Hi, I would like to update 18.1 --> 19.1

I am not sure to understand this sentence "2. You need to flash Stock Android 10 before flashing this ROM."

I have LOS18.1 installed, before doing it, I had installed stock ROM on both slot.

Do I have to re install on -slot a -slot b the Stock ROM? or can I just follow normal instructions?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
please manually update/install 19.1 recovery first
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dtrunk90:
No, you don't have to do that if you've done that already once before.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ben_2777:
thanks, that's what I thought, clean flash successful! No issue.