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

Commit 123a9ed2 authored by David Anderson's avatar David Anderson Committed by android-build-merger
Browse files

Merge "Update DynamicAndroidService for IGsiService AIDL changes."

am: 1451b2f3

Change-Id: I09b53ae751ffdff9e7fa31a8e5ee347bf42a347c
parents d63ef049 1451b2f3
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;
    }
}