Lines Matching refs:Package
17 package android.content.pm;
58 * This exception is thrown when a given package, application, or component
72 * activities in the package in {@link PackageInfo#activities}.
78 * intent receivers in the package in
85 * services in the package in {@link PackageInfo#services}.
91 * content providers in the package in
98 * instrumentation in the package in
111 * signatures included in the package.
162 * permissions in the package in
220 * if the permission has been granted to the given package.
226 * if the permission has not been granted to the given package.
244 * if the first package is not signed but the second is.
250 * if the second package is not signed but the first is.
315 * indicate that this package should be installed as forward locked, i.e. only the app itself
323 * installed package, if one exists.
338 * package has to be installed on the sdcard.
344 * Flag parameter for {@link #installPackage} to indicate that this package
393 * {@link #installPackage(android.net.Uri, IPackageInstallObserver, int)} if the package is
402 * {@link #installPackage(android.net.Uri, IPackageInstallObserver, int)} if the package archive
420 * {@link #installPackage(android.net.Uri, IPackageInstallObserver, int)} if the package manager
430 * package is already installed with the same name.
448 * a previously installed package of the same name has a different signature
449 * than the new package (and the old package's data was not removed).
458 * the new package is requested a shared user which is already installed on the
468 * the new package uses a shared library that is not available.
477 * the new package uses a shared library that is not available.
486 * the new package failed while optimizing and validating its dex files,
496 * the new package failed because the current SDK version is older than
497 * that required by the package.
506 * the new package failed because it contains a content provider with the
516 * the new package failed because the current SDK version is newer than
517 * that required by the package.
526 * the new package failed because it has specified that it is a test-only
527 * package and the caller has not supplied the {@link #INSTALL_ALLOW_TEST}
537 * the package being installed contains native code, but none that is
547 * the new package uses a feature that is not available.
566 * the new package couldn't be installed in the specified install
576 * the new package couldn't be installed in the specified install
586 * the new package couldn't be installed because the verification timed out.
595 * the new package couldn't be installed because the verification did not succeed.
604 * the package changed from what the calling program expected.
613 * the new package is assigned a different UID than it previously held.
621 * the new package has an older version code than the currently installed package.
685 * if the parser encountered a bad or missing package name in the manifest.
722 * if the system failed to install the package because of system issues.
731 * if the system failed to install the package because the user is restricted from installing
740 * if the system failed to install the package because it is attempting to define a
741 * permission that is already defined by some existing package.
743 * <p>The package name of the app which has already defined the permission is passed to
754 * if the system failed to install the package because its packaged native code did not
762 * Internal return code for NativeLibraryHelper methods to indicate that the package
775 * package's data directory.
783 * package deleted for all users.
801 * Return code for when package deletion succeeds. This is passed to the
803 * succeeded in deleting the package.
812 * failed to delete the package for an unspecified reason.
821 * failed to delete the package because it is the active DevicePolicy
831 * failed to delete the package since the user is restricted.
840 * failed to delete the package because a profile
841 * or device owner has marked the package as uninstallable.
853 * package has been successfully moved by the system.
861 * when the package hasn't been successfully moved by the system
870 * if the specified package doesn't exist.
878 * if the specified package cannot be moved since its a system package.
886 * if the specified package cannot be moved since its forward locked.
894 * if the specified package cannot be moved to the specified location.
902 * if the specified package cannot be moved to the specified location.
910 * specified package already has an operation pending in the
919 * the package should be moved to internal storage if its
927 * the package should be moved to external media.
945 * package verifier allows the installation to proceed.
952 * package verifier does not vote to allow the installation to proceed.
1597 * Extra field name for the URI to a verification file. Passed to a package
1605 * Extra field name for the ID of a package pending verification. Passed to
1606 * a package verifier and is used to call back to
1612 * Extra field name for the package identifier which is trying to install
1613 * the package.
1621 * Extra field name for the requested install flags for a package pending
1622 * verification. Passed to a package verifier.
1631 * the package.
1639 * Extra field name for the package name of a package pending verification.
1648 * Passed to package verifiers after a package is verified.
1654 * Extra field name for the version code of a package pending verification.
1680 * {@link #INSTALL_FAILED_DUPLICATE_PERMISSION}. This extra names the package which provides
1690 * being redundantly defined by the package being installed.
1697 * Retrieve overall information about an application package that is
1700 * Throws {@link NameNotFoundException} if a package with the given name can
1704 * desired package.
1713 * package. If flag GET_UNINSTALLED_PACKAGES is set and if the
1714 * package is not found in the list of installed applications, the
1715 * package information is retrieved from the list of uninstalled
1734 * Map from the current package names in use on the device to whatever
1735 * the current canonical name of that package is.
1738 * the canonical name for each package.
1746 * the current name for each package.
1751 * Returns a "good" intent to launch a front-door activity in a package.
1758 * @param packageName The name of the package to inspect.
1761 * main activity in the package. Returns <code>null</code> if the package
1769 * package, for use for example to implement an "open" button when browsing
1774 * Throws {@link NameNotFoundException} if a package with the given name
1777 * @param packageName The name of the package to inspect.
1779 * the main Leanback activity in the package, or null if the package
1786 * to a package.
1788 * Throws {@link NameNotFoundException} if a package with the given name
1792 * desired package.
1800 * @hide Return the uid associated with the given package name for the
1803 * <p>Throws {@link NameNotFoundException} if a package with the given
1807 * desired package.
1808 * @param userHandle The user handle identifier to look up the package under.
1810 * @return Returns an integer uid who owns the given package name.
1881 * package/application.
1884 * package name cannot be found on the system.
1893 * information about the package.
1894 * If flag GET_UNINSTALLED_PACKAGES is set and if the package is not
2015 * @return A List of PackageInfo objects, one for each package that is
2085 * @return A List of PackageInfo objects, one for each package that is
2108 * Check whether a particular package has been granted a particular
2112 * @param pkgName The name of the package you are checking against.
2114 * @return If the package has the permission, PERMISSION_GRANTED is
2125 * package must have defined a permission tree through the
2127 * <permission-tree>} tag in its manifest. A package can only add
2128 * permissions to trees that were defined by either its own package or
2159 * persists the package manager state after returning from the call,
2212 * @param packageName The name of the package that the permission will be
2222 * @param packageName The name of the package that the permission will be
2235 * @param pkg1 First package name whose signature will be compared.
2236 * @param pkg2 Second package name whose signature will be compared.
2254 * available. It is functionally identical to determining the package
2274 * user id. In most cases, this will be a single package name, the package
2682 * a particular package.
2685 * instrumentation targeting this package name is
2691 * there is no instrumentation available for the given package.
2697 * Retrieve an image from a package. This is a low-level API used by
2698 * the various package manager info structures (such as
2702 * @param packageName The name of the package that this icon is coming from.
2811 * application's package, retrieves the information about it and calls
2815 * @param packageName Name of the package whose application icon is to be
2840 * application's package, retrieves the information about it and calls
2844 * @param packageName Name of the package whose application banner is to be
2907 * application's package, retrieves the information about it and calls
2911 * @param packageName Name of the package whose application logo is to be
2999 * Retrieve text from a package. This is a low-level API used by
3000 * the various package manager info structures (such as
3004 * @param packageName The name of the package that this text is coming from.
3019 * Retrieve an XML file from a package. This is a low-level API used to
3022 * @param packageName The name of the package that this xml is coming from.
3066 * if the package is no longer installed.
3079 * package name of an application, retrieves the information about it and
3083 * @param appPackageName Package name of the application whose resources
3100 * Retrieve overall information about an application package defined
3101 * in a package archive file
3115 * @return Returns the information about the package. Returns
3116 * null if the package could not be successfully parsed.
3133 PackageParser.Package pkg = parser.parseMonolithicPackage(apkFile, 0);
3146 * @hide Install a package. Since this may take a little while, the result
3150 * the package named in the package file's manifest is already
3152 * @param packageURI The location of the package file to install. This can
3154 * @param observer An observer callback to get notified when the package
3162 * @param installerPackageName Optional package name of the application that
3164 * the package came from.
3180 * @param packageURI The location of the package file to install. This can
3182 * @param observer An observer callback to get notified when the package
3190 * @param installerPackageName Optional package name of the application that
3192 * the package came from.
3196 * @param manifestDigest an object that holds the digest of the package
3198 * @param encryptionParams if the package to be installed is encrypted,
3219 * @param packageURI The location of the package file to install. This can
3221 * @param observer An observer callback to get notified when the package
3229 * @param installerPackageName Optional package name of the application that
3231 * the package came from.
3234 * @param encryptionParams if the package to be installed is encrypted,
3250 // Package-install variants that take the new, expanded form of observer interface.
3257 * Install a package. Since this may take a little while, the result will
3260 * package named in the package file's manifest is already installed, or if there's no space
3263 * @param packageURI The location of the package file to install. This can be a 'file:' or a
3265 * @param observer An observer callback to get notified when the package installation is
3270 * @param installerPackageName Optional package name of the application that is performing the
3271 * installation. This identifies which market the package came from.
3282 * @param packageURI The location of the package file to install. This can
3284 * @param observer An observer callback to get notified when the package installation is
3289 * @param installerPackageName Optional package name of the application that
3291 * the package came from.
3295 * @param manifestDigest an object that holds the digest of the package
3297 * @param encryptionParams if the package to be installed is encrypted,
3312 * @param packageURI The location of the package file to install. This can
3314 * @param observer An observer callback to get notified when the package installation is
3319 * @param installerPackageName Optional package name of the application that
3321 * the package came from.
3324 * @param encryptionParams if the package to be installed is encrypted,
3335 * If there is already an application with the given package name installed
3344 * Allows a package listening to the
3345 * {@link Intent#ACTION_PACKAGE_NEEDS_VERIFICATION package verification
3346 * broadcast} to respond to the package manager. The response must include
3351 * @param id pending package identifier as passed via the
3361 * Allows a package listening to the
3362 * {@link Intent#ACTION_PACKAGE_NEEDS_VERIFICATION package verification
3369 * This method may only be called once per package id. Additional calls
3372 * @param id pending package identifier as passed via the
3396 * Change the installer associated with a given package. There are limitations
3397 * on how the installer package can be changed; in particular:
3402 * has an installer package, and that installer package is not signed with
3406 * @param targetPackage The installed package whose installer will be changed.
3407 * @param installerPackageName The package name of the new installer. May be
3414 * Attempts to delete a package. Since this may take a little while, the result will
3417 * named package cannot be found, or if the named package is a "system package".
3420 * @param packageName The name of the package to delete
3421 * @param observer An observer callback to get notified when the package deletion is
3434 * Retrieve the package name of the application that installed a package. This identifies
3435 * which market the package came from.
3437 * @param packageName The name of the package to query
3445 * named package cannot be found, or if the named package is a "system package".
3447 * @param packageName The name of the package
3462 * named package cannot be found, or if the named package is a "system package".
3464 * @param packageName The name of the package to delete
3527 * Retrieve the size information for a package.
3532 * @param packageName The name of the package whose size information is to be retrieved
3538 * code, data and cache sizes of the package) and a boolean value representing
3575 * first package on the list is the most preferred, the last is the
3675 * system whose activities are implemented in the given package name.
3676 * An application can only clear its own package(s).
3678 * @param packageName The name of the package whose preferred activity
3692 * @param packageName An option package in which you would like to limit
3694 * those activities in the given package are returned.
3711 * Set the enabled setting for a package component (activity, receiver, service, provider).
3731 * Return the enabled setting for a package component (activity,
3754 * @param packageName The package name of the application to enable
3775 * @param packageName The package name of the application to retrieve.
3782 * @throws IllegalArgumentException if the named package does not exist.
3787 * Puts the package in a hidden state, which is almost like an uninstalled state,
3788 * making the package unavailable, but it doesn't remove the data or the actual
3789 * package file. Application can be unhidden by either resetting the hidden state
3797 * Returns the hidden state of a package.
3825 * Return whether the package denoted by packageName has been signed by all
3827 * the package has been signed by additional keys (a superset) as well.
3834 * Return whether the package denoted by packageName has been signed by all
3842 * Attempts to move package resources from internal to external media or vice versa.
3846 * named package cannot be found, or if the named package is a "system package".
3848 * @param packageName The name of the package to delete
3849 * @param observer An observer callback to get notified when the package move is
3862 * device. This should not be used by anything other than a package verifier.
3876 * Returns the data directory for a particular user and package, given the uid of the package.
3877 * @param uid uid of the package, including the userId and appId
3878 * @param packageName name of the package
3879 * @return the user-specific data directory for the package