{root} Boot-loader unlock, TWRP flash and Magisk install after updating to Pie - Xiaomi Mi A2 / 6X Guides, News, & Discussion

* 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.
Needed tools : Backup your phone before following any steps
1. Minimal adb and fastboot
2. official TWRP 3.3 for jasmine_sprout Download img file from twrp website
3. latest magisk manager 19.2 zip file from magisk manager website
First step : Boot loader unlock
1) Tap on build number more than 7 times and unlock developer option in about phone.
2) turn on OEM Unlocking and USB debugging
Now open command windows in adb shell folder and connect your device to computer.
type : 1) adb devies (this should show your device after giving permission in your phone : conformation that your device is
connected)
2) adb reboot bootloader
3) fastboot devices ( conformation that your phone is coonected in fastboot mode)
4) fastboot oem unlock
( after that you need to follow according steps in your phone and grant to unlock phone)
keep in mind this will reset your phone. Afteer reboot again turn on developer options and usb debugging
5) fastboot flashing unlock_critical
( the warning and steps you need to follow again in your phone like in step 4)
this will again reset your phone.Afteer reboot again turn on developer options and usb debugging
Congratulations your bootloader is Unlocked now.
STEP 2. Flashing TWRP and Magisk Install
before that keep in mind As Mi A2 follows A/B boot partition system so DONT DIRECT FLASH TWRP FROM
FASTBOOT.
" Dont forget to turn on developer options and usb debugging "
open command window in adb shell folder and boot your phone in bootloader mode as told earlier and connect to computer.
Copy twrp-3.3.0-0-jasmine_sprout.img to minimal adb and fastboot folder. you can rename it to your convenient name
type : 1) fastboot boot twrp-3.3.0-0-jasmine_sprout.img
or if you renamed it
fastboot boot YourRenameName.img
this will temporarily boot twrp in your Device. As twrp is booted you will be able to see your phone connected in computer
(file transfer mode)
Copy and paste both magiskmanager.zip (current latest stable is 19.2 ) into phone
Flash your downloaded version of Magiskmanager.zip
Reboot your Phone.
Congratulations If nothing goes sideways Your phone is Magisk Rooted.
If you want to flash something using TWRP now is the time Otherwise as Mi A2 has A/B slot form and no Recovery Partition You Cannot flash TWRP permanently.
But You can always boot TWRP from adb and use it.

ROM flashing help
Can't flash ROM after using this method

Torque422 said:
Can't flash ROM after using this method
Click to expand...
Click to collapse
You May be facing some highly lag issues too. In that case flash stock rom using mi flash tool. In my steps i said that flash twrp.zip file after booting it. But flashing twrp.zip doesnt do anything. if you want to use TWRP you need to boot TWRP everytime from adb.
Also After flashing stock rom i am pretty sure that you will be able to flash custom rom.
follow this guide for flashing custom ROMs
https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-flash-custom-roms-stuff-t3876375

Failed
No such a directory problem, please help

Please elaborate more about the problem ? @shahidrok
shahidrok said:
No such a directory problem, please help
Click to expand...
Click to collapse
---------- Post added at 03:16 PM ---------- Previous post was at 03:08 PM ----------
TYPHOON9055 said:
You May be facing some highly lag issues too. In that case flash stock rom using mi flash tool. In my steps i said that flash twrp.zip file after booting it. But flashing twrp.zip doesnt do anything. if you want to use TWRP you need to boot TWRP everytime from adb.
Also After flashing stock rom i am pretty sure that you will be able to flash custom rom.
follow this guide for flashing custom ROMs
https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-flash-custom-roms-stuff-t3876375
Click to expand...
Click to collapse
Thanks ?, i have successfully installed havoc rom, i read that link many times But this time i read more carefully, I have installed everything now?
Do you know, If we can install nethunter in our mi a2 @TYPHOON9055

Hve done everything but when i try to reboot to twrp it gets stuck on twrp logo,dont know what im doing wrong.

Twrp only working when flashing via adb, and when I try to boot into twrp recovery it gets stuck twrp logo. Flashed magisk patched but unable to flash any magisk module or if I try to flash and reboot device it always get stucks in bootloop.. unable to find the problem.. a little help would be highly appreciated. Thanks

I get error 1 during flashing

Amnvlad said:
Twrp only working when flashing via adb, and when I try to boot into twrp recovery it gets stuck twrp logo. Flashed magisk patched but unable to flash any magisk module or if I try to flash and reboot device it always get stucks in bootloop.. unable to find the problem.. a little help would be highly appreciated. Thanks
Click to expand...
Click to collapse
Reflash the latest twrp again through fastboot , And flash only .img file of twrp
---------- Post added at 07:06 AM ---------- Previous post was at 07:04 AM ----------
Alucard said:
I get error 1 during flashing
Click to expand...
Click to collapse
Follow the flashing custom rom guide, i flashed successfully, Havoc rom is fantastic ?

Torque422 said:
Reflash the latest twrp again through fastboot , And flash only .img file of twrp
---------- Post added at 07:06 AM ---------- Previous post was at 07:04 AM ----------
Follow the flashing custom rom guide, i flashed successfully, Havoc rom is fantastic
Click to expand...
Click to collapse
I unlock bootloader perfectly,then boot twrp ,then wipe all except internal storage then trying flash but doesnt work,so do i have to flash magisk first then reboot and trying flash rom?

Alucard said:
I unlock bootloader perfectly,then boot twrp ,then wipe all except internal storage then trying flash but doesnt work,so do i have to flash magisk first then reboot and trying flash rom?
Click to expand...
Click to collapse
Available custom roms are for Oreo versions if you have updated ur device to pie , it won't work.

Alucard said:
I unlock bootloader perfectly,then boot twrp ,then wipe all except internal storage then trying flash but doesnt work,so do i have to flash magisk first then reboot and trying flash rom?
Click to expand...
Click to collapse
I was on stock pie + may update (10.0.9)
Follow this way , unlock the bootloader via fastboot oem unlock, fastboot flashing unlock it will reboot here, goto developer settings Enable usb debugging
Then do this fastboot flashing unlock_critical It will again reboot
Now, install the magisk app And download the patched boot image from internet Whatever your build no is, mine was 10.0.9 so i downloaded version 10.0.9_boot.img
Open the magisk app, click on install , select and patch a file, Then choose this downloaded patched image, it will flash it successfully, if it don't Then you have mistaken something..
After this there will be a patched.img in download folder Which is just created by magisk, copy this img to pc, Through fastboot Flash it "fastboot boot patched.img"
Now, flash TwrpImage3.3.img through fastboot
When you boot in , Copy and paste your rom, gapps
Now flash twrpVersion3.2.img via fastboot
Clear system,data,caches, Flash the rom in slot B
Now flash the twrp3.2.zip through installed twrp, click on recovery And it will boot to twrp
Now Flash the gapps in slot a (i used nano)
Now flash magisk.zip through twrp
Reboot , That's it!
(Twrp 3.2 is stable for flashing rom and gapps , Just for first time When we coming from stock
Twrp 3.3 latest Gives us MTP transfer, The difference is this in using both of these)
Installation of magisk is the last process, it is part of rom, First installed ur desired rom and then magisk
You said, You installed twrp, as i mentioned above You forgot to do some steps as about patched boot + installation of magisk through patched file etc..
Though you can try to search on google for your next step
patched supported magisk Version x.x.x for mi a2
If you got the file, You are lucky.. otherwise flash the stock rom with mi flash tool
And Start from unlocking bootloader

Magisk Module available.
Torque422 said:
Please elaborate more about the problem ? @shahidrok
---------- Post added at 03:16 PM ---------- Previous post was at 03:08 PM ----------
Thanks , i have successfully installed havoc rom, i read that link many times But this time i read more carefully, I have installed everything now
Do you know, If we can install nethunter in our mi a2 @TYPHOON9055
Click to expand...
Click to collapse
There is a magisk module available for installing kali nethunter in this device. i never tried installing it but it should work fine. Read proper descriptions before installing it though.

Alucard said:
I unlock bootloader perfectly,then boot twrp ,then wipe all except internal storage then trying flash but doesnt work,so do i have to flash magisk first then reboot and trying flash rom?
Click to expand...
Click to collapse
the adb recognized my phone but fastboot do not, help me out please

Andrew.kathy said:
the adb recognized my phone but fastboot do not, help me out please
Click to expand...
Click to collapse
Probably a problem with drivers, check and reinstall drivers

Can i use this method to flash magisk on Mi 9T pro?

I can't boot into twrp
The command u said to enter fastboot boot twrp.img it says booting and then the bootloader message and then shut downs

Topper8118 said:
The command u said to enter fastboot boot twrp.img it says booting and then the bootloader message and then shut downs
Click to expand...
Click to collapse
Checklist:
- there is file of <compatible TWRP recovery> in ADB/Fastboot directory with the name you are typing in fastboot command
- ADB drivers installed correctly (both "adb devices -l" and "fastboot devices" return valid results in corresponding phone states)
- only one phone (namely MiA2) is connected to PC
- phone fully unlocked (OEM debugging enabled and PC was previously approved for ADB in phone)
- USB port on MB of PC is USB-2.x or USB-3.x-compatible-with-Mi-A2<which is not true in general>

Several guys says that command "fastboot oem unlock" is old and now we have to write "fastboot flashing unlock" instead, then "critical".
Which is the best way now?
Thank you

HTCDevil said:
Several guys says that command "fastboot oem unlock" is old and now we have to write "fastboot flashing unlock" instead, then "critical".
Which is the best way now?
Thank you
Click to expand...
Click to collapse
fastboot flashing unlock
fastboot flashing unlock_critical

Related

os not installed fix !!

can someone help me please, i have tried to install cm13, and i did a clean wipe, now it is saying no os installed, and i couldnt even find the restore package !!! how can i load os into my oneplus two, as yo all knw we dont have a external memory card, am nt sure how to load os into phone now !!! some please help !!
devveda said:
can someone help me please, i have tried to install cm13, and i did a clean wipe, now it is saying no os installed, and i couldnt even find the restore package !!! how can i load os into my oneplus two, as yo all knw we dont have a external memory card, am nt sure how to load os into phone now !!! some please help !!
Click to expand...
Click to collapse
Are you on TWRP 3.0.x.x?
If yes, then go to Mount Section, enable MTP.
Connect to your PC, transfer desired ROM.zip and flash.
If no TWRP, then reboot to BootLoader/Fastboot
Download latest TWRP from official website, then flash it using command:
fastboot flash recovery twrp.img
fastboot reboot (keep holding vol- to enter TWRP)
where "twrp.img" is name of the recovery file.
WhyOrean said:
Are you on TWRP 3.0.x.x?
If yes, then go to Mount Section, enable MTP.
Connect to your PC, transfer desired ROM.zip and flash.
If no TWRP, then reboot to BootLoader/Fastboot
Download latest TWRP from official website, then flash it using command:
fastboot flash recovery twrp.img
fastboot reboot (keep holding vol- to enter TWRP)
where "twrp.img" is name of the recovery file.
Click to expand...
Click to collapse
yes i tried to enable mtp, but nothing was shown in computer to transfer !!!
thank god used sideload and installed stock rom, its fine and all set nw !!!!
devveda said:
yes i tried to enable mtp, but nothing was shown in computer to transfer !!!
Click to expand...
Click to collapse
Try with Latest TWRP build.
And at worst case scenario use Qualcomm Recovery Tool to go back to OOS 2.1.1, as already you have lost all your data.
---------- Post added at 12:19 PM ---------- Previous post was at 12:18 PM ----------
devveda said:
thank god used sideload and installed stock rom, its fine and all set nw !!!!
Click to expand...
Click to collapse
Oki Good, Enjoy!
Can you help me with something? When I again try to reboot my device in recovery I couldn't find the twrp recovery or any type of recovery, after installing the twrp, it's not rebooting, am getting a message saying "booting.... Failed <remote: dth not found>, I couldn't install twrp recovery can u help me with this?

[Tutorial][Guide][Redmi 4a][rolex]Things to do before installing custom Nougat ROM

Disclaimer/Warning: Before you proceed, first take full backup of your device. I'm not responsible if you mess up anything.
Especially, take full backup of all internal data. I can't stress this enough.
Click to expand...
Click to collapse
I see lots of users having issues with/after installing custom nougat ROM like blackscreen, bootloop, backlight not turning off in lock screen, volte issues etc.
In order to fix that, first you have to install MIUI 9 Global Beta/Developer 7.11.16 Fastboot ROM using Fastboot mode. After that you can install any custom nougat ROM and enjoy.
Step 1: Install MIUI 9 Fastboot ROM
Boot into Fastboot
Install MIUI 9 Fastboot ROM using Fastboot
Reboot
Install MIUI 9 ROM
MIUI 9 Global Beta/Developer 7.11.16 Fastboot ROM: http://en.miui.com/thread-1119728-1-1.html | Direct Download Link.
Fastboot Install using Windows: http://en.miui.com/thread-408889-1-1.html
Fastboot Install using Windows Command Prompt: http://c.mi.com/thread-334-1-0.html
Fastboot Install using Linux: http://en.miui.com/thread-285121-1-1.html (Warning: This guide wipes internal data too, so beware before running the commands blindly.)
It is recommended to wipe internal storage too but its your choice and in that case you have to use the command "fastboot flash all" instead of flashing one by one.
Step 2: Install TWRP Recovery
Boot into Fastboot
Install TWRP using Fastboot
Reboot
TWRP Download: https://dl.twrp.me/rolex/
Reference: https://twrp.me/xiaomi/xiaomiredmi4a.html
Code:
fastboot flash recovery twrp.img
In the above code, replace twrp.img with the name of the file that you downloaded, like twrp-3.2.1-0-rolex.img.
Code:
fastboot reboot
Step 3: Install Custom Nougat ROM:
After you do these things, you don't need to flash any nougat firmware before installing custom nougat ROM and you can just directly install custom nougat ROM as you did custom marshmellow ROM.
Boot into TWRP Recovery
Wipe Cache, Dalvik, Data & System
Install custom ROM (follow instructions in the appropriate thread)
Reboot
Enjoy!
Update:
If you're still facing issues after doing all these steps, then flash this multi ROM Nougat firmware (Credit to Muralitharan) via TWRP.
Can you make it easier?
---------- Post added at 05:40 AM ---------- Previous post was at 05:20 AM ----------
can I flash the multirom ?
I have no idea.
I think there is difference between flashing via recovery vs fastboot but I'm not sure.
After I did the steps in the OP all custom ROM with nougat kernel works fine without any issues.
can i flesh fatboot rom and twrp without bootloder unloack
can i flesh fatboot rom and twrp without bootloder unloack
Yes u can flash fast boot ROM without bootloader unlock.
Not sure if you can install trwp with locked bootloader.
Hello,
Thank you for the guide.
Can I install the last version (8.1.25) of the MIUI 9 Global Beta ROM? Or we have to install the specified verison 7.11.16 ?
Thank you.
Anything. Its your choice.
can i flash miui9 using system updater or is fastboot necessary and if i update from miui8 to miui 9 will i lose TWRP
i have already installed twrp and when i tried to install crdroid it failed and then i saw this post :angel:
xDoge said:
Yes u can flash fast boot ROM without bootloader unlock.
Not sure if you can install trwp with locked bootloader.
Click to expand...
Click to collapse
Yes you can but ur phone should be rooted i. e. You need superuser binary installed

Z17S (NX595J) Unlock Bootloader & TWRP

Hi, I'm new to this phone. Just got it 1 week ago. I tried to find any related information on the bootloader unlock and custom recovery, but it is very limited. I think maybe this phone is not well known. I would appreciate if someone can provide me the way to unlock bootloader, flash TWRP and roots. I can't live without magisk and viper4android. Thanks.
Here ya go,
1. Download and install minimal fastboot adb
2.Download TWRP rename it Recovery and move it to minimal fastboot adb folder
3. Unlock bootloader, in fastboot enter the following code : fastboot oem nubia_unlock NUBIA_NX595J
4. then also in fastboot: fastboot flash recovery recovery.img
5. you may need to format data in TWRP to get it to boot up !
Enjoy your new life !
thanks
dantonuci said:
Here ya go,
1. Download and install minimal fastboot adb
2.Download TWRP rename it Recovery and move it to minimal fastboot adb folder
3. Unlock bootloader, in fastboot enter the following code : fastboot oem nubia_unlock NUBIA_NX595J
4. then also in fastboot: fastboot flash recovery recovery.img
5. you may need to format data in TWRP to get it to boot up !
Enjoy your new life !
Click to expand...
Click to collapse
Hi, I've tried numerous timed and it always won't pick up the command of unlocking bootloader. It always stay in the fastboot menu. I've toggled the 'OEM Unlock' function in the developer setting, as well as the USB debugging. Any idea why the device won't pick up that command?
Is it changing to unlock after you enter the command?
If so flash twrp then boot into recovery ...
dantonuci said:
Is it changing to unlock after you enter the command?
If so flash twrp then boot into recovery ...
Click to expand...
Click to collapse
Nope. It doesn't respond to the command in the fastboot. It just shows the fastboot menu. My adb is written 'waiting for device.... '.
Drivers , uninstall all other drivers and try please
dantonuci said:
Drivers , uninstall all other drivers and try please
Click to expand...
Click to collapse
Okay will try again
storytellerz said:
Okay will try again
Click to expand...
Click to collapse
I am also finding this message, what is its solution ???
the same recovery
dantonuci said:
Here ya go,
1. Download and install minimal fastboot adb
2.Download TWRP rename it Recovery and move it to minimal fastboot adb folder
3. Unlock bootloader, in fastboot enter the following code : fastboot oem nubia_unlock NUBIA_NX595J
4. then also in fastboot: fastboot flash recovery recovery.img
5. you may need to format data in TWRP to get it to boot up !
Enjoy your new life !
Click to expand...
Click to collapse
Hi there, when I flashed the recovery that is always the stock recovery, why?
vins84 said:
Hi there, when I flashed the recovery that is always the stock recovery, why?
Click to expand...
Click to collapse
Not sure what you're asking, did you want to flash TWRP or stock? I was just giving tutorial for how to install TWRP
dantonuci said:
Here ya go,
1. Download and install minimal fastboot adb
2.Download TWRP rename it Recovery and move it to minimal fastboot adb folder
3. Unlock bootloader, in fastboot enter the following code : fastboot oem nubia_unlock NUBIA_NX595J
4. then also in fastboot: fastboot flash recovery recovery.img
5. you may need to format data in TWRP to get it to boot up !
Enjoy your new life !
Click to expand...
Click to collapse
I'm having the problem. Unlock is not sticking to unlock. The unlock works and the flash works but as soon as you try and reboot into recovery it hangs at a blank screen no twrp. Console says waiting for device and stuck. next time I go into bootloader it says locked. The count is 3 for unlock count is there a limit? 7-6-18 Nubia Z17 NX591J WIn 10.
bmaz121 said:
I'm having the problem. Unlock is not sticking to unlock. The unlock works and the flash works but as soon as you try and reboot into recovery it hangs at a blank screen no twrp. Console says waiting for device and stuck. next time I go into bootloader it says locked. The count is 3 for unlock count is there a limit? 7-6-18 Nubia Z17 NX591J WIn 10.
Click to expand...
Click to collapse
Trouble shoot and experiment with the process it will work, even if it appears not locked after reboot
dantonuci said:
Trouble shoot and experiment with the process it will work, even if it appears not locked after reboot
Click to expand...
Click to collapse
I don't understand? Appears not locked? It is locked. Now I remember when I flashed my Star N997 the developer said that there is a unlock bit that has to be turned on in the process of unlocking. I think this may be the case here since it unlocks until a reboot. I am deep concerned that after a unlock count of 3 the phone will not boot anymore. Do you know anything about these things? Another thought is does the USB C need different drivers and should it be plugged into a USB 3.0 outlet?
TWRP will flash only when it's unlocked so even if it's saying it's locked go by what you can do with TWRP
---------- Post added at 12:25 AM ---------- Previous post was at 12:24 AM ----------
I did it several times and never had a problem
i was looking for camera.apk file from Nubia Z17S phone from Stock ROM, can anyone upload it here..it should be located in system / app or app-pvt folder, you can copy using Root Explorer tool.
pls. let me know...
I'm having problems unlocking the bootloader. Has anyone got the proper TWRP for this phone? I can't find it. The one I have says FAILED (remote: Requested download size is more than max allowed). Thanks
hello links no longer works. Someone could give me back the TWRP and minimalb fastboot adb
For anyone's information, TWRP will not boot in recovery while the phone is being charged. Unplug first. You will just get a black screen.
i am also experiencing the same issue.. where can i find the drivers for this phone nx595j? or how do i uninstall the drivers for it?
---------- Post added at 01:21 AM ---------- Previous post was at 01:17 AM ----------
yo can somebody help me install a custom rom on my z17s via team viewer?? im willing to pay for your time

[X01BD] Can't install TWRP after unlocking with Official UnlockTool

Hi guys,
I am using Zenfone Max Pro M2. I wanted to install a custom rom and I tried to unlock bootloader but I unlocked it through official unlocktool. Now I can't flash anything or send any command through fastboot, whenever I do then it restarts the device.
When I try to keep the fastboot command running and then connect phone - it throws errors like "Fail - Too many links", "Fail - Write to device fail (No such file or directory)" or "Fail- Unknown command".
I tried unlocking bootloader with the unofficial way provided in https://forum.xda-developers.com/max-pro-m2/how-to/unlook-bootloader-root-asus-zenfone-max-t3885457
but it isn't working either, any fastboot command is rebooting the device although bootloader is unlocked.
How do I fix this?
EDIT: Things I have tried:
- Changing USB Cable and Port
- Reinstalling ADB and device driver
- Reunlocking bootloader from UnlockTool (don't know why I did that again)
- Unofficial way to unlock bootloader
None of it helped.
Thanks
Mr147 said:
Hi guys,
I am using Zenfone Max Pro M2. I wanted to install a custom rom and I tried to unlock bootloader but I unlocked it through official unlocktool. Now I can't flash anything or send any command through fastboot, whenever I do then it restarts the device.
When I try to keep the fastboot command running and then connect phone - it throws errors like "Fail - Too many links", "Fail - Write to device fail (No such file or directory)" or "Fail- Unknown command".
I tried unlocking bootloader with the unofficial way provided in https://forum.xda-developers.com/max-pro-m2/how-to/unlook-bootloader-root-asus-zenfone-max-t3885457
but it isn't working either, any fastboot command is rebooting the device although bootloader is unlocked.
How do I fix this?
EDIT: Things I have tried:
- Changing USB Cable and Port
- Reinstalling ADB and device driver
- Reunlocking bootloader from UnlockTool (don't know why I did that again)
- Unofficial way to unlock bootloader
None of it helped.
Thanks
Click to expand...
Click to collapse
Guys, no one to help or assist?
Mr147 said:
Guys, no one to help or assist?
Click to expand...
Click to collapse
Did u try running the command at the adb folder?shift+right click in adb folder?
Is Usb debugging enabled in developer options?
X10MINISTER said:
Did u try running the command at the adb folder?shift+right click in adb folder?
Is Usb debugging enabled in developer options?
Click to expand...
Click to collapse
Yes, everything done.
Still no success.
Mr147 said:
Yes, everything done.
Still no success.
Click to expand...
Click to collapse
Did ur unlocking bootloader succeed?
Did you try relocking the bootloader ?
1) Try relocking the bootloader using the methods described here :
https://forum.xda-developers.com/max-pro-m2/how-to/unroot-relock-bootloader-max-pro-m2-t3885870
See if it successfully relocks...
If it does, then next time unlock using the unofficial method only...
2) If not then maybe try contacting ASUS... Tweet them on Twitter... Companies usually respond very fast on Twitter, since their reputations are at stake...
3) All else fails then try rooting it using something like Kingroot... Once rooted, flash TWRP Recovery using Flashify... then flash any custom ROM u want...
I hope your problem gets solved... Next time be a little more cautious when taking such a risky step... See what are all the options you have before jumping into something...
X10MINISTER said:
Did ur unlocking bootloader succeed?
Click to expand...
Click to collapse
I guess it did because when I reboot it I get that bootloader unlocked splash screen.
Tyakrish said:
Did you try relocking the bootloader ?
1) Try relocking the bootloader using the methods described here :
https://forum.xda-developers.com/max-pro-m2/how-to/unroot-relock-bootloader-max-pro-m2-t3885870
See if it successfully relocks...
If it does, then next time unlock using the unofficial method only...
2) If not then maybe try contacting ASUS... Tweet them on Twitter... Companies usually respond very fast on Twitter, since their reputations are at stake...
3) All else fails then try rooting it using something like Kingroot... Once rooted, flash TWRP Recovery using Flashify... then flash any custom ROM u want...
I hope your problem gets solved... Next time be a little more cautious when taking such a risky step... See what are all the options you have before jumping into something...
Click to expand...
Click to collapse
Tried everything except 2, none worked. I'll drop them a query over twitter like you say, let's see what their reply is.
I am on stock recovery, non working bootloader but unlocked, and stock rom unrooted.
I think Pie update may give some insight on fixing this.
Mr147 said:
I guess it did because when I reboot it I get that bootloader unlocked splash screen.
Click to expand...
Click to collapse
I see.. did u've try using another laptop/pc? Sometimes antivirus blocking the tools that are needed for unlocking bootloader..
X10MINISTER said:
I see.. did u've try using another laptop/pc? Sometimes antivirus blocking the tools that are needed for unlocking bootloader..
Click to expand...
Click to collapse
I unlocked using official bootloader apk provided by asus. Now I have encrypted phone which isn't decrypting and can't flash twrp.
Mr147 said:
I unlocked using official bootloader apk provided by asus. Now I have encrypted phone which isn't decrypting and can't flash twrp.
Click to expand...
Click to collapse
Hey you said phone is encrypted ? Maybe this might work :
1) Download and install the latest Magisk Manager apk
2) Extract boot.img from stock firmware
3) Put boot.img in your internal storage and open magisk app.
4) Click on install and select patch boot Image.
5) Select stock boot.img file placed in phone memory.
6) Magisk will automatically patch the stock Image and this patched image can be installed using fastboot using this command:
fastboot flash boot patched_boot.img
This will root your phone. After that you can install Flashify to flash TWRP or PBRP
Note:
- This method is highly experimental... There are 50% chances of bootloop. I would not have recommended this method, but situation seems to demand it.
- Your data will most probably be formatted, so keep a backup.
- If it falls in a bootloop, then you need to flash original stock firmware to restore your phone.
Credits: @#ArtFuL
Who came up with this method, but removed it from the main guide, because of being experimental... (I guess)
Mr147 said:
I unlocked using official bootloader apk provided by asus. Now I have encrypted phone which isn't decrypting and can't flash twrp.
Click to expand...
Click to collapse
After going through the errors, I strongly believe that the problem is with your drivers. If reinstalling doesn't works, try a different pc. If your pc detects your device on MTP or your are able to perform adb operations without any hassle, it's not the problem with your phone.
You can decrypt the device only after flashing custom recovery.
---------- Post added at 09:35 PM ---------- Previous post was at 09:31 PM ----------
Tyakrish said:
Hey you said phone is encrypted ? Maybe this might work :
1) Download and install the latest Magisk Manager apk
2) Extract boot.img from stock firmware
3) Put boot.img in your internal storage and open magisk app.
4) Click on install and select patch boot Image.
5) Select stock boot.img file placed in phone memory.
6) Magisk will automatically patch the stock Image and this patched image can be installed using fastboot using this command:
fastboot flash boot patched_boot.img
This will root your phone. After that you can install Flashify to flash TWRP or PBRP
Note:
- This method is highly experimental... There are 50% chances of bootloop. I would not have recommended this method, but situation seems to demand it.
- Your data will most probably be formatted, so keep a backup.
- If it falls in a bootloop, then you need to flash original stock firmware to restore your phone.
Credits: @#ArtFuL
Who came up with this method, but removed it from the main guide, because of being experimental... (I guess)
Click to expand...
Click to collapse
Yes this method is highly experimental. Also in this situation, he cannot use any fastboot commands. So this method won't work
#ArtFuL said:
After going through the errors, I strongly believe that the problem is with your drivers. If reinstalling doesn't works, try a different pc. If your pc detects your device on MTP or your are able to perform adb operations without any hassle, it's not the problem with your phone.
You can decrypt the device only after flashing custom recovery.
---------- Post added at 09:35 PM ---------- Previous post was at 09:31 PM ----------
Yes this method is highly experimental. Also in this situation, he cannot use any fastboot commands. So this method won't work
Click to expand...
Click to collapse
This method didn't work, as fastboot isn't accepting any command. I tried giving command before connecting phone and then connecting, it gives me error of "File size is more than max allowed".
So is it done?
Mr147 said:
This method didn't work, as fastboot isn't accepting any command. I tried giving command before connecting phone and then connecting, it gives me error of "File size is more than max allowed".
Click to expand...
Click to collapse
See I recommend please use Linux (Manjaro or Ubuntu) , Windows will have driver issues forever and ever
had same issue after fota update UL-ASUS_X01BD-WW-15.2016
Tyakrish said:
Hey you said phone is encrypted ? Maybe this might work :
1) Download and install the latest Magisk Manager apk
2) Extract boot.img from stock firmware
3) Put boot.img in your internal storage and open magisk app.
4) Click on install and select patch boot Image.
5) Select stock boot.img file placed in phone memory.
6) Magisk will automatically patch the stock Image and this patched image can be installed using fastboot using this command:
fastboot flash boot patched_boot.img
This will root your phone. After that you can install Flashify to flash TWRP or PBRP
Thanks , this method work me. had same issue after fota update UL-ASUS_X01BD-WW-15.2016.1902.192-user
Click to expand...
Click to collapse
I've the same problem too. Let me know if you've configure it out. Thanks.
Okay @Mr147, I've fix this. I checked Windows Update and there was a pending ASUS driver update. I downloaded it and now I can use the fastboot commands.
Anyone that can fix this problem? I also experience this.
Mr147 said:
Hi guys,
I am using Zenfone Max Pro M2. I wanted to install a custom rom and I tried to unlock bootloader but I unlocked it through official unlocktool. Now I can't flash anything or send any command through fastboot, whenever I do then it restarts the device.
When I try to keep the fastboot command running and then connect phone - it throws errors like "Fail - Too many links", "Fail - Write to device fail (No such file or directory)" or "Fail- Unknown command".
I tried unlocking bootloader with the unofficial way provided in https://forum.xda-developers.com/max-pro-m2/how-to/unlook-bootloader-root-asus-zenfone-max-t3885457
but it isn't working either, any fastboot command is rebooting the device although bootloader is unlocked.
How do I fix this?
EDIT: Things I have tried:
- Changing USB Cable and Port
- Reinstalling ADB and device driver
- Reunlocking bootloader from UnlockTool (don't know why I did that again)
- Unofficial way to unlock bootloader
None of it helped.
Thanks
Click to expand...
Click to collapse
I suggest to Unlock with unofficial step, or read the post https://www.blocknesia.com/2019/04/unlock-bootloader-dan-install-twrp-asus-zenfone-max-pro-m2.html

[GUIDE] Official Stock Android 10 flashing , Rooting with magisk and TWRP

In this guide i will go over how to flash stock android 10 if you are unlocked after flashing installing magisk and disabling force encryption :-
THIS GUIDE HAS BEEN TWEAKED AND UPDATED FOR PIXEL EXPERIENCE TOO
HTML:
Your warranty is now void.
We are not responsible for bricked devices, bootloop... Please
do some research if you have any concerns about mods
included in these GUIDES before using them! YOU are choosing to
make these modifications.
THIS GUIDE IS ONLY FOR THOSE WHO HAVE UNLOCKED THEIR BOOTLOADER
Moving from Custom ROM to Stock 10 :- OR Flashing PE 10
First downlaod Stock 10 CLICK HERE OR Pe 10
Reboot to twrp
Wipe everything expect internal storage
Flash ROM Zip
>Now if You Want to be Encrypted you can skip to Formatting Data Step This is for whom you don't want to format and want to be decrypted
>Change Slot and Reboot To Bootloader
>Boot To Official TWRP Image
>Now Flash FBE Disabler (Normally Or Via ADB Sideload ) and Reboot
Now You have to Format Your Data (IMPORTANT IF YOU CHOOSE TO BEING ENCRYPTED)
Change Slot
Now Reboot
IMPORTANT DON'T TRY TO FLASH TWRP INSTALLER JUST AFTER FLAHING THE STOCK ROM OR ELSE YOU WILL NOT BE ABLE TO BOOT ROM IN PE YOU CAN FLASH TWRP INSTALLER BUT IT TWRP WON'T BOOT AS OUR TWRP ISN'T YET READY FOR FBE
IF YOU ARE ALREADY ON STOCK(ENCRYPTED) AND WANT TO INSTALL MAGISK OR WANT TO DECRYPT SO CAN USE TWRP AGAIN
Once you have installed Stock 10 via TWRP in a rush and later you find out nothing is working there no TWRP no magisk and thus you can't move to custom ROM now , well check this out now
STEPS TO ONLY INSTALL MAGISK WITHOUT ANY DECRYPTION
Downlaod pathced boot image from link CLICK HERE
Reboot to Fastboot
Now type this code
HTML:
fastboot flash boot magisk_patched.img
After Success message reboot normally
Now Install Magisk Manager (apk)
YOU ARE ROOTED !
STEPS TO INSTALL MAGISK REMOVE DECRYPTION AND USE TWRP (For Stock and Pixel Experience Both)
IN ORDER TO SWITCH TO OTHER CUSTOM ROMs WHICH AREN'T FORCE-ENCRYPTED YOU HAVE TO DECRYPT FIRST !
IF YOU ARE ALREADY MOVING TO A ENCRYPTED ROM THEN YOU DON'T HAVE TO DECRYPT .
Reboot to Fastboot
Now type this code
HTML:
fastboot -w
This will earse all your data and decrypt
Now wait don't reboot
Now downlaod TWRP image and place it in you platform folder
Now boot to TWRP using this code
HTML:
fastboot boot twrp.img
As soon as you are in twrp flash force encrypt disabler
After Flashing Disabler Flash Magisk and reboot
NOW YOU ARE ON STOCK WITH NO ENCRYPTION AND MAGISK INSTALLED!
IF JUST IN CASE YOU WANT TO MOVE TO CUSTOM ROMs JUST AFTER FORMAT DATA AND BOOTING TWRP STEP FLASH YOUR DESIRED ROM
RECOMMENDED TWRP :- XDA HERE
THANKS Zacktg5 for Zip
HIT THANKS:cyclops:
I followed "STEPS TO ONLY INSTALL MAGISK WITHOUT ANY DECRYPTION" and got a bootloop
Thank you man!
Coming from a custom ROM (PE 10), is it possible to flash the stock 10 using fastboot, or this will cause issues?
can't install miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip
Step 1/2
Error applying update: 7 (ErrorCode :: kInstallDeviceOpenError)
Updater process ended with ERROR: 1
Error installing zip file /sdcard/miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip
---------- Post added at 03:19 PM ---------- Previous post was at 03:18 PM ----------
Zedsdeadbaby said:
I followed "STEPS TO ONLY INSTALL MAGISK WITHOUT ANY DECRYPTION" and got a bootloop
Click to expand...
Click to collapse
you can install miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip ?
why I got error ?
link to Universal DM-Verity, ForceEncrypt, Disk Quota Disablers in case someone asks: http://zackptg5.com/android.php#disverfe
XDA: https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
Great
Antusuprik said:
can't install miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip
Step 1/2
Error applying update: 7 (ErrorCode :: kInstallDeviceOpenError)
Updater process ended with ERROR: 1
Error installing zip file /sdcard/miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip
---------- Post added at 03:19 PM ---------- Previous post was at 03:18 PM ----------
you can install miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip ?
why I got error ?
Click to expand...
Click to collapse
use some other twrp
I have flashed Android 10 ZIP in TWRP in slot A. After that i changed to slot B and restart to TWRP. In slot B i flashed Encryption Disabler zip and Magisk zip in order.
Same product, less steps
blackman01 said:
Downlaod pathced boot image from link CLICK HERE
HIT THANKS:cyclops:
Click to expand...
Click to collapse
Is this a December patched boot IMG?
d3rt0xx said:
I have flashed Android 10 ZIP in TWRP in slot A. After that i changed to slot B and restart to TWRP. In slot B i flashed Encryption Disabler zip and Magisk zip in order.
Same product, less steps
Click to expand...
Click to collapse
Just the Android 10 ZIP or with the twrp zip? Didn't you lose twrp if you didn't flash the twrp zip?
Thufailb said:
Just the Android 10 ZIP or with the twrp zip? Didn't you lose twrp if you didn't flash the twrp zip?
Click to expand...
Click to collapse
Without TRWP installer. I reboot to bootloader after every single step and boot TWRP.img manually with fastboot boot TWRP.img
So stock recovery is preset
Step by step:
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img"
- Delete all partitions and be sure active boot slot is "A"
- Reboot to Bootloader, NOT Recovery
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img" again
- Install Android 10 zip
- Change active boot slot to "B"
- Reboot to Bootloader, NOT Recovery again
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img" again
- Flash Encryption Disabler zip
- Flash Magisk zip in order
- Reboot! Profit!
Fresh Android 10, decrypted and rooted with stock recovery :good:
Which recovery did you use tho?
Also does that recovery boot from stock android 9???
Please help,asap.
Guys, I have mi a2 on official pie and arb4. How to update?
Rupamxx said:
Which recovery did you use tho?
Also does that recovery boot from stock android 9???
Please help,asap.
Click to expand...
Click to collapse
Recent twrp.
Twrp boots from every version
d3rt0xx said:
Without TRWP installer. I reboot to bootloader after every single step and boot TWRP.img manually with fastboot boot TWRP.img
So stock recovery is preset
Step by step:
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img"
- Delete all partitions and be sure active boot slot is "A"
- Reboot to Bootloader, NOT Recovery
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img" again
- Install Android 10 zip
- Change active boot slot to "B"
- Reboot to Bootloader, NOT Recovery again
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img" again
- Flash Encryption Disabler zip
- Flash Magisk zip in order
- Reboot! Profit!
Fresh Android 10, decrypted and rooted with stock recovery :good:
Click to expand...
Click to collapse
Hi, very helpful guide.
But how do you get OTA update when there's a new one? Can you provide the steps to get OTA and then get back to root. Thanks in advance.
disaster_peace said:
Hi, very helpful guide.
But how do you get OTA update when there's a new one? Can you provide the steps to get OTA and then get back to root. Thanks in advance.
Click to expand...
Click to collapse
Easy!
Just install normally via updater.
But before you restart your phone, install TWRP Retention Script via Magisk Manager to change active boot slot
can i skip installing magisk in this guide to get my banking apps working??
Sivakumar$ said:
can i skip installing magisk in this guide to get my banking apps working??
Click to expand...
Click to collapse
Yes, if you only install official OTA, banking apps work. Why not? Its official and unrooted
But decryption Script will useless without root i think
Im on derp fest Q rom now i want to go to stock 10 i cannot find any latest fastboot file and there is some issues with the mi flash tool as some users were reporting getting dev error
I'm tried using two versions of TWRP(3.2.3-0 and 3.3.1-0) and got two different errors:
• No digest file found (3.2.3-0)
• Error 7 (3.3.1-0)
What should I do? I don't have any ROM's installed

Categories

Resources