summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hui Yu <huiyu@google.com> 2023-03-17 00:17:38 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-03-17 00:17:38 +0000
commit88c5443eb062f7a7f00cd8df42ff2171ac814b94 (patch)
tree69c1d35dd31aee24ef8b82ef79d6280eba49f013
parent8092950a6789af89d437712390a349a61723736a (diff)
parent8797e1f00b829c9ed2e4d3f267218f3668b15580 (diff)
Merge "Add interface tempAllowWhileInUsePermissionInFgs() to ActivityManagerInternal." into udc-dev
-rw-r--r--core/java/android/app/ActivityManagerInternal.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityManagerInternal.java b/core/java/android/app/ActivityManagerInternal.java
index 90427cb51c26..b96f8c94aaa3 100644
--- a/core/java/android/app/ActivityManagerInternal.java
+++ b/core/java/android/app/ActivityManagerInternal.java
@@ -994,6 +994,16 @@ public abstract class ActivityManagerInternal {
*/
public abstract void logFgsApiEnd(int apiType, int uid, int pid);
+ /**
+ * Temporarily allow foreground service started by an uid to have while-in-use permission
+ * for durationMs.
+ *
+ * @param uid The UID of the app that starts the foreground service.
+ * @param durationMs elapsedRealTime duration in milliseconds.
+ * @hide
+ */
+ public abstract void tempAllowWhileInUsePermissionInFgs(int uid, long durationMs);
+
/**
* The list of the events about the {@link android.media.projection.IMediaProjection} itself.
*