yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Ace2213:
First of all, thank you for the detailed steps with the links. Very ADD-friendly!

I was on Pixel Dust and will continue using it (although it seems they removed the color/theming options, but I think I got mine back from my Google account. It keeps coming and going though).

My back camera wasn't working at all and my front camera was extremely dark and showing the same image twice vertically moving sideways forever with vertical green and white bars the height of the screen flashing randomly across the y axis at random spots.. Rotation was working fine, but I was facing sporadic system crashes where the phone would freeze for a few seconds (with no real pattern or particular load) and the shut down with the bootloader unlocked logo except the yellow triangle is replaced with a red one and a slightly different message that I can't remember.

After successfully updating my Treble, I followed your steps 1-3 without formatting data, because every time I do that my phone stops being recognized in adb/fastboot, probably due to the authorization being wiped. So I have to reboot back into system and re-enable it (in Pixel Dust it's enabled by default but I select MTP/file transfer. Or maybe just the act of booting into system and doing the initial setup that re-enables fastboot).

Anyway, I booted back up and everything was exactly the same. So I formatted data and proceeded to redo the steps, but fastboot didn't work. So I booted back into system to do the above-mentioned process. I checked on the camera and it was still the same. This time, the adb process didn't work to re-enable fastboot, even though adb is working. So I decided to try through TWRP. I copied the files over via sdcard (except system, because my sdcard is only 1GB). I then rebooted to system and copied the system IMG over to internal storage and rebooted to TWRP to flash it.

I'm still rebooting with my fingers crossed. Probably worth noting that I have no camera app, probably due to this. There's no camera shortcut on the lockscreen. I'm using the camera attachment function in the Messages app to test it.

Update: I moved all files to internal storage and wiped data and reflashed everything through TWRP. Still no dice.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Ace2213:
Update 2: I kept repeating the process with older versions of SW Binaries all the way back to v5. I tried v4 too but it wouldn't flash. Gave me a error 255 failure.

I think it might be time to accept that in my case it could be hardware damage. Perhaps the overheating from OC exacerbated it?

That said, this didn't happen overnight. First the back camera stopped working in the main app (Can't remember whether this happened after I installed Treble or on the ROM prior) but it still worked fine in other apps. Then it stopped in all apps, but at first that was temporary where it would come and go. Then the quality of the front camera started declining. Then yesterday I had a video call and it was super bright so it appeared fine, albeit split down the middle (doubled) which was new. I couldn't go indoors even though it was still fairly bright, but I didn't think anything of it. Tonight after updating Treble I noticed that it had gotten worse. The insane darkness and the split screen was joined by vertical bars green and whitenoise of various thickness in various locations appearing and disappearing in flashes, along with the entire image sliding to the right, causing one of the 2 sides to roll over the right side onto the left. Very bizarre. I was in a brightly lit office but the camera view was completely dark except for the neon light appearing barely lit.

Granted all these results I got today are from the Messages app, which could be distorting the image in its own way, but I was hoping at least the back camera would work. The messages app also failed to capture any images or video using the front camera. I'll try real camera apps later, but I basically gave up. Unless anyone has any input that I would greatly appreciate.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Loader009:
Also [MENTION=8321130]Sjll[/MENTION], the provided twrp-Q-3.3.1-V2.0.img from here -> https://androidfilehost.com/?w=files&flid=296769

seems to be broken (md5sum matches).

I get "invalid argument" for nearly every partition except microSD.

twrp-Q-3.3.1-V1.0.img works for me. Dunno if V2.0 is only compatible with the newest versions, haven't got that far yet.

---------- Post added at 13:31 ---------- Previous post was at 12:31 ----------

This seems to be an issue... I did as you wrote, but with that treble file (especially the vendor.img) I can't boot at all.

I guess this is the issue:

06-10 00:31:20.015 859 860 E /odm/bin/adsprpcd: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:728:Error 45: fopen failed for .//lowi//lowi_lp.conf. (No such file or directory)

Or just see the full log:

https://del.dog/vumiqiyuyi
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
[MENTION=4724631]Loader009[/MENTION] Use the original TWRP-Q (the one without version name) for initial flashing. Worked for me.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Loader009:
The recovery is old: 3.1.1, I don't want issues with magisk or something else.

I don't need the recovery just for testing.

The booting issue I had is (or was) a much bigger issue.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
Since there won't be any updates, how about you try it anyway? For Magisk I used official TWRP (only after everything works).

There are also something you should make sure:

- You were coming from fresh, unmodded .118 stock firmware

- You formatted data instead of wiped it

- You flashed vendor.img to cache partition

- Your GSI is compatible (Arm64, A-only). I suggest trying this LOS build for once.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
I explain why the version of twrp-Q is based on 3.1.1. In earlier versions of the treble file, the userdata partition was forced to be encrypted. I have tried to make twrp-Q based on twrp 3.3.0. But there will be a very strange problem. The high version of twrp cannot clear the encryption of the userdata partition by formatting. Although the userdata partition can be read, the system will bootloop. The newer twrp-Q was replaced with newer kernel, but it was not tested because my suzu has already been sold.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Loader009:
Well, I came from omniROM oreo, but with .118 stock firmware before.

If I remember correctly, I only changed oem, system, boot and recovery with that rom, which are overwritten anyway with your flashing guide.

I formatted userdata with: fastboot format userdata

This way any userdata encryption is gone.

Old vendor.img has been flashed to cache, this didn't work. New vendor.img did work though.

I used the same lineageos GSI you mentioned.

Everything works now, after some trial and error.

Though, I didn't try the new images from the beginning, so I don't know if there would've been any issue at all.

It is enough to fastboot format userdata at first, then there won't be any encrypted userdata issue.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
Yes, But twrp-Q couldn't access userdata after formatting by fastboot.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
The last time I tried flashing new images (which was one version from current latest) from the beginning, I got sensor issues. Maybe you could try it and report?

The downside of my method is data partition gets re-encrypted once you boot up with old Treble, and you have to format it again after the last step. If the latest Treble works without issues, it could save everyone from the hassle of reflashing and dealing with encryption.

Regarding TWRP, I used two versions for the whole process: The original TWRP-Q (w/o version number) for initial flashing and Gapps, and the Official (Stock) TWRP for Magisk and everything else. I know, this is not the correct way. I tried twrp-Q-3.3.1-v2.0.img once during initial flashing, and it failed both at formatting data and installing Gapps. Never bothered trying the other two versions, though.

One cool thing is, official TWRP has no problem accessing the encrypted internal storage.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] mbc07:
Just a heads up. A while ago I got issues with the sensors on the stock firmware after trying some system mods (all sensors were gone, they didn't show in service menu nor in apps that tests the sensors). Another case was once I tested OmniROM beta and went back to stock firmware, sensors would work but were providing wrong readings (e.g. accelerometer and gyroscope registering movement even when the device was perfectly still, compass was pointing to the wrong direction, ambient light sensor were always reading 0, etc).

On both cases, what fixed the sensors was reflashing just the "PERSIST" partition from the stock FTF with Flashtool (you probably can do that with Emma too). So, if you're having sensor issues (no matter whether you're on stock or custom ROM), try that...
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Loader009:
I will do some tests and report, but that might take a month or two...

atm suzu works as daily for me and I am actually happy that it works.

Doing a backup, then wipe will take a few hours (if not a whole day), but I depend on it too much for now.

In about mid/late september I might get a new phone, then I am completely free to test out suzu and maybe try to build something for it.

But then I will move (again) to a new home and begin studying on october, so I really don't know how much time I will have for this.

(Though, I like tinkering and I will always spend time on it, no matter what.)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
Could you please test new version's performance and feedback? It should support Android Q GSI of Erfans.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] SteelK:
Hello, is there a way when using Treble to be able to pay for purchases via NFC? All problems associated with Magisk have been resolved; we are interested in the work of the NFC module itself for payment.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
NFC should be OK, I guess it's the same as camera issue or related with GSI.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
Nfc works again (no more crash),camera working fine,overall smooth (not for gaming) than old Sodp kernel but battery not so impressive that what I noticed in latest update...btw good job for making Sodp kernel usable :svetius:

-V20190811

-Gsi : Descendant 4.0.1
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
Did you make any modifications to SODP kernel? I remember gaming performance in SODP was abyssmal, while this one is performing pretty okay. I still get frame dips in PPSSPP Emulator, but native Android games are running well. Pavel's kernel still has better performance, I think.

Other things I noticed (V20190811, GSI: lineage-16.0-20190811-UNOFFICIAL-treble_arm64_avN):

- Sensors error are gone now. Should no longer requires dirty flashing.

- NFC and Offline charging seems to work now.

- Raw10 works. Gcam performance seems to be better.

- Heat and battery life is not good. I suggest dropping overclock, since I believe the problem with SODP's performance is due to throttling and not because of low boost clock.

Efrans' Android Q (latest version) is still throwing bootloops. I tried another port of his (Oxygen OS), and it couldn't even reach boot screen.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
There is no cpu hotplugging in pavel kernel,that why performance and gaming is better but heating so fast,A soul for a soul :laugh:
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] SteelK:
For simple actions, NFC works. NFC did NOT work when trying to pay through it. Is it fixed now?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
Thanks a lot, if I want to update treble files, I need to follow SODP. I could upload the new version without testing on phone.

No, I just disabled CPU_QUIET of SODP kernel, it will make our device lag. The kernel is not overclocked. About Android Q, they reported it works on treble of XZ Premium.

I will build a new version which add thermal control today.

Sorry,I can't test it without phone, I could only update.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
Wow nice to hear that.thanks for your efforts
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
Can I get a tutorial of how to disable it on other kernels? A bunch of other ROMs (such as Omni and PA) are also having performance issues since they follow SODP kernel.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
One more why all Sodp based rom got random reboot,even Sodp rom itself got too.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
See this commit.

https://github.com/sjllls/kernel/commit/3d88025f33a61620c35fa8f44eae697a64535b64

Because SODP-Pie is still in developing status, it's not stable as Oreo. SODP-Q will come soon.

Try new version and feedback to me the performance and temperature, plz.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
What was changed in today's build compared to yesterday? I didn't do detailed tests, but battery seems to be better while performance is waaaay worse. Which is, well... not good.

Also, can you link the post where android Q is reported booting on XZP forum? I suspect that an older build of Q was compatible and booted, while the newest one isn't.

EDIT: Thinking of it, Pavel's kernel in V20190702 hit the balance between performance/battery for me. With LOS 16 and a few tweaks I could get 5 hours of SOT when not gaming, and performance is very good when you demand it. Unfortunately, it had problems with Raw10 and Offline charging, and also crashed quite often.

EDIT #2: I flashed back V20190811 in my LOS backup. Turns out, with a few tweaks applied, the battery life on this build is pretty decent. I guess we're pretty close to the sweet spot.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
So it reduce heat and battery seems to be better,my current room temperature is 31°C.While charging my phone,battery goes 36.5°C and Soc around 34°C.

For normal use I just use social media and stream music the temperature is same for battery but got lower temperature for Soc around 31°C - 27°C (in front fan i got 20°C-19°C for Soc)

Performance not to good,but its good for battery life

Edited:its okay I use LKT magisk module with performance profile,now performance much better

For Xperia X :

-Stock kernel is King but EOL

-4.9 Sodp kernel is for battery life,worse performance for gaming

-4.9 Pavel's Kernel is best performance in everything but phone easily hot

there must be something wrong with Sony phone :laugh:
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
My go-to setup for the last month was to install Treble with Pavel's kernel, then underclock it heavily (1.2GHz for big cores). That way I could maintain decent battery life, and can also get good performance on demand.

Also, stock kernel is kind of weird. Chippa_a's LOS builds are all based on modified stock kernels, but they all throttle frequently and performance is suboptimal.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
Yup,with audio bug and sd file transfer problem but it suitable for daily use for those who really want pie for X because no random reboot problem
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
Using the attach file replace the same on in vendor/etc, test performance again, please.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
The file is on system/vendor/etc btw this is great I can play game again now without LKT module.Can we enable Mp decision,Vdd restriction or core throttle in this thing (kernel)? for better temperature,the only problem temperature raise up quickly when gaming(around 46°C in game)..BATTERY IS BETTER NOW
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
Thanks for feedback, I force the 6 cores online at the same time and set the min freq for all cores.

I uploaded the another config file. Could you please test Geekbentch ? And feedback to me the results of the two config files.

It's normal to heat fastly when you need full performance. Don't forget SDM650 is a 28nm Soc.:o
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
I've ran Geekbench on each of these builds, and the results are put below. (GSI: lineage-16.0-20190811-UNOFFICIAL-treble_arm64_avN).

These results aren't really accurate though, since I only ran benchmark once on each of these configs.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
First for old config,Second is new one

V1 config is better performance than V2,V2 is cooler than V1 but a lil bit lagging for gaming
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
Choose one, which one do you need? I will merge it to the source code.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
I did a short gaming test on both configs. Config 1 performed better on paper, but gives me lags ingame due to throttling caused by high base clock. It also seems unstable, as I got two crashes on boot with it. On the other hand, Config 2 with Balanced/Performance profile in LKT performed better than both Config 1 and V20190811.

None of these builds reached the same speed of Pavel's kernel, but as far as SODP go, I'll take Config 2.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] kloroform:
Hi I am trying to install ViperOS GSI type A from https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list here

But I am stuck on Sony logo every time I try

I have patched required TWRP-Q, then flashed boot.img and vendor.img from here https://androidfilehost.com/?w=files&flid=297915

Then I have flashed OEM from here https://androidfilehost.com/?w=files&flid=289873 | I have tried to flash all the versions available there

then flashed the GSI image

what is exactly I am doing wrong? Any insight will be appreciated.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
Use my flash method at page 15,don't flash outdated gsi
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] kloroform:
I read your method on page 15, I am going to try that tomorrow morning but just to be clear do I have to flash stock.118 oreo from a ftf file or a TWRP backup can also work? Because I have a .118 backup on my SD card.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
All right. Thank you!
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
Just restore your backup from Twrp.Make sure you download Treble file(vendor+boot) with the right version of Oem.For first time,after wipe you need to flash OEM then follow the step,I just update flash step (can you read again) no need to change file system just flash vendor.img from micro sd
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] kloroform:
Hey thanks bro, your procedure works like a charm, finally it worked for me. I followed the steps and I am on latest HavocOS bulid. :highfive:
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
Have you changed it,what about the rom performance, are there any improvements?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
Not yet, too busy to set up Linux. Maybe I should ask Sjll for the thermal controls commit as well.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
[MENTION=5691834]iH8Ecchi[/MENTION] [MENTION=9305961]lookmanns14[/MENTION] Our treble files coould support Erfans Android Q GSI, You need to flash this fix.

I already tested on Xperia X Performance, They report to me that it also works on My treble files for XZP.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
Wow that great! which one,pixel or generic build ? There so many of Gsi build :confused:
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
Before I flashed Q, I was running Descendant_4.0.1_arm64_aonly.

I entered fastboot to flash generic build system.img.

Then , erase userdata via fastboot.

After that, I entered TWRP and flashed FixZygote_v2.zip via adb sideload.

I format userdata in twrp and run factory reset.

Then reboot to system.

-----------EDIT-----------------

If you meet endless bootanimate, you need to force reboot.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
By Efrans GSI he probably meant one in this list. My guess is Generic-Aonly-10-20190808-ErfanGSI.img.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
Finally! but baseband is unknown,data connection and all google services not working,these screenshot is from generic build it come without navbar,I've tried pixel Q too and navbar is there but no gesture features,it boot but many thing crash
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Sjll:
You need to delete vendor/overlay, Then upgrade Google play services manually.

About baseband , you need to feedback to erfans.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
Have you tried some other ports of his, like Oxygen OS 9 or Xperia 9?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
Stuck at Sony logo (one ui,OOS,miui)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] iH8Ecchi:
Even after flashing the same fixes as Q? Funny.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lookmanns14:
I didn't try it out because I was switching back to stock rom,idk it works or not with fixes
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] AssoDiPicche:
Hi, flashed all (OEM, vendor and boot, GSI Pixel A ONLY PIE) but after the boot, any app won't start except phone and settings... TWRP-Q show some errors on mount all partitions... what can I do?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] jamar23:
Hi, it seems that the latest TWRP-Q has a bug with mounting partitions and thus doesn't work. You can try using an older version (twrp-Q.img from Feb 10, 2019) or just flash everything with Fastboot as I did and you should be fine. This way you actually don't need TWRP-Q for anything.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] DGoX:
Do someone get working android 10 without any bugs?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] dareckk:
I using Lineage 16 GSI. Camera is 17Mp. Is possible 23Mp?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ParanoidNemo:
I don't want to be rude but if you want 10 after a couple of day from the official release you should buy a pixel. Sony just released the binaries and will be a lot of testing and improving just to have aosp (from Sony, not treble) to work decently.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] MWSTE:
What 10 ROMs work?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Th3 Ant:
Can't boot Esfand's Pixel 10 GSI... stuck in a bootloop with

Abort message: 'Error creating cache dir /data/dalvik-cache/arm64 : No such file or directory'

Is there any Android 10 GSI system working? So far tried this one and Pixel Experience - and PE is stuck at SONY logo...

EDIT: Seems like erasing userdata from fastboot made that GSI to boot...

EDIT 2: After boot, WIFI and SIM are not working - connected to WiFi but says "no internet", SIM is not found at all...
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] twain55:
Tried all of them, none works. I tried MSM, quack, erfan, lineage, but all get stuck at the Sony logo. Did you try with android 10 binaries?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Th3 Ant:
Yup... tried with 10 binaries - stuck at SONY logo - even those that are stuck in bootanimation

I've tried like 8 different GSIs images - they are either booting with no SIM, stuck on SONY logo or bootloop - currently went back to normal AOSP 9.0