Rewrite intent filters for Android 12 compliance

This commit is contained in:
Jobobby04 2022-01-23 17:07:49 -05:00
parent 254d739d12
commit b7a94a72fa

View File

@ -227,151 +227,145 @@
android:label="@string/app_name" android:label="@string/app_name"
android:theme="@style/Theme.Tachiyomi" android:theme="@style/Theme.Tachiyomi"
android:exported="true"> android:exported="true">
<!-- E-Hentai -->
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<!-- EH --> <data android:scheme="https" />
<data <data android:scheme="http" />
android:host="g.e-hentai.org"
android:pathPrefix="/g/"
android:scheme="http" />
<data
android:host="g.e-hentai.org"
android:pathPrefix="/g/"
android:scheme="https" />
<data
android:host="e-hentai.org"
android:pathPrefix="/g/"
android:scheme="http" />
<data
android:host="e-hentai.org"
android:pathPrefix="/g/"
android:scheme="https" />
<!-- EXH --> <data android:host="e-hentai.org" />
<data <data android:host="www.e-hentai.org" />
android:host="exhentai.org" <data android:host="g.e-hentai.org" />
android:pathPrefix="/g/"
android:scheme="http" />
<data
android:host="exhentai.org"
android:pathPrefix="/g/"
android:scheme="https" />
<!-- nhentai --> <data android:pathPattern="/g/..*" />
<data </intent-filter>
android:host="nhentai.net" <!-- ExHentai -->
android:pathPrefix="/g/" <intent-filter>
android:scheme="http" /> <action android:name="android.intent.action.VIEW" />
<data
android:host="nhentai.net"
android:pathPrefix="/g/"
android:scheme="https" />
<!-- Perv Eden --> <category android:name="android.intent.category.DEFAULT" />
<data <category android:name="android.intent.category.BROWSABLE" />
android:host="www.perveden.com"
android:pathPattern="/.*/.*-manga/.*"
android:scheme="http" />
<data
android:host="www.perveden.com"
android:pathPattern="/.*/.*-manga/.*"
android:scheme="https" />
<!-- Hentai Cafe --> <data android:scheme="https" />
<data <data android:scheme="http" />
android:host="hentai.cafe"
android:pathPrefix="/hc.fyi/"
android:scheme="http" />
<data
android:host="hentai.cafe"
android:pathPrefix="/hc.fyi/"
android:scheme="https" />
<!-- Tsumino --> <data android:host="exhentai.org" />
<data <data android:host="www.exhentai.org" />
android:host="www.tsumino.com"
android:pathPrefix="/Book/Info/"
android:scheme="http" />
<data
android:host="www.tsumino.com"
android:pathPrefix="/Book/Info/"
android:scheme="https" />
<data
android:host="www.tsumino.com"
android:pathPrefix="/Read/View/"
android:scheme="http" />
<data
android:host="www.tsumino.com"
android:pathPrefix="/Read/View/"
android:scheme="https" />
<!-- Hitomi.la --> <data android:pathPattern="/g/..*" />
<data </intent-filter>
android:host="hitomi.la" <!-- NHentai -->
android:pathPrefix="/galleries/" <intent-filter>
android:scheme="http" /> <action android:name="android.intent.action.VIEW" />
<data
android:host="hitomi.la"
android:pathPrefix="/reader/"
android:scheme="http" />
<data
android:host="hitomi.la"
android:pathPrefix="/galleries/"
android:scheme="https" />
<data
android:host="hitomi.la"
android:pathPrefix="/reader/"
android:scheme="https" />
<!-- Pururin.io --> <category android:name="android.intent.category.DEFAULT" />
<data <category android:name="android.intent.category.BROWSABLE" />
android:host="pururin.io"
android:pathPrefix="/gallery/"
android:scheme="http" />
<data
android:host="pururin.io"
android:pathPrefix="/gallery/"
android:scheme="https" />
<!-- HBrowse --> <data android:scheme="https" />
<data <data android:scheme="http" />
android:host="www.hbrowse.com"
android:scheme="http" />
<data
android:host="www.hbrowse.com"
android:scheme="https" />
<!-- MangaDex --> <data android:host="nhentai.net" />
<data <data android:host="www.nhentai.net" />
android:scheme="https"
android:host="www.mangadex.org"
android:pathPrefix="/manga/" />
<data
android:scheme="https"
android:host="mangadex.org"
android:pathPrefix="/manga/" />
<data <data android:pathPattern="/g/..*" />
android:scheme="https" </intent-filter>
android:host="www.mangadex.org" <!-- Perv Eden -->
android:pathPrefix="/title/" /> <intent-filter>
<data <action android:name="android.intent.action.VIEW" />
android:scheme="https"
android:host="mangadex.org"
android:pathPrefix="/title/" />
<data <category android:name="android.intent.category.DEFAULT" />
android:scheme="https" <category android:name="android.intent.category.BROWSABLE" />
android:host="www.mangadex.org"
android:pathPrefix="/chapter/" /> <data android:scheme="https" />
<data <data android:scheme="http" />
android:scheme="https"
android:host="mangadex.org" <data android:host="perveden.com" />
android:pathPrefix="/chapter/" /> <data android:host="www.perveden.com" />
<data android:pathPattern="/.*/.*-manga/.*" />
</intent-filter>
<!-- Tsumino -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:scheme="http" />
<data android:host="tsumino.com" />
<data android:host="www.tsumino.com" />
<data android:pathPattern="/Read/View/..*" />
<data android:pathPattern="/Book/Info/..*" />
</intent-filter>
<!-- Hitomi.la -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:scheme="http" />
<data android:host="hitomi.la" />
<data android:host="www.hitomi.la" />
<data android:pathPattern="/reader/..*" />
<data android:pathPattern="/galleries/..*" />
</intent-filter>
<!-- Pururin -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:scheme="http" />
<data android:host="pururin.io" />
<data android:pathPattern="/gallery/..*" />
</intent-filter>
<!-- HBrowse -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:scheme="http" />
<data android:host="hbrowse.com" />
<data android:host="www.hbrowse.com" />
<!--<data android:pathPattern="/gallery/..*" />-->
</intent-filter>
<!-- Mangadex -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:host="mangadex.org" />
<data android:host="mangadex.cc" />
<data android:host="www.mangadex.org" />
<data android:host="www.mangadex.cc" />
<data android:pathPattern="/manga/..*" />
<data android:pathPattern="/title/..*" />
<data android:pathPattern="/chapter/..*" />
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity