Skip to content

Commit

Permalink
change to debug
Browse files Browse the repository at this point in the history
Tracked-On: OAM-118027

Signed-off-by: Austin Sun <[email protected]>
  • Loading branch information
sunausti committed Aug 5, 2024
1 parent 9270e05 commit b126874
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions aosp_diff/base_aaos/frameworks/base/999-change-to-debug-mode.patch
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

0 comments on commit b126874

Please sign in to comment.