update device_perms