Loading core/java/android/hardware/biometrics/flags.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -61,3 +61,13 @@ flag { description: "Feature flag for biometric prompt improvements in private space" bug: "365554098" } flag { name: "effective_user_bp" namespace: "biometrics_framework" description: "Feature flag for using effective user in biometric prompt" bug: "365094949" metadata { purpose: PURPOSE_BUGFIX } } services/core/java/com/android/server/biometrics/PreAuthInfo.java +1 −1 Original line number Diff line number Diff line Loading @@ -146,7 +146,7 @@ class PreAuthInfo { final List<Pair<BiometricSensor, Integer>> ineligibleSensors = new ArrayList<>(); final int effectiveUserId; if (Flags.privateSpaceBp()) { if (Flags.effectiveUserBp()) { effectiveUserId = userManager.getCredentialOwnerProfile(userId); } else { effectiveUserId = userId; Loading services/tests/servicestests/src/com/android/server/biometrics/PreAuthInfoTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -315,7 +315,7 @@ public class PreAuthInfoTest { } @Test @RequiresFlagsEnabled(Flags.FLAG_PRIVATE_SPACE_BP) @RequiresFlagsEnabled(Flags.FLAG_EFFECTIVE_USER_BP) public void testCredentialOwnerIdAsUserId() throws Exception { when(mUserManager.getCredentialOwnerProfile(USER_ID)).thenReturn(OWNER_ID); Loading Loading
core/java/android/hardware/biometrics/flags.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -61,3 +61,13 @@ flag { description: "Feature flag for biometric prompt improvements in private space" bug: "365554098" } flag { name: "effective_user_bp" namespace: "biometrics_framework" description: "Feature flag for using effective user in biometric prompt" bug: "365094949" metadata { purpose: PURPOSE_BUGFIX } }
services/core/java/com/android/server/biometrics/PreAuthInfo.java +1 −1 Original line number Diff line number Diff line Loading @@ -146,7 +146,7 @@ class PreAuthInfo { final List<Pair<BiometricSensor, Integer>> ineligibleSensors = new ArrayList<>(); final int effectiveUserId; if (Flags.privateSpaceBp()) { if (Flags.effectiveUserBp()) { effectiveUserId = userManager.getCredentialOwnerProfile(userId); } else { effectiveUserId = userId; Loading
services/tests/servicestests/src/com/android/server/biometrics/PreAuthInfoTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -315,7 +315,7 @@ public class PreAuthInfoTest { } @Test @RequiresFlagsEnabled(Flags.FLAG_PRIVATE_SPACE_BP) @RequiresFlagsEnabled(Flags.FLAG_EFFECTIVE_USER_BP) public void testCredentialOwnerIdAsUserId() throws Exception { when(mUserManager.getCredentialOwnerProfile(USER_ID)).thenReturn(OWNER_ID); Loading