{Noob Guide} Unlock Bootloader n Root with Magisk With Easy OTA Support ! {No Twrp}

Search This thread

Adinid

Senior Member
Nov 15, 2012
60
36
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about features included in the products you find here before flashing it!
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty could be void if you tamper with any part of your device / software.
* Same statement for XDA.

This is my first time posting here on xda if i miss some rules please let me know

Installing drivers & Preparing PC (Thanks to balazs312)


- Download this file and extract it
- Open and install "adb-setup-1.4.3.exe"
- When it is done, go to "Drivers" folder and start "miflash_unlock.exe"
- Click on the gear icon top right corner and click on "Check" next to "Click the button to install the drive"
- Do as the installer says
- Hopefully the drivers has been installed so we're done with it


NOW Unlock Bootloader (It will wipe ur data! so backup before doing it)


-Open the Settings app on ur phone

-Go to System.

-Tap on About phone.

-Scroll down and tap on Build number 7 times until it says you’re now a developer.

-Go back one page you should see “Developer options.” click it

-then you should see an “OEM unlocking” option. Enable it.

-Scroll down a bit until you see “USB debugging.” Enable it.

-Disable automatic updates

-now turn off your phone

-now turn on ur phone in fastboot mode by pressing volume down + power key in will boot in fastboot mode

- Download zip and extract it on your PC
- Open it and type "cmd" (without the quotations) in the file manager header where you see (This computer>somethingsomething>Mi A2 fastboot), don't be afraid just type it in, and hit enter and you'll enter into command prompt
- Now we are ready for action
- Type these commands one by one:

Code:
fastboot flashing unlock
fastboot flashing unlock_critical

done now pop up will show on your phone select unlock bootloader with volume key n power

it will reboot set up ur phone again


2. Installing Magisk

To Install Magisk you need patched boot image you can have one from here
{always use img that matches exactly to ur build no}

OR
{OPTIONAL}
you can make own boot img

download fastboot rom and get boot.img from there
or download untouched img from here


so now ur phone is unlocked download magisk manager and install it from HERE

copy that untouched boot image from ur pc to phone

open magisk manager >install >patch boot image select ur boot img u just transferred

magisk manager will create a patch image in same directory or download folder



Fastboot patch img


Now if u have created ur own patch img transfer it to pc from ur phone n put it in adb folder

or if u have simply downloaded the patch image copy it to adb folder

Open a fastboot command prompt on your pc.

Type "fastboot boot {patched boot image name}.img"

Your phone will reboot

Install the magisk apk.

Now open Magisk Manager app

Click Install, direct install. Wait for the process

And click reboot.



HOW TO APPLY OTA UPDATES


IMPORTANT: it will only work if you do not alter system yourself like build.prop (try altering system just using magisk modules)

{if u created ur own patch img}
When you know that a new OTA update is available and you want to install it, open Magisk Manager, and tap on "Uninstall" > "Restore Images"

{if u have not created ur own img put untouched downloaded build.img in magisk folder then}
When you know that a new OTA update is available and you want to install it, open Magisk Manager, and tap on "Uninstall" > "Restore Images"

Close Magisk Manager and go to "Settings" > "About Phone" > "System update" and install the OTA update. Dont Reboot

Open Magisk Manager again and tap on "Install" > "Install" > "Install to Inactive Slot" and after that you can tap on "Reboot".

alternatively

Magisk could alert you that it cannot restore the original boot.img when you trying to uninstall

To fix this, you can flash directly the untouched boot.img through fastboot
Code:
fastboot getvar current-slot

then you will get ur active slot it might be a or b

if its a then use

Code:
fastboot flash boot_a boot.img

If its b then use

Code:
fastboot flash boot_b boot.img





Now We Have Mi A2 Telegram Group get in if u want to help or need some help

OffTopic Group HERE
Development Group HERE
 
Last edited:

geekh

New member
Oct 23, 2018
3
2
i have just created this account to reply here it
i used to read here alot but i dont reply here
as i found this thread has no reply but the best method i was searching for on internet for my mi a2

i just got my mi a2 was highly confused how to root because of a/b partition and no official twrp

i found this method among the best no confusion straight on point
and seriously a noob guide

thank you for the this !
 
G

GuestX00508

Guest
i have just created this account to reply here it
i used to read here alot but i dont reply here
as i found this thread has no reply but the best method i was searching for on internet for my mi a2

i just got my mi a2 was highly confused how to root because of a/b partition and no official twrp

i found this method among the best no confusion straight on point
and seriously a noob guide

thank you for the this !

I personally think that there are at times some confusion. but it remains a more reliable method. (in terms of ease this method (https://forum.xda-developers.com/mi-a2/how-to/guide-2-minutes-magisk-installation-t3856980/amp/) is by far the fatest, try it after your next ota)
 
Last edited:

geekh

New member
Oct 23, 2018
3
2
I personally think that there are at times some confusion. but it remains a reliable method. in terms of ease this method (https://forum.xda-developers.com/mi-a2/how-to/guide-2-minutes-magisk-installation-t3856980/amp/) is by far the easiest, try it after your next ota

I have just checked your linked thread first of all its wrong to promote your own thread like this
u are fishing people to come to your thread thats completely wrong and unprofessional you are on xda maintain some professionalism !

if someone wants to use your thread he/she will use it by themselves ,its visible to all !

and about your method i didnt wanted to use ur method i have looked into it you are using temp twrp method using unoffical twrp which i dont want to use thats personal preference i will wait for official twrp before flashing !

this method is best for me(noob here might be not as good as you but i know basic stuff) i can easily flash twrp permanenlty as soon as it is released without any further steps

Not everyone wants to use that temp twrp method

It is not fair to @Adinid who has taken so much time writing this great noob friendly thread
coming to his thread and telling people that ur thread is best or easiest is isnt good my friend !
 

tianma163

Member
Feb 12, 2014
14
1
in OTA part,"put untouched downloaded build.img in magisk folder",This is invalid,I test it on V9.6.13,It always prompts that the backup image was not found.
 
G

GuestX00508

Guest
I have just checked your linked thread first of all its wrong to promote your own thread like this
u are fishing people to come to your thread thats completely wrong and unprofessional you are on xda maintain some professionalism !

if someone wants to use your thread he/she will use it by themselves ,its visible to all !

and about your method i didnt wanted to use ur method i have looked into it you are using temp twrp method using unoffical twrp which i dont want to use thats personal preference i will wait for official twrp before flashing !

this method is best for me(noob here might be not as good as you but i know basic stuff) i can easily flash twrp permanenlty as soon as it is released without any further steps

Not everyone wants to use that temp twrp method

It is not fair to @Adinid who has taken so much time writing this great noob friendly thread
coming to his thread and telling people that ur thread is best or easiest is isnt good my friend !

I personally think that official twrp will never support boot, because At first glance the beta does'nt support it. So my method will be the simplest for a while.
As for the sharing of MY guide, it is a simpler and faster method. And it will allow more people to root their phone without following 50,000 steps and without fear of brick their phone ...
If @@Adinidhas a problem with sharing my guide, he can tell me privately on Telgram, and I'll delete it.
Have nice day,
Matteo
 

AsItLies

Senior Member
Nov 4, 2009
1,026
429
tucson
I don't really care which method people use to do one thing or another. It's up to them, whatever they feel most comfortable doing.

But, I do care when someone misuses the 'code' functionality box. It's not used for 'further description'... it's used for CODE... ie, actual code:

like: fastboot boot bootloader
like: adb shell setprop persist (etc)

It's meant to be something someone can copy and paste it to the command line, to avoid typing errors, not for 'further descriptions...'
 
  • Like
Reactions: Adinid and geekh

geekh

New member
Oct 23, 2018
3
2
I personally think that official twrp will never support boot, because At first glance the beta does'nt support it. So my method will be the simplest for a while.
As for the sharing of MY guide, it is a simpler and faster method. And it will allow more people to root their phone without following 50,000 steps and without fear of brick their phone ...
If @@Adinidhas a problem with sharing my guide, he can tell me privately on Telgram, and I'll delete it.
Have nice day,
Matteo

Your Reply shows your arrogance and unprofessionalism nothing else

you think the method you have is best u dont want to even think that someone can have other method n others might prefer it

you are just boasting about your method as best n what not lol !

instead of accepting that you did wrong by sharing your thread here , you are trying pull down op thread by shamelessly telling people that op method might brick phone n needs 50k steps(that is completely NOT true ) when ur method CAN also brick it !

you both have given options to users its their pick which one they want to use !

I dont want to waste my time here to educate you about how to behave in public forum !
Just want to say calm down put ur arrogance on side,show some maturity and even please try to change ur attitude
you might be good but try to learn as it doesnt matter how good you are there is always someone who is better than you n others might prefer it more !

different people have diff use cases preferences always remember that

peace !
 

Adinid

Senior Member
Nov 15, 2012
60
36
I don't really care which method people use to do one thing or another. It's up to them, whatever they feel most comfortable doing.

But, I do care when someone misuses the 'code' functionality box. It's not used for 'further description'... it's used for CODE... ie, actual code:

like: fastboot boot bootloader
like: adb shell setprop persist (etc)

It's meant to be something someone can copy and paste it to the command line, to avoid typing errors, not for 'further descriptions...'

Thank you for your feedback sir, i have just started posting here as i wrote it in my initial post
my apologies will try to format it properly
 
  • Like
Reactions: Dks420 and AsItLies
G

GuestX00508

Guest
Your Reply shows your arrogance and unprofessionalism nothing else

you think the method you have is best u dont want to even think that someone can have other method n others might prefer it

you are just boasting about your method as best n what not lol !

instead of accepting that you did wrong by sharing your thread here , you are trying pull down op thread by shamelessly telling people that op method might brick phone n needs 50k steps(that is completely NOT true ) when ur method CAN also brick it !

you both have given options to users its their pick which one they want to use !

I dont want to waste my time here to educate you about how to behave in public forum !
Just want to say calm down put ur arrogance on side,show some maturity and even please try to change ur attitude
you might be good but try to learn as it doesnt matter how good you are there is always someone who is better than you n others might prefer it more !

different people have diff use cases preferences always remember that

peace !

That's why i add a warranty part lmao, and for brick not possible, because magisk support A/B, and Twrp is BOOT only. So after reboot it's gone.
I just say that my method is the simplest, not the better. As for the arrogance I only share my link for you to win time if needs after any ota, if you do not want to use it. You say that I lower his method, etc. I have already done one with these same methods, and I will soon hold a repo. You're totally wrong. No luck :) You judge me without knowing me and give me orders and I'm arrogant. OwO
As for the answers, personally I do not have anything to do with it, it makes go up this thread in the list, hoping that it has more visibility.
Matteo
 
G

GuestX00508

Guest
If i enable camera2api does it count as altering system for ota?

it depends on how you activated it. if you activate it using a magisk module it will be fine, if you activate it using an adb command it's a system modification. so it should alter the ota.
 

hugopg

Senior Member
Jan 8, 2011
65
18
I'm currently in august security patch, with an unlocked device + root (magisk) and i've altered the build.prop to enable cameraapi2. How can I update safely to the new october patch?

Thanks in advance
 

Adinid

Senior Member
Nov 15, 2012
60
36
I'm currently in august security patch, with an unlocked device + root (magisk) and i've altered the build.prop to enable cameraapi2. How can I update safely to the new october patch?

Thanks in advance

if u want everything clean u can flash fastboot rom
after uninstalling magisk through magisk manager

or just uninstall magisk then fastboot flash boot img

u can check it in my how to get ota part in my initial post (alternative method)
then apply ota
root again if u want


adinid
 
Last edited:

hugopg

Senior Member
Jan 8, 2011
65
18
if u want everything clean u can flash fastboot rom
after uninstalling magisk through magisk manager

or just uninstall magisk then fastboot flash boot img

u can check it in my how to get ota part in my initial post (alternative method)
then apply ota
root again if u want


adinid

Hey, thanks for your fast reply!

In your post you said that the OTA can be done if I didn't altered the system.prop, but I did! So I would need to restore boot.img (through magisk, to remove root) and also flash system.img (to restore the prop)? Is that it?

Thanks
 

AsItLies

Senior Member
Nov 4, 2009
1,026
429
tucson
it depends on how you activated it. if you activate it using a magisk module it will be fine, if you activate it using an adb command it's a system modification. so it should alter the ota.

This is COMPLETELY inaccurate information! YOU are setting a very bad precedent.

Magisk is a SYSTEMLESS root, which means what it does with system is HIDDEN (very hard to detect), but that does NOT mean it doesn't modify system!!

The ADB command to set the cam2api is a setprop persist command WHICH DOES NOT MODIFY SYSTEM! EVER!

PLEASE DO NOT SPREAD COMPLETELY INACCURATE INFORMATION!! YOU WILL BE MISLEADING POTENTIAL FUTURE OWNERS OF THIS DEVICE!!
 
G

GuestX00508

Guest
This is COMPLETELY inaccurate information! YOU are setting a very bad precedent.

Magisk is a SYSTEMLESS root, which means what it does with system is HIDDEN (very hard to detect), but that does NOT mean it doesn't modify system!!

The ADB command to set the cam2api is a setprop persist command WHICH DOES NOT MODIFY SYSTEM! EVER!

PLEASE DO NOT SPREAD COMPLETELY INACCURATE INFORMATION!! YOU WILL BE MISLEADING POTENTIAL FUTURE OWNERS OF THIS DEVICE!!

So, first shut a up.
Next i never say that magisk doesn't modify system, i just say that if use magisk for enable it it's fine.
For the second information, my bad , i try :( but with the adb command ota failed so i'm not totally false.
Have a bad day,
Matteo
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    * I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed.
    * Please do some research if you have any concerns about features included in the products you find here before flashing it!
    * YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
    * Your warranty could be void if you tamper with any part of your device / software.
    * Same statement for XDA.

    This is my first time posting here on xda if i miss some rules please let me know

    Installing drivers & Preparing PC (Thanks to balazs312)


    - Download this file and extract it
    - Open and install "adb-setup-1.4.3.exe"
    - When it is done, go to "Drivers" folder and start "miflash_unlock.exe"
    - Click on the gear icon top right corner and click on "Check" next to "Click the button to install the drive"
    - Do as the installer says
    - Hopefully the drivers has been installed so we're done with it


    NOW Unlock Bootloader (It will wipe ur data! so backup before doing it)


    -Open the Settings app on ur phone

    -Go to System.

    -Tap on About phone.

    -Scroll down and tap on Build number 7 times until it says you’re now a developer.

    -Go back one page you should see “Developer options.” click it

    -then you should see an “OEM unlocking” option. Enable it.

    -Scroll down a bit until you see “USB debugging.” Enable it.

    -Disable automatic updates

    -now turn off your phone

    -now turn on ur phone in fastboot mode by pressing volume down + power key in will boot in fastboot mode

    - Download zip and extract it on your PC
    - Open it and type "cmd" (without the quotations) in the file manager header where you see (This computer>somethingsomething>Mi A2 fastboot), don't be afraid just type it in, and hit enter and you'll enter into command prompt
    - Now we are ready for action
    - Type these commands one by one:

    Code:
    fastboot flashing unlock
    fastboot flashing unlock_critical

    done now pop up will show on your phone select unlock bootloader with volume key n power

    it will reboot set up ur phone again


    2. Installing Magisk

    To Install Magisk you need patched boot image you can have one from here
    {always use img that matches exactly to ur build no}

    OR
    {OPTIONAL}
    you can make own boot img

    download fastboot rom and get boot.img from there
    or download untouched img from here


    so now ur phone is unlocked download magisk manager and install it from HERE

    copy that untouched boot image from ur pc to phone

    open magisk manager >install >patch boot image select ur boot img u just transferred

    magisk manager will create a patch image in same directory or download folder



    Fastboot patch img


    Now if u have created ur own patch img transfer it to pc from ur phone n put it in adb folder

    or if u have simply downloaded the patch image copy it to adb folder

    Open a fastboot command prompt on your pc.

    Type "fastboot boot {patched boot image name}.img"

    Your phone will reboot

    Install the magisk apk.

    Now open Magisk Manager app

    Click Install, direct install. Wait for the process

    And click reboot.



    HOW TO APPLY OTA UPDATES


    IMPORTANT: it will only work if you do not alter system yourself like build.prop (try altering system just using magisk modules)

    {if u created ur own patch img}
    When you know that a new OTA update is available and you want to install it, open Magisk Manager, and tap on "Uninstall" > "Restore Images"

    {if u have not created ur own img put untouched downloaded build.img in magisk folder then}
    When you know that a new OTA update is available and you want to install it, open Magisk Manager, and tap on "Uninstall" > "Restore Images"

    Close Magisk Manager and go to "Settings" > "About Phone" > "System update" and install the OTA update. Dont Reboot

    Open Magisk Manager again and tap on "Install" > "Install" > "Install to Inactive Slot" and after that you can tap on "Reboot".

    alternatively

    Magisk could alert you that it cannot restore the original boot.img when you trying to uninstall

    To fix this, you can flash directly the untouched boot.img through fastboot
    Code:
    fastboot getvar current-slot

    then you will get ur active slot it might be a or b

    if its a then use

    Code:
    fastboot flash boot_a boot.img

    If its b then use

    Code:
    fastboot flash boot_b boot.img





    Now We Have Mi A2 Telegram Group get in if u want to help or need some help

    OffTopic Group HERE
    Development Group HERE
    3
    can someone please link me to V10.0.7.0.PDIMIXM patched boot image?
    I am writing this for the third time during one week as answers in neighboring threads, does not search work?
    https://forum.xda-developers.com/sho...&postcount=102
    patched image important?? cant we just flash the magisk18.1 zip file?
    It is important to follow trusted procedure to have ability to "Uninstall Magisk" (actually restore copy of untouched /boot) preparing to install an OTA update:
    1. Boot into patched boot image (not flash patched boot image, and sure not flash Magisk image .zip)
    2. In phone start Magisk and "Install" it (at this step zipped copy of stock boot is stored in root of /data, which is later used for "uninstallation")
    2
    I personally think that there are at times some confusion. but it remains a reliable method. in terms of ease this method (https://forum.xda-developers.com/mi-a2/how-to/guide-2-minutes-magisk-installation-t3856980/amp/) is by far the easiest, try it after your next ota

    I have just checked your linked thread first of all its wrong to promote your own thread like this
    u are fishing people to come to your thread thats completely wrong and unprofessional you are on xda maintain some professionalism !

    if someone wants to use your thread he/she will use it by themselves ,its visible to all !

    and about your method i didnt wanted to use ur method i have looked into it you are using temp twrp method using unoffical twrp which i dont want to use thats personal preference i will wait for official twrp before flashing !

    this method is best for me(noob here might be not as good as you but i know basic stuff) i can easily flash twrp permanenlty as soon as it is released without any further steps

    Not everyone wants to use that temp twrp method

    It is not fair to @Adinid who has taken so much time writing this great noob friendly thread
    coming to his thread and telling people that ur thread is best or easiest is isnt good my friend !
    2
    I don't really care which method people use to do one thing or another. It's up to them, whatever they feel most comfortable doing.

    But, I do care when someone misuses the 'code' functionality box. It's not used for 'further description'... it's used for CODE... ie, actual code:

    like: fastboot boot bootloader
    like: adb shell setprop persist (etc)

    It's meant to be something someone can copy and paste it to the command line, to avoid typing errors, not for 'further descriptions...'
    2
    I don't really care which method people use to do one thing or another. It's up to them, whatever they feel most comfortable doing.

    But, I do care when someone misuses the 'code' functionality box. It's not used for 'further description'... it's used for CODE... ie, actual code:

    like: fastboot boot bootloader
    like: adb shell setprop persist (etc)

    It's meant to be something someone can copy and paste it to the command line, to avoid typing errors, not for 'further descriptions...'

    Thank you for your feedback sir, i have just started posting here as i wrote it in my initial post
    my apologies will try to format it properly
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone