Skip to content

Commit

Permalink
Patching xapks as merged apks
Browse files Browse the repository at this point in the history
  • Loading branch information
alterakey committed Sep 17, 2024
1 parent e8f5128 commit 2ac80cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trueseeing/app/cmd/android/engage.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ async def _engage_tamper_apply(self, args: deque[str]) -> None:
from trueseeing.core.android.asm import APKAssembler
from trueseeing.core.android.tools import move_apk

if apk.endswith('.xapk'):
ui.warn('patching xapk as merged apk')
apk = apk.replace('.xapk', '.apk')

origapk = apk.replace('.apk', '.apk.orig')

if os.path.exists(origapk) and not cmd.endswith('!'):
Expand Down

0 comments on commit 2ac80cb

Please sign in to comment.