yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Nirav Tailor:
I am on non treble ROM..I installed modified TWRP for treble roms.Now please any one explain me what should I wipe if

1. move to treble ROM from non treble ROM

2.move to treble ROM from treble ROM

3.move to non treble ROM from treble ROM.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] debdecoy:
No need to format data for encrypted devices just provide your login pin or pattern to decrypt the device and go ahead with the remaining steps.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ZjemCiKolege:
v4?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
For all three the same, wipe /System, /Data, /Cache, /Dalvik Cache

If you're about to update to a new Version you can just flash and reboot without wiping anything.

You can use Treble TWRP for all but MIUI. MIUI will need normal TWRP.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Nirav Tailor:
But in other thread some one tell me i should wipe vendor partition also that's why I am confused.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
Yes, you may wipe /Vendor but it will be overwritten by new Files anyway.

When switching to non Treble you can leave /Vendor as it is because it's not needed for non Treble. Just MIUI will need the /Cust

Greetings

Thomas
[Xiaomi Redmi Note 4 Guides, News, & Discussion] cannone94:
When i flash magisk (the treble version) the smartphone bootloop on mi logo, forma boot i must flash the vendor v3 but on boot i don't have magisk :/
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
That's because Treble Magisk is installed to /Vendor (I think) and each time you flash the Vendor V3 it will be overwritten.

I don't know why Magisk gives you Bootloop, which ROM are you using?

Also, don't forget that Zile's V3 still uses an old Kernel so if you're using a newer ROM, like i.e. RR from May, you will have to reflash the Kernel. Or do a Backup of the new Kernel (Boot), install the /Vendor and then just restore the Kernel.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] cannone94:
I've change magisk zip, did a clean flash and now all it work :)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Redmi4power:
I read somewhere on RR treble thread that before I update I should wipe : ( it's not required but it prevent problems they said )

- dalvik cache / system

Dalvik cache I understand it's the same on non treble builds always good to wipe to prevent issues ;)

But why wipe system ?? It's just an update .

Won't wiping system remove gapps ?

Why should I wipe system when dirty flashing an update ?

Thanks
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
Wipe /System for an Update doesn't make sense except for changing Versions ( i.e. from Nougat to Oreo)or if the Developer tells you to do because he made some major changes.

For normal update, just flash and reboot or, optional, wipe Caches. Worked for me without any Issue with the May Update of Treble RR and I have no clue why it shouldn't ;)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Redmi4power:
Nice thanks for your answer ;)

There is no may update for RR as far as I know .

We'll it's from 2/05 but no may security patch don't know why it's so slow AEX rom already is on may patch
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
Yes, true it's April Patch but I don't think that's a Problem. The ROM is running fantastic for me, even my usual itch to flash something is gone for weeks ;)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Redmi4power:
Yeah it's really good. I feel like battery life is even better than miui ;)

I noticed some bugs though I just posted them on RR thread
[Xiaomi Redmi Note 4 Guides, News, & Discussion] drmuruga:
I know voLTE is not working, but any fix to enable it ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ciscoac:
Can i flash magisk on aosp Image?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] makarov90:
Where it is possible to get updates of this or how to do it yourself ???
[Xiaomi Redmi Note 4 Guides, News, & Discussion] juned.khatri31:
Fingerprint not showing in AOSP vanilla. Any solution?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] IanHodgson:
Before I flash new Pixel Experience treble GSI, can someone please confirm the procedure for me. I am currently on non-treble PE, but I do already have treble-enabled TWRP installed. So:

1.wipe /system, /cache, /dalvik cache, /data (if I want), /vendor

2.flash a treble ROM, eg.LO15.1 official; or AOSP GSI from this OP + kernel + vendor zip

3. boot system

4. Reboot to recovery

5. Flash PE GSI *.img

6. Flash custom magisk for root

7. Reboot. Done

Just checking I have understood the instructions in OP correctly. Thanks so much.

Ian

Edit: no need to reply to all this. Have just seen PE thread has been updated by OP. So just one question: If I understand treble correctly, if I wanted to flash a different treble ROM later, all I would need to do is flash the new *.img to /system. Is that right?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] IanHodgson:
So the difference between PE GSI and the PE treble download file is that the PE treble ROM also contains vendor, kernel and gapps? Is the kernel the same as before (except for any other non-treble-related changes)?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] karanbir singh:
I'm on non treble rom and wanna flash treble, just wanna know what is the gsi ???
[Xiaomi Redmi Note 4 Guides, News, & Discussion] IanHodgson:
Global System Image. Once your device is trebel-ised you can flash any GSI. The device specific code and files are in /vendor and maybe other partitions too. If you want to trebel-ise your phone the simplest thing to do is follow the OP's instructions in latest PE or LOS threads. Also if you read the threads about treble you'll get your head round it soon enough.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] karanbir singh:
For treble-ise my phone, do i need to wipe system, data, cache, delvik cache and vendor and then to flash PE treble built rom, I'm confused ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] IanHodgson:
Yes, see instructions on PE thread around page 140-ish. Also for me, flashing trebelised magisk straight away before first boot works best.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] karanbir singh:
I read the instructions, but then what's the use of GSI ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] IanHodgson:
These instructions, p.143. Tried to copy and paste from other thread but app would not let me so here's a screenshot
[Xiaomi Redmi Note 4 Guides, News, & Discussion] karanbir singh:
Yeah, i have read these but what about gsi, whats the use of gsi ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] IanHodgson:
It is 'global'. To flash a new ROM you won't need a device-specific ROM. No matter what your phone you can install GSI as long as your phone is treble.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] karanbir singh:
So what gsi can i flash after flashing PE ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] IanHodgson:
Any treble GSI. GSI consists of a system.img.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] IanHodgson:
Thanks for the correction. But I explained it right, didn't I?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] David_#27:
Okay and here is my question:

Do we have sound mods on Treble ROMs?

And if yes, can you provide me a link?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] karanbir singh:
Use magisk modules. They work fine for me.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] David_#27:
I don't think there are magisk modules for Dolby Digital plus and Dolby Atmos...
[Xiaomi Redmi Note 4 Guides, News, & Discussion] karanbir singh:
Dont know, I'm using viper4android
[Xiaomi Redmi Note 4 Guides, News, & Discussion] vilator:
I don't know if this has been answered, I searched, so if I am on the latest treble ROM, new ota updates/patches will download and install normally? So wouldn't have to flash new version through recovery?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] RabbidZ:
For a Lineage OS I accidentally removed the /vendor partition. Can I use the vendor image in the first post to recover it?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] maruashok:
Hi i today i flashed RR 6.1 and due to some bugs and now i am tired of testing Custom ROMs so now i am planning to go back to MiUi Official,

so question is whats about vendor image..? do i need to format it or not.?

i am going to flash miui rom with fastboot method so is there any precautions that i need to consider..?

i checked fastboot rom and did't find anything related to vendor.img so what to do with vendor..?

i google it but all i find is install treble rom and nothing about uninstalling treble rom.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kunal.solanki.965:
is volte working for aosp build with su and gapps coz on my redmi note 4 volte isnt workin please make a video on how to properly install these trebel roms
[Xiaomi Redmi Note 4 Guides, News, & Discussion] NE0HP:
It would be nice if someone here who has flashed the latest available GSI(any) on Mido and share what's working and what's not since there are now plenty of device specific treble ROM available with all new vendor partitions(in some with overlay folder included to enable something like adaptive brightness) because it plays a very vital role to get things works properly.

In my case and I don't know it just me but after flashing Phusson's AOSP phh treble, Unofficial RR and Unofficial LOS phh treble over device specific LOS treble build phone booted successfully but I found following things didn't worked or not available.

1, Fingerprint option under security is missing

2, Adaptive brightness not available

3, Audio Out put while playing music on headphone seems does not work and it play music on speaker despite of headphone connected.

4, After GSI successfully boots, and after flashing GApps device certificate uncertified(I think this issues is universal though with all device) persist consistently despite of flashing custom treble magisk but somehow I managed to got device certified by using Magisk module MagiskHide Props Config of Didgeridoohan by following his method by changing the device fingerprint.

I also tried and changed device specific treble ROM from LOS to PE by CLEAN flashing Pixel Experience device specific treble ROM(Vendor partitions looks almost same like LOS) and then I tried flashing Pixel Experience GSI over it but found the same results as mentioned above.

Lastly I again clean flashed DotOS treble ROM and flashed DotOS GSI over it and at least I found adaptive brightness working since they included the Overlay folder under vendor folder which contains fix for adaptive brightness but rest other two things(Fingerprint & Audio output) doesn't worked/unavailable.

Above is just my finding and I may be wrong or doing something wrong so if anyone has both fingerprint and audio out working on GSI please do care to share so that the others who really is interested in to use GSI as their daily driver ROM can flash without any trouble and w/o waiting / depending on a device maintainers.

If I'm not wrong, VoLTE is currently not working on any GSI.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
There is no VoLTE for GSI (afaik).

You don't need a Video, reading the first Post will tell you all you need.

It's been a while that I've set up a GSI because Treble RR is running awesome for me but some weeks ago I always did it that way:

- install Treble LOS/RR (latest)

- boot System

- wipe System, flash GSI Image

- reboot Recovery

- flash GApps that fits for Partition Size

All basic stuff was working, Fingerprint, Sound and and..

Maybe something changed that way in the last weeks but that should do the Trick as it keeps using the Vendor and Kernel Files for our Device.

Sorry I don't have much time lately, hope that helped a bit?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] stevegtrlmk:
Hey thanks for the thread have question I have downloaded and flashed the modified twrp so can I only flash lineage or can I try other ROMs.

I am use to just flashing what ROMs I want had it very easy on one plus one:)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
Hey, with Treble TWRP you can flash any ROM

except

MIUI

Greetings
[Xiaomi Redmi Note 4 Guides, News, & Discussion] NE0HP:
Can you please share on what device specific custom treble rom you were on and what version of GSI did you flashed over it? Asking because I want to know on which version of device specific treble ROM worked for you so that I can flash that treble ROM first since i guess it's vendor seems to work perfectly on GSI. FYI, I tried and flashed various available GSI over LOS, PE & DotOS device specific treble ROM and found fingerprint option missing under security settings in all GSI. I followed your steps as mentioned above and flashed phussons latest v5 RR GSI over DotOS device specific treble ROM today and as usual it boots fine, almost all things worked except no fingerprint option under security settings so can't figure out what am I doing wrong?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
Yes, it was about Version 10 or 11 of this Thread but that's no longer available. You may try the up-to-date Version (21). The last Vendor with some Mido specific Files by [MENTION=5839502]Zile995[/MENTION] can be found in OP (or here)

I don't have the time to set up one right now but if I had I would try :

- extract boot.img from some actual Treble ROM

- flash zile's Vendor/Boot

- flash phhusson's latest Version

- flash actual boot.img

Try :)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] NE0HP:
Thanks. I will try it when new release of GSI is out with July security patch.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
It is there now, I'm downloading and will report back how/if it works

EDIT:

Fought with strange .xz extension, finally found out it was an archive lol I´m getting old..

Flash success but didn´t get System Partition to rw. System boots and seems to work, no Fingerprint as reported.

Due to short time I am back to Treble RR, maybe someone else will help, sorry!
[Xiaomi Redmi Note 4 Guides, News, & Discussion] NE0HP:
Thanks for the report. So I guess with latest device specific treble rom's vendor partition seems culprit especially for missing fingerprint option under security. I also tried and diged it further by following your suggested steps and flashed the zile's vendor+kernel v3 zip(which I guess he has fetched it from LOS unofficial build by Abhishek) over my latest dotos treble rom and then flashed phusson's latest v22 AOSP phh build and it boots fine and voila... Fingerprint option is right there under security settings. But when I tried to flash boot.img extracted from latest treble rom(both LOS official & DotOS official) the device bootloops.

It seems that the latest boot.img might not compatible with older vendor partition and newer vendor portions doesn't worked properly as far as fingerprint is concern. So I also revert back to the DotOS treble rom for now and wait until any fix.

I hope Dev will look in to this someday if they haven't noticed it yet or they might have already started working on it!
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
I restored boot.img from my RR Backup (June) and it worked fine with V22, just no Fingerprint but I used RR Vendor, too, maybe that's why.

Another option could be Franco Kernel, at least it's worth a try.

How did you get /System writeable for GApps? No matter what I tried, it stayed read-only and GApps gave me an Error.

Keep up trying, I will as soon as I find time :)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] NE0HP:
I forgot to mentioned that I did flashed Franco kernel and that too ended up in bootloop.

To fix GApps error, after flashing GSI, you must reboot the device to system before flashing GApps(Don't just reboot the device to recovery and flash GApps, it will throw an error). Once device boot in to System then boot again to recovery by using hardware button combination(Power + Vol up) and then flash GApps.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
Okay, will try again but I'm pretty sure that I tried all kinds of reboot, including boot into System, turn Device off completely, wipe, reflash Recovery.

Going to do a full Backup of my Files tomorrow and format Data to do start a clean setup.

On the other Hand, RR is running very well for a long time now, awesome Battery and everything I need works so I kind of settled there. But I will try AOSP once again :)

Still, the restored RR Kernel did work on V22, strange, isn't it?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] NE0HP:
Yes, that's strange but still do not know why only fingerprint option is missing!!! One more thing I noticed though while flashing zile's vendor+kernel v3 zip is that after booting the device it is showing Selinux status Permissive, means the kernel and vendors are from unofficial build. So boot.img which we're extracting from all our current device specific latest treble rom is Selinux Enforcing and that might be the reason of causing bootloop when we're flashing it on top of older kernel.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] budsz:
Sir, I have question what is differences between TWRP vendor support and TWRP official which is listed on their web base on device supported?

Thank you.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] IanHodgson:
Is there a good reason to update treble-enabled magisk from LO15.1 thread to the official latest magisk 16.6 beta? Is there a difference?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
Mido isn't an official Treble Device but our Devs managed to use the /cust Partition as the /Vendor Partition that's needed for Treble.

So the official TWRP will not work for Treble same as the modded TWRP will not work for MIUI.

I am not using Magisk, maybe some other User will tell or you should have a look into any Treble ROM Thread.

Generally, if the official Magisk does support Treble, make a Backup and try the Update :)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] budsz:
Okay, I got it. Thank you for your explanation.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] alqilents:
Thank you. Great work.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] VinayVins:
I need treble twrp recovery and magisk .

I want to root my RN4 so I need treble twrp recovery and magisk . please share link.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] veeyen:
Unable to install cutom ROM

Hello to all, I am a novice. Kindly pardon me.

I have unlocked boot loader in Redmi Note 4 snapdragon version officially and able to flash TWRP version 3.2.1-0 using minimal adb fastboot. Then using TRWP I have installed lazyflasher-no-verity-opt-encrypt and Magisk-v16.0 and able to boot to the system. I have verified the root using root checker and found it is rooted. Then using TWRP I wiped cache, data, system, Delvik/ART cache and format it. Then I tried to install the aosp_mido-ota-eng.abhishek and BiTGApps-arm64-9.x.x-0.1-unsigned from sd card nothing happens. Both programmes are not installing.

Now I am able to reboot to TWRP or flash boot.

How to install custom ROM or xiomi ROM?

Kindly enlighten me
[Xiaomi Redmi Note 4 Guides, News, & Discussion] CanBostanci:
Hello,

I've installed the official TWRP as I want to use MIUI.eu in the following days. However, I am not able to format data or mount partitions to my PC. Thus, I'm stuck. Is there anyway I can restore the functionality of my mido?

PS: Wiping data or repairing filesystem etc doesnt work. It cannot mount data.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Puneeth 676797:
That specific build you have flashed has issues, it replaces twrp.

1. So flash twrp again using minimal adb(in fastboot mode) .

2. Now it's important step, go to wipe and select format data, this removes the encryption and make you allow to boot custom roms.

3. Reboot to recovery

4. Put that recovery in your internal storage from your pc

5. Flash that gsi(pie rom)

6. Now flash twrp(select install image in install tab and locate it and select recovery to flash it in recovery partition) (if this fails flash it using minimal adb again).

7. Now reboot to recovery

8.. Reboot to system (because you got flash gapps after 1st boot as op mentioned)

9.. Flash gapps and reboot.

Instead you can download a latest build with that issue fixed and flash.

---------- Post added at 04:24 PM ---------- Previous post was at 04:17 PM ----------

Go to mount and tick on every partition that is mountable and reboot to recovery.now wioe

However if you want to use miui then do format data it cause bootloop. If it is already bootloop Ed.

1.Then wipe everything from twrp(after mounting)

2. Download a recovery rom for your device and put it in sd card(internal storage or external storage)

3. Download lazy flasher

4. Its important step Now Flash miui Rom +lazy Flasher and now reboot system.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] mpatate:
Hi, I've tried to install treble rom with twrp treble edition.

I've a "bug" with the message image vendor mismatch.

So I reinstall full firmware miui9 to "reset" the phone to his initial state.

I flash all the necessary for use Resurection Remix Unofficial last non treble version.

But when it boot, I have the same message Vendor mismatch ...

If I flash your file, is it the solution to my problem ?

Thanks !
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Zile995:
You only have to flash custom kernel.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] mpatate:
Thanks for your answer.

I have bought Franco Kernel, but I'd like to use ResurectionRemixUnofficial by LuisRom's kernel.

How can I flash the kernel ? I think it was in the rom I flash :/ (we can download his custom kernel, but it's a treble kernel, can I use it on a no trebble rom ?)

Thanks and sorry for my stupid questions, I use to flash non trebble rom and I think I made a mistake trying (this is the reason I go back on no trebble rom :P)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] mpatate:
I try fleshing electra blue kernel.

Same message vendor mismatch.

When I flash the treble from, it may write on vendor partition, no ?

But when I flash original full firmware, it overwrite this, no ?

So why I have this error again ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] veeyen:
Android pie installed
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
You probably tried GSI?

We've got fully working LOS 16 and AOSP by Abhishek, better use this.

Personally, I am on LOS 16 the 3rd day now with Franco Kernel, no Errors, no Bugs, just perfect Android :)

The AOSP Build seems to have some Problems but I didn't really try.

For flashing if you return from MIUI, Install TWRP with Treble support again, Format Data once, reboot to Recovery, then install LOS or AOSP by Abhishek + OpenGApps of your choice (ARM64+Pie Version of course) and you should be good to go
[Xiaomi Redmi Note 4 Guides, News, & Discussion] mpatate:
I try RR Trebble, for my reference of telephone Xiaomi mido (note 4).

I will try your procedure, thank you !!
[Xiaomi Redmi Note 4 Guides, News, & Discussion] mpatate:
Just a little question please.

Can I format the vendor partition before flashing a rom ?

Thanks
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
Yes, of course, every Treble Rom has its own Vendor Files. Just GSI doesn't have it.

So, for all 8.1 or 9.0 Treble ROM from Mido Forum you can/should wipe every Partition (except Internal Storage, once you formatted it in case of coming from MIUI) for a clean flash.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] mpatate:
Thanks but if i want to install a non trebble rom, it is also possible ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ohwarumbloss:
Yes, you can! Non Treble Roms have their Vendor Files inside /System/Vendor. You can use Treble TWRP for all.

Just not MIUI, it will need normal Recovery.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] mpatate:
Thanks bro'