Respond with null data when no biometrics.

Safety Center expects a response to the broadcast in this case.
The Settings app should respond with explicitely no data to Safety
Center rather than not respond.

Bug: 295143688
Test: atest BiometricsSafetySourceTest
Change-Id: Iea7f7c53919d90bf3d7fd989fb2f320a5c9ee9c6
This commit is contained in:
Elliot Sisteron
2023-08-09 12:43:54 +00:00
parent 76707864e5
commit cbc619c870
2 changed files with 124 additions and 82 deletions

View File

@@ -164,7 +164,12 @@ public final class BiometricsSafetySource {
disablingAdmin == null /* enabled */,
fingerprintStatusUtils.hasEnrolled(),
safetyEvent);
return;
}
SafetyCenterManagerWrapper.get()
.setSafetySourceData(
context, SAFETY_SOURCE_ID, /* safetySourceData= */ null, safetyEvent);
}
/** Notifies Safety Center of a change in biometrics settings. */