API Diff Specification
To Version: Android SDK 0.9_r1
From Version: Android SDK m5-rc14
Generated 2008.08.14 15:44

Class android.content.pm.PackageManager

Removed Methods
Resources getResourcesForApplication(String) Retrieve the resources associated with an application.
List<ResolveInfo> queryIntentReceivers(Intent, int) Retrieve all receivers that can handle a broadcast of the given intent.
 

Added Methods
boolean addPermission(PermissionInfo) Add a new dynamic permission to the system.
void addPreferredActivity(IntentFilter, int, ComponentName[], ComponentName) Add a new preferred activity mapping to the system.
void clearApplicationUserData(String, IPackageDataObserver) Attempts to clear the user data directory of an application.
void clearPackagePreferredActivities(String) Remove all preferred activity mappings, previously added with .addPreferredActivity, from the system whose activities are implemented in the given package name.
void deleteApplicationCacheFiles(String, IPackageDataObserver) Attempts to delete the cache files associated with an application.
void deletePackage(String, IPackageDeleteObserver, int) Attempts to delete a package.
void freeApplicationCache(long, IPackageDataObserver) Free storage by deleting LRU sorted list of cache files across all applications.
List<PermissionGroupInfo> getAllPermissionGroups(int) Retrieve all of the known permission groups in the system.
int getApplicationEnabledSetting(String) Return the the enabled setting for an application.
int getComponentEnabledSetting(ComponentName) Return the the enabled setting for a package component (activity, receiver, service, provider).
int[] getPackageGids(String) Return an array of all of the secondary group-ids that have been assigned to a package.
void getPackageSizeInfo(String, IPackageStatsObserver) Attempts to delete the cache files associated with an application.
PermissionGroupInfo getPermissionGroupInfo(String, int) Retrieve all of the information we know about a particular group of permissions.
int getPreferredActivities(List<IntentFilter>, List<ComponentName>, String) Retrieve all preferred activities, previously added with .addPreferredActivity, that are currently registered with the system.
Resources getResourcesForApplication(String) Retrieve the resources associated with an application.
void installPackage(Uri, IPackageInstallObserver, int) Install a package.
List<ResolveInfo> queryBroadcastReceivers(Intent, int) Retrieve all receivers that can handle a broadcast of the given intent.
List<PermissionInfo> queryPermissionsByGroup(String, int) Query for all of the permissions associated with a particular group.
void removePermission(String) Removes a permission that was previously added with .addPermission(PermissionInfo).
 

Changed Methods
Resources getResourcesForActivity(ComponentName) Change in return type from android.content.Resources to android.content.res.Resources.
Retrieve the resources associated with an activity.
XmlResourceParser getXml(String, int, ApplicationInfo) Change in return type from XmlPullParser to XmlResourceParser.
Retrieve an XML file from a package.
List<ProviderInfo> queryContentProviders(String, int, int) Change in signature from (String, int) to (String, int, int).
Retrieve content provider information.
void setApplicationEnabledSetting(String, int, int) Change in signature from (String, int) to (String, int, int).
Set the enabled setting for an application This setting will override any enabled state which may have been set by the application in its manifest.
void setComponentEnabledSetting(ComponentName, int, int) Change in signature from (ComponentName, int) to (ComponentName, int, int).
Set the enabled setting for a package component (activity, receiver, service, provider).
Resources getResourcesForApplication(ApplicationInfo) Change in return type from android.content.Resources to android.content.res.Resources.
Change in exceptions thrown from no exceptions to android.content.pm.PackageManager.NameNotFoundException.
Retrieve the resources for an application.
 

Removed Fields
int INCLUDE_DISABLED_COMPONENTS
 

Added Fields
int DONT_DELETE_DATA Flag parameter for .deletePackage to indicate that you don't want to delete the package's data directory.
int DONT_KILL_APP Flag parameter for .setComponentEnabledSetting(android.content.ComponentName, int, int) to indicate that you don't want to kill the app containing the component.
int FORWARD_LOCK_PACKAGE Flag parameter for .installPackage(android.net.Uri, IPackageInstallObserver, int) to indicate that this package should be installed as forward locked, i.e.
int GET_DISABLED_COMPONENTS PackageInfo flag: include disabled components in the returned info.
int GET_GIDS PackageInfo flag: return the group ids that are associated with an application.
int GET_PERMISSIONS PackageInfo flag: return information about permissions in the package in PackageInfo.permissions.
int GET_SHARED_LIBRARY_FILES ApplicationInfo flag: return the paths to the shared libraries that are associated with an application.
int GET_SIGNATURES PackageInfo flag: return information about the signatures included in the package.
int GET_URI_PERMISSION_PATTERNS ProviderInfo flag: return the URI permission patterns that are associated with a content provider.
int INSTALL_FAILED_ALREADY_EXISTS Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the package is already installed.
int INSTALL_FAILED_DEXOPT Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed while optimizing and validating its dex files, either because there was not enough storage or the validation failed.
int INSTALL_FAILED_DUPLICATE_PACKAGE Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if a package is already installed with the same name.
int INSTALL_FAILED_INSUFFICIENT_STORAGE Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the package manager service found that the device didn't have enough storage space to install the app
int INSTALL_FAILED_INVALID_APK Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the package archive file is invalid.
int INSTALL_FAILED_INVALID_URI Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the URI passed in is invalid.
int INSTALL_FAILED_MISSING_SHARED_LIBRARY Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package uses a shared library that is not available.
int INSTALL_FAILED_NO_SHARED_USER Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the requested shared user does not exist.
int INSTALL_FAILED_OLDER_SDK Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package failed because the current SDK version is older than that required by the package.
int INSTALL_FAILED_REPLACE_COULDNT_DELETE Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package uses a shared library that is not available.
int INSTALL_FAILED_SHARED_USER_INCOMPATIBLE Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the new package is requested a shared user which is already installed on the device and does not have matching signature.
int INSTALL_FAILED_UPDATE_INCOMPATIBLE Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if a previously installed package of the same name has a different signature than the new package (and the old package's data was not removed).
int INSTALL_PARSE_FAILED_BAD_MANIFEST Installation parse return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser was unable to retrieve the AndroidManifest.xml file.
int INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME Installation parse return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered a bad or missing package name in the manifest.
int INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID Installation parse return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered a bad shared user id name in the manifest.
int INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING Installation parse return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered a CertificateEncodingException in one of the files in the .apk.
int INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES Installation parse return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser found inconsistent certificates on the files in the .apk.
int INSTALL_PARSE_FAILED_MANIFEST_EMPTY Installation parse return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser did not find any actionable tags (instrumentation or application) in the manifest.
int INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Installation parse return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered some structural problem in the manifest.
int INSTALL_PARSE_FAILED_NOT_APK Installation parse return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser was given a path that is not a file, or does not end with the expected '.apk' extension.
int INSTALL_PARSE_FAILED_NO_CERTIFICATES Installation parse return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser did not find any certificates in the .apk.
int INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION Installation parse return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) if the parser encountered an unexpected exception.
int INSTALL_SUCCEEDED Installation return code: this is passed to the IPackageInstallObserver by .installPackage(android.net.Uri, IPackageInstallObserver, int) on success.
int PKG_INSTALL_COMPLETE  
int PKG_INSTALL_INCOMPLETE Indicates the state of installation.
int REPLACE_EXISTING_PACKAGE Flag parameter for .installPackage to indicate that you want to replace an already installed package, if one exists
 

©2008 Google - Code Home - Site Terms of Service - Privacy Policy
Generated by JDiff