Change phony targets to set dalvik.vm.usejit properly
Bug: 22408082
Change-Id: I87d75902fef9d695c034c27ea4e25448c23a6924
diff --git a/Android.mk b/Android.mk
index c01464a..49b61bb 100644
--- a/Android.mk
+++ b/Android.mk
@@ -427,6 +427,7 @@
adb shell setprop dalvik.vm.dex2oat-filter \"\"
adb shell setprop dalvik.vm.image-dex2oat-filter \"\"
adb shell setprop persist.sys.dalvik.vm.lib.2 libart.so
+ adb shell setprop dalvik.vm.usejit false
adb shell start
.PHONY: use-artd-full
@@ -437,16 +438,18 @@
adb shell setprop dalvik.vm.dex2oat-filter \"\"
adb shell setprop dalvik.vm.image-dex2oat-filter \"\"
adb shell setprop persist.sys.dalvik.vm.lib.2 libartd.so
+ adb shell setprop dalvik.vm.usejit false
adb shell start
-.PHONY: use-art-verify-at-runtime
-use-art-verify-at-runtime:
+.PHONY: use-art-jit
+use-art-jit:
adb root
adb wait-for-device shell stop
adb shell rm -rf $(ART_TARGET_DALVIK_CACHE_DIR)/*
adb shell setprop dalvik.vm.dex2oat-filter "verify-at-runtime"
adb shell setprop dalvik.vm.image-dex2oat-filter "verify-at-runtime"
adb shell setprop persist.sys.dalvik.vm.lib.2 libart.so
+ adb shell setprop dalvik.vm.usejit true
adb shell start
.PHONY: use-art-interpret-only
@@ -457,6 +460,7 @@
adb shell setprop dalvik.vm.dex2oat-filter "interpret-only"
adb shell setprop dalvik.vm.image-dex2oat-filter "interpret-only"
adb shell setprop persist.sys.dalvik.vm.lib.2 libart.so
+ adb shell setprop dalvik.vm.usejit false
adb shell start
.PHONY: use-artd-interpret-only
@@ -467,6 +471,7 @@
adb shell setprop dalvik.vm.dex2oat-filter "interpret-only"
adb shell setprop dalvik.vm.image-dex2oat-filter "interpret-only"
adb shell setprop persist.sys.dalvik.vm.lib.2 libartd.so
+ adb shell setprop dalvik.vm.usejit false
adb shell start
.PHONY: use-art-verify-none
@@ -477,6 +482,7 @@
adb shell setprop dalvik.vm.dex2oat-filter "verify-none"
adb shell setprop dalvik.vm.image-dex2oat-filter "verify-none"
adb shell setprop persist.sys.dalvik.vm.lib.2 libart.so
+ adb shell setprop dalvik.vm.usejit false
adb shell start
########################################################################