[ROM][SNAPSHOT][7.1] LineageOS 14.1 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.
 */


About LineageOS
LineageOS is a free, community built, aftermarket firmware distribution of Android 7.x (Nougat),
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 14.x (Unlocked Bootloader) :
Xperia SP (Huashan) - 14.1 : https://mega.nz/#F!zp8mxS4B!X-_vO7IzoFpW12IdSn0S_A

Google Applications (optional) :
OpenGapps : http://opengapps.org/ (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.x : http://forum.xda-developers.com/xperia-sp/orig-development/-t3309938

Informations and references :
Kernel CVEs : Security patches status https://cve.lineageos.org/android_kernel_sony_msm8960t
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 the Recovery
- (Optional) Flash the GApps to have the Google Applications
- (Optional) Every additional zip you want to flash
- Reboot

LineageOS update / upgrade :
- (Information) Don't wipe anything unless you want to
- (CM / UNOFFICIAL) Nothing to wipe when switching
- (FUTURE RELEASES) Might need clean, informations will be updated
- Flash the latest LineageOS ROM zip from the Recovery
- (Optional) Flash the GApps on first install / upgrade. Not required later, but do update sometimes
- (Optional) Every additional zip you want to flash
- Reboot

LineageOS official upgrade from older builds :
- (Information) Read the following post : Update & Build Prep
- (Optional) Backup your applications and / or ROM
- (CM / UNOFFICIAL) Flash the EXPERIMENTAL migration build and reboot to Android
- Flash the latest LineageOS ROM and reboot to Android

LineageOS addonsu for root access :
- (Information) Read the Root section of the Q&A thread
- (Download) Download the addonsu for arm : LineageOS Downloads / Extras
- (Optional) Flash the zip on a working Lineage installation (once)
- (Information) Upon ROM updates, the addonsu is preserved
- Reboot


About the builds


Issues and reports
- Report issues only if you are using 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
LineageOS 14.1 Huashan Regular Questions and Answers : Q&A Thread

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 Huashan also thanks to :
- The LineageOS Team
- The CyanogenMod Team
- Everyone involved in working and testing​


XDA:DevDB Information
LineageOS 14.1, ROM for the Sony Xperia SP

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

Version Information
Status: Snapshot

Created 2016-12-31
Last Updated 2020-08-15
 
Last edited:

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
- Partitions (Data, Cache) : Ext4 and F2FS supported
- ROM Recovery : Broken for signed official (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, advanced colours control, Multiple LEDs, LEDs Brightness, ...
- MicroSD : Ok
- 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
 
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 the ROM 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
 
Last edited:

KelleyCook

Senior Member
Mar 29, 2013
236
149
63
Another early adopter here.

I'll state that this first LineageOS release is quite good --

Amazingly for a totally new ROM that I never heard of before last week, it might be as good if not slightly better than the Dec25 Cyanogenmod 14.1 release that had been years in the making that I was running previously.

I think I'll keep it.
 
Last edited:

JoL1hAHN

Senior Member
Oct 9, 2012
71
41
38
Milan
Amazingly for a totally new ROM that I never heard of before last week, it might be as good if not slightly better than the Dec25 Cyanogenmod 14.1 release that had been years in the making that I was running previously.
Actually LineageOS is forked from CyanogenMod so it's not really anything new, just a different name for now.
 
  • Like
Reactions: varioventus

engr_exxi

Senior Member
Nov 5, 2011
312
124
0
Manila
Is it possible to enable the root access by Developer Options like CyanogenMod ROM?
For future questions like this, please refer to the Q&A section because first it has already been answered and secondly let us keep this thread mainly for the discussion of the rom development. We know some are new members. But please read thoroughly because every word and detail counts then sometimes in the end you will come looking and posting haaaalp! When it has already been explained in the first place.
 
  • Like
Reactions: AdrianDC

ag.steel

Member
Mar 1, 2014
27
2
0
system freeze

Hi,

Just flashed this rom (full clean flash, *NO* google apps), coming from official stock rom (4.3).

Found one case were the system freezes completely (to restart the device you need to push 5sec the OFF button under the cover), here is how to reproduce :

- install and start Firefox for android (in my case it is version 51.0beta7)
- go to youtube.com and play a video
- tap the android multitask button
- in multitask mode, sound starts to stutter, then after some seconds the system freezes completely.

In general, sound is stuttering when playing a video (or maybe only a sound) in the background via the default web browser also.
Otherwise media playing is fine (default music player and video player) when multitasking.

I find it strange that a user app (Firefox mobile in this case) can completely freeze the system!?
 

OsGhaly

Senior Member
Jan 26, 2014
605
351
93
Cairo
Hi,

Just flashed this rom (full clean flash, *NO* google apps), coming from official stock rom (4.3).

Found one case were the system freezes completely (to restart the device you need to push 5sec the OFF button under the cover), here is how to reproduce :

- install and start Firefox for android (in my case it is version 51.0beta7)
- go to youtube.com and play a video
- tap the android multitask button
- in multitask mode, sound starts to stutter, then after some seconds the system freezes completely.

In general, sound is stuttering when playing a video (or maybe only a sound) in the background via the default web browser also.
Otherwise media playing is fine (default music player and video player) when multitasking.

I find it strange that a user app (Firefox mobile in this case) can completely freeze the system!?
I tried to reproduce this issue and I can assure that the sound is shuttering when multitasking, and the video will stop playing completely after a while if it was playing in the background.. But I didn't face any freezing or hanging..
So, I think it can be a Firefox problem as you said you are using the beta version of FF and I am using FF latest release 15.1.0 or you may have other apps running in the background that eating up your ram.

Sent from my Xperia SP using Tapatalk