Using user agent to check device model

 - Changing the way to check the device model.
 - Adding the 'unsupported device' case.