[GUIDE] (For Noobs) SDK, ADB, and Drivers

satinair

Member
Aug 14, 2011
18
2
0
Mumbai
thx

Hello all! Here is a guide I am going to show for you so you can get Android SDK and ADB working on your computer and learn your way around Android.


[Note] I am doing this on a Windows 7 Home Premium 64bit computer.


Step 1. Get Java. Download Links Here

First what we need to do is download and install Java for your computer.
Since mine is a 64bit I will need to download both the 64 and 32 bit versions of Java.
If your computer is 64bit you will need to download both.
If 32bit download only the 32bit version.

Once you have Java installed we can move on to the next step.


Step 2. Get Android SDK Download Link Here

Since we have installed Java now we move on to Android SDK.

For Windows users you have 2 options to download SDK.
I chose the .zip file over the .exe Download to the zip
Once finished with the download extract the .zip file.

After zip is extracted open the folder called "android-sdk_r11-windows"

With that open click on the folder, "android-sdk-windows", to rename it.
Rename it AndroidSDK
Open Computer from the Start Menu

For me my Local Disk is C: so I am going to place the folder AndroidSDK in my Local Disk C: drive

Now we have SDK placed in our Local Disk drive now we are going to open the folder and run the .exe called "SDK Manager"
After it loads up it will show you a screen like this.

Just hit Cancel
From the next menu click "Available packages"
Click the drop down arrow on the "Android Repository"
Check the box "Android SDK Platform-tools, revision 5"

At the bottom right of the windows you will see a box "Install Selected" click that and then you will be prompted to download and install the package click "Install"
After it is downloaded you will be prompted with this.

Click Yes, then it should say "Done. 1 Package installed."
Click close and close out of the SDK Manager, bring back up your AndroidSDK.
You should have a file named "platform-tools" open it and select all the files.
Right click and select cut.

Now we are going to go back in our SDK folder open "tools" and paste
You will get a message saying there are already files with the same name, just tell it to replace that file.
This is what it should look like afterwards.

Now we are done with AndroidSDK!

Step 3. Download HTC Sync Download Page Here

Now we have our SDK setup we are close to having our phone ready for ADB.
Download HTC Sync (It is a rather large file 148MB)

This will give us our Drivers for our Sensation.
Once downloaded run the .exe file and follow the on screen instructions.

Once finished go to your phone and go to Settings/Applications/Development and Check USB debugging is on. Now connect your phone to your computer.

Now that your computer has installed your drives we can now use ADB!

Step 4. Conclusion
So far the things we have done were to get us to use our phones for ADB to use a program like, "Fre3vo" to where we can have a temp-root.

Now lets see if our hard work has paid off.

Go to the Start and open command prompt (type cmd in the search and hit enter)

Once your at this stage on the command prompt
type
"cd\"
"cd androidsdk\tools\"
"adb devices"
(don't include the quotation marks)

You should see your device come up like so.


Congratulations you now have everything you need to being!
Thx buddy....... helped me alot done :)
 

harish.toy

Member
Jan 6, 2012
17
0
0
My htc sensation is completely dead and i'm unable to enter in to boot also please help.
actually i tried to unlock my phone in that process i have rooted it and installed Android HD rom even though it didn't unlocked then i though to unroot and reset it to factory stock in this process i have tried this steps mentioned in this
after finishing this process my sensation stopped working...now i'm unable to switch it on or unable to go to boot also.please help

Thank you
 

codemarshank

New member
Dec 10, 2010
2
0
0
So followed this thread to the letter, yet anytime I try to do *anything* in ADB, I get "adbd cannot run as root in production builds" or "(comand): permission denied."

Whenever I type "adb shell" I get the "$" symbol. If I then try to execute "su", I get "su: permission denied" and nothing pops up on my device. If I just type "#", the prompt returns "#" but nothing else.

I've uninstalled and reinstalled the SDK 3 times now. Any idea what's going on here?
 

minahlepak

Senior Member
Dec 15, 2011
252
66
0
Kuala Lumpur
As a noob... ^_^

Thank you so much for your help...this was a very helpful guide. I couldn't SuperCID my Sensation coz I didn't have HTC sync to help recognize my phone. :(

But now... with your superb help. I finally got to do it. THUMBSS UPPP!!!!! ^_^ ;):eek::):cool::rolleyes:
 

minahlepak

Senior Member
Dec 15, 2011
252
66
0
Kuala Lumpur
Maybe?

So followed this thread to the letter, yet anytime I try to do *anything* in ADB, I get "adbd cannot run as root in production builds" or "(comand): permission denied."

Whenever I type "adb shell" I get the "$" symbol. If I then try to execute "su", I get "su: permission denied" and nothing pops up on my device. If I just type "#", the prompt returns "#" but nothing else.

I've uninstalled and reinstalled the SDK 3 times now. Any idea what's going on here?
Are you rooted? Since it did say "su:permission denied". So I am assuming u are not a superuser. Sorry if it doesnt help. I am a noob to... =(
 

xdaco

Senior Member
Jun 26, 2011
863
444
0
Kolkata
www.musarraf.com
So followed this thread to the letter, yet anytime I try to do *anything* in ADB, I get "adbd cannot run as root in production builds" or "(comand): permission denied."

Whenever I type "adb shell" I get the "$" symbol. If I then try to execute "su", I get "su: permission denied" and nothing pops up on my device. If I just type "#", the prompt returns "#" but nothing else.

I've uninstalled and reinstalled the SDK 3 times now. Any idea what's going on here?
Are you sure that your phone is rooted?
I fear your phone is not rooted.
If so then root your phone first but be sure the risk of rooting a phone.
 

xdaco

Senior Member
Jun 26, 2011
863
444
0
Kolkata
www.musarraf.com
ADB Installation guide for OSX

Setting Up ADB on Mac OSX

Here's a simple little tutorial that I found over droidforum of how to get ADB up and running on on Mac OSX.

Setting up ADB on Mac OSX

1. Download the Android SDK for Mac OSX. Android_SDK_OSX

2. Extract the zip file to any destination on your Mac. *Remember its path!*
In the AndroidSDK folder, there will be a folder named “tools”. We will be adding this folder to the path on Mac OSX.

3. To do this click on Finder > Go > Utilities > Terminal.

4. Type in without quotations “cd ~/” Hit enter after every command for the n00bs.

5. Next, type "touch .bash_profile" to create your new bash or otherwise known path file.

6. Next, type "open -e .bash_profile" to open it in TextEdit. A TextEdit window will open, copy and past this into that window. Screenshot of TextEdit and Terminal with all commands

My example:
export PATH=${PATH}:/Users/your_user_name/Desktop/androidsdk/tools

What yours should look like:
export PATH=${PATH}:insert your path to the tools folder in your android sdk here

7. Next, go to file and save your changes to the text file and close the TextEdit window.



8. In the terminal window that is still open, type “. .bashrc” This command will save the changes once again you made to your .bash_profile file

10. ADB should be set up! On your Droid X navigate to Settings > Applications > Development > and make sure USB debugging is checked. To test if ADB works, connect your Droid X to your Mac via micro-USB cable and set it to charging only mode in the notification bar.

11. Open up terminal on your Mac and type in “adb devices” once again do not type the quotations. Your phone should be listed as a number below.




Hope this helps OSX users..

I am not taking any credit. The original thread was found in DroidForum

____________________________________________________
 
Last edited: