Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
TrueBlue_Drew
Old
(Last edited by TrueBlue_Drew; 27th April 2011 at 07:41 AM.)
#1  
TrueBlue_Drew's Avatar
Recognized Developer - OP
Thanks Meter 1315
Posts: 1,323
Join Date: Jun 2010
Location: Salt Lake City, Utah
Arrow [GUIDE *WITH VIDEO*] ADB/Fastboot Easy 5 minute setup (Great for nOObs)

Ok there are some other guides here on the forums for this but they all require you to download the Android SDK. That can be very time consuming and confusing if you run into issues. I have been looking at a way to have the capability to push and pull files using my laptop but i really didnt want to go through downloading and setting up the whole SDK just to use adb.

If anyone has followed any of my threads, you know I am all about trying to get things done in the easiest way possable to help the people that are new to Android. This method has worked for me but there is no guarentee that it will work for you and I am no way responsable for anything that happens to anything unless it works great for you. Then I will take all credit j/k. With that being said:

The first method is for Windows based OS. I have tested it on XP but I would imagine it will work on any Windows OS. If I am informed of something different I will update it here. The Mac version is in post #2 and takes less than 1 minute to do. Much thanks to kwbdc and stlouie65 for the help on this.

Instructions for setting up Adb/Fastboot (windows)

1. On your phone go to Settings/Applications/Development and make sure USB debugging is ON and plug it in via the usb..

2. Install drivers on your PC. This is done on the MT4G/HTC devices by going onto your sd card and clicking on the HtcDrivers.exe file while viewing the files on your PC. It should automaticly install them to your PC. If you are using another phone or have trouble installing the ones from your sd card you can try pda.net or HTC Sync for the drivers. Here are links for pda.net 32-bit Windows 7/Vista/XP and for 64-bit Windows 7/Vista. Install the program by hitting "Run" and follow the instructions. You can remove it at a later time.

3. Download the file at the bottom of these instructions to your desktop and extract the contents. There is 1 folder and a install note (these instructions) that should extract. You can use a program called 7-ZIP (google it, its free and a great tool).

4. Open your "Start" menu and click on "My Computer". Then choose "Local Disk C:".(You can now click and drag the adb folder you extracted to the C: drive.

5.Open a command prompt and type cd\adb and hit enter. You should now see something that looks like this C:\adb>

6.Type adb devices then hit enter in the command prompt and it should list your device.

7. You can also type fastboot devices then hit enter in the command prompt an it should list your device. (you must be in the bootloader for fastboot to recognize your device)( adb command= adb reboot bootloader )

You should now be ready to send commands to your phone via ADB or Fastboot. You will need to repeat steps 5-6 anytime you want to use ADB/Fastboot. To send a file using Adb or fastboot make sure to put the file in your "adb" folder before giving the command to send it to your device.


If this helped you please use the "Thanks" button to show your gratitude.

__________________________________________________ __________________

Please feel free to ask any questions you want and I will help in any way I can.




DOWNLOAD MIRROR



Here are some commands for Adb/Fastboot.
DO NOT USE ANY COMMANDS THAT YOU ARENT SURE OF OR DONT KNOW WHAT THEY DO. I AM NOT RESPONSABLE FOR ANYTHING THAT YOU DO TO YOUR PHONE.

ADB Commands
Quote:
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
(-l means list but don't copy)
(see 'adb help all')
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
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
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
DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition
scripting:
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
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition is updated.

environmental variables:
ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed
.

Fastboot Commands
Quote:
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
reboot reboot device normally
reboot-bootloader reboot device into bootloader
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default: 2048
DeViCe= GLACIER/MT4G



If I have helped you please hit the "Thanks" button at the bottom of this post
The Following 53 Users Say Thank You to TrueBlue_Drew For This Useful Post: [ Click to Expand ]
 
TrueBlue_Drew
Old
(Last edited by TrueBlue_Drew; 27th April 2011 at 07:44 AM.)
#2  
TrueBlue_Drew's Avatar
Recognized Developer - OP
Thanks Meter 1315
Posts: 1,323
Join Date: Jun 2010
Location: Salt Lake City, Utah
Mac Instructions

Download THIS FILE Extract the 2 files inside it and place them on your Macintosh HD root. Plug in your phone to the usb, open terminal and type /adb devices.
It should now give u a serial #

To send a file using adb/fastboot the file must be placed in your mac HD Root or you must give the location in your command path.
DeViCe= GLACIER/MT4G



If I have helped you please hit the "Thanks" button at the bottom of this post
The Following 4 Users Say Thank You to TrueBlue_Drew For This Useful Post: [ Click to Expand ]
 
92drls
Old
(Last edited by 92drls; 25th January 2011 at 08:36 PM.)
#3  
Senior Member
Thanks Meter 36
Posts: 296
Join Date: Jul 2009
Wow this is so easy, thanks man. Only thing is, you said download the contents at the bottom of the post. where'd it go?

Edit: Oh the big Download spinning button.. I don't know how I missed it. Thanks again
 
TrueBlue_Drew
Old
#4  
TrueBlue_Drew's Avatar
Recognized Developer - OP
Thanks Meter 1315
Posts: 1,323
Join Date: Jun 2010
Location: Salt Lake City, Utah
Quote:
Originally Posted by 92drls View Post
Wow this is so easy, thanks man. Only thing is, you said download the contents at the bottom of the post. where'd it go?

Edit: Oh the big Download spinning button.. I don't know how I missed it. Thanks again
Not a prob...Please let me know if this works good for you.
DeViCe= GLACIER/MT4G



If I have helped you please hit the "Thanks" button at the bottom of this post
The Following User Says Thank You to TrueBlue_Drew For This Useful Post: [ Click to Expand ]
 
92drls
Old
#5  
Senior Member
Thanks Meter 36
Posts: 296
Join Date: Jul 2009
Just got back home and tried it. I'm prolly doing it wrong but it says exactly: c:\adb> push c: \adb\480x800_animationparticles1_blue.zip / data/local/bootanimation.zip hit anter and its done, gives me the size and seconds it took to transfer. I type adb reboot and it does but no go on the boot animation, same ol htc stuff

Rom: eViL-4g HD v.0.2.3

Sounds like I have adb successfully setup I just cant seem to figure out how to change the bootanimation. Know of a sure fire ways on the 4g? I could find several through other builds but not for the 4g specifically. I also tried through root explorer and emulator but no luck. Still boots the same, any help?
 
TrueBlue_Drew
Old
(Last edited by TrueBlue_Drew; 25th January 2011 at 11:40 PM.)
#6  
TrueBlue_Drew's Avatar
Recognized Developer - OP
Thanks Meter 1315
Posts: 1,323
Join Date: Jun 2010
Location: Salt Lake City, Utah
Quote:
Originally Posted by 92drls View Post
Just got back home and tried it. I'm prolly doing it wrong but it says exactly: c:\adb> push c: \adb\480x800_animationparticles1_blue.zip / data/local/bootanimation.zip hit anter and its done, gives me the size and seconds it took to transfer. I type adb reboot and it does but no go on the boot animation, same ol htc stuff

Rom: eViL-4g HD v.0.2.3

Sounds like I have adb successfully setup I just cant seem to figure out how to change the bootanimation. Know of a sure fire ways on the 4g? I could find several through other builds but not for the 4g specifically. I also tried through root explorer and emulator but no luck. Still boots the same, any help?
Put the file you are trying to push in the same folder you created.
ReName it bootanimation.zip
To push your file use this command after you cd into the folder you created.
You also need to be in recovery with your system mounted.

adb push bootanimation.zip system/customize/resource/bootanimation.zip

That is the location of the bootanimation on that rom.
Hope this helped
DeViCe= GLACIER/MT4G



If I have helped you please hit the "Thanks" button at the bottom of this post
The Following User Says Thank You to TrueBlue_Drew For This Useful Post: [ Click to Expand ]
 
92drls
Old
(Last edited by 92drls; 26th January 2011 at 06:08 AM.)
#7  
Senior Member
Thanks Meter 36
Posts: 296
Join Date: Jul 2009
Worked great thank you, know how to do the splash screen image too??!

Back on topic, your adb method was very easy and well instructed. I'll be thanking you on payday

Edit: I found the thread about the splash screen by iriscience.. Thanks again
 
TrueBlue_Drew
Old
#8  
TrueBlue_Drew's Avatar
Recognized Developer - OP
Thanks Meter 1315
Posts: 1,323
Join Date: Jun 2010
Location: Salt Lake City, Utah
Quote:
Originally Posted by 92drls View Post
Worked great thank you, know how to do the splash screen image too??!

Back on topic, your adb method was very easy and well instructed. I'll be thanking you on payday

Edit: I found the thread about the splash screen by iriscience.. Thanks again
I do know how to change it but would rather you have the fulfillment of learning how to do it yourself You can find a great guide and splashscreens in the thread by Iriscience. Make sure to thank him for it.

Back on topic, I'm glad this worked good for you. It really is pretty simple. I dont have have a donation link (I do this for the love of helping people mod their phone) but I would appreciate it if you hit the "Thanks" button at the bottom of any post that have helped you.
DeViCe= GLACIER/MT4G



If I have helped you please hit the "Thanks" button at the bottom of this post
The Following 3 Users Say Thank You to TrueBlue_Drew For This Useful Post: [ Click to Expand ]
 
geoffott
Old
#9  
geoffott's Avatar
Junior Member
Thanks Meter 8
Posts: 26
Join Date: Nov 2009
Location: Lakeland, FL
Thanks for this... after two years owning android phones you finally got me to jump into adb instead of relying on the terminal emulator. I had tried before, but my PC never downloaded the SDK correctly, and I could never get it set up. Your download and instructions worked flawlessly.

Question: What is everyone's favorite mod using adb/fastboot? I already changed my splash screen, but I am hooked on trying out my new tool.
Phones: MT3G Black, MT4G Black
Memory: 16GB Class 10SD
Running: MT3G-Who knows? Depends the hour of the day. MT4G-Most recent MIUI build, awaiting ICS
I'm not a dev, I just run a ROM from one.
THANK YOU to ALL Developers/Cookers/InsertCleverNameHere for making my phone what it should have been in the first place.

 
30Glock
Old
#10  
30Glock's Avatar
Senior Member
Thanks Meter 6
Posts: 543
Join Date: Aug 2009
@trueblew, Thank you for this I follow all your threads and your always posting good Information, Your Instructions are simple and usefull. I am now ready to use adb, something I thought I would never venture In, Again Thanks.
SG3

 
Post Reply+
Tags
adb, easy, fastboot, human centipede, install
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...