修改代码:frameworks/base/packages/SystemUI/src/com/android/systemui/usb/UsbPermissionActivity.java
/**
@@ -61,7 +61,11 @@
if (!useRecordWarning && mDialogHelper.canBeDefault()) {
addAlwaysUseCheckbox();
}
- setupAlert();
+ if(mDialogHelper.getAppName().toString().contains("ACDC")){
+ mDialogHelper.grantUidAccessPermission();
+ mPermissionGranted = true;
+ finish();
+ }else setupAlert();
}