Loading AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -2826,6 +2826,7 @@ <activity android:name=".supervision.ConfirmSupervisionCredentialsActivity" android:exported="true" android:excludeFromRecents="true" android:theme="@style/Theme.Settings.NoActionBar" android:featureFlag="android.app.supervision.flags.supervision_manager_apis"> <intent-filter> <action android:name="android.app.supervision.action.CONFIRM_SUPERVISION_CREDENTIALS" /> Loading src/com/android/settings/supervision/ConfirmSupervisionCredentialsActivity.kt +6 −6 Original line number Diff line number Diff line Loading @@ -63,24 +63,18 @@ class ConfirmSupervisionCredentialsActivity : FragmentActivity() { private val mAuthenticationCallback = object : AuthenticationCallback() { @RequiresPermission(anyOf = [INTERACT_ACROSS_USERS_FULL, MANAGE_USERS]) override fun onAuthenticationError(errorCode: Int, errString: CharSequence) { tryStopProfile() Log.w(TAG, "onAuthenticationError(errorCode=$errorCode, errString=$errString)") setResult(RESULT_CANCELED) finish() } @RequiresPermission(anyOf = [INTERACT_ACROSS_USERS_FULL, MANAGE_USERS]) override fun onAuthenticationSucceeded(result: BiometricPrompt.AuthenticationResult?) { tryStopProfile() setResult(RESULT_OK) finish() } @RequiresPermission(anyOf = [INTERACT_ACROSS_USERS_FULL, MANAGE_USERS]) override fun onAuthenticationFailed() { tryStopProfile() setResult(RESULT_CANCELED) finish() } Loading @@ -92,6 +86,12 @@ class ConfirmSupervisionCredentialsActivity : FragmentActivity() { finish() } @RequiresPermission(anyOf = [INTERACT_ACROSS_USERS_FULL, MANAGE_USERS]) override fun onStop() { super.onStop() tryStopProfile() } @RequiresPermission( allOf = [USE_BIOMETRIC_INTERNAL, SET_BIOMETRIC_DIALOG_ADVANCED, INTERACT_ACROSS_USERS_FULL] ) Loading Loading
AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -2826,6 +2826,7 @@ <activity android:name=".supervision.ConfirmSupervisionCredentialsActivity" android:exported="true" android:excludeFromRecents="true" android:theme="@style/Theme.Settings.NoActionBar" android:featureFlag="android.app.supervision.flags.supervision_manager_apis"> <intent-filter> <action android:name="android.app.supervision.action.CONFIRM_SUPERVISION_CREDENTIALS" /> Loading
src/com/android/settings/supervision/ConfirmSupervisionCredentialsActivity.kt +6 −6 Original line number Diff line number Diff line Loading @@ -63,24 +63,18 @@ class ConfirmSupervisionCredentialsActivity : FragmentActivity() { private val mAuthenticationCallback = object : AuthenticationCallback() { @RequiresPermission(anyOf = [INTERACT_ACROSS_USERS_FULL, MANAGE_USERS]) override fun onAuthenticationError(errorCode: Int, errString: CharSequence) { tryStopProfile() Log.w(TAG, "onAuthenticationError(errorCode=$errorCode, errString=$errString)") setResult(RESULT_CANCELED) finish() } @RequiresPermission(anyOf = [INTERACT_ACROSS_USERS_FULL, MANAGE_USERS]) override fun onAuthenticationSucceeded(result: BiometricPrompt.AuthenticationResult?) { tryStopProfile() setResult(RESULT_OK) finish() } @RequiresPermission(anyOf = [INTERACT_ACROSS_USERS_FULL, MANAGE_USERS]) override fun onAuthenticationFailed() { tryStopProfile() setResult(RESULT_CANCELED) finish() } Loading @@ -92,6 +86,12 @@ class ConfirmSupervisionCredentialsActivity : FragmentActivity() { finish() } @RequiresPermission(anyOf = [INTERACT_ACROSS_USERS_FULL, MANAGE_USERS]) override fun onStop() { super.onStop() tryStopProfile() } @RequiresPermission( allOf = [USE_BIOMETRIC_INTERNAL, SET_BIOMETRIC_DIALOG_ADVANCED, INTERACT_ACROSS_USERS_FULL] ) Loading