高通QFIL,开关usb调试端口,无法识别到下载端口
在UsbDeviceManager 中private void setAdbEnabled(boolean enable) {if (DEBUG) Slog.d(TAG, "setAdbEnabled: " + enable);if (enable != mAdbEnabled) {mAdbEnabled = enable;/*jicong.wang modify for bug 8540 sta
·
在UsbDeviceManager 中
private void setAdbEnabled(boolean enable) {
if (DEBUG) Slog.d(TAG, "setAdbEnabled: " + enable);
if (enable != mAdbEnabled) {
mAdbEnabled = enable;
/*jicong.wang modify for bug 8540 start {@*/
String functions = getSystemProperty("persist.vendor.usb.config", "");
if (enable) {
setSystemProperty(USB_PERSISTENT_CONFIG_PROPERTY,functions);
functions = UsbHandlerLegacy.addFunction(functions, UsbManager.USB_FUNCTION_ADB);
} else {
setSystemProperty(USB_PERSISTENT_CONFIG_PROPERTY, "");
functions = UsbHandlerLegacy.removeFunction(functions,UsbManager.USB_FUNCTION_ADB);
}
setSystemProperty("persist.vendor.usb.config",functions);
/*jicong.wang modify for bug 8540 end @}*/
setEnabledFunctions(mCurrentFunctions, true);
updateAdbNotification(false);
}
更多推荐
所有评论(0)