[guide] steps to flash gsi on redmi note 7

Search This thread

bopolsz

Senior Member
Jul 30, 2013
122
36
Legazpi
Realme GT
Screenshot_Pixel_Launcher_20190416-141411.jpg

Screenshot_Settings_20190416-141455.png
what gsi rom you flashed? Can you attach some screenshot ? Thank you!

Gửi từ redmi note 7 của tôi bằng cách sử dụng tapatalk
 

xing2387

Member
Nov 26, 2016
18
5
Droid Turbo 2
Xiaomi Mi 8
  • Like
Reactions: longvt_580

longvt_580

Senior Member
May 19, 2018
64
8
Oh. Can you share me a Link. I will try this.

Gửi từ Redmi Note 7 của tôi bằng cách sử dụng Tapatalk

---------- Post added at 07:22 AM ---------- Previous post was at 07:01 AM ----------

I did some seach, found out that RN7 maybe a A-only device. maybe!



I read it from this forum http://api.bbs.miui.com/forum.php?mod=viewthread&tid=21103643.

Someone said "紅米note 7是A-only,支持PT" which means "RN7 is A-only, support Project Treble".



But, have you tried? I still waiting to unlock... 7 days left.
what happen if I try flash A/B to device support A-only?

Gửi từ Redmi Note 7 của tôi bằng cách sử dụng Tapatalk
 
Last edited:

apartamenti

Member
Mar 23, 2019
27
3
apartamenti.com
I tried to install Resurrection Remix (system-190406-arm64-aonly-vanilla-nosu.img) on redmi note 7 but boot looping!

1. fastboot -w
2. fastboot flash system system-190406-arm64-aonly-vanilla-nosu.img
3. Wipe data - resizing , repair system
4. Flash via TWRP magisk v19
5. boot looping :)
 

longvt_580

Senior Member
May 19, 2018
64
8
I tried to install Resurrection Remix (system-190406-arm64-aonly-vanilla-nosu.img) on redmi note 7 but boot looping!



1. fastboot -w

2. fastboot flash system system-190406-arm64-aonly-vanilla-nosu.img

3. Wipe data - resizing , repair system

4. Flash via TWRP magisk v19

5. boot looping :)
Can you try with PixelDust rom? I will try it tonight.

Gửi từ Redmi Note 7 của tôi bằng cách sử dụng Tapatalk
 

ahadrox

Senior Member

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    [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
    8
    Which one? And did u flash it before or after flashing the gsi system.img?
    It was a pain till i found the right way.

    Resume:
    • Go back to Xiaomi.eu developer 9.4.18
    • TWRP > backup > vendor image (save it in a usb otg)
    • Fastboot mode and connect to computer
    • terminal/cmd (on computer)
    • fastboot -w
    • fastboot flash system system.img
    • TWRP > mount > system
    • TWRP > install> GApps
    • TWRP > install > magisk (canary)
    • TWRP > wipe > advanced wipe > system, select repair or change file system > repair
    • TWRP > wipe > advanced wipe > system, select repair or change file system > resize
    • TWRP > restore > vendor image
    • Reboot
    5
    My bootloader-unlock timer finally expired today. So, I unlocked the bootloader of my Redmi Note 7 (32GB+3GB) and installed phusson's phh-treble AOSP build (with gapps and phh-superuser preinstalled) with the help of the original post and the replies from some of the members here. So, I'm listing below the steps I took to get everything functional.

    Pre-Installation Build: MIUI 10 India Stable 10.2.11 (the vendor.img is from this build, which is the latest stable build in India as of 27.04.2019)

    Steps
    1. Unlocked the bootloader with XiaomiToolV2 (link below) on a Macbook Pro (it's a straight-forward process and I didn't have to install fastboot or adb before hand)
    2. Downloaded and installed fastboot and adb (made sure the XiaomiToolV2 DMG is unmounted)
    3. Enabled USB debugging and ensured my device was read properly by adb and fastboot
    4. Reboot to fastboot
    Code:
    adb reboot bootloader
    5. Reset your partitions
    Code:
    fastboot -w
    6. Installed TWRP
    Code:
    fastboot flash recovery recovery.img
    7. Reboot to recovery (hold the volume-up button as soon as the screen goes blank)
    Code:
    fastboot reboot
    8. In TWRP, used adb push to load the system.img to /sdcard/TWRP
    Code:
    adb push system.img /sdcard/TWRP/system.img
    9. Installed the system.img image from TWRP
    10. Installed Magisk v19.0 (link below) from TWRP
    11. Reboot to system
    12. The system will take some time in the initial bootup to encrypt the data. It will then reboot and go through the first boot process.
    13. Enable USB debugging and fix the brightness post-bootup (I still see the issue when booting up after decrypting data)
    Code:
    adb shell
    su
    setprop persist.sys.qcom-brightness 4095
    14. phh-treble doesn't pass the SafetyNet (ctsProfile: fail) by default. So, I followed a fix on phusson's GitHub (link below) to get the build to pass SafetyNet.

    Edit:
    The configuration to use for setting up SafetyNet fix on Magisk Config is as below
    Code:
    Edit device fingerprint > Pick a certified fingerprint >  Xiaomi > Redmi Note 7 > yes > back > back > back
    
    Script settings > Boot stage > Late service > post-fs data > yes > back > back > back

    Other Notes
    - Fingerprint is working fine
    - Brightness issues are not being seen at runtime (they are seen during bootup, though)
    - SafetyNet is passing (so Google Play status is "Certified")

    Links
    - Magisk and TWRP links I got from the All-in-One thread located in this sub-forum: https://xdaforums.com/redmi-note-7/how-to/one-redmi-note-7-unlock-bootloader-t3890751
    - Fix for the SafetyNet: https://github.com/phhusson/treble_experimentations/issues/116
    - Patatra's post was especially helpful too: https://xdaforums.com/showpost.php?p=79386506&postcount=76
    - Ofcourse, OPs post was helpful too.
    4
    Can you please share more screenshots?
    Like in memory section (RAM) usage and the stock launcher and settings main page?
    Thanks in advance bro.

    It took me like 10 minutes to upload these screenshots :laugh:
    But it's my pleasure to help.
    I do notice that the touch latency is not on par with miui or maybe it's because of animation. Scrolling in the settings menu is a tad slower but it is not annoying because apps run as it should be. Although some apps are not in full screen and it has no option like in miui to force the app to fill out the rest of the screen but hey, AOSP is AOSP and even with these minor issues I still enjoy the simplicity of AOSP based roms.
    3
    Screenshot_Pixel_Launcher_20190416-141411.jpg

    Screenshot_Settings_20190416-141455.png
    what gsi rom you flashed? Can you attach some screenshot ? Thank you!

    Gửi từ redmi note 7 của tôi bằng cách sử dụng tapatalk