(home | about | stats)

pwyky: RandomLore

Don't Obfuscate Native Methods

If you're getting a "UnsatisfiedLinkError" and the method name is not in your native DLL, you're probably obfuscating a native method. This will not work, as obfuscators depend on being able to change the name of the obfuscated method and all the callers of that method. Obviously, the obfuscator can't change your native code to be the new obfuscated method name (if it can, let me know what you're using!) so the VM fails to find the native method.

To avoid this, I created a simple text file "skip.classes" and put in a regex that evaluates to the classes that contain native methods. Then in my build script:

skip=`cat skip.classes` obfiles=`find . -name "*.class" | egrep -v "$skip"` jhyde $obfiles

Force a 3Com 3c59x Adapter to be Full Duplex

Change modules.conf or conf.modules, which ever is in your etc:

alias eth0 3c59x options 3c59x options=4 full_duplex=1

www.mobilitytech.com owner. This is a pwyky site.