This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chcp 65001 | |
@echo fix adb unauthorized issue, can only fix one PC, run it in recovery mode | |
@echo 用于修复nexus6p不能连接adb的问题,在recovery模式下运行此脚本。 | |
set currentDir=%~dp0 | |
@echo add local fastboot to PATH variable | |
@set PATH=%currentDir%lib\platform-tools;%PATH% | |
adb devices 2>nul | findstr /r /c:"recovery" || @echo "error : device not in recovery mode" && pause && exit /B 1 | |
@echo off |