trying to turn on USB Debug not through the Firmware...question - Verizon HTC One (M7)

so i have bootloader open and I want to turn on USB Debugging. I dont have access to the firmware since i am trying to flash the TWRP Recovery.
How can I turn this on so I can complete the flash, setup the root and be on my way?
Please help!

dankduke said:
so i have bootloader open and I want to turn on USB Debugging. I dont have access to the firmware since i am trying to flash the TWRP Recovery.
How can I turn this on so I can complete the flash, setup the root and be on my way?
Please help!
Click to expand...
Click to collapse
You don't need USB debug on to flash recovery, you need to use fastboot commands not adb.
First boot into bootloader and then connect device to PC. Next open a command prompt in the folder you have adb.exe and fastboot.exe in. Now type
fastboot devices (hit enter)
This Should show your devices serial number. If it does then you need to rename your twrp IMG file to twrp.img then move it same folder that has fastboot.exe. now type
fastboot flash recovery twrp.img (hit enter)
This should flash twrp to your device. Now boot into recovery and choose reboot then choose system. It should ask if you want to fix root, chose yes.
Hope this helps and good luck!
Sent from my A500 using xda app-developers app

Mod has moved this to q&a for you.

Related

TUT SDK and Fastboot commands

Hi together!
Since this is a topic where people ask regularly, I try to make a little TUT.
I hope it is helpful.
I am a noob myself, so please don't go on me
Please feel free to correct me if I am wrong or if I missed some important stuff.
What you need:
1.
SDK Tool (type in your browser: developer.android.com/sdk/index.html)
Once you are on that page, download the package and install it.
2.
after the install process has finished, you have to install some packages.
Important is the platform-tools package (there you find the most important commands)
3.
Locate the folder on the harddisk of your PC
4.a)
Push the Windows(Start) Buttom and type: cmd
This opens the command prompt
Now get into the root of the android folder (e.g. cd.. until you get into root of your harddisk)
(on my PC, it looks like this:
cd android
cd platform-tools)
4.b)
Just one thing to make it a little easier to come into the right folder:
Open the folder with the fastbootfiles in a window.
Go to command line and type cmd and the cmd.exe will be shown in the menu.
Drag & Drop the cmd.exe into the opened fastboot folder.
When you now open this cmd, it shows the right folder at the start and you can easily type the commands without navigation through folders.
credits go to Neo XL
5.
Your phone has to be in fastboot-USB mode and connected to PC in order to understand the commands
6.
Once you are in platform-tools folder, you can type commands
Most common commands are:
fastboot erase cache (sometimes helps if phone is in HTC bootloop)
fastboot flash boot (name of boot image / e.g. boot_1.2.3.img) (this is, like the name says, to flash a boot image)
fastboot flash recovery (name of recovery.img
fastboot oem lock ( to relock your phone, in case you have or want to flash a RUU)
fastboot flash unlocktoken Unlock_code.bin (to unlock again, if you already got the unlock key from HTCDev)
Flash firmware.zip using following terminal commands:
Please rename first downloaded .zip package to firmware.zip
fastboot oem rebootRUU
fastboot flash zip firmware.zip
This is almost obsolete, since we have the new Recovery 5.8.3.1 with Mount USB, but it is still good to know
to push ROM to SD card, if you were running superwipe without copying the rom file onto sd
1. You need recovery.img in your fastboot directory
2. Go into bootloader and connect phone
3. Then use: "fastboot boot recovery.img" (thus booting your image from pc and not the installed recovery).
4. When in recovery, you can use the adb commands.
5. You can try with "adb devices" which should show you serial of phone.
6. command: adb push rom_rom.zip /sdcard
credits to broncogr for finding that adb works if you use fastboot boot command and to Jotha for helping me out!
Or try following:
Copy rom to your adb-directory on PC
Switch OFF phone
Connect phone to PC
Wait until you hear the "USB-Connect"-sound on PC
Go into command window in adb-directory
Type "adb push rom.zip /sdcard/"
(where rom.zip is name of rom-file)
pushing is rather slow so it will take a while. Eventually you get an "OK". Then you can go into recovery and flash it.
Credits go to Jotha
Updated link
[TOOL][27/04] Automated Fastboot Commands For HTC One X continued
http://forum.xda-developers.com/showthread.php?t=1634786
credits go to TeAm Hex
For now, this is what I can think of, for sure there are many more commands, but hopefully we don't need them, but like I said, feel free and put them in here
I hope this will help some noobs, like myself!
If this helped you, please push THANKS
thanks! this will stop us noob's, spamming up dev's thread's.
Thanks for you efforts
First time with real android phone, this is good!
Thanks mate
Sent from my HTC One X using xda premium
Can you add the command to push the custom rom to sdcard without mout USB via CWM ?
Just one thing to make it a little easyer to come into the right folder:
Open the folder with the fastbootfiles in a window.
Go to command line and type cmd and the cmd.exe will be shown in the menu. Drag & Drop the cmd.exe into the opened fastboot folder.
When you now open this cmd, it shows the right folder at the start and you can easyly type the commands without navigation through folders.
incident said:
Can you add the command to push the custom rom to sdcard without mout USB via CWM ?
Click to expand...
Click to collapse
Would be great, if this is possible! But as far as I know, it not possible.
Edit:
It is possible now! Updated post!
Sent from my HTC One X using XDA
hello I have problem with loading boot.img in fastboot
sdk is open, phone is conncted to comp on fastboot usb mode , image is on disc c in folder fastboot and still recive this info
c:\fastboot>fastboot flash boot boot.img
'fastboot' is not recognized as an internal or external command,
operable program or batch file.
c:\fastboot>
pls help me with that
ok I fix this, that was problem with missing fastboot.exe and was no connection betwen phone and computer
this link helps fix that
http://dottech.org/tipsntricks/21534/how-to-install-adb-and-fastboot-on-your-windows-computer-for-use-with-your-android-phone/
You have to copy the Boot.img into the folder, where fastboot-, adb commands are situated (c:/andoid/platform-tools)
Then Open cmd. Go to platform-tools folder and from there it should work.
Sent from my HTC One X using XDA
Thanx man, but is fixed now, I did this by follow the instr. in page from my last post, and goes perfect. I just flashed new rom with 1.8 base and iam now on the bright side of life.
PS sorry for my english
@OP, last time I tried fastboot boot command it gave me device not found message(no problem when fastboot flash). What's the correct approach to make it work? I recently updated to 1.28 and I want to stay in stock for the mean time.
Sent either from my Arc or One X using xda premium
You can add the adb and fastboot directory path to the environment path in windows settings. You can then use adb and fastboot outside of the platform tools directory, but still in command prompt of course
Sent from my HTC One X using Tapatalk 2
I'm following your tutorial to the letter but whenever i use fastboot boot recovery.img it refuses to go into recovery. But i can boot into recovery manually and when i do there still isnt any adb devices connected.
Stuart.upton666 said:
I'm following your tutorial to the letter but whenever i use fastboot boot recovery.img it refuses to go into recovery. But i can boot into recovery manually and when i do there still isnt any adb devices connected.
Click to expand...
Click to collapse
3. Then use: "fastboot boot recovery.img" (thus booting your image from pc and not the installed recovery).
4. When in recovery, you can use the adb commands.
5. You can try with "adb devices" which should show you serial of phone.
6. command: adb push rom_rom.zip /sdcard
In point 3, it is not supposed to boot into recovery. Its for booting your recovery.img (e.g. recovery-clockwork-touch-5.8.3.1-endeavoru.img ) from PC. After this step you will automatically boot into Recovery. From there you can use adb commands.
Did you try "adb devices"?
I tried it myself and it works!
This guide is great... Thanks!
Sent from my HTC One X using xda premium
tonyhagger said:
This guide is great... Thanks!
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
Thank you, Sir! Some kind of feedback is always appreciated !
Hi about Push to SDCARD command
My questions in Blue
to push ROM to SD card, if you were running superwipe without copying the rom file onto sd
1. You need recovery.img in your fastboot directory - Should i use signed recovery ?
2. Go into bootloader and connect phone
3. Then use: "fastboot boot recovery.img" (thus booting your image from pc and not the installed recovery).
4. When in recovery, you can use the adb commands.
5. You can try with "adb devices" which should show you serial of phone.
6. command: adb push rom_rom.zip /sdcard
incident said:
My questions in Blue
to push ROM to SD card, if you were running superwipe without copying the rom file onto sd
1. You need recovery.img in your fastboot directory - Should i use signed recovery ?
2. Go into bootloader and connect phone
3. Then use: "fastboot boot recovery.img" (thus booting your image from pc and not the installed recovery).
4. When in recovery, you can use the adb commands.
5. You can try with "adb devices" which should show you serial of phone.
6. command: adb push rom_rom.zip /sdcard
Click to expand...
Click to collapse
Take the newest CWM recovery.
Sent from my Desire HD using XDA
incident said:
My questions in Blue
to push ROM to SD card, if you were running superwipe without copying the rom file onto sd
1. You need recovery.img in your fastboot directory - Should i use signed recovery ?
2. Go into bootloader and connect phone
3. Then use: "fastboot boot recovery.img" (thus booting your image from pc and not the installed recovery).
4. When in recovery, you can use the adb commands.
5. You can try with "adb devices" which should show you serial of phone.
6. command: adb push rom_rom.zip /sdcard
Click to expand...
Click to collapse
Asking about number 6,since after push rom into sd card using adb command. How long will it takes rom to place in sd card? My adb command just stuck after push rom without inform is it done or not.
And where did the push file goes? Seems I can't find it in CWM. I'm using latest cwm, but no zip file found in my sd card.
TEKONG84 said:
[/COLOR]
Asking about number 6,since after push rom into sd card using adb command. How long will it takes rom to place in sd card? My adb command just stuck after push rom without inform is it done or not.
And where did the push file goes? Seems I can't find it in CWM. I'm using latest cwm, but no zip file found in my sd card.
Click to expand...
Click to collapse
Rom should be on root of Sd.
If this is not working, you can try to use the command while phone is powered off. I am not a dev, but I read something like that:
"Switch off your phone, connect to pc, wait until it is detected by windows and use: adb push nameofrom.zip /sdcard/" thats what Jotha told someone on ARHD Thread.
Try that and tell us if it worked.
Sent from my Desire HD using XDA

[Q] Trouble with flashing new recovery

Hey everyone,
Alright so I have been trying to root my phone for the past 4 hours. I have unlocked it and flashed a custom recovery using adb. Or at least I thought I did. I tried flashing the clockworks recovery and when I would reboot it into the recovery, I would get an icon of a phone and an exclimation point. I assumed a bricked the phone and freaked out. A minute later the phone rebooted out of recovery and works fine afterwards. So I assume that the problem is the recovery. Something went wrong and I am not sure what.
Here are the steps I followed:
I was fine up until step four when I was trying to flash superuser.
No idea what to do from here.
HTC Unlocked = Bootloader is unlocked?
Not to take away from the OP, but i created a guide for a guy here at work and thought others might benefit from it.
Unlock Bootloader and Root
Unlocking your bootloader will wipe all data from your phone. Meaning you will loose everything make a backup.
Step 1: ADB Installation Instructions. NOTE:You must have ADB installed on your PC even if you use method 2b to unlock the bootloader. You will need adb to install recovery in Step 4.
1. Go to http://developer.android.com/sdk/index.html and download the sdk.
2. Follow installation instructions found here. Note: This is not a forum for this device DO NOT do anything but the adb installation on your system.
Step 2a: Download software from HTC to allow your bootloader to be unlocked.
1. Go to http://www.htcdev.com/
2. Login to the website. NOTE: Register for an account if you haven’t already. You must provide a valid email address.
3. Select “All Other Supported Models” from the drop down list and click “Begin Unlock Bootloader”
4. Follow online instructions.
1. SuperUser http://androidfiles.org/securekey.ph.../superuser.zip - Copy this file you phone. Special thanks to jmztaylor his link.
2. Recovery of your choice TWRP Recovery http://forum.xda-developers.com/show....php?t=2161702 or CWM Recovery http://forum.xda-developers.com/show....php?t=2161706. Put this file in the ADB Tools folder. NOTE: You must type the name of this file perfectly when using adb to flash it in step 4.
Step 4: Using ADB to install recovery
1. Open command prompt ( shift + right click, then choose “Open command window here”) and type “ADB devices” you should see you phone listed, if you do not start over at Step 1. NOTE: Phone must be plugged in and USB Debugging must be checked in settings.
2. Type “ADB flash recovery recovery.img” without the quotes. NOTE: the red is actually the title of the recovery file that you copied in step 3. If it’s different substitute your files name instead.
3. Once complete type “ABD reboot recovery”.
4. You should at this point backup your device
5. Once you create a backup, Choose install and navigate to the SuperUser file you put on your phone in Step 3.
6. If all goes well you are now rooted. Select reboot system to restart phone.
There is some very good information here but its spread out pretty thin. Guides IMHO are very usefull to fill the gap between devs/powerusers and the newbs.Most people that come here have a hard time with the things we take for granted such as adb commands, or adb its self (most will be setting it up for the first time). I tried my best to put it in a knowledge base that everyone can understand if for some reason you do not understand what i was trying to say please ask. I don't own this phone, just helped a friend root his, but if you need to get ahold of me pm me. I'll get back to you as soon as possible.
Any help? Just trying to get rid of the bloatware -_-
Did you copy superuser to your phone? And are you sure you are using the correct file location for adb in the command prompt? You must make sure you are and that all files you want to flash are also in the same folder as adb. Please respond if you have superuser on your phone and if you are positive you are using the correct adb folder location for the command prompt. I'm not the best at this however, I read up a lot on it just to root my phone. Took me 4 hours about as well, but that was before the recoverys came out. I suggest trying to flash twrp recovery, it's a bit buggy (for me) but I find it easier to use.
Sent from my HTC One VX using xda app-developers app
Code:
ADB flash recovery recovery.img
that is your problem to start with its not "ADB flash"
boot your phone into bootloader with usb connected to PC, Phone should read "fastboot"
Go the your adb directory in command prompt.
ex.
Code:
C:\PcUser\Master\Androidsdk\adb\
Make sure all drivers are installed, from CMD prompt window type "fastboot devices" to check your phone is showing.
if you see your device then you can type
fastboot flash recovery [drag your recovery image into cmd window] and hit enter and it should flash
once recovery is flashed you can either "fastboot Reboot" or on the phone use the Vol rockers to navigate to menu and hit bootloader then from there choose recovery
Hi,
I have the same issue about 2 days, I install TWRP Recovery and all it's ok, and flash in fastboot mode with adb like ilostchild tolds You.
It seems that I met the same problem.
My issue is the phone only boot into CMW mode, although I tried to restart it many times. When connect to usb cable, lappy did not recognize the phone so I can use adb command.
Please help me.
I can't make ADB recognize the device, I already installed the SDK the HTC Sync program but the device appears either as "My HTC" or "Android 1.0" and won't appear under "adb devices", any help? I have been googling for 3 days for a solution but I haven't found anything so far.
zeratos said:
I can't make ADB recognize the device, I already installed the SDK the HTC Sync program but the device appears either as "My HTC" or "Android 1.0" and won't appear under "adb devices", any help? I have been googling for 3 days for a solution but I haven't found anything so far.
Click to expand...
Click to collapse
Try using another computer!!! Install all neded drivers, searxh google and let windows automaticly install some. Connect via fastboot and it should say
Fastboot usb.
Also....dont search for adb devices, just enter commands starting with fastboot like... Fastboot install recovery cwmrecovery.img
spooky_ghosty said:
Try using another computer!!! Install all neded drivers, searxh google and let windows automaticly install some. Connect via fastboot and it should say
Fastboot usb.
Also....dont search for adb devices, just enter commands starting with fastboot like... Fastboot install recovery cwmrecovery.img
Click to expand...
Click to collapse
I already tried all those things you mentioned, I have been looking for 3 days for a solution for this problem on google without any luck, the device doesn't recognize any command either and I already set up a virtual machine and tried on that machine as well. u_u
Uninstall HTC sync then try adb devices be possitive you are using the correct location for adb. Usb debugging MUST be on as well. Copy paste the commands into the prompt to make sure you are entering them right. Be sure you have the downloaded files in the same folder you are using with adb.
Johann12911 said:
Uninstall HTC sync then try adb devices be possitive you are using the correct location for adb. Usb debugging MUST be on as well. Copy paste the commands into the prompt to make sure you are entering them right. Be sure you have the downloaded files in the same folder you are using with adb.
Click to expand...
Click to collapse
Already tried uninstalling HTC Sync, after that I deleted every trace of it. USB Debugging WAS ON before the phone crashed but I can't activate it now because the phone keeps looping between reboots.
Try to flash it via htc sync. Download the update and rewrite everything!
Sent from my HTC One VX using xda app-developers app

Changing Recovery.

I need a hand with Moving from the clockwork recovery to the TWRP..
i have no idea how ... could anybody help me with that?
Just flash twrp the same way you did philz... It will rewrite over it....
RastaMansta said:
I need a hand with Moving from the clockwork recovery to the TWRP..
i have no idea how ... could anybody help me with that?
Click to expand...
Click to collapse
I'm assuming you have unlocked your bootloader and have root. If not please don't read any further and read the guides first. If you have unlocked your bootloader and have root then proceed:
Place the TWRP.img file to your fastboot folder. Connect your phone to pc via USB
Open command prompt and "cd" to your fastboot folder
fastboot reboot-bootloader
when your phone reboots to bootloader then,
fastboot flash recovery TWRP.img -> use the actual name of the recovery file here.
Well its rooted but i cant seem to install TWRP... maybe some 1 on 1 help? anybody?
Anybody??

Want to root Bootloader unlocked what next

I have unlocked bootloader of my desire 820u Indian version running on lollipop 5.0.2. Now I want to root it, I have twrp and su file also don't know how to proceed further. When I click on recovery a command window opens with Chinese language I don't know what to do next. I m having S-ON in fastboot mode and. Is it safe to flash custom recovery with S-ON? Plz help ?
Which custom recovery you have? Is it TWRP 2.8.7.0 with exe file format?
Then switch on your phone an turn on usb debugging mode and then go to security and turn on the "Unknown Sources" mode. Place SuperSU.zip file in sd card.
Switch off your phone and go to fastboot mode. Connect your phone with PC. And open command window and type "fastboot devices" -> It should be having some code like HT******** and device should be listed there. If it's showing waiting for devices, then you need to install the drivers for mobile and check it again. Now close the command box.
NOW
if you're having recovery.exe then just open the file and press any key while mobile is connected with PC. It'll flash the recovery automatically. When it'll end switch off the phone and go to recovery mode. then select install and find the supersu zip file and swipe it to flash.
And if you're having recovery.img then you need to download the fastboot folder (find it in other threads) and then place the recovery.img to the same folder. Now open the folder and press shift+right click-> open command window here. Then connect the phone in fastboot mode and check for fastboot device is connected or not. then type "fastboot flash recovery recovery.img"
*Recovery file must be named as recovery and extension should be img. It should not be like recovery.img.img *
CONGRATULATIONS This will help you to root your phone.
@coolmmk07 Thanks a lot mate for such a detailed reply ? just one more question, in fastboot mode it shows S-ON is it safe to flash custom recovery with S-ON? Does it make any difference?
alok singh said:
@coolmmk07 Thanks a lot mate for such a detailed reply just one more question, in fastboot mode it shows S-ON is it safe to flash custom recovery with S-ON? Does it make any difference?
Click to expand...
Click to collapse
I don't think so. It'll work
Hey bro everything is ok accept when I open su app is says there is no su binary installed... What's the solution?
Rooted successfully, thanks alot
alok singh said:
Rooted successfully, thanks alot
Click to expand...
Click to collapse
COOL! Enjoy bro

Need Help in Falshing RRRR-N-v5.8.0-20170203-oneplus3 -First time

Hi,
I want to Falsh RR-N-v5.8.0-20170203-oneplus3 but I'm doing this for the first time.
I have seen a lot of threads on how to Flash and a number of videos on youtube but still have some confusion, so can you please help me here:
I have downloaded following files on my PC:
twrp-3.0.4-0-oneplus3.img
OnePlus3_4.0.2-FIRMWARE+MODEM-flashable
RR-N-v5.8.0-20170203-oneplus3
open_gapps-arm64-7.1-nano-20170204
I think I can unlock bootloader using developer option - OEM ulocking, advanced reboot and USB debugging. Correct?
Now how to take back of my phone and transfer on my PC?
Then how to install recovery on phone? Do I need run cmd to mount it on phone? How/ Steps/ video?
After I install recovery, i restart the phone in recovery mode. Correct?
Then swipe the devise.
Then flash following in the order as mentioned below:
OnePlus3_4.0.2-FIRMWARE+MODEM-flashable
RR-N-v5.8.0-20170203-oneplus3
open_gapps-arm64-7.1-nano-20170204
Correct? or anything missing here?
is it necessary to flash OnePlus3_4.0.2-FIRMWARE+MODEM-flashable?
Do i need to flash oxygen Cam and theme engine form recovery mode or after I reboot in new ROM?
Do i need to flash again i recovery?
Please help with some complete steps or video. I have some confusion so better to take guidance from you.
Thanks!
Now how to take back of my phone and transfer on my PC?
Click to expand...
Click to collapse
Enable usb debugging from dev options.
Install adb fastboot binaires.
Connect your phone to pc.
Boot to recovrey.
Right shift+right click > open command window here
Run:
Code:
adb pull - p /sdcard <location on pc>
Then how to install recovery on phone? Do I need run cmd to mount it on phone? How/ Steps/ video?
Click to expand...
Click to collapse
Place recovery image file in fastboot dir.
Optional :rename recovery as of your convenience.
Enable usb debugging from dev options.
Boot to fastboot mode.
Right shift+right click > open command window here
Run:
Code:
fastboot flash recovery <your recovery name with extension>
After I install recovery, i restart the phone in recovery mode. Correct?
Click to expand...
Click to collapse
Nothing wrong in doing.
is it necessary to flash OnePlus3_4.0.2-FIRMWARE+MODEM-flashable?
Click to expand...
Click to collapse
Not if you are coming from oos 4.0.2.
Do i need to flash oxygen Cam and theme engine form recovery mode or after I reboot in new ROM?
Click to expand...
Click to collapse
For oxygen cam read the relevant thread
No. You need not flash theme engine.
Do i need to flash again i recovery?
Click to expand...
Click to collapse
No
nrusimhamurthy said:
Enable usb debugging from dev options.
Install adb fastboot binaires.
Connect your phone to pc.
Boot to recovrey.
Right shift+right click > open command window here
Run:
Place recovery image file in fastboot dir.
Optional :rename recovery as of your convenience.
Enable usb debugging from dev options.
Boot to fastboot mode.
Right shift+right click > open command window here
Run:
fastboot flash recovery <your recovery name with extension>
Nothing wrong in doing.
After I install recovery, i restart the phone in recovery mode. Correct?
Nothing wrong in doing.
is it necessary to flash OnePlus3_4.0.2-FIRMWARE+MODEM-flashable?
Not if you are coming from oos 4.0.2.
For oxygen cam read the relevant thread
No. You need not flash theme engine.
No
Click to expand...
Click to collapse
It's pretty good explanation and guide! :good:
nrusimhamurthy said:
Enable usb debugging from dev options.
Install adb fastboot binaires.
Connect your phone to pc.
Boot to recovrey.
Right shift+right click > open command window here
Run:
Code:
adb pull - p /sdcard <location on pc>
Place recovery image file in fastboot dir.
Optional :rename recovery as of your convenience.
Enable usb debugging from dev options.
Boot to fastboot mode.
Right shift+right click > open command window here
Run:
Code:
fastboot flash recovery <your recovery name with extension>
Nothing wrong in doing.
Not if you are coming from oos 4.0.2.
For oxygen cam read the relevant thread
No. You need not flash theme engine.
No
Click to expand...
Click to collapse
Thanks! I did it, working perfectly fine. awesome!

Categories

Resources