Searched refs:idmap_fd (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/cmds/idmap/ |
D | create.cpp | 74 bool is_idmap_stale_fd(const char *target_apk_path, const char *overlay_apk_path, int idmap_fd) in is_idmap_stale_fd() argument 78 if (fstat(idmap_fd, &st) == -1) { in is_idmap_stale_fd() 88 if (lseek(idmap_fd, SEEK_SET, 0) < 0) { in is_idmap_stale_fd() 92 ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft)); in is_idmap_stale_fd() 142 int idmap_fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY)); in is_idmap_stale_path() local 143 if (idmap_fd == -1) { in is_idmap_stale_path() 146 bool is_stale = is_idmap_stale_fd(target_apk_path, overlay_apk_path, idmap_fd); in is_idmap_stale_path() 147 close(idmap_fd); in is_idmap_stale_path()
|
D | idmap.cpp | 129 int idmap_fd = strtol(idmap_str, &endptr, 10); in maybe_create_fd() local 145 return idmap_create_fd(target_apk_path, overlay_apk_path, idmap_fd); in maybe_create_fd()
|
/frameworks/native/cmds/installd/ |
D | commands.c | 1366 static void run_idmap(const char *target_apk, const char *overlay_apk, int idmap_fd) in run_idmap() argument 1372 snprintf(idmap_str, sizeof(idmap_str), "%d", idmap_fd); in run_idmap() 1417 int idmap_fd = -1; in idmap() local 1427 idmap_fd = open(idmap_path, O_RDWR | O_CREAT | O_EXCL, 0644); in idmap() 1428 if (idmap_fd < 0) { in idmap() 1432 if (fchown(idmap_fd, AID_SYSTEM, uid) < 0) { in idmap() 1436 if (fchmod(idmap_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) < 0) { in idmap() 1453 if (flock(idmap_fd, LOCK_EX | LOCK_NB) != 0) { in idmap() 1458 run_idmap(target_apk, overlay_apk, idmap_fd); in idmap() 1468 close(idmap_fd); in idmap() [all …]
|