From b4e3a370bf6fe2bbb6ad8e33d16ce3210595aaef Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Thu, 8 Mar 2018 12:34:19 -0800 Subject: 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 --- updater/updater.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'updater/updater.cpp') diff --git a/updater/updater.cpp b/updater/updater.cpp index f063e5fa1..1d6b172bb 100644 --- a/updater/updater.cpp +++ b/updater/updater.cpp @@ -169,10 +169,6 @@ int main(int argc, char** argv) { } ota_io_init(za, state.is_retry); - // Initialize the cache_temp_source, last_command_file and stash_directory_base to their default - // locations. - CacheLocation::location().ResetLocations(); - std::string result; bool status = Evaluate(&state, root, &result); -- cgit v1.2.3