sd-card: failure to delete file.

On deleting SD card contents, delete operation fails
and deleted file reappears after restart.

    In MediaProvider checkIfdeleteAllowed function
	implementation, file permissions will be
	checked before deletion and if not present
	then permissions will be enforced.
    In checkAccess function implementation,there is
	permission check for all secondary
	external storage files. But this check is
	placed after error condition, where "can't access"
	exception will be thrown. Hence, file deletion
	was not happening.So we have
	placed the error condition after secondary
	external storage permission check.

b/12469610

Change-Id: I54388e19aac7c18a5a6394cf8208b807bb566b74
Signed-off-by: Pierre Couillaud <pierre@broadcom.com>

Conflicts:
	src/com/android/providers/media/MediaProvider.java