Delete vdex file in delete_odex.
bug: 38513395
Test: unfortunately no unit test here, so after discussing
with agampe@ just relied on build.
Change-Id: I305ddaadc813673fb55473f5e8ca357f39cf98f3
diff --git a/cmds/installd/dexopt.cpp b/cmds/installd/dexopt.cpp
index 797cc15..53ac349 100644
--- a/cmds/installd/dexopt.cpp
+++ b/cmds/installd/dexopt.cpp
@@ -1862,8 +1862,11 @@
// Derive and delete the app image.
bool return_value_art = unlink_and_check(create_image_filename(out_path).c_str());
+ // Derive and delete the vdex file.
+ bool return_value_vdex = unlink_and_check(create_vdex_filename(out_path).c_str());
+
// Report success.
- return return_value_oat && return_value_art;
+ return return_value_oat && return_value_art && return_value_vdex;
}
int dexopt(const char* const params[DEXOPT_PARAM_COUNT]) {