As a noob I spent almost a day gathering all the informations needed to root and customize the Motorola Razr i.
Therefore I decided to write this guide.
And don't forget that as always I'm not responsible for any damage you can do to your phone.
Code:
Complete guide to unlock, root, flash Motorola Razr i XT890 (Android 4.1.2 JB).
All credit goes to team batakang.
In order to gain complete access to your Motorola Razr i (MRi) you have to:
1- unlock the bootloader
2- flash ClockWorkMod
3- root the beast
4- flash custom rom or whatever
1- Unlock the bootloader
- this process involves voiding all warranties from Motorola, so be warned!
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
- turn off your phone:
keep pressed the power button and select the appropriate option
- turn on your phone in fastboot mode:
keep pressed power and vol- buttons and as soon as the phone vibrates release the power button but keep pressing the vol- button
- connect the phone to the pc through usb cable
- download the package nedded for your computer OS (they contain all the files needed to unlock and root the phone without all the additional and unuseful stuff)
http://forum.xda-developers.com/showthread.php?t=1928551
- extract the downloaded package and run the appropriate command from command line, as example for windows:
fastboot oem get_unlock_data
- you'll get something like:
(bootloader) 1234567891011121314151617181920
(bootloader) 1234567891011121314151617181920
(bootloader) 1234567891011121314151617181920
(bootloader) 1234567891011121314151617181920
(bootloader) 1234567
- copy only the codes one after the other forming one unique string
12345678910111213141516171819201234567891011121314151617181920123456789101112131415161718192012345678910111213141516171819201234567
- go to the following motorola page to login:
https://accounts.motorola.com/ssoauth/login?locale=us_en&appid=ZI2FIY5LS7R8EE1WJBZ6MUBHXUF517H7&TARGET=https://motorola-global-portal.custhelp.com/cc/cas/sso/redirect/standalone%2Fbootloader%2Funlock-your-device-b
- paste the copied string when requested
- after a few seconds an unlocking code will be sent to your email address
- copy the code and use it in the following command issued from your pc:
fastboot oem unlock WRITEYOURCODEHERE
- good, now your bootloader is unlocked and a new warning screen will appear each time you boot the phone just to remember you how brave you are :)
- reboot your phone
2- Flash ClockWorkMod
- CWM is an alternative recovery program which allows you to flash custom rom and goodies
- before proceeding you must download the following file:
http://batakang.com/ftp/RAZRi/RootUtility/RAZRiRoot2.zip
and copy to the external sdcard of the phone because you'll needed it later
- download CWM touch image recovery on your pc (in the same folder you extracted fastboot to unlock the bootloader):
http://click.xda-developers.com/api/click?format=go&key=f0a7f91912ae2b52e0700f73990eb321&loc=http%3A%2F%2Fforum.xda-developers.com%2Fshowthread.php%3Ft%3D1974097&v=1&libId=19fc86cd-efbf-446e-93f3-df1636f4306d&out=https%3A%2F%2Fdl.dropbox.com%2Fu%2F553461%2Frecovery-razri-tryAtouch.img&ref=http%3A%2F%2Fforum.xda-developers.com%2Fshowthread.php%3Fp%3D37518364&title=CWM%20for%20RAZR%20i%20-%20xda-developers&txt=https%3A%2F%2Fdl.dropbox.com%2Fu%2F553461%2Freco...-tryAtouch.img&jsonp=vglnk_jsonp_13731634047977
- rename the downloaded file as:
recovery.img
- turn off your phone:
keep pressed the power button and select the appropriate option
- turn on your phone in fastboot mode:
keep pressed power and vol- buttons and as soon as the phone vibrates release the power button but keep pressing the vol- button
- connect the phone to the pc through usb cable
- issue the following command from command line:
fastboot flash recovery recovery.img
- it will take only a couple of seconds to flash the image
- now you have installed CWM, but it's not persistent
- in order to make it persistent you have to root the phone
- do not turn your phone off or unplug the usb cable, proceed instead to the next step
3- Root the beast
- this process will make the CWM installation persistent and will give you root powers
- with the phone still in fastboot mode select "Recovery" (vol- moves and vol+ selects)
- now you are in CWM and you can use your fingers to select options
- go in "install zip from sdcard" and "choose zip from external sdcard"
- now choose the zip file previously copied on the phone "RAZRiRoot2.zip"
- let it run and eventually you'll get a message confirming that everything went ok
- now you can reboot your phone and finally obtain root permissions
4- Flash custom rom or whatever
- now everytime you want to flash something simply boot in fastboot, select "Recovery" and use CWM
5- Final thoughts
The first thing I installed was Droidwall, but it didn't work, so if you need a firewall (and you'll need it) use AFfirewall+.
Hope this helps, see ya.
PS: for a better view copy and paste the text in an external editor.
Related
Here's a guide to unlocking the bootloader, flash a recovery image, and install a custom ROM on your Incredible s.
If you're not experienced with this sort of thing I advise you get help or not do it at all. I'm not responsible for anything that happens to your phone, but it is highly rare that anything will go wrong
1. Go to www.htcdev.com and log in/create an account. When logged in, click on 'Unlock Bootloader'
Now simply follow the on screen instructions provided by HTC. Some of the process requires getting some files from the Android SDK and you will needs the HTC drivers which come with HTC Sync, but this will all be explained through the process.
Now as I said, you need some files from the SDK which you can get here:
http://dl.dropbox.com/u/4263022/HTC Dev Tools.zip
I recommend putting these somewhere easy like the root of your C: drive in a folder called 'Android' like I will for the tutori. If you're still sure, select yes, and the process will complete.
2) you should see a little message pop up now asking if you'd like to go ahead and unlock the boot loader. Select yes.
3. Once done, your phone's bootloader will be unlocked, this will enable you to flash a recovery image.
4. Go to
http://download2.clockworkmod.com/re...0.2.0-vivo.img
and download the recovery image for the Incredible S. Put it in the "android" folder with the other files needed for the unlock process. This file is the ClockWorkMod recovery for the incredible s.
5. Shut down your phone. Plug it in via USB to your PC which you set up during the HTC unlock process. Hold volume down, and press power and the phone will boot into the bootloader. Wait for it to scan your SD card, then ensure "Fastboot" is highlighted and press power.
6. On your PC, load up a command prompt - open the Start menu, go to Run, and type "cmd".
7. In the command prompt window, type the following, assuming the HTC unlock files are all in C:android.
Code:
cd c:android
Then type:
Code:
fastboot flash recovery <recovery_name.img>
Don't forget the .img on the end, and replace "recovery_name" with the specific name of the recovery image you want to use. For ClockWorkMod linked to in step 4, you'd type:
Code:
fastboot flash recovery cwm-4.0.1.4-vivo.img
After a few seconds, ClockWordMod will have been flashed to your phone.
8. Reboot your phone, there should be an option in the fastboot menu (volume up and down to navigate, power to select). It should boot as per normal. Put it into USB disk mode, and download a ROM that you'd like to use. CyanogenMod is what I'm going to use: http://www.cyanogenmod.com/devices/htc-incredible-s
Download the ROM and place it in the root of your SD card
9. Power off the phone. Hold volume down and press power to boot back into the bootloader. Use volume down to select "Recovery" and press power. ClockWorkMod recovery will load.
10. Using volume up/down and power to select, go down to Backup/Restore. Select it, then click backup. ClockWorkMod will backup your stock ROM in case there are any needs to switch back.
11. After that (takes about 5 minutes), go back to the main menu. Select wipe data/factory reset and confirm. Go back to the main menu, select Advanced > Wipe Dalvik cache
12. Go to the main menu, and select "Install zip from sdcard". Next choose "Select Zip from SD card" and select the ROM you'd like to install. Confirm this action, and ClockWorkMod will install your new ROM. When done, shut down your phone.
13. Ordinarily you'd be done after that, and you could boot into your new ROM. However HBOOT 1.16 does some random stuff and tends to cause problems. I think it interferes with the installation of the boot.img that ordinarily would be flashed with the ROM. Get the ROM that you downloaded earlier (CyanogenMod in this tutorial), and on your computer, unzip the file somewhere. Once done, inside you'll see a file called "boot.img". Put this in the same folder as your other Android tools that you used earlier. Power your phone on, hold volume down, but don't choose "recovery", choose "usb fastboot".
14. Open up your command prompt again (Start > Run > "cmd"), and type (using the "android" folder for this example):
Code:
cd c:android
fastboot flash boot boot.img
This will flash the boot.img to your phone.
Power off the phone, reboot it, and that should be it!
If this helps please leave a thank you.
Good luck
Sent from my HTC Incredible S using xda premium
Bad download URL for CWM...
The URL you have documented for CWM recovery image is giving an "Access denied" response.
Thanks a lot!
It's very useful for me :good:
This is a duplicate thread and copied too.... the actual guide is at http://forum.xda-developers.com/showthread.php?t=1337105
Closed
What he said
Hello,
First off, I'd like to apologize for putting this in the "General" section, as I am new, I cannot post in the development related sections.
So, I have compiled a all in one package for rooting your HTC One, this kit includes fastboot, drivers, recoveries, SuperSU, and anything else you will need to root your device (there is a full list below). I have compiled some pretty detailed instructions and will post them in the second post.
INCLUDED FILES:
Fastboot
adb
Clockwork Mod Touch 6.3.something
TWRP 2.5.0
SuperSU (recovery flashable)
Disable Write Protection (recovery flashable)
Drivers (32 and 64 bit)
Stock Boot Image and Recovery
INSTRUCTIONS-
Download Latest:adf . ly/O7zCG
Past Releases:
None Now, this is 1.0!
Notes:
By downloading this you are placing the full responsibility on yourself for anything that happens to your sexy new phone, unless it starts shooting lasers and destroying iDevices, then, the Credit is mine
This works on both Windows and Mac OSX
If you make a video or blog post etc get my permission BEFORE
ENJOY!!!
Instructions
Kwongger's Sprint HTC One All-In-One Pack
1. Create an account at HTC DEV
2. Unlock using the HTC Dev instructions (below) (select "all other supported devices" at start)
3. Flash A recovery using the below instructions
4. Either Flash the SuperSU zip (stock rooted) or the rom of Your Choice (both IN RECOVERY)
NOTE:
I will soon post a detailed YouTube video (in 2 weeks or so when I get my One!)
on youtube com /user/ kwongger
HTC unlock method instructions:
Just So you know, these are directly from htc, all credit to them!
Step 1: Remove and reinsert the battery then proceed to step 2. For devices without a removable battery, long press the power key then select restart. Hold down the volume down key while restarting to start the device in Bootloader mode.
Step 2: Press Volume Down and Power to start the device into Bootloader mode.
Step 3: Use the Volume buttons to select up or down. Highlight Fastboot and press the Power button.
Step 4: Connect the device to the computer via a usb cable
Step 5: Isn't needed
Step 6: Open a command prompt in the directory by pressing shift, right clicking, and selecting open command prompt window here
Step 7: Navigate to where you unzipped the ZIP file and go to the folder you just created (see step 6 above)
Step 8: Type in Command Prompt: fastboot oem get_identifier_token
Step 9: You will see a long block of text. Copy and paste into the token box on HTC DEV.
You should get this:
Token Submitted Successfully!
You've been sent an email with your unlock key as a file attachment. Please review this email for further instructions and a link to complete the Bootloader process.
Leave your cmd window open you will need it after you get your Unlock_code.bin in the e-mail.
You can place the Unlock_code.bin in your Root folder and follow the instructions from the e-mail.
NOW: boot to the bootloader and select fastboot
Installing TWRP
Now type "fastboot flash recovery openrecovery-twrp-2.5.0.0-m7wls.img" without the quotes and press enter
Now type "fastboot erase cache" without the quotes and press enter
This will install custom TWRP recovery on your phone so you can start flashing custom ROMs.
Installing CWM v6.0.3.1
Turn phone completely off
Boot into HBOOT>Fastboot
Use command "fastboot flash recovery recovery-clockwork-6.0.3.1-m7wls.img" without the quotes or
"fastboot flash recovery recovery-clockwork-touch-6.0.3.1-m7wls.img" also without the quotes
AFTER FLASHING RECOVERY
1. Boot to your recovery and flash the rom of your choice.
~or~
Boot to your recovery and flash the SuperSU zip.
2. Flash the Disable Write Protection zip (will allow you to replace/edit system files)
Frequently Asked Questions
FAQ
Will this work on (insert alternate Htc One carrier here)?
Most likely not, give it a shot though! Remember I am not responsible for anything that happens to your device.
Can I return to stock?
Yeah, just flash the stock stuff through fastboot and relock your boot loader.
Will this void my warranty?
If you really have this question you don't belong on these forums... YES htc even told you themselves when you started the bootloader unlock process
My phone won't boot.
Well you did something wrong, return to stock using the above instructions and then try again.
I am closing this thread because it has information which this thread already has in more detail.
It's best not to have a plethora of the same thread.
Thanks
I have posted the instructions bellow that I have been following.
1. I got the bootloader unlocked.
2. The fastboot flash recovery went through ok
3. Is were the problem is. The instructions say after flashing the img in place
it is time to open Cynogen Mod menu and flash in the SuperSU file. The
instructions say to reboot to bootloader > boot to recovery mode then hit the
power button. At this point the Cyanogen Mod recovery mode menu is
supposed to come up. And then navigate to were the SuperSU.zip file is.
The problem is that the Cynogen Mod menu never comes up. All I get is
the following picture bellow. Then the phone reboots to normal operating mode.
The phone works 100% but it still isn't rooted. I don't know how to fix this.
The boot loader screens aren't the same as I have seen in video turtorials that I
have seen. I can post those screen captures as well if needed.
----------------------
Complete, detailed, step-by-step root procedure for HTC Desire 626s
Credits
- I did not come up with the procedure to root this phone - that work was done by member @hackvcs - I just put this guide together using the method that he developed (and using the custom recovery that he put together). Please give all credit to @hackvcs!!! Also, the links to the files below are not my links - they are links that other members provided (member who provided them is listed below).
Pre-requistes/Downloads:
- HTC Desire 626s phone
- Official TWRP Recovery Images: https://twrp.me/devices/htcdesire626s.html - Thanks @Captain_Throwback!
- Recovery images (custom CyanogenMod recovery and stock recovery image) - provided by @hackvcs (https://mega.nz/#!sp0wCThZ!MQVTq6y_8...hnaLRq8UiqLruQ)
-SuperSU binary .zip file - link provided by @mussio (https://download.chainfire.eu/696/SuperSU)
1. Unlock bootloader
- Enable "Unknown Sources" on your phone:
- Settings->Security: Check "Unknown Sources" checkbox
- Enable "Developer Mode" and enable "USB Debugging" and "OEM Unlocking" settings
- Settings->About->Software Information->More: Tap on "Build Number" 7 or more times until it tells you that Developer Mode is enabled.
- Settings->Developer Options: Enable "OEM Unlocking" and "USB Debugging" options.
- Actually unlock the bootloader by going to the HTCdev "Unlock Bootloader" website (www.htcdev.com/bootloader) and following the directions to unlock your bootloader. You will need to create an account on this website before being able to unlock the bootloader. I'm not going to provide step-by-step instructions for the bootloader unlock procedure since the HTCdev website already provides a step-by-step procedure. However, here are a few key notes regarding this procedure:
- The bootloader unlock procedure will reset your phone back to factory defaults. Make sure to backup anything that you need on the phone before unlocking the bootloader. You can optionally install the "HTC Sync Manager" (link provided on HTCdev website) to backup your phone before starting the process.
- In the "Select your device" box on the first screen of the bootloader unlock procedure, select "HTC Desire *" as the device type.
-If you are running the latest firmware on your phone, you do not need to worry about the phone update page when you first start the unlock process - just scroll to the bottom of the screen and click the "Proceed to Step 1" button to start the procedure.
- You will need to install Java if you don't already have it installed - there is a link to download Java right on the same page as the bootloader unlock procedure.
- You will need to download and install the fastboot binaries provided in step 4 of the bootloader unlock procedure. Unzip the fastboot.exe file included in the zip to a directory that you will use to root your HTC Desire 626s (I recommend creating a new directory for this - something like "C:\HTC626s") - later, you will also put the other files you need (recovery image file and SuperSU binary .zip file) into this same directory so that everything is in one place
2. Install custom recovery
Once you have successfully unlocked your bootloader, you will need to flash a custom recovery (TWRP recommended). This recovery image will replace the stock recovery on your phone and allow to flash the SuperSU binaries in the next step.
- Connect your phone to the PC via USB cable and let the PC install the necessary drivers for the phone.
- Power off phone
- Reboot the phone into "Download" mode:
- While holding the Volume Down button, press the device Power button. Continue to hold the Volume Down button until the phone boots into "Download" mode. To confirm that the bootloader is unlocked and that you are in "Download" mode, you should see the following two lines at the top of the screen:
- "hTC download mode"
- "*** Unlocked ***"
- Once you have confirmed that you are in download mode and the bootloader is unlocked, it's time to flash the custom recovery:
- Open a Command Prompt (aka DOS prompt) window and change to the directory where you put the fastboot.exe file. If using the recommended directory, you would type this command in the Command Prompt window to change to that directory:
- Type "cd \HTC626s" and press [ENTER]
- Make sure that the recovery file is in the same directory (type "DIR" and press [ENTER] to see the files in the current directory). If it is not in the current directory, put it there before continuing (via Windows Explorer). Also, I'd recommend renaming the recovery image to "recovery.img" - it makes typing the commands a little easier and reduces the likleyhood of a typo. So before continuing, you should have both "fastboot.exe" and "recovery.img" in the current directory.
-In the command prompt window, type "fastboot flash recovery recovery.img" and press [ENTER] - this will flash the custom recovery to your device.
3. Install SuperSU superuser binaries
Now that we have the bootloader unlocked and the CyanogenMod recovery installed, we are set to flash the SuperSU binaries to actually root the device. Before continuing, make sure that you have copied the SuperSU binary .zip file to the internal storage on your phone! Once we boot into CyanogenMod, you will have to navigate to this .zip file in order to install it. It MUST be on the *internal* phone storage (not on the MicroSD card).
- Reboot your phone into recovery:
- Power off the phone
- Power on the phone while holding the "Volume Down" button. Keep holding "Volume Down" until the phone boots into Download mode.
- Scroll down to "Reboot to bootloader" and press the power button.
- Once in bootloader mode, scroll down to "Boot to recovery mode" and press the power button. At this point, you should be in the CyanogenMod recovery menu.
- Scroll down to "Apply Update" and press the power button
- Scroll down to "Choose from internal storage" and press the power button
- Navigate to where you stored the SuperSU .zip file and select it - the SuperSU binaries will be installed on the phone.
-That should do it! You should now have a rooted HTC Desire 626s. Reboot the phone into Android and confirm that you have a SuperSU icon in your app drawer and then confirm that the device is actually rooted.
1/ WARNING: Unlocking the Bootloader WILL PERFORM A FACTORY RESET on your phone. Please backup your data BEFORE PROCEED.
2/ Should you run into any issues, please post here
Here is the good stuff. The rooting process is divided into 2 parts: Bootloader unlock and Rooting itself.
Before you begin, please download the Following
1) Download platform-tools on your computer here 11
2) Optional for Windows PC: MTK VCOM USB drivers here 5 (the default Windows driver works sometimes but not always. If the default driver doesn’t work for you, install this one)
3) Download factory-prepared patched stock BOOT.IMG here (this is patched to Magisk 20.4)
Bootloader Unlock
- Goto Teracube's Developer Options (via Settings/System/About and tap Build number several times to unlock Developer Options if this is not already available)
- Goto Settings > System > Developer settings
- Turn on OEM unlocking
- Shutdown the phone
- Press Vol+ and Power buttons simultaneously for 5/6 seconds
- You’ll see 3 options in tiny fonts. Use Vol+ to toggle option
- Select Fastboot and press Vol- to select it
- Connect Teracube to your PC/computer using the USB-C cable came with the package.
- Using platform-tools on your computer run the command
fastboot flashing unlock
Click to expand...
Click to collapse
- A confirmation message will be displayed on the screen, press Vol+ to say accept
- Bootloader is now unlocked. You will see some messages during the boot sequence each time you boot/reboot your phone. This is an expected behavior.
- Do not reboot or shutdown phone yet if you plan to continue with the root process (see below)
Root
- Perform Bootloader unlock steps (as above). Otherwise, the phone will complain of verification and will not allow you to proceed
- Connect Teracube to your PC/computer using the USB-C cable came with the package.
- Use platform-tools on your computer and run the command to flash the patched bootloader to your phone (your BOOT.IMG filename may vary)
fastboot flash boot teracube_patched_boot_sw1_magisk_20.4.img
Click to expand...
Click to collapse
- Run the following command to complete reboot your phone and complete the process
fastboot reboot
Click to expand...
Click to collapse
That’s it. Your Teracube should be rooted.
Install Magisk manager from github to check and use root.
Thank! Very useful post!
Hi, where can i find platform-tools for Ubuntu 18.04 ?
Thanks
Hello there. Hope this helps!
FIRST OF ALL, this WILL VOID your waranty. Read the steps BEFORE doing anything
ALSO PLEASE READ THE NOTES AT THE BELOW POST.
UNLOCK BOOTLOADER: It's not "easy" at all (You'll have to open your tab).
Go to device info on tab settings.
Press compilation number for several times until "you're a dev" message appears (It'll prolly ask your pattern/password to continue).
Go to dev options and enable OEM unlocking.
Shut down the tab.
Download PotatoNV sofware from here. (Credits to mashed-potatoes)
Download minimal adb and fastboot from here.
Prepare your environment:
Open your tablet
Grab a clip or a cable
Keep your cool
Follow the steps shown here. KEEP THE GENERATED CODE. This will avoid you from opening again the tablet in the case you have to do a downgrade. The way to unlock it again is writting
Code:
"fastboot oem unlock <code>"
at fastboot mode.
Here you have an image of where the testpoint is.
FLASH TWRP INTO THE TAB:
Follow CAREFULLY this steps:
Shut down the tab
Connect the tab to the PC and hold vol- & pwr button.
Now it'll appear a white screen with some text. If it appears "OEM unlock" in green, then everything's fine. IF NOT, follow unlock bootloader steps again. Then try rebooting into fastboot mode again (vol- & pwr).
Download Pretoriano80 .5 version TWRP from here.
Open Minimal ADB and Fastboot and write this:
"fastboot flash recovery_ramdisk path_of_twrp.img"
It should appear everything OK.
Type "fastboot reboot"
Fastly disconnect the tab from PC and hold vol+ & pwr button before Huawei logo appears (if it appears, just do a hard reboot (hold pwr button) and try again (just hold vol+ and pwr, no need to go back to fastboot).
You're now booting into TWRP!
RESOURCE DOWNLOAD
DOWNLOADING UNTESTED ROMS MAY LEAD TO MAJOR ERRORS
All HI6250 ROMs are "compatible" in some way, wouldn't recommend to install unless proven
A list with all tested and proven to work ROMs can be found here
Download any ROM you want from the above link. The list will be increasing with the time
Download the data decrypter from the MEGA folder (you can also find the link in the ROM list)
(OPTIONAL) you can download gapps. You can also download the version worked for me (little outdated) at the same MEGA link and update them later at the PlayStore.
(OPTIONAL) You can download Magisk from the "ZIPS" folder at the Mega link. GENERIC MAGISKS MAY (99%) NOT WORK ON THE GSIS.
PREPARATION STEPS
Boot into TWRP (vol- & pwr buttons while tab is off)
Don't make system Read Only (Just swipe the first window). This will lead you to a multiple choice menu
Head to INSTALL and select the decryter you will have in a SD card.
Swipe to confirm installation
Go again to main menu and head to WIPE and select "Format data option".
Type "yes" on the keyboard and press enter.
Then go to main menu and head to REBOOT>RECOVERY
If a message appears saying you to install TWRP app, just decline it.
Once in TWRP again, head to WIPE>ADVANCED WIPE and select dalvink/art cache, cache, data and system.
MARKING OTHER THAN THIS OPTIONS WILL LEAD TO AN IMPORTANT ERROR.
Return to main menu
THERE ARE 2 WAYS TO INSTALL A ROM:
1 -- VIA FASTBOOT:
Reboot your tab into fastboot mode (vol- & pwr buttons while connected to PC)
Open minimal adb and fastboot and type:
Code:
fastboot flash system <path_of_rom>.img
Now, wait... (Sparse header file error it's normal)
Once it has finished, type: "fastboot reboot" and disconnect from PC
2 -- VIA TWRP:
Once in TWRP head to INSTALL, press the "install image file" button.
Now head to the route where the .img file of the ROM is.
Select it, in the multiple choice menu select "SYSTEM IMAGE" and swipe to confirm installation.
Once finished, reboot to ROM or continue with the steps in order to get Google or Root working.