Can I Install Android Pie GSI to Xiaomi Mi6 and How? - Treble-Enabled Device Questions and Answers

Hi everyone, just decided to flash a new ROM to my Mi6 and ran into Project Treble. There is a lot of threads and discussions about Treble and installation to Mi6 and I decided to open a thread which people can help me and future Treble noobs Thanks in advance!

Also I saw something about partitions ( A B and A/B ) and searched which one I'm using and which one is better? Found Mi6 is using A partition table but can't found info about which one is better and can I switch between them....

Chandler Muriel Bing said:
Also I saw something about partitions ( A B and A/B ) and searched which one I'm using and which one is better? Found Mi6 is using A partition table but can't found info about which one is better and can I switch between them....
Click to expand...
Click to collapse
A-only is better for custom ROMs since it's straight-forward.
A/B results in two system, vendor and boot partitions ( and possibly other ones too ) , excelling at seamless updates ( OTAs install on the B partitions while you are using your phone and when you reboot, the phone switches to the B partitions and you can use the update right away ).
However, on A/B devices, there's no dedicated recovery partition so you have to infuse TWRP into the boot.img just like Magisk.

The Marionette said:
A-only is better for custom ROMs since it's straight-forward.
A/B results in two system, vendor and boot partitions ( and possibly other ones too ) , excelling at seamless updates ( OTAs install on the B partitions while you are using your phone and when you reboot, the phone switches to the B partitions and you can use the update right away ).
However, on A/B devices, there's no dedicated recovery partition so you have to infuse TWRP into the boot.img just like Magisk.
Click to expand...
Click to collapse
Many many thanks for too much useful and full of information post
I chechked HavocOS 2.0 GSI thread and i think i'll install it

Chandler Muriel Bing said:
Hi everyone, just decided to flash a new ROM to my Mi6 and ran into Project Treble. There is a lot of threads and discussions about Treble and installation to Mi6 and I decided to open a thread which people can help me and future Treble noobs Thanks in advance!
Click to expand...
Click to collapse
how can i upgrade my tecno phantom 5 please, it running on lollipop and i need an upgrade urgently

taptechcom said:
how can i upgrade my tecno phantom 5 please, it running on lollipop and i need an upgrade urgently
Click to expand...
Click to collapse
I don't think that device has treble support, sorry. But still you can search for custom ROMs

Related

GSI ROM Testing (8.1.0)

Successfully flashed emui 8.0 on usa variant without need to rebrand by using hurupdater WOOT AND zero issues encountered
Step 1. all i did was fastboot flash system of 64bit A only gsi resurrection remix
Step 2. make sure you are using stock recovery from huawie and fromat data.
Step 3. reboot && profit
EDIT: side note, apparently people on here are asking if this is for real or not lol. heres a screenshot in here https://imgur.com/a/depZugF
i have tested this rom for about 6 hours and as of now its smooth as butter, havent had a single issue (yet).
pretty sure if you are using emui 8 you are golden to install whatever Aonly GSI you want.
also for bonus i instaled latest magisk and you guessed it is flawless
hoping this is not a duplicate but i cant find a post on this yet
try heading of to treble rom dev and have a go at it guys!
Edit: BIG THANKS TO JAX
download everything except hwota> https://forum.xda-developers.com/honor-6x/how-to/guide-update-to-emui-8-t3807806
unlock bootloader
flash nougat compatable twrp (search the dev form)
thanks jax 5. Add the downloaded files to the folder "HWOTA7\Update" and rename two files same as mentioned below->
- update_data_full_public.zip to update_data_public.zip
- update_full_BLN-AL20_all_cn.zip to update_all_hw.zip
-update.zip don't rename.
place all three filles in same folder on sdcard
download hurupdater (search the form)
place it in same folder as the file just mentioned
boot to twrp.
format system data cache
navigate to sdcard the update folder with all four files.
flash hurupdater.zip
press vol down
wait for completion
reboot system
wait 10 minutes
hold power till reboot
boot to recovery and it should be stock.
format data
reboot
should boot up and work flawlessly except for missing browser which can be downloaded :/
woot you are on emui 8 and your partition setup is now oreo
now turn phone off
hold vol down and plug into pc with fastboot tools
go here https://forum.xda-developers.com/project-treble/trebleenabled-device-development
download a oreo rom A only (i used Resurrection Remix)
flash system with fastboot
reboot to recovery
format data
reboot
profit.
BONUS
go here after all said and done https://forum.xda-developers.com/honor-6x/development/rom-emui-8-0-0-honor-6x-dual-sim-t3794079
make sure to thank KingOfMezi
download this https://mega.nz/#!a81EDZAR!2-9yPFh3reghkGcfSl3nRIJhHGkP8fqDsgUG66ewjkk
fastboot flash recovery_ramdisk RECOVERY-V2.img
boot to recovery and flash latest magisk for root goodies
Which emui 8 did you flash ? I have a usa Honor 6x and would like to do the same
pspgarret said:
Successfully flashed emui 8.0 on usa variant without need to rebrand by using hurupdater WOOT AND zero issues encountered
Step 1. all i did was fastboot flash system of 64bit A only gsi resurrection remix
Step 2. make sure you are using stock recovery from huawie and fromat data.
Step 3. reboot && profit
i have tested this rom for about 6 hours and as of now its smooth as butter, havent had a single issue (yet).
pretty sure if you are using emui 8 you are golden to install whatever Aonly GSI you want.
also for bonus i instaled latest magisk and you guessed it is flawless
hoping this is not a duplicate but i cant find a post on this yet
try heading of to trble rom dev and have a go at it guys!
Click to expand...
Click to collapse
is themes apps working for you? flashing emui 8 via huru will give incomplete flash.
This was possible for the US variant ( L24) since July. It was mentioned couple times before. I think using hwota is a cleaner way of upgrading.
How do you do it?, Where is the links of the files?
thanks for responses, i updated the op and hopefully that is a bit more informative.
let me know if it is confusing at all and ill try to fix it
Can i flash p gsi.? (havoc 2.0)
And.. Is volte working..?
If I am not wrong I think volte will not work on any custom roms except for a stock based custom room because Huawei hasn't released source for it. Dunno I could be wronf
jhorne917 said:
If I am not wrong I think volte will not work on any custom roms except for a stock based custom room because Huawei hasn't released source for it. Dunno I could be wronf
Click to expand...
Click to collapse
It's not a custom rom... It's gsi
anyone tested other gsi? i only tried open kirin roms
are you sure it didn't rebranded? at about information, it say bln-24 or bln-al20? it could brick the phone, I thinks is better using the emui 8 from india instead the china version
hey guys, any A ONLY GSI ROM should work. i used treble resurrection remix NOT openkirin as the op states.
and i DID NOT rebrand, it states in rom info i am BLN-L24 -thats usa ver.
pspgarret said:
hey guys, any A ONLY GSI ROM should work. i used treble resurrection remix NOT openkirin as the op states.
and i DID NOT rebrand, it states in rom info i am BLN-L24 -thats usa ver.
Click to expand...
Click to collapse
You went from android7 to RR based on android8 without rebranding and updating to stock android8 ?
Nollie8969 said:
You went from android7 to RR based on android8 without rebranding and updating to stock android8 ?
Click to expand...
Click to collapse
op states i upgraded to emui 8 using nothing but hurupdater script and update packages in 7.x twrp buddy
https://imgur.com/a/depZugF
That's great man, i need to backup a lot of stuff since last TWRP backup, but I'm definitely gonna do this. I own a BLN-L21, so i hope this'll works the same as on any other variant, and that would be the real gem in all of this. Thanks for sharing
galapagos said:
This was possible for the US variant ( L24) since July. It was mentioned couple times before. I think using hwota is a cleaner way of upgrading.
Click to expand...
Click to collapse
Link to guide for the hwota method of upgrading bln-l24 to EMUI 8 without rebranding?
You mean the guide: How to brick your phone ?
Nollie8969 said:
You mean the guide: How to brick your phone ?
Click to expand...
Click to collapse
That's helpful and informative.
johnnyrichter said:
Link to guide for the hwota method of upgrading bln-l24 to EMUI 8 without rebranding?
Click to expand...
Click to collapse
Searching for "hwota7" gives you this: https://forum.xda-developers.com/honor-6x/development/hwota7-hwota8-honor-6x-t3792601
In short, all you have to do is put the oreo firmware files (L22 version, not the Chinese version) in the update folder and run the batch script. Choose L24 region during the process and you're done. I've done this at least couple dozen times as I frequently test out all treble ROMs as they're released/updated, and sometimes go back to nougat in case I find something that's not compatible with oreo. But all in all, this oreo ROM is very stable and is my daily driver.
galapagos said:
Searching for "hwota7" gives you this: https://forum.xda-developers.com/honor-6x/development/hwota7-hwota8-honor-6x-t3792601
In short, all you have to do is put the oreo firmware files (L22 version, not the Chinese version) in the update folder and run the batch script. Choose L24 region during the process and you're done. I've done this at least couple dozen times as I frequently test out all treble ROMs as they're released/updated, and sometimes go back to nougat in case I find something that's not compatible with oreo. But all in all, this oreo ROM is very stable and is my daily driver.
Click to expand...
Click to collapse
During your testing, which ROM has been the most stable in terms of daily-driver use so far? Last year after getting this 6x I tried a few different ROMS, back before OpenKirin happened, and had nothing but problems with boot loops and etc so I went back to stock EMUI5. Few days ago I got B365 and then B376 via OTA after installing the Huawei software on my PC. This phone really makes me miss my S5 with LineageOS.

Treble bootloop on G960F

Hello everyone,
I'm getting really frustrated hree as I can't flash any android 10 GSI. I either get bootloop, stuck on samsung logo or stuck on restarting on samsung logo.
Flashing different kernels seem to change the above behavior (instead of bootloop I get samsung logo and vice-versa).
I tried everything:
Doing the no-verity thingie...
Flashing stock files then GSI - nothing.
Flashing soldiers oreo kernel - nothing
Flashing endurance kernel - nothing
I can't find a vendor image that's compatible with any GSI on my phone. I also can't find any kernel that's compatible either.
So please, end my misery... if anyone managed to install android 10 GSI on this TREBLE COMPATIBLE DEVICE, please guide me through or provide any useful file (vendor img/kernel) that I might have been missed.
I wrote this because I couldn't find anything that could help... Thanks in advance!
EDIT:
I solved the problem with the kind help from phhusson and the guidance from Lanreallenjay (thanks, both of you!), so I'm trying to provide the solution for anyone that might be having the same problem as I had. So here it is:
For PIE GSI: use stock kernel/vendor (anything stock), flash the GSI, then flash Magisk -> it should boot fine now (only tested with phhusson's GSI. I had vibrating restart loops before, I wasn't installing magisk, that was my mistake)
For Android 10 GSI: same as above, but install the modded Magisk from phhusson's git (located @ v200 android 10 gsi post) instead of the normal one .
itShouldWork said:
Hello everyone,
I'm getting really frustrated hree as I can't flash any android 10 GSI. I either get bootloop, stuck on samsung logo or stuck on restarting on samsung logo.
Flashing different kernels seem to change the above behavior (instead of bootloop I get samsung logo and vice-versa).
I tried everything:
Doing the no-verity thingie...
Flashing stock files then GSI - nothing.
Flashing soldiers oreo kernel - nothing
Flashing endurance kernel - nothing
I can't find a vendor image that's compatible with any GSI on my phone. I also can't find any kernel that's compatible either.
So please, end my misery... if anyone managed to install android 10 GSI on this TREBLE COMPATIBLE DEVICE, please guide me through or provide any useful file (vendor img/kernel) that I might have been missed.
I wrote this because I couldn't find anything that could help... Thanks in advance!
Click to expand...
Click to collapse
What's your phone's specifications?
Lanreallenjay said:
What's your phone's specifications?
Click to expand...
Click to collapse
Hey, thanks for the interest!
I've got the S9 Exynos variant (SM-G960F, Europe), I unlocked the bootloader several days ago.
It's on android 9 right now, I flashed the stock firmware after I've tried everything to get android 10 treble to work and failed.
Current kernel version: 4.9.59-16947752 (stock)
Build number: PPR1.180610.011.G960FXXS7CSJ3
I can flash any rom available besides GSI (I've used lineage OS 16 for a couple of days).
If you need anything else more specific just ask, I don't really know what exactly can help with this situation.
Cheers!
itShouldWork said:
Hey, thanks for the interest!
I've got the S9 Exynos variant (SM-G960F, Europe), I unlocked the bootloader several days ago.
It's on android 9 right now, I flashed the stock firmware after I've tried everything to get android 10 treble to work and failed.
Current kernel version: 4.9.59-16947752 (stock)
Build number: PPR1.180610.011.G960FXXS7CSJ3
I can flash any rom available besides GSI (I've used lineage OS 16 for a couple of days).
If you need anything else more specific just ask, I don't really know what exactly can help with this situation.
Cheers!
Click to expand...
Click to collapse
Ask for help here
https://t.me/phhtreble/283195 <---
Read before any question ^^^
After flashing G960FXXS7CSJ3 November stock firmware I can no longer flash anything.
(can't mount data partition)
When I try downgrading to G960FXXU5CSF2 June firmware Odin fails and the screen says:
SW REV. CHECK FAIL (BOOTLOADER) DEVICE: 7 BINARY: 5
November G960FXXS7CSJ3 seems to have upgraded the bootloader security, does anyone know a fix?
itShouldWork said:
Hello everyone,
I'm getting really frustrated hree as I can't flash any android 10 GSI. I either get bootloop, stuck on samsung logo or stuck on restarting on samsung logo.
Flashing different kernels seem to change the above behavior (instead of bootloop I get samsung logo and vice-versa).
I tried everything:
Doing the no-verity thingie...
Flashing stock files then GSI - nothing.
Flashing soldiers oreo kernel - nothing
Flashing endurance kernel - nothing
I can't find a vendor image that's compatible with any GSI on my phone. I also can't find any kernel that's compatible either.
So please, end my misery... if anyone managed to install android 10 GSI on this TREBLE COMPATIBLE DEVICE, please guide me through or provide any useful file (vendor img/kernel) that I might have been missed.
I wrote this because I couldn't find anything that could help... Thanks in advance!
EDIT:
I solved the problem with the kind help from phhusson and the guidance from Lanreallenjay (thanks, both of you!), so I'm trying to provide the solution for anyone that might be having the same problem as I had. So here it is:
For PIE GSI: use stock kernel/vendor (anything stock), flash the GSI, then flash Magisk -> it should boot fine now (only tested with phhusson's GSI. I had vibrating restart loops before, I wasn't installing magisk, that was my mistake)
For Android 10 GSI: same as above, but install the modded Magisk from phhusson's git (located @ v200 android 10 gsi post) instead of the normal one .
Click to expand...
Click to collapse
So from stock you flashed AOSP 10 GSI to system partition then phh's magisk (in TWRP) then it works for you?
rupert3k said:
So from stock you flashed AOSP 10 GSI to system partition then phh's magisk (in TWRP) then it works for you?
Click to expand...
Click to collapse
Yep, it does. Buuut the rom is not stable at all, I've got random reboots/ crashes when opening settings and such, not usable at all. I'm on ONE UI 2.0 beta now which is much more stable (daily driver stable actually).
rupert3k said:
After flashing G960FXXS7CSJ3 November stock firmware I can no longer flash anything.
(can't mount data partition)
When I try downgrading to G960FXXU5CSF2 June firmware Odin fails and the screen says:
SW REV. CHECK FAIL (BOOTLOADER) DEVICE: 7 BINARY: 5
November G960FXXS7CSJ3 seems to have upgraded the bootloader security, does anyone know a fix?
Click to expand...
Click to collapse
Have you tried formatting data with TWRP (to the part when it asks you to write "yes") then flash no-verity?
You should at least be able to flash TWRP. If you can't, just download the proper USB drivers for your device, it might be the culprit.
Cheers!
itShouldWork said:
Yep, it does. Buuut the rom is not stable at all, I've got random reboots/ crashes when opening settings and such, not usable at all. I'm on ONE UI 2.0 beta now which is much more stable (daily driver stable actually).
Click to expand...
Click to collapse
Phh just hinted it's likely Pie vendor causing panics:
"First you need to flash stock rom. Then install magisk and then this gsi.
Though please note that on Pie vendor, S9 kernel panics and reboot every few minutes, so it is highly unusable."
itShouldWork said:
Hey, thanks for the interest!
I've got the S9 Exynos variant (SM-G960F, Europe), I unlocked the bootloader several days ago.
It's on android 9 right now, I flashed the stock firmware after I've tried everything to get android 10 treble to work and failed.
Current kernel version: 4.9.59-16947752 (stock)
Build number: PPR1.180610.011.G960FXXS7CSJ3
I can flash any rom available besides GSI (I've used lineage OS 16 for a couple of days).
If you need anything else more specific just ask, I don't really know what exactly can help with this situation.
Cheers!
Click to expand...
Click to collapse
I have tried Android 10 GSI , using latest Q update
ZoiraP said:
I have tried Android 10 GSI , using latest Q update
Click to expand...
Click to collapse
Is it usable? any random reboots/ annoying instability?
itShouldWork said:
Is it usable? any random reboots/ annoying instability?
Click to expand...
Click to collapse
I have tried it partly , nfc isnt working , camera quality is bad , Bluetooth working , audio working , magisk working . I'll use it a bit more and tell you.
ZoiraP said:
I have tried it partly , nfc isnt working , camera quality is bad , Bluetooth working , audio working , magisk working . I'll use it a bit more and tell you.
Click to expand...
Click to collapse
Camera quality might be fixed with Google cam, if you find a good port.
Not to derail the thread but I just noticed after installing Android 10 beta 2 Treble Info now reports my S9 supports Treble A/B, curious no?
rupert3k said:
Not to derail the thread but I just noticed after installing Android 10 beta 2 Treble Info now reports my S9 supports Treble A/B, curious no?
Click to expand...
Click to collapse
Wait what? That's interesting...
Can someone with more experience enlighten us about the differences between the A only and A/B?
A\B
itShouldWork said:
Wait what? That's interesting...
Can someone with more experience enlighten us about the differences between the A only and A/B?
Click to expand...
Click to collapse
No real experience but A\B devices have two slots ie double the partitions (OnePlus has 67) .
This allows updates to be installed while running from slot A while the updated system is copied to B.
Apparently Q requires A\B so now we're on Q may as well try that next time we're curious
Phh just released:
AOSP 10.0 v208
Fix suspend/dt2w for Samsung Q vendor
Fix backlight for Samsung Q vendor
Samsung Q's fine, love gestures but the bloat is killing me.
You can tell Q's going to be so much leaner without bixby & friends.
Glad we installed it to get compatible but I think now we probably stand a better chance with 10 GSI's, hopefully LOS17 & Pixel Experience get updated again soon.
Wondering whether to following the rooting instructions yet?
Phh did say "flash stock rom then magisk and then gsi"
https://forum.xda-developers.com/galaxy-s9/how-to/one-ui-2-beta-rooting-installing-twrp-t4012961
ZoiraP's wondering why we sooo slow lol!
Wow this looks good: https://forum.xda-developers.com/ga...-s9--s9-cross-device-development/rom-t4020939

Stock Android 10, I want to flash HavocOS 3.6 GSI with Android 10

Hello there, I have a fully-compatible treble Motorola One Action (not rooted, no twrp, bootloader was not unlocked[yet])
I was wondering, can I flash a GSI ROM with Android 10, having already Android 10?
Looked on Android Devs site, no answer for this question.
I have to mention that my device has AB partitions.
Please help me!
AlphaCoder64 said:
Hello there, I have a fully-compatible treble Motorola One Action (not rooted, no twrp, bootloader was not unlocked[yet])
I was wondering, can I flash a GSI ROM with Android 10, having already Android 10?
Looked on Android Devs site, no answer for this question.
I have to mention that my device has AB partitions.
Please help me!
Click to expand...
Click to collapse
Yes. Project Treble is independent from the android version as long as your device comes with minimum Android 8 out of the box (cause with Android 8 Project Treble was introduced).
Of course your current Stock will be replaced. And you need a unlocked bootloader to boot a GSI (which probably will lead to a wipe of your data so backup it first).
AlphaCoder64 said:
Hello there, I have a fully-compatible treble Motorola One Action (not rooted, no twrp, bootloader was not unlocked[yet])
I was wondering, can I flash a GSI ROM with Android 10, having already Android 10?
Looked on Android Devs site, no answer for this question.
I have to mention that my device has AB partitions.
Please help me!
Click to expand...
Click to collapse
Adding to the post by the other user, it's VERY recommended to:
Install Twrp (whatever is latest)
Use Twrp to flash "permissiver v4 or v5" (Google it )

To anyone trying to port a new rom

This device supports Project Treble which allows you install any GSI compatible with the device. I Advise any who want a new rom to flash the lineage os recovery, head over to the Project Treble forum find a GSi you like and install it using the fast boot method.
420fox1 said:
This device supports Project Treble which allows you install any GSI compatible with the device. I Advise any who want a new rom to flash the lineage os recovery, head over to the Project Treble forum find a GSi you like and install it using the fast boot method.
Click to expand...
Click to collapse
Feel free to ask any questions
Are there any potential bugs?
RFS3000 said:
Are there any potential bugs?
Click to expand...
Click to collapse
Finger print + dual sim support + brightness slider
How to flash a Gsi using fastboot
Hey man,
I just want to know how can i flash a Gsi using fastboot method because I always used twrp in my previous owned devices to flash any ROMs, but I really hate this device for not supporting flashing ROMs/GSIs through twrp and i really want to try out GSIs on this device, so if you can help me out with the steps of how i can flash a GSI through fastboot I would really appreciate it.
Thanks in advance
KFC99 said:
Hey man,
I just want to know how can i flash a Gsi using fastboot method because I always used twrp in my previous owned devices to flash any ROMs, but I really hate this device for not supporting flashing ROMs/GSIs through twrp and i really want to try out GSIs on this device, so if you can help me out with the steps of how i can flash a GSI through fastboot I would really appreciate it.
Thanks in advance
Click to expand...
Click to collapse
Join here on telegram i can help you t.me/@sammya71

Question When TWRP for OnePlus 9 Pro?

Dear,
I need to have TWRP for rooting my OP9Pro but it is of course not available for the OP9Pro since it is brand new. Since i am experienced with flashing TWRP on OnePlus phones i already now that TWRP officialy doesn't support the latest phones of OnePlus so i know that the TWRP's used for that are from Mauronofrio and others. But does anyone know how long it would take till someone has developed a reliable version of TWRP for it and maybe also how long it would take till MSMDownloadtool become available for us?
Regards,
Kuno
It will become available when it does. No one knows when. One day you may see it. Or not. Flip a coin and good luck!
You also do not need TWRP for root.
There is already this thread asking for TWRP since the start of this sub-forum : https://forum.xda-developers.com/t/how-come-we-dont-have-root-and-twrp-yet.4252335/
For rooting without TWRP, here is an explanation : https://forum.xda-developers.com/t/...gisked-boot-root.4252373/page-4#post-84747985
Unlocking the bootloader is done by rebooting in fastboot mode and fastboot oem unlock
Root OnePlus 9/ 9 Pro/ 9R using Magisk [No TWRP Required]
In this article, I will show you how to Root OnePlus 9 Pro using Magisk and without TWRP recovery. OnePlus 9 Pro recently launched this beast smartphone,
magiskapp.com
Cardinal rule of XDA, Do Not Ask For ETAs
If you can develope it faster, I'm sure everyone would agree that you are more than welcome too.
avid_droid said:
And here you go...
[DEV]How to compile TWRP touch recovery
All of TWRP 3.x source is public. You can compile it on your own. This guide isn't going to be a step-by-step, word-for-word type of guide. If you're not familiar with basic Linux commands and/or building in AOSP then you probably won't be...
forum.xda-developers.com
Click to expand...
Click to collapse
I don't think this is applicable because the recovery is a part of the boot image and this guide is for creating a standalone recovery image I think since android O (someone can correct me if I'm wrong on which android version introduced this)
GreaterLesser said:
I don't think this is applicable because the recovery is a part of the boot image and this guide is for creating a standalone recovery image I think since android O (someone can correct me if I'm wrong on which android version introduced this)
Click to expand...
Click to collapse
Well, this guide still covers the basics of setting up a tree and building. You'll need that regardless if your device has a recovery partition or not.

Categories

Resources