How to escape characters in regex of Androguard?

118 views Asked by At

I am using Androguard to do a static analysis of an apk file. I am using

a, d, dx = AnalyzeAPK("/app-debug.apk", decompiler="dad")

to decompile the apk. Then I am doing

d.get_regex_strings(".*PackageManager.NameNotFoundException.*").

I know that the string PackageManager.NameNotFoundException must be in there because it is my own application for which I have the source code. However, Androguard tells me that it could not find the string.

I also tried variations, such as

d.get_regex_strings(".*PackageManager\.NameNotFoundException.*")

or

d.get_regex_strings(".*PackageManager.*NameNotFoundException.*").

The problem seems to be the dot in the middle between PackageManager and NameNotFoundException. So, how do I escape characters in Androguard?

0

There are 0 answers