[ROM][BETA][11] LineageOS 18.1 for Xperia T/TX/V

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,942
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,​
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 TX (Hayabusa) - Development : https://mega.nz/folder/T9MUVJ4C#rO3CIVKjKrFg7nmR0jjnZw
Xperia V (Tsubasa) - Development : https://mega.nz/folder/vpUGhZoK#8AgXq9lMGttCM1jYHTMGfw
Google Applications (optional) :
Information : Flash the GApps before the first boot. If not, a clean flash is recommended.​
Recommended Recovery (optional) :
Disable the default Low-RAM features (optional) :
Low-RAM Property Patcher : http://forum.xda-developers.com/-/-t3737373
Tools required for bootimage patches such as root :
Informations and references :
About LineageOS updates : ChangeLog available on https://download.lineageos.org/mint/changes/
About LineageOS device side : See my GitHub trees linked below​

Unification of the user partitions into UserData
Read more about the UserData unification :
- Xperia T (Mint) : LineageOS Wiki
- Xperia TX (Hayabusa) : LineageOS Wiki
- Xperia V (Tsubasa) : LineageOS Wiki

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

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 T/TX/V also thanks to :
- Google AOSP​
- 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
 
Last edited:

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,942
208
Île-de-France
adriandc.github.io
IMPORTANT FEATURES TO KNOW
  • Boot sequence : Once the LEDs light up :
    - Press Volume - to open LineageOS 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
 

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,942
208
Île-de-France
adriandc.github.io
FEATURES AND ISSUES
Code:
Boot                       : Ok
GApps                      : Ok
Partitions (Data, Cache)   : Ok
Bluetooth                  : Ok
WiFi                       : Ok
WiFi Hotspot               : Ok
USB Tethering              : Ok
RIL - Phone - Data         : Ok
GPS                        : Ok
Camera                     : Ok
Camcorder                  : Ok
Lights                     : Ok
MicroSD                    : Ok
Accelerometer              : Ok
Compass                    : Ok
Gyroscope                  : Ok
AOSP sensors               : Ok
Touchscreen                : Ok
Gestures                   : Ok
FM Radio                   : Ok
Vibrator                   : Ok
Microphone                 : Ok
Audio & music              : Ok
Bluetooth audio            : Ok
Video playback             : Ok
NFC                        : Ok
Kernel                     : Ok
Graphics                   : Ok
3D Rendering               : Ok
Clock                      : Ok
DRM                        : Ok
Offline Charging           : Ok
USB                        : Ok
USB OTG                    : Ok
Encryption                 : ? (May fail to encrypt, TODO)
SEPolicies                 : ? (Permissive, TODO)
Kernel CVE                 : Partially outdated
Root                       : Ok (with ADB)
TWRP                       : Ok (TWRP 3.5.0 recommended, system restore may need a ROM reflash due to a TWRP internal issue)
CHANGELOG
Code:
Future release:
  - Work in progress

25/01/2021:
  - Upgrade release on Android 11.0.0_r27 January

03/01/2021:
  - Update release on Android 11.0.0_r19 December
  - Calendar fixes to support Android Go builds without widgets
  - CPU deep sleep repaired, improving the battery life
  - Migration to my HIDL Lights HAL to resolve lights issues and power usage
  - GPS functionalities restored

02/01/2021:
  - Initial public release on Android 11.0.0_r19 December

28/12/2020:
  - Initial beta testers release on Android 11.0.0_r19 December
 
Last edited:

_a_m_i_r_gh_

New member
Dec 8, 2020
2
0
11
Thank you very much @AdrianDC
I'm glad you support our little Xperia so we can enjoy our mobile 😍😘

The only issue that seems to me to be very nerve-wracking is "average memory use", which is 95% occupied and works, and after running a program, the phone speed drops sharply.

- Bluetooth stopped at the beginning of the smartphone and did not turn on at all.

Also Launcher does not have a widget and it seems that it can not be added

Hoping to develop this ROM 🙂
 

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,942
208
Île-de-France
adriandc.github.io
The only issue that seems to me to be very nerve-wracking is "average memory use", which is 95% occupied and works, and after running a program, the phone speed drops sharply.

- Bluetooth stopped at the beginning of the smartphone and did not turn on at all.

Also Launcher does not have a widget and it seems that it can not be added
Thanks !

Concerning RAM, the 841MB of RAM available on our Xperia SP are always going to be an issue,
as of now, I feel the device performs better than 17.1 on a daily usage basis,
the 768MB ZRAM improves the memory stress issue a lot since 17.1,
and I'm still working on trying to reduce things we don't need to improve responsiveness.

For your Bluetooth issue, which nobody else reported yet, could you please send me the logs for debugging (PM) ?

As for Launcher without widgets, that's normal, I'm now using full Android Go configurations,
and the widgets feature is one of the few ones removed from Go to improve RAM / responsiveness,
thus we are now using the Trebuchet Go variant of the Launcher app.

Side-note, there's a Calendar app failure related to the lack of widgets in Go,
I fixed it (along the Messaging and Music apps already done), next build will have it.
 
  • Like
Reactions: bash_of_dev_null

lobotron

Senior Member
Jan 21, 2017
63
15
8
I just installed & must say this looks very promising, so far no issues and a much better feeling than with 17.1. Bluetooth seems to work here. I can even use the square again. So my oldest mobile has the newest lineage now, unbelievable. @AdrianDC Thanks again very much and all the best for 2021!
 
  • Like
Reactions: AdrianDC

xperanto

Senior Member
Jan 22, 2017
62
54
18
however it'll need some testing on Xperia V and Xperia TX devices (as I test on Xperia T).
Just wow! that you are still working on it!

I have some Vs, a SP and a T. If you have any ROMs to test and need some logs for V or else, feel free to leave a notice. They are not my daliy drivers, so you could even "fry" them.

Overall very promissing on tsubasa and very smooth. "Feels" way better than 17.1 already.
 

hung2k

Member
Oct 7, 2008
17
0
21
Thanks for maintaining such a ancient device @AdrianDC
Magisk 21.4 + BootBridge seems doesn't work right now?
i can complete the installation but when i reboot to system no magisk was installed
 

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,942
208
Île-de-France
adriandc.github.io
So, this ROM enables low-RAM patch by default and we don't need to apply the low-RAM patch again, right?
Yes, all my LineageOS / AOSP builds since 2017/2018 were built with Android Go configurations,
hence the Low RAM configuration has always been enabled by default,
the patcher is there to disable the flag on these builds and to enable it on other devices.

Another issue, there is no NFC toggle in Settings-Connected Deivces, as well as in Quick Settings
As you probably saw later on, the NFC feature was resolved in the latest builds.

Thanks for maintaining such a ancient device @AdrianDC
Magisk 21.4 + BootBridge seems doesn't work right now?
i can complete the installation but when i reboot to system no magisk was installed
Looking into it whenever I have time, apparently Magisk v21.2 was killing the device's boot,
and Magisk v21.4 _may_ be flashable but non-effective : https://github.com/topjohnwu/Magisk/issues/3636
 

hung2k

Member
Oct 7, 2008
17
0
21
Yes, all my LineageOS / AOSP builds since 2017/2018 were built with Android Go configurations,
hence the Low RAM configuration has always been enabled by default,
the patcher is there to disable the flag on these builds and to enable it on other devices.



As you probably saw later on, the NFC feature was resolved in the latest builds.



Looking into it whenever I have time, apparently Magisk v21.2 was killing the device's boot,
and Magisk v21.4 _may_ be flashable but non-effective : https://github.com/topjohnwu/Magisk/issues/3636
Thanks for your reply
but i can't instsll 20.4 while the installing step showing cannot mount /vendor
i guess maybe related to system as root in new lineage18.1's build?

another minor question, i can't add a clock widget in the home screen using default launcher, is it normal ?
before i use nova launcher 5.5.4 but in LOS18 it crash on startup so i try to use default one but having problem
 

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,942
208
Île-de-France
adriandc.github.io
Thanks for your reply
but i can't instsll 20.4 while the installing step showing cannot mount /vendor
i guess maybe related to system as root in new lineage18.1's build?

another minor question, i can't add a clock widget in the home screen using default launcher, is it normal ?
before i use nova launcher 5.5.4 but in LOS18 it crash on startup so i try to use default one but having problem
v20.4 will never work, Magisk added support for Android 11 on v21.x.
It will have to be fixed either by Magisk or device side if anything is found.

On Android 11, LineageOS 18.1, I migrated to full Android Go configurations,
which disables some system features to reduce the RAM and CPU fingerprints,
the most visible of these is the widgets, they are disable and the launcher is the Go variant.
 

hung2k

Member
Oct 7, 2008
17
0
21
v20.4 will never work, Magisk added support for Android 11 on v21.x.
It will have to be fixed either by Magisk or device side if anything is found.

On Android 11, LineageOS 18.1, I migrated to full Android Go configurations,
which disables some system features to reduce the RAM and CPU fingerprints,
the most visible of these is the widgets, they are disable and the launcher is the Go variant.
got it, thanks for explanation
 

skytorch

Member
Oct 9, 2019
11
1
3
Yes, all my LineageOS / AOSP builds since 2017/2018 were built with Android Go configurations,
hence the Low RAM configuration has always been enabled by default,
the patcher is there to disable the flag on these builds and to enable it on other devices.



As you probably saw later on, the NFC feature was resolved in the latest builds.



Looking into it whenever I have time, apparently Magisk v21.2 was killing the device's boot,
and Magisk v21.4 _may_ be flashable but non-effective : https://github.com/topjohnwu/Magisk/issues/3636
Got, found NFC toggler in "Quick Settings". So the toggler item in Settings was removed intendedly?