[Sony Xperia P, U, Sola, Go] HardLight:
​

LineageOS is a free, community built, aftermarket firmware distribution of Android 5.1 (Lollipop), which is designed to increase performance and reliability over stock Android for your device.

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

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

LineageOS 12.1

What's working:

RIL

Camera

Torch

Mobile Data

Microphone

Audio

GPS

Vibration

SD Card

Airplane Mode

LEDs

WiFi

Auto Rotation

Tethering

TWRP touch recovery

OMX

Bluetooth

Auto Brightness

Video Recording

Not working:

A2DP

FM radio

Orientation sensor

Download links:

ROM

Android File Host | XDA

GApps

Open GApps

Installation instructions:

Download ROM zip and GApps zip.

Extract boot.img from the zip and flash it via fastboot.

Boot into recovery.

Wipe System, Data, Cache, Dalvik Cache.

Flash ROM zip and GApps zip.

Reboot to system.

Migrate filesystem to F2FS

Follow these steps to migrate /data and /cache to f2fs without data lost (you need of course a valid backup).

Convert /data to F2FS :

Reboot into TWRP

Backup the Data

Go to Wipe/Advanced Wipe

Select "Data"

Select "Repair or Change File System"

Select "Change File System"

Select "F2FS" (Swipe to change will format the filesystem.)

Convert /cache to F2FS :

Go to Wipe/Advanced Wipe

Select "Cache"

Select "Repair or Change File System"

Select "Change File System"

Select "F2FS" (Swipe to change will format the filesystem.)

Restore /data :

Go to Settings

Select "Use rm -rf instead of formatting"

Go to "Restore"

Select Data backup you have done before

Swipe to restore

When the restore is done, go to Settings and uncheck "Use rm -rf instead of formatting"

TWRP 3.2.2-0

Requirements:

LineageOS 12.1 20171024 or later

Installation instructions:

Reboot to recovery

Click 'Install' > 'Install Image' > select recovery image downloaded earlier > pick 'Recovery' from the list > Flash

Reboot to new recovery

Download links:

TWRP

Android File Host

CyanogenMod 12

What's working:

RIL

Camera

Torch

Mobile Data

Microphone

Audio

GPS

Vibration

SD Card

Airplane Mode

LEDs

WiFi

Auto Rotation

Tethering

TWRP touch recovery

OMX

Bluetooth

Not working:

A2DP

FM radio

Auto Brightness (disable it in settings as it causes reboots)

Video Recording

Download links:

ROM

BasketBuild | Android File Host

Thanks to:

LineageOS Team

nMod Team

FreeXperia Project Team

munjeni and 95A31 for their awesome work on our phones and for fixing bugs, thank you :)

Agontuk, HandyMenny and AOSX Team

Meticulus for his work with OMX

XperiaSTE Team

TeamWin Team

XDA:DevDB Information

[ROM][UB][5.0.2/5.1] LineageOS 12.0/12.1 for Xperia Go, ROM for the Sony Xperia U

Contributors

HardLight

Source Code: https://github.com/XperiaSTE

ROM OS Version: 5.1.x Lollipop

ROM Kernel: Linux 3.0.x

ROM Firmware Required: Unlocked Bootloader

Based On: LineageOS

Version Information

Status: Stable

Created 2015-01-26

Last Updated 2018-07-18