Checks that the provider only serves allowed file names. Bug: 9607306 (cherry picked from commit af89ef6c) Change-Id: I6f4b4b5f965881b34f19195addc9bd8647a4cf94