Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Protected Confirmation
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trang này mô tả việc triển khai ConfirmationUI và các câu xác nhận cho KeyMint.
Tính năng Xác nhận bảo vệ của Android tận dụng giao diện người dùng được bảo vệ bằng phần cứng (gọi là Giao diện người dùng đáng tin cậy) để tạo sự đảm bảo cao cho các giao dịch quan trọng. Xác nhận được bảo vệ của Android có trên các thiết bị được hỗ trợ chạy Android 9 (API cấp 28) trở lên.
Khi một ứng dụng gọi Protected Confirmation, Trusted UI sẽ yêu cầu người dùng xác nhận. Giao diện người dùng đáng tin cậy khẳng định sự chấp thuận của người dùng đối với thông báo được nhắc với độ tin cậy cao, ngay cả khi Android hoặc nhân (Linux) của Android bị xâm nhập. Cùng với KeyMint (trước đây là Keymaster), xác nhận này sau đó sẽ được truyền đến một bên từ xa.
Nhà phát triển có thể xem tài liệu dành cho nhà phát triển về tính năng Xác nhận bảo vệ của Android tại developer.android.com.
Phạm vi
Bạn có thể chia hoạt động triển khai Android Protected Confirmation thành 2 phần, cả hai đều nằm trong Môi trường thực thi đáng tin cậy (TEE). Một phần là tiện ích cho KeyMint. Điều này cho phép tạo khoá theo yêu cầu sử dụng Tag::TRUSTED_CONFIRMATION_REQUIRED
.
Phần thứ hai là một ứng dụng có tên là ConfirmationUI, ứng dụng này sẽ tạo mã thông báo xác nhận. Đây là các câu lệnh mật mã và truyền đến KeyMint khi người dùng xác nhận một thông báo nhất định.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],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."]]