[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] harryharryharry:
!!! This rom has been superseded by the omnirom 9 weeklies !!!

Intro/Disclaimer:

This is an unofficial/homemade build of OmniROM 9.0 for Sony Xperia X Compact (a.k.a. 'Kugo' or 'F5321'). As OmniROM 9.0 builds are not yet officially released and the software binaries from Sony that are needed for Android Pie just recently left beta stage, bugs are to be expected. If you are unfamiliar with rom flashing, using adb and fastboot or recovering the phone after a (soft) brick, I advise

against

flashing this rom. If you do decide to flash this rom you acknowledge no one is responsible for any damage done to your device but

you

.

Rom information:

OS name: OmniROM

OS version: Android 9.0 Pie

Kernel: Linux 4.9

Security patch level: June 5, 2019

Currently known issues:

Sporadic crash/reboot when stressing GPU.

USB tethering uses data connection (3/4G) even when the phone is connected to wifi. Pay attention to your data plan when you use USB tethering. bug tracker

Connection to wifi encrypted with wpa enterprise reportedly not possible (may have improved with recent change in wifi libraries; feedback welcome).

Exfat implementation lacks (full) repairing capability.

(If you find issues missing, please let me know and I'll update the list.)

Brief installation instructions:

Backup any important files to another device.

Before first time flashing this rom,

first

update to / flash the latest stock rom (34.4.A.2.118), or you risk having no in-call audio.

Boot to TWRP and install the rom zip-file (and optionally opengapps).

(clean flash recommended; 'Format Data' required if device is currently encrypted, otherwise first boot will hang).

Because this is an Android Pie rom which uses a 4.9 kernel, you also need to flash a new version of Sony's software binaries to the oem partition:

Download the software binaries zip-file and unzip the image that is inside of it.

Boot to fastboot mode (power off phone; then while holding <volume up> button, connect usb cable to pc and phone. the led should turn blue.),

and flash the image to the oem partition:

fastboot flash oem SW_binaries_for_Xperia_Android_9.0_2.3.2_v9_loire.img

Downloads:

omni-9-20190608-kugo-HOMEMADE.zip (download directory)

software binaries (v9)

Changelog:

08-06-2019

- Security patch level updated to June 5, 2019

- Upgraded exfat to relan's v1.3.0

23-05-2019

- Fixed: Intermediate bluetooth connection

- Fixed: Night light

- Fixed: Long-press camera button

10-05-2019

- Security patch level updated to May 5, 2019

- Switched wifi libraries to qcwcn from bcmdhd

- Fixed: QC3 charging (hardware limitation = 2A)

- Fixed: 5GHz wifi tethering

- Performance improvements for ARMv8

24-03-2019

- Fixes for software binaries v7 (probably this build is backwards incompatible with software binaries v1 to v6)

05-03-2019

- Security patch level updated to March 5, 2019

17-02-2019

- Fixed cpu usage for improved stability.

07-02-2019

- Security patch level updated to February 5, 2019

- Fixed: SELinux now enforcing (If you're experiencing (in-call audio) issues, you need to reflash stock to update the dsp partition)

- Fixed: USB-tethering

22-01-2019

- SW binaries v5 are out, and this build is backwards incompatible with previous SW versions, so only flash v5 to the oem partition or boot is going to hang on the sony logo.

- Fixed: slow sim card detection (fixed with SW binaries v5)

- Fixed: (temp workaround) random boot crash

08-01-2019

- Security patch level updated to January 5, 2019

15-12-2018

- Fixed: native camera app video recording

- Fixed: recognizing proprietary fast chargers

06-12-2018

- Security patch level updated to December 5, 2018

- Fixed: wifi-tethering

- Added feature: wireguard kernel module

- Added feature: OmniGears -> Buttons -> Music control (my own tentative hackish convolution)

08-11-2018

- Security patch level updated to November 5, 2018

Special thanks to [MENTION=4819888]oshmoun[/MENTION] for giving pointers when I encountered issues during the build process.

And of course all credits go to the whole OmniROM team for their awesome work.

OmniROM source code: https://github.com/omnirom

OmniROM gerrit review: https://gerrit.omnirom.org

Kernel source code: https://github.com/sonyxperiadev/kernel

Wireguard source code: https://git.zx2c4.com/WireGuard