• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [T-Mobile] Help me root my HTC One... PLEASE

AS93

Lurker
Hello I have the HTC One on T-mobile and I am trying to root it. I am almost done, and when I power my phone down and hold the volume down and power keys It says "***Unlocked***". So when I plug in my phone into my Macbook Pro (late 2011) and type "./fastboot-mac flash recovery openrecovery-twrp-2.5.0.0-m7.img", it says "./fastboot-mac: No such file or directory". PLEASE HELP ME. I would really appreciate the help.
 
You need to install the fastboot program on the Mac (or, if you have installed it, cd to the directory you installed it in before typing that command. If so, copy the img file to that same directory first or else it won't find that).

I assume the guide you are following has a link to install the fastboot-mac program?
 
Well now this is what I enter (I am still confused about your instructions). "
new-host-5:HTCOneRoot alex_sorkin$ ./fastboot-mac openrecovery-twrp-2.6.3.0-m7.img" I get:
"usage: fastboot [ <option> ] <command>

commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
reboot reboot device normally
reboot-bootloader reboot device into bootloader

options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
new-host-5:HTCOneRoot alex_sorkin$" So I enter "flashall"
-bash: flashall: command not found
new-host-5:HTCOneRoot alex_sorkin$ update <openrecovery-twrp-2.6.3.0-m7.img>
-bash: syntax error near unexpected token `newline'
new-host-5:HTCOneRoot alex_sorkin$ update<openrecovery-twrp-2.6.3.0-m7.img>
-bash: syntax error near unexpected token `newline'
 
Ok, so you've got the fastboot-mac executable working. What's wrong us that you've not told it what you want to do (it doesn't know what's in an img file, so can't work it out).

To flash the recovery the command you need to type is:

./fastboot-mac flash recovery openrecovery-twrp-2.6.0.3-m7.img

The syntax is:

"fastboot-mac" is the app
"flash" tells it you want to flash a partition
"recovery" tells it which partition
Then the name of the img file you want to flash

Hope that helps!
 
Well I put in "./downloads/HTCOneRoot/fastboot-mac flash recovery openrecovery-twrp-2.6.0.3-m7.img" and I get "error: cannot load 'openrecovery-twrp-2.6.0.3-m7.img'". Please help me!!!
 
Sounds like you don't have the image file in that directory or the name is different.

Try typing "ls *.img" and see whether you can see the img file and check its name. Or I guess you could use the Finder to check whether the file is there if you find that easier.

You need to give the actual name and location of the img file as the last argument of the command, so the simplest will be if you copy the img into that directory from wherever it is. If it is in that directory but the name is different, use the actual name in the command.
 
Back
Top Bottom