fix for custom android permissions