forked from carlosrafaelgn/FPlayAndroid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
298 lines (281 loc) · 17.2 KB
/
Copy pathAndroidManifest.xml
File metadata and controls
298 lines (281 loc) · 17.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="br.com.carlosrafaelgn.fplay"
android:installLocation="auto" >
<!-- In favor of gradle -->
<!-- android:versionCode="107"
android:versionName="1.73" > -->
<!-- In favor of gradle -->
<!-- <uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="23" /> -->
<!-- http://developer.android.com/guide/topics/manifest/supports-screens-element.html -->
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<!-- For Google Drive -->
<!-- uses-permission android:name="android.permission.GET_ACCOUNTS" -->
<!-- For http playback -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- To check the connection state -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- See this: http://developer.android.com/reference/android/bluetooth/BluetoothHeadset.html#ACTION_AUDIO_STATE_CHANGED -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<!-- For scanning bluetooth devices -->
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<!-- Apparently, a few devices require this.... (not only to make android.media.audiofx.PresetReverb work, but to control volume and other settings) -->
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<!-- These three permissions are not classified as PROTECTION_NORMAL in Android M API 23
https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous -->
<!-- For the immersive visualizer -->
<uses-permission android:name="android.permission.CAMERA" />
<!-- http://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGE -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- For exporting playlists -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- For Android 28 https://developer.android.com/about/versions/pie/android-9.0-migration#tya -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<!--
Just to make Google Play show the App even to phones without Bluetooth,
despite the uses-permission above!
-->
<uses-feature
android:name="android.hardware.bluetooth"
android:required="false" />
<!--
Just to make Google Play show the App even to phones without a camera,
despite the uses-permission above!
-->
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<!--
Support for devices without touch, devices without microphone and TVs
as described in http://developer.android.com/guide/topics/manifest/uses-feature-element.html
-->
<uses-feature
android:name="android.hardware.microphone"
android:required="false" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.hardware.faketouch"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="false" />
<uses-feature
android:name="android.hardware.wifi"
android:required="false" />
<!--
Support for Chromebook and other PC-like devices with mouse and keyboard
-->
<uses-feature
android:name="android.hardware.type.pc"
android:required="false" />
<!-- http://developer.android.com/intl/pt-br/reference/android/app/backup/BackupManager.html -->
<!-- https://developer.android.com/training/data-storage/compatibility -->
<application
android:allowBackup="true"
android:allowClearUserData="true"
android:usesCleartextTraffic="true"
android:killAfterRestore="true"
android:restoreAnyVersion="false"
android:description="@string/app_description"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:banner="@drawable/ic_banner"
android:label="@string/app_name"
android:supportsRtl="true"
android:fullBackupContent="@xml/backup_rules"
android:requestLegacyExternalStorage="true"
android:theme="@style/AppTheme" >
<!-- http://stackoverflow.com/a/14185426/3569421 -->
<uses-library android:required="false" android:name="com.sec.android.app.multiwindow" />
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="320dp" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="320dp" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="320dp" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="320dp" />
<!-- https://developer.android.com/guide/practices/screens_support.html#MaxAspectRatio -->
<meta-data android:name="android.max_aspect" android:value="100.0" />
<!-- https://developer.android.com/training/tv/start/start.html -->
<!-- https://developer.android.com/distribute/best-practices/launch/distribute-tv -->
<!-- https://developer.android.com/training/tv/start/controllers -->
<activity
android:name="br.com.carlosrafaelgn.fplay.activity.ActivityHost"
android:clearTaskOnLaunch="true"
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboard|keyboardHidden|navigation"
android:label="@string/app_name"
android:launchMode="singleTask"
android:multiprocess="false"
android:screenOrientation="unspecified"
android:resizeableActivity="true"
android:stateNotNeeded="true"
android:theme="@style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
</intent-filter>
<!-- Handling fplay:// links -->
<!--
I gave up on the idea because most apps don't render fplay://XXXXXXXX as a link,
except for browsers, with tags like <a href="fplay://XXXXXXXX">
-->
<!--<intent-filter
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="fplay" android:host="*" />
</intent-filter>-->
<!-- External file support
http://developer.android.com/guide/components/intents-filters.html
http://developer.android.com/guide/topics/manifest/data-element.html
http://stackoverflow.com/questions/3760276/android-intent-filter-associate-app-with-file-extension
-->
<intent-filter
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" android:host="*" android:mimeType="audio/*" />
</intent-filter>
<intent-filter
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" android:host="*" android:mimeType="application/ogg" />
</intent-filter>
<intent-filter
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" android:host="*" android:mimeType="application/x-ogg" />
</intent-filter>
<intent-filter
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" android:host="*" android:mimeType="application/itunes" />
</intent-filter>
<!-- beware: .*\\.EXT matches name.EXT but does match name.something.EXT!!! :( -->
<!-- do not include hardcoded 3GP and MP4 extensions, as they are widely used for videos -->
<intent-filter
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.3ga" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.3gpa" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.m4a" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.aac" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.mp3" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.mid" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.rmi" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.xmf" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.mxmf" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.rtttl" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.rtx" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.ota" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.imy" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.ogg" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.oga" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.imy" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.wav" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.mka" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.mkv" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.flac" android:mimeType="*/*" />
</intent-filter>
<intent-filter
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.3GA" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.3GPA" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.M4A" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.AAC" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.MP3" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.MID" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.RMI" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.XMF" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.MXMF" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.RTTTL" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.RTX" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.OTA" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.IMY" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.OGG" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.OGA" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.IMY" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.WAV" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.MKA" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.MKV" android:mimeType="*/*" />
<data android:scheme="file" android:host="*" android:pathPattern=".*\\.FLAC" android:mimeType="*/*" />
</intent-filter>
<!-- TV support! -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="br.com.carlosrafaelgn.fplay.activity.ActivityVisualizer"
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize"
android:hardwareAccelerated="true"
android:label="@string/visualizer"
android:multiprocess="false"
android:parentActivityName="br.com.carlosrafaelgn.fplay.activity.ActivityHost"
android:screenOrientation="unspecified"
android:resizeableActivity="true"
android:stateNotNeeded="true"
android:theme="@style/AppTheme" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="br.com.carlosrafaelgn.fplay.activity.ActivityHost" />
</activity>
<service
android:name="br.com.carlosrafaelgn.fplay.playback.Player"
android:enabled="true"
android:exported="false"
android:label="Player"
android:stopWithTask="false" />
<receiver
android:name="br.com.carlosrafaelgn.fplay.WidgetMain"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/main_widget_info" />
</receiver>
<receiver android:name="br.com.carlosrafaelgn.fplay.ExternalReceiver" >
<intent-filter>
<!--
MEDIA_BUTTON broadcast action MUST be declared in the application manifest,
before API 26!!!!
-->
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>
</application>
</manifest>