user 版本打开adb

framwork 下

AdbDebuggingManager.java

}

logAdbConnectionChanged(key, AdbProtoEnums.AWAITING_USER_APPROVAL, false);

mFingerprints = fingerprints;

  • startConfirmationForKey(key, mFingerprints);
  • //startConfirmationForKey(key, mFingerprints);

  • allowDebugging(true, key);

break;

}

AdbService.java

* Use the normal bootmode persistent prop to maintain state of adb across

* all boot modes.

*/

  • mIsAdbUsbEnabled = containsFunction(

  • SystemProperties.get(USB_PERSISTENT_CONFIG_PROPERTY, ""),

  • UsbManager.USB_FUNCTION_ADB);

  • //mIsAdbUsbEnabled = containsFunction(

  • // SystemProperties.get(USB_PERSISTENT_CONFIG_PROPERTY, ""),

  • // UsbManager.USB_FUNCTION_ADB);

  • mIsAdbUsbEnabled = true;

boolean shouldEnableAdbUsb = mIsAdbUsbEnabled

文件参考:

https://blog.csdn.net/szf279150710/article/details/140464348

https://blog.csdn.net/m0_71008721/article/details/129755984

相关推荐
sthnyph13 小时前
MySQL 8.0在windows环境安装及配置
windows·mysql·adb
AI-小柒16 小时前
DataEyes 聚合平台 + Claude Code Max 编程实战
android·开发语言·人工智能·windows·python·macos·adb
wuyikeer19 小时前
windows同时安装两个不同版本的Mysql
windows·mysql·adb
小手智联老徐20 小时前
Windows 下 ADB 无线调试与系统级操作指南
android·windows·adb
AI算法董同学21 小时前
【MySQL】项目后端 MySQL 数据库初始化步骤
数据库·mysql·adb
qq_283720052 天前
MySQL技巧(四): EXPLAIN 关键参数详细解释
android·adb
gjc5922 天前
踩坑实录:MySQL服务器CPU爆高,元凶竟是SELinux的setroubleshootd?
运维·服务器·数据库·mysql·adb
yhole2 天前
MySQL无法连接到本地localhost的解决办法2024.11.8
数据库·mysql·adb
guslegend2 天前
MySQL高手第一章
mysql·adb
轩情吖2 天前
MySQL Connect
数据库·mysql·adb·select·连接·远程访问数据库