[Redmi 9 / Poco M2 Guides, News, & Discussion] Shas45558:
prove:

I give a zip file.download and extract it.you can find a video watch it as the prove of this post

You can test GSi ROM without any data loss.....

Requirements:

1.Need a laptop with Linux (window also can do...but Linux is batter for CMD line)

2.Unrooted phone.(magisk patch boot not boot gsi for my case try it if it work or not)

3.vbmeta.img(flash it via 'fastboot flash vbmeta vbmeta.img')

3.java installed in your machine...

4.Working brain to solve Errors.:fingers-crossed::fingers-crossed:

Step 1:

Go to the link and download any official gsi arm64-ab version (I can not boot unofficial gsi..Descendant X....any room which it not boot remember you cannot boot it even fastbood method )

https://www.google.com/url?sa=t&sou...FjAAegQIARAB&usg=AOvVaw0IRaTTGUOyl04z17LCE96H

Step 2:

Extract and rename file as 'system.img'...

Step 3:

Now open CMD terminal from where your system.img located and paste this cmd...

simg2img system.img system_raw.img

Error and slove...

You need to install simg2img on Linux...

After install and run this CMD you found error like about header file magic or like something...do not worry... that's mean your system.img file already a raw file and do not need to convert it..just rename this file as 'system_raw.img'

Step 4:

Now open CMD terminal from where your system_raw.img located paste this cmd...

gzip -c system_raw.img > system_raw.gz

Wait for finish..

Step 5:

Now connect your phone with via cable and in developers options turn on usb debugging mood and run this CMA...

adb push system_raw.gz /storage/emulated/0/Download/

Wait for finish.....:p:p...

Step 6:

Now run this CMD..

adb shell setprop persist.sys.fflag.override.settings_dynamic_system true

Step 7:

Now run this CMD...

adb shell am start-activity \

-n com.android.dynsystem/com.android.dynsystem.VerificationActivity \

-a android.os.image.action.START_INSTALL \

-d file:///storage/emulated/0/Download/system_raw.gz \

--el KEY_SYSTEM_SIZE $(du -b system_raw.img|cut -f1) \

--el KEY_USERDATA_SIZE 8589934592

You need to varying your identity by fingerprints or parttern if your device has lock function on...after varify you will notice a notification like this...

Dynamic system update

That's mean you can successfully do my instructions....:cyclops::cyclops:..

Wait for finish....

Now you have two option restart or discard....

Tap restart to go to your gsi or discard to destroy gsi install....

On gsi you can do what you want..:p:p

If your work or discover finis then reboot the phone with power button option.

After reboot you are now miui and yes no data lost...

After some moments you can again get two options (Restart or discard)...

This process go untill you discard gsi...

If you stay gsi after reboot then run the CMD....

adb shell gsi_tool enable

Now you can stay gsi after reboot how many time you want...

Disable this feature now type this CMD ...

adb shell gsi_tool disable

If you face some problems....tell me want is your problem...:o:o...

If you can dual boot your device the thanks is free...:D:D

Go throw below link for more information...

https://developer.android.com/topic/dsu