红米电视 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
相关推荐
孙晓鹏life3 小时前
MySQL-Seconds_behind_master的精度误差
android·mysql·adb
ttwuai1 天前
GoFrame 连接 MySQL 报错排查:parseTime、时区和 utf8mb4 怎么配
数据库·mysql·adb
儒雅的大叔3 天前
MySQL数据库InnoDB数据恢复工具使用总结
数据库·mysql·adb
zhangjin11203 天前
解决adb -s 按Tab键不自动选择设备的问题
adb
逆向编程3 天前
MySQL 负载均衡完整入门实战教程
mysql·adb·负载均衡
红糖奶茶3 天前
MySQL 8.0的自增主键持久化特性
数据库·mysql·adb
我会尽全力 乐观而坚强5 天前
MySQL零基础入门(二)
数据库·mysql·adb
霸道流氓气质5 天前
Kiro 配置 MySQL MCP Server 通用教程
数据库·mysql·adb·mcp·kiro
运维大师5 天前
【安全与故障排查】03-【复盘】数据库被入侵:从发现到溯源全过程
数据库·安全·adb
Java小白笔记6 天前
MySQL中存储过程大表分批删除历史数据
android·mysql·adb