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

Commit 515a6c70 authored by Lenka Trochtova's avatar Lenka Trochtova Committed by Android (Google) Code Review
Browse files

Merge "Throw UnsupportedOperationException when creating ephemeral user on a...

Merge "Throw UnsupportedOperationException when creating ephemeral user on a system without split system user." into nyc-dev
parents e68b90c7 3dfe7f65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4970,7 +4970,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        Preconditions.checkNotNull(who, "ComponentName is null");
        // Allow setting this policy to true only if there is a split system user.
        if (forceEphemeralUsers && !mInjector.userManagerIsSplitSystemUser()) {
            throw new IllegalArgumentException(
            throw new UnsupportedOperationException(
                    "Cannot force ephemeral users on systems without split system user.");
        }
        boolean removeAllUsers = false;