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

Commit 7dfe29f0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Propagate ephemeral flag from adb install to PackageParser"

parents c94096f7 58bfae41
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -703,8 +703,11 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
        for (File addedFile : addedFiles) {
        for (File addedFile : addedFiles) {
            final ApkLite apk;
            final ApkLite apk;
            try {
            try {
                apk = PackageParser.parseApkLite(
                int flags = PackageParser.PARSE_COLLECT_CERTIFICATES;
                        addedFile, PackageParser.PARSE_COLLECT_CERTIFICATES);
                if ((params.installFlags & PackageManager.INSTALL_EPHEMERAL) != 0) {
                    flags |= PackageParser.PARSE_IS_EPHEMERAL;
                }
                apk = PackageParser.parseApkLite(addedFile, flags);
            } catch (PackageParserException e) {
            } catch (PackageParserException e) {
                throw PackageManagerException.from(e);
                throw PackageManagerException.from(e);
            }
            }