Merge "Disable user-facing historical app ops methods"

This commit is contained in:
Nate Myren
2020-01-25 01:40:14 +00:00
committed by Android (Google) Code Review
5 changed files with 45 additions and 4 deletions

View File

@@ -367,4 +367,14 @@ public abstract class ActivityManagerInternal {
* Unregisters the specified {@code processObserver}.
*/
public abstract void unregisterProcessObserver(IProcessObserver processObserver);
/**
* Checks if there is an unfinished instrumentation that targets the given uid.
*
* @param uid The uid to be checked for
*
* @return True, if there is an instrumentation whose target application uid matches the given
* uid, false otherwise
*/
public abstract boolean isUidCurrentlyInstrumented(int uid);
}

View File

@@ -178,6 +178,12 @@ public class Process {
*/
public static final int OTA_UPDATE_UID = 1061;
/**
* Defines the UID used for statsd
* @hide
*/
public static final int STATSD_UID = 1066;
/**
* Defines the UID used for incidentd.
* @hide