commit | 76de2c0cdff0361b50ce4d7c832a0b9ba87d0272 | [log] [tgz] |
---|---|---|
author | Christopher Tate <ctate@google.com> | Tue Jun 14 15:53:19 2016 -0700 |
committer | Christopher Tate <ctate@google.com> | Tue Jun 14 17:34:56 2016 -0700 |
tree | 4d424ab1107886104e77b06262537a5b6466c35b | |
parent | f44feb36b00192c3eeea31ed6a890027eb1ca3da [diff] [blame] |
Implement wildcard support for autoVerify web-link intent filters Bug 28851367 Change-Id: I87bc104bd93f21d6504dcc40d59b5f97c7a277ff
diff --git a/services/core/java/com/android/server/pm/IntentFilterVerificationState.java b/services/core/java/com/android/server/pm/IntentFilterVerificationState.java index c6e7911..a4e9d10 100644 --- a/services/core/java/com/android/server/pm/IntentFilterVerificationState.java +++ b/services/core/java/com/android/server/pm/IntentFilterVerificationState.java
@@ -96,7 +96,12 @@ if (i > 0) { sb.append(" "); } - sb.append(mHosts.valueAt(i)); + String host = mHosts.valueAt(i); + // "*.example.tld" is validated via https://example.tld + if (host.startsWith("*.")) { + host = host.substring(2); + } + sb.append(host); } return sb.toString(); }