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

Commit 8ee0674e authored by David Anderson's avatar David Anderson
Browse files

Update DynamicAndroidService for IGsiService AIDL changes.

Bug: 125540538
Test: framework builds
Change-Id: I7c7f5053d02b231c4d987a145034683ff325e276
parent 049867e3
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;
    }
}