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

Commit 3deb88e3 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

Don't install for system apps which are removed (by root or otherwise)

parent 1928f46e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -185,6 +185,11 @@ class UpdatesManagerImpl @Inject constructor(
                return@forEach
            }

            if (!pkgManagerModule.isInstalled(it.packageName)) {
                // Don't install for system apps which are removed (by root or otherwise)
                return@forEach
            }

            val releaseTypes = it.releaseTypes
            if (releaseType in releaseTypes) {
                systemAppsUpdatesRepository.getSystemAppUpdateInfo(