FORUMS
Remove All Ads from XDA

[ROM][STABLE][9] AOSP Pie for Xperia SP

2,161 posts
Thanks Meter: 12,646
 
By AdrianDC, Recognized Developer on 17th August 2019, 07:53 PM
Post Reply Email Thread

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.
 */


Downloads Links
AOSP 9 Pie (Unlocked Bootloader) :
Xperia SP (Huashan) - 9 : https://mega.nz/#F!6hsHyKKT!ERgr5s0BMMtO2Cb9j8wLnA
Downloads mirror : https://basketbuild.com/devs/AdrianDC

Google Applications (optional) :
MindTheGapps : https://androidfilehost.com/?w=files&flid=170282 (Use packages for ARM, Android 9.0)
OpenGapps : http://opengapps.org/ (Use packages for ARM, Android 9.0, Micro)
Information : Flash the GApps before the first boot. If not, a clean flash is recommended.

Recommended Recovery (optional) :
TWRP 3.x : http://forum.xda-developers.com/xper...ment/-t3309938

Configure the default Low-RAM features (optional) :
Low-RAM Property Patcher : http://forum.xda-developers.com/-/-t3737373

Informations and references :
Kernel CVEs : Security patches status https://cve.lineageos.org/android_kernel_sony_msm8960t
About AOSP : Repositories available on https://android.googlesource.com/

Flashing and updating
AOSP clean install :
- (Optional) Flash the boot.img kernel from the ROM zip with Fastboot or Flashtool
- (Optional) Install TWRP Recovery to the FOTA partition (Read the TWRP thread)
- (Optional) Wipe the data & cache (Backup to make sure not to lose data)
- Flash the AOSP ROM zip from recovery
- (Optional) Flash a GApps package to have the Google Applications
- (Optional) Every additional zip you want to flash
- Reboot

AOSP update / upgrade :
- (Information) Do not wipe anything unless you want to
- Flash the latest AOSP ROM zip from recovery
- (Optional) Flash a GApps package if you want to, otherwise preserved.
- (Optional) Every additional zip you want to flash
- Reboot

About the builds
Development project : https://github.com/AdrianDC/aosp_development_sony8960_p
Device tree : https://github.com/AdrianDC/android_device_sony_huashan
Kernel sources : https://github.com/AdrianDC/android_..._sony_msm8960t
Vendor blobs : https://github.com/TheMuppets/proprietary_vendor_sony

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 ?
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. Check the list below to decide for yourself.

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 : When USB is connected to a computer, I can't access the storage ?
A : The phone is in charge-only mode by default (since Android Nougat),
> due to a stronger security logic regarding unauthorised data access.
> Swipe down the notifications and change the USB mode.

AOSP available for Xperia Huashan also thanks to :
- Google AOSP
- The LineageOS Team
- CodeAurora Forums
- The CyanogenMod Team
XDA:DevDB Information
AOSP Oreo 9, ROM for the Sony Xperia SP

Contributors
AdrianDC
Source Code: https://android.googlesource.com/

ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.4.x
Based On: AOSP

Version Information
Status: Stable

Created 2019-08-17
Last Updated 2019-08-17
The Following 11 Users Say Thank You to AdrianDC For This Useful Post: [ View ]
 
 
17th August 2019, 07:53 PM |#2  
AdrianDC's Avatar
OP Recognized Developer
Flag Île-de-France
Thanks Meter: 12,646
 
More
Reserved
FEATURES AND ISSUES
Code:
- Boot : Ok
- GApps : OpenGApps Micro recommended
- Partitions (Data, Cache) : Ext4 and F2FS supported
- Bluetooth : Ok
- WiFi : Ok
- WiFi Hotspot : Ok
- RIL - Phone - Data : Ok
- GPS : Ok
- Camera : Ok
- Camcorder : Ok
- Lights : Ok
- MicroSD : Ok
- Accelerometer : Ok
- Compass : Ok
- Gyroscope : Ok
- AOSP sensors : Ok
- Touchscreen : Ok
- FM Radio : Ok
- Vibrator : Ok
- Microphone : Ok
- Audio & music : Ok
- Bluetooth audio : Ok
- NFC : Ok
- Kernel : Ok
- Graphics : Ok
- 3D Rendering : Ok
- Clock : Ok
- DRM : Ok
- Offline Charging : Ok
- USB : Ok
- USB OTG : Ok
- Encryption : Not tested yet
- SEPolicies : Permissive, enforcing is a work in progress

ALSO WORKING ON SONY HUASHAN


IMPORTANT FEATURES TO KNOW
  • Boot sequence : Once the LEDs light up :
    - Press Volume - to open AOSP Recovery,
    - 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
The Following 7 Users Say Thank You to AdrianDC For This Useful Post: [ View ]
17th August 2019, 07:53 PM |#3  
AdrianDC's Avatar
OP Recognized Developer
Flag Île-de-France
Thanks Meter: 12,646
 
More
Reserved
Changes log
  • 17/08 : Initial public release on Android 9.0.0_r46 August
  • 2018: Initial AOSP 9 ports, internal bringup
    >>> Kept private for development purposes


Recent branches commits
Original AOSP 9 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 Pie
  • AV: Initial camcorder partial support
  • Camera2: Fixes for wrongly rotated photos and improvements
  • UI: Various efficiency improvements and fixes
  • Telephony: Support for older RIL layers
  • 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
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://android.googlesource.com/platform/manifest -->
<manifest>

  <!-- See https://github.com/AdrianDC/aosp_development_sony8960_p -->

</manifest>
The Following 10 Users Say Thank You to AdrianDC For This Useful Post: [ View ]
19th August 2019, 10:20 AM |#4  
globe79's Avatar
Member
Thanks Meter: 29
 
More
I woke up in the morning and decided for a short walk around the internet - and to my surprise I found new builds of both AOSP and Lineage suitable for my favourite backup phone Thank you so much @AdrianDC - I know it is harder to withstand people than hardware
The Following User Says Thank You to globe79 For This Useful Post: [ View ] Gift globe79 Ad-Free
19th August 2019, 06:57 PM |#5  
Senior Member
Flag Kraków
Thanks Meter: 1,072
 
More
Thank you for LTS for our Xperia SP.

Is it possible for miracast to work in LOS 16 as it does in LOS 15.1?
The Following User Says Thank You to ze7zez For This Useful Post: [ View ] Gift ze7zez Ad-Free
19th August 2019, 09:13 PM |#6  
AdrianDC's Avatar
OP Recognized Developer
Flag Île-de-France
Thanks Meter: 12,646
 
More
Quote:
Originally Posted by ze7zez

Thank you for LTS for our Xperia SP.

Is it possible for miracast to work in LOS 16 as it does in LOS 15.1?

Sadly Google has removed support for Miracast in AOSP P.

An attempt to revive the abandoned code for LineageOS 16.0 is ongoing and on review.
The Following User Says Thank You to AdrianDC For This Useful Post: [ View ]
19th August 2019, 09:53 PM |#7  
Junior Member
Poprad
Thanks Meter: 1
 
More
Experience, first stable build
Hello, i want to share my critic experience with you and this rom.
(C5303, Clean flash, Data and cache FS changed to F2FS, without gapps, magisk)
1. Music - i had good experience, led controls work good, but after day of using phone and some restarts, it shows only 2 from my 600 songs.
So i installed Sony music app, no difference. Cleared data, cache for both apps, but still no difference.
2. AOSP Browser - After some succesful launches, FC every launch time, other browsers OK
3. After day usage, system started drain battery as fck...
4. At same time as battery and music, system going slowly
5. And biggest issue - phone cannot turn off - it restarts. So i have 2 go 2 recovery and turn off here.

I have been without gapps, because i wanted pure system, so i installed yalp store (some 404 client errors, but logged succesfully) and with magisk 19.3 bootbridge (Modules: V4A 2.7.1.0, Audio compatibility and modification patches, Pixelarity, SF-Font, Busybox, all modules works flawlessly)

I must give big + and thanks for developers, because 6 y.o. phone still breaths for today with the new system, but stable work must have itself finality. Check this things on your phones and please fix it for stable, pure AOSP experience.
And add please full dark mode.

Edit:
I have tried new Lineage 16 and same issues with different music players, browser and newly - gallery doesnt show anything and camera not working.
19th August 2019, 10:28 PM |#8  
Senior Member
Flag Kraków
Thanks Meter: 1,072
 
More
Quote:
Originally Posted by jurko217

(---cut---)
And add please full dark mode, it changes battery life for some hours (---cut---

For amoled display only. Huashan doesn't have it.
20th August 2019, 10:46 AM |#9  
Senior Member
Flag Kraków
Thanks Meter: 1,072
 
More
sorry, another thread
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes