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

Commit 82d14d60 authored by Chris Tate's avatar Chris Tate Committed by Android (Google) Code Review
Browse files

Merge "Crashing the system process is inadvisable" into mnc-dev

parents d88152b4 0d446c18
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) {