I have and Android app where various people test both development builds and release builds. The development builds are not obfuscated and I would like to be able to programatically determine at runtime if the application has been obfuscated or not.
Is there a way to do this?
Here’s one idea: add a class to your code base that is not used at all. Proguard will obfuscate and/or remove it. So, loading it via reflection in the app ought to cause
ClassNotFoundExceptionif it’s been run through ProGuard.