[ROM][OFFICIAL][R] LineageOS 18.1 for Xiaomi Redmi Note 5 Pro [whyred]

Search This thread

ProudlyTM

Senior Member
Feb 28, 2013
316
172
Sofia

michaeltalmi

New member
Jul 20, 2020
1
0
cant sync google contacts

please help me. trying for hours but cant sync google contacts. tried everything
can u give me a tip to solve this?
 

tony3574

Member
Jan 31, 2016
38
10
Salzburg
New build, great. :good: Quick question: Do I need to wipe cache and dalvik manually or it is done automatically by the updater? Using Orange Fox recovery.
 

Yippee-ki-yay

Senior Member
Feb 28, 2017
220
119
Is it possible that this bar (below the keyboard) disappears when you are using gestures?

LwXxq7I.png


New build, great. :good: Quick question: Do I need to wipe cache and dalvik manually or it is done automatically by the updater? Using Orange Fox recovery.
I think it is automatic (I have done it this way)
 
  • Like
Reactions: tony3574

Jacsd

Senior Member
Aug 11, 2016
71
15
Tampere
Latest nightly works great, no problems. I noticed that vendor security patch is from November 2018, can it be updated? My other device, Redmi 7 that is also on official Lineage 17 has way more recent security patch.
 
  • Like
Reactions: fdd3

Aqq123

Senior Member
Aug 27, 2009
214
276
Google Nexus 4
Nexus 7
Excellent news to see the official LOS for this device again. Just installed it and it seems to be working great. Thank you for your work @SebaUbuntu!

Two minor things:

1. The image includes the app SoterService (com.tencent.soter.soterserver). It's a Tencent app specific to China, so I guess it must have ended up in the image by accident. To delete it:

rm -rf /system/app/SoterService/

2. The image also includes Qualcomm Location Service (com.qualcomm.location). There is little benefit from it for the user (it only works in very specific scenarios), it's essentially Qualcomm's (not very successful) attempt to jump into the game of collecting everybody's data all the time. Previously it used to be called IzatService and was also famous for crashing. This newest version was apparently added for some other LOS devices last year, afterwards there was a discussion about it, and then it was dropped from some of them. To get rid of it:

rm -rf /system/priv-app/com.qualcomm.location/

The way it's set up however completely breaks any other network location if Qualcomm's service is not present, which can be fixed by editing the overlay file /vendor/overlay/framework-res__auto_generated_rro_vendor.apk and changing:

(a) in res/values/bools.xml:
<bool name="config_enableNetworkLocationOverlay">falsetrue</bool>

(b) and in res/values/strings.xml:
<string name="config_networkLocationProviderPackageName">com.qualcomm.location@null</string>

This way we get to choose the network location provider for ourselves, which should arguably be the default setting. The modified overlay file for the 2020-07-20 build is attached below.
 

Attachments

  • framework-res__auto_generated_rro_vendor.apk
    21.2 KB · Views: 40

SiMka85

Member
Nov 28, 2012
7
0
Valga
bit.ly
I know this may be a stupid question but how do I backup all apps from my miui, install LineageOS and then restore all apps that I currently have on miui. It's pretty annoying to manually re-install all apps after..

Many thanks
 

doktorknow

Member
Jun 24, 2017
47
6
Hannover
Hallo, thank you for this ROM!!
I did a clean flash, but sometimes I can´t accept incoming calls. The phone rings, but there is no button "accept" to take the call.
Is there a solution for that behaviour?
Regards!
 

Aqq123

Senior Member
Aug 27, 2009
214
276
Google Nexus 4
Nexus 7
I don't want to install gapps so i guess no gcam for me?
It's just the Parrot camera that doesn't seem to work without GApps, others do. Tigr is a solid choice (7.2.010 v7): https://www.celsoazevedo.com/files/android/google-camera/dev-tigr/
There are frequent front camera freezes (using the global version - AI). [...] I thought it might be related to the camera libs included in the ROM..
There is a patch circulating, changing the config file /vendor/etc/camera/whyred_ov13855_sunny_cn_i_chromatix.xml to use different libraries: /vendor/lib/whyred_ov13855_ofilm_cn_ii_*.so instead of whyred_ov13855_sunny_cn_i_*.so (it also includes all the replacement libraries). Front camera freezes should be solved either by this or a kernel change, as you wrote yourself. Also it seems the Tigr camera mentioned above doesn't exhibit these issues.
 
  • Like
Reactions: tony3574

Weeny1992

Senior Member
Dec 18, 2017
177
41
I know this may be a stupid question but how do I backup all apps from my miui, install LineageOS and then restore all apps that I currently have on miui. It's pretty annoying to manually re-install all apps after..

Many thanks
Google backs up everything! Flash LineageOS, login your Google account, restore from cloud, done.
 

SiMka85

Member
Nov 28, 2012
7
0
Valga
bit.ly
Google backs up everything! Flash LineageOS, login your Google account, restore from cloud, done.

Yeah, but it's still pretty annoying as all user data is gone by that "restore". Found an app called "Migrate" what makes backup from user apps with data and later you can simply restore them by custom recovery. Pretty neat, I may add. Wish I have found that app earlier :p
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I try V11.0.2.0.PEICNXM, the China version of the firmware. GPS seems ok ;-)
    Downgrading the firmware seems to be the solution to the GPS fix problem.
    I hoped that it also corrects the bug of the muffled sound during catches videos with the rear camera with GCAM, but no ... Too bad!

    It's a long shot but did you ever fix awful sound on video with rear cam? I'm on Arrow but it's the same problem, tried many different gcams.
  • 75
    2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 11, which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

    Mantainers

    - srfarias
    - SebaUbuntu

    Installation instructions
    Here

    Device info
    Here

    Download
    Here

    Sources
    LineageOS
    Kernel sources

    How to report a bug
    - Please head over to LineageOS issues page in GitLab and create a report here
    18
    To clarify:
    It was not a device-side issue, nor a ROM side issue, it's actually a build server isssue
    If someone want an accurate explanation, ask me
    If you don't, just wait the next build
    16
    Updated thread for 18.1 🎉
    9
    Re: SoterService & Qualcomm Location

    1. SoterService

    SoterService [...] helps chinese users with secure payments (e.g. WeChat)
    So for starters it certainly isn't useful to anybody outside China. As for users in China (not Chinese users, there's a difference), official LOS isn't really suitable for them anyway without further patching (at least fallback DNS, SUPL, captive portal and connectivity test URLs should be changed, Chinese-specific fonts and IME also aren't included). In practice not many people there are going to install a custom ROM on a device like this and if they do, it's most likely going to be something locally-brewed like Moqu. Thus, "helping users in China" (not "Chinese," since Chinese people all over the world by and large don't and in fact usually can't use Weixin either unless they happen to be in China) is not a realistic consideration. And as you can see it's also not as if not having this preinstalled would be an extra burden to any user in China.

    This APK was not included in official LOS 15.1. I don't even recall it being a part of MIUI Global ROM for this device. Those lucky few who have the use for it (if anybody at all) will know how to install it, just like everybody else installs all kinds of other stuff on top of LOS. However, Lineage OS defines itself as a "free [as in 'libre'] and open-source operating system," and incorporating proprietary, third-party blobs of dubious benefit to the user is hardly in line with the project's objectives.

    https://www.github.com/Tencent/soter/wiki [link edited to remove Google Translate]
    Please read this and check why we need it.
    I read it, again (I first did when I was looking up this APK before even writing anything in this thread) and all the more I don't see any reason why it should be included. On the contrary, it's specific to China and only compatible with some of the devices launched in that market. Why would it be so indispensable that it just has to be part of the official LOS build for this device? (If you were referring to some specific statement in what's written there, feel free to quote it, and I will look at it again.)

    For the record, I never said it was spyware, just a leftover that serves no purpose. But device security can be compromised in a number ways, for example through an exploitable bug in the APK. We all know the whole vendor blob for this device is completely outdated. The less is kept of it in its original form, the better. If something can be safely removed without impact, this should be the default action to take.

    This blobs and apps are in stock ROMs, so, to not break something, we leave them in place.
    The whole point of having a custom ROM is to be able to critically pick and choose what should be in it from the usability perspective. Obviously this involves informed experimentation and something can occasionally break, so what? Reading something like this here makes me want to scroll back to the top of the page to check if this is still "XDA Developers."

    Vendor blobs are not sacred. Xiaomi's in particular are usually rather bad. For instance, previous vendor blobs for this device enabled Wi-Fi diagnostics by default, needlessly spamming the logs and draining battery. Should this have been kept too?

    2. Qualcomm Location

    Again, this is a system component
    What is that even supposed to mean? By definition it's a user-space application, so it's a "system component" as much as Candy Crush is in Windows.

    as you said, can help in specific scenarios
    I wanted to save everybody the boring details. In practice I doubt it makes any difference. It's supposed to work by querying the location from nearby Wi-Fi access points but only those with supported SoCs in them (so QCA-only I believe), and then again only those that were configured to provide it.

    The benefit is supposedly better location indoors, so it could be life-saving if you get lost in a shopping mall but 99.9% of the time when you need precise location is when you are outside and not near any particular Wi-Fi access points.

    The idea behind it is not unsound and it could indeed save battery life if GPS doesn't have to run in such situations (and if it really is indoors then it wouldn't work anyway) but the bigger point is that Google (and others) have already been doing the same for years and are better at it. So if you install Google Apps you are already getting all of this functionality anyway.

    You can't blame Qualcomm for trying even though they're late to the game but essentially it's about duplicating what already works just was "not invented here." Your location won't get any more precise than what Google already provides, all it accomplishes is Qualcomm being able to use your battery time and data allowance to seed their own database so as to compete with the incumbent.

    with MIUI you can't disable this stuff so that's an improvement
    Actually, here you can't disable it either: given how it's set up, there is no setting for it anywhere in the UI, it just runs all the time in the background. I think it'll also interfere if you wanted to use mock location.

    So even if Qualcomm location were to stay by default, there should be a toggle for it, or at the very least the framework overlay settings should be restored to their defaults because now it's effectively impossible to use any other location provider: it's either Qualcomm or nothing.

    Since LOS does not include a complete location solution (people will install Google Apps, MicroG, or perhaps something else), arguably it shouldn't force a partial one on the user either. To be brutally honest, I thought these settings were left like that by mistake, couldn't imagine anyone defending them but here we are. (Feel free to also check out the discussion I linked to in my previous post, and the commit where it was removed for beryllium - Xiaomi Pocophone F1.)

    ***

    I appreciate your effort in building this ROM and making it official. I understand the way you responded must be due to the impression that I attacked or criticized your work. This was not my intention.

    I'm not saying anybody should do anything, I'm just sharing what I did. Hopefully it can help others one way or another. And if I'm wrong about something I'll be the first to admit it, after all I'm here to learn.

    In the end it's your work and your decisions, you'll do as you wish. But there is a valid argument for the majority of the users and readers of this thread not to have these included in the official LOS build, which is why I wrote about it.

    Agree or disagree, either way it's really not necessary to make any of this personal.
    go completely offline and buy a Nokia 3310
    Don't be racist and don't apply stereotypes, not all chinese app spy on you