From 52d2f5c3a70f204e8b896998f9cd4bfb51ff7d4b Mon Sep 17 00:00:00 2001 From: FantasyK <37212867+waynecanfly@users.noreply.github.com> Date: Fri, 29 Dec 2023 18:55:08 +0800 Subject: [PATCH] Update app.py During the use, it was discovered that the invocation method here seems to be that of a very old version of Androguard, which is no longer maintained. Therefore, I have modified the way references are made here to make the current version easier to deploy and use. --- droidbot/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/droidbot/app.py b/droidbot/app.py index dfb2579..a091adb 100644 --- a/droidbot/app.py +++ b/droidbot/app.py @@ -25,7 +25,7 @@ def __init__(self, app_path, output_dir=None): if not os.path.isdir(output_dir): os.makedirs(output_dir) - from androguard.core.bytecodes.apk import APK + from androguard.core.apk import APK self.apk = APK(self.app_path) self.package_name = self.apk.get_package() self.app_name = self.apk.get_app_name()