Update dex2oat script to handle more devices
Some devices/emulators use tag dex2oat_original.
Change-Id: Ia7bc60bf50c99bc4489a74e52b5fca801dd27056
diff --git a/tools/dex2oat.py b/tools/dex2oat.py
index 8df8f86..58b2418 100755
--- a/tools/dex2oat.py
+++ b/tools/dex2oat.py
@@ -152,9 +152,10 @@
append_dex2oat_verbose_flags(options, cmd)
utils.PrintCmd(cmd)
subprocess.check_call(cmd)
- cmd = adb_cmd(serial, 'logcat', '-d', '-s', 'dex2oat')
+ cmd = adb_cmd(serial, 'logcat', '-d', '-s', 'dex2oat', 'dex2oat_original')
utils.PrintCmd(cmd)
subprocess.check_call(cmd)
+
return 0