[ROM][10.0][UNOFFICIAL] LineageOS 17.1

peterpetrus

Member
Jun 10, 2019
7
0
0
Thank you for making this Rom.
Some newbe questions:
- What is system-as-root and where can I get it? I did not see a link in this thread. Or is it already included in TWRP 3.4.0.0?
- Can I upgrade from Lineage 16 (which is Android 9). Or how do I know if I have Oreo (Android 8) modem firmware as mentioned in OP?
 

GivFNZ

Senior Member
Jan 30, 2019
60
16
8
Campinas
Thank you for making this Rom.
Some newbe questions:
- What is system-as-root and where can I get it? I did not see a link in this thread. Or is it already included in TWRP 3.4.0.0?
- Can I upgrade from Lineage 16 (which is Android 9). Or how do I know if I have Oreo (Android 8) modem firmware as mentioned in OP?
1. System-as-root is already included in this build.
2. Yes, you can, but not recommended though.
 

iamnotacell

New member
Aug 16, 2020
1
0
0
Thanks everybody for this work. Nowadays I am using this g5s because an update (16 -> 17.1) broke the SIM card of the other phone. My question is: will I brake this one if I make this (16 -> 17.1) upgrade? I stuck at Lineage 16.0 from 28/03/2020.
 

Rush

Senior Member
Apr 19, 2019
754
128
53
neuss
Thanks everybody for this work. Nowadays I am using this g5s because an update (16 -> 17.1) broke the SIM card of the other phone. My question is: will I brake this one if I make this (16 -> 17.1) upgrade? I stuck at Lineage 16.0 from 28/03/2020.
SIM card is kinda weird right now on Android 10

Either:
It works, but camera video recording doesn't

Or:
Camera works. But the SIM card/RIL Doesnt
 
  • Like
Reactions: GivFNZ

Rush

Senior Member
Apr 19, 2019
754
128
53
neuss
Damn AsD is really making sure that it's stable

4 days of testing

Dedication. I like it

Either that or he forgot that he didn't build it with those RIL blobs and thought it was already released
 

AsD Monio

Member
Aug 12, 2015
48
102
33
Yes, I'm using a different camera app now, and video recording is working perfectly. My montana variant doesn't have compass, neither NFC, so unfortunately I can't test it.
My bad, the device features script I've got is a bit outdated, the compass stuff should be removed for you in the next build, as well as NFC.

Hey, after making clean flash, camera is working properly now... :D
Nevermind... For some reason, camera stops working properly when I set my montana's display to 720p. And I always use this resolution, because it's more comfortable for me.
Resolution or DPI / interface size in the settings? I never heard about changing the resolution itself on Android, I'm a bit surprised that's even possible. Regardless, apps tend to be built for a certain DPI and a resolution change would most likely change that. Android looks for resources for a different DPI that what the app has been compiled for, doesn't find them and we get the crash.

So now we know what's going on, but I'm not sure what we should do about it. I assume the built in interface scale in the settings does not satisfy you? I'm not sure if we can make the camera app build for all DPIs (and what about other system apps - they may cause problems too). We could probably switch to the Moto camera app from stock (it should support a few DPI ranges, that same app is used for many devices), I think Jarl is doing this on Pie with the latest trees.

Thank you for making this Rom.
Some newbe questions:
- What is system-as-root and where can I get it? I did not see a link in this thread. Or is it already included in TWRP 3.4.0.0?
To put it simply, Google moved some stuff from the boot image (boot.img) to the system image in Android 10, and the system image now serves a dual purpose. We needed to change some stuff in the code to make things work with that change. For you this just means you need a recovery which supports it, so yes, it is included.

- Can I upgrade from Lineage 16 (which is Android 9). Or how do I know if I have Oreo (Android 8) modem firmware as mentioned in OP?
The modem firmware is only required for the fingerprint scanner (that we know of, might be more because we haven't used Nougat firmware since like Oreo IIRC). It is also required on Pie so if it works for you now, it will on Q as well. Otherwise you can download the stock Oreo ROM for your device and region and flash just the modem in fastboot (the filename is NON-HLOS.bin). You can do that even after flashing this ROM.

Thanks everybody for this work. Nowadays I am using this g5s because an update (16 -> 17.1) broke the SIM card of the other phone. My question is: will I brake this one if I make this (16 -> 17.1) upgrade? I stuck at Lineage 16.0 from 28/03/2020.
RIL is a bit buggy, although it's really just the mobile data we're having trouble with. We won't know for sure if it's fixed until the next build has been tested for some time. In the meantime you can wait for an update to LineageOS 16 as the Google Play bug has just been fixed.

Damn AsD is really making sure that it's stable

4 days of testing

Dedication. I like it

Either that or he forgot that he didn't build it with those RIL blobs and thought it was already released
Meh, more like 2 since the last build. I think I'll try to get one up today, mobile data still seems to be working but I'm having no luck fixing the video recording. I have to wait hours sometimes before I get the bug. And it seems like it might not be the camera blobs but some media / codec related bug - the stock app freezes on a call to MediaRecorder.stop().
 

Rush

Senior Member
Apr 19, 2019
754
128
53
neuss
My bad, the device features script I've got is a bit outdated, the compass stuff should be removed for you in the next build, as well as NFC.



Resolution or DPI / interface size in the settings? I never heard about changing the resolution itself on Android, I'm a bit surprised that's even possible. Regardless, apps tend to be built for a certain DPI and a resolution change would most likely change that. Android looks for resources for a different DPI that what the app has been compiled for, doesn't find them and we get the crash.

So now we know what's going on, but I'm not sure what we should do about it. I assume the built in interface scale in the settings does not satisfy you? I'm not sure if we can make the camera app build for all DPIs (and what about other system apps - they may cause problems too). We could probably switch to the Moto camera app from stock (it should support a few DPI ranges, that same app is used for many devices), I think Jarl is doing this on Pie with the latest trees.



To put it simply, Google moved some stuff from the boot image (boot.img) to the system image in Android 10, and the system image now serves a dual purpose. We needed to change some stuff in the code to make things work with that change. For you this just means you need a recovery which supports it, so yes, it is included.


The modem firmware is only required for the fingerprint scanner (that we know of, might be more because we haven't used Nougat firmware since like Oreo IIRC). It is also required on Pie so if it works for you now, it will on Q as well. Otherwise you can download the stock Oreo ROM for your device and region and flash just the modem in fastboot (the filename is NON-HLOS.bin). You can do that even after flashing this ROM.



RIL is a bit buggy, although it's really just the mobile data we're having trouble with. We won't know for sure if it's fixed until the next build has been tested for some time. In the meantime you can wait for an update to LineageOS 16 as the Google Play bug has just been fixed.



Meh, more like 2 since the last build. I think I'll try to get one up today, mobile data still seems to be working but I'm having no luck fixing the video recording. I have to wait hours sometimes before I get the bug. And it seems like it might not be the camera blobs but some media / codec related bug - the stock app freezes on a call to MediaRecorder.stop().
1.
Excited for the Build ×10

2.
Use Lineage snap or (if everything goes bad) Moto Cam1, those usually work, jarl posted some more info eariler
 

AsD Monio

Member
Aug 12, 2015
48
102
33
Use Lineage snap or (if everything goes bad) Moto Cam1, those usually work, jarl posted some more info eariler
OpenCamera has the same bug, so unless the current camera app messes with the mediaserver and breaks it for every app then it's not app-specific, so I doubt Snap will help. But I guess I can try it.
 

GivFNZ

Senior Member
Jan 30, 2019
60
16
8
Campinas
My bad, the device features script I've got is a bit outdated, the compass stuff should be removed for you in the next build, as well as NFC.



Resolution or DPI / interface size in the settings? I never heard about changing the resolution itself on Android, I'm a bit surprised that's even possible. Regardless, apps tend to be built for a certain DPI and a resolution change would most likely change that. Android looks for resources for a different DPI that what the app has been compiled for, doesn't find them and we get the crash.

So now we know what's going on, but I'm not sure what we should do about it. I assume the built in interface scale in the settings does not satisfy you? I'm not sure if we can make the camera app build for all DPIs (and what about other system apps - they may cause problems too). We could probably switch to the Moto camera app from stock (it should support a few DPI ranges, that same app is used for many devices), I think Jarl is doing this on Pie with the latest trees.



To put it simply, Google moved some stuff from the boot image (boot.img) to the system image in Android 10, and the system image now serves a dual purpose. We needed to change some stuff in the code to make things work with that change. For you this just means you need a recovery which supports it, so yes, it is included.


The modem firmware is only required for the fingerprint scanner (that we know of, might be more because we haven't used Nougat firmware since like Oreo IIRC). It is also required on Pie so if it works for you now, it will on Q as well. Otherwise you can download the stock Oreo ROM for your device and region and flash just the modem in fastboot (the filename is NON-HLOS.bin). You can do that even after flashing this ROM.



RIL is a bit buggy, although it's really just the mobile data we're having trouble with. We won't know for sure if it's fixed until the next build has been tested for some time. In the meantime you can wait for an update to LineageOS 16 as the Google Play bug has just been fixed.



Meh, more like 2 since the last build. I think I'll try to get one up today, mobile data still seems to be working but I'm having no luck fixing the video recording. I have to wait hours sometimes before I get the bug. And it seems like it might not be the camera blobs but some media / codec related bug - the stock app freezes on a call to MediaRecorder.stop().
I'm using Footej camera to record videos now, and it works perfectly. Some apps like Telegram don't record videos properly, and Moto Camera isn't available in Playstore
 
  • Like
Reactions: AsD Monio

AsD Monio

Member
Aug 12, 2015
48
102
33
New build is up:
lineage-17.1-20200816-UNOFFICIAL-montana.zip

Changelog:
Code:
* Removed compass HAL
* Corrected a file path for NFC removal
* Compass permissions are now removed from XT1792 and XT1795 - might fix ro.hw.ecompass being incorrectly set
* Updated media configs from aljeter Pie
* Vendor blob updates:
** libril*, libqmi*, libmdm*, netmgrd: from deen Pie - should fix mobile data
** libmot_gpu_mapper.so: from aljeter Pie
** libchromatix_s5k3p3* and libmmcamera_s5k3p3.so: from deen Pie - fixes all kinds of camera glitches in low light conditions
** some remaining camera blobs from our stock Oreo
Video recording is still buggy - sometimes it works for hours and sometimes it breaks five minutes after booting. The camera app included is still Camera2, Snap is on my list of things to try out next.
 

GivFNZ

Senior Member
Jan 30, 2019
60
16
8
Campinas
New build is up:
lineage-17.1-20200816-UNOFFICIAL-montana.zip

Changelog:


Video recording is still buggy - sometimes it works for hours and sometimes it breaks five minutes after booting. The camera app included is still Camera2, Snap is on my list of things to try out next.
Yeah, video recording is still buggy for me, and RIL is still buggy for my friend Rush (Some Random) :/
 

The_Baztyx

Member
May 1, 2013
46
8
28
chillan
This rom is amazing! In the previous build the data failed me and it showed "no signal" in the last version they already work correctly!
-4g works
-3g works
-Volte not tested
-Camera works for me, I even tried to record and I had no failure.
(in the previous one when recording the app was closed)
 

Rush

Senior Member
Apr 19, 2019
754
128
53
neuss
Yeah, video recording is still buggy for me, and RIL is still buggy for my friend Rush (Some Random) :/
Yeah, I honestly don't know what's wrong

It can't be my firmware config right? It's 100% stock Oreo latest.

I'll try clean flashing later, and maybe even using JarlPe guins old A10Fixes Module, to see if anything changes
 

Dan Mornill

Senior Member
May 7, 2019
82
9
8
This rom is amazing! In the previous build the data failed me and it showed "no signal" in the last version they already work correctly!
-4g works
-3g works
-Volte not tested
-Camera works for me, I even tried to record and I had no failure.
(in the previous one when recording the app was closed)
Which version do you own ? Mine is Xt1794.
 

infinite4evr

Senior Member
Sep 20, 2016
223
28
28
New Delhi
infinite4evr.com
I can confirm as well

I was bugged with network and IMEI 0 on initial flash, after flashing multiple times and even a hard brick, Got the stock Oreo installed, After reinstalling this rom back, Everything is super clean

No bugs as of yet


-4g works
-3g works
-Volte Work
-Camera works for me, Video recording works as well

Although seems like there's frequent( sometimes) wifi connection loss, I cannot attribute this problem to rom coz I know my router sucks.


Great work OP, Thanks !



Update :

~ Open camera stucks when clicking the pic now, Same for video recorder

~ Stock camera is working but the image produced is full of green stink
 
Last edited:
  • Like
Reactions: AsD Monio

Rush

Senior Member
Apr 19, 2019
754
128
53
neuss
I can confirm as well

I was bugged with network and IMEI 0 on initial flash, after flashing multiple times and even a hard brick, Got the stock Oreo installed, After reinstalling this rom back, Everything is super clean

No bugs as of yet


-4g works
-3g works
-Volte Work
-Camera works for me, Video recording works as well

Although seems like there's frequent( sometimes) wifi connection loss, I cannot attribute this problem to rom coz I know my router sucks.


Great work OP, Thanks !



Update :

~ Open camera stucks when clicking the pic now, Same for video recorder

~ Stock camera is working but the image produced is full of green stink
That was a soft brick

A hard brick would be something almost Impossible to recover from