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

Commit 84c1878f authored by David Anderson's avatar David Anderson Committed by android-build-merger
Browse files

Merge "Update DynamicAndroidService for IGsiService AIDL changes." am: 1451b2f3 am: 123a9ed2

am: 2f2970f2

Change-Id: I32e35f22b5ed5e7d04f2b3df50bba4d3bea4f1f3
parents ae03b0be 2f2970f2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -118,7 +118,9 @@ public class DynamicAndroidService extends IDynamicAndroidService.Stub implement
        if (gsiService.isGsiRunning()) {
            return gsiService.disableGsiInstall();
        } else {
            return gsiService.setGsiBootable() == 0;
            final int status = gsiService.getGsiBootStatus();
            final boolean singleBoot = (status == IGsiService.BOOT_STATUS_SINGLE_BOOT);
            return gsiService.setGsiBootable(singleBoot) == 0;
        }
    }

@@ -129,6 +131,6 @@ public class DynamicAndroidService extends IDynamicAndroidService.Stub implement

    @Override
    public boolean commit() throws RemoteException {
        return getGsiService().setGsiBootable() == 0;
        return getGsiService().setGsiBootable(true) == 0;
    }
}