Hall Liu | 264773f | 2017-05-19 15:27:58 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2017 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | package="com.android.phone.testapps.embmsdownload"> |
| 19 | <application android:label="EmbmsTestDownloadApp"> |
| 20 | <activity |
| 21 | android:name=".EmbmsTestDownloadApp" |
| 22 | android:label="EmbmsDownloadFrontend"> |
| 23 | <intent-filter> |
| 24 | <action android:name="android.intent.action.MAIN" /> |
| 25 | <category android:name="android.intent.category.DEFAULT" /> |
| 26 | <category android:name="android.intent.category.LAUNCHER" /> |
| 27 | </intent-filter> |
| 28 | </activity> |
| 29 | |
| 30 | <!-- This is the receiver defined by the MBMS api. --> |
Hall Liu | 264773f | 2017-05-19 15:27:58 -0700 | [diff] [blame] | 31 | <receiver |
| 32 | android:name="android.telephony.mbms.MbmsDownloadReceiver" |
Hall Liu | a47c65f | 2017-06-29 18:35:59 -0700 | [diff] [blame] | 33 | android:permission="android.permission.SEND_EMBMS_INTENTS" |
Hall Liu | 264773f | 2017-05-19 15:27:58 -0700 | [diff] [blame] | 34 | android:enabled="true" |
| 35 | android:exported="true"> |
| 36 | </receiver> |
| 37 | |
| 38 | <!-- This is the receiver defined by app to receive the download-done intent that was |
| 39 | passed into DownloadRequest. --> |
| 40 | <receiver |
| 41 | android:name="com.android.phone.testapps.embmsdownload.DownloadCompletionReceiver" |
| 42 | android:enabled="true"> |
| 43 | </receiver> |
| 44 | |
| 45 | <!-- This is the provider that apps must declare in their manifest. It allows the |
| 46 | middleware to obtain file descriptors to temp files in the app's file space --> |
| 47 | <!-- grantUriPermissions must be set to true --> |
| 48 | <provider |
| 49 | android:name="android.telephony.mbms.MbmsTempFileProvider" |
| 50 | android:authorities="com.android.phone.testapps.embmsdownload" |
| 51 | android:exported="false" |
| 52 | android:grantUriPermissions="true"> |
| 53 | <!-- This is a mandatory piece of metadata that contains the directory where temp |
| 54 | files should be put. It should be a relative path from Context.getFilesDir() or from |
| 55 | Context.getExternalStorageDir(null), depending on the value of the |
| 56 | use-external-storage metadata. --> |
| 57 | <meta-data android:name="temp-file-path" android:value="/mbms-temp/"/> |
| 58 | |
| 59 | <!-- This tells the provider whether to use the sdcard partition for the temp files or |
| 60 | not. --> |
| 61 | <meta-data android:name="use-external-storage" android:value="false"/> |
| 62 | </provider> |
| 63 | |
| 64 | <!-- This is a mandatory piece of metadata that contains the authority string for the |
| 65 | provider declared above --> |
| 66 | <meta-data |
| 67 | android:name="mbms-file-provider-authority" |
| 68 | android:value="com.android.phone.testapps.embmsdownload"/> |
| 69 | </application> |
| 70 | </manifest> |
| 71 | |