/bootable/recovery/ |
H A D | roots.h | 29 // Return the Volume* record for this path (or NULL). 30 Volume* volume_for_path(const char* path); 32 // Make sure that the volume 'path' is on is mounted. Returns 0 on 34 int ensure_path_mounted(const char* path); 36 // Make sure that the volume 'path' is on is mounted. Returns 0 on 38 int ensure_path_unmounted(const char* path);
|
H A D | fuse_sdcard_provider.h | 20 void* start_sdcard_fuse(const char* path);
|
H A D | fuse_sdcard_provider.c | 66 const char* path; member in struct:token 74 if (stat(t->path, &sb) < 0) { 75 fprintf(stderr, "failed to stat %s: %s\n", t->path, strerror(errno)); 83 fd.fd = open(t->path, O_RDONLY); 85 fprintf(stderr, "failed to open %s: %s\n", t->path, strerror(errno)); 103 void* start_sdcard_fuse(const char* path) { argument 106 t->path = path;
|
H A D | install.cpp | 50 try_update_binary(const char *path, ZipArchive *zip, int* wipe_cache) { argument 118 args[3] = (char*)path; 177 LOGE("Error in %s\n(Status %d)\n", path, WEXITSTATUS(status)); 185 really_install_package(const char *path, int* wipe_cache, bool needs_mount) argument 192 LOGI("Update location: %s\n", path); 197 if (path && needs_mount) { 198 if (path[0] == '@') { 199 ensure_path_mounted(path+1); 201 ensure_path_mounted(path); 206 if (sysMapFile(path, 255 install_package(const char* path, int* wipe_cache, const char* install_file, bool needs_mount) argument [all...] |
H A D | roots.cpp | 73 Volume* volume_for_path(const char* path) { argument 74 return fs_mgr_get_entry_for_mount_point(fstab, path); 77 int ensure_path_mounted(const char* path) { argument 78 Volume* v = volume_for_path(path); 80 LOGE("unknown volume for path [%s]\n", path); 129 int ensure_path_unmounted(const char* path) { argument 130 Volume* v = volume_for_path(path); 132 LOGE("unknown volume for path [%s]\n", path); 157 exec_cmd(const char* path, char* const argv[]) argument [all...] |
H A D | common.h | 45 FILE* fopen_path(const char *path, const char *mode);
|
H A D | recovery.cpp | 96 * --update_package=path - verify install an OTA package file 150 // open a given path, mounting partitions as necessary 152 fopen_path(const char *path, const char *mode) { argument 153 if (ensure_path_mounted(path) != 0) { 154 LOGE("Can't mount %s\n", path); 160 if (strchr("wa", mode[0])) dirCreateHierarchy(path, 0777, NULL, 1, sehandle); 162 FILE *fp = fopen(path, mode); 389 char path[PATH_MAX]; local 390 strcpy(path, CACHE_LOG_DIR); 391 strcat(path, "/"); 530 browse_directory(const char* path, Device* device) argument 788 char* path = browse_directory(SDCARD_ROOT, device); local [all...] |
/bootable/recovery/minzip/ |
H A D | DirUtil.h | 31 * specified in path are present, creating as many directories 41 * (usually if some element of path is not a directory). 43 int dirCreateHierarchy(const char *path, int mode, 47 /* rm -rf <path> 49 int dirUnlinkHierarchy(const char *path);
|
H A D | DirUtil.c | 32 getPathDirStatus(const char *path) argument 37 err = stat(path, &st); 47 /* Something went wrong, or something in the path 56 dirCreateHierarchy(const char *path, int mode, argument 65 if (path[0] == '\0') { 70 /* Allocate a path that we can modify; stick a slash on 73 size_t pathLen = strlen(path); 79 memcpy(cpath, path, pathLen); 88 //xxx test this path 89 /* No directory component. Act like the path wa 183 dirUnlinkHierarchy(const char *path) argument [all...] |
/bootable/recovery/applypatch/ |
H A D | freecache.c | 29 char path[FILENAME_MAX]; local 30 strcpy(path, "/proc/"); 31 strcat(path, de->d_name); 32 strcat(path, "/fd/"); 36 fdd = opendir(path); 38 printf("error opening %s: %s\n", path, strerror(errno)); 44 strcpy(fd_path, path); 81 char path[FILENAME_MAX]; local 97 strcpy(path, dirs[i]); 98 strcat(path, "/"); [all...] |
/bootable/recovery/minadbd/ |
H A D | sysdeps.h | 89 static __inline__ int adb_unlink(const char* path) argument 91 int rc = unlink(path); 96 rc = chmod(path, _S_IREAD|_S_IWRITE ); 98 rc = unlink(path); 105 static __inline__ int adb_mkdir(const char* path, int mode) argument 107 return _mkdir(path); 112 extern int adb_open(const char* path, int options); 113 extern int adb_creat(const char* path, int mode); 141 static __inline__ int adb_open_mode(const char* path, int options, int mode) argument 143 return adb_open(path, option 146 unix_open(const char* path, int options,...) argument 305 unix_open(const char* path, int options,...) argument 327 adb_creat(const char* path, int mode) argument 388 adb_unlink(const char* path) argument 466 adb_mkdir(const char* path, int mode) argument 477 adb_dirstart(const char* path) argument 482 adb_dirstop(const char* path) argument [all...] |
/bootable/recovery/uncrypt/ |
H A D | uncrypt.c | 112 // The fstab path is always "/fstab.${ro.hardware}". 128 const char* find_block_device(const char* path, int* encryptable, int* encrypted) argument 130 // Look for a volume whose mount point is the prefix of path and 138 if (strncmp(path, v->mount_point, len) == 0 && 139 (path[len] == '/' || path[len] == 0)) { 187 int produce_block_map(const char* path, const char* map_file, const char* blk_dev, argument 195 ret = stat(path, &sb); 197 ALOGE("failed to stat %s\n", path); 226 int fd = open(path, O_RDONL 383 char path[PATH_MAX+1]; local [all...] |
/bootable/recovery/updater/ |
H A D | install.c | 250 static int exec_cmd(const char* path, char* const argv[]) { argument 254 execv(path, argv); 259 printf("%s failed with status %d\n", path, WEXITSTATUS(status));
|