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

Commit 23a0bf3c authored by Jay Civelli's avatar Jay Civelli Committed by Android (Google) Code Review
Browse files

Merge "Reenabling permission check for TrustAgent."

parents eeda22b4 800631af
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -186,16 +186,12 @@ public class TrustManagerService extends SystemService {
                if (resolveInfo.serviceInfo == null) continue;

                String packageName = resolveInfo.serviceInfo.packageName;
                // STOPSHIP Reenable this check once the GMS Core prebuild library has the
                // permission.
                /*
                if (pm.checkPermission(PERMISSION_PROVIDE_AGENT, packageName)
                        != PackageManager.PERMISSION_GRANTED) {
                    Log.w(TAG, "Skipping agent because package " + packageName
                            + " does not have permission " + PERMISSION_PROVIDE_AGENT + ".");
                    continue;
                }
                */

                ComponentName name = getComponentName(resolveInfo);
                if (!enabledAgents.contains(name)) continue;