Lines Matching defs:info
91 } else if(!strcmp(item,"info")) {
92 fn = "android-info.txt";
149 int match_fastboot(usb_ifc_info *info)
151 if(!(vendor_id && (info->dev_vendor == vendor_id)) &&
152 (info->dev_vendor != 0x18d1) && // Google
153 (info->dev_vendor != 0x0451) &&
154 (info->dev_vendor != 0x0502) &&
155 (info->dev_vendor != 0x0fce) && // Sony Ericsson
156 (info->dev_vendor != 0x05c6) && // Qualcomm
157 (info->dev_vendor != 0x22b8) && // Motorola
158 (info->dev_vendor != 0x0955) && // Nvidia
159 (info->dev_vendor != 0x413c) && // DELL
160 (info->dev_vendor != 0x2314) && // INQ Mobile
161 (info->dev_vendor != 0x0bb4)) // HTC
163 if(info->ifc_class != 0xff) return -1;
164 if(info->ifc_subclass != 0x42) return -1;
165 if(info->ifc_protocol != 0x03) return -1;
168 if (serial && strcmp(serial, info->serial_number) != 0) return -1;
172 int list_devices_callback(usb_ifc_info *info)
174 if (match_fastboot(info) == 0) {
175 char* serial = info->serial_number;
176 if (!info->writable) {
455 data = unzip_file(zip, "android-info.txt", &sz);
461 die("update package has no android-info.txt or android-product.txt");
517 fname = find_item("info", product);
518 if (fname == 0) die("cannot find android-info.txt");
520 if (data == 0) die("could not load android-info.txt");