Skip to content

Commit

Permalink
Beta: move dex out of command
Browse files Browse the repository at this point in the history
  • Loading branch information
Veha0001 committed Jan 28, 2025
1 parent a6c039f commit c1144d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ This is a `config.json` example file:
"DemodAPK": [
{
"log": 1,
"dex": true,
"package": "com.coconut.bottle",
"command": {
"editor_jar": "~/.local/bin/APKEditor*.jar",
"dex": true,
"begin": [
"./Patcher"
],
Expand Down
8 changes: 4 additions & 4 deletions autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,19 +649,19 @@ def main():
for item in config.get("DemodAPK", []):
if item.get("package") == package_orig_name or apk_dir.endswith(".apk"):
update_config = item.get("update", {})
log_level = item.get("log", 0)
log_level = item.get("log", False)
manifest_edit_level = update_config.get("level", 0)
facebook_appid = update_config.get("facebook", {}).get("app_id", "")
fb_client_token = update_config.get("facebook", {}).get("client_token", "")
fb_login_protocol_scheme = update_config.get("facebook", {}).get("login_protocol_scheme", "")
new_package_name = update_config.get("package", "")
new_package_path = "L" + new_package_name.replace(".", "/")
editor_jar = item.get("command", {}).get("editor_jar", "")
dex_option = item.get("command", {}).get("dex", False)
dex_option = item.get("dex", False)

if log_level == 0 and dex_folder_exists:
if log_level == True and dex_folder_exists:
msg.warning("Dex folder found. Some functions will be disabled.", bold=True, underline=True)

# Decode APK if input is an APK file and command is present
if "command" in item and apk_dir.endswith(".apk"):
if not os.path.exists(decoded_dir):
Expand Down

0 comments on commit c1144d6

Please sign in to comment.