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

Commit 05a24e5b authored by Chris Tate's avatar Chris Tate Committed by Android Git Automerger
Browse files

am a6888d6d: am b5bcd607: am 27c5cfd7: am 9b2f9bcb: am 82d14d60: Merge...

am a6888d6d: am b5bcd607: am 27c5cfd7: am 9b2f9bcb: am 82d14d60: Merge "Crashing the system process is inadvisable" into mnc-dev

* commit 'a6888d6d':
  Crashing the system process is inadvisable
parents 3c2d1fd8 a6888d6d
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) {