Adb help - G2 and Desire Z Q&A, Help & Troubleshooting

Hi.i am trying to set up adb on my compaq laptop vista,i tried everything,youtube videos,guides
Still dont work,please help me if there,s any other metod.any help ill bappreciated,
Sent from my HTC Vision using XDA App

Have you tried this ?
http://forum.xda-developers.com/showthread.php?t=865685

Prob solvd thanks so much.
Sent from my HTC Vision using XDA App

Please help me on this one too
Hi,i am running vista trying to use gfree 2,seems to b everything working finr,adb starts fine,prob is when I run a cmd it says no file or directory found.please I m new on droid,please help me how to execute files through adb.
Sent from my HTC Vision using XDA App

imranbandial said:
Please help me on this one too
Hi,i am running vista trying to use gfree 2,seems to b everything working finr,adb starts fine,prob is when I run a cmd it says no file or directory found.please I m new on droid,please help me how to execute files through adb.
Click to expand...
Click to collapse
Have you been through the guide that I linked above, and done all the steps to get adb setup on your PC ?
If you're having a problem with the gfree procedure it would be best if you post up a question in it on that thread. Are you sure you're typing the commands exactly as it says there ?

the only thing i wanna know how to execute files,where should i put gfree on my comp and on my phone so the adb cmd recognize it,thanks once again .adb working fine it recognize my device the only thing it dont recognize any cmds,file or directory not found..

imranbandial said:
the only thing i wanna know how to execute files,where should i put gfree on my comp and on my phone so the adb cmd recognize it,thanks once again .adb working fine it recognize my device the only thing it dont recognize any cmds,file or directory not found..
Click to expand...
Click to collapse
When you are running adb, if for example you do "adb push gfree", where you are trying to copy (push) the file "gfree" from your PC to your phone, it will look in your current directory for gfree. So given you are usually doing this at the command prompt, in Windows do a "cd" (change directory) to change to the directory where you have put gfree.
For example, if gfree is in "\users\fred\desktop", then do "cd \users\fred\desktop", then run your "adb push gfree" and it will find the file.
If you do "adb shell" does that work, does it come up with a $ prompt ? If so, then it's working and has started a command "shell" on your phone.

Related

How to root on a MAC OSx

Hi guys,
I have a rooted HTC Desire that I rooted myself on a PC but I mainly use my Mac and I wanna know how to root it on the Mac as well. I've followed the tutorial by benko286 on the boards but every time I hit step1-mac.sh, it starts the terminal, then asks my password,I enter my password, it then says the stuff below and it shuts down the terminal.
About to start flash...
sudo: ./fastboot-mac: command not found
Any idea why this is happening? I'd really love to learn how to do this on the mac platform as well.
Thanks in advance,
Do you have the Android SDK for Mac OSX installed?
http://developer.android.com/sdk/index.html
Sent from my HTC Desire using XDA App
Hey mas,
Here we meet again. I am the guy with all the adb questions. No, I didn't know that was necessary. What do I do, once I download the file? Where should I save the files in the zip file?
Hi bud,
I'm not that familiar with Macs, but try installing the SDK, extract it to the root of your hard drive. Open terminal and get to the exact folder path of the downloaded r5 folder and then try executing the step1 command. Also ensure you have HTC sync installed.
EDIT: have you come across this?
Works on Macs too and will be alot easier for you:
http://unrevoked.com/recovery/
Sent from my HTC Desire using XDA App
fastboot-mac is a shell script is it not?
so you need to execute it with the correct bash command
so type ' sh fastboot-mac '

Adb

Hey guys I'm getting setup to root my buddies Evo shift. I Dloaded android sdk followed the instruction. I've opened cmd.exe when I type in a command it says it says 'adb ' is not recognized as an internal or external command, operable command or batch file.
I'm trying it out on my Evo first just to get familiar with the system any direction is greatly appreciated
Sent from my PC36100 using XDA App
30bushido1 said:
Hey guys I'm getting setup to root my buddies Evo shift. I Dloaded android sdk followed the instruction. I've opened cmd.exe when I type in a command it says it says 'adb ' is not recognized as an internal or external command, operable command or batch file.
I'm trying it out on my Evo first just to get familiar with the system any direction is greatly appreciated
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
What version of windows are you on? You followed all of the instructions on setting up adb from that thread in the Shift forums? I also rooted my roomate's Shift, and I read that adb setup tutorial when I was over there. It was pretty solid. I already had adb set up, but read it through to see. When I set up adb, I had someone advise to me to place the adb.exe, and that .dll file (found in platform tools, in the SDK download) in my 'system32' folder of my PC. Once I placed those two files in the 'system32' folder, adb has worked flawlessly.
Also, have you made sure you have all the correct drivers installed? I believe I also had to install HTC Sync, because that installed some drivers that were necessary. Once it installed, I uninstalled it (the drivers will remain installed) because it can interfere with adb communication, apparently. Hope you get it set up. Once you do, rooting the Shift wasn't hard. Just follow the instructions to the t, and just copy and paste the commands, to eliminate the possibility of messing up the commands.
Thanks man I'm gonna give the HTC sync thing a shot
Sent from my PC36100 using XDA App
30bushido1 said:
Thanks man I'm gonna give the HTC sync thing a shot
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
You're welcome, feel free to PM me if you have any more issues.
to get adb to work, you need to be in the same directory as all of the sdk tools to use my setup as an example, my stuff is located in
C:\SDK\platform-tools
when I open the cmd prompt, it starts in
C:\Documents and Settings\Chris>
to change directories, type
C:\Documents and Settings\Chris>cd \
the display will change to
C:\>
type (in my example, yours may vary unless you set your folders up the same way)
C:\>cd SDK\platform-tools
it will change to
C:\SDK\platform-tools>
then you will be able to use adb commands like push/pull, shell, devices, etc.
Muellersirch said:
to get adb to work, you need to be in the same directory as all of the sdk tools to use my setup as an example, my stuff is located in
C:\SDK\platform-tools
when I open the cmd prompt, it starts in
C:\Documents and Settings\Chris>
to change directories, type
C:\Documents and Settings\Chris>cd \
the display will change to
C:\>
type (in my example, yours may vary unless you set your folders up the same way)
C:\>cd SDK\platform-tools
it will change to
C:\SDK\platform-tools>
then you will be able to use adb commands like push/pull, shell, devices, etc.
Click to expand...
Click to collapse
By putting the adb.exe and the .dll files in the 'system32' folder, that will allow you to execute adb commands from any directory in the command prompt. I don't have to navigate to my sdk tools to use adb. It saves a few steps, so you can just open up your command prompt and command away.
Or you can put the directory that contains adb in your system PATH. This will let you execute adb in a command prompt anywhere...
Sent from my ADR6300 using XDA App
I'm running wd7. I've gone through it again and installed the drivers then uninstall HTC sync I'm still not able to access sdk through the command prompt. I know its something simple I'm missing how do I move adb to the system path
Sent from my PC36100 using XDA App
C:\user\paul>
Is what the terminal reads any command I enter is not recognized as an internal or external command.
I have got the command list to show up but cannot exicute any of them
Sent from my PC36100 using XDA App

problem downgrading htc desire hd for rooting

Hi I have followed this guide exactly (http://forum.xda-developers.com/showthread.php?t=905003) and when i open command prompt and navigate to the downgrade folder i get stuck on the command:
"adb shell chmod 777 /data/local/tmp/GingerBreak"
I get the following error message "adb shell chmod 777 /data/local/tmp/GingerBreak: permission denied"
I have looked around for solutions but still cant find any way to fix it, help is very much appreciated!
Usually that would only happen to me if gingerbreak was already pushed to phone. Have you tried rebooting your phone and starting over?
Sent from my HTC Desire HD using XDA Premium App
hi, yes i have restarted my phone and now i get stuck on the command:
"adb push GingerBreak /data/local/tmp"
and get the error message "cannot open 'GingerBreak' : no such file or directory'
But when I go into my downgrade folder it is definetly there...
What software version are you currently using, is it one that can actually be downgraded at this time?
If GingerBreak is transfered try running it.
adb shell
./data/local/tmp/GingerBreak
what happens then?
alternatively try this guide instead, it helped me: http://forum.xda-developers.com/showthread.php?t=1152233
Hi thanks for the reply, when i do the command "adb shell /data/local/tmp/GingerBreak" i get the message "ermission denied"
hope this helps, will look at the link you posted
also my version of software is 2.36.405.8
Yeah follow the guide given above (http://forum.xda-developers.com/showthread.php?t=1152233)
also re-download the downgrade tools. If you running windows 7 make sure you dont extract them directly to the c drive. first extract to some d drive or so and then copy paste to c drive or directly given the d drive path in the cmd.
Also make sure you are logged in as admin in the system. and run the cmd after right clicking and selecting run as administrator .
and also you are deleting the older PD98IMG zip file and doing all the cmd stuff after downloading the stock PD98IMG zip file and putting it in the sd card.
Make sure you check the md5sum of the file you downloaded so that its integrity is intact.
See if it works after all this. Do post your results.
All the best
Cheers!
abhisahara said:
Make sure you check the md5sum of the file you downloaded so that its integrity is intact.
All the best
Cheers!
Click to expand...
Click to collapse
Hi how do you do this please ?
Thank you
Stephen
sbsshadow said:
Hi how do you do this please ?
Click to expand...
Click to collapse
Total Commander can do it under Windows. Else see http://www.google.com/search?hl=en&...=Google+Search&aq=f&aqi=g10&aql=&oq=&gs_rfai=
Hi thanks for the help, when i go to extract the downgrade folder into my D drive i get the following message:
"You need permission from the computers administrator to make changes to this file"
and underneath that it has displays the GingerBreak file and its details. The downgrade folder appears in the D drive but without the GingerBreak, misc version or psneuter file.
Your help is very much appreciated!
Lanky09 said:
also my version of software is 2.36.405.8
Click to expand...
Click to collapse
http://driphter.com/index.php?topic=3867.0
Start at step 2.
bump - still need help on downgrading!

htc desire gsm keeps restarting

hi my htc desire keeps restarting when i flash any gingerbread miui rom i have tired data2ext and a2sd and have wiped and also formated my sdcard and stil have same problem with both but it works fine with all other roms and the froyo version of miui. please help
What hboot are you using and how did you root your phone?
Sent from my HTC Desire using xda premium
hi im using normal hboot-0.93.0001 i used unrevoked to root my phone i am not really a noob i have flashed and rooted many phones but for some strange reason all other roms including miui froyo work on my phone but gingerbread miui wont it loads up to the home screen and then just reboots ive tried data2et version and a2sd version and same thing happens with both versions.i have also tried using diffrent recoverys amon-ra,clockwork etc and still get the same problem.
You need to understand what is going on under the hood.. Getting an adb logcat is the way to go..
Code:
Windows>Start>Run
echo "null" > log.txt
start log.txt
adb logcat > log.txt
Use Notepad++ to associate with the txt file and reload the file every couple of seconds while keeping the cmd shell in the background.. See what's happening just before it reboots. It could be anything from a bad script to a bad module
Have you tried gingerbread 2.8, its simple and a very plain ROM, I have had issues with miui roms with my desire, if that doesn't work I will keep looking my self, sorry I'm not very insightful, you have an odd problem.
Sent from my HTC Pyramid using xda premium
Nice one Droidzone, I will have to try that also.
Sent from my HTC Pyramid using xda premium
Hi droidzone thanks for your reply could u please maybe help me and tell me the steps to get the log cat i know how to access adb by cmd but thats about it im a noob when it comes to adb commands and dont know much about it and didnt really understand the commands that u asked me to do,do i enter those while in adb or before.
casanova786 said:
Hi droidzone thanks for your reply could u please maybe help me and tell me the steps to get the log cat i know how to access adb by cmd but thats about it im a noob when it comes to adb commands and dont know much about it and didnt really understand the commands that u asked me to do,do i enter those while in adb or before.
Click to expand...
Click to collapse
Once you open a command line prompt in the folder where adb is installed (or anywhere else, if the file adb.exe is in your Windows path variable-Dont worry about that if you dont know), you can directly type each line of the commands starting from step 2.
Before that, install Notepad+, and associate .txt file to open with it by default..
By the way, you have to start typing those commands directly after rebooting from recovery after installing the Rom..
hi droidzone i have installed notepad++ but dont understand how to install Notepad+, and associate .txt file to open with it by default. also my adb is located in c:\androidsdk\tools that is what i type in cmd to get adb working and if i type adb devices it shows my device.also i typed the commands u gave me once in adb and it says "the process cannot access the file because it is being used by another process."
casanova786 said:
hi droidzone i have installed notepad++ but dont understand how to install Notepad+, and associate .txt file to open with it by default. also my adb is located in c:\androidsdk\tools that is what i type in cmd to get adb working and if i type adb devices it shows my device.
Click to expand...
Click to collapse
Hmm.. I seem to be offering more Windows support than Android!
I meant Notepad+. Hold Shift, rightclick any text file, Choose Open with Notepad+ as default. You can go to your adb folder like you normally do and then type each line I posted and hit Enter after each time. You can also make a batch file with all those commands (search Google for that if you dont know how)
hi thanks i have made notepad+ to open as default but when i type the commands u told me it says "the process cannot access the file because it is being used by another process."
casanova786 said:
hi thanks i have made notepad+ to open as default but when i type the commands u told me it says "the process cannot access the file because it is being used by another process."
Click to expand...
Click to collapse
Hmm yes, that can happen if you have more than one adb.exe process running in the background because you exited it by closing the command shell with the close button instead of typing
Code:
exit
after done with it.
Use Ctrl+Alt+Del or Process Explorer to terminate the background adb.exe processes

[Q] ADB

I created the pathways needed to open files in command prompt and set the pathways to C:\Android-sdk\tools and C:\Android-sdk\platform-tools. I have unzipped and installed everything and placed the files in the platform-tools folder, but i cannot access the files through prompt. it tells me C:\android-sdk\platform-tools is not recognized as and internal or external command. Please someone help... i havent worked with DOS since i was in high school 14+yrs ago.
So you changed your PATH environment variable to include 'C:\Android-sdk\tools' and platform-tools?
That just lets cmd run exe's from those folders regardless of where it is pointed, it will not let you access other files from those folders.
You still need to either change where cmd is pointed (using the 'cd' command) or you can move the files to where cmd is currently pointed (probably C:\Users\Username>')
-Nipqer
Still need some assistance, when starting to downgrade from gingerbread its telling me that i dont have a device detected. I have USB debugging on, so i dont know what i should do; any ideas
PvtJoker said:
Still need some assistance, when starting to downgrade from gingerbread its telling me that i dont have a device detected. I have USB debugging on, so i dont know what i should do; any ideas
Click to expand...
Click to collapse
Hello noob.
Did you install the USB drivers ( HTC Sync software )?
shared_ptr said:
Hello noob.
Did you install the USB drivers ( HTC Sync software )?
Click to expand...
Click to collapse
Im not sure if i installed the USB drivers. I installed everything that the wiki guide said to. I am gonna try again once i get home.
PvtJoker said:
Im not sure if i installed the USB drivers. I installed everything that the wiki guide said to. I am gonna try again once i get home.
Click to expand...
Click to collapse
I faced the same problem. My Windows PC didn't recognize the attached Android-device (Check Windows Device Manager).
After following the instructions as described in the following thread it suddenly worked and I could successfully root my device:
[Tutorial] Adb Driver Android 1.0 Install
Cheers
pemphix
Please help
Well i got the USB driver installed and ran adb Devices.... it picked up my phone but now when im running adb push fre3vo /data/local/tmp i get the message "cannot stat "fre3vo" no such file or directory". Am i suppose to be in C:\users\name\Android-sdk\platform-tools\ to run the adb push?
If so, need some help with command prompt. Im running windows 7,
need to either edit the path in environmental variables or make sure all the files needed and adb.exe are in the same folder and change directories to there, i have a guide to setup fastboot (and adb is the same setup for the most part) HERE
Ok, Well i got Command prompt to start working. i remembered how to path in dos but my first go round with commands didnt work so i have to try another line to exploit.. wish me luck:fingers-crossed:
I will keep that in mind.. right now im trying to get the exploit to work.. i have gone through 1 thru 3 and got nothing yet...
so you successfully downgraded to 2.2 and are now trying to temp root? maybe like the guide you are using so we know what steps 1 through 3 are and explain what isnt working if you have issues
xda wiki, cyanogen wiki and strawmetals pdf guide are simple easy and trust worthy. i hope one of these is the guide you are using
In process of downgrading
demkantor said:
so you successfully downgraded to 2.2 and are now trying to temp root? maybe like the guide you are using so we know what steps 1 through 3 are and explain what isnt working if you have issues
xda wiki, cyanogen wiki and strawmetals pdf guide are simple easy and trust worthy. i hope one of these is the guide you are using
Click to expand...
Click to collapse
I have gotten as far as "# dd if=/dev/block/mmcblk0p17 bs=1 skip=160 count=10 1.00.000.010+0 records in 10+0 records out 10 bytes transferred in 0.001 secs (10000 bytes/sec)". Now the next step is to downgrade. the command line is:
> adb push su /data/local/tmp/
> adb push busybox /data/local/tmp/
> adb push fixsu.sh /data/local/tmp/
> adb install SuperUser.apk
> adb shell chmod 755 /data/local/tmp/fixsu.sh
> adb shell /data/local/tmp/fixsu.sh
but my command prompt is still # what do i do to
skip that, thats just for temp root which is pretty unnecessary. just downgrade and move on
I know i sound really stupid, but where is the Root of my SD card??? Please dont tell me its just the card itself...
yup, dont put files in a folder is what that means
Ok, now im in Hboot, but i dont understand what im suppose to do next. How do i work bootloader to downgrade. Once in bootloader i see; fastboot, recovery, factory reset, simlock and image crc
if the PC10IMG.zip is on the root of sd card and is named properly it will do it for you, just boot into hboot and let it do its thing.
if you want to do it the fastboot way (my preference but both work fine) then follow setherios guide to do it that way
---------- Post added at 05:01 PM ---------- Previous post was at 05:00 PM ----------
oh and always check md5sums when flashing firmware, its a good habit to have
Now here is an important question. If i had to turn off my phone before the Hboot took, do i have to go thru the entire process again? or can i just do the reboot bootloader?
well i just tried to fastboot flash zip StockRom.zip and it said cannot load StockRom.zip any ideas how to get it to work??
are you using window? if so know that it may be hiding the file extentions, so pc10img.zip should be named pc10img
etc, this may be your issue other than that you will have to copy and paste your issues so I can see what you are doing and why its failing
Sent from my HTC Vision using xda premium

Categories

Resources