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

Commit 92a8ecf0 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

tests for boursobank

parent ca36835e
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -509,6 +509,27 @@ public abstract class AppsFilterBase implements AppsFilterSnapshot {
                // not an app, this filtering takes place at a higher level
                return false;
            }
            if ("com.google.android.gms".equals(targetPkg.getPackageName())) {
                final String blockedCaller = "com.boursorama.android.clients";
                boolean isBlockedCaller = false;
                if (callingPkgSetting != null) {
                    isBlockedCaller = blockedCaller.equals(callingPkgSetting.getPackageName());
                } else {
                    for (int i = callingSharedPkgSettings.size() - 1; i >= 0; i--) {
                        if (blockedCaller.equals(
                                callingSharedPkgSettings.valueAt(i).getPackageName())) {
                            isBlockedCaller = true;
                            break;
                        }
                    }
                }
                if (isBlockedCaller) {
                    if (DEBUG_LOGGING) {
                        log(callingSetting, targetPkgSetting, "blocked by package visibility rule");
                    }
                    return true;
                }
            }

            try {
                if (DEBUG_TRACING) {