StatsManager used to synchronize on "this", which is dangerous because
an app can get StatsManager and also sychronize on it, which would block
all calls. We now lock on a private final object.
Test: make
Bug: 144315658
Fixes: 144315658
Change-Id: Ia34b1c586b09a48b244cc16dba77fe54e81f62cf
Test: manual - 1) adb shell settings put secure allow_any_notif_to_bubble 1
2) get an notification for an activity that isn't resizable
3) longpress on the notif, note the bubble menu is there
4) select bubble
=> the notification becomes a bubble
Bug: 143173197
Change-Id: Ie0b91971a969203000d9cfa19b50e44fd4c9c490
This reverts commit 0ffa15ab5f.
Reason for revert: Checking treehugger to see if this fixes instagram
input handling.
Bug: 144619551
Change-Id: I606c651f7ec1ea8c26ecc92fc5e94994a480950b
Flipping this on by default means that MessageStyle notifs with enough
info to bubble will show a "bubble" option in the notif longpress menu.
Bug: 145763712
Test: manual - get a hangouts message, longpress on it, see bubble option
Change-Id: Ied9e5dba58b2d717a43a687a3900391dd8fc1646
- Send intent (android.internal.intent.action.BUGREPORT_REQUESTED) to bug report handler app after pressing Bug Report Shortcut
- Add config "config_bugReportHandlerEnabled" to enable this feature
- Add config "config_defaultBugReportHandlerApp" to get the package of default bugreport handler app
- Add settings CUSTOM_BUGREPORT_HANDLER_APP to get the package of custom bugreport handler app
- Add settings CUSTOM_BUGREPORT_HANDLER_USER to get the user id of custom bugreport handler app
BUG:142921485
Test: After pressing Bug Report Shortcut in manual local test:
- the intent can be sent to bugreport handler app.
- the intent can be sent to Shell if the chosen and the default bugreport handler app can't handle it.
- the intent can be sent to system user profile's default bugreport handler app if the custom profile(like work profile) is removed.
Change-Id: Idc33b47f0cc65b90cbf648bda54a1d900fef007a
and revokeDefaultPermissionsFromLuiApps from PermissionManagerService to
Permmission Manager
Bug: 142019744
Test: Build
Change-Id: Ic39e1a66b650e7969242eb2116f342de488b1ca6
When strong auth changes, the lockdown mode could change which
changes whether we show certain notifications so we must invalidate
the KeyguardCoordinator's NotifFilter to prevent b/78020486.
Test: manual
Bug: 145659174
Bug: 145134683
Change-Id: I5e7ad481fad1323943ac7bfe6d858efd0b8a0b32
As part of becoming a Mainline module, we need to understand basic
information about the health of our module in the wild. For the
MediaProvider module, we're interested in identifying these cases:
-- When scan operations result in an unexpectedly large number of
inserts, updates, or deletes in proportion to the total number of
files indexed. This typically indicates user data loss or a missing
database upgrade step.
-- When the overall duration of scan operations becomes significantly
slower in relation to the number of files indexed. This typically
indicates an indexing performance regression.
-- When a scan operation skips over an entire directory tree. This
can indicate an app placing ".nomedia" files in unexpected locations.
-- When a large number of media files are deleted by a specific
app. This can help identify data loss bugs caused by MediaProvider
directly, or attribute data loss bugs in other apps.
-- When database upgrade/downgrade operations take a substantial
amount of time in proportion to the total number of files. This
typically indicates a performance regression.
-- When performing idle maintenance, a large number of stale or
expiring media can indicate an invalidation bug.
Bug: 143723019
Test: manual
Change-Id: I89c5b5b51a843a67348a7bb4b8e6ac01fb2b15b9