Using ADB and fastboot

What is adb?

The Android Debug Bridge (adb) is a development tool that facilitates communication between an Android device and a personal computer. This communication is most often done over a USB cable, but Wi-Fi connections are also supported.

adb is like a “Swiss-army knife” of Android development. It provides numerous functions that are described in detail by the command adb --help. Some of the more commonly used commands are listed in the “popular adb commands” section below.

Installing adb and fastboot

Google hosts zips including only adb and fastboot. You can set these up for use with the instructions below.

On Windows

  1. Download the Windows zip from Google.
  2. Extract it somewhere - for example, %USERPROFILE%\adb-fastboot
  3. On Windows 7/8:
    • From the desktop, right-click My Computer and select Properties
    • In the System Properties window, click on the Advanced tab
    • In the Advanced section, click the Environment Variables button
    • In the Environment Variables window, highlight the Path variable in the Systems Variable section and click the Edit button
    • Append ;%USERPROFILE%\adb-fastboot\platform-tools to the end of the existing Path definition (the semi-colon separates each path entry)
  4. On Windows 10:
    • Open the Start menu, and type “advanced system settings”
    • Select “View advanced system settings”
    • Click on the Advanced tab
    • Open the “Environment Variables” window
    • Select the Path variable under “System Variables” and click the “Edit” button
    • Click the “Edit Text” button
    • Append ;%USERPROFILE%\adb-fastboot\platform-tools to the end of the existing Path definition (the semi-colon separates each path entry)
  5. Install the universal adb driver, and reboot.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
What is this? This is All-in-One installer for 3 most needed PC tools for Android. No need to download big SDK for 3 small things. I originaly made it for my Kurdish friend AnGrY DuDe in early 2013. I saw another ADB installer on XDA, but it wasn't good enough for me so i'm finaly posting it here. It's very small and fast installer for tools and drivers. Features: Small - 9.18 MB Fast - 15 seconds install (many times its even less) AIO - ADB, Fastboot and also Drivers Easy to install - just run it and program will guide you Clean - ADB and Google Drivers from latest SDK Install process: 1. Run it (Require administrator privileges) 2. Press Y/Yes to install ADB and Fastboot or N/No to skip 3. Press Y/Yes to install ADB system-wide or N/No for current user only 4. Press Y/Yes to install Drivers or N/No to skip 5. Continue Driver installation 6. 15 seconds passed - finished! Notes: System-wide: ADB and Fastboot are installed to %SystemDrive%\adb directory, and added system-wide path. Current user only: ADB and Fastboot are installed to %UserProfile%\adb directory, and added path for current user. CMD can use ADB and Fastboot from any directory. Drivers are installed to system - no need to install them from directories. Installer automaticly decides if install 32-bit or 64-bit drivers. If anybody got problem with detecting device, go see picture guide howto_driver.zip If installation fails, then post here contents of "adb-installer.log" from desktop. (if there is any) If you have problem with driver enumeration in Windows 8.1 install update KB2917929 If you have older Google USB Driver installed, please uninstall it from Control Panel before installing new If you have previously installed it as system-wide and now you want it current user only (or vice-versa), it won't remove it, you must do it yourself. (at least for now)
HTC目前的系统结构都是几个储存分区独立存在而又关联的。 一个完整的官方rom解开如下所示(参考) boot.img system.img recovery.img hboot.nb0 data.img cache.img radio.img 等等。。。 我们所说的刷机也仅仅是boot.img引导分区加上system.img系统分区、 那么很多同学卡在第一屏,白屏。或者recovery无法进入(有时候涉及到系统文件不完整,一般都是未刷入第三方recovery) 都是因为boot系统内核(引导分区)加上system不匹配,造成不能正确引导所致。 既然知道了问题所在,接下来就有几种解决方案了 第一:手动刷入boot。或者recovery。 通过fastboot命令刷入。 首先必须要有fastboot支持,官方刷机包里面都自带。我这里提取给大家 解压运行里面的cmd.exe 我的是直接在系统里面提取的cmd。不一定都适用。如果不能运行那就 点击开始-运行-cmd 进入这个文件夹。运行fastboot命令 手机进入fastboot模式有2种方法。如果你的手机能用adb识别到,有时候卡在第一屏也可以识别 你可以先运行 adb devices 如下图显示说明此时adb命令是可以运行的,也可以做更多的事情。 那么我们通过adb命令进入fastboot吧。 运行命令adb reboot bootloader 这样手机就进入fastboot usb模式,如果电脑驱动没装好,这里会识别不到的 第二种进入方法是,手机完全断电,按住音量向下+电源键不放。进入hboot之后点击下电源键 接下来就是刷入boot和recovery了。 把recovery.img和boot.img提取放到刚才下载的文件夹里面。 回到cmd。运行命令。 单刷boot.img命令 : fastboot flash boot boot.img 单刷recovery.img命令 : fastboot flash recovery recovery.img 当然这里不排除有些机器因为民间解锁后刷官方ROM以及升级hboot的问题出错。 我刚才也是刷了4.0系统的官方rom造成错误,然后刷了一个hboot解决掉了 如果以上还达不到你的要求,那么,继续下一步吧。 第二节:刷入原生官方rom 大家经常遇到的就是手机无法进入系统,刷机各种报错,无法进recovery,那好。我刷htc官方rom总行吧。 但是,经过解锁的机器。有很多局限性。什么cid错误啊,什么版本错误啊。。眼花缭乱了吧。 下面我们一htc sensation和htc raider为例说明下刷机方法。 如果htc sensation和raider都是官方解锁的话。刷入完整的官方rom需要先上锁。 具体方法请参考这里: HTC Raider 4G/X710e/突袭者刷回官方ROM教程 http://bbs.dospy.com/viewthread.php?tid=14412965&bbsid=354&page=1&extra=page=1#pid210911214 那如何选择官方ROM呢。哪一个才是适合自己的手机呢? 这里我给大家提供下对应方法, 回到cmd界面,运行命令。 fastboot getvar all
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值