Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / music / src / main / AndroidManifest.xml

AndroidManifest.xml105 lines · 4.7 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools">
4
5 <!-- No network, deliberately: local library + cast-over-IPC only. :library:image merges in
6 INTERNET (its HttpFetcher) and :library:network merges in ACCESS_NETWORK_STATE, neither
7 of which this app uses, so both are stripped here like camera/ does. -->
8 <uses-permission android:name="android.permission.INTERNET" tools:node="remove" />
9 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove" />
10
11 <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
12 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
13 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
14 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
15 <!-- Cast guards its picker Activity and its content service with this, so a consumer that omits
16 it does not degrade: launching the picker throws a SecurityException outright. Signature
17 level, so it grants nothing to anyone outside this repo. -->
18 <uses-permission android:name="com.vayunmathur.cast.permission.STREAM_CONTENT" />
19
20 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/>
21
22 <permission
23 android:name="com.vayunmathur.music.permissions.ACCESS_MUSIC"
24 android:protectionLevel="signature" />
25
26 <application
27 android:allowBackup="true"
28 android:dataExtractionRules="@xml/data_extraction_rules"
29 android:icon="@mipmap/ic_launcher"
30 android:label="@string/app_name"
31 android:roundIcon="@mipmap/ic_launcher"
32 android:supportsRtl="true"
33 android:theme="@style/Theme.General">
34
35 <meta-data
36 android:name="com.google.android.gms.car.application"
37 android:resource="@xml/automotive_app_desc" />
38
39 <activity
40 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
41 android:name=".MainActivity"
42 android:exported="true"
43 android:theme="@style/Theme.General">
44 <intent-filter>
45 <action android:name="android.intent.action.MAIN" />
46
47 <category android:name="android.intent.category.LAUNCHER" />
48 </intent-filter>
49 </activity>
50
51 <service
52 android:name=".service.PlaybackService"
53 android:foregroundServiceType="mediaPlayback"
54 android:exported="true">
55 <intent-filter>
56 <action android:name="androidx.media3.session.MediaLibraryService" />
57 <action android:name="androidx.media3.session.MediaSessionService" />
58 <action android:name="android.media.browse.MediaBrowserService" />
59 <action android:name="android.intent.action.MEDIA_BUTTON" />
60 </intent-filter>
61 </service>
62
63 <service
64 android:name=".service.car.MusicCarAppService"
65 android:exported="true">
66 <intent-filter>
67 <action android:name="androidx.car.app.CarAppService" />
68 <category android:name="androidx.car.app.category.MEDIA" />
69 </intent-filter>
70 </service>
71
72 <meta-data
73 android:name="androidx.car.app.minCarApiLevel"
74 android:value="1" />
75
76 <activity
77 android:name=".intents.SearchIntent"
78 android:exported="true"
79 android:theme="@android:style/Theme.NoDisplay"
80 android:permission="com.vayunmathur.music.permissions.ACCESS_MUSIC">
81 </activity>
82
83 <activity
84 android:name=".intents.PlayIntent"
85 android:exported="true"
86 android:theme="@android:style/Theme.NoDisplay"
87 android:permission="com.vayunmathur.music.permissions.ACCESS_MUSIC">
88 </activity>
89
90 <activity
91 android:name=".intents.AudioPreviewActivity"
92 android:exported="true"
93 android:excludeFromRecents="true"
94 android:theme="@android:style/Theme.Translucent.NoTitleBar">
95 <intent-filter>
96 <action android:name="android.intent.action.VIEW" />
97 <category android:name="android.intent.category.DEFAULT" />
98 <data android:scheme="file" />
99 <data android:scheme="content" />
100 <data android:mimeType="audio/*" />
101 </intent-filter>
102 </activity>
103 </application>
104
105</manifest>