Skip to content

Instantly share code, notes, and snippets.

@tp7309
tp7309 / auth_adb.bat
Last active November 18, 2022 09:58
fix adb unauthorized issue
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