Skip to content

Commit

Permalink
feat: Update main activity option in README.rst
Browse files Browse the repository at this point in the history
- Add new option `--main-activity` to specify the main activity
  • Loading branch information
ksg97031 committed Jul 2, 2024
1 parent f06b676 commit 724f915
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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?
~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion scripts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 724f915

Please sign in to comment.