blob: acd4ffa1a7fcae03b2f8e2205647b5f960cc99ba [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001/*
2**
3** Copyright 2007, 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
18package android.content.pm;
19
20import android.content.ComponentName;
21import android.content.Intent;
22import android.content.IntentFilter;
23import android.content.pm.ActivityInfo;
24import android.content.pm.ApplicationInfo;
Anonymous Cowardceb1b0b2012-04-24 10:35:16 -070025import android.content.pm.ContainerEncryptionParams;
Dianne Hackborn49237342009-08-27 20:08:01 -070026import android.content.pm.FeatureInfo;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080027import android.content.pm.IPackageInstallObserver;
28import android.content.pm.IPackageDeleteObserver;
29import android.content.pm.IPackageDataObserver;
Suchi Amalapurapu8946dd32010-02-19 09:19:34 -080030import android.content.pm.IPackageMoveObserver;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080031import android.content.pm.IPackageStatsObserver;
32import android.content.pm.InstrumentationInfo;
33import android.content.pm.PackageInfo;
Kenny Root5ab21572011-07-27 11:11:19 -070034import android.content.pm.ManifestDigest;
Dianne Hackborn7767eac2012-08-23 18:25:40 -070035import android.content.pm.PackageCleanItem;
Kenny Root0e2c0f32011-04-15 17:50:10 -070036import android.content.pm.ParceledListSlice;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080037import android.content.pm.ProviderInfo;
38import android.content.pm.PermissionGroupInfo;
39import android.content.pm.PermissionInfo;
40import android.content.pm.ResolveInfo;
41import android.content.pm.ServiceInfo;
Amith Yamasani0b285492011-04-14 17:35:23 -070042import android.content.pm.UserInfo;
rich cannings706e8ba2012-08-20 13:20:14 -070043import android.content.pm.VerificationParams;
Kenny Root0aaa0d92011-09-12 16:42:55 -070044import android.content.pm.VerifierDeviceIdentity;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080045import android.net.Uri;
Amith Yamasanib8151ec2012-04-18 18:02:48 -070046import android.os.ParcelFileDescriptor;
Suchi Amalapurapu1ccac752009-06-12 10:09:58 -070047import android.content.IntentSender;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080048
49/**
50 * See {@link PackageManager} for documentation on most of the APIs
51 * here.
52 *
53 * {@hide}
54 */
55interface IPackageManager {
Amith Yamasani483f3b02012-03-13 16:08:00 -070056 PackageInfo getPackageInfo(String packageName, int flags, int userId);
57 int getPackageUid(String packageName, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080058 int[] getPackageGids(String packageName);
Dianne Hackborn47096932010-02-11 15:57:09 -080059
60 String[] currentToCanonicalPackageNames(in String[] names);
61 String[] canonicalToCurrentPackageNames(in String[] names);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080062
63 PermissionInfo getPermissionInfo(String name, int flags);
64
65 List<PermissionInfo> queryPermissionsByGroup(String group, int flags);
66
67 PermissionGroupInfo getPermissionGroupInfo(String name, int flags);
68
69 List<PermissionGroupInfo> getAllPermissionGroups(int flags);
70
Amith Yamasani483f3b02012-03-13 16:08:00 -070071 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080072
Amith Yamasani483f3b02012-03-13 16:08:00 -070073 ActivityInfo getActivityInfo(in ComponentName className, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080074
Amith Yamasani483f3b02012-03-13 16:08:00 -070075 ActivityInfo getReceiverInfo(in ComponentName className, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080076
Amith Yamasani483f3b02012-03-13 16:08:00 -070077 ServiceInfo getServiceInfo(in ComponentName className, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080078
Amith Yamasani483f3b02012-03-13 16:08:00 -070079 ProviderInfo getProviderInfo(in ComponentName className, int flags, int userId);
Dianne Hackborn361199b2010-08-30 17:42:07 -070080
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080081 int checkPermission(String permName, String pkgName);
82
83 int checkUidPermission(String permName, int uid);
84
85 boolean addPermission(in PermissionInfo info);
86
87 void removePermission(String name);
Dianne Hackborne639da72012-02-21 15:11:13 -080088
89 void grantPermission(String packageName, String permissionName);
90
91 void revokePermission(String packageName, String permissionName);
92
Dianne Hackborn854060af2009-07-09 18:14:31 -070093 boolean isProtectedBroadcast(String actionName);
94
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080095 int checkSignatures(String pkg1, String pkg2);
96
Dianne Hackborn766cbfe2009-08-12 18:33:39 -070097 int checkUidSignatures(int uid1, int uid2);
98
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080099 String[] getPackagesForUid(int uid);
100
101 String getNameForUid(int uid);
102
103 int getUidForSharedUser(String sharedUserName);
Ben Gruverdd72c9e2013-08-06 12:34:17 -0700104
105 int getFlagsForUid(int uid);
106
Amith Yamasani483f3b02012-03-13 16:08:00 -0700107 ResolveInfo resolveIntent(in Intent intent, String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800108
109 List<ResolveInfo> queryIntentActivities(in Intent intent,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700110 String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800111
112 List<ResolveInfo> queryIntentActivityOptions(
113 in ComponentName caller, in Intent[] specifics,
114 in String[] specificTypes, in Intent intent,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700115 String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800116
117 List<ResolveInfo> queryIntentReceivers(in Intent intent,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700118 String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800119
120 ResolveInfo resolveService(in Intent intent,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700121 String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800122
123 List<ResolveInfo> queryIntentServices(in Intent intent,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700124 String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800125
Kenny Root0e2c0f32011-04-15 17:50:10 -0700126 /**
127 * This implements getInstalledPackages via a "last returned row"
128 * mechanism that is not exposed in the API. This is to get around the IPC
129 * limit that kicks in when flags are included that bloat up the data
130 * returned.
131 */
Dianne Hackbornd8e1dbb2013-01-17 17:47:37 -0800132 ParceledListSlice getInstalledPackages(int flags, in int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800133
Kenny Root0e2c0f32011-04-15 17:50:10 -0700134 /**
Dianne Hackborne7991752013-01-16 17:56:46 -0800135 * This implements getPackagesHoldingPermissions via a "last returned row"
136 * mechanism that is not exposed in the API. This is to get around the IPC
137 * limit that kicks in when flags are included that bloat up the data
138 * returned.
139 */
140 ParceledListSlice getPackagesHoldingPermissions(in String[] permissions,
Dianne Hackbornd8e1dbb2013-01-17 17:47:37 -0800141 int flags, int userId);
Dianne Hackborne7991752013-01-16 17:56:46 -0800142
143 /**
Kenny Root0e2c0f32011-04-15 17:50:10 -0700144 * This implements getInstalledApplications via a "last returned row"
145 * mechanism that is not exposed in the API. This is to get around the IPC
146 * limit that kicks in when flags are included that bloat up the data
147 * returned.
148 */
Dianne Hackbornd8e1dbb2013-01-17 17:47:37 -0800149 ParceledListSlice getInstalledApplications(int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800150
151 /**
152 * Retrieve all applications that are marked as persistent.
153 *
154 * @return A List&lt;applicationInfo> containing one entry for each persistent
155 * application.
156 */
157 List<ApplicationInfo> getPersistentApplications(int flags);
158
Amith Yamasani483f3b02012-03-13 16:08:00 -0700159 ProviderInfo resolveContentProvider(String name, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800160
161 /**
162 * Retrieve sync information for all content providers.
163 *
164 * @param outNames Filled in with a list of the root names of the content
165 * providers that can sync.
166 * @param outInfo Filled in with a list of the ProviderInfo for each
167 * name in 'outNames'.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800168 */
169 void querySyncProviders(inout List<String> outNames,
170 inout List<ProviderInfo> outInfo);
171
172 List<ProviderInfo> queryContentProviders(
173 String processName, int uid, int flags);
174
175 InstrumentationInfo getInstrumentationInfo(
176 in ComponentName className, int flags);
177
178 List<InstrumentationInfo> queryInstrumentation(
179 String targetPackage, int flags);
180
181 /**
182 * Install a package.
183 *
184 * @param packageURI The location of the package file to install.
185 * @param observer a callback to use to notify when the package installation in finished.
186 * @param flags - possible values: {@link #FORWARD_LOCK_PACKAGE},
187 * {@link #REPLACE_EXISITING_PACKAGE}
Jacek Surazski65e13172009-04-28 15:26:38 +0200188 * @param installerPackageName Optional package name of the application that is performing the
189 * installation. This identifies which market the package came from.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800190 */
Jacek Surazski65e13172009-04-28 15:26:38 +0200191 void installPackage(in Uri packageURI, IPackageInstallObserver observer, int flags,
192 in String installerPackageName);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800193
Christopher Tate1bb69062010-02-19 17:02:12 -0800194 void finishPackageInstall(int token);
195
Dianne Hackborn880119b2010-11-18 22:26:40 -0800196 void setInstallerPackageName(in String targetPackage, in String installerPackageName);
197
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800198 /**
Amith Yamasani67df64b2012-12-14 12:09:36 -0800199 * Delete a package for a specific user.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800200 *
201 * @param packageName The fully qualified name of the package to delete.
202 * @param observer a callback to use to notify when the package deletion in finished.
Amith Yamasani67df64b2012-12-14 12:09:36 -0800203 * @param userId the id of the user for whom to delete the package
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800204 * @param flags - possible values: {@link #DONT_DELETE_DATA}
205 */
Amith Yamasani67df64b2012-12-14 12:09:36 -0800206 void deletePackageAsUser(in String packageName, IPackageDeleteObserver observer,
207 int userId, int flags);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800208
Jacek Surazski65e13172009-04-28 15:26:38 +0200209 String getInstallerPackageName(in String packageName);
210
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800211 void addPackageToPreferred(String packageName);
Amith Yamasani67df64b2012-12-14 12:09:36 -0800212
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800213 void removePackageFromPreferred(String packageName);
Amith Yamasani67df64b2012-12-14 12:09:36 -0800214
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800215 List<PackageInfo> getPreferredPackages(int flags);
216
Dianne Hackborn8a2ed1d2013-01-29 15:18:29 -0800217 void resetPreferredActivities(int userId);
218
Amith Yamasanie9ecc8b2013-08-22 11:16:27 -0700219 ResolveInfo getLastChosenActivity(in Intent intent,
220 String resolvedType, int flags);
221
222 void setLastChosenActivity(in Intent intent, String resolvedType, int flags,
223 in IntentFilter filter, int match, in ComponentName activity);
224
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800225 void addPreferredActivity(in IntentFilter filter, int match,
Amith Yamasania3f133a2012-08-09 17:11:28 -0700226 in ComponentName[] set, in ComponentName activity, int userId);
Satish Sampath8dbe6122009-06-02 23:35:54 +0100227
228 void replacePreferredActivity(in IntentFilter filter, int match,
229 in ComponentName[] set, in ComponentName activity);
230
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800231 void clearPackagePreferredActivities(String packageName);
Satish Sampath8dbe6122009-06-02 23:35:54 +0100232
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800233 int getPreferredActivities(out List<IntentFilter> outFilters,
234 out List<ComponentName> outActivities, String packageName);
Amith Yamasanie9ecc8b2013-08-22 11:16:27 -0700235
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800236 /**
Christopher Tatea2a0850d2013-09-05 16:38:58 -0700237 * Report the set of 'Home' activity candidates, plus (if any) which of them
238 * is the current "always use this one" setting.
239 */
240 ComponentName getHomeActivities(out List<ResolveInfo> outHomeCandidates);
241
242 /**
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800243 * As per {@link android.content.pm.PackageManager#setComponentEnabledSetting}.
244 */
245 void setComponentEnabledSetting(in ComponentName componentName,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700246 in int newState, in int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800247
248 /**
249 * As per {@link android.content.pm.PackageManager#getComponentEnabledSetting}.
250 */
Amith Yamasani483f3b02012-03-13 16:08:00 -0700251 int getComponentEnabledSetting(in ComponentName componentName, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800252
253 /**
254 * As per {@link android.content.pm.PackageManager#setApplicationEnabledSetting}.
255 */
Dianne Hackborn3fa3c28a2013-03-26 16:15:41 -0700256 void setApplicationEnabledSetting(in String packageName, in int newState, int flags,
257 int userId, String callingPackage);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800258
259 /**
260 * As per {@link android.content.pm.PackageManager#getApplicationEnabledSetting}.
261 */
Amith Yamasani483f3b02012-03-13 16:08:00 -0700262 int getApplicationEnabledSetting(in String packageName, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800263
264 /**
Dianne Hackborne7f97212011-02-24 14:40:20 -0800265 * Set whether the given package should be considered stopped, making
266 * it not visible to implicit intents that filter out stopped packages.
267 */
Amith Yamasani483f3b02012-03-13 16:08:00 -0700268 void setPackageStoppedState(String packageName, boolean stopped, int userId);
Dianne Hackborne7f97212011-02-24 14:40:20 -0800269
270 /**
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800271 * Free storage by deleting LRU sorted list of cache files across
272 * all applications. If the currently available free storage
273 * on the device is greater than or equal to the requested
274 * free storage, no cache files are cleared. If the currently
275 * available storage on the device is less than the requested
276 * free storage, some or all of the cache files across
277 * all applications are deleted (based on last accessed time)
278 * to increase the free storage space on the device to
279 * the requested value. There is no guarantee that clearing all
280 * the cache files from all applications will clear up
281 * enough storage to achieve the desired value.
282 * @param freeStorageSize The number of bytes of storage to be
283 * freed by the system. Say if freeStorageSize is XX,
284 * and the current free storage is YY,
285 * if XX is less than YY, just return. if not free XX-YY number
286 * of bytes if possible.
287 * @param observer call back used to notify when
288 * the operation is completed
289 */
290 void freeStorageAndNotify(in long freeStorageSize,
291 IPackageDataObserver observer);
292
293 /**
294 * Free storage by deleting LRU sorted list of cache files across
295 * all applications. If the currently available free storage
296 * on the device is greater than or equal to the requested
297 * free storage, no cache files are cleared. If the currently
298 * available storage on the device is less than the requested
299 * free storage, some or all of the cache files across
300 * all applications are deleted (based on last accessed time)
301 * to increase the free storage space on the device to
302 * the requested value. There is no guarantee that clearing all
303 * the cache files from all applications will clear up
304 * enough storage to achieve the desired value.
305 * @param freeStorageSize The number of bytes of storage to be
306 * freed by the system. Say if freeStorageSize is XX,
307 * and the current free storage is YY,
308 * if XX is less than YY, just return. if not free XX-YY number
309 * of bytes if possible.
Suchi Amalapurapu1ccac752009-06-12 10:09:58 -0700310 * @param pi IntentSender call back used to
311 * notify when the operation is completed.May be null
312 * to indicate that no call back is desired.
313 */
Suchi Amalapurapubc806f62009-06-17 15:18:19 -0700314 void freeStorage(in long freeStorageSize,
Suchi Amalapurapu1ccac752009-06-12 10:09:58 -0700315 in IntentSender pi);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800316
317 /**
318 * Delete all the cache files in an applications cache directory
319 * @param packageName The package name of the application whose cache
320 * files need to be deleted
321 * @param observer a callback used to notify when the deletion is finished.
322 */
323 void deleteApplicationCacheFiles(in String packageName, IPackageDataObserver observer);
324
325 /**
326 * Clear the user data directory of an application.
327 * @param packageName The package name of the application whose cache
328 * files need to be deleted
329 * @param observer a callback used to notify when the operation is completed.
330 */
Amith Yamasani483f3b02012-03-13 16:08:00 -0700331 void clearApplicationUserData(in String packageName, IPackageDataObserver observer, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800332
333 /**
334 * Get package statistics including the code, data and cache size for
335 * an already installed package
336 * @param packageName The package name of the application
Dianne Hackborn0c380492012-08-20 17:23:30 -0700337 * @param userHandle Which user the size should be retrieved for
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800338 * @param observer a callback to use to notify when the asynchronous
339 * retrieval of information is complete.
340 */
Dianne Hackborn0c380492012-08-20 17:23:30 -0700341 void getPackageSizeInfo(in String packageName, int userHandle, IPackageStatsObserver observer);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800342
343 /**
344 * Get a list of shared libraries that are available on the
345 * system.
346 */
347 String[] getSystemSharedLibraryNames();
348
Dianne Hackborn49237342009-08-27 20:08:01 -0700349 /**
350 * Get a list of features that are available on the
351 * system.
352 */
353 FeatureInfo[] getSystemAvailableFeatures();
354
Dianne Hackborn039c68e2009-09-26 16:39:23 -0700355 boolean hasSystemFeature(String name);
356
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800357 void enterSafeMode();
358 boolean isSafeMode();
359 void systemReady();
360 boolean hasSystemUidErrors();
Dianne Hackborn661cd522011-08-22 00:26:20 -0700361
362 /**
363 * Ask the package manager to perform boot-time dex-opt of all
364 * existing packages.
365 */
366 void performBootDexOpt();
367
Dianne Hackborn5c1e00b2009-06-18 17:10:57 -0700368 /**
369 * Ask the package manager to perform dex-opt (if needed) on the given
370 * package, if it already hasn't done mode. Only does this if running
371 * in the special development "no pre-dexopt" mode.
372 */
373 boolean performDexOpt(String packageName);
Suchi Amalapurapuaf8e9f42010-01-12 10:17:28 -0800374
375 /**
376 * Update status of external media on the package manager to scan and
377 * install packages installed on the external media. Like say the
378 * MountService uses this to call into the package manager to update
379 * status of sdcard.
380 */
Suchi Amalapurapue99bb5f2010-03-19 14:36:49 -0700381 void updateExternalMediaStatus(boolean mounted, boolean reportStatus);
Suchi Amalapurapuaf8e9f42010-01-12 10:17:28 -0800382
Dianne Hackborn7767eac2012-08-23 18:25:40 -0700383 PackageCleanItem nextPackageToClean(in PackageCleanItem lastPackage);
Suchi Amalapurapu8946dd32010-02-19 09:19:34 -0800384
385 void movePackage(String packageName, IPackageMoveObserver observer, int flags);
Rich Canningse1d7c712012-08-08 12:46:06 -0700386
Dianne Hackbornd7c09682010-03-30 10:42:20 -0700387 boolean addPermissionAsync(in PermissionInfo info);
Suchi Amalapurapu40e47252010-04-07 16:15:50 -0700388
389 boolean setInstallLocation(int loc);
390 int getInstallLocation();
Amith Yamasani0b285492011-04-14 17:35:23 -0700391
Kenny Root5ab21572011-07-27 11:11:19 -0700392 void installPackageWithVerification(in Uri packageURI, in IPackageInstallObserver observer,
393 int flags, in String installerPackageName, in Uri verificationURI,
Rich Canningse1d7c712012-08-08 12:46:06 -0700394 in ManifestDigest manifestDigest, in ContainerEncryptionParams encryptionParams);
Kenny Root5ab21572011-07-27 11:11:19 -0700395
rich cannings706e8ba2012-08-20 13:20:14 -0700396 void installPackageWithVerificationAndEncryption(in Uri packageURI,
397 in IPackageInstallObserver observer, int flags, in String installerPackageName,
398 in VerificationParams verificationParams,
399 in ContainerEncryptionParams encryptionParams);
400
Amith Yamasani67df64b2012-12-14 12:09:36 -0800401 int installExistingPackageAsUser(String packageName, int userId);
Dianne Hackborn7767eac2012-08-23 18:25:40 -0700402
Kenny Root3a9b5fb2011-09-20 14:15:38 -0700403 void verifyPendingInstall(int id, int verificationCode);
rich canningsd9ef3e52012-08-22 14:28:05 -0700404 void extendVerificationTimeout(int id, int verificationCodeAtTimeout, long millisecondsToDelay);
Kenny Root0aaa0d92011-09-12 16:42:55 -0700405
406 VerifierDeviceIdentity getVerifierDeviceIdentity();
Dianne Hackborn58f42a52011-10-10 13:46:34 -0700407
408 boolean isFirstBoot();
Dianne Hackborn13579ed2012-11-28 18:05:36 -0800409 boolean isOnlyCoreApps();
Amith Yamasani742a6712011-05-04 14:49:28 -0700410
Jeff Sharkey5d32e772012-04-12 15:59:23 -0700411 void setPermissionEnforced(String permission, boolean enforced);
412 boolean isPermissionEnforced(String permission);
Jeff Sharkeyf6f7f1d2012-06-12 17:12:08 -0700413
414 /** Reflects current DeviceStorageMonitorService state */
415 boolean isStorageLow();
Amith Yamasani655d0e22013-06-12 14:19:10 -0700416
417 boolean setApplicationBlockedSettingAsUser(String packageName, boolean blocked, int userId);
418 boolean getApplicationBlockedSettingAsUser(String packageName, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800419}