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

Commit 9177b5ce authored by Hasib Prince's avatar Hasib Prince
Browse files

Merge branch '787-allapps_for_update' into 'release-1.5-rc3'

reverted: filtering gplay apps for cleanapk api call

See merge request !227
parents f22b180d dbce9f53
Loading
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -242,15 +242,6 @@ class PkgManagerModule @Inject constructor(
        return userPackages
    }

    fun isGplay(packageName: String): Boolean {
        val installerPackageName = packageManager.getInstallerPackageName(packageName)
        return installerPackageName?.contains(FAKE_STORE_PACKAGE_NAME) == true
    }

    fun getAllSystemApps(): List<ApplicationInfo> {
        return packageManager.getInstalledApplications(PackageManager.MATCH_SYSTEM_ONLY)
    }

    fun getAppNameFromPackageName(packageName: String): String {
        val packageManager = context.packageManager
        return packageManager.getApplicationLabel(
+2 −3
Original line number Diff line number Diff line
@@ -47,10 +47,9 @@ class UpdatesManagerImpl @Inject constructor(

        if (pkgList.isNotEmpty()) {
            // Get updates from CleanAPK
            val openSourcePackages = userApplications.filter { !pkgManagerModule.isGplay(it.packageName) }.map { it.packageName }
            pkgList.removeAll(openSourcePackages)

            val cleanAPKResult = fusedAPIRepository.getApplicationDetails(
                openSourcePackages,
                pkgList,
                authData,
                Origin.CLEANAPK
            )