yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] MikiGry:
[MENTION=4652746]Fusionalex[/MENTION]

Actually it doesn't have to. LTE-A has never been working on Redmi devices as nicely as in Mi series. In case of whyred it is working, but in a very odd way. As [MENTION=4066277]otonieru[/MENTION] said, LTE CA is working in B40 + B40 and B5 + B40 combos only
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Gonzo1169:
Ok, so I tried to change lenguage and it didn't do anything for me. I got the EncryptionProblem.txt file but since I'm not a programer I`m unable to find where is the problem. I really don't want to go trough the pain of a clean flash again, so I'll stay unencrypted. Here is the file though, I don't know if its usefull. Thank you for the help!

https://drive.google.com/open?id=1iucG1ej-f9_mA3LeQt8H6_xw-hwYIJqq
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] ManuelLima1994:
I do not know if I would define it as a bug, because before the function had no effect but now after a normal restart, the option becomes Always activated, and the subject goes to dark mode, as it should, but it is not the bug but that activates the option of always activated without intervention of the user, something that did not happen before
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] ManuelLima1994:
This is the correct capture
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] saxija:
Video recording problem

Today I have installed	PixelExperience_whyred-9.0-20181109-0036-OFFICIAL.zip and I have problem with video recording, rom is excellent and short video is working but regular video just blink like it started but after that resets buttons like I did not tap record button, I tried with resolution changing, unticking video stabilization but nothing helped, also timelapse and slow motion are not working, after this I couldn't take a picture, got same behavior, restarting camera fixes this but video not. I hope that somebody now how to fix this, phone is not rooted (3/32 version).

Cheers

.

This morning after starting short video first regular recording started just fine, do not now what happened but it works
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] yahiablazer:
Big thanks to you ????

---------- Post added at 10:43 PM ---------- Previous post was at 10:41 PM ----------

Nice
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Curiousrge:
Where can I get a good one please?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] ryuzakiLL:
didnt flash camera2api.zip just the latest update and the magisk camera patch.

---------- Post added at 01:28 AM ---------- Previous post was at 01:26 AM ----------

If you can see in my posted screenshot the flashlight icon in my notification bar is disabled.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] von_block:
First uninstall any camera app installed using Magisk.

Second what phone do you have, Global, Chinese or Indian,
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] adoqawa:
Hi, Just want to report a small bug,

notification toast while changing mode from silent-normal-vibrate after 3 days of using this rom was dissapear.

confirmed in all builds since the rom was launched.

how to repro: fresh install the rom, use at least 3/days, change mode from silent to normal every afternoon, notice that after 3/4 days notificatiom toast was dissapear,

the only way fo fix it is only reinstall the rom, or factory reset from setting.

maybe i can provide log on next monday, im in holiday now.

fixed or not it depands on dev,

thanks btw for the great rom i've try, simple and smooth
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Fusionalex:
That's interesting. Do you know if there is any way to enable LTE-A for the other bands? I need 1+3
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] bertsmelik:
I have a RN3 (Kenzo) unencrypted and there Magisk reinstalls automatically after flashing PE for Kenzo. Also, after flashing LOS 15 on this same Whyred, Magisk was reinstalled automatically. It's no big deal, one just needs to be aware of this and do it manually.

And no, I do not have previous patches. Seems that combining the 2 patches makes Gcam 5 fly!
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] VincentJoshuaET:
Running Pixel Experience encrypted, Magisk reinstalls every update automatically.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] tungthanh500:
I'm not sure if you guy gave my problem. I wake up in the morning, press power to see time, it's 4 AM. When i unlock and see clock on homescreen, it is 7 AM. Same problem doesn't show up later, usually after night. Only recent version has this problem
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] srithan:
Now playing feature

[MENTION=6519039]jhenrique09[/MENTION]

Now playing feature is taking a long time to process

I ama getting the song info after 5 min of listening to the song

Can it be optimised to get faster outputs
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Pignata#man:
Same here, it's my second update through OTA and after the ROM installation process in TWRP, there is a script or something else that reinstalls magisk automatically.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] htchd2sucks:
I'm not programer myself, but I think your log contains very important information on your encryption issue:

[ 11-10 20:38:59.595 633:12405 E/Cryptfs ]

Bad magic for real block device /dev/block/bootdevice/by-name/userdata

[ 11-10 20:38:59.596 633:12405 E/Cryptfs ]

Orig filesystem overlaps crypto footer region. Cannot encrypt in place.

That seems to occurs just after reboot, which I interpret as it's between "killing processes" and starting others:

[ 11-10 20:38:59.595 633:12405 W/vold ]

Sending Killed to 5762

...

[ 11-10 20:39:00.529 12461:12461 I/wificond ]

wificond is starting up...

Why ? It seems related to the formatting of the "userdata" filesystem. I learned the hard way that it's the name of the /data partition (when I did a fastboot format userdata).

What to do?

We can look around that /data by collecting information:

1. Do in adb shell, mount | grep 'data' , and copy the result. We want only the line like this:

/dev/block/dm-0 on /data type ext4 (rw,lazytime,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,errors=panic,data=ordered)

(that should be the first line, we don't need the rest)

Note: We might discover things like a different file system than ext4 with specific requirements like " f2fs filesystem have to be 32KB smaller than partition"

Also collect:

adb shell df -kh /data

Filesystem Size Used Avail Use% Mounted on

/dev/block/dm-0 50G 2.3G 48G 5% /sbin/.core/mirror/bin

Also:

adb.exe shell cat /proc/partitions

And look at the right line:

252 0 53862367 dm-0

2. Reboot your device in fastboot and type:

fastboot getvar partition-size:userdata

My output: partition-size:userdata: 0xCD77F7E00

3. A simple theory /test, are you rooted using magisk? If so, it would be great to try encryption without magisk installed.

4. Depending on the root cause, we might have to resize, or to format properly that partition. Maybe it used to be formatted by MIUI and it's required to format it using TWRP to have the expected format for the cryptfs process.

5. Maybe it's possible to backup /data, format it and restore. I don't know if the backup will put back the data or the entire thing including the filesystem, so maybe it's stupid.

Maybe it's possible to compress the /data folder, copy the zip externally, format, and restore that zip and extract the files later?

6. My suggestion would be to to format /data using the latest TWRP (or at least twrp-3.2.3-0-whyred, as I used that one and it worked).

It's also possible to shrink the filesystem using resize2fs, to have a bit more space for the encryption things:

To allow encrypt-in-place it should leave at least 16KB unallocated

I think we are very close to find why your encryption is not working and to workaround it! Possible root cause might be some formatting not suitable for that cryptfs current version.

---------- Post added at 08:09 AM ---------- Previous post was at 07:52 AM ----------

It is, but mine is enabled. I have a clean flashed setup.

Some user said maybe you flash third party which disabled it.

[MENTION=8207085]Jeremy-X[/MENTION] Hi Jeremy, that might help your problem too!
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] witchfindergeneral329:
Yes PUBG lags like hell on this ROM. But as someone pointed out, it might be due to the kernel this ROM is using, in the official derp kernel thread this problem has been pointed out by other people as well.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] otonieru:
i think this is due to the nature of biggest market targeted by xiaomi for whyred,

China has been using B40 since years ago, so no issue in that homeside of their,

India, with the rising of JIO, who also using B5+B3+B40 combination (mostly on B5 & B40)

and my country, Indonesia, where xiaomi specifically do partnership with my company (smartfren telecom) to provide a radio that can support 4G+ & VoLTE for my company users

these 3 countries alone have almost 2 billions of population as market. And xiaomi might make it as priority when tweaking their radio modem needs, lol
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] htchd2sucks:
To change the FS size to leave more space for the encryption bits, something like this could be done, in recovery mode:

EDIT: removing manual steps, as TWRP has a tool to resize the /data...

Disclaimer: I don't have all the required information to provide safe and standard instructions for everyone, I don't even know how much bytes is required for cryptfs, this is an attempt to help someone willing to test together with me! Take your precautions as well such as backup, etc...

Any developer or someone who knows better, are free to correct me, contribute, and improve this test.

Instructions are here:

https://xdaforums.com/showpost.php?p=78134420&postcount=4079

Someone who can't encrypt, such as [MENTION=9496906]Gonzo1169[/MENTION] could try with me! (My phone does not have encryption problem, maybe due to the proper format I did recently).

[MENTION=8207085]Jeremy-X[/MENTION] Hi Jeremy, that might help your problem too!
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] htchd2sucks:
I don't know about pubg or any games in fact, but you have to ask yourself, what are you downloading?

You are taking PE, a rom which is "purified" or "simplified" as best and which also comes with "DERP Kernel". The later is describe as "Derp kernel is a minimal kernel based on Xiaomi's source."

Source: https://xdaforums.com/redmi-note-5-pro/development/derp-kernel-clang-4-4-138-t3804996.

In other words nothing is optimized for gaming or specific purpose. Clearly, I think nobody has sufficient knowledge, experience, time and will to create a "package" which would contain: the best firmware, the best rom, the best kernel, the best camera, etc.. all optimized for every needs (low consumption, high performances, etc...).

What you can do, if you accept the consequences of modifying your system which will be no longer standard, is to try different kernel, as it's probably the most related to alleged performances issues.

Or you could even contribute by creating your own thread, talking about how to optimize PE for PUBG purpose, and explaining why.

The rest, is in my opinion useless.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Fusionalex:
Why would they make a GLOBAL (!) version they sell in Europe then?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] htchd2sucks:
Because it would somehow

work

, without being optimized for each countries with their own frequencies and regulations...

And because people would, most likely, buy that product anyway.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] kph200:
My GPS doesn't work at all in latest update. Google maps shows location with big blue circle where I was 15mins ago & can't use strava to track my running, cycling etc. Any fix please help.

---------- Post added at 11:23 AM ---------- Previous post was at 11:20 AM ----------

My GPS doesn't work at all in latest update. Google maps shows location with big blue circle where I was 15mins ago & can't use strava to track my running, cycling etc. Any fix please help.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Yippee-ki-yay:
When you reboot the phone while charging the LED light stops being "working"
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] rohitparmar@76:
How to update firmware on note 5 pro??I am on latest build of pe pie rom.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] kszthly_f:
Firmwares:

https://sourceforge.net/projects/xiaomi-firmware-updater/files/Developer/

Tapatalkkal küldve az én Redmi Note 5 eszközömről
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] MikiGry:
There is a way, that involves going into USB diagnostic mode and playing with a few files which i'm to try as soon as my bootloader unlock counter goes to 0

---------- Post added at 11:52 AM ---------- Previous post was at 11:45 AM ----------

The problem with LTE-A in Redmi phones is, that in either not working or partially working. By partially working I mean supporting Chinese inter-band CA only. But as B5 + B40 appeares to be working, there is a small chance, that support for CA can be extended)

I'm not sure if we are allowed to discuss CA in Pixel Expirience rom thread. Mebay we should move somewhere else
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Hack64:
Derp Kernel has just been updated to v3.5, maybe it can fix the problems you guys encountered.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Dev_Rangan:
Can someone confirm about gaming glitches?

---------- Post added at 12:36 PM ---------- Previous post was at 12:35 PM ----------

I don't think it's kernel problem because I've tried switching to older derp version but still there are glitches.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] DVError:
I have two questions

1-how to fix black portrait of gcams?

2-how to disable force encryption?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] htchd2sucks:
1. Ask that to the ones who made the GCAMS mod you have used and therefore modified the PE rom!!!!

2. What do you mean "force encryption", you can install this ROM on a not encrypted device...
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] witchfindergeneral329:
It used to work flawlessly with derp kernel up until version 2.8. I never experienced the slightest lag or frame drop back then, something must have changed within the kernel itself which is causing this strange behavior. SD 636 can play games fine even at stock settings, there's no need for extra features or OC options. Derp itself is based on Xiaomi's stock kernel sources so your point barely makes sense. As games run much better on current MIUI 10 builds than these custom ROMs shipping with derp included. I will highlight this issue in the telegram discussion thread for derp and let's hope for the best.

---------- Post added at 01:47 PM ---------- Previous post was at 01:44 PM ----------

I've already tested it out, it doesn't fix the problem. Very strangely, the last build of this ROM where the game works is the version that ships with derp 2.8
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] von_block:
1: Global, Chinese or Indian version?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] htchd2sucks:
I doubt the game hasn't been updated since then too. Have you considered that too?

There are some threads where it shows minimum specs for "pubg" and it's like 2 GB ram, and solid processor. There's recommended settings when it has perfs issues, anyone also look at that or it's automatically the ROM the problem?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] saanchey:
Bugs are there

These are some of the bugs that i have experienced in this rom

No Volte icon in status bar

No headphone jack icon in the status bar
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Gonzo1169:
Since I barely understand how this things work and I don’t wan’t to risk my phone I won’t try it. Thank you for the attention anyway. I hope the problem gets fixed some time in the future :D
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] DVError:
Global version
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] gagginaspinnata:
When I press the power button in order to lock the screen it keeps opening the camera. There's must be some gesture that opens the camera..does anyone knows how to disable it?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] DVError:
After flash this rom every time i reboot to recovery it ask me to right my pattern to decrypt my data

And it happen to in normal reboot so how to fix that?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] witchfindergeneral329:
According to my humble opinion, I don't think it's the ROM's fault, it might be derp instead. I've flashed the latest build of this ROM today and installed no name kernel over it. Performance across the system has improved, as well as battery and gaming performance, the only problem is OTG is broken. This is a temporary workaround for those who play the game regularly like me, untill these issues with derp are resolved. It might be the ROM as well, I'll keep doing my troubleshooting to determine what it could be.

---------- Post added at 03:13 PM ---------- Previous post was at 03:10 PM ----------

Those aren't bugs, the ROM is supposed to be based on the official ROMs on the Google Pixels so it only has the features it needs. If you're looking to have VoLTE and Headphone icons, I suggest you switch to another ROM which has these features.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Hack64:
Actually, he can enable the headphones icon with the System UI Tuner. I did it some time ago.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] VincentJoshuaET:
Pixel Experience actually has a headphone status bar icon.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] von_block:
Patch this with Magisk for no more black screen (ever) using front camera.

Only work for Chinese and global
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] von_block:
It's in the system and gesture setting.

Disable camera shortcut
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] witchfindergeneral329:
Yes, I completely forgot to mention that you can enable it via the SystemUI tuner.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] htchd2sucks:
I understand, can you run the command on the previous post though?

The one collecting information like here: https://xdaforums.com/showpost.php?p=78124698&postcount=4032

They won't change anything they just will return some info, as I copied myself in that post.

I could help to understand at a glance what is wrong (for example if it's using a different filesystem).

The problem is that it doesn't appear to be something "fixable" at ROM level and especially not in your case. Because with the info I collected, and with the log extract you gave, I suspect that you are having a partition which needs to be formatted or resized to be compatible with that encryption method. Unless there's some intelligent script which can resize the partition to enable encryption using cryptfs to work, I doubt it.

It's not particularly risky or complicated if it's only a resize, especially if you have backups just in case. Say, that we can also format and recreate, it's only about you doing backups (in TWRP, or compress the content and save it elsewhere).

It's up to you, at least try the commands to give the info on your FS like I posted in the link above.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] aini4610:
anyone can help to back to miui 10. how to get back ?
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] ManuelLima1994:
Yes, only download MIUI FW Less (NonARB) and then go to twrp and wipe art cache, cache, data, system,vendor (It is installed as any custom ROM) then install the MIUI Non ARB zip and restart. FW less is the same as NonARB (Non AntiRollback)

https://xdaforums.com/redmi-note-5-pro/how-to/index-redmi-note-5-pro-miui-roms-t3816343

Note: After installing the MIUI zip you must install the zip of lazyflasher so that MIUI does not overwrite twrp with its recovery.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] ingenia:
Great Rom. Just a question. What can i change the color theme in the "contact"? I have too pink and green water.

Thank.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Gonzo1169:
I don't know if I entered the commands right but this is what I got.

https://drive.google.com/open?id=1tY_VXkPYJjJlIExqcX_TvGaq98lMQvB3
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] htchd2sucks:
Hehe, I see you don't know where to put the spaces and all that. Ok, almost finished:

1. fastboot getvar partition-size:userdata

partition-size:userdata: 0xCD77F7E00

You did that one right!

Strangely, we do have the same value ( 0xCD77F7E00), which seems to say we have the same partition size.

2. type adb shell and then press enter.

Then type simply:

mount

Look only the line like this:

/dev/block/dm-0 on /data type ext4 (rw,lazytime,seclabel,nosuid,nodev,noatime,discard ,noauto_da_alloc,errors=panic,data=ordered)

3. still in adb shell, type:

df -kh /data

(there is a space after the h and before the /)

Probably it will return like this:

Filesystem Size Used Avail Use% Mounted on

/dev/block/dm-0 50G 2.3G 48G 5% /sbin/.core/mirror/bin

In red it's the name which could change...

4. still in adb shell, type

cat /proc/partitions

(there is a space after cat and before the /)

Look at the line which contains probably " dm-0" (or the value in red said before).
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Jiaur67:
This ROM is not suitable for everyday use of Indians because it does not have volte video calling. So my urnest request to dev please add this opinion.
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] stavropolnote5:
Awdome rom, thx for your work and updates:)
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] aini4610:
thankx a lot bro
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] AceStroke:
Hey there buddy, can you tell me which ROM is it? I've been looking for a enforcing pie
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] Gonzo1169:
This is what I got. I couldn't find the lines you pointed out though:

https://drive.google.com/open?id=1F82vL-giJOCFXrW2hx-SyXPMazCiYgmI
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] endva3:
Weather in status bar showing me "8° in your current location".

Its ok? On PE Oreo showing me "8° London" or state name where i was..
[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] htchd2sucks:
Good, so we have now some differences... I wrote my values first:

1)Mount:

/dev/block/dm-0 on /data type ext4 (rw,lazytime,seclabel,nosuid,nodev,noatime,discard ,noauto_da_alloc,errors=panic,data=ordered)

/dev/block/mmcblk0p64 on /data type ext4 (rw,lazytime,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,errors=panic,data=ordered)

2) df -kh /data

Filesystem Size Used Avail Use% Mounted on

/dev/block/dm-0 50G 2.3G 48G 5% /sbin/.core/mirror/bin

Filesystem Size Used Avail Use% Mounted on

/dev/block/mmcblk0p64 50G 37G 13G 74% /sbin/.core/mirror/bin

3) cat /proc/partitions

252 0 53862367 dm-0

259 32 53862383 mmcblk0p64

4) fastboot getvar partition-size:userdata

partition-size:userdata: 0xCD77F7E00

partition-size:userdata: 0xCD77F7E00

(I also have that)

Analysis:

The only thing that strikes me is the amount of block (53862383) and your filesystem naming mmcblk0p64.

Why mine is called dm-0 and not yours, maybe there's a clue, like if something else created that.

As for the blocks, I do have a bit less blocks than you (that value lists the number of physical disk blocks contained in a particular partition).

A theory could be that you don't have enough free blocks for the cryptfs encryption to write its data. Something like that.

I don't have much time to look further today.

Would be good if someone more experience set in with that type of infos!