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.Activity {
9    <init>();
10  }
11  -keep public class * extends android.app.Service {
12    <init>();
13  }
14  -keep public class * extends android.content.ContentProvider {
15   <init>();
16  }
17  -keep public class * extends android.content.BroadcastReceiver {
18   <init>();
19  }
20  -keep public class * extends android.app.backup.BackupAgent {
21   <init>();
22  }
23# We need to keep all annotation classes because proguard does not trace annotation attribute
24# it just filter the annotation attributes according to annotation classes it already kept.
25  -keep public class * extends java.lang.annotation.Annotation {
26   *;
27  }
28