diff options
author | Yo Chiang <yochiang@google.com> | 2020-12-28 19:34:59 +0800 |
---|---|---|
committer | Yo Chiang <yochiang@google.com> | 2020-12-29 18:59:50 +0800 |
commit | fdd02739c24f76846d37807c17c3424d4f0cf718 (patch) | |
tree | 51288620f58016ab51b5c82b7356630605f3ee89 /gsi_service.cpp | |
parent | f9f5dbb8970ca9d882b1279c71485c2dc76c56ec (diff) | |
download | gsid-fdd02739c24f76846d37807c17c3424d4f0cf718.tar.gz |
Revert "GsiService::enableGsi() checks return code of FinishInstall()"
This reverts commit 99ab518ed6b7fae95ba29b132227f993e0a099d0.
enableGsi() shouldn't check FinishInstall() explicitly, instead the
caller of enableGsi() should call closePartition(), and enableGsi()
should assume that the installation was successful and any error was
handled by the caller already.
closePartition() was added in aosp/1404709.
This opens up the path for optional DSU partitions. For example, failing
to install a overlayFS scratch partition shouldn't be fatal, and the DSU
installation should be able to continue without a scratch.
Bug: 165925766
Bug: 165471299
Test: TH
Change-Id: Ic9b653426cf7fc3c92279e9ceb7c1eb662c15cef
Diffstat (limited to 'gsi_service.cpp')
-rw-r--r-- | gsi_service.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gsi_service.cpp b/gsi_service.cpp index 41b8811..14ef1d4 100644 --- a/gsi_service.cpp +++ b/gsi_service.cpp @@ -301,13 +301,7 @@ binder::Status GsiService::enableGsi(bool one_shot, const std::string& dsuSlot, } if (installer_) { ENFORCE_SYSTEM; - int status = installer_->FinishInstall(); installer_ = {}; - if (status != IGsiService::INSTALL_OK) { - *_aidl_return = status; - LOG(ERROR) << "Installation failed, cannot enable DSU for slot: " << dsuSlot; - return binder::Status::ok(); - } // Note: create the install status file last, since this is the actual boot // indicator. if (!SetBootMode(one_shot) || !CreateInstallStatusFile()) { |