AndroidManifest.xml
composeApp/src/androidMain/AndroidManifest.xml
1<manifest xmlns:android="http://schemas.android.com/apk/res/android">2 <uses-feature android:name="android.software.leanback" android:required="false" />3 <uses-feature android:name="android.hardware.touchscreen" android:required="false" />4 <uses-permission android:name="android.permission.INTERNET" />5 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />6 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />7 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />8 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />9 <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />1011 <queries>12 <intent>13 <action android:name="android.intent.action.VIEW" />14 <data android:mimeType="video/*" />15 </intent>16 </queries>1718 <application19 android:name=".YokanApplication"20 android:allowBackup="true"21 android:banner="@drawable/tv_banner"22 android:icon="@mipmap/ic_launcher"23 android:roundIcon="@mipmap/ic_launcher"24 android:label="Yokan"25 android:largeHeap="true"26 android:theme="@style/AppTheme"27 android:resizeableActivity="true"28 android:usesCleartextTraffic="true">29 <activity30 android:name=".MainActivity"31 android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|keyboard|smallestScreenSize|density|uiMode"32 android:exported="true"33 android:supportsPictureInPicture="true"34 android:launchMode="singleTop">3536 <intent-filter android:label="Add source repository">37 <action android:name="android.intent.action.VIEW" />38 <category android:name="android.intent.category.DEFAULT" />39 <category android:name="android.intent.category.BROWSABLE" />40 <data android:scheme="yokan" android:host="add-repo" />41 </intent-filter>42 <intent-filter android:label="Add custom button">43 <action android:name="android.intent.action.VIEW" />44 <category android:name="android.intent.category.DEFAULT" />45 <category android:name="android.intent.category.BROWSABLE" />46 <data android:scheme="yokan" android:host="add-button" />47 </intent-filter>48 <!-- Mihon/Tachiyomi (manga) and Aniyomi/Animetail (anime) repository links, as Animetail registers them. -->49 <intent-filter android:label="Add extension repository">50 <action android:name="android.intent.action.VIEW" />51 <category android:name="android.intent.category.DEFAULT" />52 <category android:name="android.intent.category.BROWSABLE" />53 <data android:scheme="tachiyomi" />54 <data android:scheme="mihon" />55 <data android:scheme="aniyomi" />56 <data android:scheme="animetail" />57 <data android:host="add-repo" />58 <data android:host="extension-store" />59 </intent-filter>60 <intent-filter android:label="Search in Yokan">61 <action android:name="android.intent.action.SEND" />62 <category android:name="android.intent.category.DEFAULT" />63 <data android:mimeType="text/plain" />64 </intent-filter>65 <intent-filter android:label="Search in Yokan">66 <action android:name="android.intent.action.PROCESS_TEXT" />67 <category android:name="android.intent.category.DEFAULT" />68 <data android:mimeType="text/plain" />69 </intent-filter>70 <intent-filter>71 <action android:name="android.intent.action.SEARCH" />72 <action android:name="android.intent.action.WEB_SEARCH" />73 <action android:name="com.google.android.gms.actions.SEARCH_ACTION" />74 <category android:name="android.intent.category.DEFAULT" />75 </intent-filter>76 <!-- Backup files. PatternMatcher cannot skip earlier dots, so each depth is listed (https://stackoverflow.com/a/31028507). -->77 <intent-filter android:label="Restore backup">78 <action android:name="android.intent.action.VIEW" />79 <category android:name="android.intent.category.DEFAULT" />80 <category android:name="android.intent.category.BROWSABLE" />81 <data android:scheme="file" />82 <data android:scheme="content" />83 <data android:host="*" />84 <data android:mimeType="*/*" />85 <data android:pathPattern=".*\\.tachibk" />86 <data android:pathPattern=".*\\..*\\.tachibk" />87 <data android:pathPattern=".*\\..*\\..*\\.tachibk" />88 <data android:pathPattern=".*\\..*\\..*\\..*\\.tachibk" />89 <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.tachibk" />90 <data android:pathPattern=".*\\.proto\\.gz" />91 <data android:pathPattern=".*\\..*\\.proto\\.gz" />92 <data android:pathPattern=".*\\..*\\..*\\.proto\\.gz" />93 <data android:pathPattern=".*\\..*\\..*\\..*\\.proto\\.gz" />94 <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.proto\\.gz" />95 <data android:pathPattern=".*\\.backup" />96 <data android:pathPattern=".*\\..*\\.backup" />97 <data android:pathPattern=".*\\..*\\..*\\.backup" />98 <data android:pathPattern=".*\\..*\\..*\\..*\\.backup" />99 <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.backup" />100 <data android:pathPattern=".*\\.yokanbak" />101 <data android:pathPattern=".*\\..*\\.yokanbak" />102 <data android:pathPattern=".*\\..*\\..*\\.yokanbak" />103 <data android:pathPattern=".*\\..*\\..*\\..*\\.yokanbak" />104 <data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.yokanbak" />105 </intent-filter>106 <intent-filter android:label="Tracker callback">107 <action android:name="android.intent.action.VIEW" />108 <category android:name="android.intent.category.DEFAULT" />109 <category android:name="android.intent.category.BROWSABLE" />110 <data android:scheme="yokan" />111 </intent-filter>112 </activity>113 <activity-alias114 android:name=".LauncherDefault"115 android:targetActivity=".MainActivity"116 android:enabled="true"117 android:exported="true"118 android:icon="@mipmap/ic_launcher"119 android:label="Yokan">120 <intent-filter>121 <action android:name="android.intent.action.MAIN" />122 <category android:name="android.intent.category.LAUNCHER" />123 <category android:name="android.intent.category.LEANBACK_LAUNCHER" />124 </intent-filter>125 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />126 </activity-alias>127 <activity-alias128 android:name=".LauncherToriiLight"129 android:targetActivity=".MainActivity"130 android:enabled="false"131 android:exported="true"132 android:icon="@mipmap/ic_launcher_torii_light"133 android:label="Yokan">134 <intent-filter>135 <action android:name="android.intent.action.MAIN" />136 <category android:name="android.intent.category.LAUNCHER" />137 <category android:name="android.intent.category.LEANBACK_LAUNCHER" />138 </intent-filter>139 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />140 </activity-alias>141 <activity-alias142 android:name=".LauncherToriiDark"143 android:targetActivity=".MainActivity"144 android:enabled="false"145 android:exported="true"146 android:icon="@mipmap/ic_launcher_torii_dark"147 android:label="Yokan">148 <intent-filter>149 <action android:name="android.intent.action.MAIN" />150 <category android:name="android.intent.category.LAUNCHER" />151 <category android:name="android.intent.category.LEANBACK_LAUNCHER" />152 </intent-filter>153 <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />154 </activity-alias>155 <provider156 android:name="androidx.core.content.FileProvider"157 android:authorities="${applicationId}.fileprovider"158 android:exported="false"159 android:grantUriPermissions="true">160 <meta-data161 android:name="android.support.FILE_PROVIDER_PATHS"162 android:resource="@xml/file_paths" />163 </provider>164 <service165 android:name=".services.download.DownloadForegroundService"166 android:exported="false"167 android:foregroundServiceType="dataSync" />168 </application>169</manifest>170