OSDN Git Service

dexdump2 won't be optional when it replaces dexdump.
authorElliott Hughes <enh@google.com>
Thu, 24 Sep 2015 06:01:31 +0000 (23:01 -0700)
committerElliott Hughes <enh@google.com>
Thu, 24 Sep 2015 22:20:47 +0000 (15:20 -0700)
So it should just be in /system/bin, not sad and lonely in /system/xbin.

Change-Id: I2edda827d36486f46fdcfd77f0ee6eec1345974c

dexdump/Android.mk
dexdump/dexdump_test.cc

index a208ccf..ec2529e 100755 (executable)
@@ -34,8 +34,6 @@ LOCAL_C_INCLUDES := $(dexdump_c_includes)
 LOCAL_CFLAGS += -Wall
 LOCAL_SHARED_LIBRARIES += $(dexdump_libraries)
 LOCAL_MODULE := dexdump2
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
 include $(BUILD_EXECUTABLE)
 endif # !SDK_ONLY
 
index d9b210d..4230cb2 100644 (file)
@@ -43,12 +43,7 @@ class DexDumpTest : public CommonRuntimeTest {
   // Runs test with given arguments.
   bool Exec(const std::vector<std::string>& args, std::string* error_msg) {
     // TODO(ajcbik): dexdump2 -> dexdump
-    std::string file_path = GetTestAndroidRoot();
-    if (IsHost()) {
-      file_path += "/bin/dexdump2";
-    } else {
-      file_path += "/xbin/dexdump2";
-    }
+    std::string file_path = GetTestAndroidRoot() + "/bin/dexdump2";
     EXPECT_TRUE(OS::FileExists(file_path.c_str())) << file_path << " should be a valid file path";
     std::vector<std::string> exec_argv = { file_path };
     exec_argv.insert(exec_argv.end(), args.begin(), args.end());