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

Commit e40fcf79 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

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

parent f1632123
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(