yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] lubik1:
as i posted on 1st topic - you can flash lobster.zip and after it flash los system on system partition and restart device. It will booted fine.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
The vendor.new.dat.br image is in the zip posted in the OP.

To get Lineage working:

1. Flash Explosive_Lobster_F5321-07012021-R.suzu.zip in TWRP

2. In fastboot, format userdata partition.

3. In fastboot, flash lineage to system and reboot.

There are issues with Magisk though. I don't know if it's treble or the lineage rom (although I've tried other treble 11 roms) but if you flash Lineage and then Magisk, it'll be successful in TWRP but when you boot to system, root isn't detected. Magisk Manager will say that the current version is unsupported and suggest flashing with 20.4 instead of 21.2.

Either way, I haven't found any version of Magisk that works with the A11 treble roms (Magisk root does work however with the OP AOSP rom so far even if there are some boot failure errors that can occur).

Also worth noting that GCam HDR+ and NightSight do not work with Treble 11. You can install GCam mods and take pictures but only if HDR is disabled. GCam HDR+ worked fine on Treble 9 and AOSP 10 for XC so I'm not sure what the cause is. IMO having GCam HDR+ was the biggest reason to use an XC, it's strangely the only Compact device from Sony that allows raw capture for GCam HDR+.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
I think it would help with rooting if we had each directories (partitions) .img. Let me know when it's available, I missed the portion stating about flashing another system as the boot and vendor are Treble enabled. Thanks again, will find a way to send some coffee to both you and Cubbins.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
I believe the rooting issue pertains to the shifted vendor location as Magisk mounts it to write something there during the normal rooting process. There might be a way to create a symlink to redirect it to cache so that when Magisk performs it's manipulations it references the changed path. Btw, are you using a different version of GCam now? I believe over in the Xperia X treble territory there are recommendations for Treble 11 GCam (not sure, you will have to test).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Oh interesting about root. Wondering why it's detected fine with the OP's AOSP system image but not other treble roms?

For GCam, I tried using the mods I ran on AOSP 10 and Treble 9 for XC because they were stable, with fast HDR processing and good options. But the HDR photos with treble 11 all turned out same so far. The photo just renders a pink image with stripes not resembling the actual subject at all. I'll check out the X Treble forums and see what's up thanks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] katayasu:
Any progress in bypassing SafetyNet?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] lubik1:
hmm... you have any problems with it?

View attachment 5184597
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
I cannot pass ctsProfile, too!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
I think I found the answer for issues with rooting systemlessly: try using Magisk 21.2 beta. Here is the link for the other GCam I was referring to: https://androidfilehost.com/?fid=10763459528675571227 ; let me know if it works, it is nested under Android 10 so it may not for 11.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] lubik1:
ok, ok. Instruction for you guys

I believe it helps you.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Did you get Magisk beta working with any other roms? I flashed it on Lineage 18.1 but no luck. Same with the GCam mod you posted- on Lineage still produces the same garbled image. But luckily it partially works with the AOSP rom posted by the OP.

I'm going to flash AOSIP and a couple other 11 treble roms and see if it makes a difference.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
Could you guys do me a small favour? It seems you all here are Android pros, so maybe you can help me out with a problem I struggle with since July.

Before I used this ROM with the Z Compact, I was in LOS 16 by chippa_a. I never had GPS problems. I go running every third day and always track my route, so I would immediately know if there was a GPS problem.

Then came the July build of the LOS ROM, and suddenly, I could no longer get a FAST fix with only GPS.

I check GPS with the tiny app SatStat:

SatStat | F-Droid - Free and Open Source Android App Repository

GPS, Sensor- und Netzstatus

f-droid.org

The app simply shows how many GPS satellites are in sight of the phone, and how many are already locked for GPS positioning. Red dots are satellites in sight, blue dots are blue satellites that are already used for location.

BEFORE the July update, when opening the app, my phone would immediately start seeing and locking (!) satellites - I would have my GPS position in under a minute.

AFTER the July update, the first GPS lock now took up to TEN minutes after a fresh boot (!). After the first lock, further locks were faster for a time.

What is interesting, is, that with my two old phones (Samsung Galaxy S4 Mini - LOS 15 & Xperia Z3 Compact - LOS 16) I get super fast GPS fixes in the SAME location my X Compact is in. My S4 Mini locks the first satellite just some seconds after starting SatStat, and the whole position after two minutes. My Z3 Compact is even faster, locking the WHOLE POSITION after just two seconds after a fresh boot.

Why am I writing this? I now have the same GPS problem on this AOSP 11 Treble ROM. See the screen shot I attach to this post. My phone clearly SEES a lot of satellites, but does not lock any of them (blue dot) and so takes up to 10/15 minutes for the first GPS lock.

And I assume it must be some kind of software error, because, as I said, my phone SEES the satellites. It just, somehow, does not lock them. On my Z3, nearly all red dots would be blue after a minute.

And I have also googled this. You often find people with the same issue, especially on newer LOS versions - phone sees satellites, but does not lock them - but you never get a solution. I cannot track my running anymore because I do not want to stand for 15 mins out in the cold before I can start running.

Could you guys install SatStat and tell me how it behaves? How fast you get a lock? That would be really awesome. Like that I could figure whether it was just my phone or a general problem. Or maybe somebody already has a solution for my problem? :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
I believe my suggestion with Magisk and Treble is partly right; other's are experiencing similar issues, read the response on this thread from fox2code ( https://github.com/topjohnwu/Magisk/issues/3636 ) . On another device I'm running a Treble workaround on the same issue is present for 11 roms and I have not found the solution. More than likely it's due to Magisk not being able to parse symlinks during install. Does the suggested GCam work better than the version you recommended a while ago?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Yeah your suggested version works better on the treble aosp rom, but with the other treble roms I flashed like lineage and AOSiP, HDR doesn't work, like the other gcam mods I tried.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] katayasu:
I find out that camera app named "ProCam X" working pretty well on this ROM and even supports HDR
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
I am sorry I spammed so much in my last post. The GPS thing is just a problem that I have for six months now, and I can't seem to find a solution for it.

Has anybody of you, by chance, tried out SatStat yet? How long did it take you to get an accurate fix? :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
Sorry, I personally don't use SatStat, nor would I. I'm assuming you use GPS for a daily need? Usually GPS is an issue with custom ROMS and is the last thing to be fixed (if ever). Most users prefer to keep their location data in their control; GPS is a very invasive service to have running (unless is is a necessity). It's original purpose was designed for/by the military, and now it's used being used on practically every device that has it, as data for the military to collect (think about that). Something from the imagination of George Orwell that I wish he would of kept to himself - &(1984).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] lubik1:
I test it on a stock 118 fw and 0/18 no fix after 5 minutes

after first restart 0/23 no fix after 5 minutes

View attachment 5189823

so, i going to Settings => Lock Screen and Security => Location and turn on High accuracy (use GPS, Wi-Fi, BT or mobile networks)

and only after it i have a fix:

View attachment 5189863

ok... now i gonna flash EL and test it...

upd. I flashed an EL last build

so after first restart - the same as on a stock - 0/23 after 5 minutes.

but after i going to Settings => Location => Wi-Fi and BT Scanning => "on" / Advanced => Google Location Accuracy => Improve Location Accuracy => "on"

View attachment 5189865

So, on a EL location worked better like on a Stock fw.

P.S. Both tests i maked from my bed

So after that, i think we can close this discusion?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] lubik1:
ok, i create a folder Treble and share vendor.img (you need flash it to /cache) and boot.img.

if you use terminal or cmd:

fastboot flash cache vendor.img

fastboot flash boot boot.img

next step - flash system.img from any custom GSI:

fastboot flash system system.img

or with TWRP. And don't forget rename a command or file, they must be the same named.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
Thank you so much for this. It really helped a lot. One last question, how long did the fix on EL take? Was it just a few seconds or up do some minutes? Thank you!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] lubik1:
You can see it on a screenshot - TTFF (time to first fix) - 64s, so 1 minute

but sometimes 6 seconds

View attachment 5189921View attachment 5189923

so Spaceoid idk how it works
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
I just did a clean install of the ROM without Magisk and tried out this little hack, but apparantly it did not work, at least for me - I have to boot the device twice or more times every time, because I am getting these error messages on boot. Did you do anything special? I took the boot.img out of the zip file and simply flashed it to boot with fastboot, no Magisk manipulation or sth. :) Thanks in advance!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Yeah this workaround wasn't foolproof, the issue appears to be with Magisk and this boot image. For stability, the safest option seems to be not to flash Magisk at this time. But maybe someone else has an alternative solution.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
Yeah, I thought about that, too. The only problem is that without Magisk, I cannot use my banking apps as root seems to be preinstalled in the ROM build.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I don't think root is preinstalled, it's more that since this is treble, selinux is set to permissive and not set to enforcing. The bank apps probably detect this which is why they don't work.

If you were rooted you could change selinux to enforcing using an app like selinux switcher.

If you flashed lineage you would probably notice that at boot, there is a warning saying that the build is signed with public keys. It's referring to selinux set to permissive, which is less secure than enforcing.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
Yes, I thought that too, initially. But during the Magisk install in TWRP, it is stated "removing sytem-internal root" (or something similar). I even did another clean flash again, with a wipe of system and userdata beforehand, and found the "su" binary in the xbin folder. Maybe one could uninstall the system-internal root through deleting this binary, but I am not sure about that...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
Has anyone had success with Magisk 21.4 and a GSI?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
I tried it on the LineageOS one betacrypt posted, but to no success.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
In the topic for treble firmware, I was recommended this to get root access. Try it, it might help.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
Regarding my GPS issue - today I opened my phone and made the frame stick a little tighter to the body of the phone, AND I cleared my GPS cache through my running app. One of those things must've helped, as now I get fast fixes (under 60 sec) even after reboot. No idea how a faulty GPS cache could survive for so long on my storage, though - I flashed new ROMS like 10 times in the last months, and often did a full wipe beforehand. Whatever.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Just flashed this with Lineage 18.1 GSI and it worked. Was able to get root for Titanium Backup. Good temporary solution until Magisk is sorted out. Thanks for sharing!

EDIT: After some prolonged use with root, the dreaded "boot failure" error message has returned.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
@betacrypt

I wonder, have you tried a 17.1 GSI rom with magisk 20.4 ? Maybe it's 11 altogether, as I remember reading there were changes that make systemless rooting an issue.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Yeah I think the problem is 11 - I read that Google changed some paths that made rooting harder than in previous versions.

Android 10 GSIs aren't working for me - I'm guessing it has to do with the boot image and not system.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
I have a treble ready 10 boot.img for kugo, but am hesitant to bork my current setup to test the vendor.img from Xperia X. I figured it was the boot.img causing Magisk to not run fully.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
Has someone already tried making a call with a bluetooth headset? Playing music via BT headset works just fine, and I can even accept a call with the headset keys, but then, the other person won't hear me and I won't hear the other person.

Edit: This issue was already mentioned on github, so you can ignore my post.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I've got a backup XC I can test your A10 boot image on both with treble pie and treble 11 vendor. Not sure how that would go but if we can get A10 gsis working that might be ideal for now. There are many solid A10 roms to choose from.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] norabitox:
Hello

Thanks to everyone's efforts

Please tell me the solution for this error

Best regards.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
As far as I understood, in the present build you just have to ignore it (it only appears on boot), and it is already fixed in the next build that is to come.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] norabitox:
I see

Thank you very much
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] MichaBit:
How did you manage the clock like that? :cool:

I want this too!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] norabitox:
Hello

This is a SimpleDigiClockWidget app
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] MichaBit:
Looks very good, considerably better than the simple org watch. (y)

I had installed Omniclock, that looked similar nice and snooze was working, but the time was always wrong. 🥴
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] norabitox:
[QUOTE = "MichaBit、投稿：84395851、メンバー：6657302"]

Looks very good, considerably better than the simple org watch. (y)

I had installed Omniclock, that looked similar nice and snooze was working, but the time was always wrong. 🥴

[/見積もり]
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Vx.34:
EDIT: Moved to right thread.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
Just to give this ROM some remedy - I guess the GPS problems were my own fault. I experienced them on LOS16, AOSP10 and this AOSP11 Treble ROM. I now went back completely to stock 118 and then installed the AOSP10 ROM by vKnecht again, and now my GPS works just fine. So I assume it would work well on THIS ROM here now as well.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
How often do random reboots occur on daily use?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
When I used the ROM in its current state, reboots would happen between 0 and 2 times per day.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
So there isn't any improvement :(
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
I guess the next build is coming soon :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
Well, since the problem is to do with the kernel, unless it's solved on kernel level, I m afraid we won't see any significant improvement by rom updates. Let's hope the opposite.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
Sorry been busy with another project and haven't had much time; here you go (attached below) . For the vendor.img go here: ( https://androidfilehost.com/?fid=10763459528675571027 )

Make sure you don't mix up the boot supplied here and the boot supplied in the .zip from the link, just use the vendor from it. Remember to use an A/B system.img with whatever 10 variation you choose and you might also need to set SELinux to permissive with: ( https://zackptg5.com/downloads/Kernel-Sepolicy-Patcher.zip )&( https://zackptg5.com/downloads/Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip ) disable encryption of data as it can cause issues with any type of locking method and verity so it will boot. Test everything and post your results when you get a chance.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Thanks for this - wasn't able to get it going with any treble 10 a/b gsi though.

I used the boot image you provided and the vendor image from the zip, set selinux to permissive by flashing the zip, and it still wouldn't boot to system. Got stuck in a boot loop that just loaded TWRP after each restart. Will try flashing some other combinations to see if anything else might work.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
It could be just an A system - try that first, then if it doesn't boot try it with the 11 vendor from here. It's all I can offer thanks to the build system wanting to inflate libraries at quite the expense. Did you try AndyYan's GSI vndklite (try both a/b & a)?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Alright no luck so far. I've used the following combinations to no avail:

Your boot + your vendor + Andy Yan's LineageOS 17.1 A/B

Your boot + your vendor + Andy Yan's LineageOS 17.1 A only

Your boot + A11 treble vendor + Andy Yan's LineageOS 17.1 A/B

Your boot + A11 treble vendor + Andy Yan's LineageOS 17.1 A only

Your boot + A11 treble vendor + Andy Yan's LineageOS 18.1 vndklite A/B

All of these scenarios result in bootloops. The only combination that got me the furthest is:

Treble 9 boot + your vendor + Andy Yan's LineageOS 17.1 A only

This one gets me to the OS boot screen but hangs and never loads system successfully.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] &(*):
Try without the SELinux patch to permissive; disabling verity wouldn't hurt for the testing either, did you do that as well after disabling SELinux? Do you have the correct OEM libraries installed: ( https://androidfilehost.com/?fid=6006931924117907560 ) ? I will go over the boot again and see if somehow I wrote in the line for treble to be enabled incorrectly (don't believe I did, but will look). If @Sjll would reply to someone we might be able to get an updated tutorial for 10 and 11 treble.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Yep using the right OEM. Tried setting selinux to both permissive and enforcing. Disabled verity right after as well. Will keep trying to see in case I overlooked anything (it's easy to miss a step when you test so many combinations).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] LianHua_:
Will XCompact project continue?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mhier:
After installing this ROM, the phone was no longer charging, despite the charging indicators were on (both LED and the status bar icon). What can I do about this?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I decided to give testing another go. The combination that gets me the furthest is:

1. Flashing Treble 9 boot (the Treble 10 boot image you provided is causing boot loops).

2. Flashing your Treble 10 vendor image to cache partition.

3. Flashing one of the TrebleEx 10 roms A only.

With this I always get to the rom's boot animation screen but it always gets stuck there - I've tried over 15 A-only roms at this point. I've also tried setting selinx to both permissive and enforced, disabling verity, and flashing erfan's zygote fix but none of that helped.

The explosive lobster boot image and vendor image with an A/B 10 rom cause boot loops. Going to keep trying but could you take a look again at your treble 10 boot image? Maybe there's something there.

Testing this combination:

1. Your Treble 10 boot image

2. Your Treble 10 vendor image

3. Flashing A/B 10 rom

4. Disabling verity

5. Setting selinux to permissive

After a reboot, it never boots into system but instead it boots directly to recovery each time.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] dunhill77:
x compact japan/docomo version can flash it?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] norabitox:
XperiaをBootloader Unlockする方法

海外で販売されているSIMフリーなXperiaは、公式にBootloader Unlockをすることができます。そこで今回は、Xperia X Compact

novlog.me
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] LianHua_:
Unlock Bootloader
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PlsHelpXDA:
Hello @lubik1

It's possible you compile a LineageOS 18.1 (or 17.1) rom?

Kind regards
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] lobotron:
you can install any gsi arm64 ab rom to system, perhaps you try his: https://sourceforge.net/projects/andyyan-gsi/

seems to work ok
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Android 10 roms don't seem to work with this, only 11. LOS 18.1 works well but crDroid (which is Lineage based) also runs smoothly and has great customization options on top of this. You can get the latest here (with May 2021 security patch):

Nippon GSI Updates - Browse /Generic - crDroidAndroid-v7.6 - 6ZXVD06R29 at SourceForge.net

GSI Porting Project using Erfan's GSIs tool

sourceforge.net

Make sure to download the AB version.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Spaceoid:
How is GPS on these ROMs? Does it have the general problems all X Compact ROMs seem to have?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
The question is, the firmware works but not everything is so smooth in them, the night light does not work, it turns on and the screen color remains white, it does not work, with all the GPS, traffic in the status bar, no reaction, not all the Google camera works, most of the bands are multicolored, in the recovery from the reboot menu do not load, trlko in the system, mozhkt works better, but I have not tried, some problems, I have to return to Lineage 17 every time, although the betka but works stably.