Skip to content

Commit 3d6161b

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 7a678f8 commit 3d6161b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

objection/commands/mobile_packages.py

Lines changed: 1 addition & 1 deletion
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 = True, manifest: str = None, skip_signing: bool = False) -> None:
105105
"""

objection/console/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ def patchipa(source: str, gadget_version: str, codesign_signature: str, provisio
268268
@click.option('--skip-signing', '-C', is_flag=True, default=False,
269269
help='Skip signing the apk file.', show_default=False)
270270
@click.option('--target-class', '-t', help='The target class to patch.', default=None)
271-
@click.option('--use-aapt2', '-2', is_flag=True, default=False,
272-
help='Use the aapt2 binary instead of aapt as part of the apktool processing.', show_default=True)
271+
@click.option('--use-aapt2', '-2', is_flag=True, default=True,
272+
help='Use the aapt2 binary instead of aapt au part of the apktool processing.', show_default=True)
273273
@click.option('--gadget-name', '-g', default='libfrida-gadget.so',
274274
help=(
275275
'Name of the gadget library. Can be named whatever you want to dodge anti-frida '

0 commit comments

Comments
 (0)