Lines Matching refs:read
39 file_out.write(bootimage.read(size))
75 kernel_ramdisk_second_info = unpack('9I', args.boot_img.read(9 * 4))
86 print_os_version_patch_level(unpack('I', args.boot_img.read(1 * 4))[0])
95 product_name = cstr(unpack('16s', args.boot_img.read(16))[0].decode())
97 cmdline = cstr(unpack('512s', args.boot_img.read(512))[0].decode())
100 cmdline = cstr(unpack('1536s', args.boot_img.read(1536))[0].decode())
104 args.boot_img.read(32) # ignore SHA
108 args.boot_img.read(1024))[0].decode())
123 recovery_dtbo_size = unpack('I', args.boot_img.read(1 * 4))[0]
125 recovery_dtbo_offset = unpack('Q', args.boot_img.read(8))[0]
127 boot_header_size = unpack('I', args.boot_img.read(4))[0]
132 dtb_size = unpack('I', args.boot_img.read(4))[0]
134 dtb_load_address = unpack('Q', args.boot_img.read(8))[0]
177 kernel_ramdisk_info = unpack('5I', args.boot_img.read(5 * 4))
183 cmdline = cstr(unpack('2048s', args.boot_img.read(2048))[0].decode())
186 tags_load_address = unpack('I', args.boot_img.read(1 * 4))[0]
189 product_name = cstr(unpack('16s', args.boot_img.read(16))[0].decode())
192 dtb_size = unpack('2I', args.boot_img.read(2 * 4))[1]
194 dtb_load_address = unpack('Q', args.boot_img.read(8))[0]
216 boot_magic = unpack('8s', args.boot_img.read(8))[0].decode()