FingerprintService - call PermissionEnforcer helper on methods annotated with @EnforcePermission
Migrates all existing java methods annotated with @EnforcePermission such that they call the super.<methodName>_enforcePermission method provided by PermissionEnforcer. This required by the @EnforcePermission annotation, but is currently a no-op, and will be switched on with ag/20325484. Bug: 234083358 Test: TH Change-Id: Iff0327fe516ef7916f616352df151347df28453f
This commit is contained in:
committed by
Matt Gilbride
parent
66257b83b9
commit
9aa45dec42
@@ -960,6 +960,8 @@ public class FingerprintService extends SystemService {
|
||||
@android.annotation.EnforcePermission(android.Manifest.permission.USE_BIOMETRIC_INTERNAL)
|
||||
@Override
|
||||
public void scheduleWatchdog() {
|
||||
super.scheduleWatchdog_enforcePermission();
|
||||
|
||||
final Pair<Integer, ServiceProvider> provider = mRegistry.getSingleProvider();
|
||||
if (provider == null) {
|
||||
Slog.w(TAG, "Null provider for scheduling watchdog");
|
||||
|
||||
Reference in New Issue
Block a user