[Xperia SP Q&A, Help & Troubleshooting] 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 this Q&A thread for LineageOS

Use this area to ask anything you want related to LineageOS,

but try not to spam everyone, always search for an answer before.​

LineageOS 14.1 for Sony Xperia Huashan

Xperia SP (Huashan) : http://xdaforums.com/-/-/-t3529514​

General Questions & Answers

Is root access included into LineageOS ?

No longer included by default to improve user security.

An addon is shared to add SuperUser features : https://download.lineageos.org/extras.

It will survive to updates the same way GApps do.

Go into Settings, About Phone. Tap "Build number" 7 times.

Go back, open Developer options. Change "Root access" option.

Do not use SuperSU unless you are sure, creates booting issues.

Read more about it : Here.
​

Is the ROM suited for daily usage ? Google Apps compatible too ?

Yes but work in progress. OpenGApps recommended.​

Can I flash LineageOS on official and development builds, or even on CM without wipes ?

Migrations from unofficial to official, and from CM builds, are allowed with an experimental migration.

Read more about it here : http://lineageos.org/Update-and-Build-Prep/

Always remember to do backups before doing such changes.​

Is the device encryption supported ?

State unknown. If you're coming from an older ROM

please read the details here : a07afb9660a86f702066003b8e81ab63789d1660​

When USB connected to a computer, I can't access the storage ?

The phone is in charge-only mode by default on Nougat,

due to a stronger security logic regarding unauthorised data access.

Swipe down the notifications and change the USB mode.​

I can't access the ROM's recovery with Volume-

You can either flash the boot.img from the newer Releases with "fastboot flash boot boot.img" or FlashTool,

or follow the instructions of the TWRP Recovery installation to update from TWRP.​

Against advice, I upgraded without GApps and now it crashes. Any way without factory reset ?

Yes there is, but nothing assures you'll manage to do it fully & preserve all your data...

Once booted, keep saying Ok to all "Unfortunately, ... has stopped",

pull-down the notifications panel, press the Settings icon,

go in Apps, menu, Show System, scroll to Setup Wizard (green Android logo),

Permissions, and activate Contacts + Telephone.

Later, some Play Store apps may need reinstalling.

If not working, then I advise a clean factory-reset reinstallation...​

The AOSP Keyboard does not support swipe gestures ?

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 libjni_latinimegoogle.so API 23 from OpenGApps

and push it to /system/lib/libjni_latinimegoogle.so using root access,

or use my one-time install zips : https://mega.nz/#F!ThEAkCRa!byhSwuoTbf6lnC1JxgKrig.​