Remove All Ads from XDA

[ROM][7.1.2] AOSP Nougat for Xperia SP

2,161 posts
Thanks Meter: 12,646
By AdrianDC, Recognized Developer on 27th August 2016, 09:25 PM
Post Reply Email Thread

#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.

Downloads Links
AOSP 7.x Nougat (Unlocked Bootloader) :
Xperia SP (Huashan) - 7.1.2 :!LtNjDKBQ!YdZPyZghv07Tp2J8EgxcfQ
Downloads mirror :

Google Applications (optional) :
OpenGapps : (Use packages for ARM, Android 7.x, Micro or Pico)
Information : Flash the GApps before the first boot. If not, a clean flash is recommended.

Recommended Recovery (optional) :
TWRP 3.0 :

Informations and references :
Kernel CVEs : Security patches status
About AOSP : Repositories available on

Flashing and updating
AOSP 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 lose data)
- Flash the AOSP ROM zip from the Recovery
- (Optional) Flash the GApps to have the Google Applications
- (Optional) Every additional zip you want to flash
- Reboot

AOSP update / upgrade :
- (Information) Don't wipe anything unless you want to
- Flash the latest AOSP ROM zip from the Recovery
- (Optional) Flash the GApps if you want to, otherwise preserved.
- (Optional) Every additional zip you want to flash
- Reboot

About the builds
Development project :
Device tree :
Kernel sources :
Vendor blobs :

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 : Is root access included into AOSP ?
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 completely. OpenGApps recommended.

Q : I see errors during the installation, is it normal ?
A : If it is E:unknown command [log] , ignore it for now

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.

Q : The AOSP Keyboard does not support swipe gestures ?
A : Unfortunately the sources for swipe gestures are not available
and Google still requires their prebuilt library to be there for AOSP Keyboard.
Download the following API 23 from OpenGApps
and push it to /system/lib/ using root access,
or use my one-time install zips :!ThEAkCRa!byhSwuoTbf6lnC1JxgKrig.

AOSP available for Huashan also thanks to :
- Google AOSP
- The LineageOS Team
- CodeAurora Forums
- The CyanogenMod Team

XDA:DevDB Information
AOSP Nougat 7.1.2, ROM for the Sony Xperia SP

Adrian DC
Source Code:

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

Version Information
Status: No Longer Updated

Created 2016-08-27
Last Updated 2019-08-06
The Following 109 Users Say Thank You to AdrianDC For This Useful Post: [ View ]
27th August 2016, 09:25 PM |#2  
AdrianDC's Avatar
OP Recognized Developer
Flag Île-de-France
Thanks Meter: 12,646
- Boot : Ok
- GApps : OpenGApps Micro Ok
- Partitions (Data, Cache) : Ext4 supported
- Dual 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 AOSP
- 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
- Graphics : Ok
- 3D Rendering : Ok
- Clock : Ok (RTC real hardware clock, in TWRP recovery too)
- Powered-off alarm : Ok
- Offline Charging : Ok
- Encryption : Status unknown
- SEPolicies : Fully enforced

  • 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
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	10584
Size:	42.8 KB
ID:	3913391   Click image for larger version

Name:	2.png
Views:	10476
Size:	111.8 KB
ID:	3913392   Click image for larger version

Name:	3.png
Views:	9986
Size:	47.9 KB
ID:	3913393   Click image for larger version

Name:	4.png
Views:	9932
Size:	208.3 KB
ID:	3913394   Click image for larger version

Name:	5.png
Views:	10142
Size:	85.3 KB
ID:	3913395  
The Following 71 Users Say Thank You to AdrianDC For This Useful Post: [ View ]
27th August 2016, 09:25 PM |#3  
AdrianDC's Avatar
OP Recognized Developer
Flag Île-de-France
Thanks Meter: 12,646
Recent branches commits
Changes log
  • 31/12 : New release on Android 7.1.2_r36 sources (October CVE patches)
  • 02/08 : Updated device sources, Lights Effects minor fix
  • 14/07 : New release on Android 7.1.2_r24 sources (July CVE patches) & Initial Music Lights Effects release (About)
  • 01/07 : Updated kernel vulnerabilities patches, fixes and external storage for Camera2
  • 18/06 : New release on Android 7.1.2_r17 sources (June CVE patches / Pixel) & Jelly Browser updates
  • 12/05 : Updated kernel vulnerabilities patches, improved Jelly Browser app
  • 02/05 : New release on Android 7.1.2_r8 sources (May patches / Pixel) & Camera2 fixes
  • 26/04 : New release with updated and unified AOSP 7.1.2 / LineageOS device sources
  • 13/03 : New release on Android 7.1.1_r25 sources (March CVE patches / Pixel)
  • 07/02 : New release on Android 7.1.1_r20 sources (February CVE patches / Pixel)
  • 29/01 : Updated device sources, fixed AOSP Recovery build
  • 07/01 : New release on Android 7.1.1_r9 sources (January CVE patches)
  • 30/12 : Updated device sources, restored Double power to Camera option
  • 13/12 : New release on Android 7.1.1_r6 sources
  • 09/12 : Updated device sources, tethering kernel support added for AOSP 7.1.1
  • 07/12 : New release on Android 7.1.1_r4 sources (About)
  • 25/11 : Some Pixel colours and round icons, Downloads play/pause, minor fixes (About)
  • 16/11 : Google SetupWizard fixes, minor improvements, dexopt disabled (About)
  • 12/11 : Original RIL, USSD fixed, cleanups, Android 7.1.0_r7 (About)
  • 29/10 : Sources improvements and working camcorder (About)
  • 24/10 : Updated release for Huashan, Android 7.1.0_r4 (About)
  • 17/10 : Updated release for Huashan, Android 7.0.0_r14 (About)
  • 28/08 : Initial release for Huashan, Android 7.0.0_r1

Original AOSP 7.1 sources with following relevant additions
  • Huashan device tree, kernel and vendor
  • Bionic: Support for SHIMs (Camera)
  • Build: Backup tool full support (GApps)
  • NFC: Proper support & removed log spam
  • Toybox: Support for init_sony boot selection
  • AV: Camera support for Nougat
  • AV: Initial camcorder partial support
  • Camera2: Fixes for wrongly rotated photos and improvements
  • Screenshots: Fix MTP list updates
  • Settings: Remove Google system updates
  • UI: Add reboot option to power menu
  • UI: Various efficiency improvements and fixes
  • UI: Some Pixel designs like NavBar and colours
  • Downloads: Add the ability to Play/Pause
  • Telephony: Support for older RIL layers
  • Telephony: Provide default networks APNs from CM
  • Audio: 8960 adapted HAL and FM support
  • FM: Fully implemented with AOSP FM Radio
  • Music: Minor fix to permissions
  • Settings: Minor visual rendering improvements
  • Healthd: Support for Huashan offline charger
  • Core: Disabled flash_recovery service from AOSP
  • Sepolicies: Minimal changes and fully enforced ROM

Current local manifest
<?xml version="1.0" encoding="UTF-8"?>
<!-- -->

  <!-- See -->

The Following 55 Users Say Thank You to AdrianDC For This Useful Post: [ View ]
27th August 2016, 09:48 PM |#4  
Senior Member
Flag Istanbul
Thanks Meter: 106
Woow, you're unbelievable !

Gonna try and report when it's available

Thank you for all of your efforts and giving time to our device
The Following 5 Users Say Thank You to Iekuta For This Useful Post: [ View ] Gift Iekuta Ad-Free
27th August 2016, 09:55 PM |#5  
Boulaxx's Avatar
Senior Member
Flag Beirut
Thanks Meter: 474
Thank you so much, the best developer of all Xperia phones 😻😻
The Following 3 Users Say Thank You to Boulaxx For This Useful Post: [ View ] Gift Boulaxx Ad-Free
27th August 2016, 10:14 PM |#6  
ghst7's Avatar
Senior Member
Thanks Meter: 82
wow, well done mate!
really keeping XSP alive
The Following 2 Users Say Thank You to ghst7 For This Useful Post: [ View ] Gift ghst7 Ad-Free
27th August 2016, 10:44 PM |#7  
Senior Member
Thanks Meter: 357
Donate to Me
Hello. I will try to help compiling and see if I can fix any bugs. I helped solving some minor bugs in the Motorola Xoom Lollipop and Marshmallow roms by Schischu.

By the way. This repository <project name="CyanogenMod/android_device_qcom_sepolicy" path="device/qcom/sepolicy" remote="github" revision="see-gerrit" /> should have revision staging/cm-14.0 instead of see-gerrit.

see-gerrit does not exist.

Great job by the way.
The Following 3 Users Say Thank You to Manuellama For This Useful Post: [ View ] Gift Manuellama Ad-Free
27th August 2016, 11:15 PM |#8  
n78 shadow's Avatar
Senior Member
Flag Damascus
Thanks Meter: 729
I entered the forum to see Android N for Hushan
Thank you very much.
Great job
The Following 2 Users Say Thank You to n78 shadow For This Useful Post: [ View ] Gift n78 shadow Ad-Free
27th August 2016, 11:16 PM |#9  
ervinakoc x's Avatar
Flag Athens
Thanks Meter: 22
I Cant believe It
Big Thanks
Youre The Best
The Following 2 Users Say Thank You to ervinakoc x For This Useful Post: [ View ] Gift ervinakoc x Ad-Free
27th August 2016, 11:38 PM |#10  
Unusual Man's Avatar
Senior Member
Flag Szczecin
Thanks Meter: 49
The Following 3 Users Say Thank You to Unusual Man For This Useful Post: [ View ] Gift Unusual Man Ad-Free
28th August 2016, 01:34 AM |#11  
Adam Myczkowski's Avatar
Senior Member
Flag Telford
Thanks Meter: 370
Donate to Me
Amazing, I believed you will bring up Nougat to XSP but I didnt think it will be that quick. BTW you wrote that you are using cm qcom/sepolicy. Am I the only one for who this is causing big troubles when porting to A device? Did you have to make any edits? I had to and there are still many neverallows caused by qcom/sepolicy :/
The Following User Says Thank You to Adam Myczkowski For This Useful Post: [ View ] Gift Adam Myczkowski Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes