[GUIDE] Run OEM GSI on Xperia X Performance

Sjll

Recognized Developer
Jun 4, 2017
375
381
63
Chongqing
I tested some OEM GSI of Erfan, I give a list which GSI could run on our device.
Download Link
If you meet random reboot when booting, try to flash Treble files(boot.img vendor.img) again.
V2.0 is the most stable Treble version, I tested on it.

These GSI could run on V2.0 :

Flyme-Aonly-9-20190702-ErfanGSI
HydrogenOS-Aonly-9-20190614-ErfanGSI
MIUI-Aonly-9-20190529-ErfanGSI
OxygenOS-Aonly-9-20190701-ErfanGSI
ZUI-Aonly-9-20190617-ErfanGSI


How to flash

1.Flash treble files.(See Readme.txt)
2. Flash GSI.
3 Make sure your data partition is not encrypted.(Format in twrp)
4.Get adb permission.
5 Flash treble TWRP and flash Magisk.
6. Reboot.

How to get ADB permission
1. Our treble TWRP V2 doesn't support MTP, so we need V1 to access Data partition.
2. After you flashed and boot into treble TWRP V1, You need to make sure your data partition is not encrypted. So you need to format data partition.
3. Enable adb before boot using this command in TWRP:
Linux/mac :
Code:
adb push ~/.android/adbkey.pub /data/misc/adb/adb_keys
Win :
Code:
adb push C:\Users\[COLOR="Red"]<userName>[/COLOR]\.android\adbkey.pub /data/misc/adb/adb_keys
4.Reboot, you will get adb permission.

How to kill[ Notch/B]

1. Move fxxknotchv6.apk to /system/product/overlay
2. Set permission 0664
3.Reboot

Attention
1. HydrogenOS-Aonly-9-20190614-ErfanGSI will failed at Setup guide. You can run these commands to disable Setup guide.
Code:
adb shell
settings put global device_provisioned 1
settings put secure user_setup_complete 1
reboot
You can go into desktop. Then delete SetupWizard.apk.

2. MIUI will cost a long time on booting. If you can't enter desktop, try to showdown with power + vol up, then boot again.

3. OxygenOS need to flash OOSHDRfixAonly after flashing system image.
You can download it from Here.
 

Attachments

Last edited: