I’m setting up campaign tracking with user analytics (not Google analytics) and setting up a receiver for this. My receiver seems to be working, but when I install, I get a warning from the android:
ExportedReceiver: Receiver does not require permission
It looks like any old Android app can call my app with the intent of com.android.vending.INSTALL_REFERRER
, which I don't want. It should only be the Google Play store (or any other Android system application that installs my application from the play store), sending this intention to my application.
So, I tried to figure out how to set the resolution, which limits the valid applications in the play store, but I can not determine the correct way to set the resolution according to the documentation:
https://developer.android.com/guide/topics/manifest/permission-element.html
Can someone help me set up a resolution restricting the applications that my application will accept this intention to the play store? Here is my current receiver configuration:
<receiver android:name=".referrals.MyCampaignTrackingReceiver" android:enabled="true" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER"/> </intent-filter> </receiver>
I tried to set the permission for the recipient to normal
, but this did not allow the application to get the intention from the game store.
source share