Unexport OmtpMessageReceiver
Introduced in
https://partner-android-review.googlesource.com/#/c/204705/
Receivers do not need to be exported to receive system broadcasts.
OmtpMessageReceiver should also check the intent action, but least
possible scope of change is preferred.
Bug: 31566390
Change-Id: I83f3d42ba185c072357ec6f18b99c3f12f452eb9
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 545aa8b..ab3d028 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -643,7 +643,7 @@
</intent-filter>
</provider>
<receiver android:name="com.android.phone.vvm.omtp.sms.OmtpMessageReceiver"
- android:exported="true">
+ android:exported="false">
<intent-filter>
<action android:name="android.intent.action.DATA_SMS_RECEIVED" />
<data android:scheme="sms" />