I has succeed to change emmc redmi 5a riva from 2/16 to 3/32gb. Without ubl.
But it cant boot normaly with miui 9.
I flash with miui 8.5.7 cn then flash recovery twrp ... Instal universal boot patcher.zip
Done...
Device can boot normaly to system cn rom.
All data modem , modem1 n 2 cfg persist config already write from backup.
No google apps...Instal google v2 done...but stuck on that log on boot(google play erorr)
But i got update from miui9 update....go update .... N device bootloop ... Restart boot.
Flash boot patch its doesnt work for miui 9.
I'm not already try to copy boot.img from miui 8 does.
I will try to flash with cusrom n boot.img backup.
Please advice n research for more solution...
I must wait for 544hour to unlock this device...its realy shocking me...
With miui8 n universal boot patch this riva can run normaly without installing google apps.
Please teach me about making boot.img
Compile n decompile in windows pc ?
Or use ubuntu OS?
Teach me decoding or just read .mbn files
https://www.synopsys.com/designware-ip/technical-bulletin/emmc-and-ufs-inline-encryption-2017q4.html
https://forum.xda-developers.com/xiaomi-redmi-5a/how-to/bypass-bootloader-lock-redmi-5ariva-t3772381
Best regards.