[Utility]Flash CWM or TWRP Recovery-1 Click
This is a discussion on [Utility]Flash CWM or TWRP Recovery-1 Click within the Droid Razr HD Development forums, part of the Droid Razr HD category; ALL credit to tucstwo
Original thread here: [Utility]Flash CWM or TWRP Recovery-1 Click Ver.3 {UPDATED-4/16/13} More Options Manually - Droid Razr HD Development [XT926] - ...
-
[Utility]Flash CWM or TWRP Recovery-1 Click
ALL credit to tucstwo
Original thread here: [Utility]Flash CWM or TWRP Recovery-1 Click Ver.3 {UPDATED-4/16/13} More Options Manually - Droid Razr HD Development [XT926] - DroidRzr.com
We are in new territory here now. The days of bootstrap recoveries are over. It's time now to FINALLY be rid of that silly old Motorola Recovery.
How? I'm going to show you. It's quite easy. All you need to do is download this nifty little tool I (tucstwo) made for you and it's easy as click.
Just make sure you've got your drivers installed, USB debugging is enabled and that you have UNZIPPED this package BEFORE you run it.
1. Have an unlocked bootloader
2. Download Link Below
3. Unzip
4. Plug in Phone
5. Hit "Run"
6. ???
7. Profit
DOWNLOAD
Changelog:
Updated 4/8/13 20:17 EDT: For those who were having trouble or just want to try out the reloaded version. Download Version 2. It should get rid of the install-recovery.sh problem for those having issues with the recovery sticking. Please report errors so I can fix. Thank you
Updated 4/8/13 21:17 EDT: Updated TWRP to 2.5.0.0 for both flash methods
Updated 4/9/13 9:42 EDT: rewrote and consolidated. Thanks to Hashcode for locating a pretty big bug.
Updated 4/16/13 16:56 EDT: added more code to help with recovery's that won't stick through reboot, removed uneeded code for flashing back to stock. Updated tutorial to reflect changes
"Thank you all for your help" - tucstwo
---------------------------------------------------------------------------------------------------------------------
If you do not want to one click this. I will now explain to you how it works and you can try it on your own. I want to help teach you guys how to do this as well as not give you...er bad help.
For the sake of saving time, I will provide you with a copy of ADB (Android Debugging Bridge) so you do not have to go through the time of downloading the entire Android SDK, Download that first here, Place it on your desktop and UNZIP it. However, should you wish to learn how to properly install and set up the Android SDK, please see tucstwo's thread HERE
Also, on the quest to save time. I (tucstwo) have zipped up and will include all 3 recoveries for you. Download here, Unzip those and place all 3 into the ADB folder you just unzipped.
Next, I would like you to press and hold Shift and RIGHT click on the ADB folder. Select from the contextual menu "Open Command window here". This will open a command line for you, already browsed to the folder on your desktop. Now, the easy part.
Ensure you're phone is plugged into your computer, that you have all the necessary drivers installed and that USB debugging mode it ticked in Settings>Developer Options>USB Debugging.
Now we will run some commands and I will tell you what they do. So let's start with killing an previously running ADB deamon that may already be running:
Next, we will connect to your device:
If it hangs at this point, then you are having communication issues with your PC. Check your drivers, your wire, or untick and then retick Usb debugging. If we want to be doubly sure you can run
If you are given what looks like a serial number, then we are indeed connected. If it just says "List of Devices" but no serial number, you are not connected, go back a step.
Now, we need to start communicating with the shell on your phone. And we are going to want to be running as root so we can complete the process. So next we will type
You may be prompted with a Superuser prompt on your phone, Grant it permission. You will now be met with a new prompt something like root@android:/# We will then move on and mount /system, remember, no ADB prefix to these commands:
- mount -o rw,remount -t ext4 /dev/block/system /system
Now, depending on what ROM you are on, some people had trouble with the recovery removing a script that motorola puts in place to over write any custom recoveries you may flash. So we are going to get rid of this file before we move forward.
- rm /system/ect/install-recovery.sh
Also, the "Patch" that is stored on your phone that the aforementioned script would have flashed to erase your custom recovery
- mv /system/recovery/recovery-from-boot.p /system/recovery/recovery-from-boot.bak
Ok, now that that's gone we need to back out of shell and get back to your windows CMD line. (Note, depending on your set up, you may need to run the exit code twice. Once to get out of SU and again to completely exit shell. If you are back to your original C:\user\me\desktop\ADB prompt then there is no need to exit again or you will close you Windows CMD. So:
Ok, We are going to put the recovery of your choosing into a temporary location until we're ready to flash it. Keep in mind, you will need to use the name of the recovery you intend to flash. So if its CWM you're pushing cwmrecovery, if it's Team Win, then it's twrprecovery and if it's stock Motorola then it will be motorecovery. I will use CWM in my example, you just need to change the name so it reflects the recovery you are trying to flash.
- adb push cwmrecovery.img /data/local/tmp/cwmrecovery.img
It will proceed to tell you how long it took. Tip, if it says no such file or command, this means that the recovery of your choosing is not in the ADB folder that we put on your desktop. So now, we will flash it. but first back into shell
Followed with:
- dd if=/data/local/tmp/cwmrecovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
Clean up our mess:
- rm /data/local/tmp/cwmrecovery.img
And back out (2x's only if needed)
Lastly, we reboot into recovery for confirmation
And we kill our ADB daemon:
Finished!
-----------------------------------------------------------------------------------------------------------------------------------
If you're really feeling brazen and are only using a Moto, Nexus, or HTC device. You could use fastboot to achieve the same deal. I find it to be a lot more work. But others for some reason find it to be easier. IDK? Anyway download the same set of recoveries here: Dev-Host - Razr HD Recoveries.zip - The Ultimate Free File Hosting / File Sharing Service, Only this time you will need an additional package that includes not only ADB files but also the Fastboot binary. Downloat that here Dev-Host - - The Ultimate Free File Hosting / File Sharing Service, UNZIP this to your desktop and place the recovery images into this folder!
Next, I would like you to press and hold Shift and RIGHT click on the ADB-Fastboot folder. Select from the contextual menu "Open Command window here". This will open a command line for you, already browsed to the folder on your desktop. Now, the easy part.
Ensure you're phone is plugged into your computer, that you have all the necessary drivers installed and that USB debugging mode it ticked in Settings>Developer Options>USB Debugging.
Next, we will connect to your device:
If it hangs at this point, then you are having communication issues with your PC. Check your drivers, your wire, or untick and then retick Usb debugging. If we want to be doubly sure you can run
If you are given what looks like a serial number, then we are indeed connected. If it just says "List of Devices" but no serial number, you are not connected, go back a step.
Now, we need to start communicating with the shell on your phone. And we are going to want to be running as root so we can complete the process. So next we will type
You may be prompted with a Superuser prompt on your phone, Grant it permission. You will now be met with a new prompt something like root@android:/# We will then move on and mount /system, remember, no ADB prefix to these commands:
- mount -o rw,remount -t ext4 /dev/block/system /system
Now, depending on what ROM you are on, some people had trouble with the recovery removing a script that motorola puts in place to over write any custom recoveries you may flash. So we are going to get rid of this file before we move forward.
- rm /system/ect/install-recovery.sh
Also, the "Patch" that is stored on your phone that the aforementioned script would have flashed to erase your custom recovery
- mv /system/recovery/recovery-from-boot.p /system/recovery/recovery-from-boot.bak
Ok, now that that's gone we need to back out of shell and get back to your windows CMD line. (Note, depending on your set up, you may need to run the exit code twice. Once to get out of SU and again to completely exit shell. If you are back to your original C:\user\me\desktop\ADB prompt then there is no need to exit again or you will close you Windows CMD. So:
From this point on, we need to be sure that the recovery of our choice is in our " C:\Users\me\desktop\ADB-Fastboot\ " folder. It's now time to reboot into our bootloader.
We will now issue 2 commands, one after the other to flash the new recovery. Again, I will use Clockworkmod as my example, but you will need to replace the commands with the recovery of your choosing.
- fastboot erase recovery
- fastboot flash recovery cwmrecovery.img
Next we will reboot our bootloader
- fastboot reboot-bootloader
When this is finished, power down your device.
Next press and hold, Power & VOL- to boot ur phone up to the bootloader selection menu. From here, use Vol - to highlight "Recovery" and Vol + to select it. It is vital that you go into your new recovery BEFORE you boot up your device fully again.
Once you get booted up to your recovery of choice, you may now boot back into Android. You're done!
Again ALL credit to tucstwo, He, RAZRForums nor I, are responsible for what you do with your device. If you are not comfortable doing it manually, simple use the download at the top of this thread and run the auto installer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By GoCliffGo05 in forum Droid Razr HD Development
Replies: 28
Last Post: 04-24-2013, 02:48 PM
-
By GoCliffGo05 in forum Droid Razr HD Development
Replies: 3
Last Post: 04-10-2013, 09:49 PM
-
By netizenmt in forum Droid Razr M Help
Replies: 4
Last Post: 03-23-2013, 07:56 AM
-
By zixu in forum Droid RAZR Development
Replies: 19
Last Post: 02-23-2013, 07:31 AM
-
By Venomhatch in forum Droid RAZR Apps
Replies: 4
Last Post: 11-20-2011, 06:53 AM
Search tags for this page
cwm recovery razr
,
downloading twrp or cwm on razr hd
,
droid razr hd twrp recovery
,
droid razr twrp recovery
,
flash twrp over cwm
,
razr hd flash recovery
,
razr m adb shell twrp
,
twrp mount settings
,
twrp razr hd download
,
twrp recovery for droid razr hd
Click on a term to search for related topics.
All times are GMT -6. The time now is
08:20 AM.
Powered by
vBulletin® Version 4.1.7
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO ©2011, Crawlability, Inc.