Merge "Enable send-feedback workflow on user builds on TV" into main

This commit is contained in:
Philip Junker
2023-07-11 09:03:18 +00:00
committed by Android (Google) Code Review

View File

@@ -3535,16 +3535,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
}
private void requestBugreportForTv() {
if ("1".equals(SystemProperties.get("ro.debuggable"))
|| Settings.Global.getInt(mContext.getContentResolver(),
Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0) == 1) {
try {
if (!ActivityManager.getService().launchBugReportHandlerApp()) {
ActivityManager.getService().requestInteractiveBugReport();
}
} catch (RemoteException e) {
Slog.e(TAG, "Error taking bugreport", e);
try {
if (!ActivityManager.getService().launchBugReportHandlerApp()) {
ActivityManager.getService().requestInteractiveBugReport();
}
} catch (RemoteException e) {
Slog.e(TAG, "Error taking bugreport", e);
}
}