blob: ae0899f33bd05e74fca39ca94858917fa42e8953 [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;
Christopher Tatef1977b42014-03-24 16:25:51 -070028import android.content.pm.IPackageInstallObserver2;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080029import android.content.pm.IPackageDeleteObserver;
30import android.content.pm.IPackageDataObserver;
Suchi Amalapurapu8946dd32010-02-19 09:19:34 -080031import android.content.pm.IPackageMoveObserver;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080032import android.content.pm.IPackageStatsObserver;
33import android.content.pm.InstrumentationInfo;
34import android.content.pm.PackageInfo;
Kenny Root5ab21572011-07-27 11:11:19 -070035import android.content.pm.ManifestDigest;
Dianne Hackborn7767eac2012-08-23 18:25:40 -070036import android.content.pm.PackageCleanItem;
Kenny Root0e2c0f32011-04-15 17:50:10 -070037import android.content.pm.ParceledListSlice;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080038import android.content.pm.ProviderInfo;
39import android.content.pm.PermissionGroupInfo;
40import android.content.pm.PermissionInfo;
41import android.content.pm.ResolveInfo;
42import android.content.pm.ServiceInfo;
Amith Yamasani0b285492011-04-14 17:35:23 -070043import android.content.pm.UserInfo;
rich cannings706e8ba2012-08-20 13:20:14 -070044import android.content.pm.VerificationParams;
Kenny Root0aaa0d92011-09-12 16:42:55 -070045import android.content.pm.VerifierDeviceIdentity;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080046import android.net.Uri;
Amith Yamasanib8151ec2012-04-18 18:02:48 -070047import android.os.ParcelFileDescriptor;
Suchi Amalapurapu1ccac752009-06-12 10:09:58 -070048import android.content.IntentSender;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080049
50/**
51 * See {@link PackageManager} for documentation on most of the APIs
52 * here.
53 *
54 * {@hide}
55 */
56interface IPackageManager {
Christopher Tateba629da2013-11-13 17:42:28 -080057 boolean isPackageAvailable(String packageName, int userId);
Amith Yamasani483f3b02012-03-13 16:08:00 -070058 PackageInfo getPackageInfo(String packageName, int flags, int userId);
59 int getPackageUid(String packageName, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080060 int[] getPackageGids(String packageName);
Dianne Hackborn47096932010-02-11 15:57:09 -080061
62 String[] currentToCanonicalPackageNames(in String[] names);
63 String[] canonicalToCurrentPackageNames(in String[] names);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080064
65 PermissionInfo getPermissionInfo(String name, int flags);
66
67 List<PermissionInfo> queryPermissionsByGroup(String group, int flags);
68
69 PermissionGroupInfo getPermissionGroupInfo(String name, int flags);
70
71 List<PermissionGroupInfo> getAllPermissionGroups(int flags);
72
Amith Yamasani483f3b02012-03-13 16:08:00 -070073 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080074
Amith Yamasani483f3b02012-03-13 16:08:00 -070075 ActivityInfo getActivityInfo(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 ActivityInfo getReceiverInfo(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 ServiceInfo getServiceInfo(in ComponentName className, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080080
Amith Yamasani483f3b02012-03-13 16:08:00 -070081 ProviderInfo getProviderInfo(in ComponentName className, int flags, int userId);
Dianne Hackborn361199b2010-08-30 17:42:07 -070082
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080083 int checkPermission(String permName, String pkgName);
84
85 int checkUidPermission(String permName, int uid);
86
87 boolean addPermission(in PermissionInfo info);
88
89 void removePermission(String name);
Dianne Hackborne639da72012-02-21 15:11:13 -080090
91 void grantPermission(String packageName, String permissionName);
92
93 void revokePermission(String packageName, String permissionName);
94
Dianne Hackborn854060af2009-07-09 18:14:31 -070095 boolean isProtectedBroadcast(String actionName);
96
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080097 int checkSignatures(String pkg1, String pkg2);
98
Dianne Hackborn766cbfe2009-08-12 18:33:39 -070099 int checkUidSignatures(int uid1, int uid2);
100
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800101 String[] getPackagesForUid(int uid);
102
103 String getNameForUid(int uid);
104
105 int getUidForSharedUser(String sharedUserName);
Ben Gruverdd72c9e2013-08-06 12:34:17 -0700106
107 int getFlagsForUid(int uid);
108
Amith Yamasani483f3b02012-03-13 16:08:00 -0700109 ResolveInfo resolveIntent(in Intent intent, String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800110
111 List<ResolveInfo> queryIntentActivities(in Intent intent,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700112 String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800113
114 List<ResolveInfo> queryIntentActivityOptions(
115 in ComponentName caller, in Intent[] specifics,
116 in String[] specificTypes, in Intent intent,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700117 String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800118
119 List<ResolveInfo> queryIntentReceivers(in Intent intent,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700120 String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800121
122 ResolveInfo resolveService(in Intent intent,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700123 String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800124
125 List<ResolveInfo> queryIntentServices(in Intent intent,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700126 String resolvedType, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800127
Jeff Sharkey85f5f812013-10-07 10:16:12 -0700128 List<ResolveInfo> queryIntentContentProviders(in Intent intent,
129 String resolvedType, int flags, int userId);
130
Kenny Root0e2c0f32011-04-15 17:50:10 -0700131 /**
132 * This implements getInstalledPackages via a "last returned row"
133 * mechanism that is not exposed in the API. This is to get around the IPC
134 * limit that kicks in when flags are included that bloat up the data
135 * returned.
136 */
Dianne Hackbornd8e1dbb2013-01-17 17:47:37 -0800137 ParceledListSlice getInstalledPackages(int flags, in int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800138
Kenny Root0e2c0f32011-04-15 17:50:10 -0700139 /**
Dianne Hackborne7991752013-01-16 17:56:46 -0800140 * This implements getPackagesHoldingPermissions via a "last returned row"
141 * mechanism that is not exposed in the API. This is to get around the IPC
142 * limit that kicks in when flags are included that bloat up the data
143 * returned.
144 */
145 ParceledListSlice getPackagesHoldingPermissions(in String[] permissions,
Dianne Hackbornd8e1dbb2013-01-17 17:47:37 -0800146 int flags, int userId);
Dianne Hackborne7991752013-01-16 17:56:46 -0800147
148 /**
Kenny Root0e2c0f32011-04-15 17:50:10 -0700149 * This implements getInstalledApplications via a "last returned row"
150 * mechanism that is not exposed in the API. This is to get around the IPC
151 * limit that kicks in when flags are included that bloat up the data
152 * returned.
153 */
Dianne Hackbornd8e1dbb2013-01-17 17:47:37 -0800154 ParceledListSlice getInstalledApplications(int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800155
156 /**
157 * Retrieve all applications that are marked as persistent.
158 *
159 * @return A List&lt;applicationInfo> containing one entry for each persistent
160 * application.
161 */
162 List<ApplicationInfo> getPersistentApplications(int flags);
163
Amith Yamasani483f3b02012-03-13 16:08:00 -0700164 ProviderInfo resolveContentProvider(String name, int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800165
166 /**
167 * Retrieve sync information for all content providers.
168 *
169 * @param outNames Filled in with a list of the root names of the content
170 * providers that can sync.
171 * @param outInfo Filled in with a list of the ProviderInfo for each
172 * name in 'outNames'.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800173 */
174 void querySyncProviders(inout List<String> outNames,
175 inout List<ProviderInfo> outInfo);
176
177 List<ProviderInfo> queryContentProviders(
178 String processName, int uid, int flags);
179
180 InstrumentationInfo getInstrumentationInfo(
181 in ComponentName className, int flags);
182
183 List<InstrumentationInfo> queryInstrumentation(
184 String targetPackage, int flags);
185
186 /**
187 * Install a package.
188 *
189 * @param packageURI The location of the package file to install.
190 * @param observer a callback to use to notify when the package installation in finished.
191 * @param flags - possible values: {@link #FORWARD_LOCK_PACKAGE},
192 * {@link #REPLACE_EXISITING_PACKAGE}
Jacek Surazski65e13172009-04-28 15:26:38 +0200193 * @param installerPackageName Optional package name of the application that is performing the
194 * installation. This identifies which market the package came from.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800195 */
Jacek Surazski65e13172009-04-28 15:26:38 +0200196 void installPackage(in Uri packageURI, IPackageInstallObserver observer, int flags,
197 in String installerPackageName);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800198
Christopher Tate1bb69062010-02-19 17:02:12 -0800199 void finishPackageInstall(int token);
200
Dianne Hackborn880119b2010-11-18 22:26:40 -0800201 void setInstallerPackageName(in String targetPackage, in String installerPackageName);
202
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800203 /**
Amith Yamasani67df64b2012-12-14 12:09:36 -0800204 * Delete a package for a specific user.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800205 *
206 * @param packageName The fully qualified name of the package to delete.
207 * @param observer a callback to use to notify when the package deletion in finished.
Amith Yamasani67df64b2012-12-14 12:09:36 -0800208 * @param userId the id of the user for whom to delete the package
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800209 * @param flags - possible values: {@link #DONT_DELETE_DATA}
210 */
Amith Yamasani67df64b2012-12-14 12:09:36 -0800211 void deletePackageAsUser(in String packageName, IPackageDeleteObserver observer,
212 int userId, int flags);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800213
Jacek Surazski65e13172009-04-28 15:26:38 +0200214 String getInstallerPackageName(in String packageName);
215
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800216 void addPackageToPreferred(String packageName);
Amith Yamasani67df64b2012-12-14 12:09:36 -0800217
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800218 void removePackageFromPreferred(String packageName);
Amith Yamasani67df64b2012-12-14 12:09:36 -0800219
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800220 List<PackageInfo> getPreferredPackages(int flags);
221
Dianne Hackborn8a2ed1d2013-01-29 15:18:29 -0800222 void resetPreferredActivities(int userId);
223
Amith Yamasanie9ecc8b2013-08-22 11:16:27 -0700224 ResolveInfo getLastChosenActivity(in Intent intent,
225 String resolvedType, int flags);
226
227 void setLastChosenActivity(in Intent intent, String resolvedType, int flags,
228 in IntentFilter filter, int match, in ComponentName activity);
229
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800230 void addPreferredActivity(in IntentFilter filter, int match,
Amith Yamasania3f133a2012-08-09 17:11:28 -0700231 in ComponentName[] set, in ComponentName activity, int userId);
Satish Sampath8dbe6122009-06-02 23:35:54 +0100232
233 void replacePreferredActivity(in IntentFilter filter, int match,
234 in ComponentName[] set, in ComponentName activity);
235
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800236 void clearPackagePreferredActivities(String packageName);
Satish Sampath8dbe6122009-06-02 23:35:54 +0100237
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800238 int getPreferredActivities(out List<IntentFilter> outFilters,
239 out List<ComponentName> outActivities, String packageName);
Amith Yamasanie9ecc8b2013-08-22 11:16:27 -0700240
Sander Alewijnsef475ca32014-02-17 15:13:58 +0000241 void addPersistentPreferredActivity(in IntentFilter filter, in ComponentName activity, int userId);
242
243 void clearPackagePersistentPreferredActivities(String packageName, int userId);
244
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800245 /**
Christopher Tatea2a0850d2013-09-05 16:38:58 -0700246 * Report the set of 'Home' activity candidates, plus (if any) which of them
247 * is the current "always use this one" setting.
248 */
249 ComponentName getHomeActivities(out List<ResolveInfo> outHomeCandidates);
250
251 /**
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800252 * As per {@link android.content.pm.PackageManager#setComponentEnabledSetting}.
253 */
254 void setComponentEnabledSetting(in ComponentName componentName,
Amith Yamasani483f3b02012-03-13 16:08:00 -0700255 in int newState, in int flags, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800256
257 /**
258 * As per {@link android.content.pm.PackageManager#getComponentEnabledSetting}.
259 */
Amith Yamasani483f3b02012-03-13 16:08:00 -0700260 int getComponentEnabledSetting(in ComponentName componentName, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800261
262 /**
263 * As per {@link android.content.pm.PackageManager#setApplicationEnabledSetting}.
264 */
Dianne Hackborn3fa3c28a2013-03-26 16:15:41 -0700265 void setApplicationEnabledSetting(in String packageName, in int newState, int flags,
266 int userId, String callingPackage);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800267
268 /**
269 * As per {@link android.content.pm.PackageManager#getApplicationEnabledSetting}.
270 */
Amith Yamasani483f3b02012-03-13 16:08:00 -0700271 int getApplicationEnabledSetting(in String packageName, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800272
273 /**
Dianne Hackborne7f97212011-02-24 14:40:20 -0800274 * Set whether the given package should be considered stopped, making
275 * it not visible to implicit intents that filter out stopped packages.
276 */
Amith Yamasani483f3b02012-03-13 16:08:00 -0700277 void setPackageStoppedState(String packageName, boolean stopped, int userId);
Dianne Hackborne7f97212011-02-24 14:40:20 -0800278
279 /**
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800280 * Free storage by deleting LRU sorted list of cache files across
281 * all applications. If the currently available free storage
282 * on the device is greater than or equal to the requested
283 * free storage, no cache files are cleared. If the currently
284 * available storage on the device is less than the requested
285 * free storage, some or all of the cache files across
286 * all applications are deleted (based on last accessed time)
287 * to increase the free storage space on the device to
288 * the requested value. There is no guarantee that clearing all
289 * the cache files from all applications will clear up
290 * enough storage to achieve the desired value.
291 * @param freeStorageSize The number of bytes of storage to be
292 * freed by the system. Say if freeStorageSize is XX,
293 * and the current free storage is YY,
294 * if XX is less than YY, just return. if not free XX-YY number
295 * of bytes if possible.
296 * @param observer call back used to notify when
297 * the operation is completed
298 */
299 void freeStorageAndNotify(in long freeStorageSize,
300 IPackageDataObserver observer);
301
302 /**
303 * Free storage by deleting LRU sorted list of cache files across
304 * all applications. If the currently available free storage
305 * on the device is greater than or equal to the requested
306 * free storage, no cache files are cleared. If the currently
307 * available storage on the device is less than the requested
308 * free storage, some or all of the cache files across
309 * all applications are deleted (based on last accessed time)
310 * to increase the free storage space on the device to
311 * the requested value. There is no guarantee that clearing all
312 * the cache files from all applications will clear up
313 * enough storage to achieve the desired value.
314 * @param freeStorageSize The number of bytes of storage to be
315 * freed by the system. Say if freeStorageSize is XX,
316 * and the current free storage is YY,
317 * if XX is less than YY, just return. if not free XX-YY number
318 * of bytes if possible.
Suchi Amalapurapu1ccac752009-06-12 10:09:58 -0700319 * @param pi IntentSender call back used to
320 * notify when the operation is completed.May be null
321 * to indicate that no call back is desired.
322 */
Suchi Amalapurapubc806f62009-06-17 15:18:19 -0700323 void freeStorage(in long freeStorageSize,
Suchi Amalapurapu1ccac752009-06-12 10:09:58 -0700324 in IntentSender pi);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800325
326 /**
327 * Delete all the cache files in an applications cache directory
328 * @param packageName The package name of the application whose cache
329 * files need to be deleted
330 * @param observer a callback used to notify when the deletion is finished.
331 */
332 void deleteApplicationCacheFiles(in String packageName, IPackageDataObserver observer);
333
334 /**
335 * Clear the user data directory of an application.
336 * @param packageName The package name of the application whose cache
337 * files need to be deleted
338 * @param observer a callback used to notify when the operation is completed.
339 */
Amith Yamasani483f3b02012-03-13 16:08:00 -0700340 void clearApplicationUserData(in String packageName, IPackageDataObserver observer, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800341
342 /**
343 * Get package statistics including the code, data and cache size for
344 * an already installed package
345 * @param packageName The package name of the application
Dianne Hackborn0c380492012-08-20 17:23:30 -0700346 * @param userHandle Which user the size should be retrieved for
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800347 * @param observer a callback to use to notify when the asynchronous
348 * retrieval of information is complete.
349 */
Dianne Hackborn0c380492012-08-20 17:23:30 -0700350 void getPackageSizeInfo(in String packageName, int userHandle, IPackageStatsObserver observer);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800351
352 /**
353 * Get a list of shared libraries that are available on the
354 * system.
355 */
356 String[] getSystemSharedLibraryNames();
357
Dianne Hackborn49237342009-08-27 20:08:01 -0700358 /**
359 * Get a list of features that are available on the
360 * system.
361 */
362 FeatureInfo[] getSystemAvailableFeatures();
363
Dianne Hackborn039c68e2009-09-26 16:39:23 -0700364 boolean hasSystemFeature(String name);
365
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800366 void enterSafeMode();
367 boolean isSafeMode();
368 void systemReady();
369 boolean hasSystemUidErrors();
Dianne Hackborn661cd522011-08-22 00:26:20 -0700370
371 /**
372 * Ask the package manager to perform boot-time dex-opt of all
373 * existing packages.
374 */
375 void performBootDexOpt();
376
Dianne Hackborn5c1e00b2009-06-18 17:10:57 -0700377 /**
378 * Ask the package manager to perform dex-opt (if needed) on the given
379 * package, if it already hasn't done mode. Only does this if running
380 * in the special development "no pre-dexopt" mode.
381 */
382 boolean performDexOpt(String packageName);
Suchi Amalapurapuaf8e9f42010-01-12 10:17:28 -0800383
384 /**
385 * Update status of external media on the package manager to scan and
386 * install packages installed on the external media. Like say the
387 * MountService uses this to call into the package manager to update
388 * status of sdcard.
389 */
Suchi Amalapurapue99bb5f2010-03-19 14:36:49 -0700390 void updateExternalMediaStatus(boolean mounted, boolean reportStatus);
Suchi Amalapurapuaf8e9f42010-01-12 10:17:28 -0800391
Dianne Hackborn7767eac2012-08-23 18:25:40 -0700392 PackageCleanItem nextPackageToClean(in PackageCleanItem lastPackage);
Suchi Amalapurapu8946dd32010-02-19 09:19:34 -0800393
394 void movePackage(String packageName, IPackageMoveObserver observer, int flags);
Rich Canningse1d7c712012-08-08 12:46:06 -0700395
Dianne Hackbornd7c09682010-03-30 10:42:20 -0700396 boolean addPermissionAsync(in PermissionInfo info);
Suchi Amalapurapu40e47252010-04-07 16:15:50 -0700397
398 boolean setInstallLocation(int loc);
399 int getInstallLocation();
Amith Yamasani0b285492011-04-14 17:35:23 -0700400
Kenny Root5ab21572011-07-27 11:11:19 -0700401 void installPackageWithVerification(in Uri packageURI, in IPackageInstallObserver observer,
402 int flags, in String installerPackageName, in Uri verificationURI,
Rich Canningse1d7c712012-08-08 12:46:06 -0700403 in ManifestDigest manifestDigest, in ContainerEncryptionParams encryptionParams);
Kenny Root5ab21572011-07-27 11:11:19 -0700404
rich cannings706e8ba2012-08-20 13:20:14 -0700405 void installPackageWithVerificationAndEncryption(in Uri packageURI,
406 in IPackageInstallObserver observer, int flags, in String installerPackageName,
407 in VerificationParams verificationParams,
408 in ContainerEncryptionParams encryptionParams);
409
Christopher Tatef1977b42014-03-24 16:25:51 -0700410 /** Expanded observer versions */
411 void installPackageEtc(in Uri packageURI, IPackageInstallObserver observer,
412 IPackageInstallObserver2 observer2, int flags, in String installerPackageName);
413
414 void installPackageWithVerificationEtc(in Uri packageURI,
415 in IPackageInstallObserver observer, IPackageInstallObserver2 observer2,
416 int flags, in String installerPackageName, in Uri verificationURI,
417 in ManifestDigest manifestDigest, in ContainerEncryptionParams encryptionParams);
418
419 void installPackageWithVerificationAndEncryptionEtc(in Uri packageURI,
420 in IPackageInstallObserver observer, in IPackageInstallObserver2 observer2,
421 int flags, in String installerPackageName,
422 in VerificationParams verificationParams,
423 in ContainerEncryptionParams encryptionParams);
424
Amith Yamasani67df64b2012-12-14 12:09:36 -0800425 int installExistingPackageAsUser(String packageName, int userId);
Dianne Hackborn7767eac2012-08-23 18:25:40 -0700426
Kenny Root3a9b5fb2011-09-20 14:15:38 -0700427 void verifyPendingInstall(int id, int verificationCode);
rich canningsd9ef3e52012-08-22 14:28:05 -0700428 void extendVerificationTimeout(int id, int verificationCodeAtTimeout, long millisecondsToDelay);
Kenny Root0aaa0d92011-09-12 16:42:55 -0700429
430 VerifierDeviceIdentity getVerifierDeviceIdentity();
Dianne Hackborn58f42a52011-10-10 13:46:34 -0700431
432 boolean isFirstBoot();
Dianne Hackborn13579ed2012-11-28 18:05:36 -0800433 boolean isOnlyCoreApps();
Amith Yamasani742a6712011-05-04 14:49:28 -0700434
Jeff Sharkey5d32e772012-04-12 15:59:23 -0700435 void setPermissionEnforced(String permission, boolean enforced);
436 boolean isPermissionEnforced(String permission);
Jeff Sharkeyf6f7f1d2012-06-12 17:12:08 -0700437
438 /** Reflects current DeviceStorageMonitorService state */
439 boolean isStorageLow();
Amith Yamasani655d0e22013-06-12 14:19:10 -0700440
441 boolean setApplicationBlockedSettingAsUser(String packageName, boolean blocked, int userId);
442 boolean getApplicationBlockedSettingAsUser(String packageName, int userId);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800443}