This thread will be dedicated to learning about and teaching our members about fastboot and adb commands. It is a work in progress. If you have any specific questions, please don't hesitate to ask or PM. This is a guide specific to the Nexus 7 running fastboot commands from a Windows PC.Lesson OneWhat is fastboot and how do I use it?
Fastboot is a tool used by the Android development platform, mainly for diagnostic and flashing partitions, over a USB interface. There is a driver seperate from your USB device drivers that allows the communication protocol. I will assume that the normal device drivers are installed before proceeding to fastboot commands. The fastboot tool is device specific. The tool is available in the Android SDK and must be compiled. Most toolkits for your device have the drivers already compiled for you and are contained in the root of the tool folder.
In order to use the fastboot tool, your device must be in the fastboot mode. The simplest way to get there is to hold both volume buttons while powering on.
I will assume that this lesson is redundant if you are using an Android SDK. For those who are not, you must execute the fastboot commands from a command prompt within the directory that the tool is located, unless the tool binary is in your PATH. It is easy to add the tool binaries to your PATH, but you must have a folder that is stationary containing the tools and binaries. on a windows computer, clicck START>right click My Computer>Properties>Advanced>Environment Variables>System Variables>double click Path. Add the full path to your tools folder.
If this seems too complicated, close all windows on your PC. Click Start>Run>cmd [hit enter].
This should bring up a command window. This will be where the fastboot commands are executed. There should be a command prompt with a file path. You need to place the fastboot file in this file path. Once the files are placed in this path, boot into fastboot mode, open a command window and type "fastboot devices" you should see this.
list of devices attached
[device serial number] device
If this is not what you see, double check the path that you entered or make sure that the files are placed at your command prompt path.
If you see the serial number you have already begun sucessfully using fastboot commands. What is "adb" and how do I use it?
Adb is what is known as Android Debugging Bridge. It is another communication protocol that functions inside the Android operating system. There are three portions of the protocol: client, server, and daemon. The client is run from the computer, the server is also on the computer, but only manages the communication, and the daemon runs on the device. This protocol can move files and perform functions with your data inside the OS. With Android version 4.2.2 there has been a security feature added requiring one to unlock the device and allow the connection upon the first connection to a new client.
Adb is used through a command prompt as well. USB debugging is required. Go to Settings>Developer Options>Android Debugging. Make sure this option is checked. If you extract the contents of the download folder and add it to your path, there should be no further setup. If you were not able to setup your path, follow the same procedure mentioned above by manually moving the files. You should be able to begin adb commands. Open a command window while connected to USB with debugging enabled (you should have a notification icon, windows may also install new drivers on first connection) type "adb devices." you should see the following.
* daemon not running. starting it now on port 5037 *
* daemon started sucessfully *
List of devices attached
[device serial number] device
download link for Nexus 7 platform-tools download here