Enable proguard for telephony library.
Bug: 201800458
Test: build, atest, manual test
Change-Id: I4b6872b0139ff289ea7addd06e704e52b1d195d0
diff --git a/proguard.flags b/proguard.flags
new file mode 100644
index 0000000..0f61524
--- /dev/null
+++ b/proguard.flags
@@ -0,0 +1,29 @@
+# Uncomment the following to show all included rules during build
+#-printconfiguration
+
+# Generate usage file (for shrinking)
+-printusage
+
+# Keep deprecated GSM SMS API
+-keepclasseswithmembers class android.telephony.gsm.SmsManager {
+public *;
+}
+-keepclasseswithmembers class android.telephony.gsm.SmsMessage {
+public *;
+}
+
+# Keep telephony sysprop
+-keepclasseswithmembers class android.internal.telephony.sysprop.TelephonyProperties {
+public *;
+}
+
+# Keep public classes and members
+-keepclasseswithmembers class com.android.internal.telephony.** {
+public *;
+}
+
+# Keep classes and members that have the @UnsupportedAppUsage annotation
+-keep @**.UnsupportedAppUsage class *
+-keepclassmembers class * {
+@**.UnsupportedAppUsage *;
+}