• 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="28"/>
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
39        <activity android:name="AudioPreview" android:theme="@android:style/Theme.Dialog"
40                  android:taskAffinity=""
41                  android:excludeFromRecents="true" android:exported="true" >
42            <intent-filter>
43                <action android:name="android.intent.action.VIEW" />
44                <category android:name="android.intent.category.DEFAULT" />
45                <data android:scheme="file"/>
46                <data android:mimeType="audio/*"/>
47                <data android:mimeType="application/ogg"/>
48                <data android:mimeType="application/x-ogg"/>
49                <data android:mimeType="application/itunes"/>
50            </intent-filter>
51            <intent-filter>
52                <action android:name="android.intent.action.VIEW" />
53                <category android:name="android.intent.category.DEFAULT" />
54                <category android:name="android.intent.category.BROWSABLE" />
55                <data android:scheme="http" />
56                <data android:mimeType="audio/*"/>
57                <data android:mimeType="application/ogg"/>
58                <data android:mimeType="application/x-ogg"/>
59                <data android:mimeType="application/itunes"/>
60            </intent-filter>
61            <intent-filter
62                    android:priority="-1">
63                <action android:name="android.intent.action.VIEW" />
64                <category android:name="android.intent.category.DEFAULT" />
65                <category android:name="android.intent.category.BROWSABLE" />
66                <data android:scheme="content" />
67                <data android:mimeType="audio/*"/>
68                <data android:mimeType="application/ogg"/>
69                <data android:mimeType="application/x-ogg"/>
70                <data android:mimeType="application/itunes"/>
71            </intent-filter>
72        </activity>
73
74        <activity android:name="com.android.music.MusicPicker"
75                  android:label="@string/music_picker_title" android:exported="true" >
76            <!-- First way to invoke us: someone asks to get content of
77                 any of the audio types we support. -->
78            <intent-filter>
79                <action android:name="android.intent.action.GET_CONTENT" />
80                <category android:name="android.intent.category.DEFAULT" />
81                <category android:name="android.intent.category.OPENABLE" />
82                <data android:mimeType="audio/*"/>
83                <data android:mimeType="application/ogg"/>
84                <data android:mimeType="application/x-ogg"/>
85            </intent-filter>
86            <!-- Second way to invoke us: someone asks to pick an item from
87                 some media Uri. -->
88            <intent-filter>
89                <action android:name="android.intent.action.PICK" />
90                <category android:name="android.intent.category.DEFAULT" />
91                <category android:name="android.intent.category.OPENABLE" />
92                <data android:mimeType="vnd.android.cursor.dir/audio"/>
93            </intent-filter>
94        </activity>
95
96        <service android:name="com.android.music.MediaPlaybackService"
97                 android:exported="true"
98                 android:label="Android Open Source Music Playback Service">
99            <intent-filter>
100                <action android:name="android.media.browse.MediaBrowserService" />
101            </intent-filter>
102        </service>
103
104    </application>
105
106</manifest>
107