java: Overhaul detection of attestation properties

- Reuse and extend the attestation we perform for detection of functional TEE.
- Extract properties like boot hash, os version, attest version, keymaster version from the generated certificate.
- Use previous methods as fallback for devices without functional TEE.
- Set ro.boot.vbmeta.digest during initialization with the boot hash value.

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
This commit is contained in:
Dakkshesh
2025-08-19 19:33:27 +05:30
parent 088e9ff1b0
commit d762663192
5 changed files with 213 additions and 74 deletions
@@ -9,4 +9,8 @@ public class SystemProperties {
public static String get(String key, String def) {
throw new RuntimeException("");
}
public static void set(String key, String val) {
throw new RuntimeException("");
}
}