yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Somname:
I dug into the code and found the meaning of the performance profiles in power-8953.c:

static int profile_high_performance[] = {
SCHED_BOOST_ON_V3, 0x1,
ALL_CPUS_PWR_CLPS_DIS_V3, 0x1,
CPUS_ONLINE_MIN_BIG, 0x4,
MIN_FREQ_BIG_CORE_0, 0xFFF,
MIN_FREQ_LITTLE_CORE_0, 0xFFF,
GPU_MIN_PWRLVL_BOOST, 0x1,
SCHED_PREFER_IDLE_DIS_V3, 0x1,
SCHED_SMALL_TASK_DIS, 0x1,
SCHED_IDLE_NR_RUN_DIS, 0x1,
SCHED_IDLE_LOAD_DIS, 0x1,
};

static int profile_power_save[] = {
CPUS_ONLINE_MAX_LIMIT_BIG, 0x1,
MAX_FREQ_BIG_CORE_0, 0x3bf,
MAX_FREQ_LITTLE_CORE_0, 0x300,
};

static int profile_bias_power[] = {
MAX_FREQ_BIG_CORE_0, 0x4B0,
MAX_FREQ_LITTLE_CORE_0, 0x300,
};

static int profile_bias_performance[] = {
CPUS_ONLINE_MAX_LIMIT_BIG, 0x4,
MIN_FREQ_BIG_CORE_0, 0x540,
};

So we have 5 cores active in power save profile bcs the CPUS_ONLINE_MAX_LIMIT_BIG is set to 0x1 instead of 0x0.

Some suggestions:

Using Big.little instructions can be misleading to use in this SOC (altought the lib seems to handle it gracefully). Probably using setting the freq in just Core 0 should do the trick (if i'm not mistaken all cores have the same freq/voltage by design)

Check if setting the MIN and MAX core counts make the system activate/deactivate cores acording to demand

Using normal cpu freqs (rounded down) would be less misleading to interpret [652, 1040, 1400, 1690, 1960, 2020]

It would be interesting to change governor accordingly with the profiles, but I don't know the 'officially' supported ones (besides interactive and probably ondemand?) and that would probably mess with custom kernels that cut down governors. Also not sure if we have values to put in those arrays in order to change governor, maybe it leads to some structure rewrite

I don't see any tweaks about GPU, but in performance.h there is an enum that we can possibly use

I would also like to open some discussion about what would be best for the 'performance profiles' in this device. Ideally (for me) they would be like:

power save: 1 to 4 Cores active; Freqs min=652 max=1040; [governor=conservative]

bias power: 1 to 8 Cores active; Freqs min=652 max=1690; [governor=conservative]

bias performance: 1 to 8 Cores active; Freqs min=652 max=2020; [governor=interactive]

performance profile wasn't mentioned since I don't have enough knowledge to share an reasonably informed opinion.

About the PrivacyGuard issue, I'll take it to the apropriate thread.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] karamancho:
Do OTA updates work on encrypted devices?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] hayvan96:
Nope but it works manually. This won't change until OP TWRP is updated.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] falcon4wars:
In my experiance yes. You will have to enter the password when booting to twrp for applying the ota though.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] shinink:
latest build flashed and everything is excellent!!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Hezoyan:
Can anyone give me a decent Viper4Android? I already flash the one from the blog but I can't install the drivers
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] :
I got error: recv on uevent while flashing. But installation was successful
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] noowb00:
I'm using the one from Magisk Manager, download section. Seems to be working I think.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] PrincE..:
los has already audio_fx why you need to flash viper (it will destroy your speaker)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] crazo7924:
Try the magisk module :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] :
doesnt destroy the speaker and you can use v4a along with audioFX (you can only use either one of them at a time though).
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anonymity_antim:
LOS version 15.1-20180814

Magisk Installed Version: v16.7

SafetyNet Check Status: The response is invalid???
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Boomshiva:
Wait for topjohnhu to push update for magisk .

Its google issues not los problem so just wait
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] yr1009:
I'm on the latest Los. Will wait for magisk update.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] sanju14:
yes.. it works for me.. update your twrp to official 3.2.3-0.

https://dl.twrp.me/mido/
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] durkaganesh:
is everyone getting "the response is invalid" in magisk safetynet test? i thought its just me as i am using electrablue kernel. does flashing kernel affect the safetynet?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] pxrave:
have the official one treble support?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] hayvan96:
No.

And last week, it didn't accept my valid pattern to decrypt data. Best version is OP versio even if you have to decrypt data manually to apply an OTA update
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mcflyle:
You don't need to decrypt manually after reboot?

I can download the image with ota uptader app, then after reboot i need to decrypt data and install it within twrp. (OP Version)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] sanju14:
Actually twrp official 3.2.3-0 works only with ota updates. u must update los via inbuilt updater for it to work. It doesn't decrypt data as it just installs the update, even though the phone is encrypted. If you want to install some other zip, just mount everything and proceed. That way you can decrypt .

And you don't have to enter password on twrp to install ota like before, as it never mounts.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] michaelbelachev:
Add please ability to customize lockscreen shortcuts.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] eliezerjk90:
Anyone find a workaround to encrypt the phone? Read the comments about this problem since weeks ago. Is any fix coming?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] krishna.rag:
Deleted post

Sorry guys. ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] krishna.rag:
[/COLOR]

Are you in the same boat?

I have tried each and everything to solve but didn't think it would have been a server error.

Thanks buddy.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mcflyle:
Just read a very little bit up.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Boomshiva:
Any user who is using Magisk right now is .
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] eliezerjk90:
I guess you misunderstood my question. It's not about the decryption problem with twrp or OTA update, but rather that the encryption is not working. My phone is unencrypted and I want to encrypt it. However, when you go to security settings and choose encrypt phone, the phone would be rebooted and stay unencrypted.

One alternative is to use older rom to encrypt and then reinstall LOS 15.1, but it is a bit complicated. I want to know whether anyone has found a workaround
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mcflyle:
Oh sorry, don't know this problem. I encrypted my phone without trouble before 1-2 weeks. Off course with LOS 15.1 (last july weekly was installed i think).
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] beoyeubao:
Just did in Last build. No problem ^^
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Dracolucassos:
Hello, got a 2 question about this rom:

1st any chance to give sound/only vibration tile into quick tiles ? and 2nd do this rom support night mode (blue light filter?)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] stunned:
It is not server error. It is API change from Google and devs just haven't been paying attention before it was too late and Google shut down the old method
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] eliezerjk90:
how did you do that? do you clean flash? which format do you have for partitions (ext4 or f2fs)? strangely I couldn't make it work. I've tried to wipe, format, use older version without any success
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] KÎÑG™00093:
Equilizer not working for online music apps on latest build .

The issue was present on previous weekly too. In 31/07/2018 build it is working fine.

Please try to fix this issue in future builds
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] beoyeubao:
Just flash los 15.1 from miui eu. Not did something special. Ext4. I even did not format data. Just wipe
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] hardik0491:
I getting this error in twrp while installing latest nightly

I am updating using the builtin updater app
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] eliezerjk90:
I see. I guess I know what the problem. I will try to revert to miui first and then come back to los.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] KÎÑG™00093:
Bug
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Dracolucassos:
Hi, thanks for replay. I know what is do not disturb, sadly dnd mode do nit work as i want. I need only vibratiin setup. So as this rom do not offer any toggle to vibration only/sound it's a bit less usefull for me.

About screeb. This night/day do nit work for me. I tried it and absolutly nothing changed.

Even if. Thank tou for replay.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] LonelyDay:
Working fine here, dirty-flash metod
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] suaveUt:
Yeah, it's so frustrating. In previous builds, after attending calls or fast forward youtube videos, the Audio Fx app stops working. Then i have to reboot the phone to get it working again. Does anyone has any better equalizer option. I love Lineage but this is the only bug i've found in the lineage ecosystem. it was present in Lineage os 14.1 and is still present in lineage 15.1. Please provide a fix for this. Thank you!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Boomshiva:
You can try viperfx as an alternative .

Btw do you report this “ frustrating ” issue of yours to lineage team ?

If no then I strictly advise you to go to Jira and report the same with appropriate logs attached , else don't even think of getting this issue resolved

I am providing the link below of jira for convenience.

lineage os Jira
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] vedant15188:
Whenever I do a reboot of my Lineage OS 15.1, my device gets encrypted. I tried entering my PIN code for the device but it doesn't decrypt the data at all. Is there any fix to this?

I'm using TWRP. 3.2.1 with treble support. Though I'm sure it can't be a recovery problem.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anur@g:
Yeah AudioFX has always been causing trouble over lineage. I use VLC and following is the screenshot. If I choose the first option, AudioFX will work. And if I choose the second option, AudioFX will not work. VLC allows you to choose audio output but not all apps do the same. Dirty flashing works sometimes but not always.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mcflyle:
Is it the "special" TWRP from OP (first Post of this thread)?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anur@g:
1) Before migrating to custom ROMs formatting (not wipe) data partition is a must.

2) Always use recovery provided in the OP

Following above two lines you won't face encryption problem ever.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anisoms:
This rom very smooth. Face unlock working like charm now. It may be help for those who want face unlock in there device :

When you flash Gapps(micro) please notice that both face detection and face unlock entry executed properly , if not , then flash it again with same zip file.

If able to get both entries, your face unlock will work.

---------- Post added at 05:10 PM ---------- Previous post was at 05:08 PM ----------

I just want three finger gesture for screen shot, only this. Can anyone guide me to get this facility on my mido with latest linage release.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Dracolucassos:
Hello guts, other question

I use work wireless network and i need to login (got message login to wifi network)

however when I click on this message and login page goes to screen, when it loads, it just shut down, and I can't login. There is any chance to fix it somehow? I check lots roms, all 8.1 tends to have such issue
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] vedant15188:
It's the official TWRP from the website. Not from this post.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mcflyle:
Please try this first, you can flash it inside your twrp.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anur@g:
When I used Lineage I didn't faced such issue. Since last 4 days I'm on android P by same Dev abhishek987. No such issue there too.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] noowb00:
It could be the way that network handles signup with Android. The network around my area also requires sign in (a notification would pop up for sign in) to use the internet and it has hasn't been an issue with any recent build of Lineage 15.1.

A fix would be for you to try opening the sign in page from Chrome. Sometimes just going to 'Google.com' will redirect you to the sign in page
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] dhananjaysonber:
Hello sir iam on los 14.1 and I have magisk installed and I want 2 update to latest los Oreo is there any bugs in latest...I don't want any encryption issue and if I flash Oreo built I have 2 again flash magisk or not plz tell steps to flash..... (2)question why there is encryption problem in ROM and how I can no that my device is safe from encryption and what is the thing we do that cause encryption problem in ROM plz tell me and why in twrp becomes internal 0mb As above que how 2 solve problem tell.......
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anur@g:
1) If you're on Nougat why shouldn't you switch to android P by same developer?

2) Did you ever formatted (not wipe) data partition before/after switching to custom ROMs?

3) Always use recovery provided in the OP you'll be safe. TWRP Exclusive is better for Oreo ROMs (my own experience, you must stick to the one provided in the OP).

4)Before upgrading your android version to either O or P you'll have to do a factory reset from recovery.

5) After factory reset you'll be flashing your ROM and then yes you'll need to flash magisk again and that too which supports treble. Not the official magisk.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Demodroid:
1) Because that is not LineageOS, it is GSI, and isn't 100% compatible yet (hardware encryption being a big issue if you BYOD to work).

5) Wrong, you can use official Magisk beta 16.7 on a clean flashed Official LOS 15.1, https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589/

Plus using official Magisk is a far less hacky way of installing Magisk, no need to be dependent on other ROM authors creating a patched version of Magisk.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Boomshiva:
Here i would like to correct you.

MAGISK 16.7 which is OFFICIAL and is in its BETA stage is compatible with treble roms , gsi , and even PIE .

Just in case that guy needs link for the above-mentioned MAGISK i am including the link below.

MAGISK 16.7

Edit : seems demodroid is Ninja xD

Also i disagree with what demidroid said about GSI thing. Its not a GSI but a full rom built from aosp sources which is provided by abhisekh.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] TXUTXI72:
Hi to everyone! First of all, I want to thank the devs. of this rom for their fantastic work... I am testing the rom since yesterday. I have some questions:

1) When I want to choose a sound as ringtone or notification sound, I go to the list, and many of the sounds are repeated... Is it only me, or does it happen to everyone? I made absolute clean flash (I wiped even internal storage), and I use Pico Gapps.

2) Is it possible to remove that (in my opinion) horrible orange colour in the status bar when you're using extreme battery saving mode?

3) After flashing the rom, I have let the battery drain 'til the phone turned off, then pluged it and made a full charge (100%). At the beginning of the charging process, I noticed that for a second the battery icon of Miui showed up, indicating 50% instead of 0%. As I say, that was for a second...Afterwards a new battery icon showed up, slightly smaller than that of Miui, this time indicating 0%. The charging process went ok. Does the Miui Battery icon indicating 50% appear everytime the charging process begins being the phone off?

Thanks for your attention.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anur@g:
1) I'm not referring to GSI. I'm referring to pure AOSP ROM.

5) If you prove me wrong I'll work for you forever. I'm referring to "Treble Supported Magisk" and that's a universal truth for a treble ROM.

For a Nougat user who is far behind in time one can't expect that he would be able to differentiate between the one that supports treble and the one which doesn't. That's why I said not the official to keep you safe.

[MENTION=7086483]Boomshiva[/MENTION] am I right? :p
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] eliezerjk90:
Actually you're wrong and he's right... OFFICIAL magisk BETA 16.7 does support treble and is working flawlessly on this ROM...

So... You have to work for him forever I guess....
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anur@g:
Ohh Sorry Shaktiman had you been enough intelligent to read this line

For a Nougat user who is far behind in time one can't expect that he would be able to differentiate between the one that supports treble and the one which doesn't. That's why I said not the official to keep you safe.

And BTW I it isn't difficult to find those dumbass over XDA who speak before reading. My post hasn't been edited and even a kid can tell that It's no where mentioned in the post that official magisk doesn't support treble.

---------- Post added at 07:09 PM ---------- Previous post was at 06:40 PM ----------

Sorry guys I should not have been that harsh
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] eliezerjk90:
You said "to keep YOU safe" so the impression is that you were mocking demodroid. So the implied meaning is different because I got an impression that you were disagreeing with demodroid about whether the official magisk support treble. I just realised that what you really mean is the user who asked (which is not demodroid). I guess you mean "to keep HIM safe" right?

Sorry for my misunderstanding...
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Popke523:
Magisk vcustom crashes on latest los build when asking for root. Should i flash magisk 16.7? i must remove old magisk or it will be replaced?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anur@g:
My bad. My poor English lol :laugh:

---------- Post added at 08:35 PM ---------- Previous post was at 08:33 PM ----------

Yes you should. No need to remove. It'll be updated.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] uttam_ydv:
Do this rom supports gcam without root, i mean camera2api is enabled or disabled by default in this rom?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] CookieMUNSTA:
gcam works without root
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Shawnzy69:
I'm having this weird behavior in the latest build . Whenever I start typing in my keyboard it will type like this gDfEagjewgh. Also my brightness gets low automatically . System UI also stops. Yesterday only I dirty flashed this ROM . I aslo checked for any virus but nothing found.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] aron11195:
wipe cache and dalvik/art cache, reflash latest build or both
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] shivamic8:
I want to flash this rom , getting into custom Roms after long time , please tell if any bugs present and stability compared to miui 9,

I will be very thankful
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] KÎÑG™00093:
Those who r facing equalizer problem in latest build

Just replace the audiofx.apk from /system/privapp/AudioFX

to the one

https://xdaforums.com/attachment.php?attachmentid=4440466&d=1520455450

And reboot after doing so .

(Don't forgot to rename the attached apk to AudioFX.apk

and update the permissions to rw-r-r.)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] NE0HP:
Always back up Vendor sepatately of the ROM and followed by backing up of System, Data and boot of the same rom. And before restoring rom from back up, wipe everything except internal storage of existing running rom, restore vendor first followed by the restoring of System, data and boot.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] KÎÑG™00093:
Always backup your data only

And if you want to restore

Just install that rom ,gapps ,magisk and restore data.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Loukanov:
Long time fan of LOS/CyanogenMod.

Used LOS 14.1 on Mido, and 15.1 since got official.

Recently people I call or receive calls complain the audio is not good enough. They hear me badly.

Not sure when this started because I hear my correspondent very clearly.

Tried changing 3g/LTE mode, cleaned the mic hole - still the same. I doubt this is software (ROM) issue and found many complains about similar on Redmi Note 4 devices. Some people said the mic quality was better on MIUI, so just wondering if there is a patch for that on LOS.

Or maybe this is modem firmware issue?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] NE0HP:
During non-treble ROM days, restoring from back up was working as it should be but when changing ROM(treble) if you don't wipe vendors and try to restore it just like earlier non-treble ROM(System, Data & Boot) seems doesn't work anymore at least with me. I have tried including vendor alongwith System, Data and boot while backing up ROM when I tried to restoring the ROM it seems doesn't work. So since then I always back up vendor separately and restoring it first followed by restoring system, data and boot and it works for me. I agree to your point of making multiple back up unnecessary but at this point I just suggested you what worked for me.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] noowb00:
In my case, the quickest method I've found to boot LOS after coming from AOSP Pie is wiping the system & data, then flash LOS installer zip. I let it boot one time, wipe system & data again and restore 'data' backup only. I find it much better than having to keep multiple backups.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] h@l9000:
Which firmware are you using. I am on latest global stable, I haven't faced any issues
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] PepperShoe:
Help! How can I turn On Call Waiting on this ROM?

Couldn't find it. :confused:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] baskar14:
My ringtone often goes silent.. Even if it not silent or DND mode. When I reboot the phone. My phone rings. Anyone facing same issue. Please let me know.

Thanks in advance.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] TXUTXI72:
Can anyone tell me what's the difference between official and unofficial build, please? Thanks.