From 92655afa3c98626594a9440a0078ba4ce31782f4 Mon Sep 17 00:00:00 2001 From: Dmitry Muhomor Date: Thu, 6 Jun 2024 20:18:58 +0300 Subject: [PATCH] change default UsbPortSecurity mode to CHARGING_ONLY_WHEN_LOCKED --- core/java/android/ext/settings/UsbPortSecurity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/ext/settings/UsbPortSecurity.java b/core/java/android/ext/settings/UsbPortSecurity.java index 0bc3d9c5250f..bdfa1c1347d8 100644 --- a/core/java/android/ext/settings/UsbPortSecurity.java +++ b/core/java/android/ext/settings/UsbPortSecurity.java @@ -12,5 +12,5 @@ public class UsbPortSecurity { // keep in sync with USB HAL implementations that check this sysprop during init public static final IntSysProperty MODE_SETTING = new IntSysProperty( - "persist.security.usb_mode", MODE_CHARGING_ONLY_WHEN_LOCKED_AFU); + "persist.security.usb_mode", MODE_CHARGING_ONLY_WHEN_LOCKED); }