update: pass resourceIds through if they can't be deferenced

People do odd tricks with `aapt --rename-manifest-package` and androguard
doesn't handle them all.

* https://github.com/androguard/androguard/issues/503
This commit is contained in:
Hans-Christoph Steiner 2018-07-13 15:43:20 +02:00
parent b95e7b3737
commit a6248fd108

View file

@ -2002,7 +2002,7 @@ def ensure_final_value(packageName, arsc, value):
res_id = int('0x' + value[1:], 16)
res_id = arsc.get_id(packageName, res_id)[1]
returnValue = arsc.get_string(packageName, res_id)[1]
except ValueError:
except (ValueError, TypeError):
pass
return returnValue