Skip to content

Commit

Permalink
Use aapt2 by default
Browse files Browse the repository at this point in the history
From https://developer.android.com/studio/command-line/aapt2

> Prior to AAPT2, AAPT was the default version of Android Asset Packaging Tool and it has now been deprecated. Although AAPT2 should immediately work with older projects, this section describes some behavior changes that you should be aware of.
  • Loading branch information
Phyks committed Nov 12, 2022
1 parent c74796b commit abc8665
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion objection/commands/mobile_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def patch_ios_ipa(source: str, codesign_signature: str, provision_file: str, bin
def patch_android_apk(source: str, architecture: str, pause: bool, skip_cleanup: bool = True,
enable_debug: bool = True, gadget_version: str = None, skip_resources: bool = False,
network_security_config: bool = False, target_class: str = None,
use_aapt2: bool = False, gadget_name: str = 'libfrida-gadget.so',
use_aapt2: bool = True, gadget_name: str = 'libfrida-gadget.so',
gadget_config: str = None, script_source: str = None,
ignore_nativelibs: bool = False, manifest: str = None) -> None:
"""
Expand Down
4 changes: 2 additions & 2 deletions objection/console/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ def patchipa(source: str, gadget_version: str, codesign_signature: str, provisio
@click.option('--skip-resources', '-D', is_flag=True, default=False,
help='Skip resource decoding as part of the apktool processing.', show_default=True)
@click.option('--target-class', '-t', help='The target class to patch.', default=None)
@click.option('--use-aapt2', '-2', is_flag=True, default=False,
help='Use the aapt2 binary instead of aapt as part of the apktool processing.', show_default=True)
@click.option('--use-aapt2', '-2', is_flag=True, default=True,
help='Use the aapt2 binary instead of aapt au part of the apktool processing.', show_default=True)
@click.option('--gadget-name', '-g', default='libfrida-gadget.so',
help=(
'Name of the gadget library. Can be named whatever you want to dodge anti-frida '
Expand Down

0 comments on commit abc8665

Please sign in to comment.