Add hook method for getDeviceId()