move SMSReceiver from main manifest to the others

Theory is that the store's buggy site is presenting its
banned-permissions interface because it's detecting a Receiver that
requires SMS_RECEIVE permission even though the permissions themselves
aren't there any more.
This commit is contained in:
Eric House 2019-03-22 13:22:18 -07:00
parent dc5b134708
commit 5f29af46e0
4 changed files with 30 additions and 9 deletions

View file

@ -215,15 +215,6 @@
</intent-filter>
</receiver>
<receiver android:name="SMSReceiver" >
<intent-filter>
<action android:name="android.intent.action.DATA_SMS_RECEIVED" />
<data android:scheme="sms" />
<data android:port="@string/nbs_port" />
<data android:host="*" />
</intent-filter>
</receiver>
<service android:name="FBMService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />

View file

@ -22,5 +22,14 @@
<service android:name="WiDirService"/>
<receiver android:name="SMSReceiver" >
<intent-filter>
<action android:name="android.intent.action.DATA_SMS_RECEIVED" />
<data android:scheme="sms" />
<data android:port="@string/nbs_port" />
<data android:host="*" />
</intent-filter>
</receiver>
</application>
</manifest>

View file

@ -28,5 +28,14 @@
<service android:name="WiDirService"/>
<receiver android:name="SMSReceiver" >
<intent-filter>
<action android:name="android.intent.action.DATA_SMS_RECEIVED" />
<data android:scheme="sms" />
<data android:port="@string/nbs_port" />
<data android:host="*" />
</intent-filter>
</receiver>
</application>
</manifest>

View file

@ -7,4 +7,16 @@
must be added per-variant !-->
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<application>
<receiver android:name="SMSReceiver" >
<intent-filter>
<action android:name="android.intent.action.DATA_SMS_RECEIVED" />
<data android:scheme="sms" />
<data android:port="@string/nbs_port" />
<data android:host="*" />
</intent-filter>
</receiver>
</application>
</manifest>