[ROM][FINAL][9.0] LineageOS 16.0 for Xperia Z

ProtonCar

Member
Apr 12, 2014
26
6
0
The change is in my source, I think it will be in the next weekly. I need to try to pull it to the official repo.

For the moment, I only see that they have build it like me, but they don't develop.
Hey there, very nice. Keep on with your good work. I'm really looking forward to the next weekl :)
 
  • Like
Reactions: samhhmobil

esver

Member
Oct 17, 2008
32
45
0
Quimper
Hey there, very nice. Keep on with your good work. I'm really looking forward to the next weekl :)
My modification is accepted in the official repo \o/ : https://review.lineageos.org/c/LineageOS/android_device_sony_fusion3-common/+/272938
I can now go back to a build at 100% from official source.

As I am not an android developer but only a guy who read the official tutorial and fixed a trivial bug (as you can see in my previous posts), I think for now, I'm just going to let my server compile every week an updated version and put it on my google drive (everything is scripted)


https://drive.google.com/drive/folders/1RBZug5lwiOQydkCjEHXicXixyZzmTh2q
 

ProtonCar

Member
Apr 12, 2014
26
6
0
My modification is accepted in the official repo \o/ : https://review.lineageos.org/c/LineageOS/android_device_sony_fusion3-common/+/272938
I can now go back to a build at 100% from official source.

As I am not an android developer but only a guy who read the official tutorial and fixed a trivial bug (as you can see in my previous posts), I think for now, I'm just going to let my server compile every week an updated version and put it on my google drive (everything is scripted)


https://drive.google.com/drive/folders/1RBZug5lwiOQydkCjEHXicXixyZzmTh2q
Very nice :) You are doing an awesome job here!!
 

TrueFriend-cz

Senior Member
Nov 9, 2008
433
66
0
Esver... Do you can please patch for kernel to SELinux to permissive? (flash img for TWRP)

Kernel layer. Not on " (su -> setenforce 0)" layer, and this script layer...
https://github.com/evdenis/selinux_permissive/releases

...It is not solving problem.

I want for use app Linux Deploy and for it i must have SELinux Permissive on kernel layer.
Sources: https://github.com/meefik/linuxdeploy
Product: https://play.google.com/store/apps/d...uxdeploy&hl=cs

If i not have SELinux Permissive ... i have this problem...
https://github.com/meefik/linuxdeploy/issues/1182
and more (from other issues).

And... Bug 2... if Linux Deploy killed Android not run now... Booting, starting ROM (blue logo with circle) but no booted complete... rebooted in booting process and this is repeatedly... i must clean flash now for complete boot ok.
 

esver

Member
Oct 17, 2008
32
45
0
Quimper
Esver... Do you can please patch for kernel to SELinux to permissive? (flash img for TWRP)

Kernel layer. Not on " (su -> setenforce 0)" layer, and this script layer...
https://github.com/evdenis/selinux_permissive/releases

...It is not solving problem.

I want for use app Linux Deploy and for it i must have SELinux Permissive on kernel layer.
Sources: https://github.com/meefik/linuxdeploy
Product: https://play.google.com/store/apps/d...uxdeploy&hl=cs

If i not have SELinux Permissive ... i have this problem...
https://github.com/meefik/linuxdeploy/issues/1182
and more (from other issues).

And... Bug 2... if Linux Deploy killed Android not run now... Booting, starting ROM (blue logo with circle) but no booted complete... rebooted in booting process and this is repeatedly... i must clean flash now for complete boot ok.
I'm sorry but I don't know how to do this. I build only for me and provide it as is. I'm totally noob with SELinux.
But you can easily build your own with https://wiki.lineageos.org/devices/yuga/build and modify SELinux for your use case.
 
  • Like
Reactions: yuga1

yuga1

New member
Jan 13, 2018
3
3
0
Thanks esver and everyone in this topic for keeping this awesome device alive.
In case someone is interested in personal builds, here is a Docker container from MicroG guys. You can build clean Lineage images with this as well.
github.com/ lineageos4microg/ docker-lineage-cicd (cannot post links)
 

esver

Member
Oct 17, 2008
32
45
0
Quimper
Is it possible to activate OTA updates this way? Is there a specific reason why your builds can't be uploaded on the official https://download.lineageos.org/yuga download area? This would make many things easier.
The version on https://download.lineageos.org/yuga and OTA are build from LineageOS server and are signed by LineageOS. As long as there is no more official maintainers, there will be no official release.

Mine are private builds so UNOFFICIAL and not signed.

PS: I have pusshed another trivial correction on the compass : https://review.lineageos.org/c/LineageOS/android_device_sony_fusion3-common/+/273179
 

esver

Member
Oct 17, 2008
32
45
0
Quimper
Why you are not making your build official, as everything seems to work?
https://wiki.lineageos.org/submitting_device.html

Maintainer

Make sure you meet the following requirements:

Continued support - Ask yourself: “Do I want to provide continuous support?” - LineageOS is not a “submit it and forget it” home. You need to be willing to continue maintaining the device by fixing bugs, applying security updates and eventually improving performance.
I don't have the competence for this.
 

esver

Member
Oct 17, 2008
32
45
0
Quimper
A new patch resolve a reboot when using the new Firefox Preview
https://review.lineageos.org/c/LineageOS/android_kernel_sony_apq8064/+/273409
I really need to learn more about git to do better commit...
For this bug I've read /proc/last_kmsg and googled to understand and to find a correction on other kernel on LineageOS, so I've tryed to backport.

Fyi, my weekly builds will not be totally from LineageOS source, I try 1 patch that I have pushed upstream :
This resolve a problem with the compass
https://review.lineageos.org/c/LineageOS/android_device_sony_fusion3-common/+/273179

This is really a simple correction : when I lauch a compass application, I have on dmesg :
Code:
adb shell dmesg |grep denied
(...)
[   87.499877] type=1400 audit(1587126950.781:76): avc: denied { write } for pid=578 comm="HwBinder:281_1" name="interval" dev="sysfs" ino=[B]13781[/B] scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
(...)
It can be solved by adding
Code:
allow hal_sensors_default sysfs:file { open read write };
in the file device/sony/fusion3-common/sepolicy/hal_sensors_default.te but it is very ugly.
So to find the precise rule we can use the find command :
Code:
adb shell find /sys -xdev -inum 13781
/sys/devices/virtual/input/input3/interval
and now add
Code:
/sys/devices/virtual/input/input([2-3])+/interval
to sepolicy/file_contexts

I use input([2-3]) because I've found another rule with input([2-3])+/registers and this is only in the compass directory and input 2 is sim-detection, as there is no sim in Xperia Tablet Wi-Fi, this is probably why it is input([2-3]) and not only input3.
 
Last edited:
  • Like
Reactions: 0LDST4R

esver

Member
Oct 17, 2008
32
45
0
Quimper
A new thread for 15.1 and 16 LOS builds would be useful at this point :good:
Perhaps, but I think 15.1 is abandoned because I don't see the security update coming, I will stop the build as there is nothing new.
And for 16.0, I was only thinking it will be a one shot correction. But I'm gonna think about it if I need to modify another thing.
 

samhhmobil

Senior Member
May 25, 2017
317
171
53
Hamburg
Hi @esver

I made just a "semi-dirty" flash of your latest build from 20200422.

I had a yuga device running with official LOS 15.1, latest build from 20200221. + Gapps nano + magisk 18.1.

I did boot into TWRP 3.3.1, did format Cache an System partitions (but did leave Data partition untouched).

Then I flashed your LOS 16, after that Gapps nano 9.0, after that magisk 18.1 (again).

Reboot, wait a little bit, and — tadaaaaa — the system is running nearly as before. I just had to arrange the launcher new, and only a few apps were missing, but they could be reinstalled via Titanium Backup.

So the upgrade from a running LOS15.1 to a fully installed running LOS16 did need 30minutes.

THANKS, YOU'RE GREAT!

samhhmobil

(just one question: do you know how to enable faceunlock again, it's included in the gapps, but it's not shown in "smart lock". Thanks again!)
 

ProtonCar

Member
Apr 12, 2014
26
6
0
I cannot confirm that. For me, 5GHz WiFi works flawlessly, exactly as it should.

Thanks to esver,
samhhmobil
Hey samhhmobil,

thats interesting...I tried a lot in the past couple of days...switched my 5GHz WiFi channel, installed some Xposed Wifi Fix modules and Magisk Wifi Bonding module.
Now I'm not sure if Magisk might have caused the whole issue:

https://forum.xda-developers.com/apps/magisk/wifi-problems-caused-magisk-t3606988

I think I'll try and deactivate all of the Magisk Modules...and see how that works.
@samhhmobil: Do you have Magisk enabled?
 

Ben Ling

Recognized Themer
Nov 2, 2012
4,861
11,740
263
Kuala Lumpur
My modification is accepted in the official repo \o/ : https://review.lineageos.org/c/LineageOS/android_device_sony_fusion3-common/+/272938
I can now go back to a build at 100% from official source.

As I am not an android developer but only a guy who read the official tutorial and fixed a trivial bug (as you can see in my previous posts), I think for now, I'm just going to let my server compile every week an updated version and put it on my google drive (everything is scripted)


https://drive.google.com/drive/folders/1RBZug5lwiOQydkCjEHXicXixyZzmTh2q
Hi, thanks for the effort for maintaining such an amazing device. It's running great.

Just a question, is it possible to run Android 10 ? Hope you will look into it, thanks ;)
 
  • Like
Reactions: 0LDST4R

samhhmobil

Senior Member
May 25, 2017
317
171
53
Hamburg
Hey samhhmobil,

@samhhmobil: Do you have Magisk enabled?
Yes, I have. And 2.4GHz and 5GHz WiFi works without any trouble.

Xperia Z, C6603, LineageOS 16.0 unofficial (by esver), Opengapps nano, Magisk 20.3, module Busybox (by 0sm0sis). No other modules.

With old LineageOS.15.1 official it even did work with both 2.4GHz and 5GHz WiFi flawlessly.

samhhmobil
 
Last edited:

ISPG

Member
Feb 2, 2017
31
5
8
Madrid
Hi all, @esver, @samhhmovil
I have followed this thread during last weeks, and as LOS 15 for this device is definitively stopped, I have decided to go to LOS 16, mainly for the periodical updating of security patches, as esver commented in a past message.
Currently, I am in LOS 15, with Nightly Yuga, 2020-02-14 (this is the same that last ROM 2020-02-21 because any changes were loaded) and everything is OK in this version.
I would like to know some points before upgrading to LOS 16.
- Wi-Fi, according to samhhmovil, both frequencies work, 2,4 and 5 GHz, good in LOS 15, I have both frequencies working well. Has anybody had any problem with 5 GHz?
- Bluetooth, according to some messages, this option is functional now. Is this so? I use this tool for free hands on my car mainly.
- GPS. Is this device working fine and fast connecting? In last ROMs in LOS 15, some bugs for this tool were corrected, and now it is working fast and good. Is it the same in LOS 16?
- Root. I am root user, with Magisk 18.1 due to the problems with upper versions in this ROM (in this case, I appreciated a lot the help from @Flounderist). @samhhmovil, you installed 18.1, but after 20.3. Any problem with this upper version in LOS 16? I don´t want the same and previous troubles with 20.x Magisk in LOS 15.
- Busybox. Is strictly this module necessary? I do not have installed this module in LOS 15, and I think it would not be necessary to me. Please, confirm me this question.
- TWRP. As I have seen that TWRP 3.3.1 is ok for this upgrade, no problem, I have installed that version. However, is it necessary to format Cache and System Partition? In the first page of this thread, Flashing and updating/ LineageOS update / upgrade, is said that do not wipe anything unless you want to. Only flash ROM zip, GApps and optional zip as Magisk for root purposes for example. I know a clean installation is better, but after you have to install again all apps. I do not want to touch anything that after gives me problems. In addition, in a format System Partition, I have some doubts.
- A minor question. In LOS 16, is the advanced reboot also present? With three options?
- Battery drain. After these weeks with LOS 16, is the drain battery significant compared to LOS 15?
- And heating?
- Security patches. I guess that it will be the only change in future updates from esver. It is enough for this vintage device and me.
- And last question. If after upgrading, I am not satisfied with the new ROM, is it possible to go back to previous LOS 15, reinstalling only the ROM zip with a dirty or semi-dirty flash? I have never gone back, always forward.
Thanks in advance for your replies, and the efforts for maintaining this device still working :good:.
Regards.
 
  • Like
Reactions: 0LDST4R