OSDN Git Service

Automatic translation import
[android-x86/packages-apps-Eleven.git] / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2012 Andrew Neal
3      Copyright (C) 2014 The CyanogenMod 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 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
18     package="com.cyanogenmod.eleven"
19     android:versionCode="2"
20     android:versionName="2.0" >
21
22     <uses-sdk
23         android:minSdkVersion="21"
24         android:targetSdkVersion="21" />
25
26     <!-- Used for caching and creating new playlists -->
27     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
28     <!-- Used to check for a network connection -->
29     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
30     <!-- Used to download images -->
31     <uses-permission android:name="android.permission.INTERNET" />
32     <!-- Used to keep the service running when the phone sleeps -->
33     <uses-permission android:name="android.permission.WAKE_LOCK" />
34     <!-- The main service uses a sticky broadcast -->
35     <uses-permission android:name="android.permission.BROADCAST_STICKY" />
36     <!-- Lower or raise the music based on the phone state -->
37     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
38     <!-- Used to set the devices's ringtone -->
39     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
40     <!-- Used to create launcher shortcuts -->
41     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
42     <!-- Used to check if the app is in the background -->
43     <uses-permission android:name="android.permission.GET_TASKS" />
44     <!-- Allows Eleven to read from External Storage -->
45     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
46
47     <!-- Audio Visualizer Permissions -->
48     <uses-permission android:name="android.permission.RECORD_AUDIO" />
49     <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
50
51     <!-- Accelerometer feature for shake to play -->
52     <uses-feature android:name="android.hardware.sensor.accelerometer" />
53
54     <application
55         android:name="com.cyanogenmod.eleven.ElevenApplication"
56         android:allowBackup="true"
57         android:allowTaskReparenting="true"
58         android:hardwareAccelerated="@bool/config_hardwareAccelerated"
59         android:icon="@mipmap/ic_launcher_eleven"
60         android:label="@string/app_name"
61         android:largeHeap="@bool/config_largeHeap"
62         android:taskAffinity="com.cyanogenmod.eleven.task"
63         android:theme="@style/Eleven.Theme">
64
65         <!-- Searchable -->
66         <meta-data
67             android:name="android.app.default_searchable"
68             android:value=".ui.activities.SearchActivity" />
69         <!-- Main activity -->
70         <activity
71             android:name="com.cyanogenmod.eleven.ui.activities.HomeActivity"
72             android:windowSoftInputMode="adjustPan"
73             android:launchMode="singleTop"
74             android:exported="true"
75             android:theme="@style/Eleven.Theme.ActionBar.Overlay">
76             <intent-filter>
77                 <action android:name="android.intent.action.MAIN" />
78                 <action android:name="android.intent.action.MUSIC_PLAYER" />
79
80                 <category android:name="android.intent.category.LAUNCHER" />
81                 <category android:name="android.intent.category.APP_MUSIC" />
82                 <category android:name="android.intent.category.DEFAULT" />
83             </intent-filter>
84
85             <intent-filter>
86                 <action android:name="android.intent.action.VIEW" />
87
88                 <category android:name="android.intent.category.DEFAULT" />
89
90                 <data android:scheme="content" />
91                 <data android:mimeType="audio/*" />
92                 <data android:mimeType="application/ogg" />
93                 <data android:mimeType="application/x-ogg" />
94                 <data android:mimeType="application/itunes" />
95             </intent-filter>
96             <intent-filter>
97                 <action android:name="android.intent.action.VIEW" />
98
99                 <category android:name="android.intent.category.DEFAULT" />
100
101                 <data android:scheme="file" />
102                 <data android:mimeType="audio/*" />
103                 <data android:mimeType="application/ogg" />
104                 <data android:mimeType="application/x-ogg" />
105                 <data android:mimeType="application/itunes" />
106             </intent-filter>
107             <intent-filter>
108                 <action android:name="android.intent.action.VIEW" />
109
110                 <category android:name="android.intent.category.DEFAULT" />
111                 <category android:name="android.intent.category.BROWSABLE" />
112
113                 <data android:scheme="http" />
114                 <data android:mimeType="audio/*" />
115                 <data android:mimeType="application/ogg" />
116                 <data android:mimeType="application/x-ogg" />
117                 <data android:mimeType="application/itunes" />
118             </intent-filter>
119             <intent-filter>
120                 <action android:name="android.intent.action.VIEW" />
121
122                 <category android:name="android.intent.category.DEFAULT" />
123
124                 <data android:mimeType="vnd.android.cursor.dir/playlist" />
125                 <data android:mimeType="vnd.android.cursor.dir/albums" />
126                 <data android:mimeType="vnd.android.cursor.dir/artists" />
127             </intent-filter>
128             <intent-filter>
129                 <action android:name="com.cyanogenmod.eleven.AUDIO_PLAYER" />
130
131                 <category android:name="android.intent.category.DEFAULT" />
132             </intent-filter>
133         </activity>
134
135         <!-- Search interface -->
136         <activity
137             android:name="com.cyanogenmod.eleven.ui.activities.SearchActivity"
138             android:windowSoftInputMode="adjustResize"
139             android:exported="true"
140             android:theme="@style/Eleven.Theme">
141             <intent-filter>
142                 <action android:name="android.intent.action.SEARCH" />
143                 <action android:name="android.intent.action.MEDIA_SEARCH" />
144
145                 <category android:name="android.intent.category.DEFAULT" />
146             </intent-filter>
147
148             <meta-data
149                 android:name="android.app.searchable"
150                 android:resource="@xml/searchable" />
151         </activity>
152         <!-- Used to set options -->
153         <activity
154             android:name="com.cyanogenmod.eleven.ui.activities.SettingsActivity"
155             android:label="@string/menu_settings"/>
156         <!-- 4x1 App Widget -->
157         <receiver
158             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetSmall"
159             android:exported="false"
160             android:label="@string/app_widget_small" >
161             <intent-filter>
162                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
163             </intent-filter>
164
165             <meta-data
166                 android:name="android.appwidget.provider"
167                 android:resource="@xml/app_widget_small" />
168         </receiver>
169         <!-- 4x2  App Widget -->
170         <receiver
171             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLarge"
172             android:exported="false"
173             android:label="@string/app_widget_large" >
174             <intent-filter>
175                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
176             </intent-filter>
177
178             <meta-data
179                 android:name="android.appwidget.provider"
180                 android:resource="@xml/app_widget_large" />
181         </receiver>
182         <!-- 4x2 alternate App Widget -->
183         <receiver
184             android:name="com.cyanogenmod.eleven.appwidgets.AppWidgetLargeAlternate"
185             android:exported="false"
186             android:label="@string/app_widget_large_alt" >
187             <intent-filter>
188                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
189             </intent-filter>
190
191             <meta-data
192                 android:name="android.appwidget.provider"
193                 android:resource="@xml/app_widget_large_alternate" />
194         </receiver>
195         <!-- Media button receiver -->
196         <receiver android:name="com.cyanogenmod.eleven.MediaButtonIntentReceiver" >
197             <intent-filter>
198                 <action android:name="android.intent.action.MEDIA_BUTTON" />
199                 <action android:name="android.media.AUDIO_BECOMING_NOISY" />
200             </intent-filter>
201         </receiver>
202         <!-- Used to recalculate sorting of songs based on the user's locale -->
203         <receiver android:name=".locale.LocaleChangeReceiver">
204             <intent-filter>
205                 <action android:name="android.intent.action.LOCALE_CHANGED"/>
206             </intent-filter>
207         </receiver>
208         <!-- Music service -->
209         <service
210             android:name="com.cyanogenmod.eleven.MusicPlaybackService"
211             android:label="@string/app_name"
212             android:process=":main" />
213     </application>
214
215 </manifest>