Search This thread

Leonniar

Senior Member
Sep 23, 2021
83
4
So it worked?
This "error" isn't an "error" so don't worry about it
If it's not an error then yeah it worked !
4 reboots no problem, powering off and then on also worked fine, I can boot into fastboot and recovery fine as well. How do I make sure there is no other problem going on tho ? Will I just have to wait and see ? I also changed a couple of settings in between reboots and stuff and no problems so far
 

Rares6567

Senior Member
Apr 5, 2022
248
33
If it's not an error then yeah it worked !
4 reboots no problem, powering off and then on also worked fine, I can boot into fastboot and recovery fine as well. How do I make sure there is no other problem going on tho ? Will I just have to wait and see ? I also changed a couple of settings in between reboots and stuff and no problems so far
Well I don't think u will face with any problem from now, so don't worry about it 😉
 

Leonniar

Senior Member
Sep 23, 2021
83
4
Well I don't think u will face any problem from now, so don't worry about it 😉
I am asking because this whole problem started after I tried re-rooting the phone. I went to install magisk through twrp, it failed, and that's how I started with the loops again so I am guessing there was still something wrong that I hadn't noticed
 

Leonniar

Senior Member
Sep 23, 2021
83
4
Oh, when I tried it before I followed a tutorial saying you download magisk.apk from github, rename it to .zip and install it through twrp. So I probably shouldn't be doing that
 

Leonniar

Senior Member
Sep 23, 2021
83
4
hmm, makes sense to be honest. I saw someone doing it on a Mi 10T and just went with it, at least now I know ! I will root it right now. Hopefully everything goes well so I can stop bothering you all hahaha. Just one last question, I made a seperate thread to not flood this one yesterday (when I still thought my device was fine) about updating MIUI to an android 12 version, I could not find any info online regarding this
https://forum.xda-developers.com/t/android-version-and-roms.4547753/
 

Rares6567

Senior Member
Apr 5, 2022
248
33
I'm using orangefox and just flash the zip ( I'm using a Redmi 9A ) and the phone works perfectly, no bootloop or something else, but maybe the custom recovery supports to install magisk with the zip
 

Leonniar

Senior Member
Sep 23, 2021
83
4
Yeah in the tutorial they were using orangefox but I just assumed it didn't matter. I guess it did! I will try the official instructions first since after re-watching the tutorial the rom was of a different region so that might play a part as well
 
  • Like
Reactions: Rares6567

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,221
6
2,883
gitlab.com

Attachments

  • magisk vbmeta patching.mp4
    3.5 MB · Views: 0
  • Love
Reactions: Leonniar

Leonniar

Senior Member
Sep 23, 2021
83
4
Woah that extremely helpful ! and then I just flash the patched file right ? Hopefully I won't need it but that's great to know. I am planning on rooting 3-4 other devices after this (I found them in my old phone pile while looking for a temporary one since my main needed attention hahaha) thanks for the link as well !
 

NOSS8

Recognized Contributor
Woah that extremely helpful ! and then I just flash the patched file right ? Hopefully I won't need it but that's great to know. I am planning on rooting 3-4 other devices after this (I found them in my old phone pile while looking for a temporary one since my main needed attention hahaha) thanks for the link as well !
You must use the boot,vbmeta img of the rom version you are using.
No need for Twrp or O.F to root.
Current method to be adapted according to your device.

1. Find or redownload the TGZ file(fastboot rom) for your current ROM or custom rom
2. Browse inside the zip file and find boot ,vbmeta,img** under the images folder
3. Copy this file to a temporary location in your PC first, and then transfer it to your phone
4. Install the desired version of Magisk app (V23?)
5. Run the app and choose Install under Magisk
6. Choose Select and Patch a File, then select the boot.img that was transferred earlier
7. A process will run and create a new .img file in the same folder where the original one was
8. Transfer the new file to your PC in the same directory where fastboot.exe is located
9. Open a command prompt window in that same directory
10. Reboot your phone to fastboot mode and connect to PC, USB2.0 port. Check for connection by running command fastboot devices.
11. Run the command fastboot flash boot_ab magiskXXXX.img*

Once it's completed, run command fastboot reboot and the phone should boot and be rooted.
*devices with A/B partitions
**depending on the type of device
 

Leonniar

Senior Member
Sep 23, 2021
83
4
Thanks for the detailed Guide ! TWRP is for convenience, I didn't plan to flash it for root, I just prefer it to stock recovery.
One thing I dont understand is the difference between the fastboot and recovery variant of a ROM(apart from the installation process). The only actual difference I find online is the "Supported modules"
For the fastboot variant, supported modules are recovery and bootload.
For the recovery variant, supported modules are boot animations and logo root apps.

What are boot animations and logo root apps. ?
Does this mean that recovery variant has no boot animations and logo root apps. and fastboot variant does not have recovery and bootload. respectively ? That wouldn't make sense tho
 

NOSS8

Recognized Contributor
Thanks for the detailed Guide ! TWRP is for convenience, I didn't plan to flash it for root, I just prefer it to stock recovery.
One thing I dont understand is the difference between the fastboot and recovery variant of a ROM(apart from the installation process). The only actual difference I find online is the "Supported modules"
For the fastboot variant, supported modules are recovery and bootload.
For the recovery variant, supported modules are boot animations and logo root apps.

What are boot animations and logo root apps. ?
Does this mean that recovery variant has no boot animations and logo root apps. and fastboot variant does not have recovery and bootload. respectively ? That wouldn't make sense tho
The recoveriy contain what is strictly necessary to start the phone or update it, unlike fastboot which contains all the imgs, hence the size difference and can only be flashed with an unlocked bootloader and Miflash.
 
  • Like
Reactions: Leonniar

Leonniar

Senior Member
Sep 23, 2021
83
4
So there is no real difference, I can just use the recovery one that's easier to install and still have everything (fastboot, recovery etc.)
 

NOSS8

Recognized Contributor
So there is no real difference, I can just use the recovery one that's easier to install and still have everything (fastboot, recovery etc.)
The boot img as well as the vbmeta img are directly accessible with a fastboot rom(img folder) while with a recovery you will have to use a program to extract them (long and tedious) and in the event of a problem, for example no more fingerprints, the recovery does not you will be of no use.
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,221
6
2,883
gitlab.com
If you unpack the files you will note there is a difference. (smaller) recovery miui_APOLLOEEAGlobal_*.zip is for upgrading ROM from recovery mode. (bigger) fastboot apollo_eea_global_images*.tgz is for full flash ROM+firmware. latter one is required for unbrick, can also flashed in EDL mode (authorized account only) and from fastboot or (twrp) adb.
 

Leonniar

Senior Member
Sep 23, 2021
83
4
Ok so since I will root the device I might as well flash the fastboot variant because I will have to download it anyway to get the boot and vbmeta img
 
  • Like
Reactions: Rares6567

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Well I just closed the Install driver window and flashed as is, I got this:
    https://prnt.sc/Bk2eaj9w5Lq7 so presumably it failed but my devices rebooted and is now on system set up

    Edit:
    3 reboots later and phone still boots fine to system
    This error is normal since you are not re-locking the bootloader.
    If some functions are inoperative.
    Try to flash the same rom (fastboot) that you had when you bought the phone, probably an A11.
    Use clean all(flash_all.bat).

    https://forum.xda-developers.com/t/flash-tool-guide-use-xiaomi-flash-tool.4262425/
    2
    Woah that extremely helpful ! and then I just flash the patched file right ? Hopefully I won't need it but that's great to know. I am planning on rooting 3-4 other devices after this (I found them in my old phone pile while looking for a temporary one since my main needed attention hahaha) thanks for the link as well !
    You must use the boot,vbmeta img of the rom version you are using.
    No need for Twrp or O.F to root.
    Current method to be adapted according to your device.

    1. Find or redownload the TGZ file(fastboot rom) for your current ROM or custom rom
    2. Browse inside the zip file and find boot ,vbmeta,img** under the images folder
    3. Copy this file to a temporary location in your PC first, and then transfer it to your phone
    4. Install the desired version of Magisk app (V23?)
    5. Run the app and choose Install under Magisk
    6. Choose Select and Patch a File, then select the boot.img that was transferred earlier
    7. A process will run and create a new .img file in the same folder where the original one was
    8. Transfer the new file to your PC in the same directory where fastboot.exe is located
    9. Open a command prompt window in that same directory
    10. Reboot your phone to fastboot mode and connect to PC, USB2.0 port. Check for connection by running command fastboot devices.
    11. Run the command fastboot flash boot_ab magiskXXXX.img*

    Once it's completed, run command fastboot reboot and the phone should boot and be rooted.
    *devices with A/B partitions
    **depending on the type of device
    1
    I really don't know, after running flash_all the second time now my phone is stuck in a restart loop. Shows the MI logo and restarts. I can manually boot to recovery or fastboot but if I leave it on it's own it keeps turning on and off
    🤔 It seems that this a software bug ig, can you try go to recovery and flash the rom?
    1
    🤔 It seems that this a software bug ig, can you try go to recovery and flash the rom?
    flashing miui_APOLLOEEAGlobal_V12.5.4.0.RJDEUXM_451a2324af_11.0.zip from stock recovery is good idea, you can do this from MicroSD card to circumvent any usb issues you are obviously facing on fastboot.
    1
    Oh right that worked! I don't know how I missed that ! I hide all the services and apps related to google play store(there is one called "Carrier Services" with google play store logo, hidden that as well). Magisk is already hidden!
    Thanks for the help !
    Your welcome 😁!!!!