当前位置: 首页 > 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.gsyq.cn/news/49825.html

相关文章:

  • react动态表单
  • flask:自定义异常
  • 算法沉淀第七天(AtCoder Beginner Contest 428 和 小训练赛) - 详解
  • 深入解析:【从0开始学习Java | 第22篇】反射
  • 【题解】LOJ6300. 「CodePlus 2018 3 月赛」博弈论与概率统计
  • C#循序渐进 - 详解
  • 2025.11.14 - A
  • 从RvmTranslator到PlantAssistant
  • PortSwigger靶场之 CSRF where token is not tied to user session通关秘籍 - 实践
  • 【HT-086-Div.2】嗡嗡蜜蜂
  • 第四十一篇
  • 好题集 (0) - 目录
  • 2025年成绩差的孩子该用学习机吗?松鼠AI双线模式测评及选购指南
  • CF 1844G Tree Weights
  • Vue3边学边做系列(5)--布局切换菜单事件标签页 - 实践
  • 2025年11月徐州网站建设服务商综合评测与选择指南
  • 2025年11月眉笔选购指南:花西子/植村秀/珂拉琪等5大品牌实测,新手闭眼入款竟是它​
  • Upcoming Rust language features for kernel development - 教程
  • 详细介绍:Linux网络性能测试利器:iperf3使用指南
  • linux 安装telnet 服务
  • 2025高压合金管实力厂家推荐榜:5310/6479 高压合金管型号领衔,天津大无缝联合钢铁有限公司五星领跑工业用材赛道
  • 2025扫描电镜精选榜:富泰微五星领衔,日立、国仪携超高分辨率/钨灯丝 SEM,适配科研工业多元需求
  • 2025济南单招综评培训机构排行榜:3 家实力学校口碑出圈 易升教育五星优选 解锁适配不同考生的升学备考靠谱路径
  • 102302141_易敏亮第三次数据采集作业
  • 2025广东洗头机厂家推荐榜:盛泰科技领衔,三大品牌解锁高效洗护新体验
  • mysql数据设计中的性能分析工具
  • 2025北京日式搬家公司企业推荐:单位搬家公司/北京搬家公司电话/全流程服务与技术实力深度解析
  • 2025年第43周数字取证与事件响应技术动态
  • 深入解析:【Linux基础学习】Linux Ubuntu 权限管理:从入门到精通
  • 看不见的核安全:核控制系统如何降低测试风险?