PackageManager flags should not exist when sensors are empty

We do not allow the presence of biometric sensors unless it is known
to BiometricService. This change fixes a hole where the PM flag could
be defined, but the sensor is not registered into BiometricService,
preventing it from showing up on BiometricManager/BiometricPrompt.

If the desire is for a sensor to not participate in the BM/BP APIs,
the current way is to register it as "convenience".

Bug: 200005662
Test: atest CtsBiometricsTestCases

Change-Id: I1af602f9a489079161ad60f8f260ac536e6441ba
Merged-In: I1af602f9a489079161ad60f8f260ac536e6441ba
(cherry picked from commit 48add91f8720fe3e95831c5a5c9a2500e9415672)
(cherry picked from commit 8319ccd981c900de5844cf68dacf3c3c17fa897b)
1 file changed