FaceService - 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: Id2217b23651abc7d9dceb7c052aa3568cb789925
This commit is contained in:
committed by
Matt Gilbride
parent
9d1359d07e
commit
158440de89
@@ -200,6 +200,8 @@ public class FaceService 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