Is it posible to select Recovery options via ADB? - Android Q&A, Help & Troubleshooting

Hello Guys
I have a Supersonic Tablet (a generic Android tablet) I'm trying to make a Hard Reset to it, its locked. When I get into Recovery Mode and select "Wipe data/ Factory reset" i get into the common menu:
No
No
No
No
No
No
No
Yes - Delete all user data
No
No
When I scroll down and put the cursor at here:
No
No
No
No
No
No
No <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<----------------
Yes - Delete all user data
No
No
If I try to Select "Yes - Delete all user data" the cursor goes to the top. Its kind of trickie....
No <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<----------------
No
No
No
No
No
No
Yes - Delete all user data
No
No
So I conect it via ADB and it is recognized as:
"List of devices attached
0123456789ABCDEF recovery"
so I wonder if there is a command on ADB to select the options at recoovery.
Thanks

Related

Dalvik Cache

I searched and found some stuff relevant to the G1, but rather than assume it's the same, I thought I'd ask here- just in case!
So,
1) what is its purpose?
2) how do i (and should i) clear it?
I've read that it can speed up the phone a bit, so its worth a go
when i boot in the recovery console (home + power on) and i try to "wipe sd:dalvik cache", i am prompted to press home to confirm, but then i get an error:
"Error : run deldalv via console"
is this referring to the adb mount thing? if so, how do i do it???
cheers!
for info;
i found out that the recovery image throws an error even though the cache is wiped
http://android.modaco.com/content/h...5/error-run-wipe-dalvik-via-adb/#entry1170239
and
http://forum.xda-developers.com/showthread.php?t=561124&page=51

[Q] Problem with installing ROM

Hey guys
So I've been a quiet member for ages but now, I have problems with my Hero (Android 1.5) and need some help. I've read online but I don't seem to see anyone else that has this problem - when I go into recovery mode, I can't do the USB-MS thing, nor can I backup like point 3).
I just did something different (really not sure what), but my phone now won't go into recovery when its plugged into the computer and Win7 says the device driver was not successfully installed.
"2. Make sure your phone is in recovery mode (Home + Power)
Plug your phone into your computer and select "USB-MS toggle" in recovery
Place the Custom ROM on your SD card in the main directory and press Home when it has finished copying over
3. Select Backup/Restore > Nand backup > confirm with Home > Wait
(or Nand + Ext if you have A2SD setup)
4. Press back then select Wipe from the main menu, then select:
Wipe data/factory reset > Home
Wipe cache > Home
Wipe Dalvik-cache > Home
Wipe SD:ext partition > Home
Press back button
Select Flash Zip from SD Card
Select the file
Press Home to confirm"
I have already done the recovery ROM thing and I'm trying to install VillainROM (not quite there yet, but just mentioning it). Can someone please help me before I lose my mind Thanks guys!
OK, can you get into recovery when the phone is NOT plugged into the computer? It's not necessary to be plugged into USB to do from step 3 onwards.
Kr1tikalMas said:
Hey guys
So I've been a quiet member for ages but now, I have problems with my Hero (Android 1.5) and need some help. I've read online but I don't seem to see anyone else that has this problem - when I go into recovery mode, I can't do the USB-MS thing, nor can I backup like point 3).
I just did something different (really not sure what), but my phone now won't go into recovery when its plugged into the computer and Win7 says the device driver was not successfully installed.
"2. Make sure your phone is in recovery mode (Home + Power)
Plug your phone into your computer and select "USB-MS toggle" in recovery
Place the Custom ROM on your SD card in the main directory and press Home when it has finished copying over
3. Select Backup/Restore > Nand backup > confirm with Home > Wait
(or Nand + Ext if you have A2SD setup)
4. Press back then select Wipe from the main menu, then select:
Wipe data/factory reset > Home
Wipe cache > Home
Wipe Dalvik-cache > Home
Wipe SD:ext partition > Home
Press back button
Select Flash Zip from SD Card
Select the file
Press Home to confirm"
I have already done the recovery ROM thing and I'm trying to install VillainROM (not quite there yet, but just mentioning it). Can someone please help me before I lose my mind Thanks guys!
Click to expand...
Click to collapse
Hi,
Can you post which guide you're using. I think you need to install a patched recovery like AmonRA though.
There is a "rooting" guide which I think you will need to follow first.
Ok, this wasn't the exact one but they're very similar
Oh, got this error, so please excuse the following:
villainrom co uk/vBwiki/index.php/Installing_Custom_ROMs
I compared a lot of different ones and I'm not sure which one I posted...
I can get into recovery without it being plugged in, but the computer doesn't pick the phone up if I plug it in after its in recovery mode.
@pulser_g2: I've done all of this stuff:
•Install HTC Sync from here
•Download Universal Androot
•Download AmonRA Recovery v1.7.0.1.img – easier if you rename this “recovery.img” when it is on your sdcard
Place both downloaded files on your SD Card
Root & Recovery
•Download and install Astro File Manager from the Market
•Open Astro and find and install Universal Androot from your sdcard:
Select UniversalAndroot.apk > Open App Manager > Install > Settings> [tick] Unknown Sources > OK > Back > Select UniversalAndroot.apk > Open App Manager > Install > Install > Open
•In the app and choose the correct version from the dropdown box:
•Superuser for Android 2.0~2.2 – if you have updated your phone recently
•Superuser for Android 1.5~1.6 – if you have refused updates recently or your country/provider hasn’t released one yet
Then choose: “Root ”
Wait until it says “Woot ! Your device is rooted !” and exit the program.
•Download and install Android Terminal Emulator from the Market
•Run “Terminal Emulator” the program and type in the following:
su [enter]
flash_image recovery /sdcard/recovery.img [enter]
reboot recovery [enter]
•Your phone should now restart and place you in recovery mode. You can also do this manually by turning off your phone and press Home + Power to turn it back on.
Do I still need AmonRA? Is that from MarketPlace?

[solution] How to recover from bad overclocking settings

I recently was experimenting with overclocking settings and stupidly left "Set On Boot" option selected. When I tried setting the max cpu frequency setting to the maximum (864MHz), my phone promptly crashed.
Because "Set On Boot" was on, the phone crashed again after rebooting. I was basically stuck in a crash-boot loop.
You can recover from this by formatting the /data partition, but I didn't want to lose all my app settings.
So here are some rough steps to turn off "Set On Boot" via CWM Recovery and the adb shell.
1) Reboot into CWM recovery (repeatedly press back during the kernel boot animation)
2) Under the mounts and storage menu, mount the /data partition
3) plug the USB cable into a pc that has the android tools
4) On the pc, do "adb pull /data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml"
5) open the com.android.settings_preferences.xml in an editor and look for
<boolean name="pref_cpu_set_on_boot" value="true">
Change this to "false"
6) Save your changes and push them back to your phone:
adb push com.android.settings_preferences.xml /data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml
Reboot and go back to your settings and fix them.
This is very useful information, maybe a mod could make this a sticky post or it can be included in some faq posts, so it doesn't get lost in time.

[Guide] How To Run 'Pokemon Go' Flawlessly on Moto E Gen 2

Tested On XT1526 from the stock 5.1.1 firmware surnia. PLEASE check your settings->about phone and look to make sure the model is surnia before going forward! Please reply in the comments if you were able to get this to work on another model other than the XT1526!
So you have the Moto E Gen 2. You may have even got this phone specifically to play the game that's sweeping the world, 'Pokemon Go'. You felt great having installed the APK like a true hacker, you went to play and......oh no. What's this? The phone takes ages to boot up? Restarts all the time while trying to log into your account? Or you FINALLY get far enough into the load that the game starts (or gets close to it) and the phone gets soo hot in your hands it's unbearable and the game begins to **** out? Perhaps it runs terribly from the get go?!
This. Guide. is. For. You.
This guide will help you to set up your Moto E Gen 2 to run perfectly with the game! It will also cause your phone to run almost 3x faster, and have the battery last almost 2.5x longer! I would recommend this guide to ANY person using the Moto E. I have NOT tested this guide with the Gen 1 or any other phone.
I do not take ANY responsibility if your phone ****s out on you in any way, shape or form. Messing with your phone's system like this can ALWAYS cause issues if you don't take your time and know a bit of what you are doing. Or, if you are new to this and daring, I have constructed this guide to be extremely easy to follow. As long as you follow step by step, you should be goldeen...erm...golden! If not, it's not on me. Your fault !
If you encounter a step you have previously done, go to the next one! This guide is step-by-step for someone with a stock Moto E (2015)!
Step One: Unlock The Bootloader
So the first thing we need to do on this journey is unlock our bootloader!
1. Back up ALL of your data! Do it. Or if this fails, you will be SOL.
2. Download the Android SDK or get the Minimal Version (this is what I did)
3. When you install the SDK, install it to your desktop (during installation it will ask you for location. Make a new folder on your desktop called SDK and install it there for easy access).
3. You will want to install the drivers for your phone so you don't have problems connecting from your computer to your phone! Download them HERE.
4. Now we need to get into fastboot. To achieve this there are a few things we need to do.
-With your device powered on, go to your Settings->About Phone and click on the 'Build Number' 7 times to enable Developer mode!
-Go into your settings->developer options and enable 'USB Debugging'
-While in Developer Options, make sure 'OEM unlocking' is ENABLED.
-Open the directory on your desktop where you installed ADB. You should see some programs such as 'fastboot' and 'adb' in there. Should NOT be an empty folder containing another folder!
5. Once you are in the directory of your ADB on your computer, and you have done all steps above, hold down the SHIFT KEY and RIGHT CLICK inside the ADB folder containing your 'fastboot' and 'adb' programs. Choose the option that says 'Open Command Window Here'.
6. Once the command window opens, connect your phone (while powered on) to your PC.
7. In the command window, enter the following command to make sure your device is connected: 'fastboot devices' Now, enter the following command: 'fastboot reboot bootloader'
8. When your phone restarts, you will be in the bootloader screen. Once here, enter the following string into your command window: 'fastboot oem get_unlock_data'
9. You will get a nice long string of text. Copy it by right clicking on it->Mark->then mark the string of text by holding the shift key. Ctrl+C to copy it.
10. Open a Notepad and copy the string into it by pressing Ctrl+V. Make the string of text ALL ONE LINE by deleting the spaces.
11. Head over to the Motorola site HERE and log in using your google+ account.
12. Scroll to the bottom of the page, and in step 6 paste your string code from your notepad (step 10) into the blank box. Click on the 'Can My Device Be Unlocked' link. There should be a new button that comes up that says 'Request Unlock Key'. You will be emailed your unlock key after clicking the 'I Agree' prompt!
13. Go into your email, and open up the new one that contains your unlock key. Copy the 20 character string that is your unlock key.
14. Back in your command window, enter the following command again: 'fastboot devices' to ensure your device is still connected. Your device should STILL be in your bootloader screen. If so, and you see your device in the command prompt, enter the following command: 'fastboot oem unlock YOUR_UNLOCK_CODE'
15. After a while, you should get a 'Bootloader Unlocked' notification on your phone.
If so, you're done with this step! On to the next one . KEEP YOUR CMD WINDOW OPEN FOR ADB
Step Two: Rooting Your Phone and Installing TWRP
1. Turn your phone back on like normal. Connect your phone to the computer so you can see into the storage (should be under My Computer->Your Device).
2. Download the following files. TWRP Recovery and SuperSU.
3.Take your 'recovery.img' and move it to the folder with your ADB and Fastboot (on your desktop). Make SURE it is in the same folder with the adb and fastboot programs and is named 'recovery.img'.
4. Take your 'SuperSu' zip file you downloaded (DON'T UNZIP IT) and move it to your phones SD card (preferred) or Internal Storage.
5. Once your recovery image is in the ADB folder and the SuperSU zip file is on your phone's storage, type the following command: 'adb reboot bootloader'
6. Your phone will reboot into the, now familiar, bootloader screen! For this tutorial, we are actually going to flash TWRP onto the phone so it is the phone's default recovery program. To do this, while in the bootloader screen on your phone, type the following command into your command console on your computer: 'fastboot flash recovery recovery.img'
7. Once it is done and successful, enter the following command into your CMD console to make sure TWRP in installed on your phone: 'fastboot reboot bootloader'. On your phone, use the Volume+ and Volume- keys to navigate to the 'Recovery' option. Press the Power key when it is highlighted!
8. Once you are in your TWRP, press the 'install' button. Navigate to the storage folder on your phone that contains the SuperSU zip file you moved from your computer onto your phone in step #4. When you see it, click on it and use the slider to flash it onto your phone. Once it is done, (as you should ALWAYS do after a flash), click the 'Wipe cache/dalvik' button and do the 'Swipe to Wipe'. Once done, click the 'Reboot System' button!
Step Three: Now your phone is rooted and has TWRP installed! It is time we install Cyanogenmod CM13!
1. Go HERE and download the 'Latest Nightly' rom at the top of the page. It will download a .zip file to your computer. Then go HERE, select ARM->6.0->Stock and hit the green download button (it's pretty big). Once both are downloaded, boot up your phone (if not already done) and connect it to your computer. Move both these .zip files to your phone's SD card (recommended) or internal storage.
2. Boot into recovery after the transfer is complete by holding the Power+Volume Down buttons. When the screen turns black, let go of the power button and continue to hold Volume Down.
3. Once in the bootloader, use the Volume+/Volume- buttons to navigate to the Recovery option. Hit the power button when it is selected.
4. Once in TWRP recovery go to install. Navigate to where you just transferred the two .zip files you just downloaded ONLY TO MAKE SURE THEY ARE THERE ALONG WITH THE SUPERSU .zip FILE YOU DOWNLOADED EARLIER. If it isn't, figure out why and correct it! If it is, continue (DO NOT INSTALL EITHER LOL)
5. Go to the 'Wipe' option on the homescreen of TWRP. REMEMBER TO HAVE BACKED UP ALL YOUR DATA BY THIS POINT. Move the slider to complete the wipe.
6. NOW we can install the rom! Go back to 'Install' on the homescreen of TWRP. Navigate back to the .zip file of the Nightly Build rom again (NOT THE GAPPS), and select it! Once selected, move the slider to flash Cyanogenmod CM13 to your phone. WE WILL NOT BE INSTALLING THE GAPPS YET. YOU WILL FIND OUT WHY SHORTLY.
7. Once it is done, hit the 'Wipe cache/dalvik' button. Once completed, go ahead and reboot the system! The first boot will take awhile to set everything up. Have patience!
8. Once everything installs, you will be at the setup screen. As you go through the setup screen, something weird will eventually happen...you won't be able to hit the 'Next Button'. The only thing that will happen is when you hit 'next' your phone will bring the system tray down from the top. It took me AGES to figure this out people...but NOT installing the GAPPS at the start is literally the only way to get past this (with GAPPS installed, it takes too long to proceed through setup and you will keep getting killed by the drop down screen). Get through it in step 9!
9. Once you get to the point in setup that the dropscreen comes down, position your right thumb so its hovering above the 'Next Button' and DON'T MOVE IT. Using your left hand, hold the power button until you see an option to 'Restart' the phone. Do it. And from the moment your phone restarts, RAPID TAP (and I mean it, tap as fast as your thumb will allow you) WITH YOUR RIGHT THUMB WHERE THE 'NEXT' BUTTON WILL BE. Do NOT stop until you have successfully got through the setup process and are on the android's home screen! At this point, you MAY have an issue hitting the middle gray button at the bottom of your phone (next to messages and chrome icons) without it bringing down the stupid drop screen. To fix this, once again position your thumb on the gray button that sends you to your apps and hover it there. Restart the phone again, and rapid tap where this gray button will appear upon boot. Once booted and you have successfully clicked the button, the error goes away! You can navigate your phone normally and reset it without the problem coming back! (if it does, simply repeat this past step to get rid of it).
10. NOW we can reboot back into the bootloader by holding the Power/Volume- keys. Once in the bootloader, navigate with the Volume+/Volume- keys to the recovery option, and hit the power button to boot up TWRP.
11. Once in TWRP, click the 'install' button. Navigate to where your GAPPS .zip file is (the one you just downloaded along with the nightly rom), click on it, and move the slider to flash it. Once it finishes, make sure to wipe the Cache/Dalvik. Do not reboot yet!
12. Navigate back to the 'Install' button of TWRP, and find your SuperSU .zip you installed earlier. Install it again for safe measures and wipe the Cache/Dalvik once it is done!
13. Boom. Restart the phone and you now have working CM13 6.0 on your Moto E 2015 Device! Now the moment you have all been waiting for, POKEMON GO !
Step 4: How to make Pokemon Go run GREAT
1. Once booted up, go to your system->about phone. Click on the 'Build Number' 7 times to unlock developer mode.
2. Go to your system->Developer options and make the following changes
-Advanced Reboot->ON
-Root Access->APPS and ADB
-Select USB Configuration->MTP (Media Transfer Protocol)
-Window Animation Scale-> changed to 0.5x
-Transition Animation Scale-> changed to 0.5x
-Animator Duration Scale-> changed to 0.5x
-Don't Keep Activities-> Turn ON
-Background Processes limit-> Change to 'At most 1 process'
3. Now, head to your system->Apps settings. Force Stop and Disable the following (unless you actually use it...)
-Cloud Print
-Docs
-Drive
-Fit
-Gmail (unless you use it, using chrome browser to access it is better option to keep phone running fast)
-Google Play Books
-Google Play Games
-Google Play Movies & Tv
-Google Play Music
-Google Play Newsstand
-Google+
-Hangouts
-Keep
-News & Weather
-Screen Recorder
-Sheets
-Slides
-Youtube
4. Go to your settings->security and enable 'Unknown Sources'
5. Go to settings->memory and hit 'Apps Started on Boot' and make the following changes
-Photos: deselect 'keep awake' and 'start at boot'
-Keep: deselect 'keep awake' and 'start at boot'
-Hangouts: deselect 'keep awake' and 'start at boot'
-Camera: deselect 'keep awake'
-Gmail: deselect 'keep awake' and 'start at boot'
-Exchange Services: deselect 'start at boot'
-Media Storage: deselect 'keep awake' and 'start at boot'
-Download Manager: deselect 'keep awake' and 'start at boot'
-CM Updater: deselect 'keep awake' and 'start at boot'
-Talk Back: deselect 'keep awake' and 'start at boot'
-YouTube: deselect 'keep awake' and 'start at boot'
-Google Play Movies & TV: deselect 'keep awake' and 'start at boot'
-Fit: deselect 'keep awake' and 'start at boot'
-Google Play Music: deselect 'keep awake' and 'start at boot'
6. Reboot the system! (hit the power button and hit reboot->reboot)
7. Go into the google play store, and login using your normal account settings.
8. Once logged in, download 'Kernel Adiutor (ROOT)' and open it up. Allow it to use root access (screen will pop up be looking for it).
9. Once opened, hit the tray button to the left of 'Kernel Information' (the three lines) and go to CPU. Slide the 'Apply On Boot' bar to the right to enable. Set your 'CPU Maximum Frequency' to '1209MHz' and 'CPU Minimum Frequency' to '400MHz'. Then, change the CPU Governor to 'Performance'.
10. Now that your phone is running faster than ever, go to chrome on your phone and google search 'Pokemon Go APK'. I used the 'APKPURE Pokemon Go APK 0.31.0' from m.apkpure.com. Your phone might glitch a tiny bit (it did for me the first time) and do a soft reboot. It's fine! Re-open chrome and hit the 'Download APK 59.9MB) bar beneath 'Verification Passed' and it will start downloading. Once it is done, open your 'File Manager' and go to the 'Internal Storage' then go to 'Download'. Click on the 'Pokemon Go' icon and allow it to install!
11. Start up the app, and MAKE SURE you only have ONE google email on the device. Let the game load, and set everything normally. When it asks you to login (if you use the google account one) right after you hit the google account, click on the screen in the middle rapidly. It SHOULD keep the game from re-setting. If the game does reset, don't fret. Restart it and try again. Once you get past this point? You phone should be running the game 2x if not 3x better than before! The final step is once the game is loaded, click on your pokeball icon and go to settings. Turn on battery saver mode!
Boom Bada Bing! Your phone should not only load the game ridiculously fast now, your battery life will be extended 2x-5x and the game will run at a steady rate keeping your CPU cooler than ever before!
This guide is compiled based on the struggles I faced getting the game to work properly. I got the phone from my wife while I wait and wait and wait for Pokemon Go to POSSIBLY come to my Windows Phone 1020 lol. When she gave it to me, it ran terribly and would overheat after 20 minutes of play in the sun. These are the ways I got the phone to run soo smoothly that now she ALMOST wants the phone back haha!
Any errors you see? Any fixes not mentioned? Give some feedback in the comments below!
Any reason for using stock gapps? You seem to disable most of the gapps anyway so perhaps it may be good to just go with nano or pico?
I put it in there in case someone wanted to use one of the stock gapps in the future.
Dude.... I already have CM 14 since a month....and I simply downloaded the app and followed the steps as you said..... Pokemon Go's still not working
RayShah_N said:
Dude.... I already have CM 14 since a month....and I simply downloaded the app and followed the steps as you said..... Pokemon Go's still not working
Click to expand...
Click to collapse
What error are you getting?
shaktiman01 said:
What error are you getting?
Click to expand...
Click to collapse
Unable to authenticate. Please try again
RayShah_N said:
Unable to authenticate. Please try again
Click to expand...
Click to collapse
That's due to Pokemon go now don't run on rooted phones.
For this you have to delete su files from following directory :
/System/bin
/System/xbin
Give it a try.... But you'll lose root access

MIUI Unlocking Bootloader, Flashing Recovery & Rooting Process

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 Magisk​STEPS:
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 Magisk​STEPS:
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

Categories

Resources