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

Commit 6f3dd02a authored by Pavel Grafov's avatar Pavel Grafov Committed by Android (Google) Code Review
Browse files

Merge "Remove unused non-public method."

parents 9fa9c1f8 ab1020f8
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -9750,21 +9750,6 @@ public class DevicePolicyManager {
        }
    }
    /**
     * @hide
     * Return if this user is a system-only user. An admin can manage a device from a system only
     * user by calling {@link #ACTION_PROVISION_MANAGED_SHAREABLE_DEVICE}.
     * @param admin Which device owner this request is associated with.
     * @return if this user is a system-only user.
     */
    public boolean isSystemOnlyUser(@NonNull ComponentName admin) {
        try {
            return mService.isSystemOnlyUser(admin);
        } catch (RemoteException re) {
            throw re.rethrowFromSystemServer();
        }
    }
    /**
     * Called by device owner, or profile owner on organization-owned device, to get the MAC
     * address of the Wi-Fi device.
+0 −1
Original line number Diff line number Diff line
@@ -345,7 +345,6 @@ interface IDevicePolicyManager {
    void setKeepUninstalledPackages(in ComponentName admin, in String callerPackage, in List<String> packageList);
    List<String> getKeepUninstalledPackages(in ComponentName admin, in String callerPackage);
    boolean isManagedProfile(in ComponentName admin);
    boolean isSystemOnlyUser(in ComponentName admin);
    String getWifiMacAddress(in ComponentName admin);
    void reboot(in ComponentName admin);

+0 −8
Original line number Diff line number Diff line
@@ -12051,14 +12051,6 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
        return isManagedProfile(mInjector.userHandleGetCallingUserId());
    }
    @Override
    public boolean isSystemOnlyUser(ComponentName admin) {
        Objects.requireNonNull(admin, "ComponentName is null");
        final CallerIdentity identity = getCallerIdentity(admin);
        Preconditions.checkCallAuthorization(isDeviceOwner(identity));
        return UserManager.isSplitSystemUser() && identity.getUserId() == UserHandle.USER_SYSTEM;
    }
    @Override
    public void reboot(ComponentName admin) {
        Objects.requireNonNull(admin, "ComponentName is null");