Install Android GSI Easily - Xiaomi Redmi Note 7 Pro Guides, News, & Discussion

Hello Friends,
Here is the procedure to install any GSI on your android phone supported by project trebble.
Steps:
1) Reboot into Recovery ( twrp or any other ).
2) Wipe Cache , Data and Dalvik Cache only.
3) Reboot into Recovery again.
4) If you have image file in device then flash that into system image , and if not then fist push the file into device using command: adb push gsi.img /sdcard/ ( change gsi.img into name of your gsi image ).
5) Reboot to recovery again.
6) Format data and reboot to system. Don't reboot to recovery again here.
You will be able to boot into gsi rom after implementing all these steps. Hope this helps you :good: .

Related

what m I doing wrong ?

Hi, I have some problems with TWPR on my mi 8.
Last night I was trying to root my mi8, and first step was to install custom recovery. So i did these steps:
1st try:
1. opened ADB
2. typed "adb reboot bootloader"
3. "fastboot boot recovery.img"
4. TWRP has opened
5. installed Magisk from TWRP installed no-verity-opt-encrypt-6.0
5. wiped cash dalvik and data
6. rebooted to system
7. bootloop
2nd try:
1. installed V9.5.13.0.OEAMIFA with miflash
2. "adb reboot bootloader"
3. "fastboot flash recovery recovery.img"
4. TWPR has been installed
5. wiped cash and dalvik and tryed to boot before I flash magisk
6. this time not even a bootloop just TWPR keeps booting
7. I tought mabye I need to install fresh sistem from TWPR then to root
8. dowloaded "miui MI8Global 8.9.11"
9. then i used USB-OTG to install rom from USB
10. when install was done I wiped cash and dalvik
11. system has booted
12. let's root now
13. VOLUMEUP + POWER ........ bam there is no TWPR anymore just stock recovery even I installed the rom through the TWPR
What m I doing wrong ???
For official miui you need to flash twrp and dmverity to boot.
I did install no-verity after magisk.
Does it matter if I did it after magisk installation?
You can do it by first flash twrp+ dmverity boot to system. Then flash magisk after. Donne
and dont forget to format data via twrp by the typing YES

After installing custom rom successfully,set failed to reboot into system

I wanted to install custom rom for realme 3 pro, so i followd the following steps -
1. Unlocked Bootloader
2. Install TWRP ( file size 26 mb)
3. Install Vbmeta.img
4. Wipe cache,data,dalvik / also tried format data / also tried wipe cache, dalvik, system
4. Install charlie decryption tools
5. Install Custom Rom
it shows flash is successful, but set reboots into fastboot mode... i powered off phone, then power on,but again set boots into fastboot mode although twrp installed successfully,rom flashed successfully..but set dowsn't reboot into system rather it reboots into fastboot mode...
I also tried orange fox recoveey but same problem happens
Note before - I haven't installed magisk and gsi on my device
now, how can i install custom rom?
:fingers-crossed::cyclops:

Bootloop even after flashing stock MIUI with Fastboot

I was running the latest MIUI Global 11.0.2 and wanted to go back to custom ROMs since its really slow
I unlocked my bootloader and flashed LOS 17.1 with NikGapps
It didn't boot, I tried flashing it a few other times and flashing the latest firmware, etc
now even OrangeFox recovery can NOT mount almost any of the partitions and even after flashing MIUI using mi flash I am stuck in a boot loop
I am really unsure about what I should do, Fastboot MIUI would always fix such problems
Any help would be great
"Format Data" using OrangeFox recovery
then clean install any rom you wish
Same here, i was on MIUI11, decided to install Aosp extended but when i tried to flash again MIUI from fastboot i get bootloop. Now not only on miui, but also bootloop on custom roms. Tried everything with both twrp and orangefox.
I'm following this post
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.​
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.​
Click to expand...
Click to collapse
That WORKS for me! Thanks!
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.​
Click to expand...
Click to collapse
Hi bro,
I tried every method, fastboot rom, fastboot boot twrp, flash recovery , but it still stuck at fastboot rom. What hapoened to my phone. Even i took my phone to mobile repairing market. They couldn't boot the MIUI. Still stucked on fastboot mode
sohaiburrasool said:
Hi bro,
I tried every method, fastboot rom, fastboot boot twrp, flash recovery , but it still stuck at fastboot rom. What hapoened to my phone. Even i took my phone to mobile repairing market. They couldn't boot the MIUI. Still stucked on fastboot mode
Click to expand...
Click to collapse
fastboot boot image.img (name of the recovery image)
adb reboot recovery
fastboot reboot recovery
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.​
Click to expand...
Click to collapse
Hey there is no option of "persist partition" in my twrp, what should I do?
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.​
Click to expand...
Click to collapse
Hello !
I solved this in different way because that solution was not working for me. It seems that MI account was still on the phone and making the flash stock roms attemps fail miserably, I didn´t know about that until i install this rom:
"MIUI 12.5 Android 10 Xiaomi.EU by PaintYourAndroid for Vince"​The thing was that custom rom and twrp fastboot via work fine, so i tried different roms and finally came to this when i installed that rom above: THIS PHONE IS LOCKED, ACTIVATE THIS PHONE (MI ACCOUNT). So i activate the phone and went to the initial setup and go for the mi account and closed the session on the phone.
Next step, flash with miflash and stock rom V11.0.2.0.OEGMIXM and lock bootloader (its my wifes phone) and finally works!!
Maybe the MI account is locking down the flash because security reasons and blockin the flashing process.
I hope this another solution works for anyone. And before mess with custom roms closed the session of mi account if you are using it. I factory reset the phone before unlock bootloader (via miunlock) but that was not enough.
Cheers
kunalsbdr said:
Hey there is no option of "persist partition" in my twrp, what should I do?
Click to expand...
Click to collapse
For flashing, i've used "miui_HM5PlusGlobal_V11.0.2.0.OEGMIXM_f74369de0c_8.1.zip" and i've taken persist.img from "Xiaomi_Redmi_5_Plus_V11.0.2.0.OEGMIXM_20191108.0000.00_Global_8.1_XFT_(by_xiaomistockrom.com).zip"
and it worked for me too
I encounter the similar behaviour on my Redmi Note 9 Pro Global (joyeuse) : after flashing stock fastboot image using flash_all.bat or flash_all_except_data_storage.bat, the phone cannot get past the initial Redmi logo.
I fixed it by using the official MiFlash tool https://cdn.alsgp0.fds.api.mi-img.com/micomm/MiFlash2020-3-14-0.rar
I have no idea why running the bat files doesn't work.
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.​
Click to expand...
Click to collapse
After fighting a few days with repair my POCO x3 NFC and looking for solution online which I didn't find, I can say that partially because of this post, I was able to install finally stock MIUI ROM. I was able to install only Elite Rom and it worked (strange).
I manually made a flash_all.bat file that it installs all stock MIUI images via fastboot, then (I don't really remember everything sorry ;( too many operations) then installed TWRP 3.5.2_10-5 surya, then wipe as GuestD2468 says on point 4, then fastboot flash (or TWRP flash?) persist.img also from MIUI stock firmware\images folder, still bootloop so the I flashed (update?) miui_SURYAEEAGlobal_V12.0.8.0.RJGEUXM_11.0.zip and then Stock MIUI finally runs Hurraaa . Sorry for not remember of exact queue of operations ;(.
What I still observed is that I can't still see SUPER or SYSTEM partitions in TWRP or OrangeFox. Im really sure that I saw SUPER partition for example to wipe in TWRP before I start playing with custom roms. It looks like Super partition disappears forever (or current versions of TWRP and OF didn't see that partitions?) Maybe its a problem to install roms because there is "no such partition"? Super partition is not active and making troubles with installing roms? Im amateur in new android 10 or 11 partitions (I had HTC m8 before). So I decided to flash that original stock ROM and just wait for better official TWRP's.
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup o​
Click to expand...
Click to collapse
where do you flash the persist.img? on adb like fastboot flash persist persist.img?
Hi guys please help me.. Today when i woke up my phone stuck on Mi logo and restart and restart.... my Fastboot is locked, so i try to flash the stock firmware with EDL mode... firmware flash was successfuly, but the problem with Mi logo and restarting is still here ( only restart and nothing happen) . I tried different stock firmwares ( old and new ). Please help me
danielristov said:
Hi guys please help me.. Today when i woke up my phone stuck on Mi logo and restart and restart.... my Fastboot is locked, so i try to flash the stock firmware with EDL mode... firmware flash was successfuly, but the problem with Mi logo and restarting is still here ( only restart and nothing happen) . I tried different stock firmwares ( old and new ). Please help me
Click to expand...
Click to collapse
hi, you still need help?
samuelpired said:
hi, you still need help?
Click to expand...
Click to collapse
i tried Above Method ,
I tried to flash rom , flashing got successfull , but my device(mi max 2) got stuck in mi logo .
Even Twrp is tuck in logo page . I even tried to flash orangeFox that also got stuck in logo page.
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.​
Click to expand...
Click to collapse
How can you reboot recovery in step 5 after wiping the system in step 4. Recovery gives the waring "No OS is installed, do you still wish to reboot" before rebooting and if we reboot phone shows "System is Destroyed" and the recovery is automatically removed , only fastboot remains.

Question Custom recovery???

Hi, I wanted to know if there is currently a working custom recovery for Redmi note 11s, if so which one and how to proceed ... thanks
https://forum.xda-developers.com/t/root-poco-m4-pro-4g-fleur-using-magisk.4449193/post-87460153
When you on Android 11 its working like charme, but when you on Android 12/13 it doesnt work, because of the encryption problem. you cant mount data...
when you will install (you need a sdcard):
1. boot to fastboot
2. fastboot flash boot "twrp.img"
3. fastboot reboot (reboots to twrp)
4. put the stock-boot.img on your sdcard and flash it with twrp to boot -> select both partitions (a/b)
5. go to advanced -> flash twrp
6. format data
7. reboot to recovery and test if you can mount data
8. reboot and enjoy!

[GUIDE] How to flash GSI roms on the Mi 9

Hello. In this guide i will show you step by step on how to flash GSI roms on our beloved Mi 9.
I AM NOT RESPONSIBLE FOR BRICKING YOUR DEVICE. PROCEED WITH OWN RISK.
Things you'll need:
- a PC
- a Mi 9 with bootloader unlocked
- MIUI 10 (for android 9 gsi's)/MIUI 12 (for android 10 gsi's) OR MIUI 12.5 (for android 11 and newer gsi's), recomended to download from https://xiaomifirmwareupdater.com/
- TWRP, vbmeta.img and disable-dm-verity.zip (TWRP can be obtained on theirs website, the other files are in this post. NOTE: I AM NOT THE CREATOR OF ANY OF THESE.)
- MiFlash app
- minimal adb and fastboot installed (recomended to use this)
- a A/B GSI of your choice (must be a .img file)
1st STEP - FLASHING STOCK ROM
(if you already have the stock rom then skip this)
1. Extract the archive downloaded earlier (i prefer doing it with 7-zip as its easy)
2. Open MiFlash and select the ROM, then click on "clear all" (to leave the bootloader unlocked).
3. Enter fastboot mode by holding vol down + power button and plug in the phone to your PC.
4. Click "refresh" on MiFlash, make sure your device is detected and click flash!
2nd STEP - PREPARATION
1. Boot into fastboot mode and plug in the phone to your PC.
2. Flash TWRP recovery.
Code:
fastboot flash recovery twrp.img
3. Flash the vbmeta image.
Code:
fastboot flash vbmeta vbmeta.img
4. Reboot into TWRP by holding vol up + power button.
5. In TWRP, wipe system, cache, dalvik cache and data.
LAST STEP - FLASHING
1. Reboot into fastboot from TWRP or by holding vol down + power button.
2. Flash the GSI image.
Code:
fastboot flash system system.img
NOTE: Some GSI'S may not flash as they are bigger than the system partiton. The system partition can be resized but i won't cover it in this tutorial.
3. Reboot into TWRP again.
4. In TWRP, install the disable-dm-verity.zip.
5. To make sure everything will be okay, wipe cache and dalvik cache, then FORMAT (format, not wipe) data.
6. Reboot into system
ENJOY THE GSI!
(sorry if i made any spelling mistakes lol)

Categories

Resources