Closed wiredroid closed 2 years ago
Try using the --use-aapt2
flag
apktool b shealth/ --output out.apk --use-aapt2
No difference it's on the latest version of S Health from APK mirror.
~/SamsungAppsPatcher/decompiled $ apktool b shealth/ --output out.apk --use-aapt2
I: Using Apktool 2.6.1
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
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_18186411071765651377133333703238989527.tmp[1]: ELF: inaccessible or not found
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_18186411071765651377133333703238989527.tmp[47]: syntax error: unexpected ')'
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/tmp/brut_util_Jar_18186411071765651377133333703238989527.tmp, compile, --dir, /data/data/com.termux/files/home/SamsungAppsPatcher/decompiled/shealth/res, --legacy, -o, /data/data/com.termux/files/home/SamsungAppsPatcher/decompiled/shealth/build/resources.zip]-
I can't reproduce the error on my side. Can you try decompiling and recompiling sheath without patches?
./wearable-patcher.sh shealth --no-patch
cd decompiled
apktool b shealth/ --output out.apk --use-aapt2
Yes the same error still occurs without patches applied. It's looking for some temp file it can't find.
I can't say I know how termux works, maybe try reinstalling termux? Regardless, this is an issue with apktool/termux so I'm going to close this issue
Describe the bug After running ./wearable-patcher.sh shealth
Apktool build error
apktool --version
: 2.6.1