Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-base: Commit

frameworks/base


Commit MetaInfo

Revisión39c9bf27471f6454202236f88c247fef4c4b2b2e (tree)
Tiempo2020-04-29 04:41:29
AutorChristopher Tate <ctate@goog...>
CommiterAnis Assi

Log Message

Verify all possible hosts that match web nav

Even if an <intent-filter> matches non-web schemes in addition to http
or https, make sure to include its cited hosts in the autoVerify
evaluation.

Bug: 150038428
Test: atest OsHostTests#testIntentFilterHostValidation
Change-Id: If9ef0fc53d96e6581c56d86f89fe63bc9a5fb89a
Merged-In: If9ef0fc53d96e6581c56d86f89fe63bc9a5fb89a
(cherry picked from commit 1fba0f897f276d5d47962534867e764da8061105)
(cherry picked from commit bfa779601082d9021ea4e7d4cca571575bd0b13b)

Cambiar Resumen

Diferencia incremental

--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -17703,7 +17703,9 @@ public class PackageManagerService extends IPackageManager.Stub
1770317703 final int verificationId = mIntentFilterVerificationToken++;
1770417704 for (PackageParser.Activity a : pkg.activities) {
1770517705 for (ActivityIntentInfo filter : a.intents) {
17706- if (filter.handlesWebUris(true) && needsNetworkVerificationLPr(filter)) {
17706+ // Run verification against hosts mentioned in any web-nav intent filter,
17707+ // even if the filter matches non-web schemes as well
17708+ if (filter.handlesWebUris(false) && needsNetworkVerificationLPr(filter)) {
1770717709 if (DEBUG_DOMAIN_VERIFICATION) Slog.d(TAG,
1770817710 "Verification needed for IntentFilter:" + filter.toString());
1770917711 mIntentFilterVerifier.addOneIntentFilterVerification(
Show on old repository browser