platform/frameworks/base / data/etc/privapp-permissions-platform.xml
{
........
<privapp-permissions package="com.xxxx.camera">
<permission name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
<permission name="android.permission.WRITE_MEDIA_STORAGE"/>
</privapp-permissions>
}
LOCAL_CERTIFICATE := platform