Merge "Verify all possible hosts that match web nav" into oc-mr1-dev
This commit is contained in:
@@ -19094,7 +19094,9 @@ public class PackageManagerService extends IPackageManager.Stub
|
|||||||
final int verificationId = mIntentFilterVerificationToken++;
|
final int verificationId = mIntentFilterVerificationToken++;
|
||||||
for (PackageParser.Activity a : pkg.activities) {
|
for (PackageParser.Activity a : pkg.activities) {
|
||||||
for (ActivityIntentInfo filter : a.intents) {
|
for (ActivityIntentInfo filter : a.intents) {
|
||||||
if (filter.handlesWebUris(true) && needsNetworkVerificationLPr(filter)) {
|
// Run verification against hosts mentioned in any web-nav intent filter,
|
||||||
|
// even if the filter matches non-web schemes as well
|
||||||
|
if (filter.handlesWebUris(false) && needsNetworkVerificationLPr(filter)) {
|
||||||
if (DEBUG_DOMAIN_VERIFICATION) Slog.d(TAG,
|
if (DEBUG_DOMAIN_VERIFICATION) Slog.d(TAG,
|
||||||
"Verification needed for IntentFilter:" + filter.toString());
|
"Verification needed for IntentFilter:" + filter.toString());
|
||||||
mIntentFilterVerifier.addOneIntentFilterVerification(
|
mIntentFilterVerifier.addOneIntentFilterVerification(
|
||||||
|
|||||||
Reference in New Issue
Block a user