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

Commit dafba622 authored by Songchun Fan's avatar Songchun Fan
Browse files

remove incremental.check_loader

This workaround was needed to allow non-privileged data loaders. We no
longer need it.

BUG: 150795871
Test: atest PackageManagerShellCommandIncrementalTest
Change-Id: If627e613793e74d86ed67dfebfbdb596147c6c68
parent ea494a7c
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -116,9 +116,6 @@ public class DataLoaderManagerService extends SystemService {
                return null;
            }

            // TODO(b/136132412): better way to enable privileged data loaders in tests
            boolean checkLoader =
                    android.os.SystemProperties.getBoolean("incremental.check_loader", false);
            int numServices = services.size();
            for (int i = 0; i < numServices; i++) {
                ResolveInfo ri = services.get(i);
@@ -128,7 +125,7 @@ public class DataLoaderManagerService extends SystemService {
                // If there's more than one, return the first one found.
                try {
                    ApplicationInfo ai = pm.getApplicationInfo(resolved.getPackageName(), 0);
                    if (checkLoader && !ai.isPrivilegedApp()) {
                    if (!ai.isPrivilegedApp()) {
                        Slog.w(TAG,
                                "Data loader: " + resolved + " is not a privileged app, skipping.");
                        continue;