From 94b62d998dc74826c789653076088edc4686d0f2 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Thu, 26 Aug 2021 15:28:24 -0700 Subject: [PATCH] Add canAllowWhileInUsePermissionInFgsLocked() method back. Previous automerge from rvc-dev branch has removed this method, which causes build failure on rvc-qpr-dev branch. Bug: 197891691 Test: build and run. Merged-In: Idc88f274c7a323d175d65bb47eca041772ae9bb7 Change-Id: I5b39c6d79d0ebf2d73118bebf76160aca74d4f22 --- .../core/java/com/android/server/am/ActiveServices.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/core/java/com/android/server/am/ActiveServices.java b/services/core/java/com/android/server/am/ActiveServices.java index e4dd8756fe62b..c7391f27bd434 100644 --- a/services/core/java/com/android/server/am/ActiveServices.java +++ b/services/core/java/com/android/server/am/ActiveServices.java @@ -4982,4 +4982,11 @@ public final class ActiveServices { } return false; } + + boolean canAllowWhileInUsePermissionInFgsLocked(int callingPid, int callingUid, + String callingPackage) { + return shouldAllowWhileInUsePermissionInFgsLocked( + callingPackage, callingPid, callingUid, null, null, false); + } + }