当前位置: 首页 > news >正文

不能识别adb/usb口记录 - 实践

1. 插上usb线没有充电图标 也不能识别usb

一般都出现在设备重启之后.

充电芯片加载失败.

./AP_Logs/APLog_0002_2025_1010_0434/boot.last/logcat_all.log:02-04 21:07:43.206 494 494 Esc8960x-charger 0-006b: sc8960x read field 52 fail: -107
./AP_Logs/APLog_0002_2025_1010_0434/boot.last/logcat_all.log:02-04 21:07:43.225 494 494 Esc8960x-charger 0-006b: read device version failed(-107)
./AP_Logs/APLog_0002_2025_1010_0434/boot.last/logcat_all.log:02-04 21:07:43.251 494 494 Isc8960x-charger0-006b: sc8960x prob failed

2 .插上usb线有充电图标 也不能识别usb

//从日志上推测
[ro.boot.bootreason]: [reboot,shell]
//开机动画做完
10-14 14:41:56.131 2025 2116 I wm_boot_animation_done: 21081
//adb 就出现了问题
10-14 14:41:56.746 1852 2799 W adbd : timed out while waiting forFUNCTIONFS_BIND, trying again
//猜测脚本中断了,人工拔插USB线。 中断时间在大概7分钟
[Tue Oct 14 19:48:44 2025] sc8960x-charger 0-006b:sc8960x_plug_out

查看代码:

上层adbd无法收到通讯。

packages/modules/adb/daemon/usb.cpp

monitor_thread_ = std::thread([this]() {
adb_thread_setname("UsbFfs-monitor");
LOG(INFO) << "UsbFfs-monitor thread spawned";

bool bound = false;
bool enabled = false;
bool running = true;
while (running) {
adb_pollfdpfd[2] = {
{ .fd = control_fd_.get(), .events = POLLIN, .revents = 0 },
{ .fd = monitor_event_fd_.get(), .events = POLLIN, .revents = 0 },
};

// If we don't see our first bind within a second, try again.
int timeout_ms = bound ? -1 : 1000;

int rc = TEMP_FAILURE_RETRY(adb_poll(pfd, 2, timeout_ms));
if (rc == -1) {
PLOG(FATAL) << "poll on USB control fd failed";
} else if (rc == 0) {

//一直得到不到通讯.
LOG(WARNING) << "timed out while waiting for FUNCTIONFS_BIND, trying again";
break;
}

http://www.jsqmd.com/news/40541/

相关文章:

  • 恭喜自己,挑战成功! - Ghost
  • 如何在测试覆盖不足后补充验证
  • react动态表单
  • 完整教程:PDFBox - PDDocument 与 byte 数组、PDF 加密
  • Dark Side of the Moon
  • flask:自定义异常
  • 图片合集
  • OpenWrt路由的端口映射问题
  • 算法沉淀第七天(AtCoder Beginner Contest 428 和 小训练赛) - 详解
  • How-to-extract-text-from-PDF-Image-files-OCR-CarlZeng
  • Web应用模糊测试完全指南
  • 升鲜宝供应链管理系统、各端的访问地址及nginx 真实的配置方法
  • uiautomator2元素查看器WEditor的安装和启动
  • WEditor的使用方法
  • 【题解】LOJ6300. 「CodePlus 2018 3 月赛」博弈论与概率统计
  • 感情粉末沿着试管边缘 在祝福中逐渐分解 加热认知离子重新排列 于底部悲伤沉淀
  • C#循序渐进 - 详解
  • 2025.11.14 - A
  • 从RvmTranslator到PlantAssistant
  • MI50 在ubuntu 下 风扇控制实现
  • PortSwigger靶场之 CSRF where token is not tied to user session通关秘籍 - 实践
  • nvm不能下载安装低版本node解决办法
  • flask: 抛出异常
  • 20251114——读后感5
  • 雪地奔驰全等级提升所需经验一览
  • 2025皮肤亚健康管理品牌最新专业推荐:科技赋能健康美新生态
  • 【HT-086-Div.2】嗡嗡蜜蜂
  • 第四十一篇
  • 深入解析:Vue3 路由配置和使用与讲解(超级详细)
  • 好题集 (0) - 目录