gallery: change typo '&&' to '||'

Assertion to ckeck array boundary should
be '&&' instead of '||'. It caused an
Exception that '-1' wasn't detected.

Change-Id: I991ad8efed87a0837d262fe7419c7f007c173b56
Signed-off-by: Leavitt Zhang <leavittz@nvidia.com>
Add WRITE_MEDIA_STORAGE permission

This fixes the issue where the images/pics are not
deleted from the android external 'SD Card' as android does not
allow writing to the external 'SD Card' with just the
WRITE_EXTERNAL_STORAGE permission.

Requires : https://gerrit.slimroms.net/#/c/2723

Change-Id: I34377160b8b8677abc3506d8aca72166b4129425