iBotPeaches / Apktool

A tool for reverse engineering Android apk files

Home Page:https://apktool.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.

TechnoIndian opened this issue · comments

Information

  1. Apktool Version (2.9.3) -
  2. Operating System (Termux,Android) -
  3. APK From? (Jar from github) -
  4. Java Version (17-internal) -

encoding-aapt.failed.log

I: Using Apktool 2.9.3
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_166296468087419377422651239972314854954.tmp[235]: syntax error: unexpected '('
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/tmp/brut_util_Jar_166296468087419377422651239972314854954.tmp, compile, --dir, /data/data/com.termux/files/usr/tmp/apk-mitm-7da17574913f61fee42c6514e4ebba90/decode/res, --legacy, -o, /data/data/com.termux/files/usr/tmp/apk-mitm-7da17574913f61fee42c6514e4ebba90/decode/build/resources.zip]```

### encoding-aapt2.failed.log

```logs
I: Using Apktool 2.9.3
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether resources has changed...
I: Building resources...
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/tmp/brut_util_Jar_14362068881115375334613972798598968693.tmp, compile, --dir, /data/data/com.termux/files/usr/tmp/apk-mitm-7da17574913f61fee42c6514e4ebba90/decode/res, --legacy, -o, /data/data/com.termux/files/usr/tmp/apk-mitm-7da17574913f61fee42c6514e4ebba90/decode/build/resources.zip]
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_14362068881115375334613972798598968693.tmp[235]: syntax error: unexpected '('

Steps to Reproduce

  1. apktool 2.9.3

Frameworks

No FrameWorks
(orignal.apk)

APK

IMG_20240603_154419
IMG_20240603_154344

Questions to ask before submission

  1. Whenever the app is compiled after patching it, it always shows an error meaning that compile failed. can you fix it by updating it

  2. if i use it with 'ApkTool M' then it works but in Termux it always fails why is that

Sorry on Android isn't support. As you can see the aapt2/aapt binaries are not supported on the architecture.