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

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

Log requested enrollment strength

Bug: 145601433

Test: adb shell am start -a android.settings.BIOMETRIC_ENROLL --ei "android.provider.extra.BIOMETRIC_MINIMUM_STRENGTH_REQUIRED" 1
Test: Log is seen
Change-Id: Ied5fba6de257f72a809536402d7afc8061570abe
parent a90c5186
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.UserHandle;
import android.provider.Settings;
import android.util.Log;

import com.android.settings.SetupWizardUtils;
import com.android.settings.biometrics.face.FaceEnrollIntroduction;
@@ -50,6 +52,9 @@ public class BiometricEnrollActivity extends InstrumentedActivity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Log.d(TAG, "Min strength: " + getIntent()
                .getIntExtra(Settings.EXTRA_BIOMETRIC_MINIMUM_STRENGTH_REQUIRED, 0));

        final PackageManager pm = getApplicationContext().getPackageManager();
        Intent intent = null;