Loading services/core/java/com/android/server/policy/PhoneWindowManager.java +5 −3 Original line number Diff line number Diff line Loading @@ -697,7 +697,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { accessibilityShortcutActivated(); break; case MSG_BUGREPORT_TV: requestFullBugreport(); requestFullBugreportOrLaunchHandlerApp(); break; case MSG_ACCESSIBILITY_TV: if (mAccessibilityShortcutController.isAccessibilityShortcutAvailable(false)) { Loading Loading @@ -3061,12 +3061,14 @@ public class PhoneWindowManager implements WindowManagerPolicy { return mAccessibilityTvScheduled; } private void requestFullBugreport() { private void requestFullBugreportOrLaunchHandlerApp() { 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().requestFullBugReport(); } } catch (RemoteException e) { Slog.e(TAG, "Error taking bugreport", e); } Loading Loading
services/core/java/com/android/server/policy/PhoneWindowManager.java +5 −3 Original line number Diff line number Diff line Loading @@ -697,7 +697,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { accessibilityShortcutActivated(); break; case MSG_BUGREPORT_TV: requestFullBugreport(); requestFullBugreportOrLaunchHandlerApp(); break; case MSG_ACCESSIBILITY_TV: if (mAccessibilityShortcutController.isAccessibilityShortcutAvailable(false)) { Loading Loading @@ -3061,12 +3061,14 @@ public class PhoneWindowManager implements WindowManagerPolicy { return mAccessibilityTvScheduled; } private void requestFullBugreport() { private void requestFullBugreportOrLaunchHandlerApp() { 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().requestFullBugReport(); } } catch (RemoteException e) { Slog.e(TAG, "Error taking bugreport", e); } Loading