Any guide
Possibly using linux machine
I think you should be able to perform all the steps done in adb using a linux machine. If you don't have a linux machine go to http://www.linuxmint.com/download.php and download the 32-bit DVD. You can burn it to a DVD and boot your PC to the DVD. I can get you more instructions if you need them.
I'm going to try this out this weekend. (Hopefully, Friday night.) I'll let you know if it works, and get you a step-by-step.
I have ubuntu
11.04
waiting for the instructions
thanks
Working on it now.
Downloading bt5.tar.bz2 now. It'll be a bit. 667MB... about an hour remaining.
The basic idea is to format the sdcard to ext3 using Gparted. (That WILL wipe all of your data!)
Then copy the files listed in bt5 post in the development forum by slimm609, and follow his instructions from that point on.
It should be simple.... (Please realize this is an over simplified summary, not instructions.)
I'm still going to try it out myself, and post a step-by-step as an alternate means for the command line phobic.
OK. Just booted to BackTrack
OK. It worked. It'll take me a few minutes to type up the step-by-step.
BT5 Setup - the GUI method (Ubuntu)
First of you will need a micro SDcard Reader for your Ubuntu machine, a recovery kernel, (like clockwork mod) and a application called Gparted (Graphical Partition Editor) on the Ubuntu machine. If you don't have it installed it is available in the repos.
1. Download the necessary .zip files from the original thread.
http://forum.xda-developers.com/showthread.php?t=1075054
(This would also be a good time to back up your data from the Tablet to another storage medium just in case.)
2. Mount the micro SDcard to your Ubuntu Machine. Copy anything from the SDcard you wish to keep. You WILL lose the data on this card when it is formatted.
3. Open Gparted. In the upper right hand corner select the micro SDcard device name. (Typically /dev/sdb or /dev/sdc, please be certain before proceeding.)
4. The partitions on the device should appear in the lower window. Right click on the partition you want to format, (usually /sdb1) and select "unmount".
I cannot stress enough that the following step will erase the data off of what ever device you have chosen! Choose wisely.
Right click the same partition and select "Format to" > ext3.
Select "Edit" from the menu up top, and "Apply all Operations"
5. Remount the SDcard. Copy the bt5.tar.bz2 file to the SDcard. This will take a minute or two. Once it is finished copying. Right click on the bt5.tar.bz2 icon, and select "open as administrator" This should open Archive manager as root. (It should ask for a password.)
It will take it a minute or two to read the archive and present the contents. (It's Large.)
6. Click the "Extract" button up top. In the window that pops up double check that you are pointed to the micro SDcard. (Usually /media/Random-Characters) Click the "Extract" button at the bottom right. You should get a progress bar and see folders begin to populate the File manager's window. This will take several minutes. Get a cup of coffee...
7. Once this is finished, delete the bt5.tar.bz2 file.
8. On your Gtablet, download the three (3) kernel .zip files listed in the original thread.
Move them to a folder you can easily find. (I did AA_kernels, so it's first in the list and easy to remember.)
9. Reboot the G-tab. Enter recovery mode, by pressing the volume up (+) key while pressing the power button. In the recovery mode flash the droid-kern_backup.zip to backup your current android kernel. This will allow you to switch back to the android install you have now.
For Clockwork Mod (CWM) its "install zip from sdcard" > "choose zip from sdcard" > folder you named earlier > droid-kern_backup.zip.
10. After it is finished, selec the bt5kern-01-20110525.zip . This will set the tablet to boot to the BT5 load. Press the back button until you see the option to "reboot system now" and select it.
Once you reboot you should boot into BackTrack5. The screen may go dark and/or have a few white blocks, before it pops up some indeterminable text. Don't worry, be patient.
The login screen should say Clemintine and allow you to position the mouse over the "user name" block. Tap to select. In order to type you will need a physical keyboard plugged in, or you should see a man in a circle at the bottom right of the screen. Clicking that Icon will bring up options for assistance which include an on screen keyboard.
Enter "root". (Without quotation marks.) for the user name.
Enter "toor" for the password.
That should have you set to play. To return to the android install, reboot to recovery mode, and select the restore_droid-kern.zip . Another warning! Don't select the backup.zip at this time or you may over write the saved kernel.
I hope this helps. If I seemed to explain things to a painful detail, it's not to insult anyone's intelligence. You just never know who may be reading this post next, and what his/her experience level may be. If this manages to help you please click the "Thanks" button below and be sure to return to the original thread to Thank slimm609 and the others who put so much work into this project.
@argusvision
+1
That is lovely.
How about a dual boot setup? has that been tried?
Dual boot
This is a dual boot solution. To switch between distros, boot into recovery mode, and select the kernel you want.
BT5_kern.zip for BackTrack, or restore_droid-kern.zip to restore the kernel you backed up in the 9th step.
Look at the next to last paragraph.
argusvision said:
First of you will need a micro SDcard Reader for your Ubuntu machine, a recovery kernel, (like clockwork mod) and a application called Gparted (Graphical Partition Editor) on the Ubuntu machine. If you don't have it installed it is available in the repos.
1. Download the necessary .zip files from the original thread.
http://forum.xda-developers.com/showthread.php?t=1075054
(This would also be a good time to back up your data from the Tablet to another storage medium just in case.)
2. Mount the micro SDcard to your Ubuntu Machine. Copy anything from the SDcard you wish to keep. You WILL lose the data on this card when it is formatted.
3. Open Gparted. In the upper right hand corner select the micro SDcard device name. (Typically /dev/sdb or /dev/sdc, please be certain before proceeding.)
4. The partitions on the device should appear in the lower window. Right click on the partition you want to format, (usually /sdb1) and select "unmount".
I cannot stress enough that the following step will erase the data off of what ever device you have chosen! Choose wisely.
Right click the same partition and select "Format to" > ext3.
Select "Edit" from the menu up top, and "Apply all Operations"
5. Remount the SDcard. Copy the bt5.tar.bz2 file to the SDcard. This will take a minute or two. Once it is finished copying. Right click on the bt5.tar.bz2 icon, and select "open as administrator" This should open Archive manager as root. (It should ask for a password.)
It will take it a minute or two to read the archive and present the contents. (It's Large.)
6. Click the "Extract" button up top. In the window that pops up double check that you are pointed to the micro SDcard. (Usually /media/Random-Characters) Click the "Extract" button at the bottom right. You should get a progress bar and see folders begin to populate the File manager's window. This will take several minutes. Get a cup of coffee...
7. Once this is finished, delete the bt5.tar.bz2 file.
8. On your Gtablet, download the three (3) kernel .zip files listed in the original thread.
Move them to a folder you can easily find. (I did AA_kernels, so it's first in the list and easy to remember.)
9. Reboot the G-tab. Enter recovery mode, by pressing the volume up (+) key while pressing the power button. In the recovery mode flash the droid-kern_backup.zip to backup your current android kernel. This will allow you to switch back to the android install you have now.
For Clockwork Mod (CWM) its "install zip from sdcard" > "choose zip from sdcard" > folder you named earlier > droid-kern_backup.zip.
10. After it is finished, selec the bt5kern-01-20110525.zip . This will set the tablet to boot to the BT5 load. Press the back button until you see the option to "reboot system now" and select it.
Once you reboot you should boot into BackTrack5. The screen may go dark and/or have a few white blocks, before it pops up some indeterminable text. Don't worry, be patient.
The login screen should say Clemintine and allow you to position the mouse over the "user name" block. Tap to select. In order to type you will need a physical keyboard plugged in, or you should see a man in a circle at the bottom right of the screen. Clicking that Icon will bring up options for assistance which include an on screen keyboard.
Enter "root". (Without quotation marks.) for the user name.
Enter "toor" for the password.
That should have you set to play. To return to the android install, reboot to recovery mode, and select the restore_droid-kern.zip . Another warning! Don't select the backup.zip at this time or you may over write the saved kernel.
I hope this helps. If I seemed to explain things to a painful detail, it's not to insult anyone's intelligence. You just never know who may be reading this post next, and what his/her experience level may be. If this manages to help you please click the "Thanks" button below and be sure to return to the original thread to Thank slimm609 and the others who put so much work into this project.
Click to expand...
Click to collapse
I have tryed the above directions 15 times. 1st using the whole partition of my external micro SD, 16 gig. Also tryed shrinking the partition and only having 4 gig availble without success. The bootload kernal loads but it sits there the black screen after wiping the birds out. What am I doing wrong.
Edit ( fixed issue ): My Ubuntu machine wouldn't let give me permission to extract the .tar file onto the newly formated micro SD. Ended up creating a app in the task bar to open thing under root user. Fixed and works but they sayed wifi works and it doesn't. Even tryed changing the 2 files that were posted from the creator of the 1.2 boot kernal for BT and still nothing. I guess I am on my own from there. TY.
Stuck
mine gets stuck after it has some txt roll down the screen then the screen go black and it just stays there. any help?
Hey folks,
Just ordered the Droid DNA off of eBay. It's factory condition, so it's not rooted or unlocked or anything.
I want to install the GPE rom on it from Newt. I've been reading as much as I can on how to do this and want to confirm my understanding. Forgive my noobness. These are the high level steps that I think I have to go through:
1) Run Moonshine. This will give me S-Off and an unlocked bootloader. This is all I need to put on a custom recovery.
2) Install Clockwork Mod recovery. This will allow me to flash kernels and put new roms on
3) Use Clockwork Mod to first backup the device and then put the GPE rom on. I don't need to flash a kernel
Am I right here?
Thanks a lot!
You are go for launch. Before flashing GPE, you may also want to get Titanium Backup and backup your apps.
Sent from my HTC6435LVW using Tapatalk 4
tfrank10 said:
You are go for launch. Before flashing GPE, you may also want to get Titanium Backup and backup your apps.
Click to expand...
Click to collapse
Sweet thanks man! This thing can't arrive soon enough.
Have fun!
Sent from my HTC6435LVW using Tapatalk 4
just dont so any type of phone data wipe untill you transfer a rom to it and dont do system wipe ever
you cant reliably transfer roms in recovery so it will cause you some hassle
You got it. I prefer TWRP for recovery myself. But it's all just personal taste.
hyphydragon said:
just dont so any type of phone data wipe untill you transfer a rom to it and dont do system wipe ever
you cant reliably transfer roms in recovery so it will cause you some hassle
Click to expand...
Click to collapse
Can you elaborate on that? Everything I'm reading says it's fine to do a factory days reset on custom roms. Are you referring to something else? Thanks
MSmithXDA said:
Can you elaborate on that? Everything I'm reading says it's fine to do a factory days reset on custom roms. Are you referring to something else? Thanks
Click to expand...
Click to collapse
Disregard that post. You must wipe system when flashing different ROM bases, if you don't you'll have issues if the ROM doesn't wipe on install. Factory reset is perfectly fine and 100% recommended for flashing ROMs. Don't wipe internal storage until after you flash a ROM unless you want to side load or push a ROM to flash, this is what he meant, I think, just provided false information with it.
Tapatalked from my HTC DNA - Carbon
I compiled a list of instructions on how to do it. This is starting with a brand new phone, all the way to installing the GPE custom rom using TWRP on a Windows PC. If anyone has a few minutes to look it over, I'd love the feedback (like maybe there are better ways to do this). But regardless, I thought this could be helpful to someone else in the future:
Disclaimer: I am not an expert and you should take my advice with a grain of salt. You can brick your phone by doing this and I'm not responsible if you do, even if you followed my instructions exactly. If you do run into a problem I won't be able to help you as again, I am not an expert. You're on your own and doing this at your own freewill and you are accepting responsibility from any good or bad that comes from it. Good Luck
Prerequisite: You must be on Firmware 2.06
1. Download and install HTC Sync Manager (to get drivers for phone) from:
http://www.htc.com/www/software/htc-sync-manager/
2. Now Uninstall HTC Sync Manager (drivers will remain behind)
3. Now install Android MiniSDK to get Fastboot and adb from:
http://androidforums.com/attachment...81-adb-guide-updated-2013-05-21-sdk-tools.zip
4. Right-click My Computer, click Properties, Advanced System Settings, and Environment Variables. Under User Variables, click Path, Edit, and at the end of the line, add a semicolon and the directory to your SDK tools. Do the same for the Path under System Variables and click OK to close the several windows we used to get here.
5. Download Moonshine from:
http://moonshine.io
6. Disable the lock screen, disable fast boot, and enable USB debugging
Settings -> Personalize -> Lock screen style and select No lock screen.
Settings -> Battery -> UNcheck “fast boot”
Settings -> Developer Options, turn them on (the toggle is at the top right), and check the box next to USB debugging.
7. Connect phone to computer using original USB cable (preferably to a USB 2.0 port as 3.0 has some issues)
8. Extract Moonshine Zip file
9. Run distiller.exe from the folder where you extracted Moonshine. Read all the messages and answer Yes to any prompts.
Steps 1-9 at: http://htc-one.wonderhowto.com/how-to/set-your-htc-one-s-off-using-moonshine-windows-0147992/
10. Disconnect phone
11. Install GooManager onto phone from:
https://play.google.com/store/apps/details?id=com.s0up.goomanager
12. Launch GooManager once it has been installed and grant it Super User permissions if asked
13. Press Menu and select the ‘Install OpenRecoveryScript’ option. Confirm any prompts that you get after that, and provide the app with root access if it requests for it.
14. Wait patiently till the app downloads the latest TWRP recovery for your device, and installs it. It may look done and nothing is happening, but may still be installing, so be patient. I used the notification window to see if it was still downloading.
15. Once the recovery has been installed, confirm that it installed successfully by booting into it. You can do that right from GooManager itself by pressing Menu and selecting the ‘Reboot Recovery’ option.
Steps 11-15 at: http://www.addictivetips.com/mobile/how-to-install-a-custom-recovery-to-an-android-phone-device/
16. Boot into TWRP by going into GooManager --> Menu --> ‘Reboot Recovery’
17. Click Backup
18. Set backup name. Use TWRP in the file name because backups aren't compatible with Clockword Mod
19. Swipe to backup. During the backup process, screen may turn off. Don't panic..it's just a screensaver. Tap the screen and it will turn on. Then swipe to unlock. Happened a few times.
20. Click Reboot System
To restore a backup in the future:
a. Boot into TWRP by going into GooManager --> Menu --> ‘Reboot Recovery’
b. Click Restore
c. Click on Back Up File
d. Swipe to restore
e. Click Reboot System
Steps 16 - 20 at: http://www.youtube.com/watch?v=laBKgRCpMeI
21. This technically isn't necessary, but I chose to backup my backup file onto my PC. It's located in the TWRP file. Just copy and paste it from windows explorer and put it on your computer.
22. Download GPE Rom from:
http://forum.xda-developers.com/showthread.php?t=2392799
23. Copy Rom onto phone. Keep as zip. You can put it anywhere, like Downloads
24. Boot into TWRP by going into GooManager --> Menu --> ‘Reboot Recovery’
25. Choose Wipe
26. Choose Factory Reset
27. Swipe To Wipe
28. Click Back
29. Click Home button
To install Rom/Kernel/Add-On/Patch
30. Reboot into TWRP
31. Click Install
32. Navigate to Rom zip file (if not there, perform step 23)
33. Click on it
34. Swipe to Flash
35. Click Wipe Cache/Dalvik
36. Swipe to wipe
37. Click Back
38. Click Reboot
Steps 22 -38 at: http://www.youtube.com/watch?v=IlAVk7qaEJ4
When I ran Moonshine in Windows, I ran into an issue where it wouldn't complete (it was stuck "waiting for fastboot"). So I switched to running Moonshine with Linux. This worked successfully and in many way is overall easier, so here's the instructions for that.
How To Install GPE Rom on a brand new Droid DNA (works for other roms too)
Disclaimer: I am not an expert and you should take my advice with a grain of salt. You can brick your phone by doing this and I'm not responsible if you do, even if you followed my instructions exactly. If you do run into a problem I won't be able to help you as again, I am not an expert. You're on your own and doing this at your own freewill and you are accepting responsibility from any good or bad that comes from it. Good Luck
Prerequisite: You must be on Firmware 2.06
1. Download Ubuntu Linux from:
http://www.ubuntu.com/
(I used version 13.04)
2. Burn downloaded image to a DVD (make sure to burn it as an image and not just place the file on the dvd). See instructions on Ubuntu website if having difficulty.
3. Boot your computer into Ubuntu selecting "Try Ubuntu" when asked. See instructions on Ubuntu website if having difficulty.
Steps 1-3 at: http://www.ubuntu.com/
4. Open a terminal window by clicking top left button and typing in Terminal.
5. Open Firefox and download Moonshine from below URL and make sure to save it in your ~/Downloads folder. Don't do this in Windows ahead of time...it must be done in Linux:
http://moonshine.io
6. On your phone, disable the lock screen, disable fast boot, and enable USB debugging
Settings -> Personalize -> Lock screen style and select No lock screen.
Settings -> Battery -> UNcheck “fast boot”
Settings -> Developer Options, turn them on (the toggle is at the top right), and check the box next to USB debugging.
7. Connect phone to computer using original USB cable (preferably to a USB 2.0 port as 3.0 has some issues)
8. In the terminal window type in:
cd ~/Downloads and hit enter, and then
tar -zxf moonshine_filename.tgz (replacing it with your filename) and hit enter, and then finally
sudo ./distiller
9. Read all the messages and answer Yes to any prompts. Let it do it's thing. It will take a while (20-30 minutes) and it will tell you when it's done. If you're not sure if it's done, then it's not, so just let it keep going.
Steps 5-9 at: http://moonshine.io/instructions/
10. Disconnect phone
11. Install GooManager onto phone from:
https://play.google.com/store/apps/details?id=com.s0up.goomanager
12. Launch GooManager once it has been installed and grant it Super User permissions if asked
13. Press Menu and select the ‘Install OpenRecoveryScript’ option. Confirm any prompts that you get after that, and provide the app with root access if it requests for it.
14. Wait patiently till the app downloads the latest TWRP recovery for your device, and installs it. It may look done and nothing is happening, but may still be installing, so be patient. I used the notification window to see if it was still downloading.
15. Once the recovery has been installed, confirm that it installed successfully by booting into it. You can do that right from GooManager itself by pressing Menu and selecting the ‘Reboot Recovery’ option.
Steps 11-15 at: http://www.addictivetips.com/mobile/how-to-install-a-custom-recovery-to-an-android-phone-device/
16. Boot into TWRP by going into GooManager --> Menu --> ‘Reboot Recovery’
17. Click Backup
18. Set backup name. Use TWRP in the file name because backups aren't compatible with Clockword Mod
19. Swipe to backup. During the backup process, screen may turn off. Don't panic..it's just a screensaver. Tap the screen and it will turn on. Then swipe to unlock. Happened a few times.
20. Click Reboot System
To restore a backup in the future:
a. Boot into TWRP by going into GooManager --> Menu --> ‘Reboot Recovery’
b. Click Restore
c. Click on Back Up File
d. Swipe to restore
e. Click Reboot System
Steps 16 - 20 at: http://www.youtube.com/watch?v=laBKgRCpMeI
21. This technically isn't necessary, but I chose to backup my backup file onto my PC. It's located in the TWRP file. Just copy and paste it from windows explorer and put it on your computer.
22. Download GPE Rom from:
http://forum.xda-developers.com/showthread.php?t=2392799
23. Copy Rom onto phone. Keep as zip. You can put it anywhere, like Downloads
24. Boot into TWRP by going into GooManager --> Menu --> ‘Reboot Recovery’
25. Choose Wipe
26. Choose Factory Reset
27. Swipe To Wipe
28. Click Back
29. Click Home button
To install Rom/Kernel/Add-On/Patch
30. Reboot into TWRP
31. Click Install
32. Navigate to Rom zip file (if not there, perform step 23)
33. Click on it
34. Swipe to Flash
35. Click Wipe Cache/Dalvik
36. Swipe to wipe
37. Click Back
38. Click Reboot
Steps 22 -38 at: http://www.youtube.com/watch?v=IlAVk7qaEJ4
Enjoy!
First of All, these are my knowledge which was gained through hard reading from XDA Developers Forum, GitHub, reddit, different websites & watching YouTube Videos.DISCLAIMER: Here, I will explain all the process of unlocking Bootloader, Flashing Recovery & Rooting Your Xiaomi Phone, though the general idea is the same, so you can read it from TOP TO BOTTOM because you can use this knowledge FOR ANY ANDROID PHONE GENERALLY. Here, I also explained ALL THE PROBLEMS YOU MIGHT FACE WHILE DOING THIS, AND HOW TO GET OUT OF THOSE PROBLEMS, BECAUSE XDA THREADS AND YOUTUBE VIDEOS DOES NOT ANSWER YOUR PROBLEMS IN ONE THREAD OR IN ONE VIDEO, ONLY WHILE DOING IT, WE FIND THAT, DOING THESE WEREN'T SO EASY LIKE YOUTUBE VIDEOS OR XDA THREADS
AND OF COURSE, DO THESE ON YOUR OWN RISK, IF SOMETHING HAPPENS TO YOUR DEVICE AND YOU BLAME ME, I WILL LMAO AT YOU.
REQUIREMENTS: 1. PC/LAPTOP 2. PENDRIVE WITH OTG CABLE (FOR PRECAUTION, GO TO STEP 4.3 TO LEARN WHY)
Step Number 01: Backup All Your Data:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
YOU HAVE BACKUP ALL YOUR DATA, INCLUDING APP DATA, GALLARY PHOTOS, ALL OF THEM BECUASE UNLOCKING BOOTLOADER WILL RESET EVERYTHING, IT WILL START FROM THE MOMENT WHEN YOU BOUGHT YOUR PHONE FIRST & SWITCHED IT ON.
STEPS:
To Backup All Your Data-
Go to settings "backup and restore" in additional setting (or in MY DEVICE - BACK UP & RESTORE) you can use either mobile or computer backup, both are same, after backing up, transfer it to computer.
Backup your contact from "contacts" (optional, because "step a" includes this)
Then connect your phone with your pc & backup all the necessary files, for example, create a backup of these folders:
DCIM
Download
Pictures
MIUI (Gallery, recorder etc.)
Shareit, vidmate folder
Whatsapp folder (you can also backup it in google, goto SETTINGS - CHATS - CHAT BACKUP)
and others as per your necessity
My process is a manual process, so no app is required.
READ IT: in internet, you will find that you can use rooted app to backup these, like TITANIUM, or take a NANDROID BACKUP (SYSTEM AND APPS) USING TWRP RECOVERY, my boy, listen well, you haven't yet unlocked your bootloader, how can you have a rooted device and twrp recovery? (well you can have a rooted device but that also requires unlocked bootloader which will reset everything on your phone)
Step Number 02: Unlock Your Bootloader
STEPS:
Enable developer option by clicking on MIUI version 7 times
from "Additional setting", go to "developer option". there, do these:
enable OEM UNLOCKING
in device unlocking, add your MI account. if shows problem or error, remove your MI account then add it again from device unlocking, (NOT FROM MY DEVICE, ADD ACCOUNT) then, it will take you to main settings, just come back and click add again, it will work in Sha Allah.
now in your pc, download MI Flash Unlock from official MI website, HERE (better to install the latest)
Unzip it, run it using "batch_unlock", add your mi account
in additional settings again, in developer option, enable "USB DEBUGGING"
now in pc, connect your phone in fastboot mood, (swithing off then holding power button and volume down will take you to fastboot mood, there is another process of going to fastboot mood, which is described in step 3)
if your device is recognized IN MIUI UNLOCK TOOL but after connecting it in miui unlock tool, fastboot mood turns of and says "PRESS ANY KEY TO SHUTDOWN" in your phone, you may try swithing to USB port 2 but it didn't work for me. Instead, I ran this bat file code "AS ADMINISTRATOR" from XDA developer forum, you can do it too. I renamed it as "a.bat" first thing to come it my mind. then disconnect USB and connect again in your fastboot mood. Click Refresh in unlock tool.
(OR, IF YOUR DEVICE IS NOT RECOGNIZED IN MIUI UNLOCK TOOL, FOLLOW THESE:
remove MI account from unlock tools and again add, if password shows error even after typing correctly, use phone number and pass to log in, in stead of email and password. Check if device if recognized or not.
If not, try these, Download MIUI Flash Tool and unzip it, run XiaoMiFlash.exe. At the top line, find DRIVER, install all DRIVERS.
IF YOU FACE LOG FILE ERROR,
SOLUTION: JUST CREATE A FOLDER NAMED "log" in the same directory. DONE, YOUR DRIVER WILL BE INSTALLED, CLICK YES EVERY TIME, THEN CONNECT YOUR PHONE WITH MIUI UNLOCK TOOL AND CLICK REFRESH.
your device will be shown in "batch_unlock" in sha Allah. Click unlock. Remember, your phone will loose all data, just full factory reset.
8. after 99% it will show "unlock sign" at the top of your phone, and your phone will reboot, just let it reboot. It will take at best 12 minutes to reboot. Don't worry, seat tight, watch a YouTube Video of Dr. Zakir Naik or Ahmed Deedat Sir <3.9. setup your phone as if it's a new device. (it is necessary, because after this, we will flash recovery and root your phone, because it is really important to take a backup of your original "PERSIST.IMG" . it is possible for rooted device only. (though it can be done through recovery, but from magisk, it's the best way and safest).10. you can restore all backup from your pc now. (not necessary, if you want to change ROM)
Step Number 03: Install ADB (PC) & TWRP RECOVERY (Android)STEPS:
download latest SDK from OFFICIAL WEBSITE.
2. name of the download will be "platform-tools_r31.0.2-windows.zip" unzip it in DESKTOP (IMPORTANT). it's name will be "platform-tools", open it. (ADB COMMAND WILL RUN ONLY IN THIS FOLDER.
ALTERNATIVE ADB: you can also do it by one click adb installer, just install the file, and cmd will work at any position. File is given in the telegram, in my .rar file. But sometimes it shows problem, adb command is not recognized by the windows. then, above platform tools folder is useful as it always works.
3. downlead latest TWRP specific for your device from HERE. website guide: >find your device name> device model> Download Links > click either "Primary (Americas)" or "Primary (Europe)" or you can download them from XDA too (XDA process: search in google "TWRP for MI 9 se (your specific device with model number, not Mi9SE) XDA" then, go to the thread, below you will find GITHUB or any other download link, go there and you can download it from there.
4. (YOU CAN IGONORE THIS STEP, LET ME KNOW IF YOU FACED ANY PROBLEM, THOUGH YOU SHOULDN'T) rename the twrp file to twrp.img (not necessary though, check if your device extension is hidden or not, if hidden, you will not see any extension after any file, in that case, you can just rename "twrp" because img extention is already there and it's hidden. How to check hidden extention: in that folder, go to view at the top of the screen of that folder, (at beginning - beside cross, minimize then click "view"> click "option" in one row down, at extreme right side of it > click "view"> in downwards, untick "hide extensions for known file type"> click "apply">click "ok" then close it.)
5. keep the "twrp.img" (the file you downloaded, no need to rename, .img will show depending on unhidden condition) in the "platform tools" folder.
6. now go to "platform tools" folder. it's better to keep the folder in "desktop". go to the folder address, it is above the "Name, Date Modified, Type, Size" row, where it is written all the folders name that you have clicked to come to this folder. Now, click on the folder address, write "cmd", hit enter.
7. now connect your phone making sure "USB DEBUGGING IS STILL ON" because after unlocking bootloader, it will automatically be set to OFF.
write these commands: (after each command hit enter)
adb devices (it will show your device number if it is connected properly, if shows unauthorized, g0 to your phones home screen, disconnect and connect the usb again, in cmd write adb devices, a permission will pop up in your phone at bottom, not in notifications, click YES, your device will be authorized)
adb reboot bootloader (it will take you to fastboot mood instantly)
fastboot devices (it will show your device number it it is connected properly, to make sure it is still connected)
fastboot flash recovery (give space after recovery, then drag the twrp.img file here)
fastboot boot (give space after boot, then drag the twrp.img file here, your phone will boot into recovery.) ALTERNATIVE TO THIS STEP: fastboot reboot (it will reboot, but stop it instanlty by holding "power and volum up button", it is a must, it will take you to twrp manu, if you don't go now, later twrp will be removed by your phone)
AND OF COURSE, YOU HAVE TO ROOT YOUR PHONE RIGHT NOW, EVEN IF YOU DON'T WANT IT, CAUSE IF YOU DON'T, YOUR PHONE WILL REMOVE TWRP AS YOUR RECOVERY.
8. you will see twrp screen, then asking you "to keep system files as read only or swipe to allow modification, tick in DON'T SHOW AGAIN AND SWIPE TO ALLOW MODIFICATION". Then it will ask for a password to decrypt your phone, give the password to decrypt your phone. (to learn about encryption decryption, go to step number 4.3).
IF YOU FACE BOOTLOOP OR ANY OTHER ISSUE LIKE TWRP RECOVERY IS NOT STARTING AS IT SUPPOSED TO:
Again, go to fastboot mood by pressing power + volume down button. Download this vbmeta file. Go to platform tools > cmd > type
fastboot --disable-verity --disable-verification flash vbmeta (space, then drag the vbmeta file and hit enter, then follow step number 3.7
(3 is step number, 7 is the point number under step number 3)
Step Number 04: Install MagiskSTEPS:
1. you should stay in TWRP manu from the last step of STEP NUMBER 3 and your phone is connected with your computer via USB.
2. In your computer, download MAGISK FROM OFFICIAL GITHUB PAGE . Copy the magisk.apk and paste it twice in the same folder, now you have three magisk apk, rename the second one removing the "copy from name and just add .zip in stead of .apk at last. Rename the third one as this: "uninstaller.zip"
3. Now listen carefully, this is very important part of this topic:
your phone has two state: a. encrypted b. decrypted
a. IF ENCRYPTED AND CAN'T BE DECRYPTED THROUGH TWRP, that is TWRP IS NOT ASKING PASSWORD AT THE BEGINNING TO DECRYPT YOUR PHONE, THEN: some china rom's security is so encrypted, LIKE MY MI9SE, THAT TWRP CAN'T DECRYPT IT, EVERYTIME I HAVE TO RESET THE PHONE TO DECRYPT, IN THIS CASE ,YOU CAN'T ACCESS YOUR PHONE'S INTERNAL STORAGE NEITHER FROM TWRP NOR FROM PC (TWRP ACTS AS MTP, MEDIA TRANSFER PROTOCOL, MEANING YOU CAN TRANSFER FILE BETWEEN PHONE AND ANDROID IN RECOVERY MOOD), SO YOU CAN'T ACCESS YOUR INTERNAL STORAGE, YOU CAN'T INSTALL MAGISK. HERE, PENDRIVE WITH OTG COMES HANDY. Disconnect your phone Keep those three files in pendrive and connect it in OTG with your phone. go to twrp > install > select storage at bottom > select pendrive > select magisk.zip > swipe to flash. CONGRATULATIONS, YOUR PHONE IS ROOTED.
b. IF YOUR PHONE IS DECRYPTED BY TWRP AFTER GIVING PASSWORD:
Copy those three magisk file from your computer and drop it in your phones internal storage. go to twrp > install > select magisk.zip > swipe to flash. CONGRATULATIONS, YOUR PHONE IS ROOTED.
4. Reboot Your Phone (If your phone is bootlooped, which never happened to anyone I know, still for safety, again go to recovery by holding POWER + VOLUME UP BUTTON. go to twrp > install > select uninstaller.zip > swipe to flash. This will uninstall magisk from your phone and then reboot to system, your phone will reboot normally)
5. A Magisk app will be shown among your apps which is not like magisk logo. Don't touch it, Goto file manager, find those three magisk files, one file is the original magisk.apk file you downloaded, install it normally like any other app.
6. CONGRATULATIONS, YOUR PHONE IS COMPLETELY ROOTED.
Step Number 05: Backing up your PERSIST.IMG (MOST IMPORTANT)STEPS:
You will know from my other threads about what is persist partition of your phone. But let's just back it up now without knowing it. Copy it to your computer, cloud so that you never loose it.
Assuming you still have your phone connected through usb to the computer.
Install TERMUX from playstore or from HERE if you don't have play store.
in termux, type su to obtain root permission. A pop up will be shown to grant root permission, if it doesn't work, leave termux app, go to magisk app, at bottom, you will be 4 options, click the second one, you will see this screen.
grant super user permission for termux from here.
4. again go to termux, type this:
su (hit enter)
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img (hit enter)
5. your persist.img is backed up in your internal storage.
6. you can transfer it to pc manually or
use this process because it is relatively safe, though I never found any difference,
go to platform tools in cmd, type this:
adb pull /sdcard/persist.img D:\
it will take around 10 seconds, you will find the file persist.img in your PC's D drive folder, whatever the name is, the next folder to C drive, okay? Copy the persist.img wherever you want to keep it. I am again saying, it's not mandatory to do it in this way, just do normal copy paste from your phone's internal storage to your PC, it will do the work.
THANK YOU GUYS FOR READING IT ATTENTIVELY, FROM TOP TO BOTTOM, AND IF YOU DIDN'T, WHAT CAN I SAY. IT TOOK MORE THAN 30 DAYS TO ACQUIRE ALL THESE KNOWLEDGE AND YOU ARE GETTING IT WITHOUT ANY EFFORT, FREE, WHAT MORE DO YOU WANT?
My Other Threads according to "how should you read them" serial:
1. MIUI 12.5 Chinese ROM Google PlayStore Stopped Working
2. MIUI Unlocking Bootloader, Flashing Recovery & Rooting Process (This Thread)
3. Android Terminology You Must Know Before Toying with Your Android
4. ROM Naming & CUSTOM ROM, AOSP ROM, TREBLE ROM, GSI ROM, PORTED ROM
shafi1885 said:
First of All, these are my knowledge which was gained through hard reading from XDA Developers Forum, GitHub, reddit, different websites & watching YouTube Videos.DISCLAIMER: Here, I will explain all the process of unlocking Bootloader, Flashing Recovery & Rooting Your Xiaomi Phone, though the general idea is the same, so you can read it from TOP TO BOTTOM because you can use this knowledge FOR ANY ANDROID PHONE GENERALLY. Here, I also explained ALL THE PROBLEMS YOU MIGHT FACE WHILE DOING THIS, AND HOW TO GET OUT OF THOSE PROBLEMS, BECAUSE XDA THREADS AND YOUTUBE VIDEOS DOES NOT ANSWER YOUR PROBLEMS IN ONE THREAD OR IN ONE VIDEO, ONLY WHILE DOING IT, WE FIND THAT, DOING THESE WEREN'T SO EASY LIKE YOUTUBE VIDEOS OR XDA THREADS
AND OF COURSE, DO THESE ON YOUR OWN RISK, IF SOMETHING HAPPENS TO YOUR DEVICE AND YOU BLAME ME, I WILL LMAO AT YOU.
REQUIREMENTS: 1. PC/LAPTOP 2. PENDRIVE WITH OTG CABLE (FOR PRECAUTION, GO TO STEP 4.3 TO LEARN WHY)
Step Number 01: Backup All Your Data:
YOU HAVE BACKUP ALL YOUR DATA, INCLUDING APP DATA, GALLARY PHOTOS, ALL OF THEM BECUASE UNLOCKING BOOTLOADER WILL RESET EVERYTHING, IT WILL START FROM THE MOMENT WHEN YOU BOUGHT YOUR PHONE FIRST & SWITCHED IT ON.
STEPS:
To Backup All Your Data-
Go to settings "backup and restore" in additional setting (or in MY DEVICE - BACK UP & RESTORE) you can use either mobile or computer backup, both are same, after backing up, transfer it to computer.
Backup your contact from "contacts" (optional, because "step a" includes this)
Then connect your phone with your pc & backup all the necessary files, for example, create a backup of these folders:
DCIM
Download
Pictures
MIUI (Gallery, recorder etc.)
Shareit, vidmate folder
Whatsapp folder (you can also backup it in google, goto SETTINGS - CHATS - CHAT BACKUP)
and others as per your necessity
My process is a manual process, so no app is required.
READ IT: in internet, you will find that you can use rooted app to backup these, like TITANIUM, or take a NANDROID BACKUP (SYSTEM AND APPS) USING TWRP RECOVERY, my boy, listen well, you haven't yet unlocked your bootloader, how can you have a rooted device and twrp recovery? (well you can have a rooted device but that also requires unlocked bootloader which will reset everything on your phone)
Step Number 02: Unlock Your Bootloader
STEPS:
Enable developer option by clicking on MIUI version 7 times
from "Additional setting", go to "developer option". there, do these:
enable OEM UNLOCKING
in device unlocking, add your MI account. if shows problem or error, remove your MI account then add it again from device unlocking, (NOT FROM MY DEVICE, ADD ACCOUNT) then, it will take you to main settings, just come back and click add again, it will work in Sha Allah.
now in your pc, download MI Flash Unlock from official MI website, HERE (better to install the latest)
Unzip it, run it using "batch_unlock", add your mi account
in additional settings again, in developer option, enable "USB DEBUGGING"
now in pc, connect your phone in fastboot mood, (swithing off then holding power button and volume down will take you to fastboot mood, there is another process of going to fastboot mood, which is described in step 3)
if your device is recognized IN MIUI UNLOCK TOOL but after connecting it in miui unlock tool, fastboot mood turns of and says "PRESS ANY KEY TO SHUTDOWN" in your phone, you may try swithing to USB port 2 but it didn't work for me. Instead, I ran this bat file code "AS ADMINISTRATOR" from XDA developer forum, you can do it too. I renamed it as "a.bat" first thing to come it my mind. then disconnect USB and connect again in your fastboot mood. Click Refresh in unlock tool.
(OR, IF YOUR DEVICE IS NOT RECOGNIZED IN MIUI UNLOCK TOOL, FOLLOW THESE:
remove MI account from unlock tools and again add, if password shows error even after typing correctly, use phone number and pass to log in, in stead of email and password. Check if device if recognized or not.
If not, try these, Download MIUI Flash Tool and unzip it, run XiaoMiFlash.exe. At the top line, find DRIVER, install all DRIVERS.
IF YOU FACE LOG FILE ERROR,
SOLUTION: JUST CREATE A FOLDER NAMED "log" in the same directory. DONE, YOUR DRIVER WILL BE INSTALLED, CLICK YES EVERY TIME, THEN CONNECT YOUR PHONE WITH MIUI UNLOCK TOOL AND CLICK REFRESH.
your device will be shown in "batch_unlock" in sha Allah. Click unlock. Remember, your phone will loose all data, just full factory reset.
8. after 99% it will show "unlock sign" at the top of your phone, and your phone will reboot, just let it reboot. It will take at best 12 minutes to reboot. Don't worry, seat tight, watch a YouTube Video of Dr. Zakir Naik or Ahmed Deedat Sir <3.9. setup your phone as if it's a new device. (it is necessary, because after this, we will flash recovery and root your phone, because it is really important to take a backup of your original "PERSIST.IMG" . it is possible for rooted device only. (though it can be done through recovery, but from magisk, it's the best way and safest).10. you can restore all backup from your pc now. (not necessary, if you want to change ROM)
Step Number 03: Install ADB (PC) & TWRP RECOVERY (Android)STEPS:
download latest SDK from OFFICIAL WEBSITE.
2. name of the download will be "platform-tools_r31.0.2-windows.zip" unzip it in DESKTOP (IMPORTANT). it's name will be "platform-tools", open it. (ADB COMMAND WILL RUN ONLY IN THIS FOLDER.
ALTERNATIVE ADB: you can also do it by one click adb installer, just install the file, and cmd will work at any position. File is given in the telegram, in my .rar file. But sometimes it shows problem, adb command is not recognized by the windows. then, above platform tools folder is useful as it always works.
3. downlead latest TWRP specific for your device from HERE. website guide: >find your device name> device model> Download Links > click either "Primary (Americas)" or "Primary (Europe)" or you can download them from XDA too (XDA process: search in google "TWRP for MI 9 se (your specific device with model number, not Mi9SE) XDA" then, go to the thread, below you will find GITHUB or any other download link, go there and you can download it from there.
4. (YOU CAN IGONORE THIS STEP, LET ME KNOW IF YOU FACED ANY PROBLEM, THOUGH YOU SHOULDN'T) rename the twrp file to twrp.img (not necessary though, check if your device extension is hidden or not, if hidden, you will not see any extension after any file, in that case, you can just rename "twrp" because img extention is already there and it's hidden. How to check hidden extention: in that folder, go to view at the top of the screen of that folder, (at beginning - beside cross, minimize then click "view"> click "option" in one row down, at extreme right side of it > click "view"> in downwards, untick "hide extensions for known file type"> click "apply">click "ok" then close it.)
5. keep the "twrp.img" (the file you downloaded, no need to rename, .img will show depending on unhidden condition) in the "platform tools" folder.
6. now go to "platform tools" folder. it's better to keep the folder in "desktop". go to the folder address, it is above the "Name, Date Modified, Type, Size" row, where it is written all the folders name that you have clicked to come to this folder. Now, click on the folder address, write "cmd", hit enter.
7. now connect your phone making sure "USB DEBUGGING IS STILL ON" because after unlocking bootloader, it will automatically be set to OFF.
write these commands: (after each command hit enter)
adb devices (it will show your device number if it is connected properly, if shows unauthorized, g0 to your phones home screen, disconnect and connect the usb again, in cmd write adb devices, a permission will pop up in your phone at bottom, not in notifications, click YES, your device will be authorized)
adb reboot bootloader (it will take you to fastboot mood instantly)
fastboot devices (it will show your device number it it is connected properly, to make sure it is still connected)
fastboot flash recovery (give space after recovery, then drag the twrp.img file here)
fastboot boot (give space after boot, then drag the twrp.img file here, your phone will boot into recovery.) ALTERNATIVE TO THIS STEP: fastboot reboot (it will reboot, but stop it instanlty by holding "power and volum up button", it is a must, it will take you to twrp manu, if you don't go now, later twrp will be removed by your phone)
AND OF COURSE, YOU HAVE TO ROOT YOUR PHONE RIGHT NOW, EVEN IF YOU DON'T WANT IT, CAUSE IF YOU DON'T, YOUR PHONE WILL REMOVE TWRP AS YOUR RECOVERY.
8. you will see twrp screen, then asking you "to keep system files as read only or swipe to allow modification, tick in DON'T SHOW AGAIN AND SWIPE TO ALLOW MODIFICATION". Then it will ask for a password to decrypt your phone, give the password to decrypt your phone. (to learn about encryption decryption, go to step number 4.3).
IF YOU FACE BOOTLOOP OR ANY OTHER ISSUE LIKE TWRP RECOVERY IS NOT STARTING AS IT SUPPOSED TO:
Again, go to fastboot mood by pressing power + volume down button. Download this vbmeta file. Go to platform tools > cmd > type
fastboot --disable-verity --disable-verification flash vbmeta (space, then drag the vbmeta file and hit enter, then follow step number 3.7
(3 is step number, 7 is the point number under step number 3)
Step Number 04: Install MagiskSTEPS:
1. you should stay in TWRP manu from the last step of STEP NUMBER 3 and your phone is connected with your computer via USB.
2. In your computer, download MAGISK FROM OFFICIAL GITHUB PAGE . Copy the magisk.apk and paste it twice in the same folder, now you have three magisk apk, rename the second one removing the "copy from name and just add .zip in stead of .apk at last. Rename the third one as this: "uninstaller.zip"
3. Now listen carefully, this is very important part of this topic:
your phone has two state: a. encrypted b. decrypted
a. IF ENCRYPTED AND CAN'T BE DECRYPTED THROUGH TWRP, that is TWRP IS NOT ASKING PASSWORD AT THE BEGINNING TO DECRYPT YOUR PHONE, THEN: some china rom's security is so encrypted, LIKE MY MI9SE, THAT TWRP CAN'T DECRYPT IT, EVERYTIME I HAVE TO RESET THE PHONE TO DECRYPT, IN THIS CASE ,YOU CAN'T ACCESS YOUR PHONE'S INTERNAL STORAGE NEITHER FROM TWRP NOR FROM PC (TWRP ACTS AS MTP, MEDIA TRANSFER PROTOCOL, MEANING YOU CAN TRANSFER FILE BETWEEN PHONE AND ANDROID IN RECOVERY MOOD), SO YOU CAN'T ACCESS YOUR INTERNAL STORAGE, YOU CAN'T INSTALL MAGISK. HERE, PENDRIVE WITH OTG COMES HANDY. Disconnect your phone Keep those three files in pendrive and connect it in OTG with your phone. go to twrp > install > select storage at bottom > select pendrive > select magisk.zip > swipe to flash. CONGRATULATIONS, YOUR PHONE IS ROOTED.
b. IF YOUR PHONE IS DECRYPTED BY TWRP AFTER GIVING PASSWORD:
Copy those three magisk file from your computer and drop it in your phones internal storage. go to twrp > install > select magisk.zip > swipe to flash. CONGRATULATIONS, YOUR PHONE IS ROOTED.
4. Reboot Your Phone (If your phone is bootlooped, which never happened to anyone I know, still for safety, again go to recovery by holding POWER + VOLUME UP BUTTON. go to twrp > install > select uninstaller.zip > swipe to flash. This will uninstall magisk from your phone and then reboot to system, your phone will reboot normally)
5. A Magisk app will be shown among your apps which is not like magisk logo. Don't touch it, Goto file manager, find those three magisk files, one file is the original magisk.apk file you downloaded, install it normally like any other app.
6. CONGRATULATIONS, YOUR PHONE IS COMPLETELY ROOTED.
Step Number 05: Backing up your PERSIST.IMG (MOST IMPORTANT)STEPS:
You will know from my other threads about what is persist partition of your phone. But let's just back it up now without knowing it. Copy it to your computer, cloud so that you never loose it.
Assuming you still have your phone connected through usb to the computer.
Install TERMUX from playstore or from HERE if you don't have play store.
in termux, type su to obtain root permission. A pop up will be shown to grant root permission, if it doesn't work, leave termux app, go to magisk app, at bottom, you will be 4 options, click the second one, you will see this screen.
grant super user permission for termux from here.
4. again go to termux, type this:
su (hit enter)
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img (hit enter)
5. your persist.img is backed up in your internal storage.
6. you can transfer it to pc manually or
use this process because it is relatively safe, though I never found any difference,
go to platform tools in cmd, type this:
adb pull /sdcard/persist.img D:\
it will take around 10 seconds, you will find the file persist.img in your PC's D drive folder, whatever the name is, the next folder to C drive, okay? Copy the persist.img wherever you want to keep it. I am again saying, it's not mandatory to do it in this way, just do normal copy paste from your phone's internal storage to your PC, it will do the work.
THANK YOU GUYS FOR READING IT ATTENTIVELY, FROM TOP TO BOTTOM, AND IF YOU DIDN'T, WHAT CAN I SAY. IT TOOK MORE THAN 30 DAYS TO ACQUIRE ALL THESE KNOWLEDGE AND YOU ARE GETTING IT WITHOUT ANY EFFORT, FREE, WHAT MORE DO YOU WANT?
My Other Threads according to "how should you read them" serial:
1. MIUI 12.5 Chinese ROM Google PlayStore Stopped Working
2. MIUI Unlocking Bootloader, Flashing Recovery & Rooting Process (This Thread)
3. Android Terminology You Must Know Before Toying with Your Android
4. ROM Naming & CUSTOM ROM, AOSP ROM, TREBLE ROM, GSI ROM, PORTED ROM
Click to expand...
Click to collapse
I have redmi k40 bootloader locked and stuck on fastboot mode and can't unlock it through mi unlock tool so any solution for that problem beside edl ? And if I go with edl which flashing tool i will use ??
Hussein Gbr said:
I have redmi k40 bootloader locked and stuck on fastboot mode and can't unlock it through mi unlock tool so any solution for that problem beside edl ? And if I go with edl which flashing tool i will use ??
Click to expand...
Click to collapse
have you flashed any rom? or flashed anything? if you haven't, just restart your phn using power button. and if you have flashed anything already, how on earth you did it without unlocking your bootloader?
shafi1885 said:
have you flashed any rom? or flashed anything? if you haven't, just restart your phn using power button. and if you have flashed anything already, how on earth you did it without unlocking your bootloader?
Click to expand...
Click to collapse
My bootloader was unlocked but when i try to use mi flash tool by mistake or by default flash and lock bootloader option with there and the flash didnt go through in last second
Is there a way to unlock the phone if it only turns on in fastboot mode and is not associated with a xiaomi account?
Hello there, I would like to contribute to this tutorial if you agree
There is a way for people that have encrypted storage and no usb otg pendrive:
Step 4.3:
a-alternative. If encrypted, but no OTG Pendrive at your disposal:
You still can use the adb push command to send your Magisk folder into a decrypted part of your phone’s root folder. You are going to use your phone “/tmp” folder.
“/tmp” folder is suitable for temporary files just as our files (We will not need these files anymore after this tutorial). There is no risk to add files into this folder while it is not encrypted but do not delete any files already present into your /tmp folder!
1.Copy your Magisk folder containing your three Magisk files into the Plateform-tool folder:
2.Then in the cmd execute: adb push [replace_brackets_by_your_Magisk_folder_address_location] /tmp
3.Your Magisk folder should be now copied into your /tmp folder
4.twrp > install > select tmp/magisk.zip > swipe to flash. CONGRATULATIONS, YOUR PHONE IS ROOTED.
4.5-alternative. (This step only for those that processed through the “a-alternative” step) After rebooting your phone, you might have no chance to access the Magisk folder you’ve pushed earlier into the /tmp folder. However, now you have booted into your MIUI usual OS, you can copy the Magisk folder again into your internal storage using the classical drag and drop thanks to MTP protocol, to continue through this tutorial.
Hope this will help