/bootable/recovery/tools/ota/ |
D | add-property-tag.c | 67 const char *filename = "/system/build.prop"; in main() local 75 case 'f': filename = optarg; break; in main() 94 FILE *input = fopen(filename, "r"); in main() 96 fprintf(stderr, "can't read %s: %s\n", filename, strerror(errno)); in main() 101 snprintf(tmpname, sizeof(tmpname), "%s.tmp", filename); in main() 128 fprintf(stderr, "property %s not found in %s\n", propname, filename); in main() 133 if (rename(tmpname, filename)) { in main() 135 tmpname, filename, strerror(errno)); in main()
|
/bootable/recovery/applypatch/ |
D | applypatch.c | 34 static int LoadPartitionContents(const char* filename, FileContents* file); 52 int LoadFileContents(const char* filename, FileContents* file) { in LoadFileContents() argument 57 if (strncmp(filename, "MTD:", 4) == 0 || in LoadFileContents() 58 strncmp(filename, "EMMC:", 5) == 0) { in LoadFileContents() 59 return LoadPartitionContents(filename, file); in LoadFileContents() 62 if (stat(filename, &file->st) != 0) { in LoadFileContents() 63 printf("failed to stat \"%s\": %s\n", filename, strerror(errno)); in LoadFileContents() 70 FILE* f = fopen(filename, "rb"); in LoadFileContents() 72 printf("failed to open \"%s\": %s\n", filename, strerror(errno)); in LoadFileContents() 81 filename, (long)bytes_read, (long)file->size); in LoadFileContents() [all …]
|
D | imgdiff.c | 154 char* filename; // used for zip entries member 166 char* filename; member 185 unsigned char* ReadZip(const char* filename, in ReadZip() argument 189 if (stat(filename, &st) != 0) { in ReadZip() 190 printf("failed to stat \"%s\": %s\n", filename, strerror(errno)); in ReadZip() 195 FILE* f = fopen(filename, "rb"); in ReadZip() 197 printf("failed to read \"%s\" %s\n", filename, strerror(errno)); in ReadZip() 238 char* filename = malloc(nlen+1); in ReadZip() local 239 memcpy(filename, cd+46, nlen); in ReadZip() 240 filename[nlen] = '\0'; in ReadZip() [all …]
|
D | applypatch.h | 47 size_t FreeSpaceForFile(const char* filename); 59 int applypatch_check(const char* filename, 63 int LoadFileContents(const char* filename, FileContents* file); 64 int SaveFileContents(const char* filename, const FileContents* file);
|
/bootable/recovery/updater/ |
D | install.c | 772 const char* filename, in ApplyParsedPerms() argument 779 if (lsetfilecon(filename, parsed.selabel) != 0) { in ApplyParsedPerms() 781 filename, parsed.selabel, strerror(errno)); in ApplyParsedPerms() 792 if (chown(filename, parsed.uid, -1) < 0) { in ApplyParsedPerms() 794 filename, parsed.uid, strerror(errno)); in ApplyParsedPerms() 800 if (chown(filename, -1, parsed.gid) < 0) { in ApplyParsedPerms() 802 filename, parsed.gid, strerror(errno)); in ApplyParsedPerms() 808 if (chmod(filename, parsed.mode) < 0) { in ApplyParsedPerms() 810 filename, parsed.mode, strerror(errno)); in ApplyParsedPerms() 816 if (chmod(filename, parsed.dmode) < 0) { in ApplyParsedPerms() [all …]
|
/bootable/recovery/ |
D | screen_ui.h | 52 void ShowFile(const char* filename); 135 void LoadBitmap(const char* filename, GRSurface** surface); 136 void LoadBitmapArray(const char* filename, int* frames, GRSurface*** surface); 137 void LoadLocalizedBitmap(const char* filename, GRSurface** surface);
|
D | screen_ui.cpp | 361 void ScreenRecoveryUI::LoadBitmap(const char* filename, GRSurface** surface) { in LoadBitmap() argument 362 int result = res_create_display_surface(filename, surface); in LoadBitmap() 364 LOGE("missing bitmap %s\n(Code %d)\n", filename, result); in LoadBitmap() 368 void ScreenRecoveryUI::LoadBitmapArray(const char* filename, int* frames, GRSurface*** surface) { in LoadBitmapArray() argument 369 int result = res_create_multi_display_surface(filename, frames, surface); in LoadBitmapArray() 371 LOGE("missing bitmap %s\n(Code %d)\n", filename, result); in LoadBitmapArray() 375 void ScreenRecoveryUI::LoadLocalizedBitmap(const char* filename, GRSurface** surface) { in LoadLocalizedBitmap() argument 376 int result = res_create_localized_alpha_surface(filename, locale, surface); in LoadLocalizedBitmap() 378 LOGE("missing bitmap %s\n(Code %d)\n", filename, result); in LoadLocalizedBitmap() 608 void ScreenRecoveryUI::ShowFile(const char* filename) { in ShowFile() argument [all …]
|
D | verifier.h | 48 Certificate* load_keys(const char* filename, int* numKeys);
|
D | verifier.cpp | 328 load_keys(const char* filename, int* numKeys) { in load_keys() argument 332 FILE* f = fopen(filename, "r"); in load_keys() 334 LOGE("opening %s: %s\n", filename, strerror(errno)); in load_keys()
|
D | ui.h | 68 virtual void ShowFile(const char* filename) = 0;
|
D | recovery.cpp | 174 static void redirect_stdio(const char* filename) { in redirect_stdio() argument 176 freopen(filename, "a", stdout); setbuf(stdout, NULL); in redirect_stdio() 177 freopen(filename, "a", stderr); setbuf(stderr, NULL); in redirect_stdio()
|
/bootable/recovery/minadbd/ |
D | README.txt | 7 receives a single blob of data, writes it to a fixed filename, and
|