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

Commit 51422244 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge branch '5785-fix_filtering_for_open_source' into 'main'

Issue 5785: Whitelist cleanapk apps from filtering

See merge request !167
parents b55af19e 1e184ebf
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -645,6 +645,13 @@ class FusedAPIImpl @Inject constructor(
        if (fusedApp.package_name.isBlank()) {
            return FilterLevel.UNKNOWN
        }
        if (fusedApp.origin == Origin.CLEANAPK) {
            /*
             * Whitelist all open source apps.
             * Issue: https://gitlab.e.foundation/e/backlog/-/issues/5785
             */
            return FilterLevel.NONE
        }
        if (authData == null) {
            return if (fusedApp.origin == Origin.GPLAY) FilterLevel.UNKNOWN
            else FilterLevel.NONE