yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
Hello mate. It's interesting to see different options come up when we started to think that development for XC come to an end. Thanks for this valuable effort. I want to ask a few things.

1- What is your opinion about dreaded problems with 4.9 kernel like random reboots and some reported Wi-Fi issues (although I don't remember I ever had this) etc.

2- recovery is independent of this setup right? I mean can I use twrp as recovery?

3- I suppose we'll be stuck with this boot.img unless personally build another one with synced sources right?

4-One of your cautions was about dead sd card? Is there a predicted risk or was it a general warning?

Again thanks a lot for this. I think I'll give it a try tomorrow may be.

PS: I also would like to know what to look for compatible GSIs. (I tried Phhs' and some other Android 10 GSIs with zygote and permissiver patches but they didn't past the sony logo. Stuck at sony logo or bootloop)

Update: Question 2 answered. No problem with twrp. Erfan's generic 10 gsi booted with zygote and permisiver patches. But stuck at setup screen.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nervousapp:
1 - I don't know about these problems, I was with 3.x kernel before but you can rebuild the kernel of your choice (it doesn't take too much time) by changing the .dtsi file corresponding to our device

2 - Yes but do not wipe the cache, as the vendor image is in it

3 - Yes, but it doesn't take too much time to build it, share if you do :)

4 - Just a general warning, not experienced :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nervousapp:
1 - I don't know about these problems, I was with 3.x kernel before but you can rebuild the kernel of your choice (it doesn't take too much time) by changing the .dtsi file corresponding to our device

2 - Yes but do not wipe the cache, as the vendor image is in it

3 - Yes, but it doesn't take too much time to build it, share if you do :)

4 - Just a general warning, not experienced :)

Normally I set the selinux to permissive so no need to apply the permissiver patch

PS : sometimes it goes into bootloop but if you reboot it starts like a charm (test that with POSP 10)

PS2 : Mobile network does not work with Q roms, if you success to make it work please share ;)

PS3 : POSP Pie works fine
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bioshp:
Tell me if I'm thinking of installing Project Treble.

1.Flash all sections through the fastboot?

2.Ask for recovery what is in the link on the github?

3.Ask for a boot link on github?

4.Select vendor.img in the cache section?

5.What to ask for?

6.Select a suitable GSI image and boot again?

If somewhere I am wrong correct me. I'm sorry I'm new to this.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nervousapp:
You can get twrp as recovery but do not wipe cache, as vendor img is flashed in it
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] pintaf:
Good news that /e/ is working correctly, I was about to try to build a e variant on Chippa's build.

I do have one question. Really new to trebble.

If we wanna root it, we apply usual procedure*? flash the root zip(magisk) in recovery
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
This is amazing!! Breathing new life in to my XC. Thank you for sharing. Just flashed /e/ and it's working really well so far. Although I see that selinux is not enforced, anyone know why?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] zetchonok:
can't boot any FW excluding /e/, but /e/ don't satisfy me at all.

bootloops miui

bootloops PE

bootloops native xperia gsi

anybody know's why?

all of needed img's are flashed: boot, vendor, oem. Only recovery left TWRP
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bioshp:
Xperia UI GSI also does not start for me. What could be?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
I tried a lot of them to both android 9 and 10 only /e/ boots and works as 9. For the 10 erfans boots but it includes gapps and that stucks at setup. You can leave it as it s but didn't thoroughly tested it.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nervousapp:
Try to flash userdata also
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nervousapp:
Q or Pie ROM ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nervousapp:
POSP boots as much of the Pie Gsi, 10 are more capricious (POSP 10 boots for example, but sim is not detected)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nervousapp:
To avoid SELinux policy errors and fail to boot :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
Then probably erfans 10 is better. Because sim Wi-Fi camera etc works. Just didn't tested thoroughly. Only downside setup doesn't complete. Personally I don't use Google services so no problem for me but setup notification persists like it tries to complete setup but doesn't actually progress.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I flashed /e/ and it's pretty stable and smooth but my device is overheating when charging and even when it's idle and the display is off. I'm getting severe battery drain from it.

EDIT: Wiping all the partitions and flashing from scratch seems to have done the trick.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I've been using Arrow OS and it's pretty stable and smooth so far. Comes with GApps built-in and Jan 2020 security patch:

https://sourceforge.net/projects/arrow-os/files/arrow-9.x/GSI/27_Jan_2020/
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
Hello! You can describe in detail how you installed it, how many have not tried to get further Sony does not work.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
I didn't anything extraordinary follow the steps in the first post. (Since android version would change I formatted data) use erfanoabdis' unofficial Q gsi which you can find a link at phhusson' gsi images link list. (You can also find the link to phussons list in the first post)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Testing some roms on a couple devices. /e/ appears to be the best for the XC and is also the most up to date with the April 2020 security patch. I'm comparing battery life on /e/ vs. Arrow so far to see how they fair.

Also, /e/ comes prebuilt with MicroG but if you want to use Google Play Services, you'll encounter an error that says the device is not certified by Google and cannot run Google Apps. I managed to find a workaround for this so GApps are indeed possible if that's your preference.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
Thank you, I’ll try again, it may turn out to run.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Seeing great battery life with /e/ rom. Idle phone overnight on airplane mode lost just about 3% over 9 hours. Battery monitor suggesting battery life of up to 7 days when the phone is idle.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Lemming0815:
Does drm/widevine (Netflix) and banking work on those ROMs or are you seeing any other serious drawback stopping it from being a daily driver?

I have problems with missing widevine on lineage 16 and wonder if treble/kernel 4.x might help ...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] TamarindoJuice:
Your simcard/network got working on the Q (Android 10) gsi?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
I don't remember if I did receive or make a phone call. But I remember I got signal and operator name which was by then a warning message related to covid. Also I was entering the pin to unlock sim at boot. So yes. I guess it was working.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I'm using it as a daily driver mostly for the better performance, raw camera support, and newer security patches. Haven't had issues with banking apps but still looking into Netflix, haven't got that working yet. I'm also running EdXposed and passing tests for both CTS profile basic integrity.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I haven't been able to get fingerprint sensor working with any rom so far, even after switching to selinux enforced. In settings it detects the sensor but returns an enrolment error after tapping it. Maybe due to an absence of selinux policies?

EDIT: This seems to be an issue with /e/ rom specifically. I flashed ArrowOS and fingerprint works as expected.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
Anyone found a working Q image other than Erfan's?

Enviado desde mi Xperia X Compact mediante Tapatalk
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
No luck here getting Q to work. It just freezes at the Sony screen for every rom that I've tried.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
Can anybody who used this long enough or as daily kindly update me about random reboots and sound system problems. Do they occur here also?

Enviado desde mi Xperia X Compact mediante Tapatalk
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Random reboots do occur but are infrequent.

No sound issues at all from my experience.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
For anyone curious about flashing a GSI rom for your XC, I've been running the following setup for the past 2 months:

- ArrowOS Pie (Jan 2020 security patch)

- Using loire kernel v4.9.218 (May 9 2020) as posted by OP

- Rooted with Magisk via TWRP

- OpenGApps pico

- EDXposed framework installed

- EX Kernel manager installed, cpu governor set to conservative (for battery life, no noticeable impact to performance)

- Passed all SafetyNet Checks (ctsprofile, basicintegrity)

- Fingerprint sensor working

- GCam 7.3 (mod) supported with HDR and raw image support (Night Sight, Portrait mode, etc all working)

- Good battery life (losing about 4% on idle overnight ~8 hours)

- Infrequent random reboots

- Animations turned off or to 0.3 to reduce jitter

- No sound issues yet

- No issues with banking apps

- Ambient display notifications supported

- LED notification light supported

- SD card reading writing supported

Overall this is the best config I've had on my XC after running Omni, AOSP, LOS 16, /e/, and others.

If stability is your main concern, LOS 16 by Chippa_a is by far your best bet. However, the 3.x kernel does not support GCam with HDR so if that is a deal breaker, I would go with treble/gsi rom instead. It's less stable than LOS 16 but still excellent for daily use. If you have questions feel free to ask. Hope this helps!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
Hello! Can you tell me how to properly install for example ArrowOS? I now have Lineage 16 installed. What is the sequence of actions? How many have not tried, no firmware has started. Do I need to do format data?

Recovery installed TWRP Version 3.4.0-1 from Cippa_a.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
All the links and instructions you need are in the OP.

I always recommend wiping and flashing clean to start to avoid issues, but you can try dirty flashing, you shouldn't need to format data.

If you want to try dirty flashing, back up everything before you proceed.

After you've backed up, open a fastboot terminal session and run:

fastboot flash boot boot.img

fastboot flash system system_arm64_gapps_a.zip

fastboot flash recovery twrp-3.3.1-0.img

fastboot flash cache vendor.img

Then reboot and wait a few minutes for the OS to load. If it hangs, reboot and try again. If it doesn't work, wipe the data partition (you'll lose all your data):

fastboot format userdata

Then reboot and it should load a fresh install.

Lastly, do not ever wipe cache in TWRP as it will wipe the vendor image and you'll have to flash it again.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
Thanks for the help, it seems to be loading, I still did not experiment, formatted the date before installation.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
- GCam 7.3 supported with HDR and raw image support (Night Sight, Portrait mode, etc all working)

Which version of Google camera did I use that doesn't start?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nervousapp:
For those who want system wide dark mode enable :

The folks at XDA have determined the ADB commands required to toggle dark mode on and off, in the absence of a toggle in Android's settings menus. If you have ADB set up and your device plugged in and recognized, it's as simple as using one of the two following commands:

If you want to enable dark mode, enter: adb shell settings put secure ui_night_mode 2

If you want to disable dark mode, enter: adb shell settings put secure ui_night_mode 1

If you want to set it to auto, enter: adb shell settings put secure ui_night_mode 0

Depending on your platform, you may need to precede the command which calls ADB with a ./ or not (OSX/Linux need it). Following a reboot, you should have the setting enabled or disabled as you selected.

From source
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] katayasu:
You've made a great help for me!

Registered just to say "thank you!"

Using GSI fw for the first time and didn't know about how to make it work better and had some issues with GPay, but for now it's working suprisingly great and battery life is much better.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I use the GCam mod from Parrot043, they seem to work best for my config. You will experience some lag here and there. Clearing the app from Recents also helps sometimes. Try one of these:

- MGC_7.3.020_Parrot043_V7.apk

- PMGC_7.0.009_HDR_Version_V13.apk

You can also try onFire's mod:

- Fire_7.3.020_4th-form.apk

If you enable HDR+, you might notice the device gets hot after taking multiple photos that require processing. I haven't had any serious issues with the heat but just in case I sometimes disable HDR to reduce the CPU temperature.

---------- Post added at 02:56 PM ---------- Previous post was at 02:54 PM ----------

No problem!

Also, if you're rooted and want to change selinux from permissive to enforcing (better security), I recommend installing SELinuxModeChanger and allowing it to run at boot.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
Hi, thanks, these mods: - MGC_7.3.020_Parrot043_V7.apk

- PMGC_7.0.009_HDR_Version_V13.apk

I tried, I just thought that you were running an unmodified apk, here in my opinion the resolution is 8mp, Fire_7.3.020_4th-form.apk-for some reason this version freezes.

I prefer https://f.celsoazevedo.com/file/cfiles/gcm1/GCam-6.2.030_Arnova8G2_Urnyx05-v2.5.apk

, here the resolution is 20.3mp
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I'll give that one a try. I'm mostly testing the newer mods because of features like astrophotography and sabre sharpening. Hard to find the right balance between stability, performance and features/hacks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
Yes, but actually, I looked at the size of the photo on both options, they are almost the same, which means the resolution too, so you can use 7.3.

I also installed Havos 2.9 for verification, this is android 9, everything seems to work fine, the question is: can I somehow upgrade it to Havos-OS 3.6?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Is Havoc 3.6 Android 10? I haven't successfully flashed any A10 ROMs, it always hangs at the Sony logo but you can always try to flash it.

In twrp, back up your system partition and oem partition. Then in fastboot:

fastboot flash oem <sw_binaries_for_a10>

fastboot flash system <havoc_os.img>

If it doesn't boot just restore your oem and system that you backed up.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Thanks for sharing. Confirmed this works!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Android 10 working for Treble

Finally managed to get Android 10 booting successfully for Treble. Basically, don't flash the Android 10 software binaries from Sony to oem. Instead, keep the Pie binaries and flash an A10 rom via fastboot + fixzygote_v2.zip (in TWRP). My device finally got past the sony logo and booted into system.

I'm still testing, but so far I've flashed this gsi successfully:

Generic-Aonly-10-20191211-ErfanGSI.img-2345.zip (AOSP, Dec 2019 security patch)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nervousapp:
Nice ! Have you tried with other Q roms ? Like phhusson ones ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] HelloWorldljx:
https://androidfilehost.com/?fid=4349826312261800839 There's an AOSP-10 ROM works with pie OEM file, maybe you should make somes changes to the /system/framework/framework-res.apk when flashing the gapps then webview can work.Like most of AOSP ROM, it work with almost all the hardware and Gcam but wifi experiences not well.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Not yet. I tried a few others but none of them worked. With the rom I shared I noticed it's not detecting my sim card nor does it detect the fingerprint sensor.. Definitely not ideal but I'm going to continue trying different configurations.

Hm interesting thanks for sharing.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Android 10 AOSP on Xperia X Compact (May 2020 security patch)

This is a great rom that deserves its own thread. I've finally had a chance to test it out on my other XC and have not run into any serious issues. No random reboots, solid performance, very good battery life. I have not come across and WiFi issues either.

I'm running /e/ rom (treble) and ArrowOS (treble) on my other XCs and while performance is good on both, I found that my device was overheating, specifically seeing the CPU reaching 60-70 degrees C, the device would become extremely hot especially when processing HDR photos. Still good options, but Android 10 AOSP might be the best option I've come across so far.

Credits and thanks to HelloWorldljx for sharing it here.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] TamarindoJuice:
Tried it but it boots but seems to crash at the initial setup every time i try to setup it.

I used the arm64 open gapps, maybe it works just without the gapps?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
What version did you try and how did you flash? I flashed open_gapps-arm64-10.0-pico-20200723.zip successfully in TWRP and have had no boot crashing issues.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] nervousapp:
Is it a treble rom ? Do you use the pie binaries or the q one ? Does cellular works ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
No not treble just standard AOSP. It works with pie binaries. Cellular and everything else works as expected. I haven't encountered any significant issues yet.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
Which OEM has installed? Or left from version 9?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Same binaries from pie treble or any other pie ROMs. I didn't flash the android 10 oem.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] HelloWorldljx:
You need to replace your system's ''/system/framework/framework-res.apk/res/xml/config_webview_packages.xml'' with this attachment by using some tools when you first boot without flashing opengapps, then install the aosp_webview and flash the opengapps in TWRP.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] TamarindoJuice:
I can flash succesfully everything over fastboot

boot

system

cache

userdata

oem

after many tries it boots to a black screen, long power button press brings up the restart and power menus, but everything behind stays balck

after some time it reboots itself and keeps forever on the "android" boot screen...

I have a defective NFC chip, it stopped working long ago, maybe it fails cause of this.

If attempting flash the gapps it boots to the welcome screen but keeps on "just a sec..." for some time and reboot again and again.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] HelloWorldljx:
Maybe there's a SD card being used. It doesn't support SD card above 32 GB.

---------- Post added at 09:21 AM ---------- Previous post was at 09:16 AM ----------

The ROM is developed by [MENTION=10637467]minextu[/MENTION] https://xdaforums.com/member.php?u=10637467 . Thanks a lot for his great work.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
My nfc broke too a while ago so I can confirm this is not the issue.

I was able to flash this rom successfully in one try so I'm not sure what's causing your issues. Here's a summary of what I did:

-format system, userdata, cache in fastboot

-flash loire oem software binaries for pie in fastboot

-flash boot, system, userdata, cache, TWRP if needed

-reboot to system, wait for os to load

-reboot to TWRP and flash Magisk, OpenGApps pico for Android 10

-reboot to system

-complete android setup

I didn't have an SD card inserted while I was doing this. Just my SIM.

Also maybe we need a new thread I don't want to derail this one much more since this is a non treble AOSP rom.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
Nobody tried to install Havoc 3.7, do I have a constant reboot? AOSP 10 works fine though.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I couldn't get ambient display or notifications to work, tried everything including adb shell commands, magisk modules, and substratum always on enabler but nothing has worked so far. I got the options to show up but nothing happens when I enable them.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
Well, in principle, I have the same thing. Items appear but do not work. Have not tried any 10 options yet, Havoc 3.9 ArrowOS?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Most of the 10 roms do not work for treble on this device (including Arrow and Havoc) so I moved on to AOSP 10 instead since it's stable and I prefer AOSP roms.

The only 10 rom that did work for me is erfanoabdi's GSI - Generic-Aonly-10-20191211-ErfanGSI.img-2345.7z, so you could give that a try if you haven't already:

https://mirrors.lolinet.com/firmware/gsi/Generic/
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
Thanks, I'll try, does everything work there?

Another question, does the access point work on AOSP, what could not be connected?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
I didn't test erfanoabdi's rom a lot but it seemed to be okay when I used it.

For AOSP, do you mean if APN works? I didn't have problems connecting to mobile networks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
I meant a WiFi access point, other devices can't see it.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
It works for me as expected but I recommend you try it yourself to be sure.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
No, I have not tried it and the WiFi access point does not work, I can not distribute the Internet, only through a bluetooth modem. I turn on the WiFi access point, after 10-20 seconds it turns off on its own, other devices don't see it.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Sorry I misunderstood your question. I can't get WiFi hotspot to persist longer than 10-20 seconds either. Must be a bug.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
And where is the theme with this firmware, I can not find it?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
No theme setting in the AOSP rom so I'm using Substratum instead.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mister-13x:
again translation problems, I asked about the topic with this firmware.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] betacrypt:
Updated /e/ rom for Treble

Did some digging and found a newer /e/ rom (Pie) with June 2020 security patch. I've installed successfully but still testing.

(Note that in the system information the security patch year incorrectly says June 5 2021 - should be 2020)

You can download it here: https://ecloud.global/s/t7cXPa8PdMCp89J