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

Apk crashes after Obfuscation #150

Closed Therahuls1n9h closed 1 year ago

Therahuls1n9h commented 1 year ago

Hello!

I have followed each and every step mentioned in the guide. The obfuscation process has done absolutely fine. I haven't encountered any errors in the process. But when I try to install the obfuscated.apk file on android, It throws "App not installed as package appears to be invalid" I have Python 3.10.6 and use the below command for obfuscation.

sudo docker run --rm -it -u $(id -u):$(id -g) -v "${PWD}":"/workdir" obfuscapk -o MethodOverload -o Reorder -o MethodRename -o RandomManifest -o Reflection -o AdvancedReflection -o ArithmeticBranch -o CallIndirection -o ConstStringEncryption -o DebugRemoval -o FieldRename -o Goto -o Rebuild -o NewSignature -o NewAlignment bd.apk

Screenshot_20230120_045820

I would appreciate your guide further on this.

Therahuls1n9h commented 1 year ago

update just put -o NewSignature, in the end, everything worked but none of rename obsfuscation working after build app is crashing just gray screen and it crashes

any help would be appreciated

ClaudiuGeorgiu commented 1 year ago

Hi, please have a look at troubleshooting, probably one of the renaming obfuscators is breaking your app.

Therahuls1n9h commented 1 year ago

Hey thanks for the reply i tried troubleshooting but none of rename obfuscation working it gets successfully build but the app crashes

Therahuls1n9h commented 1 year ago

so how can we use renaming obfuscation.

ClaudiuGeorgiu commented 1 year ago

so how can we use renaming obfuscation.

Renaming obfuscation can easily break the app. If the obfuscation ends without errors, but the app crashes during execution, there's nothing we can do without further investigation, sorry.

Therahuls1n9h commented 1 year ago

then i will close this issue