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
This commit is contained in:
Kevin Chyn
2019-12-09 17:09:14 -08:00
parent a90c5186b1
commit c7f74af9c9

View File

@@ -21,6 +21,8 @@ import android.content.Intent;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.os.Bundle; import android.os.Bundle;
import android.os.UserHandle; import android.os.UserHandle;
import android.provider.Settings;
import android.util.Log;
import com.android.settings.SetupWizardUtils; import com.android.settings.SetupWizardUtils;
import com.android.settings.biometrics.face.FaceEnrollIntroduction; import com.android.settings.biometrics.face.FaceEnrollIntroduction;
@@ -50,6 +52,9 @@ public class BiometricEnrollActivity extends InstrumentedActivity {
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
Log.d(TAG, "Min strength: " + getIntent()
.getIntExtra(Settings.EXTRA_BIOMETRIC_MINIMUM_STRENGTH_REQUIRED, 0));
final PackageManager pm = getApplicationContext().getPackageManager(); final PackageManager pm = getApplicationContext().getPackageManager();
Intent intent = null; Intent intent = null;