2017-06-05 66 views

回答

0

我找到一种方式来获得该值:

from androguard.core.bytecodes.apk import APK 

a = APK(path_to_apk)  
r = a.get_android_resources() 
location = int('7F0A02D1', 16) 
resolved_strings = r.get_resolved_strings() 
package_name = a.get_package() 
value = resolved_strings.get(package_name, {}).get('DEFAULT', {}).get(location, '') 

“默认”可能是其它值,看看自己。

相关问题