DmVerityMode
在 Android 操作系统启动期间使用 dm-verity 模式。
枚举 |
DM_VERITY_MODE_UNSPECIFIED |
未知值。 |
ENFORCING |
表示在检测到损坏时设备将重启。 |
IO_ERROR |
表示尝试读取损坏的数据块(也称为 eio 启动状态)时将返回 I/O 错误。 |
DISABLED |
表示 dm-verity 在设备上处于停用状态。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-04-11。
[null,null,["最后更新时间 (UTC):2024-04-11。"],[[["dm-verity is a feature used during Android OS startup to ensure data integrity."],["It has various operational modes, including `ENFORCING`, `IO_ERROR`, and `DISABLED`, governing system behavior when corruption is detected."],["`ENFORCING` mode triggers a system restart upon encountering corruption, while `IO_ERROR` results in input/output errors for reads from affected blocks."],["The `DISABLED` mode signifies the deactivation of dm-verity on the device."]]],["The provided information details four `dm-verity` modes during Android OS startup. `DM_VERITY_MODE_UNSPECIFIED` signifies an unknown state. `ENFORCING` mode restarts the device upon detecting data corruption. `IO_ERROR` mode returns an I/O error when corrupted data is read. `DISABLED` indicates that dm-verity is inactive on the device. Each mode dictates how the system handles data integrity and potential corruption during the boot process.\n"]]