红米电视 ADB 安装 app 报错 failed to authenticate xxx:5555

  1. 开启电视开发者模式,允许安装未知来源应用及开启 ADB 调试

  2. 电脑端下载 adb 工具 点击下载

  3. 同一局域网的电脑使用 adb 工具连接(提前查看电视 IP)

    shell 复制代码
    D:\adb>adb connect 192.168.1.7
    * daemon not running; starting now at tcp:5037
    * daemon started successfully
    failed to authenticate to 192.168.1.7:5555

    提示未授权

    shell 复制代码
    D:\adb>adb connect 192.168.1.7
    already connected to 192.168.1.7:5555

    再次连接,提示已连接

    shell 复制代码
    D:\adb>adb devices
    List of devices attached
    192.168.1.7:5555        unauthorized

    查看已连接设备,显示未授权

    shell 复制代码
    D:\adb>adb install 电视家.apk
    error: device unauthorized.
    This adb server's $ADB_VENDOR_KEYS is not set
    Try 'adb kill-server' if that seems wrong.
    Otherwise check for a confirmation dialog on your device.
    Performing Push Install
    adb: error: failed to get feature set: device unauthorized.
    This adb server's $ADB_VENDOR_KEYS is not set
    Try 'adb kill-server' if that seems wrong.
    Otherwise check for a confirmation dialog on your device.

    尝试直接安装 APK,报错未授权

  4. 停止 adb 服务,删除 用户/.android 目录下的 adbkeyadbkey.pub

    shell 复制代码
    adb kill-server
  5. 重启 adb 服务

    shell 复制代码
    adb start-server
    * daemon not running; starting now at tcp:5037
    * daemon started successfully
  6. 重新连接电视,并且注意观察电视上的弹框提示,允许 xx 设备调试(返回桌面,否则可能无法弹出提示框)

    shell 复制代码
    D:\adb>adb connect 192.168.1.7
    connected to 192.168.1.7:5555
  7. 再次查看连接设备,没有未授权的提示了

    shell 复制代码
    D:\adb>adb devices
    List of devices attached
    192.168.1.7:5555        device
  8. 再次安装 APK 即可成功

    shell 复制代码
    D:\adb>adb install 电视家.apk
    Performing Streamed Install
    Success
相关推荐
易点云徐源13 小时前
(已解决)adb devices 不显示设备,但 Windows 的 ADB Interface 正常:一次 WinUSB 与旧版 ADB 兼容性排查实战
windows·adb
夜雪一千1 天前
MySQL 全局锁是什么?原理、风险、备份踩坑完整实战
android·mysql·adb
clorinda1 天前
MySQL 入门笔记:DQL 基础查询与常用函数
adb
Code额1 天前
基于 SQLAlchemy 2.x,面向 MySQL 数据库的从入门到精通实战教程(2)
数据库·sql·mysql·adb·ai
游戏开发爱好者82 天前
WebSocket 抓包怎么查看内容?从握手到消息帧完整解读
网络协议·计算机网络·网络安全·ios·adb·https·udp
00后程序员张3 天前
SSL Pinning 抓包抓不到明文?绕过证书固定的几种方案
网络协议·计算机网络·网络安全·ios·adb·https·udp
没文化的阿浩5 天前
【MySQL】数据类型
android·mysql·adb
黄毛火烧雪下5 天前
智能眼镜无线adb调试
adb
游戏开发爱好者85 天前
带签名时间戳接口的重放与压力测试实战,用动态值在发送前现算签名
网络协议·计算机网络·网络安全·ios·adb·https·压力测试
Lethehong7 天前
MySQL迁移如何做到零改造?四层兼容方案详解
数据库·mysql·adb