Fixed some issue change the install method to support more devices.