Loading core/java/android/view/WindowManagerPolicyConstants.java +6 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,12 @@ public interface WindowManagerPolicyConstants { String ACTION_USER_ACTIVITY_NOTIFICATION = "android.intent.action.USER_ACTIVITY_NOTIFICATION"; /** * Broadcast sent when a (custom) bugreport is requested. */ String ACTION_CUSTOM_BUGREPORT_REQUESTED = "android.intent.action.CUSTOM_BUGREPORT_REQUESTED"; /** * Sticky broadcast of the current HDMI plugged state. */ Loading core/res/AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ <protected-broadcast android:name="android.intent.action.USER_ACTIVITY_NOTIFICATION" /> <protected-broadcast android:name="android.intent.action.MY_PACKAGE_SUSPENDED" /> <protected-broadcast android:name="android.intent.action.MY_PACKAGE_UNSUSPENDED" /> <protected-broadcast android:name="android.intent.action.CUSTOM_BUGREPORT_REQUESTED" /> <protected-broadcast android:name="android.os.action.POWER_SAVE_MODE_CHANGED" /> <protected-broadcast android:name="android.os.action.POWER_SAVE_MODE_CHANGING" /> Loading core/res/res/values/config.xml +5 −0 Original line number Diff line number Diff line Loading @@ -4287,4 +4287,9 @@ <!-- Whether or not to use assistant stream volume separately from music volume --> <bool name="config_useAssistantVolume">false</bool> <!-- Whether to use a custom Bugreport handling. When true, ACTION_CUSTOM_BUGREPORT_REQUESTED intent is broadcasted on bugreporting chord (instead of the default full bugreport generation). --> <bool name="config_customBugreport">false</bool> </resources> core/res/res/values/symbols.xml +1 −1 Original line number Diff line number Diff line Loading @@ -3800,5 +3800,5 @@ <!-- Assistant handles --> <java-symbol type="dimen" name="assist_handle_shadow_radius" /> <java-symbol type="bool" name="config_customBugreport" /> </resources> services/core/java/com/android/server/policy/PhoneWindowManager.java +10 −1 Original line number Diff line number Diff line Loading @@ -697,7 +697,16 @@ public class PhoneWindowManager implements WindowManagerPolicy { accessibilityShortcutActivated(); break; case MSG_BUGREPORT_TV: boolean customBugreport = mContext.getResources().getBoolean( com.android.internal.R.bool.config_customBugreport); if (customBugreport) { Log.i(TAG, "Triggering a custom bugreport!"); Intent intent = new Intent(ACTION_CUSTOM_BUGREPORT_REQUESTED); intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); mContext.sendBroadcastAsUser(intent, UserHandle.ALL); } else { requestFullBugreport(); } break; case MSG_ACCESSIBILITY_TV: if (mAccessibilityShortcutController.isAccessibilityShortcutAvailable(false)) { Loading Loading
core/java/android/view/WindowManagerPolicyConstants.java +6 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,12 @@ public interface WindowManagerPolicyConstants { String ACTION_USER_ACTIVITY_NOTIFICATION = "android.intent.action.USER_ACTIVITY_NOTIFICATION"; /** * Broadcast sent when a (custom) bugreport is requested. */ String ACTION_CUSTOM_BUGREPORT_REQUESTED = "android.intent.action.CUSTOM_BUGREPORT_REQUESTED"; /** * Sticky broadcast of the current HDMI plugged state. */ Loading
core/res/AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ <protected-broadcast android:name="android.intent.action.USER_ACTIVITY_NOTIFICATION" /> <protected-broadcast android:name="android.intent.action.MY_PACKAGE_SUSPENDED" /> <protected-broadcast android:name="android.intent.action.MY_PACKAGE_UNSUSPENDED" /> <protected-broadcast android:name="android.intent.action.CUSTOM_BUGREPORT_REQUESTED" /> <protected-broadcast android:name="android.os.action.POWER_SAVE_MODE_CHANGED" /> <protected-broadcast android:name="android.os.action.POWER_SAVE_MODE_CHANGING" /> Loading
core/res/res/values/config.xml +5 −0 Original line number Diff line number Diff line Loading @@ -4287,4 +4287,9 @@ <!-- Whether or not to use assistant stream volume separately from music volume --> <bool name="config_useAssistantVolume">false</bool> <!-- Whether to use a custom Bugreport handling. When true, ACTION_CUSTOM_BUGREPORT_REQUESTED intent is broadcasted on bugreporting chord (instead of the default full bugreport generation). --> <bool name="config_customBugreport">false</bool> </resources>
core/res/res/values/symbols.xml +1 −1 Original line number Diff line number Diff line Loading @@ -3800,5 +3800,5 @@ <!-- Assistant handles --> <java-symbol type="dimen" name="assist_handle_shadow_radius" /> <java-symbol type="bool" name="config_customBugreport" /> </resources>
services/core/java/com/android/server/policy/PhoneWindowManager.java +10 −1 Original line number Diff line number Diff line Loading @@ -697,7 +697,16 @@ public class PhoneWindowManager implements WindowManagerPolicy { accessibilityShortcutActivated(); break; case MSG_BUGREPORT_TV: boolean customBugreport = mContext.getResources().getBoolean( com.android.internal.R.bool.config_customBugreport); if (customBugreport) { Log.i(TAG, "Triggering a custom bugreport!"); Intent intent = new Intent(ACTION_CUSTOM_BUGREPORT_REQUESTED); intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); mContext.sendBroadcastAsUser(intent, UserHandle.ALL); } else { requestFullBugreport(); } break; case MSG_ACCESSIBILITY_TV: if (mAccessibilityShortcutController.isAccessibilityShortcutAvailable(false)) { Loading