From 52debeb5b9988e9c392d20efc368b04a9131a493 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Wed, 19 Feb 2020 13:07:48 -0800 Subject: Show a notification when FGS while-in-use permission is restricted. Change from showing a toast to a notification. Bug: 136219221 Test: atest cts/tests/app/src/android/app/cts/ActivityManagerApi29Test.java to trigger the notification. Change-Id: If22a72fb5a70b14d0b424fbcfe6d1e5c70f2a34d --- proto/src/system_messages.proto | 3 +++ 1 file changed, 3 insertions(+) (limited to 'proto') diff --git a/proto/src/system_messages.proto b/proto/src/system_messages.proto index eda3fb9c8698..cff55046fc2b 100644 --- a/proto/src/system_messages.proto +++ b/proto/src/system_messages.proto @@ -252,6 +252,9 @@ message SystemMessage { // Package: android NOTE_ID_WIFI_SIM_REQUIRED = 60; + // Inform the user a foreground service while-in-use permission is restricted. + NOTE_FOREGROUND_SERVICE_WHILE_IN_USE_PERMISSION = 61; + // ADD_NEW_IDS_ABOVE_THIS_LINE // Legacy IDs with arbitrary values appear below // Legacy IDs existed as stable non-conflicting constants prior to the O release -- cgit v1.2.3