How To Guide Run an GSI on your Mi Pad 5

Search This thread

zyvex_14

Senior Member
Apr 24, 2016
92
34
Sainte-Geneviève-Des-Bois
Hey everyone,

I am pretty new when I hear GSI Rom but I would like to give a try since I am also fed-up of the MIUI rom.
I read the first post and I don't understand what is "vbmeta.img" on how to find it on google...
Can someone give me a clue?

Thank you
 

mikefnz

Senior Member
Jan 30, 2008
703
204
Christchurch
OnePlus 7T
Xiaomi Mi Pad 5
Many thanks, I somehow missed this one, sorry for that.

OK, so I will try the rom in your post #119.
Sounds good. Let us know how you get on.
That version of PE12 seems to do everything I need.
You will probably need the sound patches/tweaks referred to elsewhere in this thread.
The only variations I had were a Magisk patched boot image and I do a fastboot -w at the very start of the process. Probably unnecessary, but it feels nice to wipe the slate before starting with a new ROM.
 

francoscala

New member
Nov 12, 2017
4
4
Someone tried Android 12L GSI on the Xiaomi Pad 5?
And if I try it how can I came back to the miui if it doesn't work properly?
 

zyvex_14

Senior Member
Apr 24, 2016
92
34
Sainte-Geneviève-Des-Bois
Sounds good. Let us know how you get on.
That version of PE12 seems to do everything I need.
You will probably need the sound patches/tweaks referred to elsewhere in this thread.
The only variations I had were a Magisk patched boot image and I do a fastboot -w at the very start of the process. Probably unnecessary, but it feels nice to wipe the slate before starting with a new ROM.

Hello,

OK so I tried to install PE12 but without success, I end in bootloop.

Here the steps I follow:
fastboot -w
fastboot flash vbmeta vbmeta.img
fastboot reboot fastboot
fastboot flash system PixelExperience_arm32_binder64-ab-slim-12.0-20220119-UNOFFICIAL.img
fastboot reboot recovery
Wipe all data
Reboot

Anything wrong?

Just one note, when I flash the system, I got this message
Invalid sparse file format at header magic
Resizing 'system_a'
and then it goes to "Sending sparse 'system_a' 1/9 (262104 KB)"...
Is it normal?
 
Last edited:

mikefnz

Senior Member
Jan 30, 2008
703
204
Christchurch
OnePlus 7T
Xiaomi Mi Pad 5
Hello,

OK so I tried to install PE12 but without success, I end in bootloop.

Here the steps I follow:
fastboot -w
fastboot flash vbmeta vbmeta.img
fastboot reboot fastboot
fastboot flash system PixelExperience_arm32_binder64-ab-slim-12.0-20220119-UNOFFICIAL.img
fastboot reboot recovery
Wipe all data
Reboot

Anything wrong?
Steps look OK to me.
Did you have those files (extracted) lined up in the (most recent) platform-tools folder?
No strange error messages? Apart from one that can be ignored.
Fastboot devices shows your device?
I normally shorten the file name to one that is easy to type e.g., PE12.img
No ancient boot image left around that needs updating? Did you extractthe boot image from the original MIUI 12 file.
You may need to google some of that.
 

zyvex_14

Senior Member
Apr 24, 2016
92
34
Sainte-Geneviève-Des-Bois
Steps look OK to me.
Did you have those files (extracted) lined up in the (most recent) platform-tools folder?
No strange error messages? Apart from one that can be ignored.
Fastboot devices shows your device?
I normally shorten the file name to one that is easy to type e.g., PE12.img
No ancient boot image left around that needs updating? Did you extractthe boot image from the original MIUI 12 file.
You may need to google some of that.
The only message error I got is that one:
Invalid sparse file format at header magic
Resizing 'system_a'
and then it goes to "Sending sparse 'system_a' 1/9 (262104 KB)"...
Is it normal?

Otherwise what do you mean by "No ancient boot image left around that needs updating?"
 

mikefnz

Senior Member
Jan 30, 2008
703
204
Christchurch
OnePlus 7T
Xiaomi Mi Pad 5
The only message error I got is that one:
Invalid sparse file format at header magic
Resizing 'system_a'
and then it goes to "Sending sparse 'system_a' 1/9 (262104 KB)"...
Is it normal?

Otherwise what do you mean by "No ancient boot image left around that needs updating?"
Yep, that message looks OK.
I'm pretty sure that the boot image you have needs to be the most recent MIUI boot image i.e., from MIUI 12. I extracted that and patched it in Magisk and then flashed that.
If you have a MIUI 11 boot image that could cause problems.
You could check and see if someone has made a (safe) boot image available and flash that first.
I wouldn't have thought that a Magisk patched boot image would be essential but someone who knows what their doing (not me) might be able to comment?
 

zyvex_14

Senior Member
Apr 24, 2016
92
34
Sainte-Geneviève-Des-Bois
Yep, that message looks OK.
I'm pretty sure that the boot image you have needs to be the most recent MIUI boot image i.e., from MIUI 12. I extracted that and patched it in Magisk and then flashed that.
If you have a MIUI 11 boot image that could cause problems.
You could check and see if someone has made a (safe) boot image available and flash that first.
I wouldn't have thought that a Magisk patched boot image would be essential but someone who knows what their doing (not me) might be able to comment?

Hummmm, is it possible then to get your boot image?
On my side I have the boot image from ROM EEA V12.5.8.0.RKXEUXM
 

zyvex_14

Senior Member
Apr 24, 2016
92
34
Sainte-Geneviève-Des-Bois

mikefnz

Senior Member
Jan 30, 2008
703
204
Christchurch
OnePlus 7T
Xiaomi Mi Pad 5
Many thanks.

So just to make sure, I will follow theses steps:
fastboot flash boot boot.img (your boot image #132)
fastboot -w
fastboot flash vbmeta vbmeta.img (from post #19)
fastboot reboot fastboot
fastboot flash system PPE12.img (from post #119)
fastboot reboot recovery
Wipe all data
Reboot

OK?
Perhaps reboot after flashing the boot image.
Hopefully someone who really knows what their doing (not me) can advise?
And just confirm that when you fastboot reboot fastboot you get into fastbootd mode
 

zyvex_14

Senior Member
Apr 24, 2016
92
34
Sainte-Geneviève-Des-Bois
Perhaps reboot after flashing the boot image.
Hopefully someone who really knows what their doing (not me) can advise?
And just confirm that when you fastboot reboot fastboot you get into fastbootd mode
OK so I did all the steps and still not working.
I always reboot to fastboot now.

I confirm that I was in fastbootd mode.

I think I am gonna give up for today and reflash Miui...

So I did reflash Miui EEA v12.5.8 :( and everything is back/works.
But I really want to try a GSI ROM, so if anyone has anyclue of what I did wrong/missed, please let me know so can give another try :)
 
Last edited:

mikefnz

Senior Member
Jan 30, 2008
703
204
Christchurch
OnePlus 7T
Xiaomi Mi Pad 5
OK so I did all the steps and still not working.
I always reboot to fastboot now.

I confirm that I was in fastbootd mode.

I think I am gonna give up for today and reflash Miui...

So I did reflash Miui EEA v12.5.8 :( and everything is back/works.
But I really want to try a GSI ROM, so if anyone has anyclue of what I did wrong/missed, please let me know so can give another try :)
One possible reason for bootlooping was a bad download of PE12?
Might be worth trying another Treble GSI such as a basic one that PHH provides: https://github.com/phhusson/treble_.../system-squeak-arm64-ab-vndklite-gapps.img.xz
 

zyvex_14

Senior Member
Apr 24, 2016
92
34
Sainte-Geneviève-Des-Bois
One possible reason for bootlooping was a bad download of PE12?
Might be worth trying another Treble GSI such as a basic one that PHH provides: https://github.com/phhusson/treble_.../system-squeak-arm64-ab-vndklite-gapps.img.xz
It could be... I can try another GSI rom later on this weekend.

But 1 question first that I would like to understand:
Why for PE12, you are proposing the arm32/Binder64 and slim version? And for PHH (above), it is the arm64 and vndklite version?
Is there any reason?
 

mikefnz

Senior Member
Jan 30, 2008
703
204
Christchurch
OnePlus 7T
Xiaomi Mi Pad 5
It could be... I can try another GSI rom later on this weekend.

But 1 question first that I would like to understand:
Why for PE12, you are proposing the arm32/Binder64 and slim version? And for PHH (above), it is the arm64 and vndklite version?
Is there any reason?
Should be arm64 ab for both. Hell, my bad for linking to the arm 32 version......
 

Top Liked Posts