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

Commit eac4074a authored by William Loh's avatar William Loh
Browse files

Fix javadoc for app metadata APIs

Update javadoc for setAppMetadata to more correctly state that old data
from previous install will not be retained and add documentation for
getAppMetadata param.

Bug: 265896861
Test: atest android.packageinstaller.install.cts.InstallAppMetadataTest
Change-Id: I66215f0d6d2445b98d71bed1f3341d7ad0808777
parent f2e07e6b
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1955,8 +1955,8 @@ public class PackageInstaller {


        /**
        /**
         * Optionally set the app metadata. The size of this data cannot exceed the maximum allowed.
         * Optionally set the app metadata. The size of this data cannot exceed the maximum allowed.
         * If no data is provided, then any existing app metadata from the previous install will be
         * Any existing data from the previous install will not be retained even if no data is set
         * removed for the package.
         * for the current install session.
         *
         *
         * @param data a PersistableBundle containing the app metadata. If this is set to null then
         * @param data a PersistableBundle containing the app metadata. If this is set to null then
         *     any existing app metadata will be removed.
         *     any existing app metadata will be removed.
+1 −1
Original line number Original line Diff line number Diff line
@@ -5827,7 +5827,7 @@ public abstract class PackageManager {
    /**
    /**
     * Returns the app metadata for a package.
     * Returns the app metadata for a package.
     *
     *
     * @param packageName
     * @param packageName The package name for which to get the app metadata.
     * @return A PersistableBundle containing the app metadata that was provided by the installer.
     * @return A PersistableBundle containing the app metadata that was provided by the installer.
     *         In the case where a package does not have any metadata, an empty PersistableBundle is
     *         In the case where a package does not have any metadata, an empty PersistableBundle is
     *         returned.
     *         returned.