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

Commit 762755bc authored by Jay Thomas Sullivan's avatar Jay Thomas Sullivan
Browse files

[ECM] Don't set MODE_ERRORED for LOCAL and DOWNLOAD

If ECM is enabled, don't set MODE_ERRORED anymore. It will be evaluated
automatically by EnhancedConfirmationManager/Service when we set the
package source to LOCAL or DOWNLOAD.

Bug: 329442983
Test: atest EnhancedConfirmationTest
Change-Id: I8d7333a9157d068c7f563df12964dac56941b4ae
parent d1a5f44b
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,