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

Commit c5de030d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update java docs for setInstallerPackageName" into main

parents 13b81524 ff6cc094
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;