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

Commit a2b134aa authored by joshmccloskey's avatar joshmccloskey
Browse files

Enforce policy management.

Test: Verified disabling fingerprint will not allow
the user to unlock work apps with fingerprint. (But can use fingeprint
within apps.)
Test: Verified disabling face and/or iris on a fingerprint device will continue to
allow the user to unlock work apps with fingerprint.
Test: Verified disabling face on a face authentication device
will not allow the user to unlock work apps with face authentication. (But can use face
authentication within apps.)
Test: Verified disabling fingerprint and/or iris on a face
authentication device will continue to allow the user to unlock work apps with face authentication.
Bug: 141382589

Change-Id: I1f430d77eff9aa059fb325c835dcbbdced9a573d
parent c7729011
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -48,6 +48,12 @@ import com.android.systemui.R;
public class WorkLockActivity extends Activity {
    private static final String TAG = "WorkLockActivity";

    /**
     * Add additional extra {@link com.android.settings.password.ConfirmDeviceCredentialActivity} to
     * enable device policy management enforcement from systemui.
     */
    public static final String EXTRA_FROM_WORK_LOCK_ACTIVITY = "from_work_lock_activity";

    /**
     * Contains a {@link TaskDescription} for the activity being covered.
     */
@@ -151,6 +157,7 @@ public class WorkLockActivity extends Activity {

        if (target != null) {
            credential.putExtra(Intent.EXTRA_INTENT, target.getIntentSender());
            credential.putExtra(EXTRA_FROM_WORK_LOCK_ACTIVITY, true);
        }

        startActivityForResult(credential, REQUEST_CODE_CONFIRM_CREDENTIALS);