From 724f9155bf29cd35fd0ceae10f196bee82fe6e18 Mon Sep 17 00:00:00 2001 From: ksg Date: Tue, 2 Jul 2024 23:12:45 +0900 Subject: [PATCH] feat: Update main activity option in README.rst - Add new option `--main-activity` to specify the main activity --- README.rst | 15 ++++++++------- scripts/cli.py | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 7706506..35cb52d 100644 --- a/README.rst +++ b/README.rst @@ -59,13 +59,14 @@ Usage Patch an APK with the Frida gadget library Options: - --arch TEXT Target architecture of the device. (options: arm64, x86_64, arm, x86) - --use-aapt2 Use aapt2 instead of aapt. - --no-res Do not decode resources. - --skip-decompile Skip decompilation if desired. - --skip-recompile Skip recompilation if desired. - --version Show version and exit. - --help Show this message and exit. + --arch TEXT Target architecture of the device. (options: arm64, x86_64, arm, x86) + --main-activity TEXT Specify the main activity + --use-aapt2 Use aapt2 instead of aapt. + --no-res Do not decode resources. + --skip-decompile Skip decompilation if desired. + --skip-recompile Skip recompilation if desired. + --version Show version and exit. + --help Show this message and exit. How do I begin? ~~~~~~~~~~~~~~~~~~~~~~ diff --git a/scripts/cli.py b/scripts/cli.py index 4b0fa4b..7e67125 100644 --- a/scripts/cli.py +++ b/scripts/cli.py @@ -176,7 +176,7 @@ def modify_manifest(decompiled_path): ':extractNativeLibs="true"') android_manifest.write_text(txt, encoding="utf-8") -def inject_gadget_into_apk(apk_path:str, arch:str, decompiled_path:str, main_activity:str=None): +def inject_gadget_into_apk(apk_path:str, arch:str, decompiled_path:str, main_activity:str = None): """Inject frida gadget into an APK Args: