55b676bc4f
Re-run app link verification at update time only when the set of hosts has expanded. Intentionally revoke verify history when an app stops using autoVerify, as a one-time measure to place it back into the non-autoverify model for tracking the user's launch preferences. If the app starts using autoVerify again later, it behaves identically to an app that has never done so before. In the included AutoVerify test apks (all the same package name): app1 recognizes 1 host app2 recognizes the same host plus a different wildcard app3 has the same hosts as app1 but does not autoVerify app4 has the same hosts as app2 but does not autoVerify Bug: 151475497 Test: install AutoVerify app1, set to 'always', install app2, observe that it is demoted out of always Test: install app1 apk, set 'always', install app1 again, observe that no verification run is performed Test: install app2 apk, set 'always', install app1, observe that no verification run is performed Test: install app1 apk, verify still undefined/ask, install app1 again, observe that a verification is performed Test: install app2 apk, set 'always', install app1, observe that no verification run is performed, install app2 again, observe that it is reverified (and demoted out of always when verification fails) Test: install app1 apk, set 'always', install app3 apk, observe that no verification is performed & it remains in always Test: install app1 apk, set 'always', install app4 apk, observe that no verification is performed but it is demoted out of always Change-Id: I200d85085ce79842a3ed39377d1f75ec381c8991
44 lines
1.7 KiB
XML
44 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2020 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.test.autoverify" >
|
|
|
|
<uses-sdk android:targetSdkVersion="26" />
|
|
|
|
<application
|
|
android:label="@string/app_name" >
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:label="@string/app_name" >
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
|
|
<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="http" />
|
|
<data android:scheme="https" />
|
|
<data android:host="explicit.example.com" />
|
|
</intent-filter>
|
|
</activity>
|
|
</application>
|
|
</manifest>
|