summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/volume/SafetyWarningDialog.java
Commit message (Collapse)AuthorAgeFilesLines
* Add unaudited exported flag to exposed runtime receiversMichael Groover2022-01-151-1/+2
| | | | | | | | | | | | | | | | | | | Android T allows apps to declare a runtime receiver as not exported by invoking registerReceiver with a new RECEIVER_NOT_EXPORTED flag; receivers registered with this flag will only receive broadcasts from the platform and the app itself. However to ensure developers can properly protect their receivers, all apps targeting T or later registering a receiver for non-system broadcasts must specify either the exported or not exported flag when invoking #registerReceiver; if one of these flags is not provided, the platform will throw a SecurityException. This commit updates all the exposed receivers with a new RECEIVER_EXPORTED_UNAUDITED flag to maintain the existing behavior of exporting the receiver while also flagging the receiver for audit before the T release. Bug: 161145287 Test: Build Change-Id: I5faa64ae0d2b22b62390bf13cb2b87fd6926e0c7
* Don't crash trying to unregister a receiver twice.Josh Tsuji2021-07-131-1/+6
| | | | | | Fixes: 190597198 Test: atest SystemUITests Change-Id: I04c8cca24f9823bab5244126052d31d1b3549c5f
* Fixes import ordering.Gus Prevas2018-11-141-2/+1
| | | | | Test: n/a Change-Id: I432e11b52deb7974e50f62076af3b7aa07e364b6
* add config option for safe volume warningEric Laurent2018-08-131-2/+11
| | | | | | | | | | | | | | | Add boolean configuration option config_safe_media_disable_on_volume_up to customize the behavior of safe volume warning dialog: - When true the dialog can be dismissed with a single press on Vol+ key (default AOSP behavior) - When false it cannot. Initially disabled for Vodaphone DE, UK, ES and IT. Bug: 65155536 Bug: 111667485 Test: make Change-Id: I538d91e570fc962c93264db000dfcfdce90da1f0
* Show volume safety warning for all usersqinglian.x.zhang2016-04-111-0/+1
| | | | | | | The volume safety warning is shown only for owner. It should be shown for all users. Change-Id: I616038e3eecf8523aa5edd48843b0eb444607d2f
* Volume: Port safety warning over to new dialog.John Spurlock2015-04-031-0/+109
And remove obsolete "muted by <x>" disablement. Bug: 19260237 Change-Id: I17dc6d5761aad9ce70cc5aad054489549113e15e