語言

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

應用程式的套件名稱。 當單一套件名稱無法使用時,例如SYSTEM_UID,這可能是空的。 若非空,此 API 會檢查是否uidpackageName對應 ,若不對應則回傳false。

傳回

true 如果應用程式是受信任的系統元件, false 否則就不行了。

屬性

備註

回傳該套件是否被框架視為「受信任系統元件」。 這也包括私有運算服務(Private Compute Services)應用程式,它們是框架信任邊界的延伸。 受信任的系統元件允許與 PCC 元件進行雙向通訊。

Android 參考資料。android.app.privatecompute.PccSandboxManager.isPccTrustedSystemComponent

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於