Loading cmds/dumpstate/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ LOCAL_SRC_FILES := dumpstate.cpp utils.cpp LOCAL_MODULE := dumpstate LOCAL_SHARED_LIBRARIES := libcutils liblog libselinux libbase libhardware_legacy LOCAL_SHARED_LIBRARIES := libcutils libdebuggerd_client liblog libselinux libbase libhardware_legacy # ZipArchive support, the order matters here to get all symbols. LOCAL_STATIC_LIBRARIES := libziparchive libz libcrypto_static LOCAL_HAL_STATIC_LIBRARIES := libdumpstate Loading cmds/dumpstate/utils.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -40,9 +40,9 @@ #include <vector> #include <android-base/file.h> #include <cutils/debugger.h> #include <cutils/properties.h> #include <cutils/sockets.h> #include <debuggerd/client.h> #include <log/log.h> #include <private/android_filesystem_config.h> Loading Loading @@ -1021,7 +1021,9 @@ const char *dump_traces() { } /* create a new, empty traces.txt file to receive stack dumps */ int fd = TEMP_FAILURE_RETRY(open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW | O_CLOEXEC, int fd = TEMP_FAILURE_RETRY( open(traces_path, O_CREAT | O_WRONLY | O_APPEND | O_TRUNC | O_NOFOLLOW | O_CLOEXEC, 0666)); /* -rw-rw-rw- */ if (fd < 0) { MYLOGE("%s: %s\n", traces_path, strerror(errno)); Loading Loading
cmds/dumpstate/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ LOCAL_SRC_FILES := dumpstate.cpp utils.cpp LOCAL_MODULE := dumpstate LOCAL_SHARED_LIBRARIES := libcutils liblog libselinux libbase libhardware_legacy LOCAL_SHARED_LIBRARIES := libcutils libdebuggerd_client liblog libselinux libbase libhardware_legacy # ZipArchive support, the order matters here to get all symbols. LOCAL_STATIC_LIBRARIES := libziparchive libz libcrypto_static LOCAL_HAL_STATIC_LIBRARIES := libdumpstate Loading
cmds/dumpstate/utils.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -40,9 +40,9 @@ #include <vector> #include <android-base/file.h> #include <cutils/debugger.h> #include <cutils/properties.h> #include <cutils/sockets.h> #include <debuggerd/client.h> #include <log/log.h> #include <private/android_filesystem_config.h> Loading Loading @@ -1021,7 +1021,9 @@ const char *dump_traces() { } /* create a new, empty traces.txt file to receive stack dumps */ int fd = TEMP_FAILURE_RETRY(open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW | O_CLOEXEC, int fd = TEMP_FAILURE_RETRY( open(traces_path, O_CREAT | O_WRONLY | O_APPEND | O_TRUNC | O_NOFOLLOW | O_CLOEXEC, 0666)); /* -rw-rw-rw- */ if (fd < 0) { MYLOGE("%s: %s\n", traces_path, strerror(errno)); Loading