• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 **
3 ** Copyright 2010, The Android Open Source Project
4 **
5 ** Licensed under the Apache License, Version 2.0 (the "License");
6 ** you may not use this file except in compliance with the License.
7 ** You may obtain a copy of the License at
8 **
9 **     http://www.apache.org/licenses/LICENSE-2.0
10 **
11 ** Unless required by applicable law or agreed to in writing, software
12 ** distributed under the License is distributed on an "AS IS" BASIS,
13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ** See the License for the specific language governing permissions and
15 ** limitations under the License.
16 */
17 
18 package android.app.admin;
19 
20 import android.app.admin.NetworkEvent;
21 import android.app.IApplicationThread;
22 import android.app.IServiceConnection;
23 import android.app.admin.ParcelableGranteeMap;
24 import android.app.admin.StartInstallingUpdateCallback;
25 import android.app.admin.SystemUpdateInfo;
26 import android.app.admin.SystemUpdatePolicy;
27 import android.app.admin.PasswordMetrics;
28 import android.app.admin.FactoryResetProtectionPolicy;
29 import android.app.admin.ManagedProfileProvisioningParams;
30 import android.app.admin.FullyManagedDeviceProvisioningParams;
31 import android.content.ComponentName;
32 import android.content.Intent;
33 import android.content.IntentFilter;
34 import android.content.pm.IPackageDataObserver;
35 import android.content.pm.ParceledListSlice;
36 import android.content.pm.StringParceledListSlice;
37 import android.graphics.Bitmap;
38 import android.net.ProxyInfo;
39 import android.net.Uri;
40 import android.os.Bundle;
41 import android.os.PersistableBundle;
42 import android.os.RemoteCallback;
43 import android.os.UserHandle;
44 import android.security.keymaster.KeymasterCertificateChain;
45 import android.security.keystore.ParcelableKeyGenParameterSpec;
46 import android.telephony.data.ApnSetting;
47 
48 import java.util.List;
49 
50 /**
51  * Internal IPC interface to the device policy service.
52  * {@hide}
53  */
54 interface IDevicePolicyManager {
setPasswordQuality(in ComponentName who, int quality, boolean parent)55     void setPasswordQuality(in ComponentName who, int quality, boolean parent);
getPasswordQuality(in ComponentName who, int userHandle, boolean parent)56     int getPasswordQuality(in ComponentName who, int userHandle, boolean parent);
57 
setPasswordMinimumLength(in ComponentName who, int length, boolean parent)58     void setPasswordMinimumLength(in ComponentName who, int length, boolean parent);
getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent)59     int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent);
60 
setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent)61     void setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent);
getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent)62     int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent);
63 
setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent)64     void setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent);
getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent)65     int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent);
66 
setPasswordMinimumLetters(in ComponentName who, int length, boolean parent)67     void setPasswordMinimumLetters(in ComponentName who, int length, boolean parent);
getPasswordMinimumLetters(in ComponentName who, int userHandle, boolean parent)68     int getPasswordMinimumLetters(in ComponentName who, int userHandle, boolean parent);
69 
setPasswordMinimumNumeric(in ComponentName who, int length, boolean parent)70     void setPasswordMinimumNumeric(in ComponentName who, int length, boolean parent);
getPasswordMinimumNumeric(in ComponentName who, int userHandle, boolean parent)71     int getPasswordMinimumNumeric(in ComponentName who, int userHandle, boolean parent);
72 
setPasswordMinimumSymbols(in ComponentName who, int length, boolean parent)73     void setPasswordMinimumSymbols(in ComponentName who, int length, boolean parent);
getPasswordMinimumSymbols(in ComponentName who, int userHandle, boolean parent)74     int getPasswordMinimumSymbols(in ComponentName who, int userHandle, boolean parent);
75 
setPasswordMinimumNonLetter(in ComponentName who, int length, boolean parent)76     void setPasswordMinimumNonLetter(in ComponentName who, int length, boolean parent);
getPasswordMinimumNonLetter(in ComponentName who, int userHandle, boolean parent)77     int getPasswordMinimumNonLetter(in ComponentName who, int userHandle, boolean parent);
78 
getPasswordMinimumMetrics(int userHandle, boolean deviceWideOnly)79     PasswordMetrics getPasswordMinimumMetrics(int userHandle, boolean deviceWideOnly);
80 
setPasswordHistoryLength(in ComponentName who, int length, boolean parent)81     void setPasswordHistoryLength(in ComponentName who, int length, boolean parent);
getPasswordHistoryLength(in ComponentName who, int userHandle, boolean parent)82     int getPasswordHistoryLength(in ComponentName who, int userHandle, boolean parent);
83 
setPasswordExpirationTimeout(in ComponentName who, long expiration, boolean parent)84     void setPasswordExpirationTimeout(in ComponentName who, long expiration, boolean parent);
getPasswordExpirationTimeout(in ComponentName who, int userHandle, boolean parent)85     long getPasswordExpirationTimeout(in ComponentName who, int userHandle, boolean parent);
86 
getPasswordExpiration(in ComponentName who, int userHandle, boolean parent)87     long getPasswordExpiration(in ComponentName who, int userHandle, boolean parent);
88 
isActivePasswordSufficient(int userHandle, boolean parent)89     boolean isActivePasswordSufficient(int userHandle, boolean parent);
isActivePasswordSufficientForDeviceRequirement()90     boolean isActivePasswordSufficientForDeviceRequirement();
isPasswordSufficientAfterProfileUnification(int userHandle, int profileUser)91     boolean isPasswordSufficientAfterProfileUnification(int userHandle, int profileUser);
getPasswordComplexity(boolean parent)92     int getPasswordComplexity(boolean parent);
setRequiredPasswordComplexity(int passwordComplexity, boolean parent)93     void setRequiredPasswordComplexity(int passwordComplexity, boolean parent);
getRequiredPasswordComplexity(boolean parent)94     int getRequiredPasswordComplexity(boolean parent);
getAggregatedPasswordComplexityForUser(int userId, boolean deviceWideOnly)95     int getAggregatedPasswordComplexityForUser(int userId, boolean deviceWideOnly);
isUsingUnifiedPassword(in ComponentName admin)96     boolean isUsingUnifiedPassword(in ComponentName admin);
getCurrentFailedPasswordAttempts(int userHandle, boolean parent)97     int getCurrentFailedPasswordAttempts(int userHandle, boolean parent);
getProfileWithMinimumFailedPasswordsForWipe(int userHandle, boolean parent)98     int getProfileWithMinimumFailedPasswordsForWipe(int userHandle, boolean parent);
99 
setMaximumFailedPasswordsForWipe(in ComponentName admin, int num, boolean parent)100     void setMaximumFailedPasswordsForWipe(in ComponentName admin, int num, boolean parent);
getMaximumFailedPasswordsForWipe(in ComponentName admin, int userHandle, boolean parent)101     int getMaximumFailedPasswordsForWipe(in ComponentName admin, int userHandle, boolean parent);
102 
resetPassword(String password, int flags)103     boolean resetPassword(String password, int flags);
104 
setMaximumTimeToLock(in ComponentName who, long timeMs, boolean parent)105     void setMaximumTimeToLock(in ComponentName who, long timeMs, boolean parent);
getMaximumTimeToLock(in ComponentName who, int userHandle, boolean parent)106     long getMaximumTimeToLock(in ComponentName who, int userHandle, boolean parent);
107 
setRequiredStrongAuthTimeout(in ComponentName who, long timeMs, boolean parent)108     void setRequiredStrongAuthTimeout(in ComponentName who, long timeMs, boolean parent);
getRequiredStrongAuthTimeout(in ComponentName who, int userId, boolean parent)109     long getRequiredStrongAuthTimeout(in ComponentName who, int userId, boolean parent);
110 
lockNow(int flags, boolean parent)111     void lockNow(int flags, boolean parent);
112 
wipeDataWithReason(int flags, String wipeReasonForUser, boolean parent)113     void wipeDataWithReason(int flags, String wipeReasonForUser, boolean parent);
114 
setFactoryResetProtectionPolicy(in ComponentName who, in FactoryResetProtectionPolicy policy)115     void setFactoryResetProtectionPolicy(in ComponentName who, in FactoryResetProtectionPolicy policy);
getFactoryResetProtectionPolicy(in ComponentName who)116     FactoryResetProtectionPolicy getFactoryResetProtectionPolicy(in ComponentName who);
isFactoryResetProtectionPolicySupported()117     boolean isFactoryResetProtectionPolicySupported();
118 
setGlobalProxy(in ComponentName admin, String proxySpec, String exclusionList)119     ComponentName setGlobalProxy(in ComponentName admin, String proxySpec, String exclusionList);
getGlobalProxyAdmin(int userHandle)120     ComponentName getGlobalProxyAdmin(int userHandle);
setRecommendedGlobalProxy(in ComponentName admin, in ProxyInfo proxyInfo)121     void setRecommendedGlobalProxy(in ComponentName admin, in ProxyInfo proxyInfo);
122 
setStorageEncryption(in ComponentName who, boolean encrypt)123     int setStorageEncryption(in ComponentName who, boolean encrypt);
getStorageEncryption(in ComponentName who, int userHandle)124     boolean getStorageEncryption(in ComponentName who, int userHandle);
getStorageEncryptionStatus(in String callerPackage, int userHandle)125     int getStorageEncryptionStatus(in String callerPackage, int userHandle);
126 
requestBugreport(in ComponentName who)127     boolean requestBugreport(in ComponentName who);
128 
setCameraDisabled(in ComponentName who, boolean disabled, boolean parent)129     void setCameraDisabled(in ComponentName who, boolean disabled, boolean parent);
getCameraDisabled(in ComponentName who, int userHandle, boolean parent)130     boolean getCameraDisabled(in ComponentName who, int userHandle, boolean parent);
131 
setScreenCaptureDisabled(in ComponentName who, boolean disabled, boolean parent)132     void setScreenCaptureDisabled(in ComponentName who, boolean disabled, boolean parent);
getScreenCaptureDisabled(in ComponentName who, int userHandle, boolean parent)133     boolean getScreenCaptureDisabled(in ComponentName who, int userHandle, boolean parent);
134 
setNearbyNotificationStreamingPolicy(int policy)135     void setNearbyNotificationStreamingPolicy(int policy);
getNearbyNotificationStreamingPolicy(int userId)136     int getNearbyNotificationStreamingPolicy(int userId);
137 
setNearbyAppStreamingPolicy(int policy)138     void setNearbyAppStreamingPolicy(int policy);
getNearbyAppStreamingPolicy(int userId)139     int getNearbyAppStreamingPolicy(int userId);
140 
setKeyguardDisabledFeatures(in ComponentName who, int which, boolean parent)141     void setKeyguardDisabledFeatures(in ComponentName who, int which, boolean parent);
getKeyguardDisabledFeatures(in ComponentName who, int userHandle, boolean parent)142     int getKeyguardDisabledFeatures(in ComponentName who, int userHandle, boolean parent);
143 
setActiveAdmin(in ComponentName policyReceiver, boolean refreshing, int userHandle)144     void setActiveAdmin(in ComponentName policyReceiver, boolean refreshing, int userHandle);
isAdminActive(in ComponentName policyReceiver, int userHandle)145     boolean isAdminActive(in ComponentName policyReceiver, int userHandle);
getActiveAdmins(int userHandle)146     List<ComponentName> getActiveAdmins(int userHandle);
147     @UnsupportedAppUsage
packageHasActiveAdmins(String packageName, int userHandle)148     boolean packageHasActiveAdmins(String packageName, int userHandle);
getRemoveWarning(in ComponentName policyReceiver, in RemoteCallback result, int userHandle)149     void getRemoveWarning(in ComponentName policyReceiver, in RemoteCallback result, int userHandle);
removeActiveAdmin(in ComponentName policyReceiver, int userHandle)150     void removeActiveAdmin(in ComponentName policyReceiver, int userHandle);
forceRemoveActiveAdmin(in ComponentName policyReceiver, int userHandle)151     void forceRemoveActiveAdmin(in ComponentName policyReceiver, int userHandle);
hasGrantedPolicy(in ComponentName policyReceiver, int usesPolicy, int userHandle)152     boolean hasGrantedPolicy(in ComponentName policyReceiver, int usesPolicy, int userHandle);
153 
reportPasswordChanged(int userId)154     void reportPasswordChanged(int userId);
reportFailedPasswordAttempt(int userHandle)155     void reportFailedPasswordAttempt(int userHandle);
reportSuccessfulPasswordAttempt(int userHandle)156     void reportSuccessfulPasswordAttempt(int userHandle);
reportFailedBiometricAttempt(int userHandle)157     void reportFailedBiometricAttempt(int userHandle);
reportSuccessfulBiometricAttempt(int userHandle)158     void reportSuccessfulBiometricAttempt(int userHandle);
reportKeyguardDismissed(int userHandle)159     void reportKeyguardDismissed(int userHandle);
reportKeyguardSecured(int userHandle)160     void reportKeyguardSecured(int userHandle);
161 
setDeviceOwner(in ComponentName who, String ownerName, int userId)162     boolean setDeviceOwner(in ComponentName who, String ownerName, int userId);
getDeviceOwnerComponent(boolean callingUserOnly)163     ComponentName getDeviceOwnerComponent(boolean callingUserOnly);
hasDeviceOwner()164     boolean hasDeviceOwner();
getDeviceOwnerName()165     String getDeviceOwnerName();
clearDeviceOwner(String packageName)166     void clearDeviceOwner(String packageName);
getDeviceOwnerUserId()167     int getDeviceOwnerUserId();
168 
setProfileOwner(in ComponentName who, String ownerName, int userHandle)169     boolean setProfileOwner(in ComponentName who, String ownerName, int userHandle);
getProfileOwnerAsUser(int userHandle)170     ComponentName getProfileOwnerAsUser(int userHandle);
getProfileOwnerOrDeviceOwnerSupervisionComponent(in UserHandle userHandle)171     ComponentName getProfileOwnerOrDeviceOwnerSupervisionComponent(in UserHandle userHandle);
getProfileOwnerName(int userHandle)172     String getProfileOwnerName(int userHandle);
setProfileEnabled(in ComponentName who)173     void setProfileEnabled(in ComponentName who);
setProfileName(in ComponentName who, String profileName)174     void setProfileName(in ComponentName who, String profileName);
clearProfileOwner(in ComponentName who)175     void clearProfileOwner(in ComponentName who);
hasUserSetupCompleted()176     boolean hasUserSetupCompleted();
isOrganizationOwnedDeviceWithManagedProfile()177     boolean isOrganizationOwnedDeviceWithManagedProfile();
178 
checkDeviceIdentifierAccess(in String packageName, int pid, int uid)179     boolean checkDeviceIdentifierAccess(in String packageName, int pid, int uid);
180 
setDeviceOwnerLockScreenInfo(in ComponentName who, CharSequence deviceOwnerInfo)181     void setDeviceOwnerLockScreenInfo(in ComponentName who, CharSequence deviceOwnerInfo);
getDeviceOwnerLockScreenInfo()182     CharSequence getDeviceOwnerLockScreenInfo();
183 
setPackagesSuspended(in ComponentName admin, in String callerPackage, in String[] packageNames, boolean suspended)184     String[] setPackagesSuspended(in ComponentName admin, in String callerPackage, in String[] packageNames, boolean suspended);
isPackageSuspended(in ComponentName admin, in String callerPackage, String packageName)185     boolean isPackageSuspended(in ComponentName admin, in String callerPackage, String packageName);
listPolicyExemptApps()186     List<String> listPolicyExemptApps();
187 
installCaCert(in ComponentName admin, String callerPackage, in byte[] certBuffer)188     boolean installCaCert(in ComponentName admin, String callerPackage, in byte[] certBuffer);
uninstallCaCerts(in ComponentName admin, String callerPackage, in String[] aliases)189     void uninstallCaCerts(in ComponentName admin, String callerPackage, in String[] aliases);
enforceCanManageCaCerts(in ComponentName admin, in String callerPackage)190     void enforceCanManageCaCerts(in ComponentName admin, in String callerPackage);
approveCaCert(in String alias, int userHandle, boolean approval)191     boolean approveCaCert(in String alias, int userHandle, boolean approval);
isCaCertApproved(in String alias, int userHandle)192     boolean isCaCertApproved(in String alias, int userHandle);
193 
installKeyPair(in ComponentName who, in String callerPackage, in byte[] privKeyBuffer, in byte[] certBuffer, in byte[] certChainBuffer, String alias, boolean requestAccess, boolean isUserSelectable)194     boolean installKeyPair(in ComponentName who, in String callerPackage, in byte[] privKeyBuffer,
195             in byte[] certBuffer, in byte[] certChainBuffer, String alias, boolean requestAccess,
196             boolean isUserSelectable);
removeKeyPair(in ComponentName who, in String callerPackage, String alias)197     boolean removeKeyPair(in ComponentName who, in String callerPackage, String alias);
hasKeyPair(in String callerPackage, in String alias)198     boolean hasKeyPair(in String callerPackage, in String alias);
generateKeyPair(in ComponentName who, in String callerPackage, in String algorithm, in ParcelableKeyGenParameterSpec keySpec, in int idAttestationFlags, out KeymasterCertificateChain attestationChain)199     boolean generateKeyPair(in ComponentName who, in String callerPackage, in String algorithm,
200             in ParcelableKeyGenParameterSpec keySpec,
201             in int idAttestationFlags, out KeymasterCertificateChain attestationChain);
setKeyPairCertificate(in ComponentName who, in String callerPackage, in String alias, in byte[] certBuffer, in byte[] certChainBuffer, boolean isUserSelectable)202     boolean setKeyPairCertificate(in ComponentName who, in String callerPackage, in String alias,
203             in byte[] certBuffer, in byte[] certChainBuffer, boolean isUserSelectable);
choosePrivateKeyAlias(int uid, in Uri uri, in String alias, IBinder aliasCallback)204     void choosePrivateKeyAlias(int uid, in Uri uri, in String alias, IBinder aliasCallback);
205 
setDelegatedScopes(in ComponentName who, in String delegatePackage, in List<String> scopes)206     void setDelegatedScopes(in ComponentName who, in String delegatePackage, in List<String> scopes);
getDelegatedScopes(in ComponentName who, String delegatePackage)207     List<String> getDelegatedScopes(in ComponentName who, String delegatePackage);
getDelegatePackages(in ComponentName who, String scope)208     List<String> getDelegatePackages(in ComponentName who, String scope);
209 
setCertInstallerPackage(in ComponentName who, String installerPackage)210     void setCertInstallerPackage(in ComponentName who, String installerPackage);
getCertInstallerPackage(in ComponentName who)211     String getCertInstallerPackage(in ComponentName who);
212 
setAlwaysOnVpnPackage(in ComponentName who, String vpnPackage, boolean lockdown, in List<String> lockdownAllowlist)213     boolean setAlwaysOnVpnPackage(in ComponentName who, String vpnPackage, boolean lockdown, in List<String> lockdownAllowlist);
getAlwaysOnVpnPackage(in ComponentName who)214     String getAlwaysOnVpnPackage(in ComponentName who);
getAlwaysOnVpnPackageForUser(int userHandle)215     String getAlwaysOnVpnPackageForUser(int userHandle);
isAlwaysOnVpnLockdownEnabled(in ComponentName who)216     boolean isAlwaysOnVpnLockdownEnabled(in ComponentName who);
isAlwaysOnVpnLockdownEnabledForUser(int userHandle)217     boolean isAlwaysOnVpnLockdownEnabledForUser(int userHandle);
getAlwaysOnVpnLockdownAllowlist(in ComponentName who)218     List<String> getAlwaysOnVpnLockdownAllowlist(in ComponentName who);
219 
addPersistentPreferredActivity(in ComponentName admin, in IntentFilter filter, in ComponentName activity)220     void addPersistentPreferredActivity(in ComponentName admin, in IntentFilter filter, in ComponentName activity);
clearPackagePersistentPreferredActivities(in ComponentName admin, String packageName)221     void clearPackagePersistentPreferredActivities(in ComponentName admin, String packageName);
222 
setDefaultSmsApplication(in ComponentName admin, String packageName, boolean parent)223     void setDefaultSmsApplication(in ComponentName admin, String packageName, boolean parent);
224 
setApplicationRestrictions(in ComponentName who, in String callerPackage, in String packageName, in Bundle settings)225     void setApplicationRestrictions(in ComponentName who, in String callerPackage, in String packageName, in Bundle settings);
getApplicationRestrictions(in ComponentName who, in String callerPackage, in String packageName)226     Bundle getApplicationRestrictions(in ComponentName who, in String callerPackage, in String packageName);
setApplicationRestrictionsManagingPackage(in ComponentName admin, in String packageName)227     boolean setApplicationRestrictionsManagingPackage(in ComponentName admin, in String packageName);
getApplicationRestrictionsManagingPackage(in ComponentName admin)228     String getApplicationRestrictionsManagingPackage(in ComponentName admin);
isCallerApplicationRestrictionsManagingPackage(in String callerPackage)229     boolean isCallerApplicationRestrictionsManagingPackage(in String callerPackage);
230 
setRestrictionsProvider(in ComponentName who, in ComponentName provider)231     void setRestrictionsProvider(in ComponentName who, in ComponentName provider);
getRestrictionsProvider(int userHandle)232     ComponentName getRestrictionsProvider(int userHandle);
233 
setUserRestriction(in ComponentName who, in String key, boolean enable, boolean parent)234     void setUserRestriction(in ComponentName who, in String key, boolean enable, boolean parent);
getUserRestrictions(in ComponentName who, boolean parent)235     Bundle getUserRestrictions(in ComponentName who, boolean parent);
addCrossProfileIntentFilter(in ComponentName admin, in IntentFilter filter, int flags)236     void addCrossProfileIntentFilter(in ComponentName admin, in IntentFilter filter, int flags);
clearCrossProfileIntentFilters(in ComponentName admin)237     void clearCrossProfileIntentFilters(in ComponentName admin);
238 
setPermittedAccessibilityServices(in ComponentName admin,in List packageList)239     boolean setPermittedAccessibilityServices(in ComponentName admin,in List packageList);
getPermittedAccessibilityServices(in ComponentName admin)240     List getPermittedAccessibilityServices(in ComponentName admin);
getPermittedAccessibilityServicesForUser(int userId)241     List getPermittedAccessibilityServicesForUser(int userId);
isAccessibilityServicePermittedByAdmin(in ComponentName admin, String packageName, int userId)242     boolean isAccessibilityServicePermittedByAdmin(in ComponentName admin, String packageName, int userId);
243 
setPermittedInputMethods(in ComponentName admin,in List packageList, boolean parent)244     boolean setPermittedInputMethods(in ComponentName admin,in List packageList, boolean parent);
getPermittedInputMethods(in ComponentName admin, boolean parent)245     List getPermittedInputMethods(in ComponentName admin, boolean parent);
getPermittedInputMethodsForCurrentUser()246     List getPermittedInputMethodsForCurrentUser();
isInputMethodPermittedByAdmin(in ComponentName admin, String packageName, int userId, boolean parent)247     boolean isInputMethodPermittedByAdmin(in ComponentName admin, String packageName, int userId, boolean parent);
248 
setPermittedCrossProfileNotificationListeners(in ComponentName admin, in List<String> packageList)249     boolean setPermittedCrossProfileNotificationListeners(in ComponentName admin, in List<String> packageList);
getPermittedCrossProfileNotificationListeners(in ComponentName admin)250     List<String> getPermittedCrossProfileNotificationListeners(in ComponentName admin);
isNotificationListenerServicePermitted(in String packageName, int userId)251     boolean isNotificationListenerServicePermitted(in String packageName, int userId);
252 
createAdminSupportIntent(in String restriction)253     Intent createAdminSupportIntent(in String restriction);
setApplicationHidden(in ComponentName admin, in String callerPackage, in String packageName, boolean hidden, boolean parent)254     boolean setApplicationHidden(in ComponentName admin, in String callerPackage, in String packageName, boolean hidden, boolean parent);
isApplicationHidden(in ComponentName admin, in String callerPackage, in String packageName, boolean parent)255     boolean isApplicationHidden(in ComponentName admin, in String callerPackage, in String packageName, boolean parent);
256 
createAndManageUser(in ComponentName who, in String name, in ComponentName profileOwner, in PersistableBundle adminExtras, in int flags)257     UserHandle createAndManageUser(in ComponentName who, in String name, in ComponentName profileOwner, in PersistableBundle adminExtras, in int flags);
removeUser(in ComponentName who, in UserHandle userHandle)258     boolean removeUser(in ComponentName who, in UserHandle userHandle);
switchUser(in ComponentName who, in UserHandle userHandle)259     boolean switchUser(in ComponentName who, in UserHandle userHandle);
startUserInBackground(in ComponentName who, in UserHandle userHandle)260     int startUserInBackground(in ComponentName who, in UserHandle userHandle);
stopUser(in ComponentName who, in UserHandle userHandle)261     int stopUser(in ComponentName who, in UserHandle userHandle);
logoutUser(in ComponentName who)262     int logoutUser(in ComponentName who);
getSecondaryUsers(in ComponentName who)263     List<UserHandle> getSecondaryUsers(in ComponentName who);
resetNewUserDisclaimer()264     void resetNewUserDisclaimer();
265 
enableSystemApp(in ComponentName admin, in String callerPackage, in String packageName)266     void enableSystemApp(in ComponentName admin, in String callerPackage, in String packageName);
enableSystemAppWithIntent(in ComponentName admin, in String callerPackage, in Intent intent)267     int enableSystemAppWithIntent(in ComponentName admin, in String callerPackage, in Intent intent);
installExistingPackage(in ComponentName admin, in String callerPackage, in String packageName)268     boolean installExistingPackage(in ComponentName admin, in String callerPackage, in String packageName);
269 
setAccountManagementDisabled(in ComponentName who, in String accountType, in boolean disabled, in boolean parent)270     void setAccountManagementDisabled(in ComponentName who, in String accountType, in boolean disabled, in boolean parent);
getAccountTypesWithManagementDisabled()271     String[] getAccountTypesWithManagementDisabled();
getAccountTypesWithManagementDisabledAsUser(int userId, in boolean parent)272     String[] getAccountTypesWithManagementDisabledAsUser(int userId, in boolean parent);
273 
setSecondaryLockscreenEnabled(in ComponentName who, boolean enabled)274     void setSecondaryLockscreenEnabled(in ComponentName who, boolean enabled);
isSecondaryLockscreenEnabled(in UserHandle userHandle)275     boolean isSecondaryLockscreenEnabled(in UserHandle userHandle);
276 
setPreferentialNetworkServiceEnabled(in boolean enabled)277     void setPreferentialNetworkServiceEnabled(in boolean enabled);
isPreferentialNetworkServiceEnabled(int userHandle)278     boolean isPreferentialNetworkServiceEnabled(int userHandle);
279 
setLockTaskPackages(in ComponentName who, in String[] packages)280     void setLockTaskPackages(in ComponentName who, in String[] packages);
getLockTaskPackages(in ComponentName who)281     String[] getLockTaskPackages(in ComponentName who);
isLockTaskPermitted(in String pkg)282     boolean isLockTaskPermitted(in String pkg);
283 
setLockTaskFeatures(in ComponentName who, int flags)284     void setLockTaskFeatures(in ComponentName who, int flags);
getLockTaskFeatures(in ComponentName who)285     int getLockTaskFeatures(in ComponentName who);
286 
setGlobalSetting(in ComponentName who, in String setting, in String value)287     void setGlobalSetting(in ComponentName who, in String setting, in String value);
setSystemSetting(in ComponentName who, in String setting, in String value)288     void setSystemSetting(in ComponentName who, in String setting, in String value);
setSecureSetting(in ComponentName who, in String setting, in String value)289     void setSecureSetting(in ComponentName who, in String setting, in String value);
290 
setConfiguredNetworksLockdownState(in ComponentName who, boolean lockdown)291     void setConfiguredNetworksLockdownState(in ComponentName who, boolean lockdown);
hasLockdownAdminConfiguredNetworks(in ComponentName who)292     boolean hasLockdownAdminConfiguredNetworks(in ComponentName who);
293 
setLocationEnabled(in ComponentName who, boolean locationEnabled)294     void setLocationEnabled(in ComponentName who, boolean locationEnabled);
295 
setTime(in ComponentName who, long millis)296     boolean setTime(in ComponentName who, long millis);
setTimeZone(in ComponentName who, String timeZone)297     boolean setTimeZone(in ComponentName who, String timeZone);
298 
setMasterVolumeMuted(in ComponentName admin, boolean on)299     void setMasterVolumeMuted(in ComponentName admin, boolean on);
isMasterVolumeMuted(in ComponentName admin)300     boolean isMasterVolumeMuted(in ComponentName admin);
301 
notifyLockTaskModeChanged(boolean isEnabled, String pkg, int userId)302     void notifyLockTaskModeChanged(boolean isEnabled, String pkg, int userId);
303 
setUninstallBlocked(in ComponentName admin, in String callerPackage, in String packageName, boolean uninstallBlocked)304     void setUninstallBlocked(in ComponentName admin, in String callerPackage, in String packageName, boolean uninstallBlocked);
isUninstallBlocked(in ComponentName admin, in String packageName)305     boolean isUninstallBlocked(in ComponentName admin, in String packageName);
306 
setCrossProfileCallerIdDisabled(in ComponentName who, boolean disabled)307     void setCrossProfileCallerIdDisabled(in ComponentName who, boolean disabled);
getCrossProfileCallerIdDisabled(in ComponentName who)308     boolean getCrossProfileCallerIdDisabled(in ComponentName who);
getCrossProfileCallerIdDisabledForUser(int userId)309     boolean getCrossProfileCallerIdDisabledForUser(int userId);
setCrossProfileContactsSearchDisabled(in ComponentName who, boolean disabled)310     void setCrossProfileContactsSearchDisabled(in ComponentName who, boolean disabled);
getCrossProfileContactsSearchDisabled(in ComponentName who)311     boolean getCrossProfileContactsSearchDisabled(in ComponentName who);
getCrossProfileContactsSearchDisabledForUser(int userId)312     boolean getCrossProfileContactsSearchDisabledForUser(int userId);
startManagedQuickContact(String lookupKey, long contactId, boolean isContactIdIgnored, long directoryId, in Intent originalIntent)313     void startManagedQuickContact(String lookupKey, long contactId, boolean isContactIdIgnored, long directoryId, in Intent originalIntent);
314 
setBluetoothContactSharingDisabled(in ComponentName who, boolean disabled)315     void setBluetoothContactSharingDisabled(in ComponentName who, boolean disabled);
getBluetoothContactSharingDisabled(in ComponentName who)316     boolean getBluetoothContactSharingDisabled(in ComponentName who);
getBluetoothContactSharingDisabledForUser(int userId)317     boolean getBluetoothContactSharingDisabledForUser(int userId);
318 
setTrustAgentConfiguration(in ComponentName admin, in ComponentName agent, in PersistableBundle args, boolean parent)319     void setTrustAgentConfiguration(in ComponentName admin, in ComponentName agent,
320             in PersistableBundle args, boolean parent);
getTrustAgentConfiguration(in ComponentName admin, in ComponentName agent, int userId, boolean parent)321     List<PersistableBundle> getTrustAgentConfiguration(in ComponentName admin,
322             in ComponentName agent, int userId, boolean parent);
323 
addCrossProfileWidgetProvider(in ComponentName admin, String packageName)324     boolean addCrossProfileWidgetProvider(in ComponentName admin, String packageName);
removeCrossProfileWidgetProvider(in ComponentName admin, String packageName)325     boolean removeCrossProfileWidgetProvider(in ComponentName admin, String packageName);
getCrossProfileWidgetProviders(in ComponentName admin)326     List<String> getCrossProfileWidgetProviders(in ComponentName admin);
327 
setAutoTimeRequired(in ComponentName who, boolean required)328     void setAutoTimeRequired(in ComponentName who, boolean required);
getAutoTimeRequired()329     boolean getAutoTimeRequired();
330 
setAutoTimeEnabled(in ComponentName who, boolean enabled)331     void setAutoTimeEnabled(in ComponentName who, boolean enabled);
getAutoTimeEnabled(in ComponentName who)332     boolean getAutoTimeEnabled(in ComponentName who);
333 
setAutoTimeZoneEnabled(in ComponentName who, boolean enabled)334     void setAutoTimeZoneEnabled(in ComponentName who, boolean enabled);
getAutoTimeZoneEnabled(in ComponentName who)335     boolean getAutoTimeZoneEnabled(in ComponentName who);
336 
setForceEphemeralUsers(in ComponentName who, boolean forceEpehemeralUsers)337     void setForceEphemeralUsers(in ComponentName who, boolean forceEpehemeralUsers);
getForceEphemeralUsers(in ComponentName who)338     boolean getForceEphemeralUsers(in ComponentName who);
339 
isRemovingAdmin(in ComponentName adminReceiver, int userHandle)340     boolean isRemovingAdmin(in ComponentName adminReceiver, int userHandle);
341 
setUserIcon(in ComponentName admin, in Bitmap icon)342     void setUserIcon(in ComponentName admin, in Bitmap icon);
343 
setSystemUpdatePolicy(in ComponentName who, in SystemUpdatePolicy policy)344     void setSystemUpdatePolicy(in ComponentName who, in SystemUpdatePolicy policy);
getSystemUpdatePolicy()345     SystemUpdatePolicy getSystemUpdatePolicy();
clearSystemUpdatePolicyFreezePeriodRecord()346     void clearSystemUpdatePolicyFreezePeriodRecord();
347 
setKeyguardDisabled(in ComponentName admin, boolean disabled)348     boolean setKeyguardDisabled(in ComponentName admin, boolean disabled);
setStatusBarDisabled(in ComponentName who, boolean disabled)349     boolean setStatusBarDisabled(in ComponentName who, boolean disabled);
getDoNotAskCredentialsOnBoot()350     boolean getDoNotAskCredentialsOnBoot();
351 
notifyPendingSystemUpdate(in SystemUpdateInfo info)352     void notifyPendingSystemUpdate(in SystemUpdateInfo info);
getPendingSystemUpdate(in ComponentName admin)353     SystemUpdateInfo getPendingSystemUpdate(in ComponentName admin);
354 
setPermissionPolicy(in ComponentName admin, in String callerPackage, int policy)355     void setPermissionPolicy(in ComponentName admin, in String callerPackage, int policy);
getPermissionPolicy(in ComponentName admin)356     int  getPermissionPolicy(in ComponentName admin);
setPermissionGrantState(in ComponentName admin, in String callerPackage, String packageName, String permission, int grantState, in RemoteCallback resultReceiver)357     void setPermissionGrantState(in ComponentName admin, in String callerPackage, String packageName,
358             String permission, int grantState, in RemoteCallback resultReceiver);
getPermissionGrantState(in ComponentName admin, in String callerPackage, String packageName, String permission)359     int getPermissionGrantState(in ComponentName admin, in String callerPackage, String packageName, String permission);
isProvisioningAllowed(String action, String packageName)360     boolean isProvisioningAllowed(String action, String packageName);
checkProvisioningPreCondition(String action, String packageName)361     int checkProvisioningPreCondition(String action, String packageName);
setKeepUninstalledPackages(in ComponentName admin, in String callerPackage, in List<String> packageList)362     void setKeepUninstalledPackages(in ComponentName admin, in String callerPackage, in List<String> packageList);
getKeepUninstalledPackages(in ComponentName admin, in String callerPackage)363     List<String> getKeepUninstalledPackages(in ComponentName admin, in String callerPackage);
isManagedProfile(in ComponentName admin)364     boolean isManagedProfile(in ComponentName admin);
getWifiMacAddress(in ComponentName admin)365     String getWifiMacAddress(in ComponentName admin);
reboot(in ComponentName admin)366     void reboot(in ComponentName admin);
367 
setShortSupportMessage(in ComponentName admin, in CharSequence message)368     void setShortSupportMessage(in ComponentName admin, in CharSequence message);
getShortSupportMessage(in ComponentName admin)369     CharSequence getShortSupportMessage(in ComponentName admin);
setLongSupportMessage(in ComponentName admin, in CharSequence message)370     void setLongSupportMessage(in ComponentName admin, in CharSequence message);
getLongSupportMessage(in ComponentName admin)371     CharSequence getLongSupportMessage(in ComponentName admin);
372 
getShortSupportMessageForUser(in ComponentName admin, int userHandle)373     CharSequence getShortSupportMessageForUser(in ComponentName admin, int userHandle);
getLongSupportMessageForUser(in ComponentName admin, int userHandle)374     CharSequence getLongSupportMessageForUser(in ComponentName admin, int userHandle);
375 
isSeparateProfileChallengeAllowed(int userHandle)376     boolean isSeparateProfileChallengeAllowed(int userHandle);
377 
setOrganizationColor(in ComponentName admin, in int color)378     void setOrganizationColor(in ComponentName admin, in int color);
setOrganizationColorForUser(in int color, in int userId)379     void setOrganizationColorForUser(in int color, in int userId);
getOrganizationColor(in ComponentName admin)380     int getOrganizationColor(in ComponentName admin);
getOrganizationColorForUser(int userHandle)381     int getOrganizationColorForUser(int userHandle);
382 
setOrganizationName(in ComponentName admin, in CharSequence title)383     void setOrganizationName(in ComponentName admin, in CharSequence title);
getOrganizationName(in ComponentName admin)384     CharSequence getOrganizationName(in ComponentName admin);
getDeviceOwnerOrganizationName()385     CharSequence getDeviceOwnerOrganizationName();
getOrganizationNameForUser(int userHandle)386     CharSequence getOrganizationNameForUser(int userHandle);
387 
getUserProvisioningState()388     int getUserProvisioningState();
setUserProvisioningState(int state, int userHandle)389     void setUserProvisioningState(int state, int userHandle);
390 
setAffiliationIds(in ComponentName admin, in List<String> ids)391     void setAffiliationIds(in ComponentName admin, in List<String> ids);
getAffiliationIds(in ComponentName admin)392     List<String> getAffiliationIds(in ComponentName admin);
isCallingUserAffiliated()393     boolean isCallingUserAffiliated();
isAffiliatedUser(int userId)394     boolean isAffiliatedUser(int userId);
395 
setSecurityLoggingEnabled(in ComponentName admin, String packageName, boolean enabled)396     void setSecurityLoggingEnabled(in ComponentName admin, String packageName, boolean enabled);
isSecurityLoggingEnabled(in ComponentName admin, String packageName)397     boolean isSecurityLoggingEnabled(in ComponentName admin, String packageName);
retrieveSecurityLogs(in ComponentName admin, String packageName)398     ParceledListSlice retrieveSecurityLogs(in ComponentName admin, String packageName);
retrievePreRebootSecurityLogs(in ComponentName admin, String packageName)399     ParceledListSlice retrievePreRebootSecurityLogs(in ComponentName admin, String packageName);
forceNetworkLogs()400     long forceNetworkLogs();
forceSecurityLogs()401     long forceSecurityLogs();
402 
isUninstallInQueue(String packageName)403     boolean isUninstallInQueue(String packageName);
uninstallPackageWithActiveAdmins(String packageName)404     void uninstallPackageWithActiveAdmins(String packageName);
405 
isDeviceProvisioned()406     boolean isDeviceProvisioned();
isDeviceProvisioningConfigApplied()407     boolean isDeviceProvisioningConfigApplied();
setDeviceProvisioningConfigApplied()408     void setDeviceProvisioningConfigApplied();
409 
forceUpdateUserSetupComplete(int userId)410     void forceUpdateUserSetupComplete(int userId);
411 
setBackupServiceEnabled(in ComponentName admin, boolean enabled)412     void setBackupServiceEnabled(in ComponentName admin, boolean enabled);
isBackupServiceEnabled(in ComponentName admin)413     boolean isBackupServiceEnabled(in ComponentName admin);
414 
setNetworkLoggingEnabled(in ComponentName admin, in String packageName, boolean enabled)415     void setNetworkLoggingEnabled(in ComponentName admin, in String packageName, boolean enabled);
isNetworkLoggingEnabled(in ComponentName admin, in String packageName)416     boolean isNetworkLoggingEnabled(in ComponentName admin, in String packageName);
retrieveNetworkLogs(in ComponentName admin, in String packageName, long batchToken)417     List<NetworkEvent> retrieveNetworkLogs(in ComponentName admin, in String packageName, long batchToken);
418 
bindDeviceAdminServiceAsUser(in ComponentName admin, IApplicationThread caller, IBinder token, in Intent service, IServiceConnection connection, int flags, int targetUserId)419     boolean bindDeviceAdminServiceAsUser(in ComponentName admin,
420         IApplicationThread caller, IBinder token, in Intent service,
421         IServiceConnection connection, int flags, int targetUserId);
getBindDeviceAdminTargetUsers(in ComponentName admin)422     List<UserHandle> getBindDeviceAdminTargetUsers(in ComponentName admin);
isEphemeralUser(in ComponentName admin)423     boolean isEphemeralUser(in ComponentName admin);
424 
getLastSecurityLogRetrievalTime()425     long getLastSecurityLogRetrievalTime();
getLastBugReportRequestTime()426     long getLastBugReportRequestTime();
getLastNetworkLogRetrievalTime()427     long getLastNetworkLogRetrievalTime();
428 
setResetPasswordToken(in ComponentName admin, in byte[] token)429     boolean setResetPasswordToken(in ComponentName admin, in byte[] token);
clearResetPasswordToken(in ComponentName admin)430     boolean clearResetPasswordToken(in ComponentName admin);
isResetPasswordTokenActive(in ComponentName admin)431     boolean isResetPasswordTokenActive(in ComponentName admin);
resetPasswordWithToken(in ComponentName admin, String password, in byte[] token, int flags)432     boolean resetPasswordWithToken(in ComponentName admin, String password, in byte[] token, int flags);
433 
isCurrentInputMethodSetByOwner()434     boolean isCurrentInputMethodSetByOwner();
getOwnerInstalledCaCerts(in UserHandle user)435     StringParceledListSlice getOwnerInstalledCaCerts(in UserHandle user);
436 
clearApplicationUserData(in ComponentName admin, in String packageName, in IPackageDataObserver callback)437     void clearApplicationUserData(in ComponentName admin, in String packageName, in IPackageDataObserver callback);
438 
setLogoutEnabled(in ComponentName admin, boolean enabled)439     void setLogoutEnabled(in ComponentName admin, boolean enabled);
isLogoutEnabled()440     boolean isLogoutEnabled();
441 
getDisallowedSystemApps(in ComponentName admin, int userId, String provisioningAction)442     List<String> getDisallowedSystemApps(in ComponentName admin, int userId, String provisioningAction);
443 
transferOwnership(in ComponentName admin, in ComponentName target, in PersistableBundle bundle)444     void transferOwnership(in ComponentName admin, in ComponentName target, in PersistableBundle bundle);
getTransferOwnershipBundle()445     PersistableBundle getTransferOwnershipBundle();
446 
setStartUserSessionMessage(in ComponentName admin, in CharSequence startUserSessionMessage)447     void setStartUserSessionMessage(in ComponentName admin, in CharSequence startUserSessionMessage);
setEndUserSessionMessage(in ComponentName admin, in CharSequence endUserSessionMessage)448     void setEndUserSessionMessage(in ComponentName admin, in CharSequence endUserSessionMessage);
getStartUserSessionMessage(in ComponentName admin)449     CharSequence getStartUserSessionMessage(in ComponentName admin);
getEndUserSessionMessage(in ComponentName admin)450     CharSequence getEndUserSessionMessage(in ComponentName admin);
451 
setMeteredDataDisabledPackages(in ComponentName admin, in List<String> packageNames)452     List<String> setMeteredDataDisabledPackages(in ComponentName admin, in List<String> packageNames);
getMeteredDataDisabledPackages(in ComponentName admin)453     List<String> getMeteredDataDisabledPackages(in ComponentName admin);
454 
addOverrideApn(in ComponentName admin, in ApnSetting apnSetting)455     int addOverrideApn(in ComponentName admin, in ApnSetting apnSetting);
updateOverrideApn(in ComponentName admin, int apnId, in ApnSetting apnSetting)456     boolean updateOverrideApn(in ComponentName admin, int apnId, in ApnSetting apnSetting);
removeOverrideApn(in ComponentName admin, int apnId)457     boolean removeOverrideApn(in ComponentName admin, int apnId);
getOverrideApns(in ComponentName admin)458     List<ApnSetting> getOverrideApns(in ComponentName admin);
setOverrideApnsEnabled(in ComponentName admin, boolean enabled)459     void setOverrideApnsEnabled(in ComponentName admin, boolean enabled);
isOverrideApnEnabled(in ComponentName admin)460     boolean isOverrideApnEnabled(in ComponentName admin);
461 
isMeteredDataDisabledPackageForUser(in ComponentName admin, String packageName, int userId)462     boolean isMeteredDataDisabledPackageForUser(in ComponentName admin, String packageName, int userId);
463 
setGlobalPrivateDns(in ComponentName admin, int mode, in String privateDnsHost)464     int setGlobalPrivateDns(in ComponentName admin, int mode, in String privateDnsHost);
getGlobalPrivateDnsMode(in ComponentName admin)465     int getGlobalPrivateDnsMode(in ComponentName admin);
getGlobalPrivateDnsHost(in ComponentName admin)466     String getGlobalPrivateDnsHost(in ComponentName admin);
467 
markProfileOwnerOnOrganizationOwnedDevice(in ComponentName who, int userId)468     void markProfileOwnerOnOrganizationOwnedDevice(in ComponentName who, int userId);
469 
installUpdateFromFile(in ComponentName admin, in ParcelFileDescriptor updateFileDescriptor, in StartInstallingUpdateCallback listener)470     void installUpdateFromFile(in ComponentName admin, in ParcelFileDescriptor updateFileDescriptor, in StartInstallingUpdateCallback listener);
471 
setCrossProfileCalendarPackages(in ComponentName admin, in List<String> packageNames)472     void setCrossProfileCalendarPackages(in ComponentName admin, in List<String> packageNames);
getCrossProfileCalendarPackages(in ComponentName admin)473     List<String> getCrossProfileCalendarPackages(in ComponentName admin);
isPackageAllowedToAccessCalendarForUser(String packageName, int userHandle)474     boolean isPackageAllowedToAccessCalendarForUser(String packageName, int userHandle);
getCrossProfileCalendarPackagesForUser(int userHandle)475     List<String> getCrossProfileCalendarPackagesForUser(int userHandle);
476 
setCrossProfilePackages(in ComponentName admin, in List<String> packageNames)477     void setCrossProfilePackages(in ComponentName admin, in List<String> packageNames);
getCrossProfilePackages(in ComponentName admin)478     List<String> getCrossProfilePackages(in ComponentName admin);
479 
getAllCrossProfilePackages()480     List<String> getAllCrossProfilePackages();
getDefaultCrossProfilePackages()481     List<String> getDefaultCrossProfilePackages();
482 
isManagedKiosk()483     boolean isManagedKiosk();
isUnattendedManagedKiosk()484     boolean isUnattendedManagedKiosk();
485 
startViewCalendarEventInManagedProfile(String packageName, long eventId, long start, long end, boolean allDay, int flags)486     boolean startViewCalendarEventInManagedProfile(String packageName, long eventId, long start, long end, boolean allDay, int flags);
487 
setKeyGrantForApp(in ComponentName admin, String callerPackage, String alias, String packageName, boolean hasGrant)488     boolean setKeyGrantForApp(in ComponentName admin, String callerPackage, String alias, String packageName, boolean hasGrant);
getKeyPairGrants(in String callerPackage, in String alias)489     ParcelableGranteeMap getKeyPairGrants(in String callerPackage, in String alias);
setKeyGrantToWifiAuth(String callerPackage, String alias, boolean hasGrant)490     boolean setKeyGrantToWifiAuth(String callerPackage, String alias, boolean hasGrant);
isKeyPairGrantedToWifiAuth(String callerPackage, String alias)491     boolean isKeyPairGrantedToWifiAuth(String callerPackage, String alias);
492 
setUserControlDisabledPackages(in ComponentName admin, in List<String> packages)493     void setUserControlDisabledPackages(in ComponentName admin, in List<String> packages);
494 
getUserControlDisabledPackages(in ComponentName admin)495     List<String> getUserControlDisabledPackages(in ComponentName admin);
496 
setCommonCriteriaModeEnabled(in ComponentName admin, boolean enabled)497     void setCommonCriteriaModeEnabled(in ComponentName admin, boolean enabled);
isCommonCriteriaModeEnabled(in ComponentName admin)498     boolean isCommonCriteriaModeEnabled(in ComponentName admin);
499 
getPersonalAppsSuspendedReasons(in ComponentName admin)500     int getPersonalAppsSuspendedReasons(in ComponentName admin);
setPersonalAppsSuspended(in ComponentName admin, boolean suspended)501     void setPersonalAppsSuspended(in ComponentName admin, boolean suspended);
502 
getManagedProfileMaximumTimeOff(in ComponentName admin)503     long getManagedProfileMaximumTimeOff(in ComponentName admin);
setManagedProfileMaximumTimeOff(in ComponentName admin, long timeoutMs)504     void setManagedProfileMaximumTimeOff(in ComponentName admin, long timeoutMs);
505 
acknowledgeDeviceCompliant()506     void acknowledgeDeviceCompliant();
isComplianceAcknowledgementRequired()507     boolean isComplianceAcknowledgementRequired();
508 
canProfileOwnerResetPasswordWhenLocked(int userId)509     boolean canProfileOwnerResetPasswordWhenLocked(int userId);
510 
setNextOperationSafety(int operation, int reason)511     void setNextOperationSafety(int operation, int reason);
isSafeOperation(int reason)512     boolean isSafeOperation(int reason);
513 
getEnrollmentSpecificId(String callerPackage)514     String getEnrollmentSpecificId(String callerPackage);
setOrganizationIdForUser(in String callerPackage, in String enterpriseId, int userId)515     void setOrganizationIdForUser(in String callerPackage, in String enterpriseId, int userId);
516 
createAndProvisionManagedProfile(in ManagedProfileProvisioningParams provisioningParams, in String callerPackage)517     UserHandle createAndProvisionManagedProfile(in ManagedProfileProvisioningParams provisioningParams, in String callerPackage);
provisionFullyManagedDevice(in FullyManagedDeviceProvisioningParams provisioningParams, in String callerPackage)518     void provisionFullyManagedDevice(in FullyManagedDeviceProvisioningParams provisioningParams, in String callerPackage);
519 
setDeviceOwnerType(in ComponentName admin, in int deviceOwnerType)520     void setDeviceOwnerType(in ComponentName admin, in int deviceOwnerType);
getDeviceOwnerType(in ComponentName admin)521     int getDeviceOwnerType(in ComponentName admin);
522 
resetDefaultCrossProfileIntentFilters(int userId)523     void resetDefaultCrossProfileIntentFilters(int userId);
canAdminGrantSensorsPermissionsForUser(int userId)524     boolean canAdminGrantSensorsPermissionsForUser(int userId);
525 
setUsbDataSignalingEnabled(String callerPackage, boolean enabled)526     void setUsbDataSignalingEnabled(String callerPackage, boolean enabled);
isUsbDataSignalingEnabled(String callerPackage)527     boolean isUsbDataSignalingEnabled(String callerPackage);
isUsbDataSignalingEnabledForUser(int userId)528     boolean isUsbDataSignalingEnabledForUser(int userId);
canUsbDataSignalingBeDisabled()529     boolean canUsbDataSignalingBeDisabled();
530 
listForegroundAffiliatedUsers()531     List<UserHandle> listForegroundAffiliatedUsers();
532 }
533