Loading core/jni/android_server_Watchdog.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -64,7 +64,8 @@ static void dumpKernelStacks(JNIEnv* env, jobject clazz, jstring pathStr) { const char *path = env->GetStringUTFChars(pathStr, NULL); int outFd = open(path, O_WRONLY | O_APPEND | O_CREAT, S_IWUSR); int outFd = open(path, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); if (outFd < 0) { LOGE("Unable to open stack dump file: %d (%s)", errno, strerror(errno)); goto done; Loading Loading
core/jni/android_server_Watchdog.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -64,7 +64,8 @@ static void dumpKernelStacks(JNIEnv* env, jobject clazz, jstring pathStr) { const char *path = env->GetStringUTFChars(pathStr, NULL); int outFd = open(path, O_WRONLY | O_APPEND | O_CREAT, S_IWUSR); int outFd = open(path, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); if (outFd < 0) { LOGE("Unable to open stack dump file: %d (%s)", errno, strerror(errno)); goto done; Loading