yashsingh1/xdaforums huggingface dataset:
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] King_lilrowrow:
@Sjll For some reason since it's been rebased on Android 11 I can't boot this. Device is the XQ-AU51 used newflasher to flash stock Android 11 to both slots and followed your guide to a T multiple times and it just gets to the Sony logo before throwing me back to fastboot (blue LED) not fastbootd, your Android 10 based version worked flawlessly.

Could it be to do with the Android 11 stock ROM rebranding my device to XQ-AU52?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
That's what I did. Just went fully back to stock and then installed fresh.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
Well, unfortunately flashing just the super.sin didn't work for me (wound up being unable to boot past the Sony start up), so I had to wipe and flash stock entirely. But, all installed fine and I'm now fully updated to Lineage 18.1 re-based on the A11 firmware.

@Sjll Just wanted to note a few things:

> When I lower brightness to its lowest setting in the notification shade, the screen actually goes completely off.

> There's a bit of a delay when I unlock the phone, ranging around half a second or so. Sometimes the gesture hint button appears briefly when it comes on, even though I have that set to off, so not sure if there's something up with that that's causing the delay. There is still a delay when using any other two/three button navigation as well.

> I'm also having issues with text notifications not waking the screen when I receive them. It worked fine on the Lineage 17.1 build.

> As well, the multicamera support through Open Camera is spotty. I can't seem to get the telephoto lens to work, and it usually crashes the app.

Otherwise it's running fine overall. Happy with the speed of setting this up!

EDIT: Also, here's a strange glitch. My phone has 128 GB of internal storage and yet Lineage is only recognizing 64 GB of it.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
About multi-cam, I will check it in free time.

Do you still have only 64GB after back to stock?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
Feb. update uploaded. Enjoy.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
I haven't flashed back to stock since updating to this latest version of Lineage. It was 128 GB at stock when I did flash back to install 18.1, though.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
Your partition table might be broken. Check it on stock please.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] xdauserart:
Hello, great work on this ROM! After installing this without Gapps there is a message from Trust about signature. Also if I install MicroG Services Core, MicroG Services Framework and FakeStore, Whatsapp doesn't work as it says that it needs Google Play. So the way to fix it is to install Xposed Framework (https://repo.xposed.info/module/de.robv.android.xposed.installer) and then FakeGApps (https://repo.xposed.info/module/com.thermatk.android.xf.fakegapps) as advised at https://github.com/microg/GmsCore/wiki/Signature-Spoofing, right? Or do we have better way to fix this?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] xdauserart:
Update. I've tried Haystack patcher to enable signature spoofing but it fails with this with USB debugging (rooted debugging enabled). Following guide at https://github.com/Lanchon/haystack

❯ ./pull-fileset ../fs-xperia10ii
>>> target directory: ../fs-xperia10ii
>>> adb pull /system/framework/framework.jar ../fs-xperia10ii/
/system/framework/framework.jar: 1 file pulled, 0 skipped. 61.7 MB/s (27371431 bytes in 0.423s)
>>> adb pull /system/framework/framework2.jar ../fs-xperia10ii/
adb: error: failed to stat remote object '/system/framework/framework2.jar': No such file or directory
>>> adb pull /system/framework/core.jar ../fs-xperia10ii/
adb: error: failed to stat remote object '/system/framework/core.jar': No such file or directory
>>> adb pull /system/framework/core-libart.jar ../fs-xperia10ii/
adb: error: failed to stat remote object '/system/framework/core-libart.jar': No such file or directory
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
Mar. Update uploaded.

Update：

March Security patch

Dual speaker supported

Kernel rebased

Issue：

Minimum brightness is still 0.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
MicroG need to hack the Android source when building. But I didn't include it. I recommend to use NikGapps. Which is powersave.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] ig2205:
I have a problem with the update - "Signature verification failed".
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
You need to flash via fastbootd, and sideload Gapps.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] ig2205:
So when updating, I have to make points:

5. Enter fastbootd

6. Flash LineageOS

Will this update change my phone settings?

I do not use Gapps and therefore I like your soft.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
You need to flash these IMG in zip via fastbootd.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] ig2205:
Thank you, everything is done.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] xdauserart:
Thanks. I was looking for no Google apps solution to avoid privacy issues. Looks like I need to flash Xposed Framework somehow.

Another issue. I see notification for developers at the top sliding panel. It says that console for sequential port is enabled and advises me to go to a loader of the system to disable it. And it says this spends battery. How to fix it?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] celitelmitriy:
Hello, friends. Sorry for my english. Tell me if I can install this rom if I have Android 10 on my phone? Or do you have to upgrade to 11 first?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] ig2205:
There was version 18.1 for android 10 for a while, now it's for android 11.

On android 10 it is at 17.1 but it is without an update.

I am writing about versions made by Sjll.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] celitelmitriy:
Did I understand correctly that I need to update my phone firmware to Android 11 before installing Lineage?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] ig2205:
If you want to use 18.1 from the first post then yes.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] celitelmitriy:
Another question in this case: can the Android 11 OTA update not come due to a jailbroken bootloader?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] ig2205:
I understand that you have an unlocked bootloader (jailbroken reminds me of iOS) and therefore there is no OTA update.

Lock bootloader - then it will be OTA update or update your phone with Xperia Companion, re-unlock and upload LineageOS.

I did it with the European version of Sony, and I don't know what it is like with the other versions.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] ig2205:
There is also a new update "lineage-18.1-pdx201-20210330-sjl" - what's new in it?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] celitelmitriy:
Jailbroken=unlocked. This is google translate😁. Ty for information
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] teddie124:
Hi!

I have an issue with push notification when it comes to non-system apps (Calls and texts works fine).

I've check the battery optimization, app permissions, notification settings, restarted my device.

Could someone help me figure out what it could be? Running 18.1 Without Gapps

Example of apps I'm having issues with: Discord, Snapchat
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] celitelmitriy:
Does anyone have gpay running on this firmware? I cannot add a card and fails safety check.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Meloferz:
You won't be able to use gpay, because Safetynet checks if your bootloader is unlocked, and also checks if the Android Attest key is provisioned...

Edit: Maybe there is a solution?

https://www.reddit.com/r/LineageOS/comments/khgras
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] celitelmitriy:
Thanks it worked!
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] tinkeralot:
1) @Sjll thank your for the ROM

2) a few quirks I experience:

a) screen brightness is always quite dark - no matter if automatic or manual - after 15min of not using the phone - if you gou back - screen brightness is low again.

b) the phone seems to 'wake up' by itself (screen turns on) every now and then

any ideas (doesn't happen all the time)?

3) I would like to extract the Sony Camera-App from the stock ROM with the hope of beeing able to take wide-angle pictures again - can I extract it from the original firmware files downloaded with XperiFirm OR do I have to reflash the original firmware and then try to extract it (with adb)?

btw - If anybody wants to go to back to original firmware and needs to do this in Linux:

I spent 2 days 'fighting' with reboot-loops and fastboot/fastbootd to install this Lineage ROM. As I could not use official sony flash-software to get out of boot loop, I tried flashtool (0.9.30) - did not communicate well with Xperia 10 II.

The only way of flashing the stock ROM was through a thing called 'newflasher' https://github.com/newflasher/newflasher (easy to compile)

Later I could start again with trying to flash a recovery and then Lineage18
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Name-Searcher:
I tried flashing from a new phone stock updated to android 11 everything flashed without issues even gapps but now its stuck in a bootloop from first boot and i dont know what to do

I believe i have this version: XQ-AU52 dual sim

but i dont know how to check that now atleast its the dual sim one for sure

edit: flashed from linux not sure if it matters i could try flashing from windows but i would have to reinstall it since my adb drivers seem to be broken there
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] tinkeralot:
Look at the sim-card-tray, does it say SIM2?

You definitely need the adb and fastboot-commands from the google platform tools, not the ones that ship with your linux distribution (in my case ubuntu20.04).

To proove, that you are using the correct fastboot binary - the command 'fastboot reboot fastboot' MUST work - if not - you are using outdated versions.

But first you need to get back to stock firmware:

I reflashed the original firmware with "newflasher" - see my previous post.

To get the latest stock firmware - you need XperiFirm-x86.exe oder XperiFirm-x64.exe - I could not get them to work in wine.

But it might work with mono: "sudo apt install mono-complete && mono xperifirm64.exe'".

If this doesn't work, you need a real windows or a windows in VM to download the firmware.

When you have the firmware files unpacked, you just cd into the folder and run './newflasher' from there. You have to answer a few yes/no questions, but at the end it will flash and you will end up with a stock firmware again.

From there you can start again with the new adb/fastboot...to try to flash lineage18 again.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Name-Searcher:
I think this was the issue

Got this working and downloaded the firmware

But i cant get newflasher to work for some reason but i dont really understand it and this is what it outputs

after this my phone doesn't power off (edit: it does reboot to android if 'a' is entered) even if i type 'p' at the start and yes its in flash mode with the green led on

And yeah its XQ-AU52 forgot I could check the box and also thanks for the quick reply and help
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] tinkeralot:
Have you noticed that "cannot open /dev/bus/usb/004/001 for writing"?

May be you need to try it with 'sudo'..... I didn't need sudo, I don't know why, but I suspect because my user is part of several exotic groups (like 'dialout' which I needed for connecting to arduino-stuff)
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] tinkeralot:
Did it work? I'm curious to know ;-)
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Name-Searcher:
I did notice that just didnt occur to me to try with 'sudo' but this was the result

with nothing being flashed again after that i tried again but without reconnecting i got this error

and thinking i was doing something wrong i actually input 'a' like this but it skipped everything after that and started flashing

but it somehow skipped this

and now it did flash some stuff for sure because my bootloader has been replaced but its still stuck in a bootloop.

I also tried windows again but i think its a hardware issue with this system (different one linux not just os) because my Xperia 10 II refuses to go into fastboot or flash mode if i connect it to the usb port it just tries to boot every single time.

I even tried a new windows installation installed android studio and all sdk drivers but still the same thing happens and i remember something from a while back that it picks the wrong driver and you need to go into device manager to replace it but nothing ever shows up there unless the device actually boots into a os so that wont be happening

so no not really because i think i broke newflasher somehow but since I'm still kinda new to Linux i have no clue if i actually did or how i just followed the instructions on their git

gonna try reinstalling XperiFirm on windows and downloading everything here see if that makes any difference and thanks again been pulling my hair for a while now
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] tinkeralot:
You did great so far - it's generally absolute horror.

Do you want to continue trying it on linux?

I noticed something:

there is a difference if (with powerd down phone) you plugin in USB and hold VOL_UP or VOL_DOWN.

--> with VOL_UP you get BLUE LED

--> with VOL_DOWN you get GREEN LED

also fastboot reports different results:

with VOL DOWN plugin USB --> LED green

user@machine250:~ $ fastboot devices
???????????? fastboot
user@machine250:~ $ ./platform-tools/fastboot devices
???????????? XFL

with VOL UP plugin USB --> LED blue
user@machine250:~ $ fastboot devices
QV721SA14A fastboot
user@machine250:~ $ ./platform-tools/fastboot devices
QV721SA14A fastboot

but there is a CATH !! (which almost drives me crazy):

the VOL_UP ---> BLUE LED works only the second OR third time you try it - just before having tried VOL_DOWN --> GREEN LED

I don't remember out of witch exact mode I started my newflasher....you can try both ones.

EDIT: please re-read this post, because I edited it several times, correcting typos and making sure these VOL_UP+USB things are reproducible.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Name-Searcher:
I dont see any other way since i cant get into fastboot or flash mode with my windows system

Do you mean this?

I just tried fastboot but it just gives me this

so I dont think that works

looks like the firmware i downloaded from windows also skips all the partition .sin files saying i should unpack partition.zip while there is none

or it just gives back this error again

and it stlll does nothing if i dont put ' but i dont know how to flash it otherwise to stop it from bootlooping
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] tinkeralot:
Yes and No ;-) I am not sure. It is not a straightforward process (in my case).

Try to get a BLUE LED - you might have to repeatedly try:

in my case it was

VOL_UP + USB = GREEN LED (unplug)

VOL_DOWN + USB = GREEN LED (unplug)

VOL_UP + USB = GREEN LED (unplug)

VOL_DOWN + USB = GREEN LED (unplug)

VOL_UP + USB = suddenly!! --> BLUE LED instead of GREEN (like on the first try).

I'm not joking - this is how my phone behaves.

when you have BLUE LED, try

$ fastboot devices

it should return more than just "???????????"

only if it reports something like "QV721SA14A fastboot"

you can continue with newflasher
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Name-Searcher:
yes that is fastboot mode but that wont work like i said here

tried it again because it couldnt hurt and it would make it more obvious

and idk how you flashed it in fastboot mode and not in flash mode but this always happens in fastboot and it doesnt really help me with getting the partition.sin files flashed which newflasher keeps skipping

Edit: as far as i can tell everything has been flashed except the partition my bootloader and everything has been replaced back but it still bootloops
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] tinkeralot:
To be honest - I don't remember exactly in which mode I flashed. It was late and I was tired ;-)

I was - like you - desperate for 2 days and kept coming back and retrying new ideas.

For now - I am out of ideas in your case and I'm not so experienced.

The whole thing with the new phones that have two flashing slots(Android Versions >9) and understanding fastbootD vs. fastboot (still don't get it completely) was quite difficult.

I had flashed Androids before, but only every 2 years or so.

I'd like to point you to the newflasher thread, maybe you can find something there:

https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/#post-72610228
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
0421 version Uploaded.

1. Tripple cams switch fixed in Open Camera.

2. Fix dark screen while minimum brightness.

Now, all bugs on LineageOS 18.1 fixed. Enjoy.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] tinkeralot:
Great. Thanks!

Can I use these steps to re-flash without loosing data?

fastboot flash:raw boot boot.img
fastboot flash dtbo dtbo.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img
fastboot erase metadata
fastboot flash system system.img
fastboot flash product product.img

obviously without

fastboot erase userdata
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
Only wipe data when you first time run LineageOS.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] xdauserart:
Great, thanks! Would we have OTA updates? I want to lock device to be more secure but want to update it also.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] tinkeralot:
It worked, but now my STORAGE is ENCRYPTED in TWRP3.4.0-0

How did this happen?

what I did:

-with TWRP previously working, I put the phone in fastboot mode

$ ./platform-tools/fastboot flash recovery ./Sony\ Xperia\ 10\ II\(XQ-AU51\)_by\ Sjll_recovery.img
$ ./platform-tools/fastboot reboot recovery

-from within LineageOS-recovery I selected fastbootd

-then flashed the new lineage18 without wiping userdata

$ ./platform-tools/fastboot flash recovery ../twrp_recovery_stock.img

Questions:

1. What did I do wrong?

2. How to un-encrypt storage, when in TWRP3.4.0-0?

3. Was it a mistake to 'fastboot erase metadata'?

4. Do I need another version of TWRP for this?

I have a backup of /data(via TWRP) and /sdcard/Android(via MTP from TWRP) and I could try to wipe /data, but if TWRP won't see the unencrypted files after that - I won't be abel to restore /data...

edit: I had to re-flash magisk22.0.zip from a USB-OTG-Stick, because I could not from internal memory
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] tinkeralot:
There is one other bug, that I'd like to report: Videos, captured with ANY camera app are not playable in VLC (not on VLC for android, not on desktop computer).

Steps to reproduce:

-capture short video with the camera app of your choice

-transfer video to computer (upload 2 cloud and download/bluetooth/usb):

-open Video in VLC --> there is no image, only sound

-->same problem with other video player on desktop, excetp mpv

-->the galery on phone seems to play the video correctly

possible reasons:

-some metadata is missing (moov atom is not written correctly at the end of .mp4 file?)

investigation: (trying to convert a mp4 with ffmpeg)

$ ffmpeg -i inputvideofilefromxperia.mp4 test.mk4

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5e59bc0] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(tv, bt709), 1920x1080, 20024 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'inputvideofilefromxperia.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2021-04-28T10:36:00.000000Z
com.android.version: 11
com.android.manufacturer: Sony
com.android.model: Xperia 10 II
Duration: 59:39:08.36, start: 0.000000, bitrate: 1 kb/s
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), none(tv, bt709), 1920x1080, 20024 kb/s, SAR 1:1 DAR 16:9, 30.34 fps, 90k tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2021-04-28T10:36:00.000000Z
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 kb/s (default)
Metadata:
creation_time : 2021-04-28T10:36:00.000000Z
handler_name : SoundHandle
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Too many packets buffered for output stream 0:1.
[aac @ 0x5e5e600] Qavg: 1435.131
[aac @ 0x5e5e600] 2 frames left in the queue on closing
Conversion failed!

..so it complains about unspecified pixel format

Edit: solved itself after a reboot, so bug is not always reproducible.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
@Sjll looks like with the latest update there's now a bit of a hiccup when unlocking the device from the screen when a notification wakes it. When I get a text or email and it turns on my screen, if I attempt to unlock from that moment, the screen will turn off in the middle of it. If I input my pin quick enough, it'll actually unlock but still turn the screen off. If I hit the unlock button after this the screen turns on and it goes directly to the unlocked home page.

Also having an issue with video and speakerphone calls (specifically in Signal) playing audio out of both speakers and creating a major echo through my microphone that the person on the other line can hear clearly.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] xdauserart:
Hey, Sjll, does NikGapps has signature spoofing so that I can install Whatsapp or similar apps that need the signature? Perhaps we can patch the ROM with this as per https://github.com/microg/GmsCore/wiki/Signature-Spoofing. Thanks
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] w2273:
Same thing here

Issue with video and speakerphone calls but not only in Signal. Tried some AudioFX settings but no change. Any idea?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] LooHD:
大大，我想问下18.1没有安卓11的opengapp呀，哭了
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
Yeah I checked AudioFX and it was set to reverb and small speakers by default (even though I didn't set that up). Turning it off hasn't helped though. Still get the issues. Newpipe also has this audio issue where it sounds like some kind of reverb or double audio is applied.

Playing music locally doesn't give me the issue though.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] w2273:
Playing music or some kind of any sound with the Headphones also has no issue.

@Sjll any idea on this sound problem?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Name-Searcher:
also having audio issues here making it sound like the speakers are out of sync somehow which is creating a weird effect

havent tried any local music just soundcloud/bandcamp in the browser and youtube/twitch and it happens everytime even rebooted to see if that helped

edit: tried out local sound (just mp3) and had the same issue i believe but it did sound like the delay was smaller (or its just less audible with music) tried to fix it with balance but the speakers are not set to right and left or something because it doesnt help (same with mono)
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
About audio issue, I will cancel dual speaker in next build. I need to find correct way to make it steero.

For signature spoofing, I will add it if I do not forget it.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] KittensDog:
i cant find gapps for android 11, can i flash gapps for android 10?