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

Commit e61f3fb0 authored by Jay Sullivan's avatar Jay Sullivan Committed by Android (Google) Code Review
Browse files

Merge "[ECM] Don't set MODE_ERRORED for LOCAL and DOWNLOAD" into main

parents ddda022c 762755bc
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -2892,6 +2892,8 @@ final class InstallPackageHelper {
                mPm.notifyPackageChanged(packageName, request.getAppId());
            }

            if (!android.permission.flags.Flags.enhancedConfirmationModeApisEnabled()
                    || !android.security.Flags.extendEcmToAllSettings()) {
                // Apply restricted settings on potentially dangerous packages. Needs to happen
                // after appOpsManager is notified of the new package
                if (request.getPackageSource() == PackageInstaller.PACKAGE_SOURCE_LOCAL_FILE
@@ -2904,6 +2906,7 @@ final class InstallPackageHelper {
                        }
                    });
                }
            }

            // Log current value of "unknown sources" setting
            EventLog.writeEvent(EventLogTags.UNKNOWN_SOURCES_ENABLED,