5

How can I use DexGuard to obfuscate my apk? I know how to enable proguard and its customization. Can anyone suggest a good tutorial?

Deniz
  • 12,332
  • 10
  • 44
  • 62

3 Answers3

2

You also could try DexProtector (http://dexprotector.com) out, it has trial period. And it is much easier in configuration than DexGuard.

N.B. I am Licel's CEO, thus I am affiliated with DexProtector.

Ivan Kinash
  • 884
  • 7
  • 9
2

DexGuard works in a similar way to Proguard and handily the config for Proguard is compatible with DexGuard so if your already using ProGuard it's a simple upgrade. Once you purchase DexGuard in the download bundle there's a bunch of sample apps with defined DexGuard configuration for all of the features i.e String/class encryption, tamper detection etc. I started by copying the config from these sample apps and then started combining some of the features to further harden.

a happy DexGuard customer

scottyab
  • 23,621
  • 16
  • 94
  • 105
  • Hi sorry for random comment, How do you personally customize dexguard for your project? I.e. how what files do you need to change the config etc in? thanks – user4125772 Nov 27 '14 at 15:31
  • 1
    In my gradle project i have a dexgaurd.pro file with my customisations. But this is covered in the docs, docs/index.html check the `getting started` section. – scottyab Nov 27 '14 at 15:37
  • Thanks, yeah I can see this. I am using Ant to build my project but it is developed in eclipse, what file should I use to set up custom configs? Is it the custom_rules.xml? – user4125772 Nov 27 '14 at 15:41
  • 1
    typically it's dexguard-project.txt for ant builds, but check the /samples the projects in there should be a good starting point – scottyab Nov 27 '14 at 15:45
  • Thanks for your help, do you know what the custom rules file is used for? Also, how does dexguard carry out any obfuscation automatically? I ask as my dexguard-project.txt file is currently only filled with comments yet my output is still obfuscated. – user4125772 Nov 27 '14 at 16:15
  • If you look in your `build.xml` file, you'll see it loads in the `custom_rules.xml` file (if it exists) which in turn execute the dexguard tasks. obfuscation is enabled by default, you can disable with `-dontobfuscate` in your dexgaurd-project.txt. – scottyab Nov 27 '14 at 17:14
0

To use DexGuard you first need to buy a license.
Take a look at their pricing.

Simon Marquis
  • 7,248
  • 1
  • 28
  • 43
  • 17
    Link is now invalid. Pricing now seems to be "Ask Me" which usually means expensive. – Kuffs Apr 19 '16 at 07:13