Benson Huang | a8b6afc | 2014-11-20 15:42:26 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2014 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | package="com.android.fmradio" |
| 20 | android:versionCode="2" |
| 21 | android:versionName="2.0" > |
| 22 | |
| 23 | <!-- FM uses AudioPatch which is new in sdk 21 --> |
| 24 | <uses-sdk |
| 25 | android:minSdkVersion="21" |
| 26 | android:targetSdkVersion="21" /> |
| 27 | |
| 28 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
| 29 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
| 30 | <uses-permission android:name="android.permission.ACCESS_FM_RADIO" /> |
| 31 | <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /> |
| 32 | <uses-permission android:name="android.permission.INTERNET" /> |
| 33 | <uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING" /> |
| 34 | <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
| 35 | <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> |
| 36 | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
| 37 | <uses-permission android:name="android.permission.RECORD_AUDIO" /> |
| 38 | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 39 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
| 40 | |
| 41 | <application |
| 42 | android:hardwareAccelerated="true" |
| 43 | android:icon="@drawable/ic_launcher" |
| 44 | android:label="@string/app_name" > |
| 45 | |
| 46 | <activity |
| 47 | android:name=".FmMainActivity" |
| 48 | android:label="@string/app_name" |
| 49 | android:launchMode="standard" |
| 50 | android:theme="@style/AppTheme" > |
| 51 | <intent-filter> |
| 52 | <action android:name="android.intent.action.MAIN" /> |
| 53 | <category android:name="android.intent.category.LAUNCHER" /> |
| 54 | </intent-filter> |
| 55 | </activity> |
| 56 | <activity |
| 57 | android:name=".FmFavoriteActivity" |
| 58 | android:configChanges="screenSize" |
| 59 | android:label="@string/station_title" |
| 60 | android:launchMode="singleTask" |
| 61 | android:theme="@style/LightTheme" |
| 62 | android:windowSoftInputMode="stateAlwaysHidden" > |
| 63 | </activity> |
| 64 | |
| 65 | <service |
| 66 | android:name=".FmService" |
| 67 | android:exported="false" > |
| 68 | <intent-filter> |
| 69 | <action android:name="com.android.fmradio.IFmRadioService" /> |
| 70 | </intent-filter> |
| 71 | </service> |
| 72 | |
| 73 | <provider |
| 74 | android:name=".FmProvider" |
| 75 | android:authorities="com.android.fmradio" |
| 76 | android:exported="false" > |
| 77 | </provider> |
| 78 | |
| 79 | <activity |
| 80 | android:name=".FmRecordActivity" |
| 81 | android:label="@string/record_title" |
| 82 | android:theme="@style/LightTheme" |
| 83 | android:launchMode="singleTask" > |
| 84 | </activity> |
| 85 | </application> |
| 86 | |
| 87 | </manifest> |