diff options
| author | 2013-06-24 17:41:19 -0700 | |
|---|---|---|
| committer | 2013-06-24 17:41:19 -0700 | |
| commit | a7a60a8244dd6f6e70ff1d7babf261c7a8da873a (patch) | |
| tree | 31f9ac2415d288a0a9ffe7572e6d8b23dcb8e12d | |
| parent | 999cd43edadfd408064457c2b46a9f3b6dde4dd3 (diff) | |
add use-art, use-artd, use-dalvik phony targets
Change-Id: I0d2e583821b53c138acdcd491acf5699c0a7b3e4
| -rw-r--r-- | Android.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk index 85daf73ee2..4eac005f37 100644 --- a/Android.mk +++ b/Android.mk @@ -364,6 +364,30 @@ cpplint-art: $(ANDROID_BUILD_TOP)/art/src/*.h $(ANDROID_BUILD_TOP)/art/src/*.cc ######################################################################## +# targets to switch back and forth from libdvm to libart + +.PHONY: use-art +use-art: + adb root && sleep 3 + adb shell "echo dalvik.vm.lib=libart.so > /data/local.prop" + adb shell chmod 644 /data/local.prop + adb reboot + +.PHONY: use-artd +use-artd: + adb root && sleep 3 + adb shell "echo dalvik.vm.lib=libartd.so > /data/local.prop" + adb shell chmod 644 /data/local.prop + adb reboot + +.PHONY: use-dalvik +use-dalvik: + adb root && sleep 3 + adb shell "echo dalvik.vm.lib=libdvm.so > /data/local.prop" + adb shell chmod 644 /data/local.prop + adb reboot + +######################################################################## include $(call all-makefiles-under,$(LOCAL_PATH)) |