lock the bootloader of my Mi A1 running on 8.1 - Xiaomi Mi A1 Questions & Answers

Hey guys! Hope you all are doing well
I wanted to lock my Mi A1's bootloader without losing data , twrp and magisk aren't installed.
Will the fastboot oem lock command work?

I dont know if it will but u can try
---------- Post added at 04:28 PM ---------- Previous post was at 04:14 PM ----------
but if it doesnt work u can just do this:
enable automatic backuping in the settings and also download google photos (if u dont use it u scub) and wait for it to backup ur photos
its good for backing up ur photos and saving A LOT of storage on ur phone
download the stock rom from here: http://en.miui.com/download-333.html
and download this tool: http://en.miui.com/forum.php?mod=att...kxMTB8ODA3MjUy
decompress the rom even if u dont actually see that anything is inside when u open it from winrar
make sure google backed up everything and if it did then reboot ur phone to bootloader mode and start the tool
click on refresh in the tool and u should see ur phone string
then click on browse and take it to this folder
tissot_images_V9.6.4.0.ODHMIFE_20180712.0000.00_8. 0_735823083f\tissot_images_V9.6.4.0.ODHMIFE_8.0
matters what u chose it might be just: tissot_images_V9.6.4.0.ODHMIFE_8.0
then in the bottom right make sure its clean all and lock
and then press on flash and wait, i heard someone say they bricked their phone when they flashed using miflash because a power outage happend and the proccess stopped so make sure u dont accidentally unplug ur phone from the pc
when finished the phone will auto restart itself and u should be having stock rom
and then in setup restore to ur google backup and then it will download the apps from google play store so it might take a while if u have slow internet connection
if u have any questions I'll be glad to answer them if I can

ImMohdAbubakar said:
Hey guys! Hope you all are doing well
I wanted to lock my Mi A1's bootloader without losing data , twrp and magisk aren't installed.
Will the fastboot oem lock command work?
Click to expand...
Click to collapse
I think that is not possible . Unlock and lock bootloader equal format data .

mar.ur said:
I think that is not possible . Unlock and lock bootloader equal format data .
Click to expand...
Click to collapse
So basically I can lock the bootloader through that command but I'll end up with wiped system?

ImMohdAbubakar said:
So basically I can lock the bootloader through that command but I'll end up with wiped system?
Click to expand...
Click to collapse
Remember that you must have stock recovery and stock system without root when you can lock bootloader . Yes , relock bootloader always format data . Do you remember what happened when you unlock bootloader ?
But you can try this . Do a backup before
https://www.google.pl/amp/s/forum.x...scussion-bypass-wipe-oem-unlock-t3804406/amp/
Good lack

you can bypass wiping by pressing and holding "volume -" while executing the command

Turn the phone into fastboot mode, then connect it to pc
Open cmd from fastboot/platform tools folder
Type:
fastboot devices, to make sure that your device is detected.
Then type
fastboot oem lock - before pressing enter hold the volume down button.
Press enter, keep holding volume down until phone restarts to fastboot.
Release volume down button.
Type:
fastboot reboot.
Voila, you will have locked bootloader without wiping data.
Tried this numerous time and never lost data!

Related

Enabling Root and Installing TWRP on F8132 Xperiam X Performance

The instructions are updated as of 11-20-17. Win7 only cause Win10 sucks and uses powershell and the fastboot commands don't work in powershell.
These are the proper files and procedures for installing Root, the latest Kernel, the best Superuser version and TWRP.
This is for NOUGAT 7.1.1. (and possibly beyond) There is a special procedeur to make flashtool work with the latest firmwares for Nougat ..
Before you Root and install TWRP you need to go back to my link and unlock bootloader..
You also need to download and install Android Studio Software and install it. Back to this portion of the install later.
You also need a special kernel to allow things on the phone to keep working.
This will work only for Nougat firmware.
You will need to download Boot img, TWRP img, SuperSu
Save TWRP and boot img files to the Android Platform folder in your PC here C:\Users\enter the current pc users log in name here\AppData\Local\Android\sdk\platform-tools . Save the Kernel zip and SUperSU zip file to an SD card and put the card inside your phone to access it through TWRP later in the process. Keep in mind that the Kernel may be updated. Check for updates herel here. Do a "date last modified" list of the files on that page by clicking on the grid view box on the upper right portion of the screen just under the "sign in" button. This helps you see what files have been updated in most recent order.
You will need to download the special Flashtool file here Install it.
Download the .jar patch file that makes the software version updated to the latest 9.23.2 and place it in this location C:\flashtools.
Now, download the special .fsc file and paste it in C:\Users"current user that is logged in"\.flashTool\devices\F81XX. Without this file you will not beable to update the device to nougat.
Goto C:\Flashtool\drivers and click on this file which was installed during the Flashtool installation.
Check off these boxes to install the drivers for the device you will be rooting. "Flash Boot Drivers, Flash Mode Drivers"
Now download and install these special ADB drivers to allow it to perform the Firmware update. Without it you wont beable to install the FTF file.
Open Sony Flash tool. Click on XI button. A window open. Click on Xperia Performance and then a small menu open under that. Choose F8132 ( i choose dual for my device)
If you can not get the newest firmware to show up for your device.( mine is 41.2.A.7.8 aka Nougat 7.1.1) then you can download it here Close Sony Flashtool.
Copy this FTF file and place it in folder C:\Users"The user you are currently logged into your pc with"\.flashTool\firmwares. Open Sony flash tool. Click on lightning bolt. Choose Flash mode in the small popup box. Window opens and shows your formware in the "firmwares" box. Click on plus symbol to the left of that firmware and it opens to the bottom to show the device model ( mine is F8132)/ Click on that plus symbol to the left of the model number to show the location of your firmware origination. Click on plus symbol and it then shows the firmware number 41.2.A.7.8. Click on the firmware and the entire window will populate a bunch of new options. If you want to wipe everythign on your phone then you need to check off the boxes "SSD and UserData" in the "wipe" box. Leave everythign else unchecked. Click the flash button at the bottom and it will start to prepare the files for installation onto yout device.
A window pops up that tells you to turn off your phone.
Turn your phone off. After its turned off, hold the volume down button while plugging the phone into your pc to get into fastboot mode. Your computer should be looking for the correct drivers to allow the device to work in this Flashboot mode. Once the flashing is done just close the flashtool. Turn your phone on. Go into settings and scroll down to "about phone then click on "build number" about 7 times. You will get a new optioon back in settings menu called "developer option". Click on that tabturn on "usb debugging" and turn off "verify apps over usb". Turn off phone.
Hold volum button UP this time while plugging phone back into pc.
Now go back to the folder C:\Users" name of user that is logged into the pc"\AppData\Local\Android\Sdk\platform-tools. You will open a cmd prompt in this folder by holding down your right mouse button and click on the shift key then release the mouse button. This will open a pop up window where you can choose to " open command window here" when the cmd window opens, copy and paste this "fastboot devices" press enter button, your computer should respond with this ......CB512A697c fastboot.......This lets you know that your phone is in the correct mode and ready to be programmed.
Now you will install the boot img by copy and pasting this in cmd line "fastboot flash boot boot.img" The PC should tell you OKAY with some other irrelevant info.
Now you will install the twrp img by copy and pasting this in cmd line "fastboot flash recovery TWRP-3.0.3-0-dora.img" The PC should tell you OKAY with some other irrelevant info.
Now you will install Kernel, and SuperSU. Turn on phone while pushing power button holding volume down button for about 5 secnds then release the bottom volum button then after 5 seconds release the power button to initiate TWRP.
Swipe to allow modifications then choose "Install" to install the zip files. Navigate to the SD card that has the kernel and SU zip files. Click on them to install. Reboot. TWRP might ask if you want to install the TWRP app before the phone starts to reboot. Just say no. After that, a few seconds later, the device reboots and then the Phone might go throw optimization process which takes some time. You will notice the counting of optimized files. Be patient.
When phone is booted and running, you might have to reinstall SuperSU via the Operating system as a APK like you would a normal app just to get root going. No big deal.
A caution...
When doing a backup with Twrp you should only backup System and Data
When doing a full restore, wipe only System, Data and the cache files. Do not ever delete your SDcard with the backups on it.
THIS IS THE VERY LAST UPDATE FOR ROOTING THE X Performance. IT IS NOUGAT 7.1.1
FORGET ABOUT ROOTING OREO>> ITS NOT GOING TO HAPPEN. PLUS IT IS NOT A DECENT UPDATE TO BE HONEST> IT JUST CHANGES A BUNCH OF MENUS AROUND AND LOCKS DOWN YOUR PHONE MORE>
Please do not upload my kernel to other hostings!
Official website for my kernel is
https://kernel.andro.plus/tone.html
So, if I was to relock my bootloader after installing TWRP and rooting, what would happen? Would TWRP go away? I'd like to let the phone OTA update to nougat, and you can't do that with an unlocked bootloader....
jakebriggs said:
So, if I was to relock my bootloader after installing TWRP and rooting, what would happen? Would TWRP go away? I'd like to let the phone OTA update to nougat, and you can't do that with an unlocked bootloader....
Click to expand...
Click to collapse
your phone will soft brick..or rather bootloop..if you're still on MM,do a nandroid backup..& here's what you do:
-relock phone using Flashtool.
-repair device using Xperia Companion(it will update automatically to Nougat).
-unlock phone again using Flashtool.
-install AndroPlus Kernel through command prompt(or you can also use Flashtool to do it.however you prefer).
-install TWRP recovery..you're all set!
P.S.
on steps i said(this is optional),you may not turn on your device along the process..that's what i do & i find it easier that way..goodluck!
Arturiuz! said:
your phone will soft brick..or rather bootloop..if you're still on MM,do a nandroid backup..& here's what you do:
-relock phone using Flashtool.
-repair device using Xperia Companion(it will update automatically to Nougat).
-unlock phone again using Flashtool.
-install AndroPlus Kernel through command prompt(or you can also use Flashtool to do it.however you prefer).
-install TWRP recovery..you're all set!
P.S.
on steps i said(this is optional),you may not turn on your device along the process..that's what i do & i find it easier that way..goodluck!
Click to expand...
Click to collapse
Thanks heaps! Now, to find a couple hours spare
Arturiuz! said:
your phone will soft brick..or rather bootloop..if you're still on MM,do a nandroid backup..& here's what you do:
-relock phone using Flashtool.
-repair device using Xperia Companion(it will update automatically to Nougat).
-unlock phone again using Flashtool.
-install AndroPlus Kernel through command prompt(or you can also use Flashtool to do it.however you prefer).
-install TWRP recovery..you're all set!
P.S.
on steps i said(this is optional),you may not turn on your device along the process..that's what i do & i find it easier that way..goodluck!
Click to expand...
Click to collapse
Following this left me with a phone that boots to a screen "To start Android, enter your password". I don't have a password to enter :/
jakebriggs said:
Following this left me with a phone that boots to a screen "To start Android, enter your password". I don't have a password to enter :/
Click to expand...
Click to collapse
that occured to me too!my apologies but i forgot mention about that..but you could try again that after you fixed/updated your phone using Xperia Companion to turn your phone first & set up everything.then unlock using Flashtool.install kernel & recovery.. :good:
Arturiuz! said:
that occured to me too!my apologies but i forgot mention about that..but you could try again that after you fixed/updated your phone using Xperia Companion to turn your phone first & set up everything.then unlock using Flashtool.install kernel & recovery.. :good:
Click to expand...
Click to collapse
I did try that - although, I set it up with a pin rather than a password. It didn't accept my pin when asking for the password.
Now I have a phone with a locked bootloader, running nougat, and I set it up with a password. I wonder if that password you use on the lock screen is the same password that Android is asking for when I unlock my bootloader?
I also could not seem to get the phone to boot into recovery after rebooting when I got the password screen. So weird....
jakebriggs said:
I did try that - although, I set it up with a pin rather than a password. It didn't accept my pin when asking for the password.
Now I have a phone with a locked bootloader, running nougat, and I set it up with a password. I wonder if that password you use on the lock screen is the same password that Android is asking for when I unlock my bootloader?
I also could not seem to get the phone to boot into recovery after rebooting when I got the password screen. So weird....
Click to expand...
Click to collapse
you can't use recovery or root your phone when bootloader is locked..could you try now unlock your phone using Flashtool?then install kernel & recovery?mind that data will be wiped..
Arturiuz! said:
you can't use recovery or root your phone when bootloader is locked..could you try now unlock your phone using Flashtool?then install kernel & recovery?mind that data will be wiped..
Click to expand...
Click to collapse
So if unlocking the boot loader wipes data, how can android ask for my password when I reboot? I am a little mystified at how this is supposed to work Rooting Marshmellow was easier than Nougat....
jakebriggs said:
So if unlocking the boot loader wipes data, how can android ask for my password when I reboot? I am a little mystified at how this is supposed to work Rooting Marshmellow was easier than Nougat....
Click to expand...
Click to collapse
true!MM was easier but Nougat is a bit complicated..however,you could still make changes on Nougat when phone is rooted.anyway,try again from the very beginning then this time after fixing phone using Xperia Companion,do the steps i mentioned..i myself couldn't figure out how it's asking for any password at first.AndroPlus also mentioned it before but didn't explain further.but it's alright coz i got it working now.
Arturiuz! said:
true!MM was easier but Nougat is a bit complicated..however,you could still make changes on Nougat when phone is rooted.anyway,try again from the very beginning then this time after fixing phone using Xperia Companion,do the steps i mentioned..i myself couldn't figure out how it's asking for any password at first.AndroPlus also mentioned it before but didn't explain further.but it's alright coz i got it working now.
Click to expand...
Click to collapse
I think my issue with the unknowable password after unlocking the bootloader on Nougat could have been fixed by wiping data+dalvik cache. I was having issues with the camera under nougat so I flagged trying to get it going and flashed MarshMellow. Once that was done, I got the bloody password prompt again, so I wiped data + cache and it booted correctly.
Anyway, gonna ignore Nougat until fastboot supports nougat
Issues with passwords kept / unknown and blocked are due to the fact the security portion is stored
next to the data partition area, in what we call the footer, and that area was wrong for you.
By wiping data completely (most reliably, a factory reset which will format the data partition),
the footer is also erased instead of simply deleting the files like a Wipe would do.
lost system?
I got as far as getting boot.img and twrp.img in my phone, and then appeared to lose my system since it stuck on the Sony logo and wouldn't boot into the system despite several tries. Idiot that I am, I panicked and come onto the forum to post a plead for help. I've managed to get my system back on now and feel very foolish, so just editing the post to remove the request for help. Thank you so much for the guide, very greatly appreciated! Looking forward to upgrading to Nougat.
Will this guide work with Nougat? I have a F8132 with 39.2.A.0.327
mongastein said:
I got as far as getting boot.img and twrp.img in my phone, and then appeared to lose my system since it stuck on the Sony logo and wouldn't boot into the system despite several tries. Idiot that I am, I panicked and come onto the forum to post a plead for help. I've managed to get my system back on now and feel very foolish, so just editing the post to remove the request for help. Thank you so much for the guide, very greatly appreciated! Looking forward to upgrading to Nougat.
Click to expand...
Click to collapse
Don't feel like a fool. I'm panicing right now.
Can flash boot.img and twrp.img and even enter twrp to flash su and kernel. But thats it. When done i reboot and i can pass SONY logo and enter bootanimation but it stucks here forever. Been trying with everything exept flashing official MM.
You did get the system back. So I'm the fool
---------- Post added at 07:45 AM ---------- Previous post was at 07:40 AM ----------
chiobesek said:
Will this guide work with Nougat? I have a F8132 with 39.2.A.0.327
Click to expand...
Click to collapse
Didn't for me. Have a softbricked phone in front of me since yesterday. Going to try to flash MM soon but my internet is terrible slow. Won't give up.
chiobesek said:
Will this guide work with Nougat? I have a F8132 with 39.2.A.0.327
Click to expand...
Click to collapse
It works if you get updated files. I struggled a bit before I finally extracted the boot.img from the AndroPlusKernel for my version which I flashed in fastboot and flashed the kernel and supersu in twrp. I think that's what did it. I was so eager to root that I missed that I was using MM-files at first. :silly:
Edit: oh I answered a pretty old post. Anyway, this is another way https://forum.xda-developers.com/xp...ment/mod-sony-stock-patcher-xperia-x-t3528148
Wimz3n said:
Don't feel like a fool. I'm panicing right now.
Can flash boot.img and twrp.img and even enter twrp to flash su and kernel. But thats it. When done i reboot and i can pass SONY logo and enter bootanimation but it stucks here forever. Been trying with everything exept flashing official MM.
You did get the system back. So I'm the fool
---------- Post added at 07:45 AM ---------- Previous post was at 07:40 AM ----------
Didn't for me. Have a softbricked phone in front of me since yesterday. Going to try to flash MM soon but my internet is terrible slow. Won't give up.
Click to expand...
Click to collapse
I ended up finding a way to downgrade to marshmallow following some instructions from from @sdugoten
The instructions are updated.. With proper files for the latest and greatest kernel and SuperSU and TWRP. NOUGAT Only .. Will not work for any other OS versions
AS flashtool does not work for 7.1.1 how to proceed to install nougat 7.1.1 and enable root and install twrp?

Bootloader unlock and custom recovery

Hello guys. Before you proceed, I'll let you know that I don't own this device. Theoretically these steps should work.
1. Unlock bootloader
Go to settings>about, tap build number 7 times. This enables developer options. Here, select allow OEM unlock and USB debugging. Reboot in fastboot mode (power+vol down). Then go to this site
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
And follow the instructions. They are pretty straightforward.
2. Install TWRP
Go to
http://lenovo-forums.ru/topic/22535-moto-m-kastomnoe-rekaveri-twrp-otklyuchenie-shifrovaniya/
And download TWRP_Moto_M.img and boot_M_S124.img
In fastboot mode type fastboot flash boot <the name of the latter file image, just drag it into the CMD window from adb and fastboot folder> then type fastboot flash recovery <TWRP file>
Then type fastboot boot <TWRP file> and voila, you are booted in custom recovery.
IMPORTANT: FOR ALL THAT IS GOOD AND FAIR, MAKE A BACKUP OF EVERY FOLDER. IF YOU MESS UP SOMEWHERE, I WON'T BE ABLE TO HELP YOU!!
Now you may proceed to rooting procedures.
Tell me if this works. And before asking any questions in this thread, use the DAMN INTERNET; Google or Bing or Yahoo, whatever floats your boat
Reserved
If you are unsure of any step, and Google does not help, ask it in this thread and wait for my reply
Hi can u pls tell how to do this in XT 1663... Tried to enter bootloader mode but no luck
nanchilanto said:
Hi can u pls tell how to do this in XT 1663... Tried to enter bootloader mode but no luck
Click to expand...
Click to collapse
Search in google `lenovo forum 772 moto m`
jcanilkumarjc said:
Search in google `lenovo forum 772 moto m`
Click to expand...
Click to collapse
I tried tat but it boots normally only , OEM unlocking is switched on too , USB debugging is also turned on. Will give a shot connecting thrh PC . Anyways tnx for the response
Can we enable Mediatek Clear Motion feature in Moto M XT1663 ? Please kindly help me
Thanks!
If someone has been able to root the device successfully, do share with me the system and boot backup made in twrp. I will try bringing up a ROM.
For unlocking just enable it in developers and then
fastboot oem unlock
Guys, I'm I did a ****ty thing and my M got locked up. I did 'fastboot oem lock'. It said press volume up to lock/ volume down to cancel, pressed volume up. It said lock success. I can't even open recovery mode/ fastboot mode to flash something. Please help!
It keeps on rebooting after the 'Lenovo' logo.
sreenivas134 said:
Guys, I did a ****ty thing and my M got locked up. I did 'fastboot oem lock'. It said press volume up to lock/ volume down to cancel, pressed volume up. It said lock success. I can't even open recovery mode/ fastboot mode to flash something. Please help!
It keeps on rebooting after the 'Lenovo' logo.
Click to expand...
Click to collapse
I've flashed the stock ROM using sp flash tool. It has resolved the issue. Thanks...
---------- Post added at 11:04 AM ---------- Previous post was at 11:03 AM ----------
sreenivas134 said:
Guys, I did a ****ty thing and my M got locked up. I did 'fastboot oem lock'. It said press volume up to lock/ volume down to cancel, pressed volume up. It said lock success. I can't even open recovery mode/ fastboot mode to flash something. Please help!
It keeps on rebooting after the 'Lenovo' logo.
Click to expand...
Click to collapse
I've flashed stock ROM using sp flash tool. It has resolved the issue. Thanks...
sreenivas134 said:
I've flashed the stock ROM using sp flash tool. It has resolved the issue. Thanks...
---------- Post added at 11:04 AM ---------- Previous post was at 11:03 AM ----------
I've flashed stock ROM using sp flash tool. It has resolved the issue. Thanks...
Click to expand...
Click to collapse
Can you pls gimme the download link and the steps to flash the stock firmware ? I updated to nougat and flashed the wrong version of boot.IMG and the phone stays at your phone will reboot in 5 seconds
nanchilanto said:
Can you pls gimme the download link and the steps to flash the stock firmware ? I updated to nougat and flashed the wrong version of boot.IMG and the phone stays at your phone will reboot in 5 seconds
Click to expand...
Click to collapse
You can find the stock firmware here!
https://mega.nz/#!fcoS2SII!ipO0YBudxaTnF7XVdqjEMwByJmn95p-K4A2mHrY-DvE
sreenivas134 said:
You can find the stock firmware here!
https://mega.nz/#!fcoS2SII!ipO0YBudxaTnF7XVdqjEMwByJmn95p-K4A2mHrY-DvE
Click to expand...
Click to collapse
Password ?????????????????????
Moto M - Unlock bootloader
mrinmaydhar said:
Hello guys. Before you proceed, I'll let you know that I don't own this device. Theoretically these steps should work.
1. Unlock bootloader
Go to settings>about, tap build number 7 times. This enables developer options. Here, select allow OEM unlock and USB debugging. Reboot in fastboot mode (power+vol down). Then go to this site
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
And follow the instructions. They are pretty straightforward
Click to expand...
Click to collapse
The wrong way to go.
Follow these steps:
In Windows command prompt write adb reboot bootloader. The device will reboot into fastboot.
The following command - fastboot oem unlock. You will be prompted on the phone screen, volume up to confirm, down to refuse. Who decided to change his mind
I waited a few seconds and at the command prompt, I got the answer - OK.
Disconnect the cable from the phone and hold the power button reboot the phone and put aside. He will restart another 2 times, will go to the drain recovery and erase all data from your phone. Therefore, I recommend to make a backup.
You just have to wait to boot the phone. approximately 5-7 minutes.
The bootloader is unlocked.
BOPOH'Ok said:
The wrong way to go.
Click to expand...
Click to collapse
So what's wrong with what I posted? Just wanted to know, so that I can update the OP.
mrinmaydhar said:
So what's wrong with what I posted? Just wanted to know, so that I can update the OP.
Click to expand...
Click to collapse
That's just the point, that you give the wrong information.
You give a link to the unlocking of MOTO devices on the Qualcomm processor, and that method is not suitable for MTK.
I also laid out 100% working instructions.
problem
bro i am unlocking the bootloader it boots to bootloader then it asks for yes to unlocking the bootloader in phone it says volume up to yes or volume down to NO i press volume but it automatically cancelled what to do man

----- Root Moto M S356 Android 7 -------

Hi guys,
I have started this thread so that you guys can root your moto M XT_1663_S356 andriod (7.0)
First of all i'm not responsible if your phone bricks burns or dies.
A big thanks to VVizard from lenovo RU forum with out him, it was not possible.
Thanks to Chainfire for the SuperSu.zip
To check Build number go to Settings -> About Phone-> Build number
Note -
1 - This only works for Moto M which is having build number XT1663_S356_170621_ROW. If you are on any other build number then please don't proceed.
2 - All the files are attached
3 - Install all the Motoral drivers and Minimal and adb folder.
4 - Following link contains all files needed to root the phone.
https://drive.google.com/file/d/0B3eDb0dWRU-uUjk4ZS1tdFpRR1U/view?usp=sharing
Rooting Moto M phone is divided into 3 Parts
1) Unlocking BootLoader
2) Flashing TWRP
3) Flashing SuperSu.zip
unlocking the bootloader
Note - This will wipe out all the data hence take a backup before unlocking boot loader
1 - First of all enable the Developer Option, To Enable the Developer Option, Go to your Settings -> About Phone-> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"
2 - Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging
3 - Download and Extract the Downloaded ADB fastboot Zip file on your PC
4 - Now connect your phone to Computer using USB Cable.
5 - When you connect your Phone to Computer, please wait until all the drivers get installed.
6 - In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click
7 - Now type the command in your command window
adb devices
If you see a pop up to allow USB Debugging on your phone, Click OK
8 - Now type the command below to reboot your phone to bootloader
adb reboot bootloader
9 - Once your phone reboot into bootloader, then type the command below to make sure fastboot drivers are installed properly.
fastboot devices
10 - This command will list the connected devices. If your phone’s serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly.
11 - If your phone is listed then type in the following command in CMD.
fastboot oem unlock
12 - Check your phone you would have written"do you really want to unloock bootloader ? "(something like this). Just select yes using volume up and down button and press power button to confirm it .
13 - Congrats your bootloader is unlocked
Install TWRP
Note - You should have your bootloader unlocked before proceeding.
Copy the boot_XT1663_356.img and TWRP_Moto_M.img to Minimal adb folder
1 - First of all enable the Developer Option, To Enable the Developer Option, Go to your Settings -> About Phone-> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"
2 - Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging
3 - Download and Extract the Downloaded ADB fastboot Zip file on your PC
4 - Now connect your phone to Computer using USB Cable.
5 - When you connect your Phone to Computer, please wait until all the drivers get installed.
6 - In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click
7 - Now type the command in your command window
adb devices
If you see a pop up to allow USB Debugging on your phone, Click OK
8 - Now type the command below to reboot your phone to bootloader
adb reboot bootloader
9 - Once your phone reboot into bootloader, then type the command below to make sure fastboot drivers are installed properly.
fastboot devices
10 - This command will list the connected devices. If your phone’s serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly.
11 - If your phone is listed then type in the following command in CMD.
fastboot flash boot boot_XT1663_356.img
12 - To flash the recovery, Type the command
fastboot flash recovery TWRP_Moto_M.img
13 - Congrats! you have successfully installed TWRP.
Rooting Phone.
Note -
You should have your bootloader unlocked.
You should have TWRP installed.
You should have supersu.zip copied in your phone.
1 - Switch off your phone. Now press volume down + power button till phone vibrates. Once it vibrates release the power button you should see android logo.
2 - Now with the help of volume up and down button select 'Recovery mode' and press power button.
3 - TWRP should start up.
4 - Select 'Allow Modification' and proceed.
5 - Select 'Install' and then select the 'SuperSu.zip' file and flash it.
6 -Restart the Phone.
7 - Congrats! your phone is rooted.
Note -
I have tried all this steps and have successfully rooted my phone i'm not responsible for any damage.
I have not build the boot_M_S365/ img file this is done by VVizard and really very thank full to him.
I am making a video on this!
Method Issues
Bro, I have faced a few problems since I have started
i) When I type in adb devices it shows my phone but unauthorized
so I have to allow it as you said but only after a reboot and doing the process again will it show authorized
ii) after entering adb reboot bootloader it doesnt show bootloader locked but straight up fastboot mode
iii) then when i enter fastboot oem unlock it shows asks me if I want to unlock, I press on volume up. Then it again asks me some other thing and I hold the volume up down and power together. Next I reboot into my phone. All data erased. I setup it again.
Now, does this mean my bootloader is unlocked? When I reboot it shows something on the middle right- unlocked..
So does this mean I continue and install twrp now? or what?
manandua01 said:
Thanks bro, I will give you credits ^_^
Click to expand...
Click to collapse
Cool!
manandua01 said:
Bro, I have faced a few problems since I have started
i) When I type in adb devices it shows my phone but unauthorized
so I have to allow it as you said but only after a reboot and doing the process again will it show authorized
ii) after entering adb reboot bootloader it doesnt show bootloader locked but straight up fastboot mode
iii) then when i enter fastboot oem unlock it shows asks me if I want to unlock, I press on volume up. Then it again asks me some other thing and I hold the volume up down and power together. Next I reboot into my phone. All data erased. I setup it again.
Now, does this mean my bootloader is unlocked? When I reboot it shows something on the middle right- unlocked..
So does this mean I continue and install twrp now? or what?
Click to expand...
Click to collapse
1 - It doen't matter if its authorized or not..
2 - yes! thats correct it directly takes you to fastboot mode it use to show bootloader locked for old Moto phones).I 'll make changes in the thread.
Yes! your bootloader is unlocked successfully..
if you see something like 'Your devices is unlocked and cant be trusted' on the left hand side during the moto logo.
TWRP Recovery
akash.mahadeshwar said:
1 - It doen't matter if its authorized or not..
2 - yes! thats correct it directly takes you to fastboot mode it use to show bootloader locked for old Moto phones).I 'll make changes in the thread.
Yes! your bootloader is unlocked successfully..
if you see something like 'Your devices is unlocked and cant be trusted' on the left hand side during the moto logo.
Click to expand...
Click to collapse
Thanks for your help Y_Y
Hey bro, I am not about to install the recovery.
Before this may I ask why we need to flash boot_XT1663_356.img ?
Also, isn't this command wrong? fastboot flash boot boot_XT1663_356.img
It should be fastboot flash boot boot_XT1663_356.img
Without the boot twice ryt?
Also, will the data be erased after installing TWRP recovery or not? If not, will it be erased after installing the SuperSU?
manandua01 said:
Thanks for your help Y_Y
Hey bro, I am not about to install the recovery.
Before this may I ask why we need to flash boot_XT1663_356.img ?
Also, isn't this command wrong? fastboot flash boot boot_XT1663_356.img
It should be fastboot flash boot boot_XT1663_356.img
Without the boot twice ryt?
Also, will the data be erased after installing TWRP recovery or not? If not, will it be erased after installing the SuperSU?
Click to expand...
Click to collapse
1 - It is the Image file which is specifically build for S356 (build number) hence it is necessary to flash it before flashing TWRP. If you don't flash boot image then you might face boot loop issues and hard brick your phone.
2 - The correct command is 'fastboot flash boot boot_XT1663_356.img' . the first boot is to recognize cmd that we are flashing a boot image and the second boot is the name of image file.
3 - Flashing TWRP and Super SU won't erase your data.
akash.mahadeshwar said:
1 - It is the Image file which is specifically build for S356 (build number) hence it is necessary to flash it before flashing TWRP. If you don't flash boot image then you might face boot loop issues and hard brick your phone.
2 - The correct command is 'fastboot flash boot boot_XT1663_356.img' . the first boot is to recognize cmd that we are flashing a boot image and the second boot is the name of image file.
3 - Flashing TWRP and Super SU won't erase your data.
Click to expand...
Click to collapse
I installed TWRP unlocked bootloader copied SuperSU- and was abt to root. With volume up and down I came to Factory Mode
It said Factory Mode
I pressed on power button- now it shows something in Japenese or Chinese what should I DO? I am scared as hell bro
ITS DOING SOME WEIRD STUFF NOW- GPS, SIM etc I have no clue .-.
UPDATE: Rebooting phone- Back to my home screen now. Heres what happened
(uploading video will post link here soon)
manandua01 said:
I installed TWRP unlocked bootloader copied SuperSU- and was abt to root. With volume up and down I came to Factory Mode
It said Factory Mode
I pressed on power button- now it shows something in Japenese or Chinese what should I DO? I am scared as hell bro
ITS DOING SOME WEIRD STUFF NOW- GPS, SIM etc I have no clue .-.
UPDATE: Rebooting phone- Back to my home screen now. Heres what happened
(uploading video will post link here soon)
Click to expand...
Click to collapse
As i have mentioned in my thread that you need to select recovery mode and not factory mode
Please select recovery mode and you should b able to see twrp
Note - to select recovery mode press volum up n down button till it shows 'recovery mode ' in the andrioid logo screen
akash.mahadeshwar said:
1 - It is the Image file which is specifically build for S356 (build number) hence it is necessary to flash it before flashing TWRP. If you don't flash boot image then you might face boot loop issues and hard brick your phone.
2 - The correct command is 'fastboot flash boot boot_XT1663_356.img' . the first boot is to recognize cmd that we are flashing a boot image and the second boot is the name of image file.
3 - Flashing TWRP and Super SU won't erase your data.
Click to expand...
Click to collapse
akash.mahadeshwar said:
As i have mentioned in my thread that you need to select recovery mode and not factory mode
Please select recovery mode and you should b able to see twrp
Note - to select recovery mode press volum up n down button till it shows 'recovery mode ' in the andrioid logo screen
Click to expand...
Click to collapse
Bro, I opened Recovery Mode, but now its asking for a password. It shows temp on the top. You from India, ryt? Could you give me your number? or maybe a skype id?
EDIT: Here's what was on my cmd after flashing the recovery http://prntscr.com/ft3t1l
manandua01 said:
Bro, I opened Recovery Mode, but now its asking for a password. It shows temp on the top. You from India, ryt? Could you give me your number? or maybe a skype id?
Click to expand...
Click to collapse
Go ahead ignore the password part.. it will only appear first time.. you should have a option to go ahead..
akash.mahadeshwar said:
As i have mentioned in my thread that you need to select recovery mode and not factory mode
Please select recovery mode and you should b able to see twrp
Note - to select recovery mode press volum up n down button till it shows 'recovery mode ' in the andrioid logo screen
Click to expand...
Click to collapse
Please reply asap
---------- Post added at 08:57 AM ---------- Previous post was at 08:56 AM ----------
akash.mahadeshwar said:
Go ahead ignore the password part.. it will only appear first time.. you should have a option to go ahead..
Click to expand...
Click to collapse
Ok trying now
---------- Post added at 09:21 AM ---------- Previous post was at 08:57 AM ----------
akash.mahadeshwar said:
Go ahead ignore the password part.. it will only appear first time.. you should have a option to go ahead..
Click to expand...
Click to collapse
Yo bro, I can only view External (sd card) storage. Not internal storage! What to do now? As I have SuperSU in Internal Storage
---------- Post added at 09:29 AM ---------- Previous post was at 09:21 AM ----------
Ok, I have rooted the phone successfully. Had to copy the SuperSU file to SD Card though 6-6
manandua01 said:
Please reply asap
---------- Post added at 08:57 AM ---------- Previous post was at 08:56 AM ----------
Ok trying now
---------- Post added at 09:21 AM ---------- Previous post was at 08:57 AM ----------
Yo bro, I can only view External (sd card) storage. Not internal storage! What to do now? As I have SuperSU in Internal Storage
---------- Post added at 09:29 AM ---------- Previous post was at 09:21 AM ----------
Ok, I have rooted the phone successfully. Had to copy the SuperSU file to SD Card though 6-6
Click to expand...
Click to collapse
Ext_sdcard folder is ur memory card folder and sdcard folder is the internal memory folder in twrp
BAM!
---------- Post added at 01:14 PM ---------- Previous post was at 01:12 PM ----------
I really thank you for this great effort
all things went good but I had a problem that I didn't find the SuperSU-v2.82-201705271822.zip although I am sure that I put it in the internal memory
please help
Hi there,
After I unlocked the bootloader, pushed the twrp recovery successfully, got stuck in the recovery mod each time I reboot the phone so can't boot the stock rom. Done wipe factory reset and format data and still nothing changed. Any ideas?
Thanks in advance OP
Edit: Just solved issue by flashing stock firmware
pdf5 said:
Hi there,
After I unlocked the bootloader, pushed the twrp recovery successfully, got stuck in the recovery mod each time I reboot the phone so can't boot the stock rom. Done wipe factory reset and format data and still nothing changed. Any ideas?
Thanks in advance OP
Edit: Just solved issue by flashing stock firmware
Click to expand...
Click to collapse
May I have the firmware file, just in case? Is it ok if firmware country code doesn't match? Do you get imei?
any idea? when image for new build will be released?
rajesh280392 said:
any idea? when image for new build will be released?
Click to expand...
Click to collapse
Well, yes ... The new boot.img for removing encryption. Especially for post-OTA updating to XT1663_S364_170803_ROW.
boot_XT1663_364.img
Does anyone know how to keep your Moto M rooted even after updating to the new security update of 7.0? Do we just flash the new .img file or what? Kinda newb here

Help to fix bootloop please

Hey guys I need your help. My Xiaomi A1 got bootloop after I update OTA to Android 8.1.
I cannot unlockbootloader cause I did not turn on usb debugging before. I tried every ways but failed. Please help me
lightningjet said:
Hey guys I need your help. My Xiaomi A1 got bootloop after I update OTA to Android 8.1.
I cannot unlockbootloader cause I did not turn on usb debugging before. I tried every ways but failed. Please help me
Click to expand...
Click to collapse
This is where a/b partition does his magic.
If your update failed then phone will boot on the previous partition to make the update again
I think you can still change slot partition on fastboot with the right driver's installed and right command
Dead-neM said:
This is where a/b partition does his magic.
If your update failed then phone will boot on the previous partition to make the update again
I think you can still change slot partition on fastboot with the right driver's installed and right command
Click to expand...
Click to collapse
here is a guide if u dont know how to change partition:
download fastboot from here: https://forum.xda-developers.com/showthread.php?t=2317790
if u already have fastboot it might not work because its not the latest version but it is the latest version from this link
reboot to bootloader by holding power + volume down button while ur phone is shut down (to shut it down just hold power button)
open the cmd-here.exe file from the zip and type: fastboot devices, if it shows u a string then ur good, if no strings u need to download ur phone's driver and if more than one then unplug ur second phone from ur pc
then type: fastboot --set-active=b if that didnt fix it try --set-active=a and if that didnt fix it then u cant fix ur bootloop using partitions
Dead-neM said:
This is where a/b partition does his magic.
If your update failed then phone will boot on the previous partition to make the update again
I think you can still change slot partition on fastboot with the right driver's installed and right command
Click to expand...
Click to collapse
Thank you, sir. But could you show me how to do that please. Sorry I’m newbie for that.
YayJohn said:
here is a guide if u dont know how to change partition:
download fastboot from here: https://forum.xda-developers.com/showthread.php?t=2317790
if u already have fastboot it might not work because its not the latest version but it is the latest version from this link
reboot to bootloader by holding power + volume down button while ur phone is shut down (to shut it down just hold power button)
open the cmd-here.exe file from the zip and type: fastboot devices, if it shows u a string then ur good, if no strings u need to download ur phone's driver and if more than one then unplug ur second phone from ur pc
then type: fastboot --set-active=b if that didnt fix it try --set-active=a and if that didnt fix it then u cant fix ur bootloop using partitions
Click to expand...
Click to collapse
Thanks alot, I’ll try.
Sent from my iPhone using Tapatalk
YayJohn said:
here is a guide if u dont know how to change partition:
download fastboot from here: https://forum.xda-developers.com/showthread.php?t=2317790
if u already have fastboot it might not work because its not the latest version but it is the latest version from this link
reboot to bootloader by holding power + volume down button while ur phone is shut down (to shut it down just hold power button)
open the cmd-here.exe file from the zip and type: fastboot devices, if it shows u a string then ur good, if no strings u need to download ur phone's driver and if more than one then unplug ur second phone from ur pc
then type: fastboot --set-active=b if that didnt fix it try --set-active=a and if that didnt fix it then u cant fix ur bootloop using partitions
Click to expand...
Click to collapse
I did it. Thank you a thousand times you are my sunshine <3
lightningjet said:
I did it. Thank you a thousand times you are my sunshine <3
Click to expand...
Click to collapse
np press on thanks if it helped u
YayJohn said:
np press on thanks if it helped u
Click to expand...
Click to collapse
Yes sir. I got new problem. I cannot pass google account verified. My Granny he doesn’t remember his email and password. I need to do Bypass through abd but it requires USB debugging on.
Really sad that he didn’t turn on USB debugging before. Could you guys show me how to turn it on without go to Settings?
Sent from my iPhone using Tapatalk
just reflash stock rom via miflash and sign in with another account, or you can change password for the current account if there's any backup email/phone number provided
pooniaprashant said:
just reflash stock rom via miflash and sign in with another account, or you can change password for the current account if there's any backup email/phone number provided
Click to expand...
Click to collapse
Thank sir
Sent from my iPhone using Tapatalk
Mi a1 boot loop 8.0 Oreo to 8.1 OTA UPDATE SOLUTION
Hi friends 8.0 Oreo to OTA 8.1 try to update your phone boot loop I will give the solution ..turning on mobile in fastboot mode ..1) download pie beta fastboot ROM after platform tool download and extract AFTER ROM extract copy ROM files in platform tools after ..2turn to fastboot mode .3)open platform tool copy the ROM files after..4)DOUBELE CLIK..Flash ALL ...after wait 15minutes .black screen automatically open and running some commands don't worry and don't exit black screen still wait your phone reboot wait 15minutes after automatically reboot your phone in 8.0 Oreo ..5)CLIKING FLASH ALL ..AFTER black screen shows fail ..fail ..fail you will do not disconnect your phone wait your phone will be reboot automatically within 15 minutes .6) please note ..AFTER CLIICK FLASH ALL ..YOU WILL WAIT 15.MINUTES BUT COMAND AUTOMATICALLY OPENING ABD SHOWS FAIL don't worry about then .the process compleate take time 15to 20 minutes you will still wait after reboot automatically you will disconnect your mobile and enjoy

Bootloader Unlock Problem

In Depth Test crashes when i tap "start applying"
I am using latest update F.11
Somebody help me please. :crying:
Samanto70 said:
In Depth Test crashes when i tap "start applying"
I am using latest update F.11
Somebody help me please. :crying:
Click to expand...
Click to collapse
Friend no need depth test tool for realme ui
Go system> about phone> tap file build version 7 times
Check developers option have in additional section
Open developers option ( select oem unlocking & usb debugging on )
Now download minimal adb & fastboot files
Open cmd in adb & fastboot files
Put below commands
adb devices ( Phone show pop-up to authorization, Click always and select grant )
adb reboot bootloader ( After type command phone rebooting in bootloader mode )
fastboot flashing unlock ( Now select for bootloader unlocking, Press vol dw and select power key )
Tested by me
Devil440 said:
Friend no need in depth test tool for realme ui
Go system> about phone> tap file build version 7 times
Check developers option have in additional section
Open developers option ( select oem unlocking & usb debugging on )
Now download minimal adb & fastboot files
Open cmd in adb & fastboot files
Put below commands
adb devices ( Phone show pop-up to authorization, Click always and select grant )
adb reboot bootloader ( After type command phone rebooting in bootloader mode )
fastboot flashing unlock ( Now select for bootloader unlocking, Press vol up and select power key )
Tested by me
Click to expand...
Click to collapse
Does this Factory Reset Phone? Do we lose data?
Kr3i0s said:
Does this Factory Reset Phone? Do we lose data?
Click to expand...
Click to collapse
Yes if you unlock bootloader
Your data is erased
So take backup your data after do unlock bootloader
hey
Devil440 said:
Yes if you unlock bootloader
Your data is erased
So take backup your data after do unlock bootloader
Click to expand...
Click to collapse
hey dear..
came to this post while searching for rooting for Realme 2 pro..
well, i hav a query... i need to restore some notes/memos from my phone, the apps i m trying to use for the same requires root access..
but now if i follow your way, it will erase all the data, which lowers the chance of finding & restoring deleted notes & also adds up a new hassle to backup & restore all data in phone ..
can you please suggest me a solution to my issue without erasing data.. ??
awaiting for your response.. thanks in advance..
Devil440 said:
Yes if you unlock bootloader
Your data is erased
So take backup your data after do unlock bootloader
Click to expand...
Click to collapse
sorry for rewriting it...
bro is it work on F.12?
It works on the latest stock ROM
@Devil440 Do you know the proper way to install TWRP after bootloader unlock. Please tell
abhish3k9 said:
@Devil440 Do you know the proper way to install TWRP after bootloader unlock. Please tell
Click to expand...
Click to collapse
Download latest twrp recovery for thats model ( If your model is rmx1801, can download recovery from attachment )
Phone boot into bootloader mode ( Press vol dw + pw )
Open cmd, and type below command
Fastboot flash recovery twrp-3.5.2-20210504-RMX1801.img
After twrp writting, boot in recovery mode and wipe data
Thanks @Devil440. I'm using the Pixel Experience ROM on Android 10.
The only thing remaining now is to install Google Camera for that I need Camera2 API enabled which is possible through Magisk.
Could you tell me how to install Magisk in the ROM?

Categories

Resources