Sprache

PccSandboxManager.IsPccTrustedSystemComponent(Int32, String) Method

Definition

Returns whether the given package is considered a "Trusted System Component" by the framework.

[Android.Runtime.Register("isPccTrustedSystemComponent", "(ILjava/lang/String;)Z", "", ApiSince=37)]
public bool IsPccTrustedSystemComponent(int uid, string? packageName);
[<Android.Runtime.Register("isPccTrustedSystemComponent", "(ILjava/lang/String;)Z", "", ApiSince=37)>]
member this.IsPccTrustedSystemComponent : int * string -> bool

Parameters

uid
Int32

The UID of the application.

packageName
String

The package name of the application. This can be null when a single packagename isn't available, e.g. for SYSTEM_UID. If non-null, this API checks whether uid corresponds to packageName, and returns false if it doesn't.

Returns

true if the app is a trusted system component, false otherwise.

Attributes

Remarks

Returns whether the given package is considered a "Trusted System Component" by the framework. This also includes Private Compute Services apps, which are an extension to the framework's trust boundary. Trusted System components are allowed two-way communication with the PCC components.

Android reference for android.app.privatecompute.PccSandboxManager.isPccTrustedSystemComponent.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to