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

Commit abc40bbe authored by Jay Civelli's avatar Jay Civelli
Browse files

Temporary removing the Trust Agent permission change.

Removing the permission check for Trust Agents, until the GMS core prebuilt
has that permission.

BUG: 15546358

Change-Id: Id42d3820d8d772b7788ea1f7431944bf13d4cc92
parent f914a890
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;