Refactor art::GetAndroidDataSafe and art::GetAndroidData.

Make these methods return an `std::string` (instead of a
`const char*`), like similar methods of libartbase/base/file_utils.cc.

Test: m test-art-host-gtest-file_utils_test
Change-Id: Idf9ab45db3607d6079eaa8305e02b3483961f373
diff --git a/libartbase/base/file_utils.h b/libartbase/base/file_utils.h
index d2a0839..2406336 100644
--- a/libartbase/base/file_utils.h
+++ b/libartbase/base/file_utils.h
@@ -40,9 +40,9 @@
 std::string GetAndroidRuntimeRootSafe(/*out*/ std::string* error_msg);
 
 // Find $ANDROID_DATA, /data, or abort.
-const char* GetAndroidData();
-// Find $ANDROID_DATA, /data, or return null.
-const char* GetAndroidDataSafe(/*out*/ std::string* error_msg);
+std::string GetAndroidData();
+// Find $ANDROID_DATA, /data, or return an empty string.
+std::string GetAndroidDataSafe(/*out*/ std::string* error_msg);
 
 // Returns the default boot image location (ANDROID_ROOT/framework/boot.art).
 // Returns an empty string if ANDROID_ROOT is not set.