use global constant for the 'xmlns:android' XML namespace

This commit is contained in:
Hans-Christoph Steiner 2018-08-29 17:11:41 +02:00
parent 3e1d313b7c
commit cc94ebca30
2 changed files with 8 additions and 7 deletions

View file

@ -1237,7 +1237,7 @@ def scan_apk_androguard(apk, apkfile):
androidmanifest_xml = apkobject.xml['AndroidManifest.xml']
if len(xml.nsmap) > 0:
# one of them surely will be the Android one, or its corrupt
xmlns = '{http://schemas.android.com/apk/res/android}'
xmlns = common.XMLNS_ANDROID
else:
# strange but sometimes the namespace is blank. This seems to
# only happen with the Bromite/Chromium APKs