[Xperia SP Original Android Development] AdrianDC:
#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.
*/

About LineageOS

LineageOS is a free, community built, aftermarket firmware distribution of Android,​

which is designed to increase performance and reliability over stock Android for your device.​

​

All the source code for LineageOS is available in the LineageOS GitHub repo.​

And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.​

​

Official LineageOS website : http://lineageos.org​

​

Downloads Links

LineageOS 18.1 (Unlocked Bootloader) :

​

Xperia SP (Huashan) - Development : https://mega.nz/folder/bgVwHBha#dgbTpERhUxprd4OmVHz6Zw​

​

Google Applications (optional) :

​

OpenGApps : https://mega.nz/folder/e9NhVARL#N-csHttthHy0wUJjMI_Ekw​

Information : Flash the GApps before the first boot. If not, a clean flash is recommended.​

​

Recommended Recovery (optional) :

​

TWRP 3.5.x : http://xdaforums.com/xperia-sp/orig-development/-t3309938​

​

Disable the default Low-RAM features (optional) :

​

Low-RAM Property Patcher : http://xdaforums.com/-/-t3737373​

​

Tools required for bootimage patches such as root :

​

Boot Bridge for Sony ELF : https://xdaforums.com/-/-/-t3506883​

​

Informations and references :

​

About LineageOS updates : ChangeLog available on https://download.lineageos.org/huashan/changes/​

About LineageOS device side : See my GitHub trees linked below​

​

Flashing and updating

LineageOS 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 LineageOS ROM zip from recovery​

- (Optional) Flash a GApps package to have the Google Applications​

- (Optional) Every additional zip you want to flash​

- Reboot the device​

- Wait a few minutes for optimizations to finish and the SIM to load before the setup​

​

LineageOS update / upgrade :

​

- (Warning) Do not update / upgrade between OFFICIAL and UNOFFICIAL builds​

- (Information) Do not wipe anything unless you want to​

- Flash the latest LineageOS ROM zip from recovery​

- (Optional) Flash a GApps package on first install / upgrade. Not required later, but do update sometimes​

- (Optional) Every additional zip you want to flash​

- Reboot​

​

About the builds

Device tree : https://github.com/LineageOS/android_device_sony_huashan​

Kernel sources : https://github.com/LineageOS/android_kernel_sony_msm8960t​

Device tree (Development) : https://github.com/AdrianDC/android_device_sony_huashan​

Kernel sources (Development) : https://github.com/AdrianDC/android_kernel_sony_msm8960t​

Vendor blobs : https://github.com/TheMuppets/proprietary_vendor_sony​

​

Issues and reports

- Report issues only if you use the ROM original kernel​

- If an additional mod is installed, make sure it is unrelated, and mention it​

- Make sure the issue was not discussed earlier in the thread​

- Acquire ADB logcat logs to a file : how-to-take-logs-in-android​

- If the device crashed and rebooted, retrieve this file from the device : /proc/last_kmsg​

- Use Permissive Kernel Patcher and share logcat logs if it solves issues​

​

Legal

About LineageOS Legal : http://lineageos.org/legal/​

​

The LineageOS team would like to thank everyone involved​

in helping with testing, coding, debugging & documenting! Enjoy!​

​

LineageOS available for Xperia SP also thanks to :

- Google AOSP​

- The LineageOS Team​

- Arne (arco68)​

- Everyone involved in working and testing​

XDA:DevDB Information

LineageOS 18.1, ROM for the Sony Xperia SP

Contributors

AdrianDC

Version Information

ROM OS Version: Android 11

ROM Kernel: Linux 3.4.x

Status: Beta