|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPackageManager
See PackageManager for documentation on most of the APIs
here.
| Nested Class Summary | |
|---|---|
static class |
IPackageManager.Stub
Local-side IPC implementation stub class. |
| Methods inherited from interface android.os.IInterface |
|---|
asBinder |
| Method Detail |
|---|
PackageInfo getPackageInfo(String packageName,
int flags)
throws RemoteException
RemoteException
int getPackageUid(String packageName)
throws RemoteException
RemoteException
int[] getPackageGids(String packageName)
throws RemoteException
RemoteException
PermissionInfo getPermissionInfo(String name,
int flags)
throws RemoteException
RemoteException
List<PermissionInfo> queryPermissionsByGroup(String group,
int flags)
throws RemoteException
RemoteException
PermissionGroupInfo getPermissionGroupInfo(String name,
int flags)
throws RemoteException
RemoteException
List<PermissionGroupInfo> getAllPermissionGroups(int flags)
throws RemoteException
RemoteException
ApplicationInfo getApplicationInfo(String packageName,
int flags)
throws RemoteException
RemoteException
ActivityInfo getActivityInfo(ComponentName className,
int flags)
throws RemoteException
RemoteException
ActivityInfo getReceiverInfo(ComponentName className,
int flags)
throws RemoteException
RemoteException
ServiceInfo getServiceInfo(ComponentName className,
int flags)
throws RemoteException
RemoteException
int checkPermission(String permName,
String pkgName)
throws RemoteException
RemoteException
int checkUidPermission(String permName,
int uid)
throws RemoteException
RemoteException
boolean addPermission(PermissionInfo info)
throws RemoteException
RemoteException
void removePermission(String name)
throws RemoteException
RemoteException
int checkSignatures(String pkg1,
String pkg2)
throws RemoteException
RemoteException
String[] getPackagesForUid(int uid)
throws RemoteException
RemoteException
String getNameForUid(int uid)
throws RemoteException
RemoteException
ResolveInfo resolveIntent(Intent intent,
String resolvedType,
int flags)
throws RemoteException
RemoteException
List<ResolveInfo> queryIntentActivities(Intent intent,
String resolvedType,
int flags)
throws RemoteException
RemoteException
List<ResolveInfo> queryIntentActivityOptions(ComponentName caller,
Intent[] specifics,
String[] specificTypes,
Intent intent,
String resolvedType,
int flags)
throws RemoteException
RemoteException
List<ResolveInfo> queryIntentReceivers(Intent intent,
String resolvedType,
int flags)
throws RemoteException
RemoteException
ResolveInfo resolveService(Intent intent,
String resolvedType,
int flags)
throws RemoteException
RemoteException
List<ResolveInfo> queryIntentServices(Intent intent,
String resolvedType,
int flags)
throws RemoteException
RemoteException
List<PackageInfo> getInstalledPackages(int flags)
throws RemoteException
RemoteException
List<ApplicationInfo> getInstalledApplications(int flags)
throws RemoteException
RemoteException
List<ApplicationInfo> getPersistentApplications(int flags)
throws RemoteException
RemoteException
ProviderInfo resolveContentProvider(String name,
int flags)
throws RemoteException
RemoteException
void querySyncProviders(List<String> outNames,
List<ProviderInfo> outInfo)
throws RemoteException
outNames - Filled in with a list of the root names of the content
providers that can sync.outInfo - Filled in with a list of the ProviderInfo for each
name in 'outNames'.
RemoteException
List<ProviderInfo> queryContentProviders(String processName,
int uid,
int flags)
throws RemoteException
RemoteException
InstrumentationInfo getInstrumentationInfo(ComponentName className,
int flags)
throws RemoteException
RemoteException
List<InstrumentationInfo> queryInstrumentation(String targetPackage,
int flags)
throws RemoteException
RemoteException
void installPackage(Uri packageURI,
IPackageInstallObserver observer,
int flags)
throws RemoteException
packageURI - The location of the package file to install.observer - a callback to use to notify when the package installation in finished.flags - - possible values: #FORWARD_LOCK_PACKAGE,
#REPLACE_EXISITING_PACKAGE
RemoteException
void deletePackage(String packageName,
IPackageDeleteObserver observer,
int flags)
throws RemoteException
packageName - The fully qualified name of the package to delete.observer - a callback to use to notify when the package deletion in finished.flags - - possible values: #DONT_DELETE_DATA
RemoteException
void addPackageToPreferred(String packageName)
throws RemoteException
RemoteException
void removePackageFromPreferred(String packageName)
throws RemoteException
RemoteException
List<PackageInfo> getPreferredPackages(int flags)
throws RemoteException
RemoteException
void addPreferredActivity(IntentFilter filter,
int match,
ComponentName[] set,
ComponentName activity)
throws RemoteException
RemoteException
void clearPackagePreferredActivities(String packageName)
throws RemoteException
RemoteException
int getPreferredActivities(List<IntentFilter> outFilters,
List<ComponentName> outActivities,
String packageName)
throws RemoteException
RemoteException
void setComponentEnabledSetting(ComponentName componentName,
int newState,
int flags)
throws RemoteException
PackageManager.setComponentEnabledSetting(android.content.ComponentName, int, int).
RemoteException
int getComponentEnabledSetting(ComponentName componentName)
throws RemoteException
PackageManager.getComponentEnabledSetting(android.content.ComponentName).
RemoteException
void setApplicationEnabledSetting(String packageName,
int newState,
int flags)
throws RemoteException
PackageManager.setApplicationEnabledSetting(java.lang.String, int, int).
RemoteException
int getApplicationEnabledSetting(String packageName)
throws RemoteException
PackageManager.getApplicationEnabledSetting(java.lang.String).
RemoteException
void freeApplicationCache(long freeStorageSize,
IPackageDataObserver observer)
throws RemoteException
freeStorageSize - The number of bytes of storage to be
freed by the system. Say if freeStorageSize is XX,
and the current free storage is YY,
if XX is less than YY, just return. if not free XX-YY number of
bytes if possible.observer - callback used to notify when the operation is completed
RemoteException
void deleteApplicationCacheFiles(String packageName,
IPackageDataObserver observer)
throws RemoteException
packageName - The package name of the application whose cache
files need to be deletedobserver - a callback used to notify when the deletion is finished.
RemoteException
void clearApplicationUserData(String packageName,
IPackageDataObserver observer)
throws RemoteException
packageName - The package name of the application whose cache
files need to be deletedobserver - a callback used to notify when the operation is completed.
RemoteException
void getPackageSizeInfo(String packageName,
IPackageStatsObserver observer)
throws RemoteException
packageName - The package name of the applicationobserver - a callback to use to notify when the asynchronous
retrieval of information is complete.
RemoteException
void enterSafeMode()
throws RemoteException
RemoteException
void systemReady()
throws RemoteException
RemoteException
boolean hasSystemUidErrors()
throws RemoteException
RemoteException
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||