summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2014-08-27 16:10:03 +0100
committerCalin Juravle <calin@google.com>2014-08-27 16:10:03 +0100
commit97477d203eaf0c3235bbe2415356f20a0431cada (patch)
treec4df22b0e12756e55fb1d30d50e90fdc44541ace /cmds
parent7de2bde3c4c3a6ecc7e6f21e3f3322688b718c4a (diff)
downloadframeworks_native-97477d203eaf0c3235bbe2415356f20a0431cada.zip
frameworks_native-97477d203eaf0c3235bbe2415356f20a0431cada.tar.gz
frameworks_native-97477d203eaf0c3235bbe2415356f20a0431cada.tar.bz2
Set compiler filter flag to true when vmSafeMode is present.
Bug: 12457423 Change-Id: I33345c5cce76681d8a6592ebae8c9f96a9f0f8bd
Diffstat (limited to 'cmds')
-rw-r--r--cmds/installd/commands.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c
index 1fda15a..b9eca7a 100644
--- a/cmds/installd/commands.c
+++ b/cmds/installd/commands.c
@@ -769,6 +769,7 @@ static void run_dex2oat(int zip_fd, int oat_fd, const char* input_file_name,
have_dex2oat_compiler_filter_flag = true;
} else if (vm_safe_mode) {
strcpy(dex2oat_compiler_filter_arg, "--compiler-filter=interpret-only");
+ have_dex2oat_compiler_filter_flag = true;
} else if (have_dex2oat_compiler_filter_flag) {
sprintf(dex2oat_compiler_filter_arg, "--compiler-filter=%s", dex2oat_compiler_filter_flag);
}