Here's the guide to convert an Oreo trebled DSSI(OEM ROM) into an sGSI.
Before starting, I have to claim these points below:
1.This thread aims to converting ,not generalizing.This means they are the basic steps of porting a DSSI, I can lead you to boot, but bug fixes are up to you.
2.Some of the devices with official / unofficial treble support isn't compatible with sGSI(at least my definition) e.g. mido
3.Only supports Oreo porting.VNDK version of DSSI and your vendor needs to be the same.If you want to support a different vndk,you should investigate the way to add another vndk support by yourself.
First - unpack and deploy the original rom to your device.
This means that you don't need to use a kitchen,as it will cause problems.
Unpack the rom and get raw system.img.
-use brotli tool to covert system.new.dat.br to .dat
-use sdat2img to convert dat to raw img
Mount it to your device's /system
-copy it to your sdcard.
-goto twrp-advanced-terminal
Enter:
losetup /dev/block/loop0 /sdcard/system.img
mount /dev/block/loop0 /system
Debloat it by using filemanager
-Goto twrp file manager,
-goto /system
-delete only apps that you are sure it's safe to remove(e.g. Downloadable GApps)
Create a twrp backup of the target
-Just use twrp to backup /system using normal method.
Write /system to your real partition.
-twrp mount menu - uncheck /system
-restore your backup created.
Then you've flashed the rom's system to your device.
Second - SELinux Fix
This is the most important step to avoid fastboot kick.
-Download an Oreo GSI and unpack using whatever methods you like.
-extract /system/etc/selinux/mapping from the GSI.
-adb push <your extracted folder>/system/etc/selinux/mapping/. /system/etc/selinux/mapping
To test it:
Flash permissiver.zip from semiGSI thread.
Reboot.
If your device isn't kicked into fastboot mode, then it's possible to port this DSSI.
Third - ramdisk fixes.
Get boot patcher from any sGSI thread.
Unpack target rom's boot.img
Put necessary files into boot patcher zip.
Mainly:
/init.rc
/init.environ*
/init.zygote*
/init.($oem name / rom name).*
Exclude:
/init
/init.usb*
is possible take my rom of huawei mate 9 , emui 8.0 and create a GSI for install in others phones ????
Fourth - Vendor patch fixes.
Download vendor patch from my MIUI sGSI thread.
Extract your DSSI's vendor.img using the same way as system.img.
In the patcher from my thread you will see some files under /vendor.They are the files necessary for ports of Oreo Qualcomm DSSIs.
-get the "necessary" files from vendor.img and put them to the patcher.
-If there are vendor implementations the one I described in my P Preview porting thread , add them too.
There will be some files that is rom-specific and you need to find out later by logs.
Fifth - build.prop editing.
-copy and add contents from target rom's /vendor/*.prop to /system/build.prop
(Mainly PMS configs)
Sixth - Test
Modify /system/etc/prop.default to disable adb secure.
Wipe /data
Reboot and adb logcat
is possible take my rom of huawei mate 9 , emui 8.0 and create a GSI for install in others phones ????
aureliomilitao said:
is possible take my rom of huawei mate 9 , emui 8.0 and create a GSI for install in others phones ????
Click to expand...
Click to collapse
Other EMUI8.0 phones.
fxsheep said:
Other EMUI8.0 phones.
Click to expand...
Click to collapse
so, no possible take the gsi and create a rom for install in others, mido, example...custom rom ?
aureliomilitao said:
so, no possible take the gsi and create a rom for install in others, mido, example...custom rom ?
Click to expand...
Click to collapse
Yes it's possible but without RIL GPS and Sensors .maybe HWC too.
BTW mido doesn't support sGSI.
Can we use this guide to port Oyxgen os (P) to Asus Zenfone max pro m1?
Would it be possible to port z17 rom to z17s? The z17 has 8.1. The z17s does not but it can boot GSI.
devast8ndiscodave said:
Would it be possible to port z17 rom to z17s? The z17 has 8.1. The z17s does not but it can boot GSI.
Click to expand...
Click to collapse
yes
Pretty much thank you for the guide. Ill try to convert the Redmi 6 Pro ROM into sGSI and try to get it stable for mido(Mido can boot sGSI btw like your MIUI10 sGSI).
Just a question @fxsheep . How can i get away with force encryption? Ive tried many methods on my old MIUI Oreo port but all of them failed.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Tisenoiazei100 said:
Pretty much thank you for the guide. Ill try to convert the Redmi 6 Pro ROM into sGSI and try to get it stable for mido(Mido can boot sGSI btw like your MIUI10 sGSI).
Just a question @fxsheep . How can i get away with force encryption? Ive tried many methods on my old MIUI Oreo port but all of them failed.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Click to expand...
Click to collapse
forcecrypt -> encryptable in fstab.qcom
so would u recommend going with android P Releases or Oreo ?
cause i wanted to port funtouch os 4.0 8.1 from vivo x9 which has the same chip as my phone (rn4x) and i saw you ported the P Version which did not boot
omarilzz said:
so would u recommend going with android P Releases or Oreo ?
cause i wanted to port funtouch os 4.0 8.1 from vivo x9 which has the same chip as my phone (rn4x) and i saw you ported the P Version which did not boot
Click to expand...
Click to collapse
Then Oreo.But imo it has nothing to do with Android version.MIUI also have many bugs on it(which is from the same chipset too).That's because of the poor vendor support of your device.
@fxsheep Just a tip:
Include the need to add libcameraservice.so from stock lib & lib64 to port as phones like mido bootloop without it.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
I had unlock the bootloader last 4 weeks flash treble twrp + RR 8.1 rom treble support.
So i need a help
Now i can't select any other data partition or flash any custom rom. (or module)
So i think i had encrypted my all data of twrp .
Now i want to go to the Miui pro rom 8.1 treble.
So how to flash .
Now i had heard one more thing latest miui .8.1.11 something firmware. ; what is that?
I need a big help from you guys from all that confusion .
I am using my own Lenovo zuk z2 plus.
But before i was using a redmi 3s .
So guys pls help
Thanks guys keeping a redmi 3s forum thread continue.
I think no one using redmi 3s with a custom rom with 9.0 pie
I shocked ,,, KEEP IT UP (THANKS)
Do a factory reset to decrypt. And flash miui pro as per the procedure mentioned in the thread.
kedar alwe said:
I had unlock the bootloader last 4 weeks flash treble twrp + RR 8.1 rom treble support.
So i need a help
Now i can't select any other data partition or flash any custom rom. (or module)
So i think i had encrypted my all data of twrp .
Now i want to go to the Miui pro rom 8.1 treble.
So how to flash .
Now i had heard one more thing latest miui .8.1.11 something firmware. ; what is that?
I need a big help from you guys from all that confusion .
I am using my own Lenovo zuk z2 plus.
But before i was using a redmi 3s .
So guys pls help
Thanks guys keeping a redmi 3s forum thread continue.
I think no one using redmi 3s with a custom rom with 9.0 pie
I shocked ,,, KEEP IT UP (THANKS)
Click to expand...
Click to collapse
Move all of your data to sdcard, rom with android 8.1 or higher usually encrypted their data partititon after flashed, so you need to use sd card(as long your sd card is not encrypted and not formatted as internal) to flash from twrp or by sideload your rom via computer.
Keep backup your phone before flash, stay safe
I want to install GSI on land. But I don't know how to do this. Can you help me?
try it this way
1.Download Custom Rom vendor for Redmi 3s depending on which Android GSI you want to install, permissiver.zip,And Zygite.zip (Only Android 10) (example: Gsi oneplus android 10.donwload vendor redmi 3s android 10)
2.Clear system data, cache, dalvik cache
3.Install vendor redmi 3s (when you want to install Vendor check the vendor button
4.Install Gsi Oneplus
5.And instal permissiver and Zygote fix
sartiapl said:
try it this way
1.Download Custom Rom vendor for Redmi 3s depending on which Android GSI you want to install, permissiver.zip,And Zygite.zip (Only Android 10) (example: Gsi oneplus android 10.donwload vendor redmi 3s android 10)
Click to expand...
Click to collapse
It mean that I can't install Android 11 GSI at the moment?
Elvaa said:
It mean that I can't install Android 11 GSI at the moment?
Click to expand...
Click to collapse
For Android 11, you must use the vendor version of Android 10 (Treble).
Hello friends .
I am just a user of the forum but I want to show how I could flash the Os GSI on the Oneplus 8.
First of all thank @stevegsames for his work with TREBLE TOOLKIT for Oneplus 6.
I also appreciate the help of @Guntram and @phusson.
Here you have the link to Treble toolkit.
Treble Toolkit [A and A/B]
Welcome to Treble Toolkit, a software that has various tools designed for devices with Project Treble support. Features: Treble GSI Flashing, TWRP Flashing, TWRP Booting, Bootloader Unlocker, Permissiver Flasher and FreeCMD (allows you to run...
forum.xda-developers.com
The necessary files are boot.img from oxygen 10 and vbmeta from oxygen 10. As recovery I used the one from Pyxel. It works best to pass to fastbootd [/ B].
Link to e Os GSI
e Android GSI
/e/ Android GSI's - hier gibt es keinen Slogan :-)
android.l1nux.org
To use the treble toolkit, it is best to install the recovery first by fastboot and change it to fastbootd.
From there, place the necessary elements in the folder of the tool and follow the instructions.
Grateful a @stevegsames, for its excellent tool
@Guntram and @phusson
XDA:DevDB Information
FLASH E ROM GSI Q, Tool/Utility for the OnePlus 8
Contributors
totmakina
Version Information
Status: Testing
Created 2020-10-12
Last Updated 2020-10-12
Links are dead.
Anyone have experience installing gsi roms on oneplus 8 I've yet to success fully install one with treble kit or otherwise
Hello friends:
I post Treble Toolkit link again from @stevegsames so you can use it.
A great job from @stevegsames that we can use in our Oneplus 8
Treble Toolkit [A and A/B]
Welcome to Treble Toolkit, a software that has various tools designed for devices with Project Treble support. Features: Treble GSI Flashing, TWRP Flashing, TWRP Booting, Bootloader Unlocker, Permissiver Flasher and FreeCMD (allows you to run...
forum.xda-developers.com
totmakina said:
Hello friends:
I post Treble Toolkit link again from @stevegsames so you can use it.
A great job from @stevegsames that we can use in our Oneplus 8
Treble Toolkit [A and A/B]
Welcome to Treble Toolkit, a software that has various tools designed for devices with Project Treble support. Features: Treble GSI Flashing, TWRP Flashing, TWRP Booting, Bootloader Unlocker, Permissiver Flasher and FreeCMD (allows you to run...
forum.xda-developers.com
Click to expand...
Click to collapse
Thank you for sharing my work!
I'm adding the OnePlus 8 as a supported device. Thank you for the confirmation.
Thanks friend! When I unlock my new Xiaomi Mi 10T I will also test your work. Thanks again!
Hi all
I want to ask if anyone have flash GSI ( not sGSI) with Q beta vendor?
Is this Qbeta vendor works good or gives bootloop or is it boot but with many bugs?
Thanx for sharing your experience here..