CN104135520B - A kind of method and device for identifying android terminal - Google Patents

A kind of method and device for identifying android terminal Download PDF

Info

Publication number
CN104135520B
CN104135520B CN201410366861.1A CN201410366861A CN104135520B CN 104135520 B CN104135520 B CN 104135520B CN 201410366861 A CN201410366861 A CN 201410366861A CN 104135520 B CN104135520 B CN 104135520B
Authority
CN
China
Prior art keywords
user equipment
android
hardware information
user
device type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410366861.1A
Other languages
Chinese (zh)
Other versions
CN104135520A (en
Inventor
刘鹏
胡国中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou cheetah Network Technology Co., Ltd.
Original Assignee
Kingsoft Guangzhou Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingsoft Guangzhou Network Technology Co Ltd filed Critical Kingsoft Guangzhou Network Technology Co Ltd
Priority to CN201410366861.1A priority Critical patent/CN104135520B/en
Publication of CN104135520A publication Critical patent/CN104135520A/en
Application granted granted Critical
Publication of CN104135520B publication Critical patent/CN104135520B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of method for identifying android terminal, including:When the first user equipment debugs bridge ADB instruments by Android to be accessed, the device type for determining first user equipment is android terminal;Obtain the hardware information in the driving configuration documentation of first user equipment;Hardware information in the device type of first user equipment and the driving configuration documentation is uploaded into cloud server, so that the device type of other user equipmenies is identified as android terminal by the cloud server when it is determined that the hardware information of other user equipmenies is identical with the hardware information in the driving configuration documentation.Correspondingly, the embodiment of the invention also discloses a kind of device for identifying android terminal.Using the present invention, it is possible to achieve identify android terminal by cloud server.

Description

A kind of method and device for identifying android terminal
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and device for identifying android terminal.
Background technology
With the continuous development of electronic technology, increasing electronic equipment arises at the historic moment, wherein, such as smart mobile phone, put down The electronic equipment of plate computer, MP3 player, electronic reader and handheld device etc. can establish cable modem with PC Letter, to realize data transfer.In numerous electronic equipments, Android (Android) terminal is user equipment the most universal, Android terminal, such as USB (Universal Serial Bus, USB) data wire, connects personal electricity by data wire During brain, if PC can recognize that it is android terminal, the experience of user will be significantly improved, such as when user is by Android mobile phone After USB data line grafting PC, PC can recognize that it is Android mobile phone.
At present, as user by android terminal by data wire grafting PC after, it is necessary to pass through ADB in android terminal (Android Debug Bridge, Android debugging bridge) instrument is established under conditions of being communicated with the data of PC, personal electricity Brain just can recognize that it is android terminal, still, in general, can't voluntarily lead to after android terminal grafting PC Cross ADB instruments establish data communication, cause in this condition PC cannot recognize that it is android terminal, reduce user Experience.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided a kind of method and dress for identifying android terminal Put, it is possible to achieve by cloud server identify android terminal, have recognition speed soon and the degree of accuracy it is high the characteristics of, lifting user Experience.
In order to solve the above-mentioned technical problem, the embodiments of the invention provide a kind of method for identifying android terminal, including:
When the first user equipment debugs bridge ADB instruments by Android to be accessed, the equipment that determines first user equipment Type is android terminal;
Obtain the hardware information in the driving configuration documentation of first user equipment;
Hardware information in the device type of first user equipment and the driving configuration documentation is uploaded into high in the clouds Server, so that the cloud server is it is determined that hardware information and the institute in the driving configuration documentation of other user equipmenies State hardware information it is identical when, the device type of other user equipmenies is identified as android terminal.
Correspondingly, the embodiment of the present invention additionally provides a kind of device for identifying android terminal, including:
Determination type module, for when the first user equipment is debugged bridge ADB instruments by Android and accessed, determining described the The device type of one user equipment is android terminal;
Data obtaining module, the hardware information in driving configuration documentation for obtaining first user equipment;
Information uploading module, for will the device type of first user equipment and it is described driving configuration documentation in it is hard Part information uploads to cloud server, so that the cloud server is it is determined that hardware information and the drive of other user equipmenies When the hardware information in dynamic configuration documentation is identical, the device type of other user equipmenies is identified as android terminal.
Implement the embodiment of the present invention, have the advantages that:The embodiment of the present invention passes through Android in the first user equipment When debugging the access of bridge ADB instruments, the device type for determining the first user equipment is android terminal, then obtains the first user equipment The hardware information in configuration documentation is driven, and will be hard in the device type of the first user equipment and the driving configuration documentation obtained Part information uploads to cloud server and preserved with associating, it is possible to achieve after other android terminal grafting PCs, even if should Android terminal is not established data by ADB instruments with PC and communicated, and only knows driving of the android terminal in PC Under the conditions of hardware information in configuration documentation, it is android terminal that it can be also identified by cloud server, has recognition speed The characteristics of fast and degree of accuracy is high, lifts the experience of user.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of method for identifying android terminal provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another identification android terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of device for identifying android terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of demonstration schematic diagram for driving configuration documentation provided in an embodiment of the present invention;
Fig. 5 is a kind of content schematic diagram for driving configuration documentation provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The first user equipment provided in the embodiment of the present invention includes Android mobile phone and Android tablet personal computer, and the present invention is implemented The second user equipment provided in example includes smart mobile phone, tablet personal computer, MP3 player, electronic reader and handheld game The electronic equipment of machine etc., the first user equipment and second user equipment can establish wire communication with PC, to realize number According to transmission.
The device of the identification user equipment provided in the embodiment of the present invention, hereinafter referred to as " apparatus of the present invention ", including individual Computer is built in PC.The cloud server provided in the embodiment of the present invention is located in internet or after LAN Platform, it can store and exchange data.
Fig. 1 is a kind of schematic flow sheet for the method for identifying android terminal in the embodiment of the present invention.This implementation as shown in the figure The flow of the method for identification android terminal in example can include:
S101, when the first user equipment debugs bridge ADB instruments by Android to be accessed, determine first user equipment Device type is android terminal.
ADB (Android Debug Bridge, the Android debugging bridge) instrument is that android terminal is established with PC The peculiar instrument of data communication, by ADB instruments, PC can manage the state of the simulator of android terminal, such as install Software and system upgrade etc., in brief, ADB instruments are exactly the bridge for connecting android terminal and PC, can allow user Android terminal is comprehensively operated on PC.It is pointed out that because ADB instruments are that android terminal is distinctive Instrument, if therefore some user equipment by ADB instruments access PC, can determine that the user equipment is android terminal.
Specifically, apparatus of the present invention when knowing that the first user equipment is debugged bridge ADB instruments by Android and accessed, determine the The device type of one user equipment is android terminal.
Optionally, apparatus of the present invention can also enter one after it is determined that the device type of the first user equipment is android terminal Step performs following operate:The device parameter of bridge ADB instruments acquisition first user equipment is debugged by the Android;According to institute The device parameter of the first user equipment is stated, the device type for determining first user equipment is Android mobile phone or Android flat board electricity Brain.
Wherein, the device parameter can be stored in the unit type information in android terminal, such as:GALAXY S5 With GALAXY Tab3 etc..In addition, each device parameter has corresponding device type respectively, such as:It is corresponding to GALAXY S5 (Samsung) Android mobile phone, it is (Samsung) Android tablet personal computer etc. corresponding to GALAXY Tab3.It is pointed out that each equipment Parameter can be stored in the presetting database of apparatus of the present invention with corresponding device type, and presetting database can be by internet not Disconnected renewal.
S102, obtain the hardware information in the driving configuration documentation of first user equipment.
The driving configuration documentation can be INF (Device INFormation, the activation bit) texts of Windows systems Part, in Windows systems, INF files are often used as suffix name using " .inf ".INF files include hardware device information or Script is to control hardware operation, and that specify the driving of hardware device, how this is installed in system, installed in which file And how itself relevant information etc. is added in registration table.Wherein, above-mentioned hardware device can include the outside of PC Equipment, such as camera and microphone.Generally comprised it is pointed out that the user equipment that data communicate can be established with PC There is said external equipment, such as smart mobile phone just includes camera.Usually, only it is mounted with that hardware is set on PC After standby driver, hardware device can just be identified by PC.
Optionally, the driving configuration documentation of the first user equipment can previously generate by the following method:Apparatus of the present invention Data wire foundation and the communication connection of the first user equipment are first passed through, then passes through communication connection the first user equipment of installation of foundation Driver to generate the driving configuration documentation of the first user equipment.It is pointed out that the driving journey of the first user equipment Sequence includes the driver of the various hardware devices in the first user equipment, such as the driver of smart mobile phone includes having shooting The driver of the hardware devices such as head, microphone and memory.In addition, apparatus of the present invention are installing the first user equipment After driver, the driving configuration documentation of the first user equipment will be automatically generated.For example, refer to a kind of drive shown in Fig. 4 The demonstration schematic diagram of dynamic configuration documentation, after the driver of Samsung mobile phone is installed, it will given birth to automatically in equipment manager Into " SANSUNG Mobile USB Composite Device ", wherein " SANSUNG Mobile USB Composite Device " includes the driving configuration documentation " oem61.inf " of Samsung mobile phone.
The hardware information includes VID (Vendor Identification, production firm's identification information), PID (Product Identification, product identification information) and SN (Serial Number, sequence number) etc. one of which or It is a variety of.Usually, can also remember in addition to recording the hardware information of hardware device of itself in the driving configuration documentation of user equipment Record the hardware information of the hardware device of same type of other user equipmenies.
Specifically, apparatus of the present invention obtain whole hardware informations in the driving configuration documentation of the first user equipment.
During specific implementation, still by taking the driving configuration documentation " oem61.inf " of Samsung mobile phone as an example, referring to Fig. 5, false If VID and PID corresponding to some hardware device of Samsung mobile phone be figure shown in " USB VID_04E8&PID_6860 ", that Can also find VID and PID corresponding to other hardware devices in driving configuration documentation, such as " USB VID_04E8&PID_ 6861 " etc., apparatus of the present invention will obtain the whole VID and PID driven in configuration documentation.
S103, the hardware information in the device type of first user equipment and the driving configuration documentation is uploaded to Cloud server, so that the cloud server is it is determined that in the hardware information and the driving configuration documentation of other user equipmenies The hardware information it is identical when, the device type of other user equipmenies is identified as android terminal.
Specifically, apparatus of the present invention by the device type (android terminal) of the first user equipment of determination and obtain configuration Hardware information in document uploads to cloud server, and cloud server associates device type (android terminal) with hardware information Preserve, when cloud server gets the hardware information of other user equipmenies, however, it is determined that the hardware information of other user equipmenies It is identical with the hardware information of the first user equipment, then this user equipment can be identified as android terminal.It is pointed out that cloud The device type and hardware information that end server association preserves have multigroup, can be uploaded by multiple different apparatus of the present invention, similarly, The hardware information of other user equipmenies can also be uploaded by multiple different apparatus of the present invention.
During specific implementation, still by taking the driving configuration documentation " oem61.inf " of Samsung mobile phone as an example, referring to Fig. 5, false If A devices obtain the hardware information of other hardware devices in the driving configuration documentation of Samsung mobile phone, such as " USB VID_ 04E8&PID_6861 ", and uploaded to cloud server, cloud server will " USB VID_04E8&PID_6861 " and " android terminal " association preserves, and hereafter, grafting one unknown user equipment, B devices obtain the unknown user on B devices The hardware information of equipment " after USB VID_04E8&PID_6861 ", is uploaded to cloud server, then cloud server will Can find unknown user equipment hardware information " USB VID_04E8&PID_6861 " and " android terminal " be it is associated, Therefore it can determine that the type of unknown user equipment is android terminal.
Optionally, if apparatus of the present invention have determined that the first user equipment is Android mobile phone or Android tablet personal computer, by really Hardware letter in the device type (Android mobile phone or Android tablet personal computer) of the first fixed user equipment and the configuration documentation obtained Breath uploads to cloud server, and cloud server closes the device type (Android mobile phone or Android tablet personal computer) and hardware information UNPROFOR is deposited, and similarly, unknown other user equipmenies further can be identified as Android mobile phone or tablet personal computer by cloud server, this In repeat no more.
Further alternative, the device type of other user equipmenies of identification can be returned to dress of the present invention by cloud server Put, apparatus of the present invention, which are pushed, is shown to user, so that user knows the type of the user equipment of grafting.
The embodiment of the present invention determines that the first user sets when the first user equipment is debugged bridge ADB instruments by Android and accessed Standby device type is android terminal, then obtains the hardware information in the driving configuration documentation of the first user equipment, and by first The device type of user equipment uploads to cloud server with the hardware information in the driving configuration documentation obtained and preserved with associating, It can realize after other android terminal grafting PCs, even if the android terminal is not built with PC by ADB instruments Vertical data communication, under the conditions of only knowing hardware information of the android terminal in the driving configuration documentation of PC, it can also lead to Cross cloud server and identify that it is android terminal, have recognition speed fast and the characteristics of the degree of accuracy is high, lift the experience of user.
Fig. 2 is the schematic flow sheet of the method for another identification android terminal in the embodiment of the present invention, can be included:
S201, the communication connection with the first user equipment is established by data wire.
The data wire can be USB data line.Specifically, apparatus of the present invention can be established and first by USB data line The communication connection of user equipment.
S202, the driver of first user equipment is installed by the communication connection of foundation to generate the first use The driving configuration documentation of family equipment.
The driving configuration documentation can be INF (Device INFormation, the activation bit) texts of Windows systems Part, in Windows systems, INF files are often used as suffix name using " .inf ".INF files include hardware device information or Script is to control hardware operation, and that specify the driving of hardware device, how this is installed in system, installed in which file And how itself relevant information etc. is added in registration table.Wherein, above-mentioned hardware device can include the outside of PC Equipment, such as camera and microphone.Generally comprised it is pointed out that the user equipment that data communicate can be established with PC There is said external equipment, such as smart mobile phone just includes camera.Usually, only it is mounted with that hardware is set on PC After standby driver, hardware device can just be identified by PC.
It is pointed out that the driver of the first user equipment includes the various hardware devices in the first user equipment Driver, such as the driver of smart mobile phone include the driving for having the hardware devices such as camera, microphone and memory Program.In addition, apparatus of the present invention after the driver of the first user equipment is installed, will automatically generate the first user equipment Driving configuration documentation.For example, refer to a kind of demonstration schematic diagram of driving configuration documentation shown in Fig. 4, when installing Samsung After the driver of mobile phone, it will " SANSUNG Mobile USB Composite are automatically generated in equipment manager Device ", wherein " SANSUNG Mobile USB Composite Device " include the driving configuration documentation of Samsung mobile phone “oem61.inf”。
S203, when the first user equipment debugs bridge ADB instruments by Android to be accessed, determine first user equipment Device type is android terminal.
ADB (Android Debug Bridge, the Android debugging bridge) instrument is that android terminal is established with PC The peculiar instrument of data communication, by ADB instruments, PC can manage the state of android terminal simulator, such as install soft Part and system upgrade etc., in brief, ADB instruments are exactly the bridge for connecting android terminal and PC, user can be allowed to exist Android terminal is comprehensively operated on PC.It is pointed out that because ADB instruments are the distinctive work of android terminal Tool, if therefore certain user equipment by ADB instruments access PC, can determine that the user equipment is android terminal.
Specifically, apparatus of the present invention when knowing that the first user equipment is debugged bridge ADB instruments by Android and accessed, determine the The device type of one user equipment is android terminal.
S204, the device parameter of bridge ADB instruments acquisition first user equipment is debugged by the Android.
Wherein, the device parameter can be stored in the unit type information in android terminal, such as:GALAXY S5 With GALAXY Tab3 etc..In addition, each device parameter has corresponding device type respectively, such as:It is corresponding to GALAXY S5 (Samsung) Android mobile phone, it is (Samsung) Android tablet personal computer etc. corresponding to GALAXY Tab3.It is pointed out that each equipment Parameter can be stored in the presetting database of apparatus of the present invention with corresponding device type, and presetting database can be by internet not Disconnected renewal.
Specifically, apparatus of the present invention debug the device parameter of bridge ADB instruments the first user equipment of acquisition by Android.
S205, according to the device parameter of first user equipment, determining the device type of first user equipment is Android mobile phone or Android tablet personal computer.
During specific implementation, it is assumed that the device parameter of the first user equipment of acquisition is " GALAXY S5 ", present invention dress Put and inquire that " device type corresponding to GALAXY S5 " is (Samsung) Android mobile phone, therefore can determine that first in presetting database The device type of user equipment is Android mobile phone.
S206, obtain the hardware information in the driving configuration documentation of first user equipment.
The hardware information includes VID (Vendor Identification, production firm's identification information), PID (Product Identification, product identification information) and SN (Serial Number, sequence number) etc. one of which or It is a variety of.Usually, can also remember in addition to recording the hardware information of hardware device of itself in the driving configuration documentation of user equipment Record the hardware information of the hardware device of same type of other user equipmenies.
Specifically, apparatus of the present invention obtain the hardware information in the driving configuration documentation of the first user equipment.
During specific implementation, still by taking the driving configuration documentation " oem61.inf " of Samsung mobile phone as an example, referring to Fig. 5, false If VID and PID corresponding to some hardware device of Samsung mobile phone be figure shown in " USB VID_04E8&PID_6860 ", that Can also find VID and PID corresponding to other hardware devices in driving configuration documentation, such as " USB VID_04E8&PID_ 6861 " etc., apparatus of the present invention will obtain the whole VID and PID driven in configuration documentation.
S207, the hardware information in the device type of first user equipment and the driving configuration documentation is uploaded to Cloud server.
Specifically, apparatus of the present invention by the device type (android terminal) of the first user equipment of determination and obtain configuration Hardware information in document uploads to cloud server, and cloud server associates device type (android terminal) with hardware information Preserve.
Optionally, if apparatus of the present invention have determined that the first user equipment is Android mobile phone or Android tablet personal computer, by really Hardware letter in the device type (Android mobile phone or Android tablet personal computer) of the first fixed user equipment and the configuration documentation obtained Breath uploads to cloud server, and cloud server closes the device type (Android mobile phone or Android tablet personal computer) and hardware information UNPROFOR is deposited.
S208, when detecting the access of second user equipment, obtain the hardware information of the second user equipment.
The second user equipment is unknown user equipment.Detect second user apparatus connecting to originally specifically, working as During invention device, apparatus of the present invention obtain the hardware information of second user equipment.
S209, the hardware information of the second user equipment is uploaded into the cloud server, so that the high in the clouds takes Business device judges whether the second user equipment is that Android mobile phone or Android are put down according to the hardware information of the second user equipment Plate, if so, then returning to the device type of second user equipment.
Specifically, the hardware information of the second user equipment got is uploaded to cloud server by apparatus of the present invention, when When cloud server gets the hardware information of second user equipment, however, it is determined that the hardware information of second user equipment and first is used The hardware information of family equipment is identical, then this user equipment can be identified as to android terminal, and return to second to apparatus of the present invention The device type of user equipment.
During specific implementation, still by taking the driving configuration documentation " oem61.inf " of Samsung mobile phone as an example, referring to Fig. 5, false If A devices obtain the hardware information of other hardware devices in the driving configuration documentation of Samsung mobile phone, such as " USB VID_ 04E8&PID_6861 ", and uploaded to cloud server, cloud server will " USB VID_04E8&PID_6861 " and " android terminal " association preserves, and hereafter, grafting one unknown user equipment, B devices obtain the unknown user on B devices The hardware information of equipment " after USB VID_04E8&PID_6861 ", is uploaded to cloud server, then cloud server will Can find unknown user equipment hardware information " USB VID_04E8&PID_6861 " and " android terminal " be it is associated, Therefore it can determine that the type of unknown user equipment is android terminal.
Optionally, if cloud server association preservation is hardware information and device type (Android mobile phone or Android flat board Computer), then similarly, cloud server can determine that the type of unknown user equipment is Android mobile phone or Android flat board electricity Brain.
S210, obtain the device type for the second user equipment that the cloud server returns.
Specifically, apparatus of the present invention obtain the device type for the second user equipment that cloud server returns.Such as Android Terminal, optionally, Android mobile phone or Android tablet personal computer.
S211, the device type push of the second user equipment is shown to user.
Specifically, the device type of second user equipment is shown to use by apparatus of the present invention by default display window Family, so that user knows the device type of the second user equipment of current grafting.
The embodiment of the present invention determines that the first user sets when the first user equipment is debugged bridge ADB instruments by Android and accessed Standby device type is android terminal, then obtains the hardware information in the driving configuration documentation of the first user equipment, and by first The device type of user equipment uploads to cloud server with the hardware information in the driving configuration documentation obtained and preserved with associating, It can realize after second user equipment (assuming that being android terminal) grafting PC, even if second user equipment and individual's electricity Brain is not established data by ADB instruments and communicated, and only knows that second user equipment is hard in the driving configuration documentation of PC Under part information condition, it is android terminal that it can be also identified by cloud server, has recognition speed soon and the degree of accuracy is high Feature, lift the experience of user.
Fig. 3 is a kind of structural representation for the device for identifying android terminal in the embodiment of the present invention.It is of the invention as shown in the figure The device of identification android terminal in embodiment can at least include determination type module 310, data obtaining module 320 and letter Uploading module 330 is ceased, wherein:
Determination type module 310, for when the first user equipment is debugged bridge ADB instruments by Android and accessed, determining institute The device type for stating the first user equipment is android terminal.
ADB (Android Debug Bridge, the Android debugging bridge) instrument is that android terminal is established with PC The peculiar instrument of data communication, by ADB instruments, PC can manage the state of android terminal simulator, such as install soft Part and system upgrade etc., in brief, ADB instruments are exactly the bridge for connecting android terminal and PC, user can be allowed to exist Android terminal is comprehensively operated on PC.It is pointed out that because ADB instruments are the distinctive work of android terminal Tool, if therefore certain user equipment by ADB instruments access PC, can determine that the user equipment is android terminal.
Specifically, determination type module 310 is when knowing that the first user equipment is debugged bridge ADB instruments by Android and accessed, The device type for determining the first user equipment is android terminal.
Data obtaining module 320, the hardware information in driving configuration documentation for obtaining first user equipment.
The driving configuration documentation can be INF (Device INFormation, the activation bit) texts of Windows systems Part, in Windows systems, INF files are often used as suffix name using " .inf ".INF files include hardware device information or Script is to control hardware operation, and that specify the driving of hardware device, how this is installed in system, installed in which file And how itself relevant information etc. is added in registration table.Wherein, above-mentioned hardware device can include the outside of PC Equipment, such as camera and microphone.Generally comprised it is pointed out that the user equipment that data communicate can be established with PC There is said external equipment, such as smart mobile phone just includes camera.Usually, only it is mounted with that hardware is set on PC After standby driver, hardware device can just be identified by PC.
The hardware information includes VID (Vendor Identification, production firm's identification information), PID The one of which or more of (Product Identification, product identification information) and SN (Serial Number, sequence number) Kind.Usually, can also be recorded in addition to recording the hardware information of hardware device of itself in the driving configuration documentation of user equipment The hardware information of the hardware device of same type of other user equipmenies.
Specifically, data obtaining module 320 obtains whole hardware informations in the driving configuration documentation of the first user equipment.
During specific implementation, still by taking the driving configuration documentation " oem61.inf " of Samsung mobile phone as an example, referring to Fig. 5, false If VID and PID corresponding to some hardware device of Samsung mobile phone be figure shown in " USB VID_04E8&PID_6860 ", that Can also find VID and PID corresponding to other hardware devices in driving configuration documentation, such as " USB VID_04E8&PID_ 6861 " etc., data obtaining module 320 will obtain the whole VID and PID driven in configuration documentation.
Information uploading module 330, for by the device type of first user equipment and the driving configuration documentation Hardware information upload to cloud server so that the cloud server is it is determined that hardware information and the institute of other user equipmenies State driving configuration documentation in the hardware information it is identical when, by the device type of other user equipmenies be identified as Android end End.
Specifically, information uploading module 330 is by the device type (android terminal) of the first user equipment of determination and obtains Configuration documentation in hardware information upload to cloud server, cloud server believes device type (android terminal) and hardware Breath association preserve, when cloud server gets the hardware information of other user equipmenies, however, it is determined that other user equipmenies it is hard Part information is identical with the hardware information of the first user equipment, then this user equipment can be identified as into android terminal.It may be noted that , cloud server association preserve device type and hardware information have it is multigroup, can be by multiple different information uploading modules 330 are uploaded, and similarly, the hardware information of other user equipmenies can also be uploaded by multiple different information uploading modules 330.
During specific implementation, still by taking the driving configuration documentation " oem61.inf " of Samsung mobile phone as an example, referring to Fig. 5, false If A devices obtain the hardware information of other hardware devices in the driving configuration documentation of Samsung mobile phone, such as " USB VID_ 04E8&PID_6861 ", and uploaded to cloud server, cloud server will " USB VID_04E8&PID_6861 " and " android terminal " association preserves, and hereafter, grafting one unknown user equipment, B devices obtain the unknown user on B devices The hardware information of equipment " after USB VID_04E8&PID_6861 ", is uploaded to cloud server, then cloud server will Can find unknown user equipment hardware information " USB VID_04E8&PID_6861 " and " android terminal " be it is associated, Therefore it can determine that the type of unknown user equipment is android terminal.
Optionally, referring to Fig. 3, the device of the identification android terminal in the embodiment of the present invention can also include as shown in the figure Parameter acquisition module 340, for debugging the device parameter of bridge ADB instruments acquisition first user equipment by the Android.
Wherein, the device parameter can be stored in the unit type information in android terminal, such as:GALAXY S5 With GALAXY Tab3 etc..In addition, each device parameter has corresponding device type respectively, such as:It is corresponding to GALAXY S5 (Samsung) Android mobile phone, it is (Samsung) Android tablet personal computer etc. corresponding to GALAXY Tab3.It is pointed out that each equipment Parameter can be stored in the presetting database of apparatus of the present invention with corresponding device type, and presetting database can be by internet not Disconnected renewal.
Specifically, the equipment that parameter acquisition module 340 debugs bridge ADB instruments the first user equipment of acquisition by Android is joined Number.
The determination type module 310, the device parameter according to first user equipment is additionally operable to, determines described first The device type of user equipment is Android mobile phone or Android tablet personal computer.
During specific implementation, it is assumed that the device parameter of the first user equipment of acquisition is that " GALAXY S5 ", type determine Module 310 inquires that " device type corresponding to GALAXY S5 " is (Samsung) Android mobile phone, therefore be can determine that in presetting database The device type of first user equipment is Android mobile phone.
Optionally, if it is Android mobile phone or Android tablet personal computer that determination type module 310, which has determined that the first user equipment, Will be hard in the device type (Android mobile phone or Android tablet personal computer) of the first user equipment of determination and the configuration documentation obtained Part information uploads to cloud server, and cloud server believes the device type (Android mobile phone or Android tablet personal computer) and hardware Breath association is preserved, and similarly, unknown other user equipmenies further can be identified as Android mobile phone or flat board electricity by cloud server Brain, repeat no more here.
It is again optional, referring to Fig. 3, the device of the identification android terminal in the embodiment of the present invention can also wrap as shown in the figure Parameter acquisition module 350 and document creation module 360 are included, wherein:
Communication connection module 350, for establishing the communication connection with first user equipment by data wire.
The data wire can be USB data line.Specifically, communication connection module 350 can by USB data line establish with The communication connection of first user equipment.
Document creation module 360, for installing the driving of first user equipment by the communication connection of foundation Program is to generate the driving configuration documentation of first user equipment.
The driver of first user equipment includes the driver of the various hardware devices in the first user equipment, Such as the driver of smart mobile phone is including there is the driver of the hardware devices such as camera, microphone and memory.Specifically , document creation module 360 will automatically generate the first user equipment after the driver of the first user equipment is installed Drive configuration documentation.For example, refer to a kind of demonstration schematic diagram of driving configuration documentation shown in Fig. 4, when installing Samsung hand After the driver of machine, it will " SANSUNG Mobile USB Composite are automatically generated in equipment manager Device ", wherein " SANSUNG Mobile USB Composite Device " include the driving configuration documentation of Samsung mobile phone “oem61.inf”。
It is another optional, referring to Fig. 3, the device of the identification android terminal in the embodiment of the present invention can also wrap as shown in the figure Device type acquisition module 370 and push display module 380 are included, wherein:
Data obtaining module 320, it is additionally operable to, when detecting the access of second user equipment, obtain the second user equipment Hardware information.
Information uploading module 330, it is additionally operable to the hardware information of the second user equipment uploading to the cloud service Device so that the cloud server according to the hardware information of the second user equipment judge the second user equipment whether be Android terminal, if so, then returning to the message that the second user equipment is android terminal.
Specifically, the hardware information of the second user equipment got is uploaded to cloud service by information uploading module 330 Device, when cloud server gets the hardware information of second user equipment, however, it is determined that the hardware information of second user equipment with The hardware information of first user equipment is identical, then this user equipment can be identified as to android terminal, and return to apparatus of the present invention Return the device type of second user equipment.
Optionally, if cloud server association preservation is hardware information and device type (Android mobile phone or Android flat board Computer), then similarly, cloud server can determine that the type of unknown user equipment is Android mobile phone or Android flat board electricity Brain.
Device type acquisition module 370, it is peace for obtaining the second user equipment that the cloud server returns The message of tall and erect terminal.
Specifically, device type acquisition module 370 obtains the device type for the second user equipment that cloud server returns. Such as android terminal, optionally, Android mobile phone or Android tablet personal computer.
Display module 380 is pushed, for being that the message push of android terminal is shown to user by the second user equipment.
Specifically, push display module 380 shows the device type of second user equipment by default display window To user, so that user knows the device type of the second user equipment of current grafting.
The embodiment of the present invention determines that the first user sets when the first user equipment is debugged bridge ADB instruments by Android and accessed Standby device type is android terminal, then obtains the hardware information in the driving configuration documentation of the first user equipment, and by first The device type of user equipment uploads to cloud server with the hardware information in the driving configuration documentation obtained and preserved with associating, It can realize after other android terminal grafting PCs, even if the android terminal is not built with PC by ADB instruments Vertical data communication, under the conditions of only knowing hardware information of the android terminal in the driving configuration documentation of PC, it can also lead to Cross cloud server and identify that it is android terminal, have recognition speed fast and the characteristics of the degree of accuracy is high, lift the experience of user.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.In addition, in each embodiment of the present invention In each functional unit can be integrated in a processing module or unit is individually physically present, can also two Individual or two or more unit is integrated in a module.Above-mentioned integrated module can both be realized in the form of hardware, also may be used Realized in the form of using software function module.If the integrated module realized in the form of software function module and as Independent production marketing in use, can also be stored in a computer read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (8)

  1. A kind of 1. method for identifying android terminal, it is characterised in that methods described includes:
    When the first user equipment debugs bridge ADB instruments by Android to be accessed, the device type of first user equipment is determined It is android terminal;
    The device parameter of first user equipment is obtained by the ADB instruments, the device parameter is believed including unit type Breath;
    According to the device parameter of first user equipment, the device type for determining first user equipment be Android mobile phone or Android tablet personal computer;
    Obtain the hardware information in the driving configuration documentation of first user equipment;
    Hardware information in the device type of first user equipment and the driving configuration documentation is uploaded into cloud service Device, so that the cloud server is it is determined that described hard in the hardware information and the driving configuration documentation of other user equipmenies When part information is identical, the device type of other user equipmenies is identified as to the device type of first user equipment;
    The hardware information by the device type of first user equipment and in the driving configuration documentation uploads to high in the clouds After server, in addition to:
    When detecting the access of second user equipment, the hardware information of the second user equipment is obtained;
    The hardware information of the second user equipment is uploaded into the cloud server, so that the cloud server determines institute State second user equipment hardware information it is identical with the hardware information of first user equipment when, by the second user equipment Device type be identified as android terminal, and return to the device type of the second user equipment.
  2. 2. the method as described in claim 1, it is characterised in that described when the first user equipment debugs bridge ADB works by Android During tool access, before determining that first user equipment is android terminal, in addition to:
    Communication connection with first user equipment is established by data wire;
    The driver that first user equipment is installed by the communication connection of foundation is set with generating first user Standby driving configuration documentation.
  3. 3. the method as described in claim 1, it is characterised in that the hardware information includes production firm identification information VID, production Product identification information PID and sequence number SN one or more of which.
  4. 4. the method as described in claim 1, it is characterised in that the hardware information by the second user equipment uploads to After the cloud server, in addition to:
    Obtain the message that the second user equipment that the cloud server returns is android terminal;
    The message push that the second user equipment is android terminal is shown to user.
  5. 5. a kind of device for identifying android terminal, it is characterised in that described device includes:
    Determination type module, for when the first user equipment is debugged bridge ADB instruments by Android and accessed, determining that described first uses The device type of family equipment is android terminal;
    Parameter acquisition module, for obtaining the device parameter of first user equipment, the equipment ginseng by the ADB instruments Number includes unit type information;
    The determination type module, the device parameter according to first user equipment is additionally operable to, determines that first user sets Standby device type is Android mobile phone or Android tablet personal computer;
    Data obtaining module, the hardware information in driving configuration documentation for obtaining first user equipment;
    Information uploading module, for the hardware in the device type of first user equipment and the driving configuration documentation to be believed Breath uploads to cloud server, so that the cloud server is it is determined that the hardware information of other user equipmenies is matched somebody with somebody with the driving Put the hardware information in document it is identical when, the device type of other user equipmenies is identified as first user and set Standby device type;
    Described information acquisition module, it is additionally operable to, when detecting the access of second user equipment, obtain the second user equipment Hardware information;
    Described information uploading module, it is additionally operable to the hardware information of the second user equipment uploading to the cloud server, So that the cloud server determines the hardware information of the second user equipment and the hardware information of first user equipment When identical, the device type of the second user equipment is identified as android terminal, and return to setting for the second user equipment Standby type.
  6. 6. device as claimed in claim 5, it is characterised in that described device also includes:
    Communication connection module, for establishing the communication connection with first user equipment by data wire;
    Document creation module, for installing the driver of first user equipment by the communication connection of foundation with life Into the driving configuration documentation of first user equipment.
  7. 7. device as claimed in claim 5, it is characterised in that the hardware information includes production firm identification information VID, production Product identification information PID and sequence number SN one or more of which.
  8. 8. device as claimed in claim 5, it is characterised in that described device also includes:
    Device type acquisition module, it is android terminal for obtaining the second user equipment that the cloud server returns Message;
    Display module is pushed, for being that the message push of android terminal is shown to user by the second user equipment.
CN201410366861.1A 2014-07-29 2014-07-29 A kind of method and device for identifying android terminal Active CN104135520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410366861.1A CN104135520B (en) 2014-07-29 2014-07-29 A kind of method and device for identifying android terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410366861.1A CN104135520B (en) 2014-07-29 2014-07-29 A kind of method and device for identifying android terminal

Publications (2)

Publication Number Publication Date
CN104135520A CN104135520A (en) 2014-11-05
CN104135520B true CN104135520B (en) 2018-01-23

Family

ID=51808042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410366861.1A Active CN104135520B (en) 2014-07-29 2014-07-29 A kind of method and device for identifying android terminal

Country Status (1)

Country Link
CN (1) CN104135520B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468260A (en) * 2014-11-13 2015-03-25 百度在线网络技术(北京)有限公司 Recognition method, device and system for mobile terminal device
CN105867832B (en) * 2015-01-19 2020-07-24 张维加 User and application oriented computer and intelligent equipment acceleration method and device
CN105141484B (en) * 2015-10-12 2017-03-22 天津市普迅电力信息技术有限公司 Android equipment remote debugging method based on cloud server
CN105700936A (en) * 2016-01-14 2016-06-22 福州靠谱网络有限公司 Operating method and apparatus for application program of Android simulator
CN106293734A (en) * 2016-08-05 2017-01-04 佛山绿怡信息科技有限公司 The method and device of detection android terminal information
CN106354603B (en) * 2016-08-31 2018-11-13 福建联迪商用设备有限公司 Solve the occupied method in the ports ADB and its system
CN109275126B (en) * 2018-08-09 2022-03-11 Oppo(重庆)智能科技有限公司 Electronic device connection method, electronic device, and computer-readable storage medium
CN112711430B (en) * 2020-12-29 2023-10-17 杭州当贝网络科技有限公司 ADB-based non-network equipment upgrading method, system and readable storage medium
CN116431546B (en) * 2023-06-13 2023-10-27 荣耀终端有限公司 Parameter configuration method, electronic device, storage medium, and program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222053A (en) * 2011-06-20 2011-10-19 迈奔灵动科技(北京)有限公司 Drive identification method and system
CN103049404A (en) * 2013-01-16 2013-04-17 珠海市君天电子科技有限公司 Method and system for obtaining android cell phone model
CN103440334A (en) * 2013-09-05 2013-12-11 南京朗睿软件科技有限公司 Driver matching method and device of mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222053A (en) * 2011-06-20 2011-10-19 迈奔灵动科技(北京)有限公司 Drive identification method and system
CN103049404A (en) * 2013-01-16 2013-04-17 珠海市君天电子科技有限公司 Method and system for obtaining android cell phone model
CN103440334A (en) * 2013-09-05 2013-12-11 南京朗睿软件科技有限公司 Driver matching method and device of mobile terminal

Also Published As

Publication number Publication date
CN104135520A (en) 2014-11-05

Similar Documents

Publication Publication Date Title
CN104135520B (en) A kind of method and device for identifying android terminal
US8527950B2 (en) Verification of software applications
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
CN108416003A (en) A kind of picture classification method and device, terminal, storage medium
CN104317618B (en) A kind of firmware partition treating method and apparatus
JP6756079B2 (en) Artificial intelligence-based ternary check method, equipment and computer program
CN104360951B (en) A kind of script method of testing and device
CN104134033B (en) A kind of method and device for recognizing user equipment
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
CN107704282A (en) A kind of loading method and device applied to embedded system
CN110555072A (en) Data access method, device, equipment and medium
CN107688541A (en) File reviewing method, device, server and computer-readable recording medium
CN107562338A (en) Picture inspection method, device, electronic equipment and storage medium
CN105281937A (en) Server, service management system, and service management method
CN106933754A (en) A kind of USB drives recognition methods and device
CN112966824A (en) Deployment method and device of inference library and electronic equipment
CN109726020A (en) System docking method, system docking equipment, storage medium and device
CN109683880A (en) Webpage exchange method, device, equipment and storage medium
CN109240931A (en) Problem feedback information treating method and apparatus
CN104731577B (en) Multisystem and the method for starting the multisystem
CN105681175A (en) Method and device of modifying contact person head portrait in instant messaging application
CN107291486A (en) The installation method and device of a kind of operating system
CN104216834A (en) Internal storage assess method, buffering scheduler and internal storage module
CN109683917A (en) For the method for being deployed in application server, equipment and medium will to be applied
CN111232727B (en) Printed file dispatching method and dispatching robot

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 510623 01-B sixth unit, Guangzhou bank building, 30 Zhujiang East Road, Tianhe District, Guangzhou, Guangdong.

Patentee after: Guangzhou cheetah Network Technology Co., Ltd.

Address before: 510623 01-B sixth unit, Guangzhou bank building, 30 Zhujiang East Road, Tianhe District, Guangzhou, Guangdong.

Patentee before: Kingsoft, Guangzhou network technology Co., Ltd

CP01 Change in the name or title of a patent holder
CP02 Change in the address of a patent holder

Address after: 510623 07, 08A unit, fifteenth floor of agile center, 26 Huaxia Road, Tianhe District, Guangzhou, Guangdong.

Patentee after: Guangzhou cheetah Network Technology Co., Ltd.

Address before: 510623 01-B sixth unit, Guangzhou bank building, 30 Zhujiang East Road, Tianhe District, Guangzhou, Guangdong.

Patentee before: Guangzhou cheetah Network Technology Co., Ltd.

CP02 Change in the address of a patent holder