Proguard and reflection in Android

SOLVED For others that are having this problem you need to add the following to proguard.cnf -keep public class * extends com.yoursite.android.yourappname.YourClassName -keepclassmembers class * extends com.yoursite.android.yourappname.YourClassName{ public <init>(android.content.Context); } The first keep tells proguard to not obfuscate class names that extend YourClassName The second one says to keep the constructor name (<init> means constructor) … Read more

Should you obfuscate a commercial .Net application?

You may not have to buy a tool – Visual Studio.NET comes with a community version of Dotfuscator. Other free obfuscation tools are listed here, and they may meet your needs. It’s possible that the obfuscated binaries aren’t safe from reverse engineering, just like it’s possible that your bike lock might be breakable/pickable. However, it’s … Read more

Proguard keep class names?

Use the -keepnames option in your proguard.cfg Refer to the manual https://www.guardsquare.com/manual/configuration/usage#keepoptions -keepnames class_specification Short for -keep,allowshrinking class_specification Specifies classes and class members whose names are to be preserved, if they aren’t removed in the shrinking phase. For example, you may want to keep all class names of classes that implement the Serializable interface, so … Read more

Why and how does ([![]]+[][[]])[+!+[]+[+[]]] evaluate to the letter “i”? [duplicate]

Your cryptic part isn’t all that cryptic if you rewrite it a little: [][”] [] will be coerced into a string because it isn’t an integer, so you’re looking for a property of [] with the name ” (an empty string). You’ll just get undefined, as there is no property with that name. As for … Read more

Making email addresses safe from bots on a webpage? [closed]

Working with content and attr in CSS: .cryptedmail:after { content: attr(data-name) “@” attr(data-domain) “.” attr(data-tld); } <a href=”#” class=”cryptedmail” data-name=”info” data-domain=”example” data-tld=”org” onclick=”window.location.href=”https://stackoverflow.com/questions/163628/mailto:” + this.dataset.name + ‘@’ + this.dataset.domain + ‘.’ + this.dataset.tld; return false;”></a> When javascript is disabled, just the click event will not work, email is still displayed. Another interesting approach (at least … Read more

Obfuscation in Android Studio

Basic Obfuscation To obfuscate code in Android studio just go to your build.gradle file in your Android Studio project: Change the minifyEnabled property from false to true This is a basic Obfuscation. After generating the apk you can see the obfuscation result by decompiling the apk with any software. This page could help you: http://www.decompileandroid.com/ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)