[How-to] Flash GSI ROM for your Redmi K30 5G - Redmi K30 5G Guides, News, & Discussion

Hello friends,
I can now flash GSI on my Redmi K30 5G!
The following is the step to flash GSI on Redmi K30 5G (and also probably other redmi devices that support project treble):
1. boot to bootloader (fastboot mode)
2. choose one of fastboot ROMs of China Stable ROM and download it at the link here.
3. extract recovery.img from the downloaded ROM to your ADB fastboot platform tools folder
4. flash stock recovery.img
fastboot flash recovery recovery.img
5. enter fastbootd mode
fastboot reboot fastboot
6. flash GSI ROM of your choice which its size does not exceed the /system of your phone
fastboot flash system system.img
7. wipe all data by entering the following command
fastboot -w
8. reboot your phone
fastboot reboot
My phone can boot GSI ROM with no problem with this method.
Hope this helps.
Edit: add screenshots from the phone with GSI ROM installed.

siamese007 said:
Hello friends,
I can now flash GSI on my Redmi K30 5G!
The following is the step to flash GSI on Redmi K30 5G (and also probably other redmi devices that support project treble):
1. boot to bootloader (fastboot mode)
2. choose one of fastboot ROMs of China Stable ROM and download it at the link here.
3. extract recovery.img from the downloaded ROM to your ADB fastboot platform tools folder
4. flash stock recovery.img
fastboot flash recovery recovery.img
5. enter fastbootd mode
fastboot reboot fastboot
6. flash GSI ROM of your choice which its size does not exceed the /system of your phone
fastboot flash system system.img
7. wipe all data by entering the following command
fastboot -w
8. reboot your phone
fastboot reboot
My phone can boot GSI ROM with no problem with this method.
Hope this helps.
Edit: add screenshots from the phone with GSI ROM installed.
Click to expand...
Click to collapse
Any OxygenOS 11 based GSI rom? I found one for K20 Pro. Will any GSI rom works in this way or only ROMs from your given list?

abhi281 said:
Any OxygenOS 11 based GSI rom? I found one for K20 Pro. Will any GSI rom works in this way or only ROMs from your given list?
Click to expand...
Click to collapse
GSI ROMs are no specific to any devices. You can flash any Oxygen GSI ROMs that you found on your devices. But not all GSI ROMs will boot successfully for any devices.
I found this Oxygen GSI ROM here.

siamese007 said:
GSI ROMs are no specific to any devices. You can flash any Oxygen GSI ROMs that you found on your devices. But not all GSI ROMs will boot successfully for any devices.
I found this Oxygen GSI ROM here.
Click to expand...
Click to collapse
I tested CherishOS official GSI this morning by following your method. It stuck at logo, not booting... so I just need to follow your method? any other thing to do? Also Do I need to be in China MIUI stock ROM to flash GSI or MIUI EU will work too?
btw which GSI ROM you are using?

abhi281 said:
I tested CherishOS official GSI this morning by following your method. It stuck at logo, not booting... so I just need to follow your method? any other thing to do? Also Do I need to be in China MIUI stock ROM to flash GSI or MIUI EU will work too?
btw which GSI ROM you are using?
Click to expand...
Click to collapse
If you followed my method correctly but get bootloop, it means this GSI ROM is not compatible with the device. You need to look for the others. You can test flashing GSI ROMs by using phhusson's GSI ROMs here. His ROMs are the most success ROMs so far. I always use his ROMs to test flashing GSI ROMs for any devices before looking for other ROMs to suit my needs.
There are a number of GSI ROMs that I tested and could boot up K30 5G. For example, Havoc OS, Lineage OS, Legion OS, Fluid OS, Pixel Android 10, etc. You can try other ROMs that you like and would be appreciated to share the results.

siamese007 said:
There are a number of GSI ROMs that I tested and could boot up K30 5G. For example, Havoc OS, Lineage OS, Legion OS, Fluid OS, Pixel Android 10, etc. You can try other ROMs that you like and would be appreciated to share the results.
Click to expand...
Click to collapse
There are no other ROMs in that link. Only AOSP.

abhi281 said:
There are no other ROMs in that link. Only AOSP.
Click to expand...
Click to collapse
I just posted GSI ROMs of phhusson.
You can search other GSI ROMs on the internet.

siamese007 said:
I just posted GSI ROMs of phhusson.
You can search other GSI ROMs on the internet.
Click to expand...
Click to collapse
OK, Thanks. Another question: if GSI ROM works then how much time it may usually take to boot?

abhi281 said:
OK, Thanks. Another question: if GSI ROM works then how much time it may usually take to boot?
Click to expand...
Click to collapse
It should be less than 5-10 minutes after the GSI logo boot up.

siamese007 said:
It should be less than 5-10 minutes after the GSI logo boot up.
Click to expand...
Click to collapse
Ok, it seems it is my bad luck. Couldn't boot a single GSI ROM in my device.
CherishOS: bootloop (logo)
Corvus 15.0: bootloop (logo)
Pixel S : bootloop (Redmi logo)
OxygenOS : bootloop (Redmi logo)
AOSP (latest) : bootloop (logo)
Don't know what's wrong with my phone
Note: I only tested Android 11 GSIs

abhi281 said:
Ok, it seems it is my bad luck. Couldn't boot a single GSI ROM in my device.
CherishOS: bootloop (logo)
Corvus 15.0: bootloop (logo)
Pixel S : bootloop (Redmi logo)
OxygenOS : bootloop (Redmi logo)
AOSP (latest) : bootloop (logo)
Don't know what's wrong with my phone
Note: I only tested Android 11 GSIs
Click to expand...
Click to collapse
It may be because your firmware is not updated. What is your lastest firmware before flashing GSI?
However there are some of these ROMs of Android 11 that I could not get them boot up. Try them for Android 10. But I could have phhusson's GSI ROMs boot up for sure.
Edit1: Try flashing this firmware before flashing GSI. And there are a number of TWRP for K30 5G. You can use these to flash GSI as well. But best to install TWRP 3.5 or above in order to flash GSI ROM of Android 11.
Edit2: Here is the link to download updated firmware for K30 5G.

siamese007 said:
It may be because your firmware is not updated. What is your lastest firmware before flashing GSI?
However there are some of these ROMs of Android 11 that I could not get them boot up. Try them for Android 10. But I could have phhusson's GSI ROMs boot up for sure.
Edit1: Try flashing this firmware before flashing GSI. And there are a number of TWRP for K30 5G. You can use these to flash GSI as well. But best to install TWRP 3.5 or above in order to flash GSI ROM of Android 11.
Edit2: Here is the link to download updated firmware for K30 5G.
Click to expand...
Click to collapse
My firmware is updated. I am using Weekly firmware of MIUI EU. So I need to flash latest China firmware?
I have OrangeFOX recovery, will that work for flashing GSI ROM?

abhi281 said:
My firmware is updated. I am using Weekly firmware of MIUI EU. So I need to flash latest China firmware?
I have OrangeFOX recovery, will that work for flashing GSI ROM?
Click to expand...
Click to collapse
Try Stable version. MIUI EU ROMs come with updated firmware. But they are weekly verision.
This Recovery should be able to flash Android 11 GSI ROMs here.
So you can flash Vanilla version of GSI and flash GAPPS later.
I am not sure about rooting GSI with Magisk. But you can try with the custom recovery.
By they way, I have never flash GSI ROMs with custom recovery. Since at the time I flashed Android 11 GSI ROMs, there were no custom recovery for Android 11. Follow their instructions for using it carefully.
Edit: Please note that if you could boot up GSI Logos but get bootloop, it's usually because firmware issues. However there are some GSI ROMs that are not compatible with the firmwares of the devices.
Flashing GSI ROMs are pure OS with no firmwares for Android devices which supports Project Treble like installing Windows on PC. Before that the manufacturers have to build Stock ROMs with firmwares. Right now the manufacturers just build firmwares. This is the main concept of Project Treble.

siamese007 said:
Try Stable version. MIUI EU ROMs come with updated firmware. But they are weekly verision.
This Recovery should be able to flash Android 11 GSI ROMs here.
So you can flash Vanilla version of GSI and flash GAPPS later.
I am not sure about rooting GSI with Magisk. But you can try with the custom recovery.
By they way, I have never flash GSI ROMs with custom recovery. Since at the time I flashed Android 11 GSI ROMs, there were no custom recovery for Android 11. Follow their instructions for using it carefully.
Click to expand...
Click to collapse
Ok, I have downloaded TWRP3.5 for this device and will flash latest China stable firmware (12.1.6 for K30 5G). I will try those A11 GSI again and also downloaded A10 based OxygenOS GSI.
Let's see what happen....

Another note is if you see GSI ROMs with vndk lite. This means the GSI ROMs come with necessary firmwares. So this type of GSI ROMs will have more possibility to boot. But vndk lite GSI ROMs are bigger file size than usual GSI ROMs.
For Android devices with limited RAM like 4GB or less, there are also limited number of GSI ROMs that can fit into the system partition. In case you try flashing GSI ROMs on other Android devices, the more RAM, the bigger system partition.

siamese007 said:
Another note is if you see GSI ROMs with vndk lite. This means the GSI ROMs come with necessary firmwares. So this type of GSI ROMs will have more possibility to boot. But vndk lite GSI ROMs are bigger file size than usual GSI ROMs.
For Android devices with limited RAM like 4GB or less, there are also limited number of GSI ROMs that can fit into the system partition. In case you try flashing GSI ROMs on other Android devices, the more RAM, the bigger system partition
Click to expand...
Click to collapse
Tested A11 ROMs with both TWRP and OrangeFOX, not working. All of them failed with Bootloop (Redmi logo).
So Now I am going to try A10 GSI ROMs in your method (no TWRP or OrangeFox).
Note: I have flash latest stable China firmware before flashing GSI ROMs as you said

siamese007 said:
Another note is if you see GSI ROMs with vndk lite. This means the GSI ROMs come with necessary firmwares. So this type of GSI ROMs will have more possibility to boot. But vndk lite GSI ROMs are bigger file size than usual GSI ROMs.
For Android devices with limited RAM like 4GB or less, there are also limited number of GSI ROMs that can fit into the system partition. In case you try flashing GSI ROMs on other Android devices, the more RAM, the bigger system partition.
Click to expand...
Click to collapse
No A10 OxygenOS is working.
But finally able to boot one A11 GSI ROM! (following your method and with stable China firmware)
Descendant XI - https://downloads.descendant.me/Home/Latest
version: Latest (February 2021 patch)
Working: Everything
Issues:
1. some screen flickering for 2-3 seconds after reboot/boot the phone
2. Audio don't work out-of-the-box (Need to enable 'alternate audio policy for Qualcomm' from Phh-treble Settings)
3. No built-in Camera app

abhi281 said:
No A10 OxygenOS is working.
But finally able to boot one A11 GSI ROM! (following your method and with stable China firmware)
Descendant XI - https://downloads.descendant.me/Home/Latest
version: Latest (February 2021 patch)
Working: Everything
Issues:
1. some screen flickering for 2-3 seconds after reboot/boot the phone
2. Audio don't work out-of-the-box (Need to enable 'alternate audio policy for Qualcomm' from Phh-treble Settings)
3. No built-in Camera app
Click to expand...
Click to collapse
Glad that you could flash some GSI ROMs successfully. Actually other than Descendant XI ROM, I could flash and boot some other ROMs as follow:
1. crDroid A11
2. Fluid OS A11
3. Nusantara OS A11
4. StagOS A11
5. LineageOS A11
6. Havoc OS A11
You can find a big vault of GSI ROMs here. There are tens of GSI ROMs to test as far as their unpacked file sizes do not exceed /system partition of the target devices.
Right now crDroid is my most favorite GSI ROM. You can download and test it here.
The reasons why I like this ROM are from stability and least issues and glitches.
I have tested tens of GSI ROMs and many of them have some issues for playing games which fully utilize hardware resources.
When I tested playing games on some ROMs, the games will crash within 15 minutes. But on crDroid ROM, I could play as long as hours with no problem at all.
There are some other glitches about playing streaming VDOs for some other ROMs as well.
By the way, there are different versions of crDroid from different developers. But I tested crDroid ROMs from the link above.
Edit: I usually download Open Camera app for Camera. This app works well just like the camera app that comes with MIUI.

abhi281 said:
Tested A11 ROMs with both TWRP and OrangeFOX, not working. All of them failed with Bootloop (Redmi logo).
So Now I am going to try A10 GSI ROMs in your method (no TWRP or OrangeFox).
Note: I have flash latest stable China firmware before flashing GSI ROMs as you said
Click to expand...
Click to collapse
Have you tried flashing vanilla versions of GSI ROMs with fastbootd and flashing Open GAPPS with TWRP or Orangefox?
If this is possible, we can flash Vanilla version of GSI ROMs that easily fit into limited space of /system partition and flash GAPPS later with custom recovery.

siamese007 said:
Have you tried flashing vanilla versions of GSI ROMs with fastbootd and flashing Open GAPPS with TWRP or Orangefox?
If this is possible, we can flash Vanilla version of GSI ROMs that easily fit into limited space of /system partition and flash GAPPS later with custom recovery.
Click to expand...
Click to collapse
The ROM I am looking for (OxygenOS) has no vanilla versions, I didn't find any
Note: Custom recovery having issues with GSI, I can't flash Magisk with OrangeFOX. Flashing is ok with no error, but after re-booting the device, no magisk in the system! Because of encryption problem? base firmware is MIUI China stable, custom recovery may be not supporting encryption of China firmware.

Related

Create a Treble Rom for this Device?

Do you think there is any way that a Project Treble Rom could be made for this device allowing installation of GSI images? I still use my Vivo 5.
Definitely need a treble rom for Vivo 5. I tried to build it myself but no success. We also need latest TWRP to flash GSI as the version that supports Vivo 5 will not be able to flash GSI.
LearnedKey1290 said:
Definitely need a treble rom for Vivo 5. I tried to build it myself but no success. We also need latest TWRP to flash GSI as the version that supports Vivo 5 will not be able to flash GSI.
Click to expand...
Click to collapse
Please keep trying. attempt to get others to help you if possible.

[NEWS] Required firmware for custom roms

Hello everyone,
We all know that Redmi 5A(riva) officially shifted with Android Nougat and it got good development with various custom roms. Later riva got Android Oreo update and users who were flashing custom rom at the top of oreo firmware was facing bootloop or several issues if it boots.
To prevent such issues, i enforced Nougat Firmware V10.1.1.0.NCKMIFI and it will be necessary to flash that firmware before flashing the rom (once only) else it will show error. Currently, Lineage OS 16.0 comes with enforced firmware and upcoming rom will have that too!
Note : Users who are on MIUI Oreo and if they want to rollback to nougat firmware for flashing custom rom, they are required to flash nougat fastboot rom or follow this post .
Related Download Links
Fastboot Rom: V10.1.1.0.NCKMIFI
Rollback without using MI Flash Tool: Post
Firmware: V10.1.1.0.NCKMIFI
help
uploaded the finished file here, bro
Can I use this method on Xiaomi.Eu Miui 11?
I got Xiaomi.Eu version and twrp oreo right now
Can I flash this fw and recovery over it and then flash custom rom?
Balkan99 said:
I got Xiaomi.Eu version and twrp oreo right now
Can I flash this fw and recovery over it and then flash custom rom?
Click to expand...
Click to collapse
Ofcourse
sunnyraj84348 said:
Hello everyone,
We all know that Redmi 5A(riva) officially shifted with Android Nougat and it got good development with various custom roms. Later riva got Android Oreo update and users who were flashing custom rom at the top of oreo firmware was facing bootloop or several issues if it boots.
To prevent such issues, i enforced Nougat Firmware V10.1.1.0.NCKMIFI and it will be necessary to flash that firmware before flashing the rom (once only) else it will show error. Currently, Lineage OS 16.0 comes with enforced firmware and upcoming rom will have that too!
Note : Users who are on MIUI Oreo and if they want to rollback to nougat firmware for flashing custom rom, they are required to flash nougat fastboot rom or follow this post .
Related Download Links
Fastboot Rom: V10.1.1.0.NCKMIFI
Rollback without using MI Flash Tool: Post
Firmware: V10.1.1.0.NCKMIFI
Click to expand...
Click to collapse
how to upgrade again to oreo? i have flashed miui global firmware via recovery, after boot into setup, device is reboot back to recovery mode. do i need to flash with miflash?
Danisp said:
how to upgrade again to oreo? i have flashed miui global firmware via recovery, after boot into setup, device is reboot back to recovery mode. do i need to flash with miflash?
Click to expand...
Click to collapse
Just flashing nougat fw from recovery won't work, flash is from miflash tool or follow the post and if you want to upgrade it to oreo fw then you can directly flash from recovery or flash from miflash tool.
sunnyraj84348 said:
Just flashing nougat fw from recovery won't work, flash is from miflash tool or follow the post and if you want to upgrade it to oreo fw then you can directly flash from recovery or flash from miflash tool.
Click to expand...
Click to collapse
am already on nougat firmware, now i'm use your los-17.1, and i want to be back to miui oreo, i have installed oreo firmware and oreo recovery, but when i flash the miui global oreo, it stuck on setup and boot back to recovery.

GSI / Treble related question

Hi Guys,
i am currently flashing different GSI to my Galaxy A20e.
Since the experimental TWRP only worked after i flashed an Adroid 9 based Stock firmware, i was until now also only able to flash Pie based GSI using TWRP.
The Q Based GSI won´t boot.
Does it make a difference wich stock FW i flashed before installing TWRP and flashing the GSI.
Is a flashed Q Stock FW required to install Q based GSI?
As far as i thought the Stock FW does not affect these parts, since i was able to flash the GSI even after breaking the installed FW..
Thanks in advance!

[PORT][ROM] Xiaomi Eu [MIUI 11] [Gram] [Stable] [03.09.2020]

Xiaomi EU Rom based on MIUI 11
ONLY FOR GRAM​
By:- Bhavesh saini aka Banom
Instructions::-
1)-Reboot to recovery (No matter what you are using)
2)-Wipe data,cache and format data if you are encrypted.
3)-Unmount Everything Except data (if you are using PBRP)
4)-Flash the Rom file.
5)-Wipe Cache and Don't flash any other zip
6)-Reboot to System.
Additional Stuffs:-
1)- If you reboot to fastboot after installing the rom then repeat the whole procedure.
If you tried everything but still booting in the fastboot then i recommend you to flash stock recovery rom of poco m2 pro first then reboot in that and then come back to recovery and flash again this rom.
Dynamic partition and unstable recovery is causing problem and for many users phone boots to fastboot even after flashing.
BUGS:-
None (Yes 33W fast charging works
But remember you phone name will be changed to redmi note 9s after flashing this but dont worry it will not cause any problem
New Update :-
1)-New improved kernel (Smooth Experience)
2)-Crashes at thetime of setup are fixed now
3)-Fixed kernel Panics causing problems in Wi-Fi and Bt
4)-Fixed Camera AI and Pro colour mode.
5)- Base updated to MIUI 11.0.11
Note :-
Keep your stock Recovery flashable rom handy , In Case you ever get stuck in the bootloop to fastboot , you need to flash stock rom via recovery and then boot into that rom , don't setup that rom , go back in recovery and flash the ported rom and issue of bootloop to fastboot will be solved
Mirrors are welcome, tag/quote me if you mirror, thank you
Support:Telegram at @Banomgram
Downloads
New Build Here
Special Thanks to for helping and guiding me
Dr droid
Rahul singh
Rohit
satish
henlobi
XDAevDB Information
eugram, ROM for the Poco M2 Pro
ROM OS Version: Android 10
ROM Kernel: Linux 4.x
Based On: MIUI
Version Information
Status: Stable
Stable Release Date: 2020-09-03
Created 2020-09-03
Updated 2020-09-03
-Reserved-
bhanu saini said:
-Reserved-
Click to expand...
Click to collapse
Rom is working great.
Please port miui 12.
Already ported miui 12 please check xda
How to download
Safety net does not pass. Is that due to that Redmi Note 9S base? If so is there any way to get it passed ?
ShreyasTheRootMan said:
Safety net does not pass. Is that due to that Redmi Note 9S base? If so is there any way to get it passed ?
Click to expand...
Click to collapse
Will using magisk solve the issue? Is so how can I do that?
Does it have an update of 2.7gb? Because I got an update but afraid to flash.

Question can gsi rom be used on redmi note 10?

Hello
can gsi rom be used on redmi note 10?
How can I install it if it is available?
Yes. You need to unlock bootloader first
Saeless said:
Yes. You need to unlock bootloader first
Click to expand...
Click to collapse
whats the procedure i have unlocked bootloader
was able to flash Android 12 Gsi successfully.. But couldn't Boot system.
Only gsi arm64 Android 12 worked though.
You can check any instructions on Google because Gsi has one way for all devices. but it's on your own risk.
Sorry for being off topic but what's the difference between the custom roms made specifcally for the device and the gsi roms?
Samir2298 said:
Sorry for being off topic but what's the difference between the custom roms made specifcally for the device and the gsi roms?
Click to expand...
Click to collapse
1> Custom ROMs are more Optimized for the devices they are published for. Also, they usually have more features and upgradations while GSI (Generic system Image) is better than plain simple vanilla AOSP (Android Open Source Project) in most cases and are supposed to have a higher chance of adapting for installation on any supportive (ARM architechture etc.) device.
2> Custom ROMs are usually larger in size (1Gb/2gb etc. ) while GSIs are usually smaller in size
( 500Mb/700Mb etc.)
greendrink said:
Hello
can gsi rom be used on redmi note 10?
How can I install it if it is available?
Click to expand...
Click to collapse
OctaviOS GSI (GSI Arm64-ab) booted on my Redmi note 10 but Lineage 18.1 is way better as per my opinion, you have to flash Gapps though.
P.S.- I'm still waiting for some more vanilla ROMs OR GSIs to be made for this device butfrom what I know the developer communities seem to be more in favor of making Rom/Gsi (OR Ports) for the PRO versions of Redmi Note series directly, so some of the lower devices not getting enough attention.
OldNoobOne said:
OctaviOS GSI (GSI Arm64-ab) booted on my Redmi note 10 but Lineage 18.1 is way better as per my opinion, you have to flash Gapps though.
P.S.- I'm still waiting for some more vanilla ROMs OR GSIs to be made for this device butfrom what I know the developer communities seem to be more in favor of making Rom/Gsi (OR Ports) for the PRO versions of Redmi Note series directly, so some of the lower devices not getting enough attention.
Click to expand...
Click to collapse
Is it 11 or 12. Can i have a link to download please
Saeless said:
Is it 11 or 12. Can i have a link to download please
Click to expand...
Click to collapse
11.
It is there on internet or try this link -->
( https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list? )

Categories

Resources