Compares the signatures of two packages to determine if the same signature appears in both of them. If they do contain the same signature, then they are allowed special privileges when working with each other. Returns an integer indicating whether all signatures on the two packages match. The value is >= 0 (SIGNATURE_MATCH) if all signatures match or < 0 if there is not a match (SIGNATURE_NO_MATCH or SIGNATURE_UNKNOWN_PACKAGE).
Retrieves the icon associated with the specified activity. PackageName: The full name (e.g. com.google.apps.contacts) of the application. ActivityName: The full name of the activity inside the package.
Retrieves all of the information about a particular application.
GetApplicationLabel (PackageAsString) AsString
Retrieves the application label for the specified package.
GetComponentEnabled (CompNameAsString) AsInt
Returns the enabled setting for the specified package component (activity, receiver, service, provider). This returns the last value set by SetComponentEnabled; in most cases this value will be COMPONENT_STATE_DEFAULT since the value originally specified in the manifest has not been modified.
Returns the generic icon for an activity that is used when no specific icon is defined.
GetInstalledPackages (FlagsAsInt) AsList
Returns a list containing all packages that are installed on the device. Each item of the list is a PackageInfo object. Flags: Option flags. Use any combination of the GET_ constants, e.g. Bit.OR(PU.GET_ACTIVITIES, PU.GET_PERMISSIONS).
Retrieves overall information about an application package that is installed on the system. Flags: Option flags. Use any combination of the GET_ constants, e.g. Bit.OR(PU.GET_ACTIVITIES, PU.GET_PERMISSIONS).
Retrieves all preferred activities that are currently registered with the system. Each item of the list is a PkgPreferredActivity object. PackageName: An optional package in which you would like to limit the list. If null or empty, all activities will be returned; otherwise only those activities in the given package are returned.
Gets a list of features that are available on the system.
Sets the enabled setting for a package component (activity, receiver, service, provider). This setting will override any enabled state which may have been set by the component in its manifest. CompName: The component to enable. NewState: The new enabled state for the component (one of the COMPONENT_STATE_ constants). COMPONENT_STATE_DEFAULT removes the setting, thereby restoring the component state to whatever was set in its manifest (or enabled, by default). KillApp: Whether the application containing the component has to be killed. Be careful when you set this to False since changing component states can make the containing application's behavior unpredictable.