Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2018-08-17
安徽汇力网络科技有限公司
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 2. The user experience is poor. The Android mobile phone provides the USB debugging mode to open and close for the user to manually operate. The above technical solution breaks away from the user operation and automatically completes the opening and closing of the USB debugging, which improves the efficiency on the surface. Users have brought a lot of confusion, feeling that their mobile phones are unsafe and uncontrollable;

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for starting the USB debugging mode of an Android mobile phone
  • A method for starting the USB debugging mode of an Android mobile phone

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A method for enabling a USB debugging mode in an Android mobile phone is disclosed. The method comprises the following steps: enumerating ADB interfaces, if the enumerating is successful, completing the connection of the Android mobile phone and a PC; if the enumerating is not successful, executing the step of type matching, starting USB debugging through a pop-up box for indicating users according to the matched type. Under the circumstance where the USB debugging mode of the Android mobile phone is not enabled, the technical solution according to the present invention adopts a scanning manner based on the hardware interface, so that the result is quickly obtained and indication is accurately offered in real time. The method according to the present invention has the advantages of being rapid in adaptation and being accurate in judgment, and the situation of ignoring or mistaking reports in the prior art is avoided. According to the method provided by the present invention, users are accurately led to enable the USB debugging mode on the phone according to different brands and types of the Android mobile phones, so that the mobile phone is connected to the PC, the human-computer interaction mode is friendly, and the users can quickly use the mobile phone.

Description

technical field [0001] The invention relates to a method for starting a USB debugging mode, in particular to a method for starting a USB debugging mode of an Android mobile phone; the invention also relates to a method for judging the starting of the USB debugging mode of an Android mobile phone. Background technique [0002] With the popularization of smart phones, the PC-side mobile assistant software that cooperates with it has also been widely used, so that mobile phone users can quickly and conveniently connect and manage mobile phones through PCs. For Android (Android) mobile phones, before connecting to the PC, you need to enable the USB debugging mode. In the prior art, the above-mentioned process of connecting to the PC terminal generally includes the following steps: first, connect the mobile phone through USB data, and then, the PC terminal searches for the device node corresponding to the Android mobile phone, which is a newly added device node when the USB debug...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/10H04M1/725
Inventor 涂志军
Owner 安徽汇力网络科技有限公司