Enable send-feedback workflow on user builds on TV

Bug: 282665409
Test: manual
Change-Id: I7e5f4e1b019d97b89d266b838149d12246602aac
This commit is contained in:
Philip Junker
2023-07-07 12:19:43 +02:00
parent 4d77dc47fe
commit c250fddf39

View File

@@ -3442,16 +3442,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);
}
}