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
Related
Hi Devs,
Anyone trying to port miui 10 to mia1. Just saw a video OP5 and OP5T have already ported it.
Maybe but i never spoted on xda
Hmmm.... I think it Will fail like miui 9 on this phone... There Will be again problems with device activation and verify as Xiaomi device, that will lead into deleting MIUI services and framework's, and that will make wifi, system UI and MIUI account not working
I can do it but im not interested
Tisenoiazei100 said:
I can do it but im not interested
Click to expand...
Click to collapse
you can do it???? i don´t belive it.. but you can try to port.. if you do.. fully working.. you are de first dev i can trust.. miui it very difficult to port to mia1
planeador81 said:
you can do it???? i don´t belive it.. but you can try to port.. if you do.. fully working.. you are de first dev i can trust.. miui it very difficult to port to mia1
Click to expand...
Click to collapse
Very difficult to port!? Grab a MI5X ROM and slam MI A1's zImage and dtbs. Voila MIUI
You have to disable forceencrypt and dm-verity to avoid data partition getting encrypted though...
If i ever wanna do the port, i only need MI A1 stock nougat boot.img and modules(located in system/lib/ or lib64).
I've ported RN5+ and MI5X firmwares for API 25 support on my RN4 but im not working on them anymore. Redmi S2 port was a horrible disaster and also made a thread for it before even trying raging alot of ppl.
Tisenoiazei100 said:
Very difficult to port!? Grab a MI5X ROM and slam MI A1's zImage and dtbs. Voila MIUI
You have to disable forceencrypt and dm-verity to avoid data partition getting encrypted though...
If i ever wanna do the port, i only need MI A1 stock nougat boot.img and modules(located in system/lib/ or lib64).
I've ported RN5+ and MI5X firmwares for API 25 support on my RN4 but im not working on them anymore. Redmi S2 port was a horrible disaster and also made a thread for it before even trying raging alot of ppl.
Click to expand...
Click to collapse
Ur thoughts ?? @CosmicDan
Tisenoiazei100 said:
Very difficult to port!? Grab a MI5X ROM and slam MI A1's zImage and dtbs. Voila MIUI
You have to disable forceencrypt and dm-verity to avoid data partition getting encrypted though...
If i ever wanna do the port, i only need MI A1 stock nougat boot.img and modules(located in system/lib/ or lib64).
I've ported RN5+ and MI5X firmwares for API 25 support on my RN4 but im not working on them anymore. Redmi S2 port was a horrible disaster and also made a thread for it before even trying raging alot of ppl.
Click to expand...
Click to collapse
You don't need to modify system.img? Considering a/b device and what are your thoughts on porting oreo based miui 10?
Yash98 said:
You don't need to modify system.img? Considering a/b device and what are your thoughts on porting oreo based miui 10?
Click to expand...
Click to collapse
For a direct port!? Not really. If we use MI5X base, things will be absolutely perfect for us. Modules for Wi-Fi etc, can be installed and symlinked after base.
Yes, we will need to unpack system if we wanna change MI 5X to MI A1 brand and also fix possible bugs later.
For Oreo, Redmi Note 5+ might get it but thats unsure. Theres a leaked firmware which ive booted on Redmi Note 4 but waiting for a beta at least its better.
A/B Treble wont help that much. Redmi S2 has treble 32-bit MIUI 10 which i wasnt able to boot anyways because of 64-bit components, kernel and proprietary.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
sauru.660 said:
Ur thoughts ?? @CosmicDan
Click to expand...
Click to collapse
Was a bit more than that for me because our device is A/B, system needs to be custom modified for MIUI init services. Plus there was the whole Xiaomi authorisation to deal with still.
But I took the additive approach, not subtractive. Subtractive is too difficult to maintain IMO.
But noughat is meh. The proper port for Treble based on GSI lets us use Oreo and latest MIUI for e.g. 6X base.
CosmicDan said:
Was a bit more than that for me because our device is A/B, system needs to be custom modified for MIUI init services. Plus there was the whole Xiaomi authorisation to deal with still.
But I took the additive approach, not subtractive. Subtractive is too difficult to maintain IMO.
But noughat is meh. The proper port for Treble based on GSI lets us use Oreo and latest MIUI for e.g. 6X base.
Click to expand...
Click to collapse
Only Redmi S2 has MIUI 10 Oreo with GSI(As far as i checked) but its 32-bit. Maybe Xiaomi has started to do this on other devices too but im not sure or have an interest to check.
Modifying for MIUI init services? Will 5X Xiaomi.eu base do??
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Tisenoiazei100 said:
Only Redmi S2 has MIUI 10 Oreo with GSI(As far as i checked) but its 32-bit. Maybe Xiaomi has started to do this on other devices too but im not sure or have an interest to check.
Modifying for MIUI init services? Will 5X Xiaomi.eu base do??
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Click to expand...
Click to collapse
GSI != DSSI. Don't even know if any MIUI device is Treble, that doesn't matter. Oreo devices are required to have binderized HAL so they can all be ported to Treble (or GSI base in my case).
Not modify the init services; just adding init service entries (I.e. from init.miui.rc). It's trivial, just means that initramfs needs to be modified (or etc/init/ entries must be added, which I am hoping is possible so I can get A-only compatibility without requiring boot.img modification). This also needs changes to SEPolicy, so I'm just requiring my port to have SELinux permissive for now.
CosmicDan said:
GSI != DSSI. Don't even know if any MIUI device is Treble, that doesn't matter. Oreo devices are required to have binderized HAL so they can all be ported to Treble (or GSI base in my case).
Not modify the init services; just adding init service entries (I.e. from init.miui.rc). It's trivial, just means that initramfs needs to be modified (or etc/init/ entries must be added, which I am hoping is possible so I can get A-only compatibility without requiring boot.img modification). This also needs changes to SEPolicy, so I'm just requiring my port to have SELinux permissive for now.
Click to expand...
Click to collapse
Ok, now i understand. I hope Redmi 5+ gets MIUI 10 with Oreo like the Mi Note 2. Then i think porting on my device(mido) and also yours(tissot) can be much easier. Fingerprint is the most difficult thing to fix though. Ive done many attempts to get the HAL to initialise but nah.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Tisenoiazei100 said:
Ok, now i understand. I hope Redmi 5+ gets MIUI 10 with Oreo like the Mi Note 2. Then i think porting on my device(mido) and also yours(tissot) can be much easier. Fingerprint is the most difficult thing to fix though. Ive done many attempts to get the HAL to initialise but nah.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Click to expand...
Click to collapse
Well we already have Treble and GSI for Tissot, it's 100% compatible. Because I'm porting MIUI with an additive approach, it takes more work and requires custom modification at smali level to adapt to the GSI base, but it will ensure 100% hardware compatibility (as long as the vendor implementation is correct - some official Treble devices are not "fully Treble", for example they have Camera related stuff still on their /system). That's basically the difference between a GSI and DSSI, DSSI still has some hardware stuff on /system when it should be on /vendor.
CosmicDan said:
Well we already have Treble and GSI for Tissot, it's 100% compatible. Because I'm porting MIUI with an additive approach, it takes more work and requires custom modification at smali level to adapt to the GSI base, but it will ensure 100% hardware compatibility (as long as the vendor implementation is correct - some official Treble devices are not "fully Treble", for example they have Camera related stuff still on their /system). That's basically the difference between a GSI and DSSI, DSSI still has some hardware stuff on /system when it should be on /vendor.
Click to expand...
Click to collapse
You are trying to make a MIUI 10 GSI base? Thats hard to near-impossible i think. Does it even generate last_kmsg?
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Tisenoiazei100 said:
You are trying to make a MIUI 10 GSI base? Thats hard to near-impossible i think. Does it even generate last_kmsg?
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Click to expand...
Click to collapse
Yes lol I've already got it booting. FC's all over the place though. I know why though, it's just an iterative process.
Not impossible; as I said - all Oreo ROM's are already binderized HAL. The hard part is done. Well, one of them. Providing full hardware compatibility with all Treble devices might not be possible, I guess.
I'm taking my time with it though because I am also working on a kitchen, I refuse to release a ROM port without also releasing and a complete build system to automate the process.
CosmicDan said:
Yes lol I've already got it booting. FC's all over the place though. I know why though, it's just an iterative process.
I'm taking my time with it though because I am also working on a kitchen, I refuse to release a ROM port without also releasing and a complete build system to automate the process.
Click to expand...
Click to collapse
.
Any thoughts on this ? - https://forum.xda-developers.com/mi-a1/development/rom-miui-10-mi-a1-8-7-12-epic-mod-t3842031
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
Can someone port the Android Q Beta 1 to a Project Treble GSI?
Update: I forgot that I published this on XDA
Android Q gsi (DP1) is available now for Arm64 (A/AB) devices with Oreo 8.1 and Pie 9.p vendor
You can get gsi, patches and guide on the following Telegram groups
A/AB devices
t.me/androidqgsi
AB devices (like Mi A1)
t.me/PsemiGSI
Please Android Q beta for Pocophone F1.
Iv4n99 said:
Can someone port the Android Q Beta 1 to a Project Treble GSI?
Click to expand...
Click to collapse
Its already ported, links will be live by tomorrow I guess
There you go
https://drive.google.com/folderview?id=1pXyzE_IlQBfmWu37V9R6fWRcxH1RQBjj
Hi, goes to Pocophone F1 and Redmi Note 4? Please provide a complete installation guide.
anyone get the aonly image to boot? oneplus 5 here with no luck...hung at boot animation
flash order i used
system image
permissiver
zygote fix
Please help how to install. Pocophone F1 and Redmi Note 4 work?
akahroba said:
There you go
https://drive.google.com/folderview?id=1pXyzE_IlQBfmWu37V9R6fWRcxH1RQBjj
Click to expand...
Click to collapse
Is it device specific?
It is a gsi or?
What about zygote patch this is device specific code or am i wrong?
I try another "Q gsi" but also no luck hang on device logo and then turn off
---------- Post added at 01:46 AM ---------- Previous post was at 01:44 AM ----------
There is also not a point out that it is 64bit a only
So it doesn't work? Could somebody get some installation help here, who does it work for? I don't want to unnecessarily install and lose all the data.
Somebody know how to fix Google Apps in this Beta?
akahroba said:
There you go
https://drive.google.com/folderview?id=1pXyzE_IlQBfmWu37V9R6fWRcxH1RQBjj
Click to expand...
Click to collapse
What is FixZygote?
Does it work to anyone?
Screenshot's?
Could you please Port it to Arm64 A_only I appreciate if it posible Sr, I would like to test GSI Android Q in a Mi6 device, thank you so much if you could help me.
:silly:today i booted android Q GSI on my poco f1 with several bugs . it's not for daily use ,.
bugs : sound , wifi, pixel launcher force close, setup google ac****, ect.....
i use orange fox recovery
firmware vendor 9.3.14
flash image
flash permissiver v2
flash fixzygote
reboot to system (several reboot to stabilize system)
not for everyday use , just for testing.
Update: I forgot that I published this on XDA
Android Q gsi (DP1) is available now for Arm64 (A/AB) devices with Oreo 8.1 and Pie 9.p vendor
You can get gsi, patches and guide on the following Telegram groups
A/AB devices
t.me/androidqgsi
AB devices (like Mi A1)
t.me/PsemiGSI
Work in Redmi Note 4 mido?
philipped346 said:
:silly:today i booted android Q GSI on my poco f1 with several bugs . it's not for daily use ,.
bugs : sound , wifi, pixel launcher force close, setup google ac****, ect.....
i use orange fox recovery
firmware vendor 9.3.14
flash image
flash permissiver v2
flash fixzygote
reboot to system (several reboot to stabilize system)
not for everyday use , just for testing.
Click to expand...
Click to collapse
Hello ı am tried 9.3.14 vendor 9.4.1 vendor ı am flashed 06.04 generic a only but stuck on android logo
---------- Post added at 11:34 AM ---------- Previous post was at 11:33 AM ----------
philipped346 said:
:silly:today i booted android Q GSI on my poco f1 with several bugs . it's not for daily use ,.
bugs : sound , wifi, pixel launcher force close, setup google ac****, ect.....
i use orange fox recovery
firmware vendor 9.3.14
flash image
flash permissiver v2
flash fixzygote
reboot to system (several reboot to stabilize system)
not for everyday use , just for testing.
Click to expand...
Click to collapse
ı am used 9.3.13 and 9.4.1 vendor ı am flashed generic a only 06.04 but phone stuck on android bootlogo
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).
On the seprate forum of Honor 8 lite, There are few ROMs avaiable, And most links are broken, I am OK with Lineage 14.1 But I just need Magisk, Does Lineage support magisk? If yes where can i get its magisk ! I tried but i get into bootloop.
I need a rom ( nougat or oreo maybe pie but with good battery timing) which supports magisk.
I also tried Lineage 15.1 for huawei p8 lite 2017 on my honor 8 lite but got into a bootloop!
ABLOLX said:
On the seprate forum of Honor 8 lite, There are few ROMs avaiable, And most links are broken, I am OK with Lineage 14.1 But I just need Magisk, Does Lineage support magisk? If yes where can i get its magisk ! I tried but i get into bootloop.
I need a rom ( nougat or oreo maybe pie but with good battery timing) which supports magisk.
I also tried Lineage 15.1 for huawei p8 lite 2017 on my honor 8 lite but got into a bootloop!
Click to expand...
Click to collapse
Hi...
so basically is magisk with every Rom inklude Stock-Rom (testet with different Phones in my career) compatible. But its from Device to Device different how to get it work. First i would ever test the custom Rom without any other modification. If it will boot to system then you can in next Step try to reboot to recovery and flash magisk. After that you try again to boot to System.
Some custom Roms are pre-rootet with supersu....thats often at phh-treble Roms also called GSI-Roms the case. so you must read the given Information to the appropriate Rom
solong
speedson