summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Gaurav Bhola <gauravbhola@google.com> 2023-10-19 22:33:24 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-10-19 22:33:24 +0000
commit30b0ca31ea04f816e20d3cc4e83492f0d9e6f582 (patch)
tree54fb51e8c6ea9f929d64c1d0284b0c68d0eeeebb
parent4960682c763b7cd4ac109fac8bf05598f67032e1 (diff)
parent9dc92af219d12867452f73751b7517a7760c8a8c (diff)
Merge "Ensure that DebuggerWindow is shown on headless systems." into udc-qpr-dev
-rw-r--r--services/core/java/com/android/server/am/AppWaitingForDebuggerDialog.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/am/AppWaitingForDebuggerDialog.java b/services/core/java/com/android/server/am/AppWaitingForDebuggerDialog.java
index 9b5f18caf71a..710278d6b3c6 100644
--- a/services/core/java/com/android/server/am/AppWaitingForDebuggerDialog.java
+++ b/services/core/java/com/android/server/am/AppWaitingForDebuggerDialog.java
@@ -16,6 +16,8 @@
package com.android.server.am;
+import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS;
+
import android.content.Context;
import android.content.DialogInterface;
import android.os.Handler;
@@ -54,6 +56,7 @@ final class AppWaitingForDebuggerDialog extends BaseErrorDialog {
setButton(DialogInterface.BUTTON_POSITIVE, "Force Close", mHandler.obtainMessage(1, app));
setTitle("Waiting For Debugger");
WindowManager.LayoutParams attrs = getWindow().getAttributes();
+ attrs.privateFlags |= SYSTEM_FLAG_SHOW_FOR_ALL_USERS;
attrs.setTitle("Waiting For Debugger: " + app.info.processName);
getWindow().setAttributes(attrs);
}