Commit f6003c2b authored by Tsuyoshi Horo's avatar Tsuyoshi Horo Committed by Commit Bot

Add more pathPattern in AndroidManifest.xml for bundled exchanges

When "Files by Google" opens a file "a.a.wbn" in USB storage, the URI is like

content://com.google.android.apps.nbu.files.provider/3/content%3A%2F%2Fcom.
android.externalstorage.documents%2Ftree%2FC93A-14FA%253A%2Fdocument%2FC93A-
14FA%253Aa.a.wbn

There are five dots in the file name, and the URI doesn't match the current
pathPattern due to the strange behavior of intent filter's pathPattern.
https://stackoverflow.com/questions/51912180/strange-intent-filter-pathpattern-behaviour

So "Files by Google" can't opens the file with Chrome.
To fix this problem, this CL adds more android:pathPattern.

Bug: 995177
Change-Id: I3c4652d6aff8508fa00ead0e3da2855706756725
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1852327Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705351}
parent 4b460990
...@@ -306,10 +306,9 @@ by a child template that "extends" this file. ...@@ -306,10 +306,9 @@ by a child template that "extends" this file.
<data android:scheme="content" /> <data android:scheme="content" />
<data android:mimeType="*/*" /> <data android:mimeType="*/*" />
<data android:host="*" /> <data android:host="*" />
<data android:pathPattern="/.*\\.wbn" /> {% for i in range(10) %}
<data android:pathPattern="/.*\\..*\\.wbn" /> <data android:pathPattern="/.*{{ '\\\\..*' * i }}\\.wbn" />
<data android:pathPattern="/.*\\..*\\..*\\.wbn" /> {% endfor %}
<data android:pathPattern="/.*\\..*\\..*\\..*\\.wbn" />
</intent-filter> </intent-filter>
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment