summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-16 00:23:15 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-16 00:23:15 +0000
commita73e5dc6fc1fceec51a5c8b20a89d7d5745df030 (patch)
treef62fff8113faf169251d1e5250c91770571904a8
parent2791509ade9ea00d9902260625377433433db8c3 (diff)
parent10114d20d712183db4dedce08e4d593cdd08f292 (diff)
downloadgsid-android14-qpr2-s1-release.tar.gz
Change-Id: If7000661e13bf8ea31c4cca7493734f13bae9ba8
-rw-r--r--gsi_service.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gsi_service.cpp b/gsi_service.cpp
index 18e97ff..6f2428d 100644
--- a/gsi_service.cpp
+++ b/gsi_service.cpp
@@ -352,9 +352,10 @@ binder::Status GsiService::isGsiEnabled(bool* _aidl_return) {
}
binder::Status GsiService::removeGsiAsync(const sp<IGsiServiceCallback>& resultCallback) {
- bool result = false;
- auto status = removeGsi(&result);
- if (!status.isOk()) {
+ int result = IGsiService::INSTALL_OK;
+ bool success = true;
+ auto status = removeGsi(&success);
+ if (!status.isOk() || !success) {
LOG(ERROR) << "Could not removeGsi: " << status.exceptionMessage().c_str();
result = IGsiService::INSTALL_ERROR_GENERIC;
}