语言

PccSandboxManager.IsPccTrustedSystemComponent(Int32, String) 方法

定义

返回给定包是否被框架视为“受信任的系统组件”。

[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

参数

uid
Int32

应用程序的 UID。

packageName
String

应用程序的包名称。 如果单个 packagename 不可用,例如对于 SYSTEM_UID,则这可以为 null。 如果为非 null,则此 API 会检查是否 uid 对应于 packageName该 API,并返回 false 它是否不对应。

返回

如果应用是受信任的系统组件,则为 ; 否则。

特性

注解

返回给定包是否被框架视为“受信任的系统组件”。 这还包括专用计算服务应用,这些应用是框架信任边界的扩展。 允许受信任的系统组件与 PCC 组件进行双向通信。

Android 参考。android.app.privatecompute.PccSandboxManager.isPccTrustedSystemComponent

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于