[Android Software/Hacking General [Developers Only]] NinjaChunks:
Note: Device must be project treble supported

Spoiler content hidden.

This method is for mediatek chipset devices only

Disclaimer:

This guide does not include the normal process of flashing GSI using DSU ( Dynamic System Update ), you can learn more about that here. By using this method, you can’t use both stock rom along with GSI, you will be flashing a modified super.img. There is a risk of bricking your device and causing irreversible damage to it if not done correctly. This guide also works for devices with IMEI erased due to reason such as ( formatting all partitions while flashing )

Before doing any modifications it is important to have a backup which can be used if something goes wrong. Follow this guide to know how to backup all partitions which can be flashed to recover your device

Flashing GSI includes potential risk of bricking the device because of modifying critical partitions, it is recommended to take backup before proceeding

If you are not familiar to flashing files to your phone, do not worry we will learn along the guide

Flashing GSI:

Prerequisite:

1. Mediatek drivers- Download here

2. Python- Download here | Git- Download here

3. Unlocked bootloader- steps mentioned below

4. MTK Client GUI- Download here

5. SP Flash Tool- Download here

6. Stock ROM with custom super- Download here [ Only for Narzo 30 pro ] [ RMX2117 ]

Guide for making custom super for other devices will be uploaded soon​

Setup:

1. Mediatek drivers

Extract the zip and run the exe file, after the installation process is complete restart your PC

If your device still isn't detected, install drivers manually with help of this guide

After the installation process is complete, restart your PC

2. Python | Git

Go to python directory

Search python in start menu, right click python and click on open file location, again right click on python and click open file location | This is the python directory.

Type cmd inside the address bar of file explorer and press Enter

Inside command prompt windows exectue following commands one by one

Thanks Bjoern Kerler

git clone https://github.com/bkerler/mtkclient
cd mtkclient
pip3 install -r requirements.txt

3. Unlocked Bootloader [ User data will be formatted ]

Turn off your phone

Open python directory and open mtkclient folder inside it

Type cmd inside the address bar of file explorer and press Enter

Now run below command

python mtk e metadata,userdata,md_udc

Connect phone to PC with USB Cable while holding Vol+ and Vol- together

Now run below commands one by one

python mtk da seccfg unlock
python mtk reset

After the script completes, disconnect phone and reboot by holding power button

Your device's bootloader is unlcoked now ╰(*°▽°*)╯

4. MTK Client GUI [ Use this tool carefully, don’t click on something if you don’t know what you are doing ]

Open MTK Client GUI 2.0 folder and install UsbDk_1.0.22_x64.msi

5. SP Flash Tool [ Use this tool carefully, never tick Format All + Download option, that will format all partitions which can erase partitions containing IMEI too! ]

Custom Super.img

Super.img consist of various partition on your device eg: system, vendor, product, odm, etc

This custom super.img, replaces a partition – system | The stock system image is replaced with system image of GSI

You can make your own custom super.img and flash it on your device and try different GSI

Steps for doing this will be updated in near future

Now comes actual flashing part:

Before proceeding check if your device is project treble supported using treble check app. We will be flashing Evolution X GSI by ponces on Realme Narzo 30 Pro [RMX2117] using SP Flash Tool

Note: Device must be on Android 11 if you are using the super from the files uploaded

Steps:

Open MTKClient GUI 2.0 folder and run Bypass.exe, select option 3- Bypass SLA / DAA by using down arrow key and press enter.

It will ask do you want to continue?, type y and press enter

Tool will be waiting for device to connect

Switch off your phone

Hold volume up and volume down together and connect phone to PC with USB cable

Tool will detect the phone and start the bypass process

Once completed, keep the phone connected

Open SP Flash tool by double clicking flash_tool.exe and choose download only option from drop down menu

Choose Download-Agent option on right side and choose MTK_AllInOne_DA.bin file from SP Flash Tool folder

Choose Scatter-loading File MT6853_Android_scatter.txt from Stock ROM with GSI folder

Choose Authentication File auth_sv5.auth from Stock ROM with GSI folder

Now all partitons of your device will be listed within the tool

Scroll down until you see super.img , now check the only box on left of super

Click on right of super to select location where our custom built super with Evolution X GSI is stored

Click on Download

Once the flashing is complete, there will be a prompt with green tick

Disconnect your phone

Your device has GSI flashed now ╰(*°▽°*)╯

Since GSI is not built for the device you are flashing on specifically, it has bugs or they lack the ability of customizing it for every device but there are fixes too!

GSI fixes/patches/mods for RMX2117 will be uploaded in near future

Screenshots:

View attachment 5854217 View attachment 5854219 View attachment 5854225