[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] sk8223:
I flashed the ROM again following your instructions, and after setting up the ROM, flashed Magisk the correct way, as you posted.

Then I booted into system. I installed all my purchased apps while I could (the device certification section was available and showed my device as "uncertified"). For some reason, Magisk didn't show up the first time I flashed it.

I had to flash it again in TWRP. Then it showed up.

I went into the Play Store and checked for certification.

The certification section appeared and said "certified". That section wasn't missing from the Play Store like last time.

Then I went into Magisk and did a SafetyNet check. I downloaded the API code for it, as Magisk asked me to.

I checked my SafetyNet status and it says "passed" for both options. I checked the Play Store again and the certification section still shows up (Certified).

Then I installed the black Vanced module and rebooted. I also tried a VPN app to change the Play Store's region, and I had to clear the Play Store's app cache for that. I thought that might remove the certification section, but it didn't.

______________________________________________________________________________________________________

The issue is that the entire device certification section was missing. But I'm still able to pass SafetyNet, so that isn't a problem for me.

It seems that if you clear the Play Store's data entirely, that may cause the certification section to go missing.

I still don't understand it myself. I'm afraid to clear the Play Store's data now, lol. I don't know if Magisk is causing the Play Store to malfunction in terms of device certification. There's no reason for that entire section to disappear, but I guess it's due to modding the SafetyNet API.

And before doing all of this, I flashed FrancoKernel (did this before your comment was posted). Even with FrancoKernel my Play Store accounts still showed up as uncertified. So there's that.

____________________________________________________________________

EDIT: Okay, now the Play Store is being weird. It says "Authentication is required. You need to sign in to your Google Account."

I am signed in! WTF is going on??? When I go to enter my password in Play Settings for, say, Fingerprint authentication, it says an error occured????

______________________________________________________________________________________________________________

Okay, I clear the Play Store, Play Store services, and some other system Google apps' data and the Play Store works again...

AND NOW THE DEVICE CERTIFICATION SECTION IS MISSING!

Argh... what the hell is happening. I don't know why it randomly disappears like this. I'm running around in circles trying to fix it. It's like it's inevitable for that section to disappear on this ROM... I have no clue why Google Play thought I wasn't signed in.

EDIT 3: Now I'm getting "Couldn't sign in. There was a problem with Google's Authentication servers." And in the Play Store, "error while retrieving information from server [RH-01]."

Clearing data in the Play Store + Play Store services fixes the Play Store, but how many times is it going to crash like this? In fact, all Google services crash... I used Aroma installer to install key Google apps and services.