Make sure default push_messaging_over_quota_behavior is
TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_NOT_ALLOWED.

CTS test expects the default push_messaging_over_quota_behavior in frameworks is TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_NOT_ALLOWED, but somehow the test device has its push_messaging_over_quota_behavior changed and it causes the CTS test failure. The reason push_messaging_over_quota_behavior is changed might because a ongoing experiment.

Also after configuring the device_config push_messaging_over_quota_behavior,
sleep a few seconds to let it become effective in frameworks code,
otherwise the test case testPushMessagingOverQuota may be flaky.

Bug: 202204998
Test: atest android.app.cts.ActivityManagerFgsBgStartTest#testTempAllowListReasonCode
Change-Id: Id2eea54e97df900e86255d8a3aa55cb551903ff7
(cherry picked from commit 36d772eafac5c8bf9a89021bca0a1f3c17e0b986)
Merged-In: Id2eea54e97df900e86255d8a3aa55cb551903ff7
1 file changed