Added permission checks for explicit grant while logging for getType calls.

MediaProvider#checkUriPermission does not always checks for grants which are explcitly granted.
Fixing it with additional check.

Bug: b/266077645
Test: Manual test and logging
Change-Id: I7f3dd288a57cf334435bf93007a3f6f81b4fce3c
2 files changed