Searched refs:anr_traces_dir (Results 1 – 1 of 1) sorted by relevance
/frameworks/native/cmds/dumpstate/ |
D | utils.c | 521 char anr_traces_dir[PATH_MAX]; in dump_traces() local 522 strlcpy(anr_traces_dir, traces_path, sizeof(anr_traces_dir)); in dump_traces() 523 char *slash = strrchr(anr_traces_dir, '/'); in dump_traces() 526 if (!mkdir(anr_traces_dir, 0775)) { in dump_traces() 527 chown(anr_traces_dir, AID_SYSTEM, AID_SYSTEM); in dump_traces() 528 chmod(anr_traces_dir, 0775); in dump_traces() 529 if (selinux_android_restorecon(anr_traces_dir, 0) == -1) { in dump_traces() 530 fprintf(stderr, "restorecon failed for %s: %s\n", anr_traces_dir, strerror(errno)); in dump_traces() 533 fprintf(stderr, "mkdir(%s): %s\n", anr_traces_dir, strerror(errno)); in dump_traces()
|