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

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

Merge "Temporary removing the Trust Agent permission change."

parents 17a8bfc3 abc40bbe
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -186,12 +186,16 @@ 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;