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

Commit ee415cc9 authored by Alex Buynytskyy's avatar Alex Buynytskyy Committed by Android (Google) Code Review
Browse files

Merge "Add an option to test with and without AppVisibility cache."

parents 7e4dbabb 3cea5c57
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.content.pm.SigningDetails;
import android.os.Binder;
import android.os.Handler;
import android.os.Process;
import android.os.SystemProperties;
import android.os.Trace;
import android.os.UserHandle;
import android.text.TextUtils;
@@ -340,7 +341,9 @@ public abstract class AppsFilterBase implements AppsFilterSnapshot {
                return !isForceQueryable(targetPkgSetting.getAppId())
                      && !isImplicitlyQueryable(callingAppId, targetPkgSetting.getAppId());
            }
            if (mCacheReady) { // use cache
            // use cache
            if (mCacheReady && SystemProperties.getBoolean("debug.pm.use_app_filter_cache",
                    true)) {
                if (!shouldFilterApplicationUsingCache(callingUid,
                        targetPkgSetting.getAppId(),
                        userId)) {