Lines Matching refs:apk
203 with zipfile.ZipFile(full_filename) as apk:
204 for info in apk.infolist():
208 pkcs7 = apk.read(filename)
338 apk = APK(fullname, displayname)
339 self.apks[apk.filename] = apk
340 self.apks_by_basename[os.path.basename(apk.filename)] = apk
342 self.max_pkg_len = max(self.max_pkg_len, len(apk.package))
343 self.max_fn_len = max(self.max_fn_len, len(apk.filename))
349 for apk in self.apks.values():
350 if apk.shared_uid:
351 apks_by_uid.setdefault(apk.shared_uid, []).append(apk)
355 for apk in apks[1:]:
356 if apk.certs != apks[0].certs:
365 for apk in apks:
366 print("%-*s [%s]" % (self.max_pkg_len, apk.package, apk.filename))
367 for digest in apk.cert_digests:
378 apk = self.apks_by_basename[apk_filename]
380 for digest in apk.cert_digests:
386 Push(apk.filename)
393 for apk in self.apks.values():
394 for digest in apk.cert_digests:
395 by_digest.setdefault(digest, []).append((apk.package, apk))
404 for _, apk in apks:
405 if apk.shared_uid:
406 print(" %-*s %-*s [%s]" % (self.max_fn_len, apk.filename,
407 self.max_pkg_len, apk.package,
408 apk.shared_uid))
410 print(" %-*s %s" % (self.max_fn_len, apk.filename, apk.package))