summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
author Jing Ji <jji@google.com> 2021-12-07 14:51:43 -0800
committer Jing Ji <jji@google.com> 2022-01-25 14:33:21 -0800
commit0c6603973ad136a3e730d0fb8c571d9468db2f6c (patch)
tree5048b73312fe8d3f81f699043f37e7e5461a2d4c /proto
parentb5f28a5ee6d1df3c7609ac8dc6a80fbb8d642303 (diff)
Post notification on abusive background current drain
Tapping on the notification will bring up the individual abusive app's battery settings page. It won't be re-posted after being dismissed until next day, in order to avoid from spamming the user. Bug: 200326767 Bug: 203105544 Test: FrameworksMockingServicesTests:BackgroundRestrictionTest Test: Manual - adb shell am set-bg-abusive-uids & verify notification Change-Id: I0b30014d748863c66c3845b5f310948a9493e302
Diffstat (limited to 'proto')
-rw-r--r--proto/src/system_messages.proto6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto/src/system_messages.proto b/proto/src/system_messages.proto
index 196c6aaa7fcb..e89dda90a2dd 100644
--- a/proto/src/system_messages.proto
+++ b/proto/src/system_messages.proto
@@ -362,5 +362,11 @@ message SystemMessage {
// Notify the user that some accessibility service has view and control permissions.
// package: android
NOTE_A11Y_VIEW_AND_CONTROL_ACCESS = 1005;
+
+ // Notify the user an abusive background app has been detected.
+ // Package: android
+ // Note: this is a base ID, multiple notifications will be posted for each
+ // abusive apps, with notification ID based off this ID.
+ NOTE_ABUSIVE_BG_APPS_BASE = 0xc1b2508; // 203105544
}
}