/** Returns whether the provided UID belongs to an sdk_sandbox process(@see https://developer.android.com/design-for-safety/privacy-sandbox/sdk-runtime). */
@SuppressLint("UnflaggedApi")// promoting from @SystemApi.
/**
* Returns whether the provided UID belongs to a SDK sandbox process.
*
* @hide
*/
@SystemApi(client=MODULE_LIBRARIES)
@TestApi
@android.ravenwood.annotation.RavenwoodKeep
publicstaticfinalbooleanisSdkSandboxUid(intuid){
uid=UserHandle.getAppId(uid);
@@ -988,19 +992,15 @@ public class Process {
}
/**
* Returns the app uid corresponding to an sdk sandbox uid.
*
* @param uid the sdk_sandbox uid
* @return the app uid for the given sdk_sandbox uid
* Returns the app process corresponding to an sdk sandbox process.
*
* @throws IllegalArgumentException if input is not an SdkSandboxUid
* @hide
*/
@SuppressLint("UnflaggedApi")// promoting from @SystemApi.