[ROM][7.0/6.0] AOSP-OMS for Xperia SP

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,943
208
Île-de-France
adriandc.github.io

Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */

What is AOSP ?
AOSP is Android as Google publish without other modifications. More or less AOSP is the Nexus devices stock rom without gapps.

Anyway to get a working system I added some changes from CodeAurora Forum and CyanogenMod. I added also non-AOSP features for a better user experience ("Clear All" button in Recents) and I'm NOT going to add something other.

What is OMS / Substratum ?
Substratum is an application, downloadable from the Play Store, that utilizes all of Sony's Overlay Manager Service (OMS), found on the official AOSP code review. This is similar to Layers in terms of stability and customization as it runs off an upgraded version of the Resource Runtime Overlay system, with the added benefit of running up-to-date Sony code on a customized ROM.

More here : https://plus.google.com/communities/102261717366580091389


What is RRO ?
Runtime Resource Overlay (RRO) was contributed by Sony to the Android code base. The RRO framework provides the possibility to modify the look and feel of an application while it is running, without any need to change or recompile the application source code. In short, RRO is a Theme Engine replacement which can do wonders!

More here : http://developer.sonymobile.com/2014/04/22/sony-contributes-runtime-resource-overlay-framework-to-android-code-example/


Downloads Links
AOSP-OMS 7.x (Unlocked Bootloader) :
Xperia SP (Huashan) : https://mega.nz/#F!Ss9iCQoL!b6NvcUi9A7NAksHmrvn1jw

AOSP-OMS 6.0.1 (Unlocked Bootloader) :
Xperia SP (Huashan) : https://mega.nz/#F!yp8DwSwC!DA-ekQ5A3iUvVyy9aLen7w

Google Applications (optional) :
OpenGapps : http://opengapps.org/ (Use packages for ARM, Android 6.0, Micro or Pico)

About AOSP-OMS : Repositories available on https://github.com/AOSP-RRO/
About GApps : Flash the GApps before the first boot. If not, a clean flash is recommended.


Flashing and updating
AOSP-OMS clean install :
- (Optional) Flash the boot.img kernel from the ROM zip with Fastboot or Flashtool
- (Optional) Wipe the data & cache (Backup to make sure not to loose data)
- Flash the AOSP-OMS ROM zip from the Recovery
- (Optional) Flash the GApps to have the Google Applications
- (Optional) Flash the SuperSU zip (recommended, see Q&A informations)
- (Optional) Every additional zip you want to flash
- Reboot

AOSP-OMS update / upgrade :
- (Information) Don't wipe anything unless you want to
- Flash the latest AOSP-OMS ROM zip from the Recovery
- (Optional) Flash the GApps on first install / upgrade. Not required later, but do update sometimes
- (Optional) Flash the SuperSU zip (recommended, see Q&A informations)
- (Optional) Every additional zip you want to flash
- Reboot


About UNOFFICIAL builds


Issues and reports
- Report issues only if you use the ROM kernel
- If an additional mod is installed, make sure it's unrelated, and mention it
- Make sure the issue wasn't discussed earlier in the threads
- Share a log of the error with CatLog for example


Q&A - FAQ
Q : Is root access included into AOSP-OMS ?
A : No but you can now root with my Boot Bridge and a superuser tool.

Q : Is the ROM suited for daily usage ?
A : Yes.

Q : The ROM doesn't want to boot, especially as secondary ROM
A : Try removing SuperSU root with http://forum.xda-developers.com/showpost.php?p=63615067

Q : Where can I change the Quick Tiles and Status Bar ?
A : Long press the Settings icon in the notifications drawer.
> You will have access to the SystemUI Tuner from Marshmallow.​


AOSP-OMS available also thanks to :
- AOSP and CodeAurora Forums
- The CyanogenMod Team
- Alberto97 (for his works on F-AOSP lollipop)
- srisurya95 and akhilnarang for the AOSP-RRO repos
- Men_in_black007 and the AOSP-CAF Team
- SlimROMs
- AOSPB​


XDA:DevDB Information
AOSP-OMS, ROM for the Sony Xperia SP

Contributors
Adrian DC
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.4.x
Based On: AOSP

Version Information
Status: No Longer Updated

Created 2016-04-13
Last Updated 2019-08-06
 

Attachments

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,943
208
Île-de-France
adriandc.github.io
Reserved

FEATURES AND ISSUES
Code:
- Boot : Ok
- GApps : OpenGApps Micro Ok
- ROM Recovery : Ok (see below)
- FOTA Recovery : Ok (see below)
- WiFi : Ok (real SONY MAC address)
- Bluetooth : Ok (real SONY MAC address)
- WiFi Hotspot : Ok (2.4GHz and 5GHz)
- RIL - Phone - Data : Ok
- GPS : Ok
- Camera : Ok
- Camcorder : Ok
- Lights : Ok, regular AOSP lights support
- MicroSD : Ok, only Ext4 support missing from ROM
- Accelerometer : Ok
- Compass : Ok
- Gyroscope : Ok
- AOSP sensors : Ok
- FM Radio : Ok
- Vibrator : Ok
- Microphone : Ok
- Audio & external audio : Ok
- Bluetooth audio : Ok
- NFC : Ok
- Kernel : Ok, Updating frequently
- Graphics : Ok
- 3D Rendering : Ok
- Clock : Ok (RTC real hardware clock, in TWRP recovery too)
- Powered-off alarm : Ok
- Offline Charging : Ok
- Encryption : Works but system gets slower
- SEPolicies : Fully enforced
 

Attachments

Last edited:

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,943
208
Île-de-France
adriandc.github.io
Reserved

IMPORTANT FEATURES TO KNOW
  • Boot sequence : Once the LEDs light up :
    - Press Volume - to open CyanogenRecovery,
    - Press Volume + to open the FOTA recovery (TWRP usually) if available
  • Powered-off alarm : When you have set an alarm
    - If you power down the device, it will wake automatically 5 minutes before
    - If you let the device charge offline, it will automatically reboot 5 minutes before
  • Gestures : Events like hand-wave and pocket removal can be enabled in the Settings
  • Force reboot : You can reset the device by holding Power and Volume+ 5 seconds

Current local manifest of the ROM build
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://github.com/AOSP-RRO/manifest -->
<manifest>

  <project name="AOSP-RRO/device_sony_huashan" path="device/sony/huashan" remote="github" revision="nougat" />

</manifest>
 
Last edited:

Jcei

Member
Aug 26, 2011
29
15
0
no sim card

Hi,
After a few reboots the sim card isn't detected anymore. Reboot/shutdown solves nothing.
No issue using CM13.
Log cat is in attachment.

Build: 17/04 clean install + opengapps 17/04 + supersu 2.52
I encountered the same issue on an earlier CAF version

Thank for your help
 

Attachments

Last edited:

Jcei

Member
Aug 26, 2011
29
15
0
Hi,
After a few reboots the sim card isn't detected anymore. Reboot/shutdown solves nothing.
No issue using CM13.
Log cat is in attachment.

Build: 17/04 clean install + opengapps 17/04 + supersu 2.52
I encountered the same issue on an earlier CAF version

Thank for your help
Issue still present on 18/04 build. Clean install once again.
It seems to happen after I configure some android parameter that puts it in an unrecoverable state.

EDIT: => I tried a TWRP wipe after having the issue, and it didn't solved it. The google setup was asking me to insert a sim card.
 
Last edited:

imjcei

Member
Nov 26, 2015
6
1
0
What do you mean by that?

And if that's the problem.... I suggest you not to configure some android parameter ;)
It doesn't happen immediately, I can reboot it at first and while going further in the configuration it seems to reach that unusable state (no sim detected)
The fact that a wipe doesn't solve the issue kinda invalidate that idea.

I could try to use it raw with no extra software nor configuration but I'm not really convinced it's the right solution [emoji6]
 

pcm992004

New member
Oct 8, 2008
4
0
0
now recovery is missing... how can I enter in recovery mode? I try pressing vol+ / vol- and camera buttons when phone starts but only receive android dead image...