ClaudiuGeorgiu / Obfuscapk

An automatic obfuscation tool for Android apps that works in a black-box fashion, supports advanced obfuscation features and has a modular architecture easily extensible with new techniques
MIT License
1.09k stars 285 forks source link

Error during obfuscation: [Errno 8] Exec format error #134

Closed KhanhXu closed 2 years ago

KhanhXu commented 2 years ago

Hi, I get this error.

Running obfuscators (Rebuild): 0%| |[00:00<?, ?obfuscator/s]06/05/2022 10:29:50> [ERROR][obfuscapk.tool.Apktool][decode()] Error during decoding: [Errno 8] Exec format error: '/Data/Obfuscate/tool/apktool.jar' 06/05/2022 10:29:50> [ERROR][obfuscapk.obfuscation][decode_apk()] Error during apk decoding: [Errno 8] Exec format error: '/Data/Obfuscate/tool/apktool.jar' 06/05/2022 10:29:50> [ERROR][yapsy_loaded_plugin_Rebuild_1.rebuild.Rebuild][obfuscate()] Error during execution of "Rebuild" obfuscator: [Errno 8] Exec format error: '/Data/Obfuscate/tool/apktool.jar' 06/05/2022 10:29:50> [CRITICAL][obfuscapk.main][perform_obfuscation()] Error during obfuscation: [Errno 8] Exec format error: '/Data/Obfuscate/tool/apktool.jar'

Can you help me? Thanks!

ClaudiuGeorgiu commented 2 years ago

Hi, what's the output if you type apktool in the terminal? From the error it looks like there is something wrong with how you installed apktool.

KhanhXu commented 2 years ago

I replaced code.

Screen Shot 2022-05-06 at 13 34 28
ClaudiuGeorgiu commented 2 years ago

Please install apktool properly (https://ibotpeaches.github.io/Apktool/install/) and the original code will work. I'm not against changing the code, you can absolutely do it, but then you will have to find a solution on your own 😉

KhanhXu commented 2 years ago

Thanks ClaudiuGeorgiu!