Testing out KitKat I found trying to send a broadcast of ACTION_MEDIA_MOUNTED was crashing giving me an error like the following:

Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED kitkat

Solution

Simply change

sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, mediaMountUri));

to

sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, mediaMountUri));