基于androguard/androguard
使用python扫描apk文件
from androguard.core.bytecodes import apk
from collections import deque
def analyze(apk_path):
string_activities = '*'
a = apk.APK(apk_path)
for tag in [
"activity",
"activity-alias",
"service",
"receiver",
"provider",
]:
print("type:", tag)
for item in a.find_tags(tag):
print(item.get(a._ns("name"), ""))
if __name__ == "__main__":
analyze('taobao4android_1609139227984.apk')
网友评论