Lines Matching defs:info

108     } else if(!strcmp(item,"info")) {
109 fn = "android-info.txt";
189 int match_fastboot(usb_ifc_info *info)
191 return match_fastboot_with_serial(info, serial);
194 int match_fastboot_with_serial(usb_ifc_info *info, const char *local_serial)
196 if(!(vendor_id && (info->dev_vendor == vendor_id)) &&
197 (info->dev_vendor != 0x18d1) && // Google
198 (info->dev_vendor != 0x8087) && // Intel
199 (info->dev_vendor != 0x0451) &&
200 (info->dev_vendor != 0x0502) &&
201 (info->dev_vendor != 0x0fce) && // Sony Ericsson
202 (info->dev_vendor != 0x05c6) && // Qualcomm
203 (info->dev_vendor != 0x22b8) && // Motorola
204 (info->dev_vendor != 0x0955) && // Nvidia
205 (info->dev_vendor != 0x413c) && // DELL
206 (info->dev_vendor != 0x2314) && // INQ Mobile
207 (info->dev_vendor != 0x0b05) && // Asus
208 (info->dev_vendor != 0x0bb4)) // HTC
210 if(info->ifc_class != 0xff) return -1;
211 if(info->ifc_subclass != 0x42) return -1;
212 if(info->ifc_protocol != 0x03) return -1;
215 if (local_serial && (strcmp(local_serial, info->serial_number) != 0 &&
216 strcmp(local_serial, info->device_path) != 0)) return -1;
220 int list_devices_callback(usb_ifc_info *info)
222 if (match_fastboot_with_serial(info, NULL) == 0) {
223 char* serial = info->serial_number;
224 if (!info->writable) {
233 } else if (!info->device_path) {
236 printf("%-22s fastboot %s\n", serial, info->device_path);
633 data = unzip_file(zip, "android-info.txt", &sz);
639 die("update package has no android-info.txt or android-product.txt");
704 fname = find_item("info", product);
705 if (fname == 0) die("cannot find android-info.txt");
707 if (data == 0) die("could not load android-info.txt: %s", strerror(errno));