Package

Class of snx.android.app · Package.java

public final class Package

The app's package, read from its manifest as Android's PackageParser reads it: the application, its activities, services, receivers and providers with their meta-data and intent filters' actions.

Fields

public final PackageInfo info source
public final ApplicationInfo application source
public final ArrayList<ActivityInfo> activities source
public final ArrayList<ActivityInfo> receivers source
public final ArrayList<ServiceInfo> services source
public final ArrayList<ProviderInfo> providers source
public final HashMap<String, ArrayList<String>> actions source

The actions of each component's intent filters, and its categories, by its class name.

public final HashMap<String, ArrayList<String>> categories source
public final ArrayList<String> permissions source
public final HashMap<String, Integer> enabledStates source

Methods

public static synchronized Package get() source
public String name() source
public void read(Resources res) throws Exception source

The manifest read, with resources to resolve its references.

public ActivityInfo activity(String className) source
public ServiceInfo service(String className) source
public ActivityInfo receiver(String className) source
public ProviderInfo provider(String authority) source
public ProviderInfo providerByClass(String className) source
public String launcher() source
public synchronized int enabledState(ComponentName c) source
public synchronized void setEnabledState(ComponentName c, int state) 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.