Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change to debug #2560

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading