How to obfuscate an Android library (.jar file) using Proguard in Eclipse

后端 未结 5 1832
青春惊慌失措
青春惊慌失措 2020-12-01 08:23

I have seen many posts about how to obfuscate an Android application (.apk file) using ProGuard in Eclipse. Also see http://developer.android.com/guide/developing/tools/pro

5条回答
  •  执念已碎
    2020-12-01 09:02

    I use an indirect way to generate a exported android obfuscate jar, my way is:

    1. export a signed apk use eclipse

    2. unzip the apk, find the classes.dex

    3. use dex2jar.bat ,change the classes.dex to a jar

    4. unzip the jar and delete the class you do not need,then zip it and change the file name to XXX.jar

    5. Then you use this jar in other project,or give it to customer, it is obfuscate!

    I am sure this will help you! Enjoy it!

提交回复
热议问题