How to flash a Treble img on redmi 4 prime - Xiaomi Redmi 4 Prime Questions & Answers

I am used to normal flashing. But there is no good official rom for markw. Mokee lags and unstable,I didn't like dotOS ui, havoc was great but unstable with many problems like bettary draining, heating even in sleeping etc. I want to install RR or aosp extended treble img.
Did anyone in this forum flash treble img?? Can anyone help me?? I didn't find anyone who flashed a treble img on an unofficially treble supported device like markw.
Thanks in advance.

Use treble recovery to flash treble roms. GSI's can be flashed with it, you'll additionally need vendor to flash after flashing GSI.

Process
kibria.mgk said:
Use treble recovery to flash treble roms. GSI's can be flashed with it, you'll additionally need vendor to flash after flashing GSI.
Click to expand...
Click to collapse
Will this process work?
1) Flash a treble enabled rom(havoc).
2) Factory data reset with twrp.
3)Install treble gsi.
Thanks for reply.

Fateful n5 user said:
Will this process work?
1) Flash a treble enabled rom(havoc).
2) Factory data reset with twrp.
3)Install treble gsi.
Thanks for reply.
Click to expand...
Click to collapse
I think the following is better:
1. Flash gsi (with all fundamental wipes, ofc.)
2. Flash vendor
3. Flash post gsi's if required (ported sgsi's require this normally)
4. Flash gapps and magisk (both optional)
5. Boot system

Related

Magisk 16.4 (Error : 1) [TREBLE]

Hello guys i want to use Crdroid official 4.2 Treble build on my Redmi 3S with Magisk - 16.4 [treble flashable zip. But when flash Magisk 16.4, I was found Error 1 in my Twrp Recovery.
Using Rom : Crdroid official 4.2
Recovery : TWRP 3.2.1.0 (Treble mod), allso I'll trid on Redwolf (treble).
How to fix that issue?? Because I want to root my phone.
Please help me guys. I want to flash treble rom with Magisk
MAH35H said:
Please help me guys. I want to flash treble rom with Magisk
Click to expand...
Click to collapse
oh ,this magisk is not support treble,because,it doesn't mount vendor.so you have to use modify mod magisk。you can serch in xda for more help
MAH35H said:
Hello guys i want to use Crdroid official 4.2 Treble build on my Redmi 3S with Magisk - 16.4 [treble flashable zip. But when flash Magisk 16.4, I was found Error 1 in my Twrp Recovery.
Using Rom : Crdroid official 4.2
Recovery : TWRP 3.2.1.0 (Treble mod), allso I'll trid on Redwolf (treble).
How to fix that issue?? Because I want to root my phone.
Click to expand...
Click to collapse
reflash u boot.img from u rom
then instal again magisk treble
if error. try to download again
maybe ur package zip is eror
Can anybody paste a downloadable link for magisk treble. I am facing the same problem. Please help!!!!
That same problem. I'm trying to flash clean boot.img over and over and no solution
Magisk 16 treble beta
Skys源儿 said:
oh ,this magisk is not support treble,because,it doesn't mount vendor.so you have to use modify mod magisk。you can serch in xda for more help
Click to expand...
Click to collapse
Magisk 16 treble beta is working fine and flashable ..
Install latest TWRP r2.
Hello, I got error: 255 when I tried to flash Magisk 16.4 with TWRP r2 for treble
any ideas ?
aryancol31 said:
Can anybody paste a downloadable link for magisk treble. I am facing the same problem. Please help!!!!
Click to expand...
Click to collapse
http://downloadmirror.co/Wso/Magisk-v16.4.zip
The error occurs because twrp is unable to mount vendor
Use twrp treble mod and
Magisk cust.zip
it worked for me
pavanp1 said:
The error occurs because twrp is unable to mount vendor
Use twrp treble mod and
Magisk cust.zip
it worked for me
Click to expand...
Click to collapse
how i can download twrp treble mod and Magisk cust.zip,my drive is redmi 3s
Sent from my land using XDA Labs
I haven't tested this project, but it seems to work with our treble ROMs.
https://gist.github.com/Jerry981028/b6a7fdfcf1823325c2f94f83677fa554
I am too facing issue with magisk. The phone does not boot after I flash it through twrp (treble supported recovery) and when i many tries to boot it gets soft bricked.
It has been reported many times...
Treble recovery is mandatory, if you have not already install it, pick the R2 version here :
https://sourceforge.net/projects/team-reloaded/files/land/TWRP/Treble/
You can find a working magisk 16.4 here :
https://forum.xda-developers.com/showpost.php?p=77062410&postcount=1322
Magisk issue is due to corrupt file.
Magisk issue is due to corrupt file. First be sure to have a treble compatible recovery and to enable treble if needed.
you can find a working magisk here : https://forum.xda-developers.com/sho...postcount=1322
Flash twrp treble recoveryagain, you must have flashed wrong recovery....
Same happened with me...
Flashed twrp again then flash magisk

How install treble roms???

There are several TREBLE roms.
Dots, pixel, lineage, cosmic, RR.
Can we install any GSI on our Mate 9 with fastboot ??
aureliomilitao said:
There are several TREBLE roms.
Dots, pixel, lineage, cosmic, RR.
Can we install any GSI on our Mate 9 with fastboot ??
Click to expand...
Click to collapse
In pricipal, you can install any treble rom through fastboot if you are already on Oreo without any kind of modifications to avoid complications. Reset your device and install through fastboot and reset again before booting.

Solved : Error 1 Can't mount Vendor

I won't go into the mentioning the whole Technical details of the project treble here. Giving you links to the Pages and threads that have dedicated their time into explaining it in the best possible manner.
XDA thread
https://www.xda-developers.com/how-project-treble-revolutionizes-custom-roms-android-oreo/
Android Authority
https://www.androidauthority.com/project-treble-818225/
Project Treble
https://forum.xda-developers.com/project-treble
Due to the unofficial implementation of Treble ROMs, a new partition called 'Vendor' Partition is introduced. This gives the noobs like me a huge headache as most of the programs and modules including magisk give errors while trying to flash them. This has led to all the threads being flooded with the same questions again and again without much help.
I thought of compiling all the problems and providing all the solutions to the problems.
All the Treble ROMs and GApps packages can be installed by any latest recovery coz 'mido' phones have unofficial Treble builds which is done by tweaking some partitions. The recovery software or the phone firmware is not aware of it and can't distinguish between the two.
The problems arise when one tries to flash the modules or rooting softwares. The most common error is 'Error:1' 'Can't mount the vendor partition'.
Getting Started
You need to have a treble enabled Custom Recovery.
TWRP Exclusive 3.2.1-7 by @NFound
This recovery would show the 'cust' partition as 'vendor'. Thus solving all the errors regarding the Vendor partition.
Most of the oreo 8.1.0 ROMs are Treble enabled as of now. But this recovery will support non Treble ROMs as well without any problem. Below are the list of ROMs available for Mido.
Oreo ROMs
All ROMs
Root
The official Magisk thread is flooded with the same question of Error:1 can't mount vendor.
The official version(16.0) doesn't throw an error when flashed with treble enabled recovery but the phone goes into a bootloop. A customized version of magisk for Treble ROMs is required to solve this issue.
Magisk 16.4 - Treble by @Nurananto
Tip : Install Magisk Manager before flashing Magisk in recovery. Can solve 'app not installed' errors while updating Magisk Manager.
Unistalling magisk cannot be achieved by the Magisk Uninstaller. Extract the 'boot.img' from your ROMs flashable zip and flash it using TWRP recovery.
Boot into recovery -> Install -> Install Image -> boot.img -> click on boot -> Reboot.
Reflashing Magisk will return all the Modules without any problems.
Tip : This trick can be used if any module or magisk runs into error or keeps stopping. It can also be used for updating Magisk to the latest version.

Android 10/11 GSI setup for Oneplus 5

Can anyone guide or gimme any link for the steps for flash Generic Phh GSI or ErfanGSI on Oneplus 5
I've tried every method but every time device rebooted to Recovery...
Thanks
zaibansari20 said:
Can anyone guide or gimme any link for the steps for flash Generic Phh GSI or ErfanGSI on Oneplus 5
I've tried every method but every time device rebooted to Recovery...
Thanks
Click to expand...
Click to collapse
use pie vendor (lineage 16)
all Q vendor from custom rom didnt boot
install lineage and noverity (i'm on decrypted)
reboot into twrp and factory reset
install MakeMeSAR file (before install gsi system image) always
https://www.androidfilehost.com/?fid=4349826312261728344
now install gsi image system (Q/R) and noverity
https://sourceforge.net/projects/my-builds/files/Misc. Files/No Verity Treble 4.0.zip/download
reboot system.
jahidinbedod said:
use pie vendor (lineage 16)
all Q vendor from custom rom didnt boot
install lineage and noverity (i'm on decrypted)
reboot into twrp and factory reset
install MakeMeSAR file (before install gsi system image) always
https://www.androidfilehost.com/?fid=4349826312261728344
now install gsi image system (Q/R) and noverity
https://sourceforge.net/projects/my-builds/files/Misc. Files/No Verity Treble 4.0.zip/download
reboot system.
Click to expand...
Click to collapse
I'll give it a shot and let you know
Thanks
great!it works
billsz said:
great!it works
Click to expand...
Click to collapse
I've been busy in my exams, I'll try this as soon as get free
Which GSI you flashed??
Is it stable enough??

Flashed Recovery and OS from OP5T on OP5

Hi,
i've made a big mistake, i have flashed TWRP and LineageOS/Stock-Roms from Oneplus 5T on my Oneplus 5. There was only a few things that don't work. Now when i boot into Recovery i can't install LineageOS for the OnePlus 5 because of Error 7. Is there a special TWRP for Oneplus 5T and Oneplus 5 or is it the same for both devices? At the moment there is no OS installed. I have flashed this Recovery https://forum.xda-developers.com/on...overy-twrp-3-2-1-0-oreo-oxygenos-5-0-t3725723 and tried to flash LineageOS for OnePlus 5 but it failed with
zip treble compatibility error!
invalid zip file format
Click to expand...
Click to collapse
I have the same error when i try LineageOS and LineageOS microG. What is wrong here? Is there any way to start again with a new fresh stock rom for the oneplus 5?
gene2 said:
Hi,
i've made a big mistake, i have flashed TWRP and LineageOS/Stock-Roms from Oneplus 5T on my Oneplus 5. There was only a few things that don't work. Now when i boot into Recovery i can't install LineageOS for the OnePlus 5 because of Error 7. Is there a special TWRP for Oneplus 5T and Oneplus 5 or is it the same for both devices? At the moment there is no OS installed. I have flashed this Recovery https://forum.xda-developers.com/on...overy-twrp-3-2-1-0-oreo-oxygenos-5-0-t3725723 and tried to flash LineageOS for OnePlus 5 but it failed with
I have the same error when i try LineageOS and LineageOS microG. What is wrong here? Is there any way to start again with a new fresh stock rom for the oneplus 5?
Click to expand...
Click to collapse
Yes, there are 2 ways.
1. Flash OOS from bootloader, or via adb sideload. Else use MSM Tool to flash OOS. Then lock bootloader, and unlock again to flash the TWRP. After that all back to normal.
2. Lock the bootloader and unlock, then flash CodeworkX Force Encrypt TWRP from the same link. Format data and try.
#1 will make it all clean with no need of vendor again.
#2 will have the need to flash vendor image again.
is it stable? did u have navigation gestures hahaha just wondering
what didnt work?
Most works. Microphone didn't work and sometimes bluetooth.

Categories

Resources