autoVerify="false" on all IntentFilters for HTTP/HTTPS #2004

The autoVerify function seems to require that the app only declare domain
names in the IntentFilters that are set up with the "site association"
files.  For F-Droid to support the verified app link, it would have to stop
matching play.google.com, amazon.com, etc.  This autoVerify function also
triggers DNS lookups at the system level, which might not be forwarded over
Tor, in certain scenarios.  So this just disables the whole feature.

https://developer.android.com/training/app-links/verify-site-associations
This commit is contained in:
Hans-Christoph Steiner 2020-06-25 12:49:55 +02:00
parent 757476dc9b
commit 864453bb5d
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA

View File

@ -301,7 +301,7 @@
<data android:scheme="fdroid.app"/>
</intent-filter>
<intent-filter android:autoVerify="true">
<intent-filter android:autoVerify="false">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
@ -319,7 +319,7 @@
<data android:pathPattern="/.*/packages/.*/"/>
</intent-filter>
<intent-filter>
<intent-filter android:autoVerify="false">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
@ -346,7 +346,7 @@
<data android:scheme="market" android:host="details"/>
</intent-filter>
<intent-filter>
<intent-filter android:autoVerify="false">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
@ -367,7 +367,7 @@
<data android:scheme="amzn" android:host="apps" android:path="/android"/>
</intent-filter>
<intent-filter>
<intent-filter android:autoVerify="false">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
@ -401,7 +401,7 @@
<data android:scheme="market" android:host="search"/>
</intent-filter>
<intent-filter>
<intent-filter android:autoVerify="false">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
@ -439,7 +439,7 @@
This filter supports HTTP and HTTPS schemes. There is an additional filter for
fdroidrepo:// and fdroidrepos://
-->
<intent-filter>
<intent-filter android:autoVerify="false">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>