[guide] steps to flash gsi on redmi note 7

letsmakecakes

Senior Member
Apr 11, 2017
844
4,150
113
Dhaka
[GUIDE] STEPS TO FLASH GSI ON REDMI NOTE 7 [lavender]​

Many of us tried Flashing GSI on our Redmi Note 7 but failed due to various reasons even though it is absolutely bugless for Redmi Note 7 .
Here are the steps which i will mention below that will let us use the full potential of GSI.

Requirements :
  • Bootloader Unlocked
  • TWRP Installed
  • Ofcourse a working device

Installation Method :
  • First of all we need the flash the latest chinese beta rom.It gets updated everyweek. Since I have the cn rn7 i prefer to update the vendor partition everyweek for fixes and latest updates.But you can try on your stable rom too (I can't gurantee if things will work out on stable rom or not) .So, first of all be on china beta rom.
  • Go to fastboot mode and connect your pc to your device .You need to have installed xiaomi drivers to make this work properly. Once you are in fastboot ,open a terminal/cmd and type : fastboot -w ( this will erase your existing system partition and data and internal storage too , so make sure to have a backup if you have something essential on ur device)
  • Now considering that we have already downloaded a gsi i.e a phh GSI ..now for this case we are gonna assume its aosp as an example.. while in the fastboot mode type : fastboot flash system system.img ( here system.img(it can be of different name too) is the gsi img which you download from phh thread).
  • Remember : once the flash is completerd reboot to TWRP and not to system.
  • Once you are in twrp , flash magisk ( flash magisk latest canary as it has support for system as root devices) then press on wipe button of twrp,,,then advanced wipe..then tick mark on system and you will see repair or change file system option.Click on it..Click on repair and resize file system.
  • Now go to mount settings and mount system partition. Now you can flash gapps if you want .
  • After flashing gapps finally reboot to system
  • Voila! After in about 5 mins you will be booted to GSI rom

Post Installation Method :
  • You will have almost everything working after booting into gsi except you will run into brightness bug which you can fix by the following way
  • Connect your device with pc and enable mass storage
  • open a cmd/terminal on ur pc
  • type the following codes : adb shell
    su ( in this case you will have to give permission from your device ; grant it)
    setprop persist.sys.qcom-brightness 4095
  • Congragulations Now you have installed a gsi perfectly on your device :)

In this way you can flash almost all the gsi available on phh thread :) Hope this clarifies all of our problems.
Hit Thanks if I helped you somehow with this
 

chiplovez9x

Senior Member
May 31, 2012
109
12
0
repair or change file system option.Click on it..Click on repair and resize file system. I don''t get this one. There are a few options inside
 

Forever Alone

Senior Member
Jun 22, 2012
796
1,067
0
I don't know much but gsi means u can flash almost all roms (which have images). And most of ROMs do have gsi images.. So u can install any rom on your phone. I don't know the steps to do so.. ?
 

PROdelision

Senior Member
Dec 11, 2015
615
117
0
21
Dombivli
No, its not required.
here's everything i did:
on miui beta.....already encrypted.
did fastboot -w
flashed latest RR gsi via fastboot
booted to twrp, flashed magisk(v19), repair and resize
reboot
asks for decryption password

where exactly am i going wrong?
able to boot if im using decrypt zip but lockscreen doesnt work.
 

ahadrox

Senior Member
Jun 23, 2016
246
64
38
[GUIDE] STEPS TO FLASH GSI ON REDMI NOTE 7 [lavender]​

Many of us tried Flashing GSI on our Redmi Note 7 but failed due to various reasons even though it is absolutely bugless for Redmi Note 7 .
Here are the steps which i will mention below that will let us use the full potential of GSI.

Requirements :
  • Bootloader Unlocked
  • TWRP Installed
  • Ofcourse a working device

Installation Method :
  • First of all we need the flash the latest chinese beta rom.It gets updated everyweek. Since I have the cn rn7 i prefer to update the vendor partition everyweek for fixes and latest updates.But you can try on your stable rom too (I can't gurantee if things will work out on stable rom or not) .So, first of all be on china beta rom.
  • Go to fastboot mode and connect your pc to your device .You need to have installed xiaomi drivers to make this work properly. Once you are in fastboot ,open a terminal/cmd and type : fastboot -w ( this will erase your existing system partition and data and internal storage too , so make sure to have a backup if you have something essential on ur device)
  • Now considering that we have already downloaded a gsi i.e a phh GSI ..now for this case we are gonna assume its aosp as an example.. while in the fastboot mode type : fastboot flash system system.img ( here system.img(it can be of different name too) is the gsi img which you download from phh thread).
  • Remember : once the flash is completerd reboot to TWRP and not to system.
  • Once you are in twrp , flash magisk ( flash magisk latest canary as it has support for system as root devices) then press on wipe button of twrp,,,then advanced wipe..then tick mark on system and you will see repair or change file system option.Click on it..Click on repair and resize file system.
  • Now go to mount settings and mount system partition. Now you can flash gapps if you want .
  • After flashing gapps finally reboot to system
  • Voila! After in about 5 mins you will be booted to GSI rom

Post Installation Method :
  • You will have almost everything working after booting into gsi except you will run into brightness bug which you can fix by the following way
  • Connect your device with pc and enable mass storage
  • open a cmd/terminal on ur pc
  • type the following codes : adb shell
    su ( in this case you will have to give permission from your device ; grant it)
    setprop persist.sys.qcom-brightness 4095
  • Congragulations Now you have installed a gsi perfectly on your device :)

In this way you can flash almost all the gsi available on phh thread :) Hope this clarifies all of our problems.
Hit Thanks if I helped you somehow with this
Which GSI should be needed to take? A-only or A/B ?
 

pryggi

Senior Member
Aug 27, 2015
358
189
43
here's everything i did:
on miui beta.....already encrypted.
did fastboot -w
flashed latest RR gsi via fastboot
booted to twrp, flashed magisk(v19), repair and resize
reboot
asks for decryption password

where exactly am i going wrong?
able to boot if im using decrypt zip but lockscreen doesnt work.
I have no experience with GSI images, but I know in general that PIE breaks the encryption, if you roll back the security patch level. I don't know it this happened in your case, but I have lost couple of times my encrypted storage when I have tried to restore a backup of rom with older android patch level. After that, the bootup encryption pin is no longer accepted, neither by android nor by twrp, so the only option is to format data to remove encryption and start from scratch.

Were your miui beta and rr gsi of the same android security patch level?
 
Last edited:

satadi

Member
Apr 8, 2019
27
11
0
[GUIDE] STEPS TO FLASH GSI ON REDMI NOTE 7 [lavender]

Many of us tried Flashing GSI on our Redmi Note 7 but failed due to various reasons even though it is absolutely bugless for Redmi Note 7 .
Here are the steps which i will mention below that will let us use the full potential of GSI.

Requirements :
Bootloader Unlocked
TWRP Installed
Ofcourse a working device


Installation Method :
First of all we need the flash the latest chinese beta rom.It gets updated everyweek. Since I have the cn rn7 i prefer to update the vendor partition everyweek for fixes and latest updates.But you can try on your stable rom too (I can't gurantee if things will work out on stable rom or not) .So, first of all be on china beta rom.
Go to fastboot mode and connect your pc to your device .You need to have installed xiaomi drivers to make this work properly. Once you are in fastboot ,open a terminal/cmd and type : fastboot -w ( this will erase your existing system partition and data and internal storage too , so make sure to have a backup if you have something essential on ur device)
Now considering that we have already downloaded a gsi i.e a phh GSI ..now for this case we are gonna assume its aosp as an example.. while in the fastboot mode type : fastboot flash system system.img ( here system.img(it can be of different name too) is the gsi img which you download from phh thread).
Remember : once the flash is completerd reboot to TWRP and not to system.
Once you are in twrp , flash magisk ( flash magisk latest canary as it has support for system as root devices) then press on wipe button of twrp,,,then advanced wipe..then tick mark on system and you will see repair or change file system option.Click on it..Click on repair and resize file system.
Now go to mount settings and mount system partition. Now you can flash gapps if you want .
After flashing gapps finally reboot to system
Voila! After in about 5 mins you will be booted to GSI rom


Post Installation Method :
You will have almost everything working after booting into gsi except you will run into brightness bug which you can fix by the following way
Connect your device with pc and enable mass storage
open a cmd/terminal on ur pc
type the following codes : adb shell
su ( in this case you will have to give permission from your device ; grant it)
setprop persist.sys.qcom-brightness 4095
Congragulations Now you have installed a gsi perfectly on your device :)



In this way you can flash almost all the gsi available on phh thread :) Hope this clarifies all of our problems.
Hit Thanks if I helped you somehow with this
Hi!

Did you not disable dm-verity and force-encryption?

Another question, the dev MIUI roms contain both the system and vendor partitions, right? How do you install only the vendor partitions from them? Or do you just flash MIUI and then reflash the custom ROM system? In that case, won't that affect dm-verity and encryption on the data partition?
 
Last edited:

LionHeart90

Senior Member
Nov 14, 2018
354
151
0
Flashing correctly a GSI like in this guide; with vendor ecc ecc, will gcam work? Actually i'm on stock MIUI 10 and obv all working fine with a perfect version. My doubt is it. :confused:
 

Forever Alone

Senior Member
Jun 22, 2012
796
1,067
0
Did you not erase your /data partition through TWRP?
---------- Post added at 03:06 AM ---------- Previous post was at 02:46 AM ----------


Did you not erase your /data partition through TWRP?
I did wipe userdata but not internal storage. heard its because i have unencrpyed data partition?
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone