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

Commit a5ae2c2b authored by Kevin Chyn's avatar Kevin Chyn
Browse files

LockSettingsStrongAuth shouldn't get fingerprintservice on unsupported devices

Fixes: 65838275

Test: tested on ryu and walleye, no logs when system starts and everything
works fine

Change-Id: I7d53214a021e9094618162109f3c38c0e029bda3
parent f531f886
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.app.AlarmManager.OnAlarmListener;
import android.app.admin.DevicePolicyManager;
import android.app.trust.IStrongAuthTracker;
import android.content.Context;
import android.content.pm.PackageManager;
import android.hardware.fingerprint.FingerprintManager;
import android.os.Binder;
import android.os.DeadObjectException;
@@ -74,8 +75,11 @@ public class LockSettingsStrongAuth {
    }

    public void systemReady() {
        final PackageManager pm = mContext.getPackageManager();
        if (pm.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) {
            mFingerprintManager = mContext.getSystemService(FingerprintManager.class);
        }
    }

    private void handleAddStrongAuthTracker(IStrongAuthTracker tracker) {
        for (int i = 0; i < mStrongAuthTrackers.size(); i++) {