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

Search This thread

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,973
Île-de-France
adriandc.github.io
NBAYK8V.png

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://xdaforums.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

  • Screenshot_20160925-230914.png
    Screenshot_20160925-230914.png
    139.8 KB · Views: 2,737
  • Screenshot_20160925-230929.png
    Screenshot_20160925-230929.png
    61.5 KB · Views: 2,720
  • Screenshot_20160925-230935.png
    Screenshot_20160925-230935.png
    139.2 KB · Views: 2,700
  • Screenshot_20160925-230950.png
    Screenshot_20160925-230950.png
    47.2 KB · Views: 2,592
  • Screenshot_20160925-231033.png
    Screenshot_20160925-231033.png
    17 KB · Views: 2,557
  • Screenshot_20160925-231056.png
    Screenshot_20160925-231056.png
    54.5 KB · Views: 2,497

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,973
Î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

  • screenshot.png
    screenshot.png
    93.4 KB · Views: 3,372
Last edited:

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,973
Î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:

parkavenu

Member
Feb 10, 2011
45
4
Which kernel should I use with this ROM?
Now I'm using CM13 on my XSP. Do I need to use another kernel?
 

Jcei

Member
Aug 26, 2011
29
15
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

  • 2016-04-17-14-50-37.zip
    78.1 KB · Views: 42
Last edited:

Jcei

Member
Aug 26, 2011
29
15
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
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
whatsapp audio is not working for me. It says it's impossible to configure recorder now, try again later, but it doesn't work.
 

pcm992004

New member
Oct 8, 2008
4
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...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 38
    NBAYK8V.png

    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://xdaforums.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
    20
    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>
    15
    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
    12
    New AOSP-OMS Release 20161224. And an additional patch for the audio on Nougat, reason found and patched.
    12
    A0SP-OMS updated, OMS being the continuation of RRO !

    SuperSU will not be flashed by the installer, as it does not support the Sony 8x60 boot images.
    You will need to flash the 2.52 SuperSU still linked in the main post.

    The current ramdisk restructuration I'm about to merge to CM13 common repos
    and that is already included into this ROM is meant to allow proper support of tools like SuperSU,
    however now the problem is that SuperSU does not support our Kernel partition name (easy to fix),
    but mostly does not support at all our Sony ELF boot images, which was the biggest part of my MultiROM port.

    I contacted Chainfire in the hope of one day getting this support, but nothing can be assured nor is he obligated to add it.
    Old SuperSU 2.52 will continue to work fine with the new ROMs & will remain "reliable" for our AOSP-based ROMs.