From 69b15fb098162f19a4c20e6dccdcead04d9c77f0 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Sat, 3 Sep 2011 12:25:21 -0700 Subject: Working dex2oat and oatexec adb shell dex2oatd --dex-file=/system/framework/core.jar --image=/system/framework/boot.oat --base=0x50000000 "'--method=Ljava/lang/System;logI(Ljava/lang/String;)V'" "'--method=Ljava/lang/System;log(CLjava/lang/String;Ljava/lang/Throwable;)V'" adb shell dex2oatd --boot-dex-file=/system/framework/core.jar --boot=/system/framework/boot.oat --dex-file=/system/framework/art-test-dex-HelloWorld.jar --image=/system/framework/art-test-dex-HelloWorld.oat adb shell oatexecd -Xbootclasspath:/system/framework/core.jar -Xbootimage:/system/framework/boot.oat -classpath /system/framework/art-test-dex-HelloWorld.jar -Ximage:/system/framework/art-test-dex-HelloWorld.oat HelloWorld 09-05 17:58:18.912 2385 2385 I System : Hello, world! Change-Id: I53e534068584f0c3a837313e4d517a0e4a7154fc --- tools/art | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/art') diff --git a/tools/art b/tools/art index 67bbad0fe0..2bafb0f546 100755 --- a/tools/art +++ b/tools/art @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -aexec=aexec +oatexec=oatexec invoke_with= while true; do @@ -23,7 +23,7 @@ while true; do invoke_with="$1" shift elif [ "$1" = "-d" ]; then - aexec="aexecd" + oatexec="oatexecd" shift elif expr "$1" : "--" >/dev/null 2>&1; then echo "unknown option: $1" 1>&2 @@ -37,7 +37,7 @@ mkdir -p /tmp/android-data/art-cache ANDROID_DATA=/tmp/android-data \ ANDROID_ROOT=$ANDROID_BUILD_TOP/out/host/linux-x86 \ LD_LIBRARY_PATH=$ANDROID_BUILD_TOP/out/host/linux-x86/lib \ -$invoke_with $ANDROID_BUILD_TOP/out/host/linux-x86/bin/$aexec \ +$invoke_with $ANDROID_BUILD_TOP/out/host/linux-x86/bin/$oatexec \ -Xbootclasspath\ :$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-hostdex.jar\ :$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-junit-hostdex.jar\ -- cgit v1.2.3