PackageManagerImpl

Class of snx.android.app · PackageManagerImpl.java

public final class PackageManagerImpl extends PackageManager

PackageManagerImpl ← PackageManager

The package manager of a device where this app is the only package: its manifest answers each query.

Methods

public static PackageManagerImpl get() source
public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException source
public ApplicationInfo getApplicationInfo(String packageName, int flags) throws NameNotFoundException source
public ActivityInfo getActivityInfo(ComponentName c, int flags) throws NameNotFoundException source
public ActivityInfo getReceiverInfo(ComponentName c, int flags) throws NameNotFoundException source
public ServiceInfo getServiceInfo(ComponentName c, int flags) throws NameNotFoundException source
public ProviderInfo getProviderInfo(ComponentName c, int flags) throws NameNotFoundException source
public ProviderInfo resolveContentProvider(String authority, int flags) source
public List<PackageInfo> getInstalledPackages(int flags) source
public List<ApplicationInfo> getInstalledApplications(int flags) source
public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) source
public List<ResolveInfo> queryIntentServices(Intent intent, int flags) source
public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) source
public List<ResolveInfo> queryIntentContentProviders(Intent intent, int flags) source
public ResolveInfo resolveActivity(Intent intent, int flags) source
public ResolveInfo resolveService(Intent intent, int flags) source
public Intent getLaunchIntentForPackage(String packageName) source
public int checkPermission(String permName, String packageName) source
public boolean hasSystemFeature(String featureName) source

The features of a phone with a touchscreen: no camera, telephony or sensors.

public synchronized void setComponentEnabledSetting(ComponentName componentName, int newState, int flags) source
public synchronized int getComponentEnabledSetting(ComponentName componentName) source
public void setApplicationEnabledSetting(String packageName, int newState, int flags) empty body source
public int getApplicationEnabledSetting(String packageName) source
public String getInstallerPackageName(String packageName) source
public CharSequence getApplicationLabel(ApplicationInfo info) source
public Drawable getApplicationIcon(ApplicationInfo info) source
public Drawable getApplicationIcon(String packageName) throws NameNotFoundException source
public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) source
public Resources getResourcesForApplication(ApplicationInfo app) throws NameNotFoundException source
public Resources getResourcesForApplication(String packageName) throws NameNotFoundException source
public String[] getPackagesForUid(int uid) source
public String getNameForUid(int uid) source
public int getPackageUid(String packageName, int flags) throws NameNotFoundException source
public boolean isSafeMode() source
public PermissionInfo getPermissionInfo(String permName, int flags) throws NameNotFoundException source
public int checkSignatures(String packageName1, String packageName2) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.