Lines Matching refs:path
99 * --update_package=path - verify install an OTA package file
153 // open a given path, mounting partitions as necessary
155 fopen_path(const char *path, const char *mode) {
156 if (ensure_path_mounted(path) != 0) {
157 LOGE("Can't mount %s\n", path);
163 if (strchr("wa", mode[0])) dirCreateHierarchy(path, 0777, NULL, 1, sehandle);
165 FILE *fp = fopen(path, mode);
440 char path[PATH_MAX];
441 strcpy(path, CACHE_LOG_DIR);
442 strcat(path, "/");
443 int path_len = strlen(path);
447 strcpy(path+path_len, de->d_name);
448 p->name = strdup(path);
449 if (stat(path, &(p->st)) == 0) {
455 FILE* f = fopen(path, "rb");
558 // Returns a malloc'd path, or NULL.
559 static char* browse_directory(const char* path, Device* device) {
560 ensure_path_mounted(path);
562 DIR* d = opendir(path);
564 LOGE("error opening %s: %s\n", path, strerror(errno));
620 const char* headers[] = { "Choose a package to install:", path, NULL };
636 strlcpy(new_path, path, PATH_MAX);
646 // selected a zip file: return the malloc'd path to the caller.
758 char* path = browse_directory(SDCARD_ROOT, device);
759 if (path == NULL) {
764 ui->Print("\n-- Install %s ...\n", path);
766 void* token = start_sdcard_fuse(path);
1009 // we're given an old 'root' path "CACHE:foo", change it to
1016 printf("(replacing path \"%s\" with \"%s\")\n",