[ROM][XC][P][9.0][UNOFFICIAL]OmniROM

harryharryharry

Senior Member
Mar 12, 2011
209
157
63
!!! 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:
    Code:
    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 @oshmoun 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
 
Last edited:

immelman3

Member
Apr 11, 2013
22
13
0
Wow, I was looking to buy either a cheap x compact or a cheap xz1 compact but since @harryharryharry is here... Well I might go for this one.
I am still using ur patches from the ubuntu forum since you saved my second notebook (x205ta) from being thrown in the trash at day one.
 
  • Like
Reactions: Kianush

harryharryharry

Senior Member
Mar 12, 2011
209
157
63
Hah thanks, looks like we have the same preference in devices then :) But please don't let your purchase depend on my activity here, because I'm not a developer and pretty new to rom building. The kudos should go to the OmniROM team and people like Oshmoun for helping to maintain the device.
 
  • Like
Reactions: Coirpre and Kianush
K

Ketrab8

Guest
First impressions

Hello! I know that most of you would like to see how this rom looks like.
Consequently, here are my first impressions:
Rom is very smooth and it seems stable.
Wi-Fi and Mobile data (2G, 3G, LTE) are working.
Looks good. Personally, I prefer nougat look.
I like Omni Themes, which are personable.
Battery life is acceptable. Ram consumption ~1.1 GB
So far I found few bugs, that I hope will be fixed:
Camera Recording in stock app doesn't work.
Wi-Fi Thetering doesn't work. (Won't turn on)
Making calls is impossible - you can't here anyone (Phone app bug? Speakers are working.)
Bluetooth works for ~10 seconds and then disconnects (Same as Lineage OS 14.1 unofficial.)
Sometimes few reboots until final boot (2-4 times Selinux related?)
Selinux is set to 'permissive'
And some screenshots that you guys are waiting for.
https://drive.google.com/file/d/1PCI4fryE7g73faL43uvRwVYs7PS2OFlp/view?usp=sharing
https://drive.google.com/file/d/1YQ-7sRt9xqzC0T7dF2z4VHyRiCWgfKdP/view?usp=sharing
https://drive.google.com/file/d/1Uwmu4keaVV1m6GvX76zc5rcutncS1hjr/view?usp=sharing
https://drive.google.com/file/d/1dgJ3vsWmzgFKns-kGoFHfb0XX61D7Q95/view?usp=sharing
https://drive.google.com/file/d/14a4sC7P5nWp3QIQDJN1dV0CsBZPqwwy0/view?usp=sharing
https://drive.google.com/file/d/1GfwCgbAIR5pHAszR8ts_LdxriOdiQdiY/view?usp=sharing
https://drive.google.com/file/d/1UAMTqqb8gG2NTOKdlHWZyrKIEnGeH667/view?usp=sharing
https://drive.google.com/file/d/1qr6V2aPfNHQzpPQfWWOITu59RJvC0-xd/view?usp=sharing
https://drive.google.com/file/d/1Pt1yS9Ahp6J2yetJhx4VDSylkSpjm2mC/view?usp=sharing
https://drive.google.com/file/d/1agW2vVnperEySo-kuo1dCl1vz3fVcrT0/view?usp=sharing
https://drive.google.com/file/d/1Jh8XMPoT89LRtdovxOcjzwy-YEO7Kkwy/view?usp=sharing
https://drive.google.com/file/d/1IiOLHe6XfYuPXoinnfLz1DASNxH6gfdO/view?usp=sharing
https://drive.google.com/file/d/1CPJHx_X_a-5G_b8u91r2n2i0_IDkUht1/view?usp=sharing
https://drive.google.com/file/d/1TIjFeUS1uNHkQtB36YRrpsiD_hsgrJgC/view?usp=sharing
 

harryharryharry

Senior Member
Mar 12, 2011
209
157
63
I'm not experiencing bluetooth issues myself with my heart rate monitor. But I saw Oshmoun also has reported an intermediate bluetooth connection issue, so I've added it to the list with known issues. Thanks for the feedback.

I'm having no problem making phone calls. Are you sure it's not related to the 'enabled but not functioning' bluetooth connection ? (I saw in the screenshots you're using a JBL headphone), I can imagine android tries to pass audio through to the (not functioning) bluetooth headphone, resulting in a muted call experience.
If other people can confirm this issue I'll add it to the list, but for now if you could do some digging into the issue, that'd be of help also.

The rebooting issue is definitely not an selinux issue, as it is set to permissive (which basically means: selinux is turned off). I'm having good hopes it (and some other known issues) will be resolved with the next version of Sony's software binaries (v3).
 
Last edited:

harryharryharry

Senior Member
Mar 12, 2011
209
157
63
Strange, I tested with an old pair of bluetooth in-earbuds (earin), and I can't reproduce the issue. While I've always had issue with the sound quality (which is why I don't use them) I was able to listen to music for more than 30min (with the occasional interference, but that's likely because it's a crappy prototype). Anyhow, I think this will be addressed once this issue is solved, as it sounds very similar.

I dug into the call issue some more (which is hard because I'm not experiencing it). While calling I ran a logcat and there were some interesting errors about a mic_mute function not being implemented (also mentioned in this issue), but I don't know if that is causing your issue. I think it would be most straightforward if you make a 'adb logcat' of the bug yourself and create an issue on https://github.com/sonyxperiadev/bug_tracker/issues with the logcat attached.
I'm really interested in other people's feedback about this, is @Ketrab8 the only one having this problem while making phone calls or are other people also not hearing the other side while making phone calls?
 

coderex96

Senior Member
Dec 13, 2012
87
12
28
Hi, I'm using OmniRom 8.1 since Sptember, I appreciate more your work and I want upgrade to Pie finally but why the software binaries and develop branches are from loire?
 

harryharryharry

Senior Member
Mar 12, 2011
209
157
63
Hmm, that ought to suffice. Only thing I can think of is that your device was encrypted and this encryption was not removed during installation. The device only very seldom boots correctly when encryption is enabled (which I've already reported on github).
If you're really set on trying the rom, you might want to retry those steps after choosing 'Format Data' in TWRP (it states in TWRP that this option will remove encryption, so one could assume wiping system+data does not)
 

eymentuna

Senior Member
Jun 3, 2014
372
54
0
Osmaniye
Hmm, that ought to suffice. Only thing I can think of is that your device was encrypted and this encryption was not removed during installation. The device only very seldom boots correctly when encryption is enabled (which I've already reported on github).
If you're really set on trying the rom, you might want to retry those steps after choosing 'Format Data' in TWRP (it states in TWRP that this option will remove encryption, so one could assume wiping system+data does not)
I don't know the password. Is it possible for me to load this rum? and write to me?
I'm sorry for my bad english
 

Attachments

Last edited:

harryharryharry

Senior Member
Mar 12, 2011
209
157
63
What password are you talking about? It's not asking for a password. If you type 'yes' it'll format your device. Be aware that all data will be destroyed, so - if you haven't already - make backups of files that are important to you.
 
Last edited:

eymentuna

Senior Member
Jun 3, 2014
372
54
0
Osmaniye
What password are you talking about? It's not asking for a password. If you type 'yes' it'll format your device. Be aware that all data will be destroyed, so - if you haven't already - make backups of files that are important to you.
backup ok.

If I do the installation after doing this, will the installation be successful?
 

Attachments