PccSandboxManager.IsPccTrustedSystemComponent(Int32, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. Trusted UIDs are accepted before
the package-name check. For other UIDs, a non-null package name that does not
correspond to uid causes the method to return false.
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.