Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e9f7294 authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

Ensure that LockSettingsService waits for gatekeeperd to be ready am: e5946090

parents b8144098 e5946090
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -311,7 +311,7 @@ public class BiometricDeferredQueue {

    @Nullable
    private static synchronized IGateKeeperService getGatekeeperService() {
        final IBinder service = ServiceManager.getService(Context.GATEKEEPER_SERVICE);
        final IBinder service = ServiceManager.waitForService(Context.GATEKEEPER_SERVICE);
        if (service == null) {
            Slog.e(TAG, "Unable to acquire GateKeeperService");
            return null;
+1 −2
Original line number Diff line number Diff line
@@ -869,7 +869,6 @@ public class LockSettingsService extends ILockSettings.Stub {
        mHasSecureLockScreen = mContext.getPackageManager()
                .hasSystemFeature(PackageManager.FEATURE_SECURE_LOCK_SCREEN);
        migrateOldData();
        getGateKeeperService();
        getAuthSecretHal();
        mDeviceProvisionedObserver.onSystemReady();

@@ -2635,7 +2634,7 @@ public class LockSettingsService extends ILockSettings.Stub {
            return mGateKeeperService;
        }

        final IBinder service = ServiceManager.getService(Context.GATEKEEPER_SERVICE);
        final IBinder service = ServiceManager.waitForService(Context.GATEKEEPER_SERVICE);
        if (service != null) {
            try {
                service.linkToDeath(new GateKeeperDiedRecipient(), 0);