moved getDeviceID and setBuild functions to async thread