1 -keep public class * extends android.app.Instrumentation { 2 <init>(); 3 } 4 -keep public class * extends android.app.Application { 5 <init>(); 6 void attachBaseContext(android.content.Context); 7 } 8 -keep public class * extends android.app.backup.BackupAgent { 9 <init>(); 10 } 11# We need to keep all annotation classes because proguard does not trace annotation attribute 12# it just filter the annotation attributes according to annotation classes it already kept. 13 -keep public class * extends java.lang.annotation.Annotation { 14 *; 15 } 16# Keep old fashion tests in the main dex or they'll be silently ignored by InstrumentationTestRunner 17 -keep public class * extends android.test.InstrumentationTestCase { 18 <init>(); 19 } 20 21