Testeado con el metodo 2 depende la version de miui deja hacer el metodo 1
Receiving data from server:
2021/11/26 02:25:33 AM Receiving data from server: OK!
2021/11/26 02:25:33 AM
Waiting for brom/preloader mode... OK
2021/11/26 02:25:33 AM Port Number : COM6
2021/11/26 02:25:33 AM Connection Type : brom
2021/11/26 02:25:33 AM Rebooting to meta mode... OK
2021/11/26 02:25:33 AM Waiting for meta device... OK
2021/11/26 02:25:51 AM connection to meta device[COM24]... OK
2021/11/26 02:26:01 AM IMEI1 : FFFFFFFFFFFFFFF
2021/11/26 02:26:02 AM IMEI2 : FFFFFFFFFFFFFFF
2021/11/26 02:26:02 AM Platform : MT6785
2021/11/26 02:26:02 AM SW : alps-mp-p0.mp9.tc8sp-V1
2021/11/26 02:26:02 AM Brand : XIAOMI
2021/11/26 02:26:02 AM Name : BEGONIA
2021/11/26 02:26:02 AM Model : BEGONIA
2021/11/26 02:26:02 AM Build ID : BEGONIA-USERDEBUG 9 PPR1.180610.011 FACTORY-BEGONIA-1101 TEST-KEYS
2021/11/26 02:26:02 AM Android Ver : 9
2021/11/26 02:26:02 AM Flavor ID : BEGONIA-USERDEBUG
2021/11/26 02:26:02 AM Security Patch : 2019-06-05
2021/11/26 02:26:02 AM Storage : MTP
2021/11/26 02:26:02 AM FRP Pst : BOOTDEVICE/BY-NAME/FRP
2021/11/26 02:26:02 AM start modem database init... OK
2021/11/26 02:26:03 AM Writing IMEI Data : Started
2021/11/26 02:26:03 AM Writing IMEI:1 to nvram... OK
2021/11/26 02:26:03 AM Writing IMEI:2 to nvram... OK
2021/11/26 02:26:03 AM Upload IMEI to nvdata... OK
2021/11/26 02:26:03 AM Reading Network Info... OK
2021/11/26 02:26:03 AM IMEI 1 : 860752047986521
2021/11/26 02:26:03 AM IMEI 2 : 860752047986612
2021/11/26 02:26:03 AM Exiting meta mode... OK
2021/11/26 02:26:04 AM Operation finished!