[Gaia::Music] Music app indexes hangout_dingtone.m4a, and it shouldn't

RESOLVED INVALID

Status

Firefox OS
Gaia::Music
P3
normal
RESOLVED INVALID
6 years ago
6 years ago

People

(Reporter: stephend, Assigned: dkuo)

Tracking

unspecified
B2G C3 (12dec-1jan)

Firefox Tracking Flags

(blocking-basecamp:-)

Details

## Environment :

Build ID: 20121204080234

Git rev: 4ed8fe3789e50b1

## Repro :

Flash your Unagi-engineering build and look in the Music app

## Expected :

The Music app is either empty or only has your imported songs

## Actual :

The Music app is apparently indexing hangout_dingtone.m4a in the Notifications directory; it shouldn't.
blocking-basecamp: --- → ?
Requesting blocking because this makes our Gaia UI test-automation fail, and working around it would lead us to miss even more potential bugs.
Assignee: nobody → dkuo
blocking-basecamp: ? → +
Priority: -- → P3
Severity: major → normal
Target Milestone: --- → B2G C3 (12dec-1jan)
(Assignee)

Comment 2

6 years ago
Stephen, currently the deviceStorage api will scan all media files on SD card, we are unable to know that *.m4a is a ringtone or a song, so I think this is not an issue because if hangout_dingtone.m4a is a song, we still need to index it on show it on UI, also *.m4a is our target format.
(Assignee)

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
Are we not able to see the path from which the file was read from?

Can tell the underlying scanner to not touch system directories?

It seems strange that this is unfixable.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
(Assignee)

Comment 4

6 years ago
We are able to tell what path the file is read from.

But why Music shouldn't ignore some directories is becasue, hangout_dingtone.m4a is a preloaded file in the SD card (which came with unagi), under folder Notifications/. And what we do is scan all files in SD card, also, since the SD card could be a brand-new one in our final device, so I will consider hangout_dingtone.m4a in Notifications/ is normal scenario of use cases. It's not a system directory so we may not to ignore it.
(Assignee)

Updated

6 years ago
blocking-basecamp: + → ?
Minused based on comment 4.
blocking-basecamp: ? → -
I agree completely with Dominic about this. /sdcard/Notifications/hangout_dingtone.m4a is some android cruft that happened to be pre-installed on the unagi sdcards. It may be a system directory to android, but it isn't to FirefoxOS.  As long as our partners don't ship phones with random audio files on the sdcards, this isn't a bug we need to worry about.

Stephen: for QA, perhaps you can reformat your SD cards to get rid of it and make the problem go away that way.

I'm going to repeat what Dominic did and close this as invalid.
Status: REOPENED → RESOLVED
Last Resolved: 6 years ago6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.