-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracked-On: OAM-118027 Signed-off-by: Austin Sun <[email protected]>
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
aosp_diff/base_aaos/frameworks/base/999-change-to-debug-mode.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From 73728e113327803d85f33590144cd787229e4a2b Mon Sep 17 00:00:00 2001 | ||
From: Austin Sun <[email protected]> | ||
Date: Mon, 5 Aug 2024 03:14:14 +0000 | ||
Subject: [PATCH] change to debug mode | ||
|
||
Signed-off-by: Austin Sun <[email protected]> | ||
--- | ||
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 | ||
|