FORUMS
Remove All Ads from XDA

[TUTORIAL/HOW TO] Basics of ADB

1,979 posts
Thanks Meter: 1,329
 
By joeykrim, Inactive Recognized Developer on 3rd June 2010, 05:05 PM
Post Reply Email Thread
Feel free to contribute - Creating this at toast's request
Will do my best to update this with everybody's experience and knowledge to help out the new comers. Welcome to the world of Android!!

Definition of ADB - http://developer.android.com/guide/d...tools/adb.html

1. Install Drivers

Win 7 drivers - http://depositfiles.com/en/files/yd61xorii - thanks shep211.

Win 7 64bit, Vista and XP - Confirmed works with HTC Sync - thanks to crackerstyle OR use HTC Sync.exe from the stock MicroSD card shipped with the phone. Myn also used these drivers - http://member.america.htc.com/downlo...ync_2.0.40.exe

Mac OS X drivers -

Linux drivers -


2. Install ADB (part of Android SDK)

Google's Main page - on the Android SDK which contains the adb binary inside the tools folder - http://developer.android.com/sdk/index.html

Windows Specific Android SDK installer (contains ADB binary inside tools folder) - http://developer.android.com/sdk/dow...06-windows.zip

Linux Specific Android SDK installer (contains ADB binary inside tools folder) - http://developer.android.com/sdk/dow...6-linux_86.tgz

Mac Specific Android SDK installer (contains ADB binary inside tools folder) - http://developer.android.com/sdk/dow...r06-mac_86.zip


3. Enabling ADB support on EVO

If using completely stock EVO, adb will be disabled in recovery and can't be enabled.

If using the PC36IMG.zip (userdebug RUU) automatically turns on adb in recovery mode.

If in normal android mode, adb can be enabled by Settings->Applications->USB Debugging.


4. Running (Executing) ADB on Host computer

Windows - start->run->cmd . Navigate to the extracted the Android SDK folder and into the subfolder called tools.
cd c:\android-sdk\tools\
Now simply execute the commands in Step 5 and 6.


5. Learn basic ADB commands

adb push - sends a file to the phone over ADB thru USB - adb push c:\test.apk /sdcard/test.apk

adb pull - receives a file from the phone over ADB thru USB - adb pull /system/app/Test.apk c:\Test.apk

adb shell - starts a shell connection with the phone

adb reboot - restarts the phone

adb reboot recovery - restarts the phone into recovery

adb reboot bootloader - restarts the phone into the bootloader (white screen)

adb remount - remounts the file system

adb install <path to .apk file> - installs an application - adb install c:\swype.apk

adb uninstall <package name> - uninstalls an application - package name is usually in the format, com.android.browser

6. Learn basic Linux commands to run through ADB shell

cd - changes directories - works through stock android toolbox - cd /system/app

ls - lists all files in the directory - works through stock android toolbox - ls /system/app/

cat - copies files - works through stock android toolbox - cat /system/app/Test.apk > /sdcard/Test.apk

rm - removes files - works through stock android toolbox - rm /system/app/Test.apk

mv - moves files from one location to another - works through stock android toolbox - mv /system/app/Test.apk /sdcard/Test.apk

cp - copies files - functions similar to cat - uses busybox installed by the EVO-recovery.zip into recovery mode - cp /system/app/Test.apk /sdcard/Test.apk

mount - loads the file system (usually auto loaded except sometimes in recovery) - mount /dev/block/mtdblock4 /system

unmount - unloads the file system - umount /system
The Following 10 Users Say Thank You to joeykrim For This Useful Post: [ View ] Gift joeykrim Ad-Free
 
 
3rd June 2010, 05:15 PM |#2  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by joeykrim

Feel free to contribute - Creating this at toast's request
Will do my best to update this with everybody's experience and knowledge to help out the new comers. Welcome to the world of Android!!

1. Install Drivers

Win 7 drivers - http://depositfiles.com/en/files/yd61xorii - thanks shep211


2. Install ADB (part of Android SDK)

Google's Main page on the Android SDK which contains the adb binary inside the tools folder - http://developer.android.com/sdk/index.html

Windows Specific Android SDK installer (contains ADB) - http://developer.android.com/sdk/dow...06-windows.zip

Linux Specific Android SDK installer (contains ADB) - http://developer.android.com/sdk/dow...6-linux_86.tgz

Mac Specific Android SDK installer (contains ADB) - http://developer.android.com/sdk/dow...r06-mac_86.zip


3. Learn basic ADB commands

adb shell - starts a shell connection with the phone

adb reboot - restarts the phone

adb remount - remounts the file system


4. Learn basic Linux commands to run through ADB shell

cat - works through stock android toolbox - copies files - cat /system/app/Test.apk > /sdcard/Test.apk

rm - works through stock android toolbox - removes files - rm /system/app/Test.apk

mv - works through stock android toolbox - moves a file from one location to another - mv /system/app/Test.apk /sdcard/Test.apk

cp - uses busybox installed by the EVO-recovery.zip into recovery mode - functions similar to cat - cp /system/app/Test.apk /sdcard/Test.apk

Thanks a ton joeykrim!!!!!!!!!!!!!!! Really helpful!!!!!!!
3rd June 2010, 05:17 PM |#3  
Member
Thanks Meter: 0
 
More
Yeah, super handy. I know enough linux to make my way around moving files and what not... but this saved me a few googles for download links and figuring out what adb was.

Danke danke.
3rd June 2010, 05:22 PM |#4  
jayv1717's Avatar
Senior Member
Flag Miami
Thanks Meter: 23
 
More
how do you install the drivers?..it's just folders
3rd June 2010, 05:25 PM |#5  
OP Inactive Recognized Developer
Thanks Meter: 1,329
 
More
Quote:
Originally Posted by jayv1717

how do you install the drivers?..it's just folders

download file is blocked for me and i dont have win7 or the evo yet, so you'll have to help and hopefully others will chime in.
i would assume once you plug the phone in, it will prompt/ask for drivers, simply navigate to the folders from the download file.
3rd June 2010, 05:30 PM |#6  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by jayv1717

how do you install the drivers?..it's just folders

Just found this, read about halfway through the first post, under Installing Drivers

http://forum.xda-developers.com/showthread.php?t=532719
3rd June 2010, 05:54 PM |#7  
Member
Flag Atlanta
Thanks Meter: 1
 
More
Quote:
Originally Posted by joeykrim

Feel free to contribute - Creating this at toast's request
Will do my best to update this with everybody's experience and knowledge to help out the new comers. Welcome to the world of Android!!

1. Install Drivers

Win 7 drivers - http://depositfiles.com/en/files/yd61xorii - thanks shep211

Win XP drivers -

Win Vista drivers -

Mac OS X drivers -

Linux drivers -

Aren't the drivers available through Android SDK. I know I just downloaded an usb_driver with the SDK Setup.
3rd June 2010, 05:54 PM |#8  
jayv1717's Avatar
Senior Member
Flag Miami
Thanks Meter: 23
 
More
Quote:
Originally Posted by eddy g

Just found this, read about halfway through the first post, under Installing Drivers

http://forum.xda-developers.com/showthread.php?t=532719

That helped alot..thanks
3rd June 2010, 05:55 PM |#9  
OP Inactive Recognized Developer
Thanks Meter: 1,329
 
More
Quote:
Originally Posted by finebrian224

Aren't the drivers available through Android SDK. I know I just downloaded an usb_driver with the SDK Setup.

some drivers are.
did they work? what OS are you using?
3rd June 2010, 06:12 PM |#10  
Inactive Recognized Developer
Flag Walnutport, PA
Thanks Meter: 47
 
Donate to Me
More
For the record, I don't know about mac but I know linux doesnt need drivers.
3rd June 2010, 06:15 PM |#11  
Senior Member
Thanks Meter: 7
 
More
forgot about ADB push?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes