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.SystemUpdatePolicy;
21 import android.content.ComponentName;
22 import android.content.Intent;
23 import android.content.IntentFilter;
24 import android.content.pm.ParceledListSlice;
25 import android.graphics.Bitmap;
26 import android.net.ProxyInfo;
27 import android.net.Uri;
28 import android.os.Bundle;
29 import android.os.PersistableBundle;
30 import android.os.RemoteCallback;
31 import android.os.UserHandle;
32 import java.util.List;
33 
34 /**
35  * Internal IPC interface to the device policy service.
36  * {@hide}
37  */
38 interface IDevicePolicyManager {
setPasswordQuality(in ComponentName who, int quality, boolean parent)39     void setPasswordQuality(in ComponentName who, int quality, boolean parent);
getPasswordQuality(in ComponentName who, int userHandle, boolean parent)40     int getPasswordQuality(in ComponentName who, int userHandle, boolean parent);
41 
setPasswordMinimumLength(in ComponentName who, int length, boolean parent)42     void setPasswordMinimumLength(in ComponentName who, int length, boolean parent);
getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent)43     int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent);
44 
setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent)45     void setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent);
getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent)46     int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent);
47 
setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent)48     void setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent);
getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent)49     int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent);
50 
setPasswordMinimumLetters(in ComponentName who, int length, boolean parent)51     void setPasswordMinimumLetters(in ComponentName who, int length, boolean parent);
getPasswordMinimumLetters(in ComponentName who, int userHandle, boolean parent)52     int getPasswordMinimumLetters(in ComponentName who, int userHandle, boolean parent);
53 
setPasswordMinimumNumeric(in ComponentName who, int length, boolean parent)54     void setPasswordMinimumNumeric(in ComponentName who, int length, boolean parent);
getPasswordMinimumNumeric(in ComponentName who, int userHandle, boolean parent)55     int getPasswordMinimumNumeric(in ComponentName who, int userHandle, boolean parent);
56 
setPasswordMinimumSymbols(in ComponentName who, int length, boolean parent)57     void setPasswordMinimumSymbols(in ComponentName who, int length, boolean parent);
getPasswordMinimumSymbols(in ComponentName who, int userHandle, boolean parent)58     int getPasswordMinimumSymbols(in ComponentName who, int userHandle, boolean parent);
59 
setPasswordMinimumNonLetter(in ComponentName who, int length, boolean parent)60     void setPasswordMinimumNonLetter(in ComponentName who, int length, boolean parent);
getPasswordMinimumNonLetter(in ComponentName who, int userHandle, boolean parent)61     int getPasswordMinimumNonLetter(in ComponentName who, int userHandle, boolean parent);
62 
setPasswordHistoryLength(in ComponentName who, int length, boolean parent)63     void setPasswordHistoryLength(in ComponentName who, int length, boolean parent);
getPasswordHistoryLength(in ComponentName who, int userHandle, boolean parent)64     int getPasswordHistoryLength(in ComponentName who, int userHandle, boolean parent);
65 
setPasswordExpirationTimeout(in ComponentName who, long expiration, boolean parent)66     void setPasswordExpirationTimeout(in ComponentName who, long expiration, boolean parent);
getPasswordExpirationTimeout(in ComponentName who, int userHandle, boolean parent)67     long getPasswordExpirationTimeout(in ComponentName who, int userHandle, boolean parent);
68 
getPasswordExpiration(in ComponentName who, int userHandle, boolean parent)69     long getPasswordExpiration(in ComponentName who, int userHandle, boolean parent);
70 
isActivePasswordSufficient(int userHandle, boolean parent)71     boolean isActivePasswordSufficient(int userHandle, boolean parent);
isProfileActivePasswordSufficientForParent(int userHandle)72     boolean isProfileActivePasswordSufficientForParent(int userHandle);
getCurrentFailedPasswordAttempts(int userHandle, boolean parent)73     int getCurrentFailedPasswordAttempts(int userHandle, boolean parent);
getProfileWithMinimumFailedPasswordsForWipe(int userHandle, boolean parent)74     int getProfileWithMinimumFailedPasswordsForWipe(int userHandle, boolean parent);
75 
setMaximumFailedPasswordsForWipe(in ComponentName admin, int num, boolean parent)76     void setMaximumFailedPasswordsForWipe(in ComponentName admin, int num, boolean parent);
getMaximumFailedPasswordsForWipe(in ComponentName admin, int userHandle, boolean parent)77     int getMaximumFailedPasswordsForWipe(in ComponentName admin, int userHandle, boolean parent);
78 
resetPassword(String password, int flags)79     boolean resetPassword(String password, int flags);
80 
setMaximumTimeToLock(in ComponentName who, long timeMs, boolean parent)81     void setMaximumTimeToLock(in ComponentName who, long timeMs, boolean parent);
getMaximumTimeToLock(in ComponentName who, int userHandle, boolean parent)82     long getMaximumTimeToLock(in ComponentName who, int userHandle, boolean parent);
getMaximumTimeToLockForUserAndProfiles(int userHandle)83     long getMaximumTimeToLockForUserAndProfiles(int userHandle);
84 
lockNow(boolean parent)85     void lockNow(boolean parent);
86 
wipeData(int flags)87     void wipeData(int flags);
88 
setGlobalProxy(in ComponentName admin, String proxySpec, String exclusionList)89     ComponentName setGlobalProxy(in ComponentName admin, String proxySpec, String exclusionList);
getGlobalProxyAdmin(int userHandle)90     ComponentName getGlobalProxyAdmin(int userHandle);
setRecommendedGlobalProxy(in ComponentName admin, in ProxyInfo proxyInfo)91     void setRecommendedGlobalProxy(in ComponentName admin, in ProxyInfo proxyInfo);
92 
setStorageEncryption(in ComponentName who, boolean encrypt)93     int setStorageEncryption(in ComponentName who, boolean encrypt);
getStorageEncryption(in ComponentName who, int userHandle)94     boolean getStorageEncryption(in ComponentName who, int userHandle);
getStorageEncryptionStatus(in String callerPackage, int userHandle)95     int getStorageEncryptionStatus(in String callerPackage, int userHandle);
96 
requestBugreport(in ComponentName who)97     boolean requestBugreport(in ComponentName who);
98 
setCameraDisabled(in ComponentName who, boolean disabled)99     void setCameraDisabled(in ComponentName who, boolean disabled);
getCameraDisabled(in ComponentName who, int userHandle)100     boolean getCameraDisabled(in ComponentName who, int userHandle);
101 
setScreenCaptureDisabled(in ComponentName who, boolean disabled)102     void setScreenCaptureDisabled(in ComponentName who, boolean disabled);
getScreenCaptureDisabled(in ComponentName who, int userHandle)103     boolean getScreenCaptureDisabled(in ComponentName who, int userHandle);
104 
setKeyguardDisabledFeatures(in ComponentName who, int which, boolean parent)105     void setKeyguardDisabledFeatures(in ComponentName who, int which, boolean parent);
getKeyguardDisabledFeatures(in ComponentName who, int userHandle, boolean parent)106     int getKeyguardDisabledFeatures(in ComponentName who, int userHandle, boolean parent);
107 
setActiveAdmin(in ComponentName policyReceiver, boolean refreshing, int userHandle)108     void setActiveAdmin(in ComponentName policyReceiver, boolean refreshing, int userHandle);
isAdminActive(in ComponentName policyReceiver, int userHandle)109     boolean isAdminActive(in ComponentName policyReceiver, int userHandle);
getActiveAdmins(int userHandle)110     List<ComponentName> getActiveAdmins(int userHandle);
packageHasActiveAdmins(String packageName, int userHandle)111     boolean packageHasActiveAdmins(String packageName, int userHandle);
getRemoveWarning(in ComponentName policyReceiver, in RemoteCallback result, int userHandle)112     void getRemoveWarning(in ComponentName policyReceiver, in RemoteCallback result, int userHandle);
removeActiveAdmin(in ComponentName policyReceiver, int userHandle)113     void removeActiveAdmin(in ComponentName policyReceiver, int userHandle);
forceRemoveActiveAdmin(in ComponentName policyReceiver, int userHandle)114     void forceRemoveActiveAdmin(in ComponentName policyReceiver, int userHandle);
hasGrantedPolicy(in ComponentName policyReceiver, int usesPolicy, int userHandle)115     boolean hasGrantedPolicy(in ComponentName policyReceiver, int usesPolicy, int userHandle);
116 
setActivePasswordState(int quality, int length, int letters, int uppercase, int lowercase, int numbers, int symbols, int nonletter, int userHandle)117     void setActivePasswordState(int quality, int length, int letters, int uppercase, int lowercase,
118         int numbers, int symbols, int nonletter, int userHandle);
reportFailedPasswordAttempt(int userHandle)119     void reportFailedPasswordAttempt(int userHandle);
reportSuccessfulPasswordAttempt(int userHandle)120     void reportSuccessfulPasswordAttempt(int userHandle);
reportFailedFingerprintAttempt(int userHandle)121     void reportFailedFingerprintAttempt(int userHandle);
reportSuccessfulFingerprintAttempt(int userHandle)122     void reportSuccessfulFingerprintAttempt(int userHandle);
reportKeyguardDismissed(int userHandle)123     void reportKeyguardDismissed(int userHandle);
reportKeyguardSecured(int userHandle)124     void reportKeyguardSecured(int userHandle);
125 
setDeviceOwner(in ComponentName who, String ownerName, int userId)126     boolean setDeviceOwner(in ComponentName who, String ownerName, int userId);
getDeviceOwnerComponent(boolean callingUserOnly)127     ComponentName getDeviceOwnerComponent(boolean callingUserOnly);
getDeviceOwnerName()128     String getDeviceOwnerName();
clearDeviceOwner(String packageName)129     void clearDeviceOwner(String packageName);
getDeviceOwnerUserId()130     int getDeviceOwnerUserId();
131 
setProfileOwner(in ComponentName who, String ownerName, int userHandle)132     boolean setProfileOwner(in ComponentName who, String ownerName, int userHandle);
getProfileOwner(int userHandle)133     ComponentName getProfileOwner(int userHandle);
getProfileOwnerName(int userHandle)134     String getProfileOwnerName(int userHandle);
setProfileEnabled(in ComponentName who)135     void setProfileEnabled(in ComponentName who);
setProfileName(in ComponentName who, String profileName)136     void setProfileName(in ComponentName who, String profileName);
clearProfileOwner(in ComponentName who)137     void clearProfileOwner(in ComponentName who);
hasUserSetupCompleted()138     boolean hasUserSetupCompleted();
139 
setDeviceOwnerLockScreenInfo(in ComponentName who, CharSequence deviceOwnerInfo)140     void setDeviceOwnerLockScreenInfo(in ComponentName who, CharSequence deviceOwnerInfo);
getDeviceOwnerLockScreenInfo()141     CharSequence getDeviceOwnerLockScreenInfo();
142 
setPackagesSuspended(in ComponentName admin, in String[] packageNames, boolean suspended)143     String[] setPackagesSuspended(in ComponentName admin, in String[] packageNames, boolean suspended);
isPackageSuspended(in ComponentName admin, String packageName)144     boolean isPackageSuspended(in ComponentName admin, String packageName);
145 
installCaCert(in ComponentName admin, in byte[] certBuffer)146     boolean installCaCert(in ComponentName admin, in byte[] certBuffer);
uninstallCaCerts(in ComponentName admin, in String[] aliases)147     void uninstallCaCerts(in ComponentName admin, in String[] aliases);
enforceCanManageCaCerts(in ComponentName admin)148     void enforceCanManageCaCerts(in ComponentName admin);
approveCaCert(in String alias, int userHandle, boolean approval)149     boolean approveCaCert(in String alias, int userHandle, boolean approval);
isCaCertApproved(in String alias, int userHandle)150     boolean isCaCertApproved(in String alias, int userHandle);
151 
installKeyPair(in ComponentName who, in byte[] privKeyBuffer, in byte[] certBuffer, in byte[] certChainBuffer, String alias, boolean requestAccess)152     boolean installKeyPair(in ComponentName who, in byte[] privKeyBuffer, in byte[] certBuffer,
153             in byte[] certChainBuffer, String alias, boolean requestAccess);
removeKeyPair(in ComponentName who, String alias)154     boolean removeKeyPair(in ComponentName who, String alias);
choosePrivateKeyAlias(int uid, in Uri uri, in String alias, IBinder aliasCallback)155     void choosePrivateKeyAlias(int uid, in Uri uri, in String alias, IBinder aliasCallback);
156 
setCertInstallerPackage(in ComponentName who, String installerPackage)157     void setCertInstallerPackage(in ComponentName who, String installerPackage);
getCertInstallerPackage(in ComponentName who)158     String getCertInstallerPackage(in ComponentName who);
159 
setAlwaysOnVpnPackage(in ComponentName who, String vpnPackage, boolean lockdown)160     boolean setAlwaysOnVpnPackage(in ComponentName who, String vpnPackage, boolean lockdown);
getAlwaysOnVpnPackage(in ComponentName who)161     String getAlwaysOnVpnPackage(in ComponentName who);
162 
addPersistentPreferredActivity(in ComponentName admin, in IntentFilter filter, in ComponentName activity)163     void addPersistentPreferredActivity(in ComponentName admin, in IntentFilter filter, in ComponentName activity);
clearPackagePersistentPreferredActivities(in ComponentName admin, String packageName)164     void clearPackagePersistentPreferredActivities(in ComponentName admin, String packageName);
165 
setApplicationRestrictions(in ComponentName who, in String packageName, in Bundle settings)166     void setApplicationRestrictions(in ComponentName who, in String packageName, in Bundle settings);
getApplicationRestrictions(in ComponentName who, in String packageName)167     Bundle getApplicationRestrictions(in ComponentName who, in String packageName);
setApplicationRestrictionsManagingPackage(in ComponentName admin, in String packageName)168     boolean setApplicationRestrictionsManagingPackage(in ComponentName admin, in String packageName);
getApplicationRestrictionsManagingPackage(in ComponentName admin)169     String getApplicationRestrictionsManagingPackage(in ComponentName admin);
isCallerApplicationRestrictionsManagingPackage()170     boolean isCallerApplicationRestrictionsManagingPackage();
171 
setRestrictionsProvider(in ComponentName who, in ComponentName provider)172     void setRestrictionsProvider(in ComponentName who, in ComponentName provider);
getRestrictionsProvider(int userHandle)173     ComponentName getRestrictionsProvider(int userHandle);
174 
setUserRestriction(in ComponentName who, in String key, boolean enable)175     void setUserRestriction(in ComponentName who, in String key, boolean enable);
getUserRestrictions(in ComponentName who)176     Bundle getUserRestrictions(in ComponentName who);
addCrossProfileIntentFilter(in ComponentName admin, in IntentFilter filter, int flags)177     void addCrossProfileIntentFilter(in ComponentName admin, in IntentFilter filter, int flags);
clearCrossProfileIntentFilters(in ComponentName admin)178     void clearCrossProfileIntentFilters(in ComponentName admin);
179 
setPermittedAccessibilityServices(in ComponentName admin,in List packageList)180     boolean setPermittedAccessibilityServices(in ComponentName admin,in List packageList);
getPermittedAccessibilityServices(in ComponentName admin)181     List getPermittedAccessibilityServices(in ComponentName admin);
getPermittedAccessibilityServicesForUser(int userId)182     List getPermittedAccessibilityServicesForUser(int userId);
isAccessibilityServicePermittedByAdmin(in ComponentName admin, String packageName, int userId)183     boolean isAccessibilityServicePermittedByAdmin(in ComponentName admin, String packageName, int userId);
184 
setPermittedInputMethods(in ComponentName admin,in List packageList)185     boolean setPermittedInputMethods(in ComponentName admin,in List packageList);
getPermittedInputMethods(in ComponentName admin)186     List getPermittedInputMethods(in ComponentName admin);
getPermittedInputMethodsForCurrentUser()187     List getPermittedInputMethodsForCurrentUser();
isInputMethodPermittedByAdmin(in ComponentName admin, String packageName, int userId)188     boolean isInputMethodPermittedByAdmin(in ComponentName admin, String packageName, int userId);
189 
setApplicationHidden(in ComponentName admin, in String packageName, boolean hidden)190     boolean setApplicationHidden(in ComponentName admin, in String packageName, boolean hidden);
isApplicationHidden(in ComponentName admin, in String packageName)191     boolean isApplicationHidden(in ComponentName admin, in String packageName);
192 
createAndManageUser(in ComponentName who, in String name, in ComponentName profileOwner, in PersistableBundle adminExtras, in int flags)193     UserHandle createAndManageUser(in ComponentName who, in String name, in ComponentName profileOwner, in PersistableBundle adminExtras, in int flags);
removeUser(in ComponentName who, in UserHandle userHandle)194     boolean removeUser(in ComponentName who, in UserHandle userHandle);
switchUser(in ComponentName who, in UserHandle userHandle)195     boolean switchUser(in ComponentName who, in UserHandle userHandle);
196 
enableSystemApp(in ComponentName admin, in String packageName)197     void enableSystemApp(in ComponentName admin, in String packageName);
enableSystemAppWithIntent(in ComponentName admin, in Intent intent)198     int enableSystemAppWithIntent(in ComponentName admin, in Intent intent);
199 
setAccountManagementDisabled(in ComponentName who, in String accountType, in boolean disabled)200     void setAccountManagementDisabled(in ComponentName who, in String accountType, in boolean disabled);
getAccountTypesWithManagementDisabled()201     String[] getAccountTypesWithManagementDisabled();
getAccountTypesWithManagementDisabledAsUser(int userId)202     String[] getAccountTypesWithManagementDisabledAsUser(int userId);
203 
setLockTaskPackages(in ComponentName who, in String[] packages)204     void setLockTaskPackages(in ComponentName who, in String[] packages);
getLockTaskPackages(in ComponentName who)205     String[] getLockTaskPackages(in ComponentName who);
isLockTaskPermitted(in String pkg)206     boolean isLockTaskPermitted(in String pkg);
207 
setGlobalSetting(in ComponentName who, in String setting, in String value)208     void setGlobalSetting(in ComponentName who, in String setting, in String value);
setSecureSetting(in ComponentName who, in String setting, in String value)209     void setSecureSetting(in ComponentName who, in String setting, in String value);
210 
setMasterVolumeMuted(in ComponentName admin, boolean on)211     void setMasterVolumeMuted(in ComponentName admin, boolean on);
isMasterVolumeMuted(in ComponentName admin)212     boolean isMasterVolumeMuted(in ComponentName admin);
213 
notifyLockTaskModeChanged(boolean isEnabled, String pkg, int userId)214     void notifyLockTaskModeChanged(boolean isEnabled, String pkg, int userId);
215 
setUninstallBlocked(in ComponentName admin, in String packageName, boolean uninstallBlocked)216     void setUninstallBlocked(in ComponentName admin, in String packageName, boolean uninstallBlocked);
isUninstallBlocked(in ComponentName admin, in String packageName)217     boolean isUninstallBlocked(in ComponentName admin, in String packageName);
218 
setCrossProfileCallerIdDisabled(in ComponentName who, boolean disabled)219     void setCrossProfileCallerIdDisabled(in ComponentName who, boolean disabled);
getCrossProfileCallerIdDisabled(in ComponentName who)220     boolean getCrossProfileCallerIdDisabled(in ComponentName who);
getCrossProfileCallerIdDisabledForUser(int userId)221     boolean getCrossProfileCallerIdDisabledForUser(int userId);
setCrossProfileContactsSearchDisabled(in ComponentName who, boolean disabled)222     void setCrossProfileContactsSearchDisabled(in ComponentName who, boolean disabled);
getCrossProfileContactsSearchDisabled(in ComponentName who)223     boolean getCrossProfileContactsSearchDisabled(in ComponentName who);
getCrossProfileContactsSearchDisabledForUser(int userId)224     boolean getCrossProfileContactsSearchDisabledForUser(int userId);
startManagedQuickContact(String lookupKey, long contactId, boolean isContactIdIgnored, long directoryId, in Intent originalIntent)225     void startManagedQuickContact(String lookupKey, long contactId, boolean isContactIdIgnored, long directoryId, in Intent originalIntent);
226 
setBluetoothContactSharingDisabled(in ComponentName who, boolean disabled)227     void setBluetoothContactSharingDisabled(in ComponentName who, boolean disabled);
getBluetoothContactSharingDisabled(in ComponentName who)228     boolean getBluetoothContactSharingDisabled(in ComponentName who);
getBluetoothContactSharingDisabledForUser(int userId)229     boolean getBluetoothContactSharingDisabledForUser(int userId);
230 
setTrustAgentConfiguration(in ComponentName admin, in ComponentName agent, in PersistableBundle args, boolean parent)231     void setTrustAgentConfiguration(in ComponentName admin, in ComponentName agent,
232             in PersistableBundle args, boolean parent);
getTrustAgentConfiguration(in ComponentName admin, in ComponentName agent, int userId, boolean parent)233     List<PersistableBundle> getTrustAgentConfiguration(in ComponentName admin,
234             in ComponentName agent, int userId, boolean parent);
235 
addCrossProfileWidgetProvider(in ComponentName admin, String packageName)236     boolean addCrossProfileWidgetProvider(in ComponentName admin, String packageName);
removeCrossProfileWidgetProvider(in ComponentName admin, String packageName)237     boolean removeCrossProfileWidgetProvider(in ComponentName admin, String packageName);
getCrossProfileWidgetProviders(in ComponentName admin)238     List<String> getCrossProfileWidgetProviders(in ComponentName admin);
239 
setAutoTimeRequired(in ComponentName who, boolean required)240     void setAutoTimeRequired(in ComponentName who, boolean required);
getAutoTimeRequired()241     boolean getAutoTimeRequired();
242 
setForceEphemeralUsers(in ComponentName who, boolean forceEpehemeralUsers)243     void setForceEphemeralUsers(in ComponentName who, boolean forceEpehemeralUsers);
getForceEphemeralUsers(in ComponentName who)244     boolean getForceEphemeralUsers(in ComponentName who);
245 
isRemovingAdmin(in ComponentName adminReceiver, int userHandle)246     boolean isRemovingAdmin(in ComponentName adminReceiver, int userHandle);
247 
setUserIcon(in ComponentName admin, in Bitmap icon)248     void setUserIcon(in ComponentName admin, in Bitmap icon);
249 
setSystemUpdatePolicy(in ComponentName who, in SystemUpdatePolicy policy)250     void setSystemUpdatePolicy(in ComponentName who, in SystemUpdatePolicy policy);
getSystemUpdatePolicy()251     SystemUpdatePolicy getSystemUpdatePolicy();
252 
setKeyguardDisabled(in ComponentName admin, boolean disabled)253     boolean setKeyguardDisabled(in ComponentName admin, boolean disabled);
setStatusBarDisabled(in ComponentName who, boolean disabled)254     boolean setStatusBarDisabled(in ComponentName who, boolean disabled);
getDoNotAskCredentialsOnBoot()255     boolean getDoNotAskCredentialsOnBoot();
256 
notifyPendingSystemUpdate(in long updateReceivedTime)257     void notifyPendingSystemUpdate(in long updateReceivedTime);
258 
setPermissionPolicy(in ComponentName admin, int policy)259     void setPermissionPolicy(in ComponentName admin, int policy);
getPermissionPolicy(in ComponentName admin)260     int  getPermissionPolicy(in ComponentName admin);
setPermissionGrantState(in ComponentName admin, String packageName, String permission, int grantState)261     boolean setPermissionGrantState(in ComponentName admin, String packageName,
262             String permission, int grantState);
getPermissionGrantState(in ComponentName admin, String packageName, String permission)263     int getPermissionGrantState(in ComponentName admin, String packageName, String permission);
isProvisioningAllowed(String action)264     boolean isProvisioningAllowed(String action);
setKeepUninstalledPackages(in ComponentName admin,in List<String> packageList)265     void setKeepUninstalledPackages(in ComponentName admin,in List<String> packageList);
getKeepUninstalledPackages(in ComponentName admin)266     List<String> getKeepUninstalledPackages(in ComponentName admin);
isManagedProfile(in ComponentName admin)267     boolean isManagedProfile(in ComponentName admin);
isSystemOnlyUser(in ComponentName admin)268     boolean isSystemOnlyUser(in ComponentName admin);
getWifiMacAddress(in ComponentName admin)269     String getWifiMacAddress(in ComponentName admin);
reboot(in ComponentName admin)270     void reboot(in ComponentName admin);
271 
setShortSupportMessage(in ComponentName admin, in CharSequence message)272     void setShortSupportMessage(in ComponentName admin, in CharSequence message);
getShortSupportMessage(in ComponentName admin)273     CharSequence getShortSupportMessage(in ComponentName admin);
setLongSupportMessage(in ComponentName admin, in CharSequence message)274     void setLongSupportMessage(in ComponentName admin, in CharSequence message);
getLongSupportMessage(in ComponentName admin)275     CharSequence getLongSupportMessage(in ComponentName admin);
276 
getShortSupportMessageForUser(in ComponentName admin, int userHandle)277     CharSequence getShortSupportMessageForUser(in ComponentName admin, int userHandle);
getLongSupportMessageForUser(in ComponentName admin, int userHandle)278     CharSequence getLongSupportMessageForUser(in ComponentName admin, int userHandle);
279 
isSeparateProfileChallengeAllowed(int userHandle)280     boolean isSeparateProfileChallengeAllowed(int userHandle);
281 
setOrganizationColor(in ComponentName admin, in int color)282     void setOrganizationColor(in ComponentName admin, in int color);
setOrganizationColorForUser(in int color, in int userId)283     void setOrganizationColorForUser(in int color, in int userId);
getOrganizationColor(in ComponentName admin)284     int getOrganizationColor(in ComponentName admin);
getOrganizationColorForUser(int userHandle)285     int getOrganizationColorForUser(int userHandle);
286 
setOrganizationName(in ComponentName admin, in CharSequence title)287     void setOrganizationName(in ComponentName admin, in CharSequence title);
getOrganizationName(in ComponentName admin)288     CharSequence getOrganizationName(in ComponentName admin);
getOrganizationNameForUser(int userHandle)289     CharSequence getOrganizationNameForUser(int userHandle);
290 
getUserProvisioningState()291     int getUserProvisioningState();
setUserProvisioningState(int state, int userHandle)292     void setUserProvisioningState(int state, int userHandle);
293 
setAffiliationIds(in ComponentName admin, in List<String> ids)294     void setAffiliationIds(in ComponentName admin, in List<String> ids);
isAffiliatedUser()295     boolean isAffiliatedUser();
296 
setSecurityLoggingEnabled(in ComponentName admin, boolean enabled)297     void setSecurityLoggingEnabled(in ComponentName admin, boolean enabled);
isSecurityLoggingEnabled(in ComponentName admin)298     boolean isSecurityLoggingEnabled(in ComponentName admin);
retrieveSecurityLogs(in ComponentName admin)299     ParceledListSlice retrieveSecurityLogs(in ComponentName admin);
retrievePreRebootSecurityLogs(in ComponentName admin)300     ParceledListSlice retrievePreRebootSecurityLogs(in ComponentName admin);
301 
isUninstallInQueue(String packageName)302     boolean isUninstallInQueue(String packageName);
uninstallPackageWithActiveAdmins(String packageName)303     void uninstallPackageWithActiveAdmins(String packageName);
304 }
305