Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dcb54f0 authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "Allow overriding the log path." am: 11295b7f am: 23b37f43

am: 97e46326

Change-Id: I4525b9b3726615c7b5a87b373a3fa9edf6cab0b2
parents ca915f73 97e46326
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -320,6 +320,10 @@ std::string adb_get_android_dir_path() {
}

std::string GetLogFilePath() {
    // https://issuetracker.google.com/112588493
    const char* path = getenv("ANDROID_ADB_LOG_PATH");
    if (path) return path;

#if defined(_WIN32)
    const char log_name[] = "adb.log";
    WCHAR temp_path[MAX_PATH];