Related
I have installed the 5.5.0.4 recovery from Koush via Rom Manager. That recovery is broken and it will not let me flash another recovery. I am asking someone who knows how to push a different custom recovery ( like rogue recovery http://bit.ly/ADptUO ) to the device using ADB, to write a step by step guide with all the commands and necessary files to do so. This will help many people who are stuck in the same situation that I have found myself in. Any help will be appreciated, thank you.
This might get you part of the way there. There might be something in there about flashing a new recovery too.
http://forum.xda-developers.com/showthread.php?t=1530337
gee one said:
This might get you part of the way there. There might be something in there about flashing a new recovery too.
http://forum.xda-developers.com/showthread.php?t=1530337
Click to expand...
Click to collapse
It says to type the command though ADB while in CWR... my device does not show up in ADB while in recovery.
If you have access to the rom, you can copy your new recovery to the internal sdcard. You can also type the command in the rom with adb or terminal, but be careful since anything that you have in the staging partition will flash after you type the commands and then reboot. So, 1) copy rom to the internal sdcard, 2) reboot to recovery, 3) flash new recovery (nothing will happen yet) 4) reboot to the rom) 5) type commands in adb 6) reboot 7) then make a step by step guide for the next person.
sent from my cyanogen(mod) vision
Guys I'm on global Miui 8 Global 6.7.5 beta. I tried to root and install twrp using mi4i rooting toolkit version 4. But it doesn't work. Previously on miui6 and miui7, I can root and install twrp using the mi4i toolkitV4. But now it doesn't work anymore when I upgraded to miui8.
Does anyone knows how to root miui8 global 6.7.5 beta?
Rooting
First you have to enable developer options. Then in developer options under debugging section turn on USB debugging and Fastboot Mode.
Then download TWRP. Rename it to twrp.img for ease.
https://dl.twrp.me/ferrari/twrp-3.0.2-0-ferrari.img.html
Install fastboot and adb drivers.
http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
Download root zip file, and place it on internal storage.
https://download.chainfire.eu/696/supersu/
Open the folder on PC where twrp image is downloaded. Hold shift and right click on the window(not the file or folder). Then select open command window here. CMD will open.
Long press power button and volume down to boot into fastboot mode, connect it by USB.
Type in CMD: fastboot devices
If it shows a device is connected you are good to go! If not verify if the drivers are properly installed.
To just root and preserve Mi Recovery for OTA:
Type in CMD: fastboot boot twrp.img
this will boot into twrp to flash supersu.zip file and reboot.
To flash TWRP permanently:
type: fastboot flash recovery twrp.img
then reboot by long pressing power button then open TWRP by power button + vol up. Then flash supersu.zip
Thanks
Sent from my Mi 4i using XDA-Developers mobile app
Worked?
Did it work?
Sitaa said:
Did it work?
Click to expand...
Click to collapse
Yape!
Thanks for the article - will update and root tonight
The process:
update via OTA (hate this as my 16GB is insufficient - love all things M1 but hate the lack of external SD capability)
Reboots - it enters my old TWRP, and auto install update
Once it installs, and auto powerup, I turn on "fastboot mode" (developer option was already on) - a pain in the a55 due to the security prompt...
Power-off the device. Reboot to fastboot mode as per instruction above
I chose to retain M1 recovery, and so fastboot into TWRP to install SU.
Reboot
Tested with titanium backup - root works!
Thanks!!!
Love the new notification drawer, and memory management...
can i root my mi4i without instal twrp and still habe ota update if my phone rooted ?
thanks
Yes.
The OP posted 2 methods for using twrp near the end of his post.
For v7++, I could always ota despite having twrp onboard, instead of mi recovery. Not sure about this recent v8. Hence I used the first method above, preserving my recovery. Also, from my history of use. I never use twrp or recovery anymore, after rooting. No point having recovery backup as mi issues updates ofyen. I use titanium for backup of third party software only. Even then this is redundant since ota preserves software.
sharan.nyn said:
First you have to enable developer options. Then in developer options under debugging section turn on USB debugging and Fastboot Mode.
Then download TWRP. Rename it to twrp.img for ease.
https://dl.twrp.me/ferrari/twrp-3.0.2-0-ferrari.img.html
Install fastboot and adb drivers.
http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
Download root zip file, and place it on internal storage.
https://download.chainfire.eu/696/supersu/
Open the folder on PC where twrp image is downloaded. Hold shift and right click on the window(not the file or folder). Then select open command window here. CMD will open.
Long press power button and volume down to boot into fastboot mode, connect it by USB.
Type in CMD: fastboot devices
If it shows a device is connected you are good to go! If not verify if the drivers are properly installed.
To just root and preserve Mi Recovery for OTA:
Type in CMD: fastboot boot twrp.img
this will boot into twrp to flash supersu.zip file and reboot.
To flash TWRP permanently:
type: fastboot flash recovery twrp.img
then reboot by long pressing power button then open TWRP by power button + vol up. Then flash supersu.zip
Click to expand...
Click to collapse
i followed the procedure, but it shows fastboot boot twrp.img can not be found
vijayk12 said:
i followed the procedure, but it shows fastboot boot twrp.img can not be found
Click to expand...
Click to collapse
Are you sure you installed ADB Fastboot drivers? and make sure you 'cd' to the directory where twrp.img is located or else it will say the file is not found.
You need to put the both fastboot and image files together in the same directory. Then open a MS prompt in this directory, and type the syntax to flash.
twrp not found??
sharan.nyn said:
Are you sure you installed ADB Fastboot drivers? and make sure you 'cd' to the directory where twrp.img is located or else it will say the file is not found.
Click to expand...
Click to collapse
twrp.img not found. now i have installed the adb drivers and verified as well by the "fastboot devices" command. now when i go to the this "fastboot devices twrp.img" command it says twrp not found. what to do?
Found the solution
monishalria said:
twrp.img not found. now i have installed the adb drivers and verified as well by the "fastboot devices" command. now when i go to the this "fastboot devices twrp.img" command it says twrp not found. what to do?
Click to expand...
Click to collapse
Rename the TWRP downloaded file to 'twrp' not 'twrp.img' as mention. and in command write ' fastboot boot twrp.img' as the downloaded file is already img i did it and worked for me.
Hi,
I manage to flash TWRP (i.e. sending recover =OKAY & writing recovery= OKAY).
Yet I could not manage to reboot by long pressing power button then open TWRP by power button + vol up.
Someone can help me?
Thank you in advance
sharan.nyn said:
First you have to enable developer options. Then in developer options under debugging section turn on USB debugging and Fastboot Mode.
Then download TWRP. Rename it to twrp.img for ease.
https://dl.twrp.me/ferrari/twrp-3.0.2-0-ferrari.img.html
Install fastboot and adb drivers.
http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
Download root zip file, and place it on internal storage.
https://download.chainfire.eu/696/supersu/
Open the folder on PC where twrp image is downloaded. Hold shift and right click on the window(not the file or folder). Then select open command window here. CMD will open.
Long press power button and volume down to boot into fastboot mode, connect it by USB.
Type in CMD: fastboot devices
If it shows a device is connected you are good to go! If not verify if the drivers are properly installed.
To just root and preserve Mi Recovery for OTA:
Type in CMD: fastboot boot twrp.img
this will boot into twrp to flash supersu.zip file and reboot.
To flash TWRP permanently:
type: fastboot flash recovery twrp.img
then reboot by long pressing power button then open TWRP by power button + vol up. Then flash supersu.zip
Click to expand...
Click to collapse
Ia these steps can root my mi4i miui 8.0.1.0 global stable too?
farid0019 said:
Ia these steps can root my mi4i miui 8.0.1.0 global stable too?
Click to expand...
Click to collapse
Yeah of course it will work
same problem twrp.img
sharan.nyn said:
Are you sure you installed ADB Fastboot drivers? and make sure you 'cd' to the directory where twrp.img is located or else it will say the file is not found.
Click to expand...
Click to collapse
hey im facing the same problem that no such file or directory. U said cd to the directory. how do you do it. Please can u be specific. i dont know how to do it
zaid siddique said:
hey im facing the same problem that no such file or directory. U said cd to the directory. how do you do it. Please can u be specific. i dont know how to do it
Click to expand...
Click to collapse
https://www.google.co.in/amp/m.wikihow.com/Change-Directories-in-Command-Prompt?amp=1
Use this guide.
Tks for this great Rooting guid and twrp install on my mi4 \w/
Hi Team,
I was able to unlock the bootloader on motg3 and do a twrp img. However when I ran the command
adb reboot recovery it doesn't boot into the recovery img and it just says no command on the phone screen. Please help.
Thanks,
Arun
'No Command' means you've still got the stock recovery. Flash TWRP again by:
Code:
fastboot flash recovery twrp.img
(Where twrp.img is the filename of the custom recovery).
Do *not* reboot the phone into system, instead scroll down to select 'recovery' and press power button to load TWRP.
TWRP should load now, swipe to confirm modification (important). Now go to reboot>recovery. Allow the phone to reboot back to TWRP. Now you can select reboot>system and TWRP shall stick permanently.
Broadcasted from Zeta Reticuli
Volume buttons aren't working on the mobile. So I tried adb reboot recovery. But still it didn't boot into recovery. Here is what I had tried.
https://pasteboard.co/HhTTVr1n.png
TWRP will be overwritten by stock recovery if the system is booted up before booting TWRP once.
If the volume buttons are broken, then I'd suggest you first copy twrp.img into phone memory, boot the recovery by :
Code:
fastboot boot recovery.img
Allow modifications, then go to Install>Select Image (img), browse twrp.img on phone>select 'recovery' and swipe to flash.
Now reboot>recovery and then reboot>system. Now it should stick.
I'd recommend being extra careful if your volume button, especially volume down button is broken. If you somehow end up with a non-booting phone, you'd have no way (that I know of) to get to the bootloader mode.
Broadcasted from Zeta Reticuli
I tried fastboot boot recovery.img but it says waiting for device and nothing happens.
https://pasteboard.co/HhVmOD9.png
Make sure your phone is in the bootloader mode and is being recognized by the pc. Run:
Code:
fastboot devices
and make sure it returns with 1 entry of the device along with the text 'fastboot'. Then the command should work.
Broadcasted from Zeta Reticuli
arunkumar413 said:
Hi Team,
I was able to unlock the bootloader on motg3 and do a twrp img. However when I ran the command
adb reboot recovery it doesn't boot into the recovery img and it just says no command on the phone screen. Please help.
Thanks,
Arun
Click to expand...
Click to collapse
Make sure you have installed proper Motorola drivers & Fastboot on you're PC / laptop,
You can get those files from this thread https://forum.xda-developers.com/2015-moto-g/general/guide-fastboot-flashing-factory-t3187750
After installing proper drivers goto this thread https://forum.xda-developers.com/2015-moto-g/orig-development/twrp-twrp-moto-g-2015-t3170537 download & flash latest twrp by given instructions by OP..
I just checked the usb drivers page but there aren't any usb drivers for Linux.
https://mobilesupport.lenovo.com/us/en/solution/MS88481
I tried the command sudo fastboot boot recovery.img and it returned there is no such file or directory. Should recovery file be on phone or on the laptop. Also should all these commands be run from a specific folder either on phone or system?
[email protected] ~ $ sudo fastboot boot recovery.img
cannot load 'recovery.img': No such file or directory
[email protected] ~ $
arunkumar413 said:
I just checked the usb drivers page but there aren't any usb drivers for Linux.
https://mobilesupport.lenovo.com/us/en/solution/MS88481
I tried the command sudo fastboot boot recovery.img and it returned there is no such file or directory. Should recovery file be on phone or on the laptop. Also should all these commands be run from a specific folder either on phone or system?
[email protected] ~ $ sudo fastboot boot recovery.img
cannot load 'recovery.img': No such file or directory
[email protected] ~ $
Click to expand...
Click to collapse
Yes, the terminal should be open to the directory containing the recovery.img file. For simplicity, place twrp into your home folder. The default location for most terminals is home, so no worries about directory now.
Just to be sure, type in :
Code:
ls
(LS lowercase)
Your file should be in the list. You are ready to flash now.
Try the fastboot boot command again.
As you're using GNU/Linux (guessed it early from your screenshots), drivers should not be a problem, at least for this device; unless you are running a minimal or highly customised distro like Gentoo or Arch.
Note: And yes, you'll need another copy of TWRP inside phone storage to actually flash into the device, the PC one is just used to boot temporarily into TWRP.
Broadcasted from Zeta Reticuli
To add more clarity. There are two files here:
1) recovery.img
2)twrp.img
I was able to get the twrp.img file but where do I get the recovery.img file?
Hi All,
Thanks for all the help. I'm now able to root into the device.
arunkumar413 said:
To add more clarity. There are two files here:
1) recovery.img
2)twrp.img
I was able to get the twrp.img file but where do I get the recovery.img file?
Click to expand...
Click to collapse
I apologize for confusing you. They are the one and same. Just rename the downloaded TWRP img file to twrp.img and copy it over to both home folder in pc and into phone.
Use fastboot boot command on pc to temporarily boot up twrp in phone, allow modifications by swiping, go to Install>Install Image (img) option on the bottom>select the twrp.img inside the phone and flash it to 'recovery' partition.
Now reboot>recovery. This time the twrp should be permanently flashed and working properly. You are done.
Edit: Didn't see your last post, glad that you worked it out
Broadcasted from Zeta Reticuli
arunkumar413 said:
To add more clarity. There are two files here:
1) recovery.img
2)twrp.img
I was able to get the twrp.img file but where do I get the recovery.img file?
Click to expand...
Click to collapse
There can be only one either recovery.img file or twrp.img.....as you are trying to replace your stock recovery by TWRP... And you need .img file for this.... Just check the name there should be just one if you have TWRP.img then there is no need for recovery.img file
Hi All,
After I was able to flash twrp and root into the phone I switched off the phone and turned on after couple of days. But now the display isn't turning on. However adb is able to detect the device and also I was able to access the file system through usb. Could you please help me troubleshoot the display issue?
arunkumar413 said:
Hi All,
After I was able to flash twrp and root into the phone I switched off the phone and turned on after couple of days. But now the display isn't turning on. However adb is able to detect the device and also I was able to access the file system through usb. Could you please help me troubleshoot the display issue?
Click to expand...
Click to collapse
Try rebooting into the recovery mode by:
Code:
adb reboot recovery
And doing a Cache/ART cleanup.
If the phone boots up (it should vibrate) but the screen doesn't light up (not even a blank dark grey screen), then I'm afraid the display is at fault.
How to root moto g3
I try to root my motor but network has gone
Then how I root
I accidentally formatted all partition and now only have a TWRP. The TWRP only shows the start screen when i go to recovery.
Adb devices show me the device detected. I did a adb push and moved the stock rom 5.1.11 and my twrp recovery to the sdcard using the command adb push. I am struck here because i cannot get to the twrp screen which gives you option to install/wipe etc.
Can somebody please guide me if there is a way to recover or install the .zip files I have copied to sdcard. Thanks in advance
You need to fastboot flash the default stock rom, and then re root/install TWRP etc etc
Thank you for your response. Will that be adb fastboot flash stock.zip ? I am not sure if this would mess it up hence please confirm. Also, will it work if i use the fastboot to install twrp again and then flash the stock rom using its menu.
SachinGopal said:
Thank you for your response. Will that be adb fastboot flash stock.zip ? I am not sure if this would mess it up hence please confirm. Also, will it work if i use the fastboot to install twrp again and then flash the stock rom using its menu.
Click to expand...
Click to collapse
You need to go to this thread... https://forum.xda-developers.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665
Download the version of OOS you want (5.1.11) and unzip the contents in to a folder and run the flash-all.bat file and let it install to all partitions. Just follow this instructions in the thread and you will be fine.
Thank you so much for your response, but when I run this command I am getting " Waiting for device" option. I am only able to boot into twrp. I see the teamwin loading screen and its struck there. I am able to run adb commands and adb device shows the device details. I was also able to push the stock rom.zip through adb push command to /sdcard.
D:\OnePlus6Oxygen_22_OTA_015_all_1808102118_770880-FASTBOOT>flash-all-partitions-fastboot.bat
Do you want to wipe all the data ( Reccomended )[Y/N]?y
< waiting for any device >
Thank you so much it worked when I tried. Grateful . Will donate the Dev for that bat script.
SachinGopal said:
Thank you so much for your response, but when I run this command I am getting " Waiting for device" option. I am only able to boot into twrp. I see the teamwin loading screen and its struck there. I am able to run adb commands and adb device shows the device details. I was also able to push the stock rom.zip through adb push command to /sdcard.
D:\OnePlus6Oxygen_22_OTA_015_all_1808102118_770880-FASTBOOT>flash-all-partitions-fastboot.bat
Do you want to wipe all the data ( Reccomended )[Y/N]?y
< waiting for any device >
Click to expand...
Click to collapse
You need to be in fastboot mode.
Either adb reboot bootloader from inside android or from a powered off phone, hold Volume Up and power on.
was bout to flash pixel experience plus android 12. But i accidentally deleted the internal storage . Now i don't have a OS. I don't have a SD card as well. I tried ADB sideload from TWRP. I still have the TWRP but only TWRP. I installed all the drivers for ADB, Also the qualcomm driver as well. But when i use the adb devices command in cmd without running adb from mobile it shows the device is there but when i start ADB from TWRP it doesn't detect the device in PC> PLEASE HELP
eusz said:
was bout to flash pixel experience plus android 12. But i accidentally deleted the internal storage . Now i don't have a OS. I don't have a SD card as well. I tried ADB sideload from TWRP. I still have the TWRP but only TWRP. I installed all the drivers for ADB, Also the qualcomm driver as well. But when i use the adb devices command in cmd without running adb from mobile it shows the device is there but when i start ADB from TWRP it doesn't detect the device in PC> PLEASE HELP
Click to expand...
Click to collapse
What do you mean with this "without running ADB from mobile"?
ADB must run only in the CMD.
When you do adb devices, device doesn't appear?, try with disabling/enabling MTP.
When the twrp is open and i don't click ADB mode in twrp , it detects the phone . But after i click ADB in the twrp it get's disconnected in the PC and i can't flash the rom.
eusz said:
When the twrp is open and i don't click ADB mode in twrp , it detects the phone . But after i click ADB in the twrp it get's disconnected in the PC and i can't flash the rom.
Click to expand...
Click to collapse
Not sure what you mean with "click" ADB, adb is a command to type through.
Try transferring the file to the internal storage, use, adb push, then flash through TWRP, strange enough so TWRP enables ADB by default, although the ADB sideload can fail.
Try reflashing Newest TWRP , may be a bug or an error, even try to install "Minimal adb and fastboot tool" its more easy to use ...
Enriquecalong said:
Try reflashing Newest TWRP , may be a bug or an error, even try to install "Minimal adb and fastboot tool" its more easy to use ...
Click to expand...
Click to collapse
try ofox recovery, in that recovery always appears ADB SIDELOAD in pc , without error , almost for me...
TWRP RECOVERY(VAYU VERSION)
OFOX RECOVERY (VAYU)
For android 12 roms use ofox... less bugs
If your internal storage doesnt appears only FORMAT DATA and you can copy the rom in your internal storage without using ADB.
SubwayChamp said:
Not sure what you mean with "click" ADB, adb is a command to type through.
Try transferring the file to the internal storage, use, adb push, then flash through TWRP, strange enough so TWRP enables ADB by default, although the ADB sideload can fail.
Click to expand...
Click to collapse
ADB sideload didn't work here.
Enriquecalong said:
try ofox recovery, in that recovery always appears ADB SIDELOAD in pc , without error , almost for me...
TWRP RECOVERY(VAYU VERSION)
OFOX RECOVERY (VAYU)
For android 12 roms use ofox... less bugs
If your internal storage doesnt appears only FORMAT DATA and you can copy the rom in your internal storage without using ADB.
Click to expand...
Click to collapse
This worked thanks man.