Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9c8e211 authored by Sanjana Sunil's avatar Sanjana Sunil
Browse files

Update dependency installer API with multi-package details

The dependency installer will not be invoked for a multi-package
installation session. Update the API accordingly.

Bug: 372861776
Flag: android.content.pm.sdk_dependency_installer
Test: N/A
Change-Id: I8f3c09facfa75e2229748d0699059d4b0bdf371e
parent 27224f9c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3617,7 +3617,9 @@ public class PackageInstaller {
         * automatically fetched and installed when installing an app that wants to use these
         * dependencies.
         *
         * <p> This feature is enabled by default.
         * <p> This feature is enabled by default. Note that in the case of a multi-package
         * installation session, no dependencies will be automatically installed even if this field
         * is set to true.
         *
         * @param enableAutoInstallDependencies {@code true} to enable auto-installation of missing
         *                                      SDK or static shared library dependencies,
@@ -4574,6 +4576,9 @@ public class PackageInstaller {
         * Check whether missing SDK or static shared library dependencies should be automatically
         * fetched and installed when installing an app that wants to use these dependencies.
         *
         * <p> Note that in the case of a multi-package installation session, no dependencies will
         * be automatically installed even if this method returns true.
         *
         * @return true if the dependencies will be auto-installed, false otherwise.
         */
        @FlaggedApi(Flags.FLAG_SDK_DEPENDENCY_INSTALLER)