Lines Matching refs:filename
118 if info.filename.endswith(".apk"):
119 name = os.path.basename(info.filename)
149 maxsize = max([len(os.path.basename(i.filename))
151 if i.filename.endswith('.apk')])
172 if info.filename.startswith("IMAGES/"):
175 data = input_tf_zip.read(info.filename)
178 if (info.filename == "META/misc_info.txt" and
182 elif (info.filename == "BOOT/RAMDISK/verity_key" and
186 write_to_temp(info.filename, info.external_attr, new_data)
187 elif (info.filename.startswith("BOOT/") or
188 info.filename.startswith("RECOVERY/") or
189 info.filename.startswith("META/") or
190 info.filename == "SYSTEM/etc/recovery-resource.dat"):
191 write_to_temp(info.filename, info.external_attr, data)
193 if info.filename.endswith(".apk"):
194 name = os.path.basename(info.filename)
204 elif info.filename in ("SYSTEM/build.prop",
207 print "rewriting %s:" % (info.filename,)
210 if info.filename == "RECOVERY/RAMDISK/default.prop":
211 write_to_temp(info.filename, info.external_attr, new_data)
212 elif info.filename.endswith("mac_permissions.xml"):
213 print "rewriting %s with new keys." % (info.filename,)
216 elif info.filename in ("SYSTEM/recovery-from-boot.p",
220 info.filename in ("RECOVERY/RAMDISK/res/keys",
225 info.filename == "META/misc_info.txt"):
228 info.filename == "BOOT/RAMDISK/verity_key"):
279 "with %s.x509.pem." % (e.filename, e.strerror, old, new)