红米电视 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
相关推荐
SH11HF2 天前
小菜狗的云计算之旅,今天学习MySQL数据库基础知识及操作
adb
@Ryan Ding2 天前
MySQL主从复制与读写分离概述
android·mysql·adb
feifeigo1232 天前
升级到MySQL 8.4,MySQL启动报错:io_setup() failed with EAGAIN
数据库·mysql·adb
Edingbrugh.南空3 天前
Flink MySQL CDC 环境配置与验证
mysql·adb·flink
陈卓4103 天前
MySQL-主从复制&分库分表
android·mysql·adb
ladymorgana3 天前
【docker】修改 MySQL 密码后 Navicat 仍能用原密码连接
mysql·adb·docker
好奇的菜鸟4 天前
如何在Ubuntu上检查MySQL是否启动并放开3306端口
mysql·ubuntu·adb
OneT1me4 天前
adb shell中执行system用户权限命令的方法
adb
Polaris_YJH4 天前
360安全卫士占用5037端口(ADB端口)解决方案
adb·端口占用·5037
雨之小14 天前
RK3588调试之旅:adbd服务配置全攻略
adb·rk3588