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

Commit ff6cc094 authored by lpeter's avatar lpeter
Browse files

Update java docs for setInstallerPackageName

Add more java doc for using this API:
PackageInstaller.SessionParams#setInstallerPackageName

Bug: 295632826
Test: build pass and boot success
Change-Id: I80941a8f2d9aba8203d564cf89a39465db2d3591
parent 6c65ee52
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2929,7 +2929,13 @@ public class PackageInstaller {
         *
         * By default this is the app that created the {@link PackageInstaller} object.
         *
         * @param installerPackageName name of the installer package
         * Note: Only applications with {@link android.Manifest.permission#INSTALL_PACKAGES}
         * permission are allowed to set an installer that is not the caller's own installer
         * package name, otherwise it will cause a {@link SecurityException} when creating the
         * install session.
         *
         * @param installerPackageName The name of the installer package, its length must be less
         *                            than {@code 255}, otherwise it will be invalid.
         */
        public void setInstallerPackageName(@Nullable String installerPackageName) {
            this.installerPackageName = installerPackageName;