@@ -161,6 +161,8 @@ def showApkInstallItems():
161161
162162 if apk .has_key ('max' ):
163163 it .add_modifier ('alt' , "maxSdkVersion {0}" .format (apk ["max" ]))
164+ else :
165+ it .add_modifier ('alt' , "maxSdkVersion not set" )
164166
165167 if apk .has_key ('target' ):
166168 it .add_modifier ('ctrl' , "targetSdkVersion {0}" .format (apk ["target" ]))
@@ -277,6 +279,7 @@ def main(wf):
277279 v1Verified = False
278280 v2Verified = False
279281 v3Verified = False
282+ v4Verified = None
280283 error = []
281284 signer = []
282285
@@ -289,6 +292,8 @@ def main(wf):
289292 v2Verified = True
290293 elif info .startswith ("Verified using v3 scheme" ) and info .endswith ("true" ):
291294 v3Verified = True
295+ elif info .startswith ("Verified using v4 scheme" ):
296+ v4Verified = info .endswith ("true" )
292297 elif info .startswith ("ERROR" ):
293298 error .append (info )
294299
@@ -312,7 +317,10 @@ def main(wf):
312317 title = "Signature " + infos [0 ]
313318 if infos [0 ] == "Verifies" :
314319 title = "Signature verified"
315- subtitle = "Scheme V1 {0}, V2 {1}, V3 {2}" .format (v1Verified , v2Verified , v3Verified )
320+ if v4Verified != None :
321+ subtitle = "Scheme V1 {0}, V2 {1}, V3 {2} V4 {3}" .format (v1Verified , v2Verified , v3Verified , v4Verified )
322+ else :
323+ subtitle = "Scheme V1 {0}, V2 {1}, V3 {2}" .format (v1Verified , v2Verified , v3Verified )
316324 if verified :
317325 wf .add_item (title = title , subtitle = subtitle , icon = ICON_INFO , valid = False )
318326 else :
0 commit comments