Opening any kind of file suggests Tomdroid

Bug #1197840 reported by Michael von Glasow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tomdroid
New
Undecided
Unassigned

Bug Description

When Tomdroid 0.7.2 is installed, opening any file (e.g. by tapping it in OI File Manager, or after downloading an APK with F-Droid, possibly other) causes the Intent picker to come up and suggest Tomdroid among the intents for opening the file. This happens for all file types, even for those where this obviously doesn't make sense, such as APK or media files.

This behavior started after I upgraded to Tomdroid 0.7.2. I cannot reliably tell what version I was running before, most likely it was 0.7.1 (I obtained the most recent APK from f-droid.org on October 19).

Looking at the code, this behavior seems to have been introduced in revisions 418 and 460. 418 adds to AndroidManifest.xml:

                        <intent-filter>
                                <action android:name="android.intent.action.VIEW" />
                                <category android:name="android.intent.category.DEFAULT" />
                        <category android:name="android.intent.category.BROWSABLE" />
                                <data android:scheme="file" />
                                <data android:host="*" />
                                <data android:pathPattern=".*\\.note" />
                                <data android:mimeType="*/*"
                                />
                        </intent-filter>

460 changes the android:pathPattern to:

                                <data android:pathPattern=".*" />

If I get that correctly, this intent filter is intended for note import, but matches any local file, regardless of its extension or mime type.

It would probably be better to restrict the mime type to something line text/*. For files with a missing or incorrect mime type, it may make sense to provide an alternative in the form of a pathPattern that matches some known text file extensions.

description: updated
Revision history for this message
Stefan Hammer (j-4-deactivatedaccount) wrote : Re: [Bug 1197840] [NEW] Opening any kind of file suggests Tomdroid
Download full text (7.5 KiB)

This is already fixed in trunk.
Thanks for your bug report.
- stefan

Michael von Glasow <email address hidden> wrote:

>Public bug reported:
>
>When Tomdroid 0.7.2 is installed, opening any file (e.g. by tapping it
>in OI File Manager, or after downloading an APK with F-Droid, possibly
>other) causes the Intent picker to come up and suggest Tomdroid among
>the intents for opening the file. This happens for all file types, even
>for those where this obviously doesn't make sense, such as APK or media
>files.
>
>This behavior started after I upgraded to Tomdroid 0.7.2. I cannot
>reliably tell what version I was running before, most likely it was
>0.7.1 (I obtained the most recent APK from f-droid.org on October 19).
>
>Looking at the code, this behavior seems to have been introduced in
>revisions 418 and 460. 418 adds to AndroidManifest.xml:
>
>                        <intent-filter>
>                                <action android:name="android.intent.action.VIEW" />
>                                <category android:name="android.intent.category.DEFAULT" />
>                        <category android:name="android.intent.category.BROWSABLE" />
>                                <data android:scheme="file" />
>                                <data android:host="*" />
>                                <data android:pathPattern=".*\\.note" />
>                                <data android:mimeType="*/*"
>                                />
>                        </intent-filter>
>
>460 changes the android:pathPattern to:
>
>                                <data android:pathPattern=".*" />
>
>If I get that correctly, this intent filter is intended for note import,
>but matches any local file, regardless of its extension or mime type.
>
>It would probably be better to restrict the mime type to something line
>text/*. For files with a missing or incorrect mime type, it may make
>sense to provide an alternative in the form of a pathPattern that
>matches some known text file extensions.
>
>** Affects: tomdroid
> Importance: Undecided
> Status: New
>
>
>** Tags: 0.7.2 file import intent
>
>** Description changed:
>
> When Tomdroid 0.7.2 is installed, opening any file (e.g. by tapping it
> in OI File Manager, or after downloading an APK with F-Droid, possibly
>- other), the Intent picker comes up for any kind of file, suggesting to
>- open it with Tomdroid. This happens even for file types for which this
>- obviously doesn't make sense, such as APK or media files.
>+ other) causes the Intent picker to come up and suggest Tomdroid among
>+ the intents for opening the file. This happens for all file types, even
>+ for those where this obviously doesn't make sense, such as APK or media
>+ files.
>
> This behavior started after I upgraded to Tomdroid 0.7.2. I cannot
> reliably tell what version I was running before, most likely it was
> 0.7.1 (I obtained the most recent APK from f-droid.org on October 19).
>
> Looking at the code, this behavior seems to have been introduced in
> revisions 418 and 460. 418 adds to AndroidManifest.xml:
>
>- <intent-filter>
>- <action android:...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.