|
| 1 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
| 2 | + <!-- Network and basic permissions --> |
| 3 | + <uses-permission android:name="android.permission.INTERNET"/> |
| 4 | + <uses-permission android:name="android.permission.WAKE_LOCK"/> |
| 5 | + <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> |
| 6 | + <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"/> |
| 7 | + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> |
| 8 | + |
| 9 | + <!-- Bluetooth permissions for AVRCP metadata transmission --> |
| 10 | + <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30"/> |
| 11 | + <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30"/> |
| 12 | + <uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/> |
| 13 | + <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation"/> |
| 14 | + |
| 15 | + <!-- Media and audio permissions --> |
| 16 | + <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> |
| 17 | + <uses-permission android:name="android.permission.READ_PHONE_STATE"/> |
| 18 | + |
| 19 | + <!-- Samsung-specific permissions --> |
| 20 | + <uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY"/> |
| 21 | + <uses-permission android:name="com.samsung.android.sdk.look.permission.READ"/> |
| 22 | + |
| 23 | + <!-- Optional features --> |
| 24 | + <uses-feature android:name="android.hardware.bluetooth" android:required="false"/> |
| 25 | + <uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/> |
| 26 | + |
| 27 | + <application |
| 28 | + android:label="musly" |
| 29 | + android:name="${applicationName}" |
| 30 | + android:icon="@mipmap/ic_launcher" |
| 31 | + android:usesCleartextTraffic="true" |
| 32 | + android:networkSecurityConfig="@xml/network_security_config"> |
| 33 | + |
| 34 | + <!-- Android Auto Support --> |
| 35 | + <meta-data |
| 36 | + android:name="com.google.android.gms.car.application" |
| 37 | + android:resource="@xml/automotive_app_desc"/> |
| 38 | + |
| 39 | + <activity |
| 40 | + android:name=".MainActivity" |
| 41 | + android:exported="true" |
| 42 | + android:launchMode="singleTop" |
| 43 | + android:taskAffinity="" |
| 44 | + android:theme="@style/LaunchTheme" |
| 45 | + android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" |
| 46 | + android:hardwareAccelerated="true" |
| 47 | + android:windowSoftInputMode="adjustResize"> |
| 48 | + <!-- Specifies an Android theme to apply to this Activity as soon as |
| 49 | + the Android process has started. This theme is visible to the user |
| 50 | + while the Flutter UI initializes. After that, this theme continues |
| 51 | + to determine the Window background behind the Flutter UI. --> |
| 52 | + <meta-data |
| 53 | + android:name="io.flutter.embedding.android.NormalTheme" |
| 54 | + android:resource="@style/NormalTheme" |
| 55 | + /> |
| 56 | + <intent-filter> |
| 57 | + <action android:name="android.intent.action.MAIN"/> |
| 58 | + <category android:name="android.intent.category.LAUNCHER"/> |
| 59 | + </intent-filter> |
| 60 | + </activity> |
| 61 | + |
| 62 | + <!-- Media Browser Service for Android Auto --> |
| 63 | + <service |
| 64 | + android:name=".MusicService" |
| 65 | + android:exported="true" |
| 66 | + android:enabled="true" |
| 67 | + android:stopWithTask="false" |
| 68 | + android:foregroundServiceType="mediaPlayback"> |
| 69 | + <intent-filter> |
| 70 | + <action android:name="android.media.browse.MediaBrowserService"/> |
| 71 | + </intent-filter> |
| 72 | + </service> |
| 73 | + |
| 74 | + <!-- Media Button Receiver --> |
| 75 | + <receiver |
| 76 | + android:name="androidx.media.session.MediaButtonReceiver" |
| 77 | + android:exported="true"> |
| 78 | + <intent-filter> |
| 79 | + <action android:name="android.intent.action.MEDIA_BUTTON"/> |
| 80 | + </intent-filter> |
| 81 | + </receiver> |
| 82 | + |
| 83 | + <!-- Auto Start Receiver for background service --> |
| 84 | + <receiver |
| 85 | + android:name=".AutoStartReceiver" |
| 86 | + android:enabled="true" |
| 87 | + android:exported="true"> |
| 88 | + <intent-filter> |
| 89 | + <action android:name="android.intent.action.BOOT_COMPLETED"/> |
| 90 | + <action android:name="android.intent.action.QUICKBOOT_POWERON"/> |
| 91 | + </intent-filter> |
| 92 | + </receiver> |
| 93 | + |
| 94 | + <!-- Don't delete the meta-data below. |
| 95 | + This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> |
| 96 | + <meta-data |
| 97 | + android:name="flutterEmbedding" |
| 98 | + android:value="2" /> |
| 99 | + </application> |
| 100 | + |
| 101 | + <!-- Required to query activities that can process text, see: |
| 102 | + https://developer.android.com/training/package-visibility and |
| 103 | + https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT. |
| 104 | +
|
| 105 | + In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --> |
| 106 | + <queries> |
| 107 | + <intent> |
| 108 | + <action android:name="android.intent.action.PROCESS_TEXT"/> |
| 109 | + <data android:mimeType="text/plain"/> |
| 110 | + </intent> |
| 111 | + </queries> |
| 112 | +</manifest> |
0 commit comments