PreferenceManager.SetStorageDeviceProtected 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
明確將此類別內部使用的儲存位置設定為裝置保護儲存。
[Android.Runtime.Register("setStorageDeviceProtected", "()V", "GetSetStorageDeviceProtectedHandler", ApiSince=24)]
public virtual void SetStorageDeviceProtected();
[<Android.Runtime.Register("setStorageDeviceProtected", "()V", "GetSetStorageDeviceProtectedHandler", ApiSince=24)>]
abstract member SetStorageDeviceProtected : unit -> unit
override this.SetStorageDeviceProtected : unit -> unit
- 屬性
備註
明確將此類別內部使用的儲存位置設定為裝置保護儲存。
在具備直接開機功能的裝置上,儲存在該位置的資料會以綁定在實體裝置上的金鑰加密,且在裝置成功<>開機後,無論是在使用者用憑證驗證之前或之後<>,都能立即存取(例如鎖定模式或 PIN 碼)。
由於裝置保護的資料在無需使用者驗證的情況下即可取得,您應謹慎限制使用此上下文儲存的資料。 例如,強烈建議在裝置保護區域儲存敏感的認證憑證或密碼。
Java 文件 android.preference.PreferenceManager.setStorageDeviceProtected()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。