Lines Matching refs:APK
32 can be found that match APK signatures, the filename will be
149 stored in a signed .apk)."""
172 class APK(object):
186 apk = zipfile.ZipFile(f, "r")
188 for info in apk.infolist():
191 pkcs7 = apk.read(info.filename)
237 d, z = common.UnzipTemp(filename, '*.apk')
243 if fn.endswith(".apk"):
246 apk = APK(fullname, displayname)
247 self.apks[apk.package] = apk
248 self.apks_by_basename[os.path.basename(apk.filename)] = apk
250 self.max_pkg_len = max(self.max_pkg_len, len(apk.package))
251 self.max_fn_len = max(self.max_fn_len, len(apk.filename))
262 for apk in self.apks.itervalues():
263 if apk.shared_uid:
264 apks_by_uid.setdefault(apk.shared_uid, []).append(apk)
268 for apk in apks[1:]:
269 if apk.certs != apks[0].certs:
278 for apk in apks:
279 print "%-*s [%s]" % (self.max_pkg_len, apk.package, apk.filename)
280 for cert in apk.certs:
291 apk = self.apks_by_basename[apk_filename]
292 name = ALL_CERTS.Get(apk.cert)
294 Push(apk.filename)
301 for apk in self.apks.itervalues():
302 for cert in apk.certs:
303 by_cert.setdefault(cert, []).append((apk.package, apk))
312 for _, apk in apks:
313 if apk.shared_uid:
314 print " %-*s %-*s [%s]" % (self.max_fn_len, apk.filename,
315 self.max_pkg_len, apk.package,
316 apk.shared_uid)
318 print " %-*s %-*s" % (self.max_fn_len, apk.filename,
319 self.max_pkg_len, apk.package)
341 print "%s [%s]: new APK (not in comparison target_files)" % (
345 print "%s [%s]: removed APK (only in comparison target_files)" % (
350 Banner("APK signing differences")