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

Commit 9b2f9bcb authored by Chris Tate's avatar Chris Tate Committed by Android Git Automerger
Browse files

am 82d14d60: Merge "Crashing the system process is inadvisable" into mnc-dev

* commit '82d14d60':
  Crashing the system process is inadvisable
parents 482635e3 82d14d60
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1955,12 +1955,14 @@ public class BackupManagerService {
                .setPackage(pkgInfo.packageName);
        List<ResolveInfo> hosts = mPackageManager.queryIntentServicesAsUser(
                intent, 0, UserHandle.USER_OWNER);
        if (hosts != null) {
            final int N = hosts.size();
            for (int i = 0; i < N; i++) {
                final ServiceInfo info = hosts.get(i).serviceInfo;
                tryBindTransport(info);
            }
        }
    }

    // Verify that the service exists and is hosted by a privileged app, then proceed to bind
    boolean tryBindTransport(ServiceInfo info) {