admin管理员组

文章数量:1654384

         今天客户反馈,在使用360手机助手的时候,显示的手机型号有时候错误,比如你用的华为的手机,而显示的是THC的手机型号,需要我们修改,我先分析了一下,根本不可能啊,因为我认为显示的型号应该是读系统的属性值,即Modelname,可以使用adb shell getprop查看,结果发现model name显示正常,但是我还不死心,直接用grep命令在整个过程中搜索,也找不到客户反馈的字符串,于是很是郁闷和抓狂,难道显示的型号不是从手机中读取的吗?于是在网上狂乱百度了一下,终于找到了原因,原来360手机助手显示的手机型号是和PID和VID绑定的,360自己应该有一个数据库,根据PID和VID判断手机型号,如果数据库中没有的话,就显示android手机,如果有的话,就显示默认的手机型号,找到原因,问题就迎刃而解了,有两种方法可以修改,一是修改程序中的VID和PID,但是改动的比较大,还要修改相关驱动;二是可以发邮件给360,360自己可以修改手机助手数据库中的值。如果你不懂VID和PID指的是什么,可以再网上查看相关的资料,下面是英文的描述:

A USB device that is plugged in identifies itself by its VID/PID combination. A VID is a 16-bit vendor number (Vendor ID). A PID is a 16-bit product number (Product ID). The PC uses the VID/PID combination to find the drivers (if any) that are to be used for the USB device. For this to work, the VID/PID combination must be unique, in the sense that ecah USB device with the same VID/PID will use the same driver. So, whenever you need a specific driver for your USB product, you will need a unique VID/PID for that product.

       Note: 豌豆夹手机助手也是通过PID和VID读取手机型号的,其它手机助手还没有研究过。

本文标签: 手机型号助手错误手机