A method for starting the USB debugging mode of an Android mobile phone
A debugging mode, the technology of Android mobile phones, applied in the fields of telephone communication, instruments, electrical digital data processing, etc., can solve the problems of poor user experience, uncontrollable, unsafe mobile phones, etc., to achieve accurate judgment, fast adaptation, and human-computer interaction. way friendly effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] A method for starting the USB debugging mode of an Android mobile phone, comprising the steps of:
[0029] Screen the USB devices connected to the PC, filter out the mobile devices, and then enumerate the ADB interface;
[0030] Enumerate the ADB interface, if the enumeration is successful, that is, obtain the ADB interface information through enumeration, judge that the USB debugging mode is enabled according to the enumeration result, and complete the connection between the Android phone and the PC;
[0031] If it fails, execute the model matching step. According to the matching model, a pop-up box will be displayed to instruct the user to open the USB debugging step. The model matching step refers to the mobile phone manufacturer ID and product identification code of the mobile phone device. Match to get the model.
[0032] In the above solution, obtaining the ADB interface information through enumeration specifically refers to: calling the selected API function of ...
example I
[0037] Call the third API function of the WINDOWS system to obtain the instance ID of each device node;
[0038] Filter information on device nodes, the purpose of which is to filter other USB devices such as USB mouse devices, USB printer devices, USB keyboard devices, and USB paperless devices;
[0039] Call the fourth API function of the WINDOWS system to obtain the compatible device ID attribute of the mobile device node.
[0040] In one embodiment, the first API function refers to the SetupDiGetClassDevs function, the second API function refers to the SetupDiEnumDeviceInfo function, the third API function refers to the SetupDiGetDeviceInstanceId function, and the fourth API function refers to the GetRegistryProperty function.
[0041] In one embodiment, the compatible device ID attribute of the mobile phone device node is obtained by calling the function SPDRP_COMPATIBLEIDS.
[0042] In one embodiment, the criteria for successful enumeration of the ADB interface refers t...
Embodiment 2
[0051] Such as figure 2 The judging method that shown a kind of Android mobile phone USB debugging mode starts comprises the following steps: Screening the USB device connected to the PC end, filtering out the mobile device; enumerating to obtain the ADB interface information of the mobile device; according to the The ADB interface information described above determines whether the USB debugging mode is enabled.
[0052] Enumeration to obtain the ADB interface information of the mobile device, specifically includes: calling the selected API function of the operating system to obtain the compatible device ID attribute of the device node. Judging that the USB debugging mode has been turned on according to the enumeration result, specifically includes, judging whether the compatible device ID attribute contains a set keyword, if so, the ADB interface enumeration is successful, and the USB debugging mode has been turned on.
[0053] Those skilled in the art should understand tha...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

