What is treble and why is all the fuss about it? - Xiaomi Redmi 4X Questions & Answers

Recently I saw that there appeared a new kind of roms which need a special recovery and, as I could find, have something to do with easier update of Android version. Also I have seen a project: https://forum.xda-developers.com/pr...-development/experimental-phh-treble-t3709659 which claims to have one rom file that can be flashed on a impressing number of roms. I saw the first comment by author which has a method to know if a device has support for treble and it is refered to run "treble check" app from play store on official rom. The thing is that I experimented and installed treble rom (lineage OS) from redmi 4x thread and did the check if the device is supported (the screenshot is attached below) and saw that on this rom it is supported, in contrary to MIUI. The question is about this controversion: is this device supported or not? Can I flash these ROMs from the thread? Are treble ROMs really like a universal flashable file for multiple devices?

If you flash GSI (Generic System Image) it will work on our device. Yes Treble roms are universally flashable if GSI is used, with some minimal modification for device specific. So porting roms will easier, and less time consuming.
Anyone can correct me, if i 'm wrong.

drthrax07 said:
If you flash GSI (Generic System Image) it will work on our device. Yes Treble roms are universally flashable if GSI is used, with some minimal modification for device specific. So porting roms will easier, and less time consuming.
Anyone can correct me, if i 'm wrong.
Click to expand...
Click to collapse
So if I flash the rim from this link specifically on redmi 4x, the device will have no harm at all?

ViorelRj said:
So if I flash the rim from this link specifically on redmi 4x, the device will have no harm at all?
Click to expand...
Click to collapse
Yes, but follow the instruction there. Our device is A-only device. Use the special recovery here for flashing. Or flash the lineageos 15.1 treble edition first just find in on our device forum.

drthrax07 said:
Yes, but follow the instruction there. Our device is A-only device. Use the special recovery here for flashing. Or flash the lineageos 15.1 treble edition first just find in on our device forum.
Click to expand...
Click to collapse
I have seen that seamless updates require A and B partition. I want to know what I am loosing with this device by having only the A partition (what really is seamless update and how does it work)? P.S. sorry for being annoying.

ViorelRj said:
I have seen that seamless updates require A and B partition. I want to know what I am loosing with this device by having only the A partition (what really is seamless update and how does it work)? P.S. sorry for being annoying.
Click to expand...
Click to collapse
As far as i know the seamlees update works this way:
In slot A you have installed any OS Example Android 8.1
In slot B there is a backup of the OS Om slot A
This mean you can install the ota of Android P (example) in one of the slots while you are on Facebook for example

Related

Is it possible to install two roms in the Xiaomi Mi A2?

TL;DR: I wanted to install an Android 9 Rom on my phone alongside the stock Android 10 Rom in order to use GLTools.
So, the question is basically on the title. But the reason that I want to install two Roms on my phone is GLTools. Since GLTools' developer didn't release an Android 10 compatible version of his app while it was under development, Thus can't use it, since my phone is on the latest firmware. Now, I mainly wanted to play Fortnite on my phone (Please don't judge me?). I'm open to other solutions tho, like any GLTools alternative compatible with Android 10. (Ps. Phone is rooted with Magisk)
AFAIK, Dual boot custom ROMs were possible on some devices but that was before introduction of SAR A/B Devices. While theoretically, newer devices have separate A/B partitions and hence could have separate ROMs I believe it is an issue of shared libraries/partitions being used by the device which might mess up things.
But then I am neither a developer nor a gamer so the entire theory could be wrong !
AlejandroAZV said:
TL;DR: I wanted to install an Android 9 Rom on my phone alongside the stock Android 10 Rom in order to use GLTools.
So, the question is basically on the title. But the reason that I want to install two Roms on my phone is GLTools. Since GLTools' developer didn't release an Android 10 compatible version of his app while it was under development, Thus can't use it, since my phone is on the latest firmware. Now, I mainly wanted to play Fortnite on my phone (Please don't judge me?). I'm open to other solutions tho, like any GLTools alternative compatible with Android 10. (Ps. Phone is rooted with Magisk)
Click to expand...
Click to collapse
Yes you can, multiboot. Search it.
mariosenta said:
Yes you can, multiboot. Search it.
Click to expand...
Click to collapse
Tianhe said:
AFAIK, Dual boot custom ROMs were possible on some devices but that was before introduction of SAR A/B Devices. While theoretically, newer devices have separate A/B partitions and hence could have separate ROMs I believe it is an issue of shared libraries/partitions being used by the device which might mess up things.
But then I am neither a developer nor a gamer so the entire theory could be wrong !
Click to expand...
Click to collapse
So, to be short, All I needed to do was install Havoc OS and now the game is installing. No idea why, but, It works!
AlejandroAZV said:
So, to be short, All I needed to do was install Havoc OS and now the game is installing. No idea why, but, It works!
Click to expand...
Click to collapse
Happy to hear you find a solution to your problem. All best:highfive:
AlejandroAZV said:
TL;DR: I wanted to install an Android 9 Rom on my phone alongside the stock Android 10 Rom in order to use GLTools.
)
Click to expand...
Click to collapse
Android Q have game driver option support out of box (At least my Mi A2 have this option in developer's settings)
#_Android_# said:
Android Q have game driver option support out of box (At least my Mi A2 have this option in developer's settings)
Click to expand...
Click to collapse
In stock 10 rom?

Custom rom for SM-T510 ?

Currently I've lineage os on my tablet (t510), I'm searching for something else more stable and with a bit more functions.
Any ideas ?
Pizzaswift01 said:
Currently I've lineage os on my tablet (t510), I'm searching for something else more stable and with a bit more functions.
Any ideas ?
Click to expand...
Click to collapse
If you want roms with more function, try heading over to the project treble section of xda and flashing some GSI images. Currently using phhusson's stock Android 10 with go gapps but you might like to use a ROM with more features.
Roarmaster said:
If you want roms with more function, try heading over to the project treble section of xda and flashing some GSI images. Currently using phhusson's stock Android 10 with go gapps but you might like to use a ROM with more features.
Click to expand...
Click to collapse
Wow that's a interesting section, actually didn't know that thing existed, can I ask you how project treble works ? Also what does GSI mean ?
Pizzaswift01 said:
Wow that's a interesting section, actually didn't know that thing existed, can I ask you how project treble works ? Also what does GSI mean ?
Click to expand...
Click to collapse
Based on my current understanding, project treble aims to make it easier for OEMs (like Samsung) to update android. Here's a more in depth read about project treble: https://www.computerworld.com/artic...ect-treble-android-upgrade-fix-explained.html
A GSI is a Generic System Image that can be flashed on top of existing vendor code. So it makes it easier to change/update your android OS without companies like Samsung having to modify their hardware compatibility code (that's the goal anyways) which leads to faster updates.
For us enthusiasts, that means we can flash the same stock android GSI ROM, lineageOS GSI ROM, resurrection remix GSI, etc. on any phone supporting project treble (all devices that came out with android 9+ & some android 8).That's the same GSI file on any device with a recent version of VNDK. It's not all perfect for compatibility yet, but I've yet to run into any issues.
Yup! As @Roarmaster said you can check out Project Treble page. I too use GSIs and have flashed 3 GSIs so I can recommend you some. In project treble section for AB devices search for Bless GSI, it has lot of customization and works quite well, selinux enforcing, megisk safety net passes and google play certification all by default.
Roarmaster said:
If you want roms with more function, try heading over to the project treble section of xda and flashing some GSI images. Currently using phhusson's stock Android 10 with go gapps but you might like to use a ROM with more features.
Click to expand...
Click to collapse
Thank you for the tip, this sounds like an interesting option. I'm looking at flashing a custom ROM onto my SM-T510 in the hope of improving the performance as the multitaking on the stock rom isn't great. Can I ask have you been flashing A, B, or A/B ROMS? I've installed two different Treble checker apps and they gave conflicting results.
MikusP said:
Thank you for the tip, this sounds like an interesting option. I'm looking at flashing a custom ROM onto my SM-T510 in the hope of improving the performance as the multitaking on the stock rom isn't great. Can I ask have you been flashing A, B, or A/B ROMS? I've installed two different Treble checker apps and they gave conflicting results.
Click to expand...
Click to collapse
Flash the rooms from the A/AB section of project treble. When checking for treble compatibility, use the app recommended on Phusson's GSI page as most GSIs are based on his work. If you want to flash a ROM, make sure you flash the arm32-binder64-ab version (like it says from the treble app) for the SM-T510.
Amazing! Thank you for the info and links @Roarmaster, I really appreciate the help. I've known about project Treble for a while but I've been out of the custom ROM scene for quite a few years, so I had no idea you could flash like this. I'll give one of Phusson's roms a go. Thanks again!

Question about lack of A6 ROMs

After spending a couple of weeks searching for LineageOS for the A6 (not A6+), I've discovered that there's very little support for this device. Why is this?
Probably smaller userbase if we compare with other devices. Furthermore many things are common for most of the Exynos 7870 devices. Lack of roms shouldn't bother you, because we have GSI, so in this way you can run Android 11 and even Android 12 on A6.
Also, part of community is active on Telegram.
My A6 works very well on Lineage R mod (Android 11).
nqnxev said:
Probably smaller userbase if we compare with other devices. Furthermore many things are common for most of the Exynos 7870 devices. Lack of roms shouldn't bother you, because we have GSI, so in this way you can run Android 11 and even Android 12 on A6.
Also, part of community is active on Telegram.
My A6 works very well on Lineage R mod (Android 11).
Click to expand...
Click to collapse
So it's not so much as ROMs for the A6 but instead more GSIs for the A6? If I'm understanding correctly
Kimitzuni said:
So it's not so much as ROMs for the A6 but instead more GSIs for the A6? If I'm understanding correctly
Click to expand...
Click to collapse
Maybe not "instead", but they just work:
Generic System Image (GSI) list
Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.
github.com
1. Go to custom recovery (recommended will be OrangeFox R11.0).
2. Wipe partitions: cache, dalvik, data, vendor, system.
3. Choose GSI from link above (I can recommend Lineage R mod but you can try different ones; choose arm32_binder64 vndklite builds), download, extract and flash it as "System Image" through custom recovery.
4. Flash vendor for A6 via custom recovery.
5. Optionally flash any custom kernel for A600X.
6. Reboot to system.
If you want typical OneUI rom then use RadicalQuack or JynxOS.
nqnxev said:
Probably smaller userbase if we compare with other devices. Furthermore many things are common for most of the Exynos 7870 devices. Lack of roms shouldn't bother you, because we have GSI, so in this way you can run Android 11 and even Android 12 on A6.
Also, part of community is active on Telegram.
My A6 works very well on Lineage R mod (Android 11).
Click to expand...
Click to collapse
sorry lineage R mod support for A6+ S605G ?
Getting confused with the different versions for A6 / A6+ etc.
I have an SM-600FN model which I think is A6 (not S or +).
It's currently running stock 10 - is there a good 64bit ROM for this? I was thinking it'd be easy to pick out but it is old... I could only see an Android 6 64bit ROM?
Lothaen said:
Getting confused with the different versions for A6 / A6+ etc.
I have an SM-600FN model which I think is A6 (not S or +).
It's currently running stock 10 - is there a good 64bit ROM for this? I was thinking it'd be easy to pick out but it is old... I could only see an Android 6 64bit ROM?
Click to expand...
Click to collapse
For A600FN pretty stable arm64 rom is RadicalQuack. arm64 GSI is also possibile to run on arm64 vendor, but it's not perfect (unstable).
akbare said:
sorry lineage R mod support for A6+ S605G ?
Click to expand...
Click to collapse
Read this thread:
how downgrade sm-a605fn from android 10 to 9
Hello, I have a Samsung Galaxy A6+ with latest fw installed. (italian version) A605FNXXU7CUD4 The phone is totally useless after the update to android 10, it takes AGES to perform any action, even open the Camera or open a Message. Already...
forum.xda-developers.com
Maybe it will be helpful.
nqnxev said:
Maybe not "instead", but they just work:
Generic System Image (GSI) list
Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.
github.com
1. Go to custom recovery (recommended will be OrangeFox R11.0).
2. Wipe partitions: cache, dalvik, data, vendor, system.
3. Choose GSI from link above (I can recommend Lineage R mod but you can try different ones; choose arm32_binder64 vndklite builds), download, extract and flash it as "System Image" through custom recovery.
4. Flash vendor for A6 via custom recovery.
5. Optionally flash any custom kernel for A600X.
6. Reboot to system.
If you want typical OneUI rom then use RadicalQuack or JynxOS.
Click to expand...
Click to collapse
hey, ive been trying to follow this for a while now but it doesnt work at all for me. im on an a600-fn device, and the only thing thats worked for me here is radicalquack, but thats android 10, and im looking for a way to upgrade my phone to android 11 or 12
everytime i try these instructions out, and i boot into the system, it just takes me to the downloading screen. im really confused, can anybody help me?
nukicius said:
hey, ive been trying to follow this for a while now but it doesnt work at all for me. im on an a600-fn device, and the only thing thats worked for me here is radicalquack, but thats android 10, and im looking for a way to upgrade my phone to android 11 or 12
everytime i try these instructions out, and i boot into the system, it just takes me to the downloading screen. im really confused, can anybody help me?
Click to expand...
Click to collapse
never mind. i found a 64 bit vendor on this forum and decided to try it, and now it works.
just to clarify, the arm images werent working either, so its not just working because im using the right architecture
nukicius said:
never mind. i found a 64 bit vendor on this forum and decided to try it, and now it works.
just to clarify, the arm images werent working either, so its not just working because im using the right architecture
Click to expand...
Click to collapse
What steps did you follow?
I'm looking for it too, but to no avail. ALL Ares treble kernels that support 64 bits send me to download mode after flashing them.
nukicius said:
hey, ive been trying to follow this for a while now but it doesnt work at all for me. im on an a600-fn device, and the only thing thats worked for me here is radicalquack, but thats android 10, and im looking for a way to upgrade my phone to android 11 or 12
everytime i try these instructions out, and i boot into the system, it just takes me to the downloading screen. im really confused, can anybody help me?
Click to expand...
Click to collapse
It brought you to download mode probably just because you used wrong architecture of GSI. Vendor from my previous post is intended for arm32_binder64 (A64 - not arm64) vndklite GSI images.
Viper The Ripper said:
What steps did you follow?
I'm looking for it too, but to no avail. ALL Ares treble kernels that support 64 bits send me to download mode after flashing them.
Click to expand...
Click to collapse
i just used a lineageos 18 gsi image and the treble vendor, but it turns out that while it did get to the boot screen that says lineageos (which gave me tremendous amounts of hope), it would NEVER boot up, so dont do what i did i guess lol
currently, im trying what nqnxev told me, and it should hopefully work
nqnxev said:
It brought you to download mode probably just because you used wrong architecture of GSI. Vendor from my previous post is intended for arm32_binder64 (A64 - not arm64) vndklite GSI images.
Click to expand...
Click to collapse
i got the correct image (lir-v316-220325-a64-bgZ-lite.img) and vendor (A6-Android11-stock-vendor.zip), flashed them with orangefox and its just bootlooping
nukicius said:
i got the correct image (lir-v316-220325-a64-bgZ-lite.img) and vendor (A6-Android11-stock-vendor.zip), flashed them with orangefox and its just bootlooping
Click to expand...
Click to collapse
Did you wipe all needed partitions before that (cache, dalvik, system, vendor, data)?
nqnxev said:
Did you wipe all needed partitions before that (cache, dalvik, system, vendor, data)?
Click to expand...
Click to collapse
of course i did, thats what i always do
Strange. Flash also H-Kernel (as boot image):
https://github.com/samsungexynos7870/android_kernel_samsung_exynos7870/releases/download/H-V1.0-ENFORCING/H-KERNEL_V1.0_A600X.img
nqnxev said:
Strange. Flash also H-Kernel (as boot image):
https://github.com/samsungexynos7870/android_kernel_samsung_exynos7870/releases/download/H-V1.0-ENFORCING/H-KERNEL_V1.0_A600X.img
Click to expand...
Click to collapse
it works!!! i did want to use the kernel at first, but i didnt know how i should flash it, thanks for clarifying!
hey, is there also a vendor for android 12? i want to give lineageos 19 a shot, and it doesnt work very well with the android 11 vendor (obviously)
i dont absolutely need it, i can stick with lineageos 18, but i just wanna try it out yk
nukicius said:
hey, is there also a vendor for android 12? i want to give lineageos 19 a shot, and it doesnt work very well with the android 11 vendor (obviously)
i dont absolutely need it, i can stick with lineageos 18, but i just wanna try it out yk
Click to expand...
Click to collapse
Android 12 works fairly well on the same vendor, but flash this recovery at first, because older OrangeFox can stuck while boot with Android 12.

Question Flashing GSIs : Safe ?

I have recently bought this phone and would like to know if someone tried flashing GSIs and if it is stable safe performant etc
Could be a good choice until custom roms appear
A GSI is typically safe because it does not contain any device-specific code. You still need to wipe user data when going from one system image to another. A couple of the most stable and continuously updated GSI projects are Pixel Experience, and the LineageOS GSIs by AndyYan. You can find those here.
V0latyle said:
A GSI is typically safe because it does not contain any device-specific code. You still need to wipe user data when going from one system image to another. A couple of the most stable and continuously updated GSI projects are Pixel Experience, and the LineageOS GSIs by AndyYan. You can find those here.
Click to expand...
Click to collapse
Heello V0latyle, quick request: can you please point me/us to a GSI install guide? =)
Kimbaroth said:
Heello V0latyle, quick request: can you please point me/us to a GSI install guide? =)
Click to expand...
Click to collapse
I'm not familiar with Xiaomi devices, so no.
Assuming they follow the AOSP model (ability to flash partitions via fastboot) you would simply use ADB to flash /system with the GSI.

A600G andriod 11 gsi

Looking for A600G andriod 11 gsi's stable enough please
John072021 said:
Looking for A600G andriod 11 gsi's stable enough please
Click to expand...
Click to collapse
If you're able to install TWRP, you should be able to run any GSI you want.
I have written a guide here but it is your responsibility to know what you are doing.
Read also that thread, there are at least two guides for A600X:
Question about lack of A6 ROMs
After spending a couple of weeks searching for LineageOS for the A6 (not A6+), I've discovered that there's very little support for this device. Why is this?
forum.xda-developers.com
It work thankyo
I'ved been using it for a day now so far so good
Using this guide for a600g
Post in thread 'Question about lack of A6 ROMs' https://forum.xda-developers.com/t/question-about-lack-of-a6-roms.4399123/post-86381773
By the way I used andriod 10
I used twrp 3.6.0 not (3.6.2)not stable and after format data then install fox via twrp and repeated the format data, reboot recovery
And after that I flashed rmm and multi Samsung disabler( tried to boot to Samsung stock but failed)so, I installed gsi by this guide Post in thread 'Question about lack of A6 ROMs' https://forum.xda-developers.com/t/question-about-lack-of-a6-roms.4399123/post-86381773
nqnxev said:
Read also that thread, there are at least two guides for A600X:
Question about lack of A6 ROMs
After spending a couple of weeks searching for LineageOS for the A6 (not A6+), I've discovered that there's very little support for this device. Why is this?
forum.xda-developers.com
Click to expand...
Click to collapse
Hey brother just to ask what os ur using right now?
Lineage 18 r mod when playing games while playing it just freeze and make a sound like its over use how to fix?
John072021 said:
Lineage 18 r mod when playing games while playing it just freeze and make a sound like its over use how to fix?
Click to expand...
Click to collapse
It's hard to say, try maybe flashing different kernel at first, and if it won't help ten play with different GSI's from the list:
Generic System Image (GSI) list
Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.
github.com
Choose arm32_binder64 vndklite images as always.
John072021 said:
Hey brother just to ask what os ur using right now?
Click to expand...
Click to collapse
Stock + H-Kernel, because I'm using SmartView.
Is it ok to flash andriod 13?
John072021 said:
Is it ok to flash andriod 13?
Click to expand...
Click to collapse
You can try. but don't use old custom recovery, because Android 12+ can cause recovery bootloop. Try with this OrangeFox. Such GSI gives no guarantee of proper work on that A600X vendor.
Brother how to flash H kernel on stock?
John072021 said:
Brother how to flash H kernel on stock?
Click to expand...
Click to collapse
As usual - in custom recovery (flash as boot image).
Working on andriod 10?
Sure, works perfectly.

Categories

Resources