Fix bug that android device cannot be detected sometimes if there exits more than more devices named 'android'
Normalize installation error code.