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

Search This thread

Shampinger

Member
Jun 24, 2018
27
16
3
few questions here.

are you using custom kernel ?

did you restrict an app's mobile data ?

did you turn on and off mobile data ?

would you mind telling what steps exactly did you take to do try to reproduce the issue?

thanks for reply

I'm not using a custom kernel.
What I did was toggle all Mobile data & Wi-Fi settings for a couple of apps on and off multiple times. Everything seems to work exactly as it should.
 

sak96

Senior Member
Dec 28, 2016
260
52
38
I'm not using a custom kernel.
What I did was toggle all Mobile data & Wi-Fi settings for a couple of apps on and off multiple times. Everything seems to work exactly as it should.
Sorry to trouble u again.

you turned off mobile data for an app (app settings>app >mobile data and wifi> turn OFF mobile data).

Then did you turn off and on the mobile data
(Network and internet >mobile network > mobile data (switch off and then on)).

This cause a reboot in my case, some time requires me to do the second step twice. The `adb logcat` shows similar log to that of the issue I linked. I am really confused why this is occurring only to me.
 

Shampinger

Member
Jun 24, 2018
27
16
3
Sorry to trouble u again.

you turned off mobile data for an app (app settings>app >mobile data and wifi> turn OFF mobile data).

Then did you turn off and on the mobile data
(Network and internet >mobile network > mobile data (switch off and then on)).

This cause a reboot in my case, some time requires me to do the second step twice. The `adb logcat` shows similar log to that of the issue I linked. I am really confused why this is occurring only to me.
To be clear, there is no option named "turn off mobile data". There is however an option called "Allow network access", another one called "Cellular data" and another one called "Background data" among others. I've toggled all of these options off and on multiple times and also tried different combinations (e.g. "Allow network access" on with "Cellular data" on and "Background data" off, etc.).

I didn't get any reboots. You might wanna update your firmware as this might be caused by your phone's modem. I'm running the latest firmware from this thread/post.
 

sak96

Senior Member
Dec 28, 2016
260
52
38
Thanks.

Below are two screens which I was taking about. Appdata.jpg is the place where u restrict the apps data.

Once this is done you turn off and on your cellular data as shown in "mobile data.jpg".

The thread post you mentioned requires you to flash miui to upgrade modem is that correct?
 

Attachments

  • appdata.jpg
    appdata.jpg
    281.8 KB · Views: 84
  • mobile data.jpg
    mobile data.jpg
    96.8 KB · Views: 82

djrova

New member
Feb 28, 2013
2
0
21
hello, anyone have problems with Android Auto? Next week I change the car radio and I wanted to know if I have to do something beforehand
 

burzaa4

Member
Oct 9, 2019
36
1
8
Why is magisk unable to uninstall the system app? Supposedly there is root but it doesn't really work, eg you can't edit xml file in shared_prefs folder because backspace doesn't work. I have to edit xml files on my computer and transfer them to / data / data ... Do I miss any module in the magisk?
 

Shampinger

Member
Jun 24, 2018
27
16
3
Thanks.

Below are two screens which I was taking about. Appdata.jpg is the place where u restrict the apps data.

Once this is done you turn off and on your cellular data as shown in "mobile data.jpg".

The thread post you mentioned requires you to flash miui to upgrade modem is that correct?
This is interesting. For me the option is called Cellular data, not mobile data. Should be the same thing but the fact that it's named differently might have something to do with it. Screenshot_20210113-231032_Settings.png
 

sak96

Senior Member
Dec 28, 2016
260
52
38
This is interesting. For me the option is called Cellular data, not mobile data. Should be the same thing but the fact that it's named differently might have something to do with it. View attachment 5186399
Yeah this is fine.
Did you then turn on cellular or mobile data ? That is when I face the reboot.

Note: I also detected Wi-Fi should be off for already 1 minute prior, only then this issue occurs.
 

Shampinger

Member
Jun 24, 2018
27
16
3
Yeah this is fine.
Did you then turn on cellular or mobile data ? That is when I face the reboot.

Note: I also detected Wi-Fi should be off for already 1 minute prior, only then this issue occurs.
Okay so if I disable Wi-Fi data beforehand and then toggle Cellular data off and on the settings app crashes but the phone doesn't reboot. Also, when going back into the settings the toggle that triggered the crash (Cellular data off --> on) has been applied.
 

sak96

Senior Member
Dec 28, 2016
260
52
38
Okay so if I disable Wi-Fi data beforehand and then toggle Cellular data off and on the settings app crashes but the phone doesn't reboot. Also, when going back into the settings the toggle that triggered the crash (Cellular data off --> on) has been applied.
I think for now I will just avoid using app based network restriction for now. let me try to bit deeper
 
Jun 9, 2020
2
0
1
While I absolutely love this ROM, I'm encountering a few issues that are seriously getting on my nerves. Any ideas on how to fix them would be much appreciated.

Among the most annoying are:

1) The proximity sensor doesn't work, often causing the screen to turn on and off during calls and me pressing a bunch of buttons.

2) The ambient light sensor sometimes goes crazy, cranks brightness up and down, and doesn't stop until I set it manually

3) Having a system-wide equalizer is great and I can't understand why most phones don't have such a feature by default. The problem is that AudioFX regularly stops working. Sometimes it's triggered by rewinding or fast-forwarding a song or a video, sometimes by switching tracks, and sometimes it just doesn't work in the first place. In some cases, this can be fixed by repeating the action that caused it, turning the equalizer off and on, or sometimes by unplugging the audio cable. However, none of that helps in half the cases and it won't work until I've restarted the phone.
 

drnightshadow

Senior Member
Dec 4, 2008
708
336
93
While I absolutely love this ROM, I'm encountering a few issues that are seriously getting on my nerves. Any ideas on how to fix them would be much appreciated.

Among the most annoying are:

1) The proximity sensor doesn't work, often causing the screen to turn on and off during calls and me pressing a bunch of buttons.

2) The ambient light sensor sometimes goes crazy, cranks brightness up and down, and doesn't stop until I set it manually

3) Having a system-wide equalizer is great and I can't understand why most phones don't have such a feature by default. The problem is that AudioFX regularly stops working. Sometimes it's triggered by rewinding or fast-forwarding a song or a video, sometimes by switching tracks, and sometimes it just doesn't work in the first place. In some cases, this can be fixed by repeating the action that caused it, turning the equalizer off and on, or sometimes by unplugging the audio cable. However, none of that helps in half the cases and it won't work until I've restarted the phone.
  1. It's working normaly
  2. it's sooo slow so don't crackle at all, usualy takes 3-5sec to adjust
  3. known bug, so don't use it
So it must be your phone config wrong or your firmware or your persist patition is corrupted. Or mybe you flashed LOS ROM the wrong way...
Did you clean install ROM, wiped system, data and storage?
 
Last edited:

Top Liked Posts

  • 12
    Updated thread for 18.1 🎉
    2
    Flashed the 18.1 update over 17.1 (dirty flash). Went smooth. Thanks devs and maintainers! Guys if dirty flashing the 18.1 update then remember to flash Android 11 GApps also just after you flash the ROM's zip.
    1
    Hello. which gapps have you used? opengapps beta, or nikgapps?
    MindTheGapps-11.0.0-arm64-20210412_124247.zip
  • 12
    Updated thread for 18.1 🎉
    7
    are we getting lineageos 18.1?
    Good news. Whyred has been promoted to 18.1 yesterday :)
    2
    Along those lines, is anyone going to create new thread for the Official 18.1?
    2
    Flashed the 18.1 update over 17.1 (dirty flash). Went smooth. Thanks devs and maintainers! Guys if dirty flashing the 18.1 update then remember to flash Android 11 GApps also just after you flash the ROM's zip.
  • 63
    2okPze5.png

    Code:
    /*
    * 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.
    */

    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
    - If you want to flash this from unofficial LineageOS or any other ROM, you must do a clean flash

    Device info
    - Here

    Download
    - Official weekly builds
    - GApps aren't included

    Sources
    - Xiaomi SDM660 common device tree
    - Xiaomi Redmi Note 5 Pro device tree
    - Xiaomi SDM660 kernel sources
    - Xiaomi vendor blobs

    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
    12
    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.
    you are scared
    go completely offline and buy a Nokia 3310
    Don't be racist and don't apply stereotypes, not all chinese app spy on you
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone