niklashigi / apk-mitm

🤖 A CLI application that automatically prepares Android APK files for HTTPS inspection
https://npm.im/apk-mitm
MIT License
3.9k stars 349 forks source link

error in ubuntu and termux but not in windows, why? #150

Open marioeivissa opened 8 months ago

marioeivissa commented 8 months ago

I: Using Apktool 2.6.1 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 resources has changed... I: Building resources... brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 2): [/tmp/brut_util_Jar_70221136490252545111627714710170007115.tmp, c> W: /tmp/brut_util_Jar_70221136490252545111627714710170007115.tmp: 1: ^?ELF^B^A^A^B: not found W: /tmp/brut_util_Jar_70221136490252545111627714710170007115.tmp: 47: Syntax error: ")" unexpected

marioeivissa commented 8 months ago

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 resources has changed... I: Building resources... brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 2): [/tmp/brut_util_Jar_7144564782857292914248573030046742> W: /tmp/brut_util_Jar_71445647828572929142485730300467423583.tmp: 4: Syntax error: Unterminated quoted string

this is with other version of apktool, but The new error im experiencing appears to be related to a problem during the execution of a command in the build process. Specifically, there appears to be a bug in handling a string with unterminated quotes. so anybody can tell me how can i fix this error? i dont know with process are creating the .tmp so i cant fix it

bes-internal commented 1 month ago

cmd is weird env, because there are different line breaks between win and linux. Use WLS2!