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

Decompile result #73

Closed jonathanroze closed 3 years ago

jonathanroze commented 3 years ago

Hi,

I'm using Obfuscapk, that generate a folder named as my original APK, and finally make a new .APK

But when I inspect the folder named as my original APK I can see that the Small code is encrypted (variable names)

But if I decompile this new APK with apktool I see that older name of variable (unprotected).

Do you have ideas ?

My command:

python3 -m obfuscapk.cli -o Nop -o Goto -o RandomManifest -o Rebuild -o NewAlignment -o ClassRename -o ConstStringEncryption -o FieldRename -o LibEncryption -o MethodOverload -o NewSignature -o MethodRename -o Reorder -o ResStringEncryption -w /path/to/dev -d /path/to/dev/of.apk --keystore-file "/path/to/my-key.keystore" --keystore-password "pass" --key-alias "my-key-alias" --key-password "pass" "/path/to/apk/app-release.apk"

Hoppuc commented 3 years ago

The order of the obfuscators matter. In your case APK builds before executing rename obfuscators.

jonathanroze commented 3 years ago

Thank you @Hoppuc it works !