A helper for getting device information and permissions