Skip to content

Commit

Permalink
Beta: fix package None var
Browse files Browse the repository at this point in the history
  • Loading branch information
Veha0001 committed Jan 26, 2025
1 parent 605d66e commit b77b688
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,11 @@ def main():
dex_folder_exists = check_for_dex_folder(apk_dir)
decoded_dir = apk_dir

if apk_dir.endswith(".apk"):
package_orig_name, package_orig_path = None, None
else:
package_orig_name, package_orig_path = extract_package_info(os.path.join(apk_dir, "AndroidManifest.xml"))

for item in config.get("DemodAPK", []):
if item.get("package") == package_orig_name or apk_dir.endswith(".apk"):
update_config = item.get("update", {})
Expand Down

0 comments on commit b77b688

Please sign in to comment.