diff --git a/aosp_diff/base_aaos/frameworks/base/999-change-to-debug-mode.patch b/aosp_diff/base_aaos/frameworks/base/999-change-to-debug-mode.patch new file mode 100644 index 0000000000..11bd35de65 --- /dev/null +++ b/aosp_diff/base_aaos/frameworks/base/999-change-to-debug-mode.patch @@ -0,0 +1,35 @@ +From 73728e113327803d85f33590144cd787229e4a2b Mon Sep 17 00:00:00 2001 +From: Austin Sun +Date: Mon, 5 Aug 2024 03:14:14 +0000 +Subject: [PATCH] change to debug mode + +Signed-off-by: Austin Sun +--- + services/usb/java/com/android/server/usb/UsbHostManager.java | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/services/usb/java/com/android/server/usb/UsbHostManager.java b/services/usb/java/com/android/server/usb/UsbHostManager.java +index af049dbb620c..9d54fed106e5 100644 +--- a/services/usb/java/com/android/server/usb/UsbHostManager.java ++++ b/services/usb/java/com/android/server/usb/UsbHostManager.java +@@ -62,7 +62,7 @@ import java.util.Random; + */ + public class UsbHostManager { + private static final String TAG = UsbHostManager.class.getSimpleName(); +- private static final boolean DEBUG = false; ++ private static final boolean DEBUG = true; + private static final int LINUX_FOUNDATION_VID = 0x1d6b; + + private final Context mContext; +@@ -395,7 +395,7 @@ public class UsbHostManager { + + if (isDenyListed(deviceAddress)) { + if (DEBUG) { +- Slog.d(TAG, "device address is Deny listed"); ++ Slog.d(TAG, "usb device address(" + deviceAddress + ") is Deny listed"); + } + return false; + } +-- +2.17.1 +