summaryrefslogtreecommitdiff
path: root/keystore2
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2023-11-22 16:21:48 +0000
committerEric Biggers <ebiggers@google.com>2023-11-22 16:21:59 +0000
commit6ea1c60e67bddc52acc5881e0b4abe566ee88f77 (patch)
tree1c39ded92662c095967cd27245f1b1a64ebfdceb /keystore2
parent39b7af2fcdce144cda6377533b3374423f85008a (diff)
downloadsecurity-6ea1c60e67bddc52acc5881e0b4abe566ee88f77.tar.gz
Rename the fix_unlocked_device_required_keys flag
This flag was defined as a regular flag and then was later changed to a fixed_read_only flag. This scenario is currently "unsupported" by the flags infrastructure; an error occurs when trying to advance the flag to staging. Work around this by renaming the flag so that the flags infrastructure sees it as an entirely new flag. Bug: 296464083 Bug: 311648623 Test: build Change-Id: Iafde2d63578bf65b3f5a08ab57561eadbe8f6b7a
Diffstat (limited to 'keystore2')
-rw-r--r--keystore2/src/enforcements.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystore2/src/enforcements.rs b/keystore2/src/enforcements.rs
index 43147e86..04f26e9f 100644
--- a/keystore2/src/enforcements.rs
+++ b/keystore2/src/enforcements.rs
@@ -603,7 +603,7 @@ impl Enforcements {
}
}
- if android_security_flags::fix_unlocked_device_required_keys() {
+ if android_security_flags::fix_unlocked_device_required_keys_v2() {
let (hat, state) = if user_secure_ids.is_empty() {
(None, DeferredAuthState::NoAuthRequired)
} else if let Some(key_time_out) = key_time_out {