Exported receiver does not require !!

BroadcastReceiver を継承したレシーバを作成して AndoridManifest.xml に登録すると、

  Exported receiver does not require permission

という警告が出ることがある。
これは、外部アプリケーションから利用できてしまう警告で、
android:exported="false" を付ければよい。

また、別プロセスとして動かすには、
android:process=":remote" を付ければよい。


例)

<receiver android:name=".service.SampleReceiver" 
          android:process=":remote"
          android:exported="false" >
    <intent-filter>
        <action android:name="org.sample.service.Uranus.START"/>
        <action android:name="org.sample.service.Uranus.STOP"/>
    </intent-filter>
</receiver>

   </application>

</manifest>