From 8d58ffaad7895d1c8592aab58f475ab773c82f56 Mon Sep 17 00:00:00 2001 From: Radiquum Date: Thu, 4 Sep 2025 15:17:04 +0500 Subject: [PATCH] fix: [BUG] value replace in `force_static_request_urls` will repeat after second path without re-decompiling apk Fixes #10 --- patches/force_static_request_urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/force_static_request_urls.py b/patches/force_static_request_urls.py index 1bcaa78..68e1a33 100644 --- a/patches/force_static_request_urls.py +++ b/patches/force_static_request_urls.py @@ -44,7 +44,7 @@ def apply(patch_config: PatchConfig_ForceStaticRequestUrls) -> bool: path = f"{config['folders']['decompiled']}/{value['file_path']}" lines = get_smali_lines(path) lines = find_and_replace_smali_line( - lines, value["value"], f"{patch_config['base_url']}{value['value']}" + lines, f'value = "{value['value']}"', f'value = "{patch_config['base_url']}{value['value']}"' ) save_smali_lines(path, lines) log.debug(f"[FORCE_STATIC_REQUEST_URLS] file {path} has been modified")