diff options
Diffstat (limited to 'tools/hiddenapi/hiddenapi_test.cc')
-rw-r--r-- | tools/hiddenapi/hiddenapi_test.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/hiddenapi/hiddenapi_test.cc b/tools/hiddenapi/hiddenapi_test.cc index 9f65a5450c..7c9a95cbfd 100644 --- a/tools/hiddenapi/hiddenapi_test.cc +++ b/tools/hiddenapi/hiddenapi_test.cc @@ -31,10 +31,9 @@ namespace art { class HiddenApiTest : public CommonRuntimeTest { protected: std::string GetHiddenApiCmd() { - std::string file_path = GetTestAndroidRoot(); - file_path += "/bin/hiddenapi"; + std::string file_path = GetAndroidRuntimeBinDir() + "/hiddenapi"; if (kIsDebugBuild) { - file_path += "d"; + file_path += 'd'; } if (!OS::FileExists(file_path.c_str())) { LOG(FATAL) << "Could not find binary " << file_path; |