Alessandro Lacava

on Designing and Developing Software. In love with Functional Programming.

Using Proguard Obfuscator Through the Wireless Toolkit

When you develop an application you might want to protect your code. A good way to accomplish this is using obfuscation. Proguard is a good open-source tool you can use for this purpose. To use it through the Wireless Toolkit (WTK), after downloading Proguard, you need to tell the WTK where it can find the obfuscator. You can do that by editing the file ktools.properties that you can find under %WTK%wtklibWindows, where %WTK% is the root directory of the Wireless Toolkit. Basically, you just need to add the two following lines to the aforementioned file:

1
2
obfuscator.runner.class.name: proguard.wtk.ProGuardObfuscator
obfuscator.runner.classpath: proguard_path

where proguard_path is the absolute path to the proguard.jar file that you can find under the lib directory of proguard’s home folder. So the proguard_path will be (under a Windows system) something like: C:\Programs\proguard\lib\proguard.jar. After that, creating obfuscated code using the WTK is as easy as selecting Project->Package->Create Obfuscated Package from the WTK menu

Comments