Methods Summary |
---|
public boolean | activitySupportsIntent(android.content.ComponentName className, android.content.Intent intent, java.lang.String resolvedType)
|
public void | addCrossProfileIntentFilter(android.content.IntentFilter intentFilter, java.lang.String ownerPackage, int ownerUserId, int sourceUserId, int targetUserId, int flags)
|
public void | addPackageToPreferred(java.lang.String packageName)
|
public boolean | addPermission(android.content.pm.PermissionInfo info)
|
public boolean | addPermissionAsync(android.content.pm.PermissionInfo info)
|
public void | addPersistentPreferredActivity(android.content.IntentFilter filter, android.content.ComponentName activity, int userId)
|
public void | addPreferredActivity(android.content.IntentFilter filter, int match, android.content.ComponentName[] set, android.content.ComponentName activity, int userId)
|
public boolean | canForwardTo(android.content.Intent intent, java.lang.String resolvedType, int sourceUserId, int targetUserId)
|
public java.lang.String[] | canonicalToCurrentPackageNames(java.lang.String[] names)
|
public int | checkPermission(java.lang.String permName, java.lang.String pkgName)
|
public int | checkSignatures(java.lang.String pkg1, java.lang.String pkg2)
|
public int | checkUidPermission(java.lang.String permName, int uid)
|
public int | checkUidSignatures(int uid1, int uid2)
|
public void | clearApplicationUserData(java.lang.String packageName, android.content.pm.IPackageDataObserver observer, int userId)Clear the user data directory of an application.
|
public void | clearCrossProfileIntentFilters(int sourceUserId, java.lang.String ownerPackage, int ownerUserId)
|
public void | clearPackagePersistentPreferredActivities(java.lang.String packageName, int userId)
|
public void | clearPackagePreferredActivities(java.lang.String packageName)
|
public java.lang.String[] | currentToCanonicalPackageNames(java.lang.String[] names)
|
public void | deleteApplicationCacheFiles(java.lang.String packageName, android.content.pm.IPackageDataObserver observer)Delete all the cache files in an applications cache directory
|
public void | deletePackage(java.lang.String packageName, android.content.pm.IPackageDeleteObserver2 observer, int userId, int flags)Delete a package for a specific user.
|
public void | deletePackageAsUser(java.lang.String packageName, android.content.pm.IPackageDeleteObserver observer, int userId, int flags)
|
public void | enterSafeMode()
|
public void | extendVerificationTimeout(int id, int verificationCodeAtTimeout, long millisecondsToDelay)
|
public void | finishPackageInstall(int token)
|
public void | forceDexOpt(java.lang.String packageName)
|
public void | freeStorage(long freeStorageSize, android.content.IntentSender pi)Free storage by deleting LRU sorted list of cache files across
all applications. If the currently available free storage
on the device is greater than or equal to the requested
free storage, no cache files are cleared. If the currently
available storage on the device is less than the requested
free storage, some or all of the cache files across
all applications are deleted (based on last accessed time)
to increase the free storage space on the device to
the requested value. There is no guarantee that clearing all
the cache files from all applications will clear up
enough storage to achieve the desired value.
|
public void | freeStorageAndNotify(long freeStorageSize, android.content.pm.IPackageDataObserver observer)Free storage by deleting LRU sorted list of cache files across
all applications. If the currently available free storage
on the device is greater than or equal to the requested
free storage, no cache files are cleared. If the currently
available storage on the device is less than the requested
free storage, some or all of the cache files across
all applications are deleted (based on last accessed time)
to increase the free storage space on the device to
the requested value. There is no guarantee that clearing all
the cache files from all applications will clear up
enough storage to achieve the desired value.
|
public android.content.pm.ActivityInfo | getActivityInfo(android.content.ComponentName className, int flags, int userId)
|
public java.util.List | getAllPermissionGroups(int flags)
|
public java.lang.String[] | getAppOpPermissionPackages(java.lang.String permissionName)
|
public int | getApplicationEnabledSetting(java.lang.String packageName, int userId)As per {@link android.content.pm.PackageManager#getApplicationEnabledSetting}.
|
public boolean | getApplicationHiddenSettingAsUser(java.lang.String packageName, int userId)
|
public android.content.pm.ApplicationInfo | getApplicationInfo(java.lang.String packageName, int flags, int userId)
|
public boolean | getBlockUninstallForUser(java.lang.String packageName, int userId)
|
public int | getComponentEnabledSetting(android.content.ComponentName componentName, int userId)As per {@link android.content.pm.PackageManager#getComponentEnabledSetting}.
|
public int | getFlagsForUid(int uid)
|
public android.content.ComponentName | getHomeActivities(java.util.List outHomeCandidates)Report the set of 'Home' activity candidates, plus (if any) which of them
is the current "always use this one" setting.
|
public int | getInstallLocation()
|
public android.content.pm.ParceledListSlice | getInstalledApplications(int flags, int userId)This implements getInstalledApplications via a "last returned row"
mechanism that is not exposed in the API. This is to get around the IPC
limit that kicks in when flags are included that bloat up the data
returned.
|
public android.content.pm.ParceledListSlice | getInstalledPackages(int flags, int userId)This implements getInstalledPackages via a "last returned row"
mechanism that is not exposed in the API. This is to get around the IPC
limit that kicks in when flags are included that bloat up the data
returned.
|
public java.lang.String | getInstallerPackageName(java.lang.String packageName)
|
public android.content.pm.InstrumentationInfo | getInstrumentationInfo(android.content.ComponentName className, int flags)
|
public android.content.pm.KeySet | getKeySetByAlias(java.lang.String packageName, java.lang.String alias)
|
public android.content.pm.ResolveInfo | getLastChosenActivity(android.content.Intent intent, java.lang.String resolvedType, int flags)
|
public java.lang.String | getNameForUid(int uid)
|
public int[] | getPackageGids(java.lang.String packageName)
|
public android.content.pm.PackageInfo | getPackageInfo(java.lang.String packageName, int flags, int userId)
|
public android.content.pm.IPackageInstaller | getPackageInstaller()
|
public void | getPackageSizeInfo(java.lang.String packageName, int userHandle, android.content.pm.IPackageStatsObserver observer)Get package statistics including the code, data and cache size for
an already installed package
|
public int | getPackageUid(java.lang.String packageName, int userId)
|
public java.lang.String[] | getPackagesForUid(int uid)
|
public android.content.pm.ParceledListSlice | getPackagesHoldingPermissions(java.lang.String[] permissions, int flags, int userId)This implements getPackagesHoldingPermissions via a "last returned row"
mechanism that is not exposed in the API. This is to get around the IPC
limit that kicks in when flags are included that bloat up the data
returned.
|
public android.content.pm.PermissionGroupInfo | getPermissionGroupInfo(java.lang.String name, int flags)
|
public android.content.pm.PermissionInfo | getPermissionInfo(java.lang.String name, int flags)
|
public java.util.List | getPersistentApplications(int flags)Retrieve all applications that are marked as persistent.
|
public int | getPreferredActivities(java.util.List outFilters, java.util.List outActivities, java.lang.String packageName)
|
public java.util.List | getPreferredPackages(int flags)
|
public android.content.pm.ProviderInfo | getProviderInfo(android.content.ComponentName className, int flags, int userId)
|
public android.content.pm.ActivityInfo | getReceiverInfo(android.content.ComponentName className, int flags, int userId)
|
public android.content.pm.ServiceInfo | getServiceInfo(android.content.ComponentName className, int flags, int userId)
|
public android.content.pm.KeySet | getSigningKeySet(java.lang.String packageName)
|
public android.content.pm.FeatureInfo[] | getSystemAvailableFeatures()Get a list of features that are available on the
system.
|
public java.lang.String[] | getSystemSharedLibraryNames()Get a list of shared libraries that are available on the
system.
|
public int | getUidForSharedUser(java.lang.String sharedUserName)
|
public android.content.pm.VerifierDeviceIdentity | getVerifierDeviceIdentity()
|
public void | grantPermission(java.lang.String packageName, java.lang.String permissionName)
|
public boolean | hasSystemFeature(java.lang.String name)
|
public boolean | hasSystemUidErrors()
|
public int | installExistingPackageAsUser(java.lang.String packageName, int userId)
|
public void | installPackage(java.lang.String originPath, android.content.pm.IPackageInstallObserver2 observer, int flags, java.lang.String installerPackageName, android.content.pm.VerificationParams verificationParams, java.lang.String packageAbiOverride)
|
public void | installPackageAsUser(java.lang.String originPath, android.content.pm.IPackageInstallObserver2 observer, int flags, java.lang.String installerPackageName, android.content.pm.VerificationParams verificationParams, java.lang.String packageAbiOverride, int userId)
|
public boolean | isFirstBoot()
|
public boolean | isOnlyCoreApps()
|
public boolean | isPackageAvailable(java.lang.String packageName, int userId)
|
public boolean | isPackageSignedByKeySet(java.lang.String packageName, android.content.pm.KeySet ks)
|
public boolean | isPackageSignedByKeySetExactly(java.lang.String packageName, android.content.pm.KeySet ks)
|
public boolean | isPermissionEnforced(java.lang.String permission)
|
public boolean | isProtectedBroadcast(java.lang.String actionName)
|
public boolean | isSafeMode()
|
public boolean | isStorageLow()Reflects current DeviceStorageMonitorService state
|
public boolean | isUidPrivileged(int uid)
|
public boolean | isUpgrade()
|
public void | movePackage(java.lang.String packageName, android.content.pm.IPackageMoveObserver observer, int flags)
|
public android.content.pm.PackageCleanItem | nextPackageToClean(android.content.pm.PackageCleanItem lastPackage)
|
public void | performBootDexOpt()Ask the package manager to perform boot-time dex-opt of all
existing packages.
|
public boolean | performDexOptIfNeeded(java.lang.String packageName, java.lang.String instructionSet)Ask the package manager to perform dex-opt (if needed) on the given
package and for the given instruction set if it already hasn't done
so.
If the supplied instructionSet is null, the package manager will use
the packages default instruction set.
In most cases, apps are dexopted in advance and this function will
be a no-op.
|
public java.util.List | queryContentProviders(java.lang.String processName, int uid, int flags)
|
public java.util.List | queryInstrumentation(java.lang.String targetPackage, int flags)
|
public java.util.List | queryIntentActivities(android.content.Intent intent, java.lang.String resolvedType, int flags, int userId)
|
public java.util.List | queryIntentActivityOptions(android.content.ComponentName caller, android.content.Intent[] specifics, java.lang.String[] specificTypes, android.content.Intent intent, java.lang.String resolvedType, int flags, int userId)
|
public java.util.List | queryIntentContentProviders(android.content.Intent intent, java.lang.String resolvedType, int flags, int userId)
|
public java.util.List | queryIntentReceivers(android.content.Intent intent, java.lang.String resolvedType, int flags, int userId)
|
public java.util.List | queryIntentServices(android.content.Intent intent, java.lang.String resolvedType, int flags, int userId)
|
public java.util.List | queryPermissionsByGroup(java.lang.String group, int flags)
|
public void | querySyncProviders(java.util.List outNames, java.util.List outInfo)Retrieve sync information for all content providers.
|
public void | removePackageFromPreferred(java.lang.String packageName)
|
public void | removePermission(java.lang.String name)
|
public void | replacePreferredActivity(android.content.IntentFilter filter, int match, android.content.ComponentName[] set, android.content.ComponentName activity, int userId)
|
public void | resetPreferredActivities(int userId)
|
public android.content.pm.ProviderInfo | resolveContentProvider(java.lang.String name, int flags, int userId)
|
public android.content.pm.ResolveInfo | resolveIntent(android.content.Intent intent, java.lang.String resolvedType, int flags, int userId)
|
public android.content.pm.ResolveInfo | resolveService(android.content.Intent intent, java.lang.String resolvedType, int flags, int userId)
|
public void | revokePermission(java.lang.String packageName, java.lang.String permissionName)
|
public void | setApplicationEnabledSetting(java.lang.String packageName, int newState, int flags, int userId, java.lang.String callingPackage)As per {@link android.content.pm.PackageManager#setApplicationEnabledSetting}.
|
public boolean | setApplicationHiddenSettingAsUser(java.lang.String packageName, boolean hidden, int userId)
|
public boolean | setBlockUninstallForUser(java.lang.String packageName, boolean blockUninstall, int userId)
|
public void | setComponentEnabledSetting(android.content.ComponentName componentName, int newState, int flags, int userId)As per {@link android.content.pm.PackageManager#setComponentEnabledSetting}.
|
public boolean | setInstallLocation(int loc)
|
public void | setInstallerPackageName(java.lang.String targetPackage, java.lang.String installerPackageName)
|
public void | setLastChosenActivity(android.content.Intent intent, java.lang.String resolvedType, int flags, android.content.IntentFilter filter, int match, android.content.ComponentName activity)
|
public void | setPackageStoppedState(java.lang.String packageName, boolean stopped, int userId)Set whether the given package should be considered stopped, making
it not visible to implicit intents that filter out stopped packages.
|
public void | setPermissionEnforced(java.lang.String permission, boolean enforced)
|
public void | systemReady()
|
public void | updateExternalMediaStatus(boolean mounted, boolean reportStatus)Update status of external media on the package manager to scan and
install packages installed on the external media. Like say the
MountService uses this to call into the package manager to update
status of sdcard.
|
public void | verifyPendingInstall(int id, int verificationCode)
|