Did you flash the global ROM or the Chinese ROM?
Do you have Gapps? Because if not, then it's probably the Chinese ROM.
I flash global and i have gapps. When coming from treble rom you should flash miui with miflash....
Working on redmi 4x nos 8.1. Also working in nougat roms.
Memory locker app do the same thing?