[Solved] GSI Installation — Finally booted!!!

nielsync

Senior Member
Sep 6, 2020
64
0
6
How do you flash a gsi image? There is no option for a system image here.
Whoa that is interesting like I suspected in my comments above!
TWRP makes flashing the universal decryption zip possible though so its a step closer to our goal!
Phones with the Android 10 partition table have a 'super' partition including the system, vendor and product within. So in this case first flash the GSI through fastbootd like I mentioned above and then after disable encryption by flashing the dm-verity disabler zip in TWRP.
So the process will be as follows:
adb reboot bootloader
fastboot reboot fastboot
fastboot flash system system.img
fastboot reboot recovery
And then in TWRP format the data partition and flash the dm-verity disabler zip and then reboot the device.
Never flash the GSI system image as the super partition in TWRP because it's not. However @AndyYan says it's possible to compile your own super partition but that's a complex process.
 
Last edited:

nielsync

Senior Member
Sep 6, 2020
64
0
6
You can't flash a GSI using any recovery for such devices with a super partition. No custom recovery can, not even official TWRP if it's ever ported. The only option is fastbootd. Its just that, no matter what you do, it just cannot boot! Maybe a genius will boot it and post screenshots here, I'll be the happiest...
 

Shas45558

Senior Member
Dec 9, 2018
135
6
18
You can't flash a GSI using any recovery for such devices with a super partition. No custom recovery can, not even official TWRP if it's ever ported. The only option is fastbootd. Its just that, no matter what you do, it just cannot boot! Maybe a genius will boot it and post screenshots here, I'll be the happiest...

I do not agree with you.....
Lots of YouTube video are made on this topics.....
For gsi boot not only a supported ROM required (our device support) but also you have treble supported recovery....

The treble supported recovery has options to erase system separately.....which is missing in this recovery....

More over that you can not warp super partition with this recovery because their is no option in advance warp menu...

If you not agree with me you should watch video in YouTube....

Search for"install gsi via twrp"

Hope you understand..
 

nielsync

Senior Member
Sep 6, 2020
64
0
6
I do not agree with you.....
Lots of YouTube video are made on this topics.....
For gsi boot not only a supported ROM required (our device support) but also you have treble supported recovery....

The treble supported recovery has options to erase system separately.....which is missing in this recovery....

More over that you can not warp super partition with this recovery because their is no option in advance warp menu...

If you not agree with me you should watch video in YouTube....

Search for"install gsi via twrp"

Hope you understand..
I've flashed GSIs on so many devices using both TWRP and fastboot so I definitely know, no need for YouTube :cowboy: Your are simply misunderstanding the issue here. It's not about advanced options to access the system partition to flash like it was the case before Android Q. I explained above but maybe refer to this link for an explanation from Google and this from TWRP. Please understand the issue first before jumping to conclusions.
 
Last edited:

Shas45558

Senior Member
Dec 9, 2018
135
6
18
I've flashed GSIs on so many devices using both TWRP and fastboot so I definitely know, no need for YouTube :cowboy: Your are simply misunderstanding the issue here. It's not about advanced options to access the system partition to flash like it was the case before Android Q. I explained above but maybe refer to this link for an explanation from Google and this from TWRP. Please understand the issue first before jumping to conclusions.

Thank you so much now I understand the whole process. That's mean :(:(:( with Android 10 boot gsi is a dream...

It not happened as soon as possible...

Even TWRP team can not cope with Android 10....
It is very heart breaking news for us....
 

nielsync

Senior Member
Sep 6, 2020
64
0
6
The geniuses over at TWRP like @Dees_Troy will eventually come up with a solution. The same issue happened with Magisk until @topjohnwu solved it. I believe it is possible to boot a GSI using the fastbootd procedure as demonstrated here. Its just a question of time before someone does it. The only issue is this is an MTK phone not a Qualcomm device so there could be additional steps needed such as these I guess. I'll personally try over the weekend once I get unlocked without a custom recovery.
 
Last edited:

nielsync

Senior Member
Sep 6, 2020
64
0
6
I will try booting a GSI soon following your instructions. Was it easy to unbrick?
For unbricking, refer to this guide. The issue for me was a previous unofficial TWRP. The PitchBlack version seems to be stable but both can't be used to flash GSIs to the system partition that is hidden and part of the displayed super partition as shown here.
 
Last edited:

kW_

Member
Feb 27, 2014
31
0
0
So what i did:
Tried to flash dm-verity zip under the recovery but i got a boot loop so i flashed back the original boot.img from the 11.0.7 global rom via fastboot.
After this i tried to boot into fastbootd but i couldn't because of the recovery (idk why). So i flashed back the original recovery.
So i booted into fastbootd, flashed this rom: https://forum.xda-developers.com/pr...velopment/aosp-10-0-quack-phh-treble-t3992559 (the arm64-ab-gapps one)
Erased userdata and cache and boom it works.
I tried mobile data, bluetooth, speakers, wifi, camera and everything worked for me. The camera app isn't the best in the rom so i downloaded open camera from playstore.
 

Attachments

nielsync

Senior Member
Sep 6, 2020
64
0
6
My bootloader has some time to be unlocked but once it will get unlocked I ll try to boot the gsi as soon as possible...also @nielsync can u give me ur telegram so that we can work on this together??
You can PM yours. Refer to the post above though and updated thread on how to successfully boot a GSI on the Redmi 9.
 
Last edited:

nielsync

Senior Member
Sep 6, 2020
64
0
6
So what i did:
Tried to flash dm-verity zip under the recovery but i got a boot loop so i flashed back the original boot.img from the 11.0.7 global rom via fastboot.
After this i tried to boot into fastbootd but i couldn't because of the recovery (idk why). So i flashed back the original recovery.
So i booted into fastbootd, flashed this rom: https://forum.xda-developers.com/pr...velopment/aosp-10-0-quack-phh-treble-t3992559 (the arm64-ab-gapps one)
Erased userdata and cache and boom it works.
I tried mobile data, bluetooth, speakers, wifi, camera and everything worked for me. The camera app isn't the best in the rom so i downloaded open camera from playstore.
@kW_ you are the the hero my friend:good: Congrats and thanks for not giving up!!!!
 
Last edited:

Shas45558

Senior Member
Dec 9, 2018
135
6
18
Little hope for Android 10

Read the article.....
https://developer.android.com/topic/dsu

Android 10 use dynamic partition...
So we cannot boot gsi with previous method...
From this article it seem we can run gsi without flash it....
May be I understand wrong...
But if it true then our dreams to boot gsi so close....
E can teast gsi without any system loss
 
Last edited:

nielsync

Senior Member
Sep 6, 2020
64
0
6
Last edited:

I'm Newbie

New member
Sep 29, 2019
4
0
0
Hi guys, this is my first time owning a Redmi/Xiaomi with a MediaTek SOC (G80). The device was released with Android 10 so it definitely supports Project Treble. My experience with booting GSIs on Qualcomm Snapdragon devices is straightforward but I attempted the same on the Redmi 9 and I encountered the following things:

  • With no kernel sources released, no stable custom recovery, I went the GSI route via the standard fastboot commands in the bootloader before I discovered that it uses fastbootd instead.
  • The Redmi 9 (lancelot) is compatible with arm64-ab GSIs.
  • UPDATE: GSI booted. Current custom recoveries cannot be used to flash GSIs on devices launched with Q because the system partition is not directly accessible to be flashed therefore flashing the system.img is only possible through fastbootd.

    UPDATE: @kW_ successfully booted a GSI. This thread was for sharing ideas to make it possible for those interested to boot GSIs. Mission is now complete. A guide is upcoming.


  • Firstly, letme introduce my self, im Afdy, also am using Redmi 9 Lancelot. We're Indonesian already made a Custom Recovery by Pitch Black Recovery Project (PBRP) Official Building Team, Now we are just waiting for the official release date.

    Secondly, yes... We're also try hard and take all risk for developing this device, Especially me and our tester team, and finally we make a stable PBRP for Redmi 9. And also now we're learning how to boot into GSI, While this device is already using Dynamic Partition.

    Third, I was very surprised when I saw this post that no just only us Indonesian Development Team are trying hard to modify this new device with new Partition...

    So, I wanna invite u sir into our tele group for easier discussing for more comfortable

    Contact me on tele @afdy_a
 

Shas45558

Senior Member
Dec 9, 2018
135
6
18
boot gsi without any problem....

first download gsi file what you want to install....
download a/b arm64 rom.....
then go to fastboot menu by holding power+volume down key.....
connect your device with pc via cable...
then run....
fastboot reboot fastboot....
now you are in fastbootd mood....
then run..
fastboot flash system system-name.img (change system-name as your file name)
wait for finish.....
then run...
fastboot reboot recovery....
now u boot into miui recovery and u have to wipe data and reboot....
boom you are in gsai....


remember..

**you have to unroot your device fast...
++remove all magisk mudle....
 

I'm Newbie

New member
Sep 29, 2019
4
0
0
So what i did:
Tried to flash dm-verity zip under the recovery but i got a boot loop so i flashed back the original boot.img from the 11.0.7 global rom via fastboot.
After this i tried to boot into fastbootd but i couldn't because of the recovery (idk why). So i flashed back the original recovery.
So i booted into fastbootd, flashed this rom: https://forum.xda-developers.com/pr...velopment/aosp-10-0-quack-phh-treble-t3992559 (the arm64-ab-gapps one)
Erased userdata and cache and boom it works.
I tried mobile data, bluetooth, speakers, wifi, camera and everything worked for me. The camera app isn't the best in the rom so i downloaded open camera from playstore.
Come with us
@afdy_y

---------- Post added at 04:21 AM ---------- Previous post was at 04:18 AM ----------

@kW_ you are the the hero my friend:good: Congrats and thanks for not giving up!!!! Could you make a step by step guide? I knew this was possible :) You can PM if you don't mind. I can't wait to unlock this damn bootloader now. I already pressed thanks on your post. You deserve it :cowboy:
Hello sir, come with us, we're aldo developing Redmi 9 on telegram group..
There are a lot of people who are expert at this problem..
Hope u can join us...
Contact me on tele @afdy_a

---------- Post added at 04:29 AM ---------- Previous post was at 04:21 AM ----------

That's a new Android 11 feature for duo booting GSIs to test them alongside your stock rom without flashing over it and will work on the Google Pixel out of the box. But that aside @Shas45558 our mission is possible courtesy of @kW_ :good: Refer to his post above. A proper guide will be made after thorough testing.
To be honest, I'm not very good at using this website, but i try to tell u sir, we're developing Redmi 9 Lancelot on telegram..
There are a lot of developers are waiting for u all...
Hope u all here can join us to make development easy and increase faster...

Contact me on tele @afdy_a