[How To] Setup ADB for Windows/ Mac

Chinaren

New member
Jul 17, 2011
3
0
0
tomecity.com
Your link to Pdanet works, but it's only the Windows 32 bit version.

The 64bit (as well as the 32bit) can be found at:

junefabrics.com/android/download.php

---------- Post added at 04:35 AM ---------- Previous post was at 03:53 AM ----------

Hi, me again.

Well, I don't know what I'm doing wrong here.

I've ADB running on my PC, with the DOS-like green command window, but it can't seem to find my transformer, attached via USB. (The PC sees it, as I can find it via the file manager)

When I enter adb devices it just returns with List of Devices Attached followed by a blank line.

I'm probably missing something obvious. Help?
 

jerryeight

Senior Member
Mar 11, 2012
154
40
0
California
For Windows

Want to set up ADB or Android Debugging Bridge on your PC, here is a quick guide for you. This tutorial does not need large download or full Android SDK installation. You will just have to download a small compressed file, which is all that you require.

STEP 1: First download this file called ADBUNZIPTOCDRIVE.zip, just click on the link, download will start automatically.

STEP 2: Now download PdaNet for driver installation. It comes with drivers from all major manufacturers, so this is all you need. Install PDAnet after downloading.

STEP 3: Now extract the zip file that we downloaded in the first step to C drive and name the extracted folder ADB.

STEP 4: Now we will go to the desktop and right click to make a new shortcut.

STEP 5: Point the shortcut to ADB folder that we created in step 3, and name the shortcut ADB or whatever you want.

STEP 6: Now right click on that shortcut and go to properties and change START IN field to c:\adb.

STEP 7: Click Apply or OK and you are done. Click on ADB shortcut on the desktop and you are good to go.

Here is list of ADB commands that might be useful for you in the future.

adb devices – list all connected devices
adb push <local> <remote> – copy file/dir to device
adb pull <remote> [<local>] – copy file/dir from device
adb sync [ <directory> ] – copy host->device only if changed
adb shell – run remote shell interactively
adb shell <command> – run remote shell command
adb emu <command> – run emulator console command
adb logcat [ <filter-spec> ] – View device log
adb forward <local> <remote> – forward socket connections forward specs are one of: tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp – list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <file> – push this package file to the device and install it
adb uninstall [-k] <package> – remove this app package from the device (‘-k’ means keep the data and cache directories)
adb bugreport – return all information from the device
that should be included in a bug report.
adb help – show this help message
adb version – show version num
adb wait-for-device – block until device is online
adb start-server – ensure that there is a server running
adb kill-server – kill the server if it is running
adb get-state – prints: offline | bootloader | device
adb get-serialno – prints: <serial-number>
adb status-window – continuously print device status for a specified device
adb remount – remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] – reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader – reboots the device into the bootloader
adb root – restarts the adbd daemon with root permissions
adb usb – restarts the adbd daemon listening on USB
adb tcpip <port> – restarts the adbd daemon listening on TCP on the specified port
does this method work for all samsung android phones ?
 

kthung

Senior Member
Apr 25, 2011
264
66
0
Originally I couldn't get adb devices working on my mac so for anyone else having trouble, I found out that in terminal for all adb commands you have to add a "./" in front of all commands. So for example "adb devices" would be "./adb devices" etc. Hope it helps
 

nayantha

Member
Apr 24, 2012
5
0
0
do not know what to do

after clicking that short cut i got to the adb folder is that ok?
Also what is the adb shell and adb.exe inside the adb folder?
help me with next step as im new to this
 
Last edited:

gunsranger

Member
Jul 25, 2012
6
0
0
Bhubaneshwar
after clicking that short cut i got to the adb folder is that ok?
Also what is the adb shell and adb.exe inside the adb folder?
help me with next step as im new to this
Yeah it means after clicking the properties of the shortcut .. in Start in ..give the complete path where ur adb folder is placed

Regards,
Gunsranger
 

c1bear

Senior Member
Jun 10, 2008
371
39
0
long beach
STEP 6 when i try to name the start in to c:\adb.and click ok i get this message problem with shortcut, the folder c'\adb specified in the start in box is not valid, can i get a little help here plz

Target location; extracted folder ADB
Target : "C:\extracted folder ADB\adb"
Start in : c:\adb
If i change it to "C:\extracted folder ADB\adb" it works to open the file not a Command Prompt or the adb shell that is what this short cut post to do right,

Never Mind ive got it working, So the short cut makes a command Prompt on desktop is that right, strange thing is that if i type in "/adb devices" i get nada but if i type adb devices i get a list of devices a number of my device is that right
 
Last edited:

Kamy

Senior Member
Aug 29, 2012
5,335
19,303
0
Beijing
'adb' is not recognized...

would u plz tell me what does message below mean?


'adb' is not recognized as an internal or external command,
operable program or batch file.


Cannot use adb?
 

killalloo

New member
Jun 25, 2013
4
2
0
would u plz tell me what does message below mean?


'adb' is not recognized as an internal or external command,
operable program or batch file.


Cannot use adb?
I'm having the same issue! I can't understand how I have to make the shortcut!

I downloaded the rar folder... extracted to C with ADB name and then I went into the desktop , created a shortcut to C:\ADB\adb and start in C:\adb but this is only a folder! I try to access adb shell and insert a few commands so I get the same error ! Please help :(

STEP 4: Now we will go to the desktop and right click to make a new shortcut.

STEP 5: Point the shortcut to ADB folder that we created in step 3, and name the shortcut ADB or whatever you want.

STEP 6: Now right click on that shortcut and go to properties and change START IN field to c:\adb.
I can't understand this steps ...

EDIT

I finally got it.. nice tuto!
 
Last edited:

n00bie101

New member
Nov 17, 2013
1
0
0
PLS Help

So I managed to get the nano bash_profile path added in terminal, but when I type adb devices some device pops up but it also says unauthorized. I tried rebooting my mac and device (lg g2 btw) and I still get the same message and I have not been able to continue rooting from there.
Any help is greatly appreciated.
 

mankokoma

Senior Member
Dec 28, 2010
792
312
93
Berlin
So I managed to get the nano bash_profile path added in terminal, but when I type adb devices some device pops up but it also says unauthorized. I tried rebooting my mac and device (lg g2 btw) and I still get the same message and I have not been able to continue rooting from there.
Any help is greatly appreciated.
At least under Linux (so it should also do it in mac-terminal):
Code:
sudo adb kill-server
sudo adb start-server
adb devices
adb shell
adb whatever should work then
 

manojkumar8552

Senior Member
Nov 9, 2013
664
497
0
AHEMADABAD
For Windows

Want to set up ADB or Android Debugging Bridge on your PC, here is a quick guide for you. This tutorial does not need large download or full Android SDK installation. You will just have to download a small compressed file, which is all that you require.

STEP 1: First download this file called ADBUNZIPTOCDRIVE.zip, just click on the link, download will start automatically.

STEP 2: Now download PdaNet for driver installation. It comes with drivers from all major manufacturers, so this is all you need. Install PDAnet after downloading.

STEP 3: Now extract the zip file that we downloaded in the first step to C drive and name the extracted folder ADB.

STEP 4: Now we will go to the desktop and right click to make a new shortcut.

STEP 5: Point the shortcut to ADB folder that we created in step 3, and name the shortcut ADB or whatever you want.

STEP 6: Now right click on that shortcut and go to properties and change START IN field to c:\adb.

STEP 7: Click Apply or OK and you are done. Click on ADB shortcut on the desktop and you are good to go.

Here is list of ADB commands that might be useful for you in the future.

adb devices – list all connected devices
adb push <local> <remote> – copy file/dir to device
adb pull <remote> [<local>] – copy file/dir from device
adb sync [ <directory> ] – copy host->device only if changed
adb shell – run remote shell interactively
adb shell <command> – run remote shell command
adb emu <command> – run emulator console command
adb logcat [ <filter-spec> ] – View device log
adb forward <local> <remote> – forward socket connections forward specs are one of: tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp – list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <file> – push this package file to the device and install it
adb uninstall [-k] <package> – remove this app package from the device (‘-k’ means keep the data and cache directories)
adb bugreport – return all information from the device
that should be included in a bug report.
adb help – show this help message
adb version – show version num
adb wait-for-device – block until device is online
adb start-server – ensure that there is a server running
adb kill-server – kill the server if it is running
adb get-state – prints: offline | bootloader | device
adb get-serialno – prints: <serial-number>
adb status-window – continuously print device status for a specified device
adb remount – remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] – reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader – reboots the device into the bootloader
adb root – restarts the adbd daemon with root permissions
adb usb – restarts the adbd daemon listening on USB
adb tcpip <port> – restarts the adbd daemon listening on TCP on the specified port
l


bro hotfile links are dead plss uploadd some where