aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2018-03-08 14:34:19 -0600
committerTianjie Xu2018-03-08 16:24:02 -0600
commitb4e3a370bf6fe2bbb6ad8e33d16ce3210595aaef (patch)
tree7b03c5c23301d5616bec0a9cb43dce181726ba3b /updater
parent56160b2b03d80d015865e5d3ad9156734a58c02a (diff)
downloadplatform-bootable-recovery-b4e3a370bf6fe2bbb6ad8e33d16ce3210595aaef.tar.gz
platform-bootable-recovery-b4e3a370bf6fe2bbb6ad8e33d16ce3210595aaef.tar.xz
platform-bootable-recovery-b4e3a370bf6fe2bbb6ad8e33d16ce3210595aaef.zip
Set the update locations to default in CacheLocation's constructor
Otherwise the applypatch executable will fail to back up the source file to /cache when patching the recovery image. Bug: 74198354 Test: run applypatch from boot to recovery Change-Id: I6e5b9cd06d6ed0b26066b779a348437ecf984b92
Diffstat (limited to 'updater')
-rw-r--r--updater/updater.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp
index f063e5fa..1d6b172b 100644
--- a/updater/updater.cpp
+++ b/updater/updater.cpp
@@ -169,10 +169,6 @@ int main(int argc, char** argv) {
169 } 169 }
170 ota_io_init(za, state.is_retry); 170 ota_io_init(za, state.is_retry);
171 171
172 // Initialize the cache_temp_source, last_command_file and stash_directory_base to their default
173 // locations.
174 CacheLocation::location().ResetLocations();
175
176 std::string result; 172 std::string result;
177 bool status = Evaluate(&state, root, &result); 173 bool status = Evaluate(&state, root, &result);
178 174