Home | History | Annotate | Download | only in releasetools

Lines Matching refs:APK

32       can be found that match APK signatures, the filename will be
143 stored in a signed .apk)."""
166 class APK(object):
184 apk = zipfile.ZipFile(f, "r")
186 for info in apk.infolist():
189 pkcs7 = apk.read(info.filename)
238 d, z = common.UnzipTemp(filename, '*.apk')
244 if fn.endswith(".apk"):
247 apk = APK(fullname, displayname)
248 self.apks[apk.package] = apk
249 self.apks_by_basename[os.path.basename(apk.filename)] = apk
251 self.max_pkg_len = max(self.max_pkg_len, len(apk.package))
252 self.max_fn_len = max(self.max_fn_len, len(apk.filename))
263 for apk in self.apks.itervalues():
264 if apk.shared_uid:
265 apks_by_uid.setdefault(apk.shared_uid, []).append(apk)
269 for apk in apks[1:]:
270 if apk.certs != apks[0].certs:
279 for apk in apks:
280 print "%-*s [%s]" % (self.max_pkg_len, apk.package, apk.filename)
281 for cert in apk.certs:
292 apk = self.apks_by_basename[apk_filename]
293 name = ALL_CERTS.Get(apk.cert)
295 Push(apk.filename)
302 for apk in self.apks.itervalues():
303 for cert in apk.certs:
304 by_cert.setdefault(cert, []).append((apk.package, apk))
313 for _, apk in apks:
314 if apk.shared_uid:
315 print " %-*s %-*s [%s]" % (self.max_fn_len, apk.filename,
316 self.max_pkg_len, apk.package,
317 apk.shared_uid)
319 print " %-*s %-*s" % (self.max_fn_len, apk.filename,
320 self.max_pkg_len, apk.package)
342 print "%s [%s]: new APK (not in comparison target_files)" % (
346 print "%s [%s]: removed APK (only in comparison target_files)" % (
351 Banner("APK signing differences")