Android 13.0 默认关闭adb模式(USB调试)

找到 frameworks/base/services/core/java/com/android/server/adb/AdbService.java

Settings.Global.putInt(mContentResolver,
                     Settings.Global.ADB_ENABLED, shouldEnableAdbUsb ? 1 : 0);
 

改为

Settings.Global.putInt(mContentResolver,
                     Settings.Global.ADB_ENABLED, 0);

你可能感兴趣的:(android,adb)