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

Commit 0ef0ac9c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Only log on error"

parents c32d1f11 b8ce9f09
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -288,19 +288,16 @@ public class PermissionManagerService {

        final String[] packages = mContext.getPackageManager().getPackagesForUid(uid);
        if (packages != null && packages.length > 0) {
Slog.e(TAG, "TODD: Packages: " + Arrays.toString(packages));
            PackageParser.Package pkg = null;
            for (String packageName : packages) {
                pkg = mPackageManagerInt.getPackage(packageName);
                if (pkg != null) {
Slog.e(TAG, "TODD: Using packge: " + packageName);
                    break;
                } else {
Slog.e(TAG, "TODD: Missing packge: " + packageName);
                }
            }
            if (pkg == null) {
Slog.e(TAG, "TODD: No package not found; UID: " + uid);
Slog.e(TAG, "TODD: Packages: " + Arrays.toString(packages));
                return PackageManager.PERMISSION_DENIED;
            }
            if (pkg.mSharedUserId != null) {