Add permission protections in sample apps

Protect the download receiver with ACT_AS_EMBMS_MIDDLEWARE and declare
its usage in the sample middleware.

Change-Id: Ic7e6ac247dab18a6be3754f211055417c83c243d
diff --git a/testapps/EmbmsServiceTestApp/AndroidManifest.xml b/testapps/EmbmsServiceTestApp/AndroidManifest.xml
index edcb5cb..91d8508 100644
--- a/testapps/EmbmsServiceTestApp/AndroidManifest.xml
+++ b/testapps/EmbmsServiceTestApp/AndroidManifest.xml
@@ -18,6 +18,8 @@
         xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
         package="com.android.phone.testapps.embmsmw"
         coreApp="true">
+  <uses-permission android:name="android.permission.SEND_EMBMS_INTENTS"/>
+
   <application android:label="EmbmsTestMiddleware">
     <service android:name="com.android.phone.testapps.embmsmw.EmbmsTestStreamingService"
             android:launchMode="singleInstance"
diff --git a/testapps/EmbmsTestDownloadApp/AndroidManifest.xml b/testapps/EmbmsTestDownloadApp/AndroidManifest.xml
index b81b928..e93cd19 100644
--- a/testapps/EmbmsTestDownloadApp/AndroidManifest.xml
+++ b/testapps/EmbmsTestDownloadApp/AndroidManifest.xml
@@ -28,9 +28,9 @@
         </activity>
 
         <!-- This is the receiver defined by the MBMS api. -->
-        <!-- TODO: protect this with a permission -->
         <receiver
             android:name="android.telephony.mbms.MbmsDownloadReceiver"
+            android:permission="android.permission.SEND_EMBMS_INTENTS"
             android:enabled="true"
             android:exported="true">
         </receiver>