Loading services/core/java/com/android/server/pm/AppsFilterBase.java +21 −0 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
services/core/java/com/android/server/pm/AppsFilterBase.java +21 −0 Original line number Diff line number Diff line Loading @@ -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) { Loading