自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
Protected Confirmation
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁面說明如何實作 ConfirmationUI,以及向 KeyMint 傳送確認陳述內容。
Android 保護確認功能會運用稱為「信任的 UI」的硬體保護使用者介面,確保重要交易的安全性。Android Protected Confirmation 適用於搭載 Android 9 (API 級別 28) 以上版本的支援裝置。
應用程式叫用「受保護的確認」時,「可信的 UI」會詢問使用者是否要確認。即使 Android 或其核心 (Linux) 遭到入侵,可信的 UI 仍能高度確信使用者已核准提示訊息。這項聲明會連同 KeyMint (先前稱為 Keymaster) 一併傳達給遠端當事人。
開發人員可前往 developer.android.com 查看 Android 保護確認開發人員說明文件。
範圍
Android Protected Confirmation 的實作方式可分為兩部分,兩者都位於受信任的執行環境 (TEE)。其中一部分是 KeyMint 的擴充功能。可讓您生成符合使用需求 Tag::TRUSTED_CONFIRMATION_REQUIRED
的金鑰。第二部分是名為 ConfirmationUI 的應用程式,可產生確認權杖。這些權杖是密碼編譯陳述式,會在使用者確認特定訊息時傳送至 KeyMint。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Protected Confirmation\n\nThis page describes the implementation of ConfirmationUI and the confirmation statements\nto KeyMint.\n\nAndroid Protected Confirmation leverages a hardware-protected user interface\ncalled **Trusted UI** to facilitate high assurance to critical\ntransactions. Android Protected Confirmation is available to supported devices\nrunning Android 9 (API level 28) or higher.\n\nWhen an app invokes Protected Confirmation, Trusted UI queries the user for\nconfirmation. The Trusted UI asserts the user's approval of the prompted message\nwith a high degree of confidence even if Android or its kernel (Linux) have been\ncompromised. Together with KeyMint (previously Keymaster), this assertion is then conveyed to a\nremote party.\n\nDevelopers can view the Android Protected Confirmation developer\ndocumentation at [developer.android.com](https://developer.android.com/training/articles/security-android-protected-confirmation).\n\nScope\n-----\n\nThe implementation of Android Protected Confirmation can be split into two\nparts, both residing in the Trusted Execution Environment (TEE). One part is an\nextension to [KeyMint](/security/keystore). It allows\nthe generation of keys with the usage requirement `Tag::TRUSTED_CONFIRMATION_REQUIRED`.\nThe second part is an app called **ConfirmationUI**, which\ngenerates confirmation tokens. These tokens are cryptographic statements and\nconvey to KeyMint when the user confirms a given message."]]