Skip to content

Commit abc8665

Browse files
committed
Use aapt2 by default
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.
1 parent c74796b commit abc8665

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

objection/commands/mobile_packages.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def patch_ios_ipa(source: str, codesign_signature: str, provision_file: str, bin
9999
def patch_android_apk(source: str, architecture: str, pause: bool, skip_cleanup: bool = True,
100100
enable_debug: bool = True, gadget_version: str = None, skip_resources: bool = False,
101101
network_security_config: bool = False, target_class: str = None,
102-
use_aapt2: bool = False, gadget_name: str = 'libfrida-gadget.so',
102+
use_aapt2: bool = True, gadget_name: str = 'libfrida-gadget.so',
103103
gadget_config: str = None, script_source: str = None,
104104
ignore_nativelibs: bool = False, manifest: str = None) -> None:
105105
"""

objection/console/cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ def patchipa(source: str, gadget_version: str, codesign_signature: str, provisio
266266
@click.option('--skip-resources', '-D', is_flag=True, default=False,
267267
help='Skip resource decoding as part of the apktool processing.', show_default=True)
268268
@click.option('--target-class', '-t', help='The target class to patch.', default=None)
269-
@click.option('--use-aapt2', '-2', is_flag=True, default=False,
270-
help='Use the aapt2 binary instead of aapt as part of the apktool processing.', show_default=True)
269+
@click.option('--use-aapt2', '-2', is_flag=True, default=True,
270+
help='Use the aapt2 binary instead of aapt au part of the apktool processing.', show_default=True)
271271
@click.option('--gadget-name', '-g', default='libfrida-gadget.so',
272272
help=(
273273
'Name of the gadget library. Can be named whatever you want to dodge anti-frida '

0 commit comments

Comments
 (0)