[Q&A][ROM][7.1] LineageOS 14.1 for Xperia SP

Search This thread

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,968
Île-de-France
adriandc.github.io
Lineage-Header_zps5k1so3nb.png~original



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 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



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.​
 
Last edited:

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,968
Île-de-France
adriandc.github.io
Is there any reason why you recommend the micro/pico packages? I am thinking to flash the stock package and I see that replaces a lot of stock/AOSP apps. Will that cause any problems with the ROM?

System partition is not big enough on older devices to support ROM and full gapps packages.
Pointless anyways as most apps can be added from the Play Store.
 
Last edited:

-kerberos-

Member
May 22, 2016
20
22
Germany
Hi Adrian,

happy new year! I see you can't wait until new year to release the LineageOS for our Xperia SP, that's crazy :D Thank you, again!

One thing I could find in your first post: In future the root access will be removed from LineageOS? Yes, I know you write
information will be given later, but I'm nosy.. Any reason for this change by you or LineageOS?

Regards -kerberos-
 
Last edited:
  • Like
Reactions: AdrianDC

engr_exxi

Senior Member
Nov 5, 2011
312
124
Manila
Yes, same for me here regarding the CM/Lineage file manager. If I use for example the Totalcommander it's no problem to use the SD-card.

Regards -kerberos-

but since the app is already included in the rom, and I don't want another app taking some precious storage. Still can manage to access the sd card's file through the settings menu. But better if the sd card's access is fixed at the app itself.
 

-kerberos-

Member
May 22, 2016
20
22
Germany
I have exact the same intention, but I can't fix it by myself. So I have to wait if most likely Adrian have time to fix it. My expectation is, due to the shift from CM to LineageOS he is busy with more important tasks. So my idea is just a temporary solution, until the standard file manager app is fixed.

Regards -kerberos-
 

OsGhaly

Senior Member
Jan 26, 2014
605
351
Cairo
but since the app is already included in the rom, and I don't want another app taking some precious storage. Still can manage to access the sd card's file through the settings menu. But better if the sd card's access is fixed at the app itself.
just a workaround not a solution, you can access SD card's files from settings then Storage and then press the SD card name/icon and try to avoid pressing the eject button ofc :D

Sent from my Xperia SP using Tapatalk
 
Last edited:

Dn.Thanujaya91

Senior Member
Sep 2, 2014
140
92
Panadura
Thanks a Lot for this Rom @Adrian DC

I'm having issue with offline charging.
when i unplug the charger, it shows the battery percentage and hang in there.
pressing power on/off key do nothing.

have to press emergency power off button or,
press and hold volumeUP and Power on/off button until phone vibrates.

Is there permanent fix for this?
 

JetArmstrong

Senior Member
Jan 29, 2014
98
17
Ioannina
Thanks a Lot for this Rom @Adrian DC

I'm having issue with offline charging.
when i unplug the charger, it shows the battery percentage and hang in there.
pressing power on/off key do nothing.

have to press emergency power off button or,
press and hold volumeUP and Power on/off button until phone vibrates.

Is there permanent fix for this?

Same with cm13. Quick fix:
Power up your phone while the charger is connected.
 
  • Like
Reactions: Dn.Thanujaya91

Kaffeetrinker

Senior Member
May 15, 2015
326
164
32
Eppelborn
Thanks a Lot for this Rom @Adrian DC

I'm having issue with offline charging.
when i unplug the charger, it shows the battery percentage and hang in there.
pressing power on/off key do nothing.

have to press emergency power off button or,
press and hold volumeUP and Power on/off button until phone vibrates.

Is there permanent fix for this?


Same with cm13. Quick fix:
Power up your phone while the charger is connected.

I'm pretty sure that in the builds a months before the end of CM13, there was the old charging animation, the colored one. Back then, everything worked find.

When I flashed the last snapshot of CM13, I got the black and white charging animation and since then, the bug has occured.

I hope this makes it easier to find out which commit caused this regression.
 
  • Like
Reactions: Dn.Thanujaya91

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    Lineage-Header_zps5k1so3nb.png~original



    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 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



    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.​
    5
    Why is LineageOS so much bigger in size than AOSP?

    AOSP: ~280MiB
    LOS: ~400MiB

    LineageOS 377MB against AOSP 283MB.

    I invite you to compare these :
    3
    In this rom shall
    Fm transmitter?

    No. QCOM abandoned the support of FM Transmitter in the Audio HAL since Marshmallow.
    3
    Is there any reason why you recommend the micro/pico packages? I am thinking to flash the stock package and I see that replaces a lot of stock/AOSP apps. Will that cause any problems with the ROM?

    System partition is not big enough on older devices to support ROM and full gapps packages.
    Pointless anyways as most apps can be added from the Play Store.
    3
    After upgrading from Lollipop (then maintained by Marcelo) to Marshmallow to Nougat without doing a single full wipe (at least I don't remember doing one), my device began to drain the battery a lot.

    Yeah, sometimes you should do a full wipe. Now everything's back to normal after flashing "from scratch"!

    Nevertheless, I've seen no rom ever that could handle that much upgrades without wiping. Great! :good:

    Titanium backup and Syncthing have been my best friends while doing this.
    Remember to reinstall Syncthing from scratch and don't restore it via Titanium Backup. Doing otherwise would delete all your files on the Server.
    OwnCloud is also great for this.
    Never had to think about backups, never will have to think about backups ;)