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

Commit 48a58bae authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Enable escrow tokens on automotive builds."

parents e88fbbac cb18d56e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2220,6 +2220,12 @@ public class LockSettingsService extends ILockSettings.Stub {
                Slog.i(TAG, "Postpone disabling escrow tokens until device is provisioned");
                return;
            }

            // Escrow tokens are enabled on automotive builds.
            if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) {
                return;
            }

            // Disable escrow token permanently on all other device/user types.
            Slog.i(TAG, "Disabling escrow token on user " + userId);
            if (isSyntheticPasswordBasedCredentialLocked(userId)) {