• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2017 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.music"
20	  xmlns:tools="http://schemas.android.com/tools">
21
22    <!-- Package Name -->
23    <original-package android:name="com.android.music"/>
24
25    <!-- SDK Versions -->
26    <uses-sdk android:minSdkVersion="19"
27              android:targetSdkVersion="29"/>
28
29    <!-- Permissions -->
30    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
31
32    <!-- App Declaration -->
33    <application
34            android:allowBackup="true"
35            android:label="@string/app_name"
36            android:supportsRtl="true"
37            android:launchMode="singleTop"
38            android:requestLegacyExternalStorage="true">
39
40        <activity android:name="AudioPreview" android:theme="@android:style/Theme.Dialog"
41                  android:taskAffinity=""
42                  android:excludeFromRecents="true" android:exported="true" >
43            <intent-filter>
44                <action android:name="android.intent.action.VIEW" />
45                <category android:name="android.intent.category.DEFAULT" />
46                <data android:scheme="file"/>
47                <data android:mimeType="audio/*"/>
48                <data android:mimeType="application/ogg"/>
49                <data android:mimeType="application/x-ogg"/>
50                <data android:mimeType="application/itunes"/>
51            </intent-filter>
52            <intent-filter>
53                <action android:name="android.intent.action.VIEW" />
54                <category android:name="android.intent.category.DEFAULT" />
55                <category android:name="android.intent.category.BROWSABLE" />
56                <data android:scheme="http" />
57                <data android:mimeType="audio/*"/>
58                <data android:mimeType="application/ogg"/>
59                <data android:mimeType="application/x-ogg"/>
60                <data android:mimeType="application/itunes"/>
61            </intent-filter>
62            <intent-filter
63                    android:priority="-1">
64                <action android:name="android.intent.action.VIEW" />
65                <category android:name="android.intent.category.DEFAULT" />
66                <category android:name="android.intent.category.BROWSABLE" />
67                <data android:scheme="content" />
68                <data android:mimeType="audio/*"/>
69                <data android:mimeType="application/ogg"/>
70                <data android:mimeType="application/x-ogg"/>
71                <data android:mimeType="application/itunes"/>
72            </intent-filter>
73        </activity>
74
75        <activity android:name="com.android.music.MusicPicker"
76                  android:label="@string/music_picker_title" android:exported="true" >
77            <!-- First way to invoke us: someone asks to get content of
78                 any of the audio types we support. -->
79            <intent-filter>
80                <action android:name="android.intent.action.GET_CONTENT" />
81                <category android:name="android.intent.category.DEFAULT" />
82                <category android:name="android.intent.category.OPENABLE" />
83                <data android:mimeType="audio/*"/>
84                <data android:mimeType="application/ogg"/>
85                <data android:mimeType="application/x-ogg"/>
86            </intent-filter>
87            <!-- Second way to invoke us: someone asks to pick an item from
88                 some media Uri. -->
89            <intent-filter>
90                <action android:name="android.intent.action.PICK" />
91                <category android:name="android.intent.category.DEFAULT" />
92                <category android:name="android.intent.category.OPENABLE" />
93                <data android:mimeType="vnd.android.cursor.dir/audio"/>
94            </intent-filter>
95        </activity>
96
97        <service android:name="com.android.music.MediaPlaybackService"
98                 android:exported="true"
99                 android:label="Android Open Source Music Playback Service">
100            <intent-filter>
101                <action android:name="android.media.browse.MediaBrowserService" />
102            </intent-filter>
103        </service>
104
105    </application>
106
107</manifest>
108