android.content.pm
Class PackageManager

java.lang.Object
  extended by android.content.pm.PackageManager

public abstract class PackageManager
extends Object


Nested Class Summary
static class PackageManager.NameNotFoundException
           
 
Field Summary
static int COMPONENT_ENABLED_STATE_DEFAULT
           
static int COMPONENT_ENABLED_STATE_DISABLED
           
static int COMPONENT_ENABLED_STATE_DISABLED_USER
           
static int COMPONENT_ENABLED_STATE_ENABLED
           
static int DONT_KILL_APP
           
static String EXTRA_VERIFICATION_ID
           
static String FEATURE_AUDIO_LOW_LATENCY
           
static String FEATURE_BLUETOOTH
           
static String FEATURE_CAMERA
           
static String FEATURE_CAMERA_AUTOFOCUS
           
static String FEATURE_CAMERA_FLASH
           
static String FEATURE_CAMERA_FRONT
           
static String FEATURE_FAKETOUCH
           
static String FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT
           
static String FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND
           
static String FEATURE_LIVE_WALLPAPER
           
static String FEATURE_LOCATION
           
static String FEATURE_LOCATION_GPS
           
static String FEATURE_LOCATION_NETWORK
           
static String FEATURE_MICROPHONE
           
static String FEATURE_NFC
           
static String FEATURE_SCREEN_LANDSCAPE
           
static String FEATURE_SCREEN_PORTRAIT
           
static String FEATURE_SENSOR_ACCELEROMETER
           
static String FEATURE_SENSOR_BAROMETER
           
static String FEATURE_SENSOR_COMPASS
           
static String FEATURE_SENSOR_GYROSCOPE
           
static String FEATURE_SENSOR_LIGHT
           
static String FEATURE_SENSOR_PROXIMITY
           
static String FEATURE_SIP
           
static String FEATURE_SIP_VOIP
           
static String FEATURE_TELEPHONY
           
static String FEATURE_TELEPHONY_CDMA
           
static String FEATURE_TELEPHONY_GSM
           
static String FEATURE_TOUCHSCREEN
           
static String FEATURE_TOUCHSCREEN_MULTITOUCH
           
static String FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT
           
static String FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND
           
static String FEATURE_USB_ACCESSORY
           
static String FEATURE_USB_HOST
           
static String FEATURE_WIFI
           
static String FEATURE_WIFI_DIRECT
           
static int GET_ACTIVITIES
           
static int GET_CONFIGURATIONS
           
static int GET_DISABLED_COMPONENTS
           
static int GET_GIDS
           
static int GET_INSTRUMENTATION
           
static int GET_INTENT_FILTERS
           
static int GET_META_DATA
           
static int GET_PERMISSIONS
           
static int GET_PROVIDERS
           
static int GET_RECEIVERS
           
static int GET_RESOLVED_FILTER
           
static int GET_SERVICES
           
static int GET_SHARED_LIBRARY_FILES
           
static int GET_SIGNATURES
           
static int GET_UNINSTALLED_PACKAGES
           
static int GET_URI_PERMISSION_PATTERNS
           
static int MATCH_DEFAULT_ONLY
           
static int PERMISSION_DENIED
           
static int PERMISSION_GRANTED
           
static int SIGNATURE_FIRST_NOT_SIGNED
           
static int SIGNATURE_MATCH
           
static int SIGNATURE_NEITHER_SIGNED
           
static int SIGNATURE_NO_MATCH
           
static int SIGNATURE_SECOND_NOT_SIGNED
           
static int SIGNATURE_UNKNOWN_PACKAGE
           
static int VERIFICATION_ALLOW
           
static int VERIFICATION_REJECT
           
 
Constructor Summary
PackageManager()
           
 
Method Summary
abstract  void addPackageToPreferred(String packageName)
           
abstract  boolean addPermission(PermissionInfo info)
           
abstract  boolean addPermissionAsync(PermissionInfo info)
           
abstract  void addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity)
           
abstract  String[] canonicalToCurrentPackageNames(String[] names)
           
abstract  int checkPermission(String permName, String pkgName)
           
abstract  int checkSignatures(int uid1, int uid2)
           
abstract  int checkSignatures(String pkg1, String pkg2)
           
abstract  void clearPackagePreferredActivities(String packageName)
           
abstract  String[] currentToCanonicalPackageNames(String[] names)
           
abstract  Drawable getActivityIcon(ComponentName activityName)
           
abstract  Drawable getActivityIcon(Intent intent)
           
abstract  ActivityInfo getActivityInfo(ComponentName component, int flags)
           
abstract  Drawable getActivityLogo(ComponentName activityName)
           
abstract  Drawable getActivityLogo(Intent intent)
           
abstract  List<PermissionGroupInfo> getAllPermissionGroups(int flags)
           
abstract  int getApplicationEnabledSetting(String packageName)
           
abstract  Drawable getApplicationIcon(ApplicationInfo info)
           
abstract  Drawable getApplicationIcon(String packageName)
           
abstract  ApplicationInfo getApplicationInfo(String packageName, int flags)
           
abstract  CharSequence getApplicationLabel(ApplicationInfo info)
           
abstract  Drawable getApplicationLogo(ApplicationInfo info)
           
abstract  Drawable getApplicationLogo(String packageName)
           
abstract  int getComponentEnabledSetting(ComponentName componentName)
           
abstract  Drawable getDefaultActivityIcon()
           
abstract  Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo)
           
abstract  List<ApplicationInfo> getInstalledApplications(int flags)
           
abstract  List<PackageInfo> getInstalledPackages(int flags)
           
abstract  String getInstallerPackageName(String packageName)
           
abstract  InstrumentationInfo getInstrumentationInfo(ComponentName className, int flags)
           
abstract  Intent getLaunchIntentForPackage(String packageName)
           
abstract  String getNameForUid(int uid)
           
 PackageInfo getPackageArchiveInfo(String archiveFilePath, int flags)
           
abstract  int[] getPackageGids(String packageName)
           
abstract  PackageInfo getPackageInfo(String packageName, int flags)
           
abstract  String[] getPackagesForUid(int uid)
           
abstract  PermissionGroupInfo getPermissionGroupInfo(String name, int flags)
           
abstract  PermissionInfo getPermissionInfo(String name, int flags)
           
abstract  int getPreferredActivities(List<IntentFilter> outFilters, List<ComponentName> outActivities, String packageName)
           
abstract  List<PackageInfo> getPreferredPackages(int flags)
           
abstract  ProviderInfo getProviderInfo(ComponentName component, int flags)
           
abstract  ActivityInfo getReceiverInfo(ComponentName component, int flags)
           
abstract  Resources getResourcesForActivity(ComponentName activityName)
           
abstract  Resources getResourcesForApplication(ApplicationInfo app)
           
abstract  Resources getResourcesForApplication(String appPackageName)
           
abstract  ServiceInfo getServiceInfo(ComponentName component, int flags)
           
abstract  FeatureInfo[] getSystemAvailableFeatures()
           
abstract  String[] getSystemSharedLibraryNames()
           
abstract  CharSequence getText(String packageName, int resid, ApplicationInfo appInfo)
           
abstract  XmlResourceParser getXml(String packageName, int resid, ApplicationInfo appInfo)
           
abstract  boolean hasSystemFeature(String name)
           
abstract  boolean isSafeMode()
           
abstract  List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags)
           
abstract  List<ProviderInfo> queryContentProviders(String processName, int uid, int flags)
           
abstract  List<InstrumentationInfo> queryInstrumentation(String targetPackage, int flags)
           
abstract  List<ResolveInfo> queryIntentActivities(Intent intent, int flags)
           
abstract  List<ResolveInfo> queryIntentActivityOptions(ComponentName caller, Intent[] specifics, Intent intent, int flags)
           
abstract  List<ResolveInfo> queryIntentServices(Intent intent, int flags)
           
abstract  List<PermissionInfo> queryPermissionsByGroup(String group, int flags)
           
abstract  void removePackageFromPreferred(String packageName)
           
abstract  void removePermission(String name)
           
abstract  ResolveInfo resolveActivity(Intent intent, int flags)
           
abstract  ProviderInfo resolveContentProvider(String name, int flags)
           
abstract  ResolveInfo resolveService(Intent intent, int flags)
           
abstract  void setApplicationEnabledSetting(String packageName, int newState, int flags)
           
abstract  void setComponentEnabledSetting(ComponentName componentName, int newState, int flags)
           
abstract  void setInstallerPackageName(String targetPackage, String installerPackageName)
           
abstract  void verifyPendingInstall(int id, int verificationCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET_ACTIVITIES

public static final int GET_ACTIVITIES
See Also:
Constant Field Values

GET_RECEIVERS

public static final int GET_RECEIVERS
See Also:
Constant Field Values

GET_SERVICES

public static final int GET_SERVICES
See Also:
Constant Field Values

GET_PROVIDERS

public static final int GET_PROVIDERS
See Also:
Constant Field Values

GET_INSTRUMENTATION

public static final int GET_INSTRUMENTATION
See Also:
Constant Field Values

GET_INTENT_FILTERS

public static final int GET_INTENT_FILTERS
See Also:
Constant Field Values

GET_SIGNATURES

public static final int GET_SIGNATURES
See Also:
Constant Field Values

GET_RESOLVED_FILTER

public static final int GET_RESOLVED_FILTER
See Also:
Constant Field Values

GET_META_DATA

public static final int GET_META_DATA
See Also:
Constant Field Values

GET_GIDS

public static final int GET_GIDS
See Also:
Constant Field Values

GET_DISABLED_COMPONENTS

public static final int GET_DISABLED_COMPONENTS
See Also:
Constant Field Values

GET_SHARED_LIBRARY_FILES

public static final int GET_SHARED_LIBRARY_FILES
See Also:
Constant Field Values

GET_URI_PERMISSION_PATTERNS

public static final int GET_URI_PERMISSION_PATTERNS
See Also:
Constant Field Values

GET_PERMISSIONS

public static final int GET_PERMISSIONS
See Also:
Constant Field Values

GET_UNINSTALLED_PACKAGES

public static final int GET_UNINSTALLED_PACKAGES
See Also:
Constant Field Values

GET_CONFIGURATIONS

public static final int GET_CONFIGURATIONS
See Also:
Constant Field Values

MATCH_DEFAULT_ONLY

public static final int MATCH_DEFAULT_ONLY
See Also:
Constant Field Values

PERMISSION_GRANTED

public static final int PERMISSION_GRANTED
See Also:
Constant Field Values

PERMISSION_DENIED

public static final int PERMISSION_DENIED
See Also:
Constant Field Values

SIGNATURE_MATCH

public static final int SIGNATURE_MATCH
See Also:
Constant Field Values

SIGNATURE_NEITHER_SIGNED

public static final int SIGNATURE_NEITHER_SIGNED
See Also:
Constant Field Values

SIGNATURE_FIRST_NOT_SIGNED

public static final int SIGNATURE_FIRST_NOT_SIGNED
See Also:
Constant Field Values

SIGNATURE_SECOND_NOT_SIGNED

public static final int SIGNATURE_SECOND_NOT_SIGNED
See Also:
Constant Field Values

SIGNATURE_NO_MATCH

public static final int SIGNATURE_NO_MATCH
See Also:
Constant Field Values

SIGNATURE_UNKNOWN_PACKAGE

public static final int SIGNATURE_UNKNOWN_PACKAGE
See Also:
Constant Field Values

COMPONENT_ENABLED_STATE_DEFAULT

public static final int COMPONENT_ENABLED_STATE_DEFAULT
See Also:
Constant Field Values

COMPONENT_ENABLED_STATE_ENABLED

public static final int COMPONENT_ENABLED_STATE_ENABLED
See Also:
Constant Field Values

COMPONENT_ENABLED_STATE_DISABLED

public static final int COMPONENT_ENABLED_STATE_DISABLED
See Also:
Constant Field Values

COMPONENT_ENABLED_STATE_DISABLED_USER

public static final int COMPONENT_ENABLED_STATE_DISABLED_USER
See Also:
Constant Field Values

DONT_KILL_APP

public static final int DONT_KILL_APP
See Also:
Constant Field Values

VERIFICATION_ALLOW

public static final int VERIFICATION_ALLOW
See Also:
Constant Field Values

VERIFICATION_REJECT

public static final int VERIFICATION_REJECT
See Also:
Constant Field Values

FEATURE_AUDIO_LOW_LATENCY

public static final String FEATURE_AUDIO_LOW_LATENCY
See Also:
Constant Field Values

FEATURE_BLUETOOTH

public static final String FEATURE_BLUETOOTH
See Also:
Constant Field Values

FEATURE_CAMERA

public static final String FEATURE_CAMERA
See Also:
Constant Field Values

FEATURE_CAMERA_AUTOFOCUS

public static final String FEATURE_CAMERA_AUTOFOCUS
See Also:
Constant Field Values

FEATURE_CAMERA_FLASH

public static final String FEATURE_CAMERA_FLASH
See Also:
Constant Field Values

FEATURE_CAMERA_FRONT

public static final String FEATURE_CAMERA_FRONT
See Also:
Constant Field Values

FEATURE_LOCATION

public static final String FEATURE_LOCATION
See Also:
Constant Field Values

FEATURE_LOCATION_GPS

public static final String FEATURE_LOCATION_GPS
See Also:
Constant Field Values

FEATURE_LOCATION_NETWORK

public static final String FEATURE_LOCATION_NETWORK
See Also:
Constant Field Values

FEATURE_MICROPHONE

public static final String FEATURE_MICROPHONE
See Also:
Constant Field Values

FEATURE_NFC

public static final String FEATURE_NFC
See Also:
Constant Field Values

FEATURE_SENSOR_ACCELEROMETER

public static final String FEATURE_SENSOR_ACCELEROMETER
See Also:
Constant Field Values

FEATURE_SENSOR_BAROMETER

public static final String FEATURE_SENSOR_BAROMETER
See Also:
Constant Field Values

FEATURE_SENSOR_COMPASS

public static final String FEATURE_SENSOR_COMPASS
See Also:
Constant Field Values

FEATURE_SENSOR_GYROSCOPE

public static final String FEATURE_SENSOR_GYROSCOPE
See Also:
Constant Field Values

FEATURE_SENSOR_LIGHT

public static final String FEATURE_SENSOR_LIGHT
See Also:
Constant Field Values

FEATURE_SENSOR_PROXIMITY

public static final String FEATURE_SENSOR_PROXIMITY
See Also:
Constant Field Values

FEATURE_TELEPHONY

public static final String FEATURE_TELEPHONY
See Also:
Constant Field Values

FEATURE_TELEPHONY_CDMA

public static final String FEATURE_TELEPHONY_CDMA
See Also:
Constant Field Values

FEATURE_TELEPHONY_GSM

public static final String FEATURE_TELEPHONY_GSM
See Also:
Constant Field Values

FEATURE_USB_HOST

public static final String FEATURE_USB_HOST
See Also:
Constant Field Values

FEATURE_USB_ACCESSORY

public static final String FEATURE_USB_ACCESSORY
See Also:
Constant Field Values

FEATURE_SIP

public static final String FEATURE_SIP
See Also:
Constant Field Values

FEATURE_SIP_VOIP

public static final String FEATURE_SIP_VOIP
See Also:
Constant Field Values

FEATURE_TOUCHSCREEN

public static final String FEATURE_TOUCHSCREEN
See Also:
Constant Field Values

FEATURE_TOUCHSCREEN_MULTITOUCH

public static final String FEATURE_TOUCHSCREEN_MULTITOUCH
See Also:
Constant Field Values

FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT

public static final String FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT
See Also:
Constant Field Values

FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND

public static final String FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND
See Also:
Constant Field Values

FEATURE_FAKETOUCH

public static final String FEATURE_FAKETOUCH
See Also:
Constant Field Values

FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT

public static final String FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT
See Also:
Constant Field Values

FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND

public static final String FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND
See Also:
Constant Field Values

FEATURE_SCREEN_PORTRAIT

public static final String FEATURE_SCREEN_PORTRAIT
See Also:
Constant Field Values

FEATURE_SCREEN_LANDSCAPE

public static final String FEATURE_SCREEN_LANDSCAPE
See Also:
Constant Field Values

FEATURE_LIVE_WALLPAPER

public static final String FEATURE_LIVE_WALLPAPER
See Also:
Constant Field Values

FEATURE_WIFI

public static final String FEATURE_WIFI
See Also:
Constant Field Values

FEATURE_WIFI_DIRECT

public static final String FEATURE_WIFI_DIRECT
See Also:
Constant Field Values

EXTRA_VERIFICATION_ID

public static final String EXTRA_VERIFICATION_ID
See Also:
Constant Field Values
Constructor Detail

PackageManager

public PackageManager()
Method Detail

getPackageInfo

public abstract PackageInfo getPackageInfo(String packageName,
                                           int flags)
                                    throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

currentToCanonicalPackageNames

public abstract String[] currentToCanonicalPackageNames(String[] names)

canonicalToCurrentPackageNames

public abstract String[] canonicalToCurrentPackageNames(String[] names)

getLaunchIntentForPackage

public abstract Intent getLaunchIntentForPackage(String packageName)

getPackageGids

public abstract int[] getPackageGids(String packageName)
                              throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getPermissionInfo

public abstract PermissionInfo getPermissionInfo(String name,
                                                 int flags)
                                          throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

queryPermissionsByGroup

public abstract List<PermissionInfo> queryPermissionsByGroup(String group,
                                                             int flags)
                                                      throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getPermissionGroupInfo

public abstract PermissionGroupInfo getPermissionGroupInfo(String name,
                                                           int flags)
                                                    throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getAllPermissionGroups

public abstract List<PermissionGroupInfo> getAllPermissionGroups(int flags)

getApplicationInfo

public abstract ApplicationInfo getApplicationInfo(String packageName,
                                                   int flags)
                                            throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getActivityInfo

public abstract ActivityInfo getActivityInfo(ComponentName component,
                                             int flags)
                                      throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getReceiverInfo

public abstract ActivityInfo getReceiverInfo(ComponentName component,
                                             int flags)
                                      throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getServiceInfo

public abstract ServiceInfo getServiceInfo(ComponentName component,
                                           int flags)
                                    throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getProviderInfo

public abstract ProviderInfo getProviderInfo(ComponentName component,
                                             int flags)
                                      throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getInstalledPackages

public abstract List<PackageInfo> getInstalledPackages(int flags)

checkPermission

public abstract int checkPermission(String permName,
                                    String pkgName)

addPermission

public abstract boolean addPermission(PermissionInfo info)

addPermissionAsync

public abstract boolean addPermissionAsync(PermissionInfo info)

removePermission

public abstract void removePermission(String name)

checkSignatures

public abstract int checkSignatures(String pkg1,
                                    String pkg2)

checkSignatures

public abstract int checkSignatures(int uid1,
                                    int uid2)

getPackagesForUid

public abstract String[] getPackagesForUid(int uid)

getNameForUid

public abstract String getNameForUid(int uid)

getInstalledApplications

public abstract List<ApplicationInfo> getInstalledApplications(int flags)

getSystemSharedLibraryNames

public abstract String[] getSystemSharedLibraryNames()

getSystemAvailableFeatures

public abstract FeatureInfo[] getSystemAvailableFeatures()

hasSystemFeature

public abstract boolean hasSystemFeature(String name)

resolveActivity

public abstract ResolveInfo resolveActivity(Intent intent,
                                            int flags)

queryIntentActivities

public abstract List<ResolveInfo> queryIntentActivities(Intent intent,
                                                        int flags)

queryIntentActivityOptions

public abstract List<ResolveInfo> queryIntentActivityOptions(ComponentName caller,
                                                             Intent[] specifics,
                                                             Intent intent,
                                                             int flags)

queryBroadcastReceivers

public abstract List<ResolveInfo> queryBroadcastReceivers(Intent intent,
                                                          int flags)

resolveService

public abstract ResolveInfo resolveService(Intent intent,
                                           int flags)

queryIntentServices

public abstract List<ResolveInfo> queryIntentServices(Intent intent,
                                                      int flags)

resolveContentProvider

public abstract ProviderInfo resolveContentProvider(String name,
                                                    int flags)

queryContentProviders

public abstract List<ProviderInfo> queryContentProviders(String processName,
                                                         int uid,
                                                         int flags)

getInstrumentationInfo

public abstract InstrumentationInfo getInstrumentationInfo(ComponentName className,
                                                           int flags)
                                                    throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

queryInstrumentation

public abstract List<InstrumentationInfo> queryInstrumentation(String targetPackage,
                                                               int flags)

getDrawable

public abstract Drawable getDrawable(String packageName,
                                     int resid,
                                     ApplicationInfo appInfo)

getActivityIcon

public abstract Drawable getActivityIcon(ComponentName activityName)
                                  throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getActivityIcon

public abstract Drawable getActivityIcon(Intent intent)
                                  throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getDefaultActivityIcon

public abstract Drawable getDefaultActivityIcon()

getApplicationIcon

public abstract Drawable getApplicationIcon(ApplicationInfo info)

getApplicationIcon

public abstract Drawable getApplicationIcon(String packageName)
                                     throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getActivityLogo

public abstract Drawable getActivityLogo(ComponentName activityName)
                                  throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getActivityLogo

public abstract Drawable getActivityLogo(Intent intent)
                                  throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getApplicationLogo

public abstract Drawable getApplicationLogo(ApplicationInfo info)

getApplicationLogo

public abstract Drawable getApplicationLogo(String packageName)
                                     throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getText

public abstract CharSequence getText(String packageName,
                                     int resid,
                                     ApplicationInfo appInfo)

getXml

public abstract XmlResourceParser getXml(String packageName,
                                         int resid,
                                         ApplicationInfo appInfo)

getApplicationLabel

public abstract CharSequence getApplicationLabel(ApplicationInfo info)

getResourcesForActivity

public abstract Resources getResourcesForActivity(ComponentName activityName)
                                           throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getResourcesForApplication

public abstract Resources getResourcesForApplication(ApplicationInfo app)
                                              throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getResourcesForApplication

public abstract Resources getResourcesForApplication(String appPackageName)
                                              throws PackageManager.NameNotFoundException
Throws:
PackageManager.NameNotFoundException

getPackageArchiveInfo

public PackageInfo getPackageArchiveInfo(String archiveFilePath,
                                         int flags)

verifyPendingInstall

public abstract void verifyPendingInstall(int id,
                                          int verificationCode)

setInstallerPackageName

public abstract void setInstallerPackageName(String targetPackage,
                                             String installerPackageName)

getInstallerPackageName

public abstract String getInstallerPackageName(String packageName)

addPackageToPreferred

public abstract void addPackageToPreferred(String packageName)

removePackageFromPreferred

public abstract void removePackageFromPreferred(String packageName)

getPreferredPackages

public abstract List<PackageInfo> getPreferredPackages(int flags)

addPreferredActivity

public abstract void addPreferredActivity(IntentFilter filter,
                                          int match,
                                          ComponentName[] set,
                                          ComponentName activity)

clearPackagePreferredActivities

public abstract void clearPackagePreferredActivities(String packageName)

getPreferredActivities

public abstract int getPreferredActivities(List<IntentFilter> outFilters,
                                           List<ComponentName> outActivities,
                                           String packageName)

setComponentEnabledSetting

public abstract void setComponentEnabledSetting(ComponentName componentName,
                                                int newState,
                                                int flags)

getComponentEnabledSetting

public abstract int getComponentEnabledSetting(ComponentName componentName)

setApplicationEnabledSetting

public abstract void setApplicationEnabledSetting(String packageName,
                                                  int newState,
                                                  int flags)

getApplicationEnabledSetting

public abstract int getApplicationEnabledSetting(String packageName)

isSafeMode

public abstract boolean isSafeMode()


Copyright © 2008-2012. All Rights Reserved.