Hi all,
I am trying to write software that runs on the PC, and uses adb/fastboot commands to the devices.
I know that there are manuall methods to get into the fastboot mode, but I am looking for a way to do that automaticlly from software, very similar has the RUU of HTC does.
Do you have any idea how they do it?
thanks
mishelkosa said:
Hi all,
I am trying to write software that runs on the PC, and uses adb/fastboot commands to the devices.
I know that there are manuall methods to get into the fastboot mode, but I am looking for a way to do that automaticlly from software, very similar has the RUU of HTC does.
Do you have any idea how they do it?
thanks
Click to expand...
Click to collapse
Adb reboot bootloader
Sent from my ADR6425LVW using XDA Premium App
Thanks for the quick reply,
I have tried "adb reboot fastboot" but I get the message "error:closed".
I am not working on a rooted phone.
My objective is to write an automatic executable from PC, like RUU,
that will open root and/or flash, push new system image.
new phones on HTC and Samsung have unlocked boot loaders which allow to flash and update ROM or images.
But in order to do that the user has to get manually to fastboot.
Is there any other method to get into fastboot in a non-rooted phones?
thanks
mishelkosa said:
Thanks for the quick reply,
I have tried "adb reboot fastboot" but I get the message "error:closed".
I am not working on a rooted phone.
My objective is to write an automatic executable from PC, like RUU,
that will open root and/or flash, push new system image.
new phones on HTC and Samsung have unlocked boot loaders which allow to flash and update ROM or images.
But in order to do that the user has to get manually to fastboot.
Is there any other method to get into fastboot in a non-rooted phones?
thanks
Click to expand...
Click to collapse
I assume you have USB debugging enabled? I have never seen the error closed message before. Even unrooted adb reboot works
Sent from my ADR6425LVW using XDA Premium App
Thanks for the quick reply,
I have tried "adb reboot fastboot" but I get the message "error:closed".
I am not working on a rooted phone.
Click to expand...
Click to collapse
try "adb boot bootloader" instead.
(i got here with the same problem and this worked for me so i just wanna update this old thread)
Related
All, I am sorry I didn't search more, but I am desperate. I go on travel in a few hours.
Long story short, my phone stopped working with 3g, I spent 4-5 hours on phone with sprint trying to fix. THey want it back to the store. It was HTC unlocked with Fresh. I used fastoot to do fastboot OEM lock, the phone rebooted and goes back to the bootloader screen, I can't get it to go back to Android
It says Tampered, Relocked, security warning. Please. Any help. Can I RUU from fastboot?
Yes
As long as you have the boot loader locked you can run the RUU, you can find the RUU in Android Developement.
Hook the phone to your computer, open a command prompt and type "adb reboot recovery" make sure USB debugging is checked. That should get you into TWRP recovery, then go from there.
musicman625 said:
As long as you have the boot loader locked you can run the RUU, you can find the RUU in Android Developement.
Hook the phone to your computer, open a command prompt and type "adb reboot recovery" make sure USB debugging is checked. That should get you into TWRP recovery, then go from there.
Click to expand...
Click to collapse
After relocking the bootloader, I can no longer enter recovery. RUU doesn't seem to want to run because my phone is not up and running (it is already at fastboot prompt). Can I just get it to recognize my phone in fastboot mode somehow?
U need to unlock it again and flash the stock Rom if u relock it with a custom Rom it doesn't allow it to boot
Sent from my EVO using xda premium
adma84 said:
After relocking the bootloader, I can no longer enter recovery. RUU doesn't seem to want to run because my phone is not up and running (it is already at fastboot prompt). Can I just get it to recognize my phone in fastboot mode somehow?
Click to expand...
Click to collapse
As long as you have the proper drivers you should be able to run the RUU from fastboot. While in fastboot if you type 'fastboot devices' (without quotes) is your phone listed?
Sent from my ELTE using Tapatalk 2
dylan6879 said:
U need to unlock it again and flash the stock Rom if u relock it with a custom Rom it doesn't allow it to boot
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Didn't know that was the case. Thanks
crump84 said:
As long as you have the proper drivers you should be able to run the RUU from fastboot. While in fastboot if you type 'fastboot devices' (without quotes) is your phone listed?
Sent from my ELTE using Tapatalk 2
Click to expand...
Click to collapse
RUU is finally running now. Failed several times, and then just started working. I hope it works. Thank you everyone. Will post back
This happened to me as well. The only thing that I did that finally made it work, was to make sure that the path that I performed the fastboot oem lock command in was the path that contained the fastboot file.
When I did this, it would boot into my custom ROM and I was able to run the RUU without any problems.
When I would try to run the RUU from bootloader it would always tell me my battery was low, even though I was over 90%.
Happend to me too . I just ran ruu while in fastboot .
Sent from my EVO using xda premium
So I soft-bricked my tablet trying to downgrade the hboot to 1.0...03. It is not recognized as an adb device. All drivers are correctly installed, Everything is in line, but I still cannot get it to do anything. Hboot says relocked with a security warning, and even trying to run the RUU through a .zip file is not working. I'm hopelessly lost... Battery is charged up fine too. Help me, please.
Shameful self bump...
Where are you trying to use adb meaning what state is your flyer? If in hboot then adb would not recognize it, go into fastboot and use fastboot commands
Flyer
That's the thing. Adb does not see it.
butters789 said:
That's the thing. Adb does not see it.
Click to expand...
Click to collapse
Can you access the bootloader?
P.S. ADB commands work only when the OS is booted up, otherwise - you need Fastboot commands
Yes. But fastboot commands weren't working either.
Sent from my LG-P999 using xda app-developers app
butters789 said:
Yes. But fastboot commands weren't working either.
Sent from my LG-P999 using xda app-developers app
Click to expand...
Click to collapse
Just a reminder: to use fastboot, you must select "FASTBOOT" option in the bootloader, and you'll see "FASTBOOT USB" in the bootloader.
Try to redownload adb/fastboot utilities
I'll try.. but I've done this already.
Sent from my LG-P999 using xda app-developers app
Edit: I got it fixed. Stupid n00b mistake the entire time, Fatality, thank you for helping kick me in the right direction.
Hi!
I have a similar problem with my Best Buy Easy phone 3.5; in my case adb sees my phone and all works properly.
My problem is; where can i find a stock rom??:fingers-crossed:
Thanks So much in advance
pickle_pk said:
Hi!
I have a similar problem with my Best Buy Easy phone 3.5; in my case adb sees my phone and all works properly.
My problem is; where can i find a stock rom??:fingers-crossed:
Thanks So much in advance
Click to expand...
Click to collapse
Look for in the forum thread for your device
My beloved rezound has gone kaput.
I had clean rom on my phone until it stopped booting past the white HTC screen.
I decided to flash a new rom on the phone, as I couldn't seem to find the version of clean rom I had before.
My question is: Is there any way to flash the new boot.img from the phone itself? Or is it required to be connected to the computer itself?
To repair my phone it looks like the only thing I can do is re-flash Clean Rom (Because of the boot.img)
Is this true?
Thanks for any help in advance!
mainmanluke said:
My beloved rezound has gone kaput.
I had clean rom on my phone until it stopped booting past the white HTC screen.
I decided to flash a new rom on the phone, as I couldn't seem to find the version of clean rom I had before.
My question is: Is there any way to flash the new boot.img from the phone itself? Or is it required to be connected to the computer itself?
To repair my phone it looks like the only thing I can do is re-flash Clean Rom (Because of the boot.img)
Is this true?
Thanks for any help in advance!
Click to expand...
Click to collapse
You can boot the phone into hboot and flash the boot.img from fastboot on your computer, but you'd be hard pressed to do it without a PC
AshtonTS said:
You can boot the phone into hboot and flash the boot.img from fastboot on your computer, but you'd be hard pressed to do it without a PC
Click to expand...
Click to collapse
Following what procedure exactly? adb devices brings up nothing when the phone is in HBOOT mode. I'm assuming you
don't use the same method as you would with an RUU or radio?
Apologies for my stupidity, I seem to be mixing this up.
(Plus I'm stressed because I have an interview with google tonight )
mainmanluke said:
Following what procedure exactly? adb devices brings up nothing when the phone is in HBOOT mode. I'm assuming you
don't use the same method as you would with an RUU or radio?
Apologies for my stupidity, I seem to be mixing this up.
(Plus I'm stressed because I have an interview with google tonight )
Click to expand...
Click to collapse
You'll need to use fastboot rather than adb (same general procedure tho)
Make sure to highlight the fastboot tab in hboot and press the power button to select it, then on your computer type "fastboot flash boot <path to boot.img>" then when it finishes, "fastboot reboot" and you should be good.
Good luck with your interview
Adb is really great for pushing and pulling files from your system or sdcards. Flashing stuff is great for fastboot.
AshtonTS said:
You'll need to use fastboot rather than adb (same general procedure tho)
Make sure to highlight the fastboot tab in hboot and press the power button to select it, then on your computer type "fastboot flash boot <path to boot.img>" then when it finishes, "fastboot reboot" and you should be good.
Good luck with your interview
Click to expand...
Click to collapse
Well, I seem to be stuck at "< waiting for device >" even when in fastboot :/ Any ideas?
Also, talking to the hiring manager tomorrow, will be with Google soon
mainmanluke said:
Well, I seem to be stuck at "< waiting for device >" even when in fastboot :/ Any ideas?
Also, talking to the hiring manager tomorrow, will be with Google soon
Click to expand...
Click to collapse
make sure your PC has the drivers installed. The ones for fastboot are different but should've been installed with the adb drivers. Check Windows Device Manager for anything that might not have installed correctly.
Also make sure you open the command prompt with admin privileges if you're running vista/7.
You should be able to write a boot image via hboot with a PH98IMG.zip on your sdcard. That way you don't need a computer.
Want to unlock your bootloader to install a custom recovery and root your One but have no idea how because you have a Mac?
Never fear, Gunnyman is here.
The procedure is actually pretty painless and only takes a few minutes
Some prerequisites:
ADB and Fastboot binaries for OS X, I've attached them to this post.
Your recovery of choice, I'm using Clockwork Mod Recovery, because TWRP seems to have problems with some Aroma installer based ROMS. Get CWM for the One from here
SuperUser.zip
a Unix friendly text editor. I really like Text Wrangler and it's free.
Android File Transfer for Mac macs don't work with MTP mode without this.
In developer Options on the phone, turn on USB Debugging
EDIT:
Thanks to user Shivasmith I now know you can skip textwrangler and
If you hold down the "Alt" (i.e. Option) key on the Mac keyboard in terminal you can do a "column select."
So when you generate the codes for the HTCdev unlock website, you can just do a straight copy-paste without going into TextWrangler. It made it that much quicker
So thanks for the tip!
I've been using macs for 10 years and never knew that.
1. Unzip the adb and fastboot binaries and put them where you can find them. I have a directory on my Mac called /Android and that's where my phone stuff lives, but you can put it anywhere.
2. Put the cwm recovery (or twrp if you prefer) in the same folder as adb and fastboot.
3. Got to htcdev.com and create an account there if you don't already have one.
4. Log in to htcdev.com and choose unlock bootloader.
5. pick the last option for Unlisted device.
6. Open a terminal window and navigate to where you installed fastboot,adb, and your recovery eg: cd /Users/Gunnyman/Android
7. In Terminal execute the following commands ./adb reboot bootloader once in bootloader mode In terminal execute the following command: ./fastboot oem get_identifier_token
8. Open Text Wrangler
9. Copy the output from the terminal window into Text Wrangler make sure you include every line AFTER "please cut the following message"
10. Use Text Wrangler to DELETE (bootloader) from every line and make sure the columns line up exactly.
11. Copy and Paste this output into the box you are provided on HTC Dev. This part is quite annoying, getting the lines to line up.
12. Submit your token. When successful you will be sent a key via email.
13. Put the Unlock.bin file you got via email in the same directory as adb and fastboot on your mac.
14. execute the following command in terminal with the phone in fastboot mode ./fastboot flash unlocktoken Unlock_code.bin
15. Say yes to the prompts on the phone. Bootloader will unlock and the phone will be factory reset (there is NO way to avoid this)
16. OK Now the bootloader is unlocked. Time to install a recovery. In Terminal ./adb reboot bootloader
17. In terminal ./fastboot flash recovery name_of_the_recovery.img
18. After recovery has flashed POWER DOWN PHONE COMPLETELY Then restart it
19. connect phone to the Mac Android File Transfer should fire up
20. Put the Superuser.zip file on your phone
21. in Terminal ./adb reboot recovery
22. Flash the SuperUser.zip in recovery.
23. Pat yourself on the back your phone is now rooted.
great tutorial...thanks. quick question since i have the dev edition (unlock bootlader) can i just follow all these steps but go straight to # 16 to root my One?
thanks again.
Absolutely
WHEN I enter the "fastboot flash unlocktoken Unlock_code.bin i get a "denied " message in the terminal can anyone figure this out for me
What are the cons of rooting the phone and installing a custom recovery?
I know that it voids the warranty. Is there anything else besides that?
Some people reported some functions not working.
Or is that just when you install a custom ROM?
pedromartinez1983 said:
WHEN I enter the "fastboot flash unlocktoken Unlock_code.bin i get a "denied " message in the terminal can anyone figure this out for me
Click to expand...
Click to collapse
I've seen it once before. It was solved by creating a new account on HTC.dev. And getting a new key.
No cons. Rooting doesn't do anything except add access to the super user account built into the device.
gunnyman said:
No cons. Rooting doesn't do anything except add access to the super user account built into the device.
Click to expand...
Click to collapse
Thanks man
Sent from my HTC One using xda app-developers app
gunnyman said:
No cons. Rooting doesn't do anything except add access to the super user account built into the device.
Click to expand...
Click to collapse
Gunny! Good to see you made the right moves for this phone too!
Im reading stuff about att updating that wont allow to unlock bootloader? Is this true?
Sent from my HTC One using Tapatalk 2
MrPlNK said:
Gunny! Good to see you made the right moves for this phone too!
Im reading stuff about att updating that wont allow to unlock bootloader? Is this true?
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
Not so far.
SU keeps aborting installation when I try to install it, any ideas?
broopa said:
SU keeps aborting installation when I try to install it, any ideas?
Click to expand...
Click to collapse
Youre flashing zip from recovery?
Sent from my HTC One using Tapatalk 2
MrPlNK said:
Youre flashing zip from recovery?
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
Yeah, from CWM. I tried fixing permissions with no luck.
broopa said:
Yeah, from CWM. I tried fixing permissions with no luck.
Click to expand...
Click to collapse
Did you turn phone on when you flashed recovery and then turn off then boot to recovery?
Sent from my HTC One using Tapatalk 2
I turned off phone, booted phone into BL menu then from there into CWM.
broopa said:
I turned off phone, booted phone into BL menu then from there into CWM.
Click to expand...
Click to collapse
Did you let the phone turn on and boot and then turn it off? Its important because when you unlocked bootloader/flashed recovery it completely reset your system meaning you need to boot it up and let it install the necessary stuff during boot animation (why it always takes so long the first time you boot up)
Sent from my HTC One using Tapatalk 2
I am pretty sure I did, I will reflash the recovery and see if that fixes it.
Edit: I just noticed I am unable to go back and reflash the the recovery. Is there a stock att version without root and CWM already on them so I can start from scratch?
Nice one gunnyman. Never disappoint. Its actually simpler to do on a mac because there isn't any driver installation. I just hope that AT&T allows us to do this for a while so that all of us here can get out key. Thats really all you need. You don't even need to do it, but its always a good idea to just get the key so if AT&T decides to block it again, you're safe.
If you guys are having trouble getting TWRP or CWS to work, make sure you have fastboot turned off in the power settings. It caused mine to not mount data sometimes.
This is a good right up. Finally have a way to do this on my Mac
Cannot get adb to recognize that my phone is "Online" also, troubles with RUU.
I'm on 4.3 on my HTC One with Sense 5.0 and I haven't been able to send any commands using Hasoon 2000's toolkit to my phone. Whenever I try to, I get an error message in the command prompt window saying that my device is offline, But if I run the adb devices command in a separate command prompt window, I get my attached One with it's ID number and everything.
This is where it gets weird, I restored my phone using clockworkmod to an earlier point in time while it was still unlocked, but not rooted. Somehow I managed to get clockworkmod back on and tried flashing the SU binaries so I can gain root access again, but I get the error message in the command prompt window when I try to do any commands from the toolkit.
So I say no problem, I'll flash the RUU so I can go back to stock, out of the box and re unlock and reroot, I don't mind. I download the file, and start the process and my phone changes it's screen to just HTC in the middle of it, but like 15 minutes in, I encounter an error
ERROR [155]: Unknown Error
The Rom Update utility cannout update your android phone.
It's saying that it's the wrong recovery image for the T-Mobile HTC One, but I'm fairly certain it's not.
Can someone give me a RUU for 4.1.2 Stock?
Also do I have to relock the bootloader before doing so?
SO TO RECAP, MY QUESTIONS ARE;
How do I fix the "device offline" error for the toolkit/adb?
Can someone give me a RUU for 4.1.2 Stock?
Also do I have to relock the bootloader before flashing a RUU?
THANK YOU!!!
Do you have USB debbuging on ?
Sent from my HTC One using xda app-developers app
demoniczemos said:
Do you have USB debbuging on ?
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Of course!
AChavitez said:
Can someone give me a RUU for 4.1.2 Stock?
Click to expand...
Click to collapse
Refer to my sig for that one. (If for any reason that does not work, search Google for "T-Mobile HTC One 531.8 Downgrade RUU", should be the first link)
Note: You *must* be S-Off. Use Win7 (or rather, do not use Win8x). Plug the device into a different USB port, wait for driver install/etc, and be sure to check the box (always allow) on the ADB popup on your device when it asks the first time you send an adb command to it from the PC.
Hope that helps.:good:
Google "squabbi's HTC One Toolkit" as well. I have used that one several times successfully.