CN107977313A - The call method and device of a kind of debugging interface - Google Patents

The call method and device of a kind of debugging interface Download PDF

Info

Publication number
CN107977313A
CN107977313A CN201711213159.1A CN201711213159A CN107977313A CN 107977313 A CN107977313 A CN 107977313A CN 201711213159 A CN201711213159 A CN 201711213159A CN 107977313 A CN107977313 A CN 107977313A
Authority
CN
China
Prior art keywords
debugging interface
handover request
android device
debugging
android
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.)
Granted
Application number
CN201711213159.1A
Other languages
Chinese (zh)
Other versions
CN107977313B (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.)
Qisda Suzhou Co Ltd
Original Assignee
Qisda Suzhou 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 Qisda Suzhou Co Ltd filed Critical Qisda Suzhou Co Ltd
Priority to CN201711213159.1A priority Critical patent/CN107977313B/en
Publication of CN107977313A publication Critical patent/CN107977313A/en
Application granted granted Critical
Publication of CN107977313B publication Critical patent/CN107977313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • G06F11/3656Software debugging using additional hardware using a specific debug interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Abstract

The invention discloses the call method and device of a kind of debugging interface, belong to field of communication technology.Method includes:Obtain the debugging interface handover request file in the External memory equipment being connected with Android device;Debugging interface handover request file is verified;If being proved to be successful, debugging interface is set to switch mark according to debugging interface handover request file;And switched according to debugging interface and identified, switch debugging interface.The embodiment of the present invention can realize the debugging interface for conveniently and efficiently switching out Android device, so as to solve the problems, such as that the Android device in the prior art without graphical interfaces operation can not switch debugging interface, and solve the problems, such as that some Android devices acquiescence after the issue of Android official release is not turned on debugging interface and leads to not Android device be operated using Android debugging acid in the prior art.

Description

The call method and device of a kind of debugging interface
Technical field
The present invention relates to field of communication technology, the call method and device of more particularly to a kind of debugging interface.
Background technology
No matter in the Android development phase or after the issue of Android official release, debugging Android device is required for using Android Debugging acid.By using Android debugging acid, many operations can be easily carried out, such as installation or unloading application program, The operation command in equipment, carries out file transmission etc., but being needed first to switch debugging when using Android debugging acid is connect Mouthful.
At present, usually all it is to be operated by the graphical interfaces of Android device to switch debugging interface, and it is straight to having no idea Obtain graphical interfaces operation Android device, the mobile unit of Android system is such as installed, is but connect because debugging can not be switched Mouthful and lead to not use Android debugging acid.Further, since the security needs of Android device, some Android devices in Android just It can give tacit consent to after the issue of formula version and is not turned on debugging interface, but also result in can not use Android debugging acid to Android device at the same time The situation operated.
The content of the invention
In view of this, an embodiment of the present invention provides the call method and device of a kind of debugging interface, to realize switching The debugging interface of Android device, operates Android device so as to be user-friendly Android debugging acid.The technical side Case is as follows:
First aspect, there is provided a kind of call method of debugging interface, for Android device, the described method includes:
Obtain the debugging interface handover request file in the External memory equipment being connected with the Android device;
The debugging interface handover request file is verified;
If being proved to be successful, debugging interface is set to switch mark according to the debugging interface handover request file;And
Switched according to the debugging interface and identified, switch the debugging interface.
With reference to first aspect, in the first possible implementation, what the acquisition was connected with the Android device is outer Before debugging interface handover request Files step in portion's storage device, the method further includes:
Start the Android device;And
Detect and identify the External memory equipment for being inserted into the Android device.
With reference to first aspect, it is described to the debugging interface handover request file in second of possible implementation Carrying out verification includes:
First finger daemon of the Android device reads the debugging interface handover request file;And
First finger daemon judges whether the debugging interface handover request file meets preset condition, if so, then It is proved to be successful.
With reference to first aspect, it is described according to debugging interface handover request text in the third possible implementation Part, which sets debugging interface to switch mark, to be included:
Determine attribute configuration information corresponding with the debugging interface handover request file;And
According to the attribute configuration information, first finger daemon sets institute by the attribute service of the Android device State debugging interface switching mark.
With reference to first aspect, in the 4th kind of possible implementation, described switched according to the debugging interface identifies, and cuts Changing the debugging interface includes:
Second finger daemon of the Android device reads the debugging interface switching mark;And
Switched according to the debugging interface and identified, second finger daemon switches the debugging interface.
Second aspect, there is provided a kind of calling device of debugging interface, applied to Android device, described device includes:
Acquisition module, for obtaining the debugging interface handover request in the External memory equipment being connected with the Android device File;
Authentication module, is connected with the acquisition module, for being verified to the debugging interface handover request file;
Setup module, is connected with the authentication module, if for successful to the debugging interface handover request file verification, Debugging interface is set to switch mark according to the debugging interface handover request file;And
Handover module, is connected with the setup module, is identified for being switched according to the debugging interface, switches the debugging and connects Mouthful.
With reference to second aspect, in the first possible implementation, described device further includes starting module and detection is known Other module;
The starting module, for starting the Android device;And
The detection identification module, is connected with the starting module and the acquisition module respectively, for detecting and identifying insertion To the External memory equipment of the Android device.
With reference to second aspect, in second of possible implementation, the authentication module includes:
First reading submodule, switches for reading the debugging interface by the first finger daemon of the Android device Demand file;And
Submodule is verified, for judging whether the debugging interface handover request file is full by first finger daemon Sufficient preset condition, if so, being then proved to be successful.
With reference to second aspect, in the third possible implementation, the setup module includes:
Determination sub-module, for determining attribute configuration information corresponding with the debugging interface handover request file;And
Submodule is set, for according to the attribute configuration information, being set by first finger daemon by the Android Standby attribute service sets the debugging interface switching mark.
With reference to second aspect, in the 4th kind of possible implementation, the handover module includes:
Second reading submodule, switches for reading the debugging interface by the second finger daemon of the Android device Mark;And
Switching submodule, identifies for being switched according to the debugging interface, by described in second finger daemon switching Debugging interface.
An embodiment of the present invention provides the call method and device of a kind of debugging interface, applied to Android device, including:Obtain Take the debugging interface handover request file in the External memory equipment being connected with Android device;To debugging interface handover request file Verified;If being proved to be successful, debugging interface is set to switch mark according to debugging interface handover request file;And according to tune Mouth of trying switching mark, switches debugging interface.Technical solution provided by the invention, no matter can Android device directly provide figure External memory equipment and Android device, need to only be attached, by getting the debugging in External memory equipment by interface operation Interface handover request file, and debugging interface handover request file is verified by Android device, and after being proved to be successful Set debugging interface to switch mark, and switched according to debugging interface and identified, switch debugging interface, it is achieved thereby that convenient and efficient Ground switches out the purpose of the debugging interface of Android device, and then facilitates user and Android device is carried out by using debugging acid Operation, solves the problems, such as that the Android device in the prior art without graphical interfaces operation can not switch debugging interface with this, and Solve some Android devices acquiescence after the issue of Android official release in the prior art to be not turned on debugging interface and lead to not The problem of being operated using Android debugging acid to Android device.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of call method flow chart of debugging interface provided in an embodiment of the present invention;
Fig. 2 is a kind of call method flow chart of debugging interface provided in an embodiment of the present invention;
Fig. 3 is a kind of calling device structure diagram of debugging interface provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention Figure, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described embodiment is only this Invention part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist All other embodiments obtained under the premise of creative work are not made, belong to the scope of protection of the invention.
An embodiment of the present invention provides a kind of call method of debugging interface, for needing Android device by non-debugging Quickly and easily re-enumeration goes out debugging interface when state switches to debugging mode, for debugging the equipment, wherein in non-tune Under examination state, the debugging interface of Android device is to close (i.e. function is not activated, unavailable).Specifically, this method can be with Apply the Android device operated in no graphical interfaces can not switch debugging interface and lead to not the field using Android debugging acid Under scape, in addition, this method, which can be applied in some Android devices, can give tacit consent to and be not turned on after the issue of Android official release It can not use under the scene that Android debugging acid operates Android device, or be applied at other caused by debugging interface Debugging interface can not directly be switched to lead to not under the scene using Android debugging acid, to realize the debugging of switching Android device Interface, operates Android device so as to be user-friendly Android debugging acid.
It should be noted that what foregoing application scenarios were merely exemplary, it is to implement in order to further illustrate the present invention The method that example is provided, is not refered in particular to, the embodiment of the present invention is not limited specific application scenarios.
In addition, it is necessary to illustrate, can be from the External memory equipment being connected with Android device in the embodiment of the present invention Debugging interface handover request file is obtained, is adjusted in addition to this it is possible to be obtained from the other equipment that can be connected with Android device Try a mouthful handover request file, which can be computer, intelligent terminal etc., wherein, which sets with Android It can be connected between standby by WIFI (WIreless-Fidelity, Wireless Fidelity) connections or bluetooth connection or near-field communication.
Embodiment one
An embodiment of the present invention provides a kind of call method of debugging interface, and with reference to shown in Fig. 1, this method includes:
101st, the debugging interface handover request file in the External memory equipment being connected with Android device is obtained.
Wherein, Android device can be provided with the smart mobile phone of Android system, tablet computer, wearable device, intelligence Household appliances, vehicle audio, vehicle-mounted radio or other.
External memory equipment can be SD card, USB flash disk or mobile hard disk etc..
Android device can be attached with External memory equipment by SD card interface or USB interface.
102nd, debugging interface handover request file is verified.
Specifically, the first finger daemon of Android device reads debugging interface handover request file;And
First finger daemon judges whether debugging interface handover request file meets preset condition, if so, being then proved to be successful.
If the 103, being proved to be successful, debugging interface is set to switch mark according to debugging interface handover request file.
Specifically, determine attribute configuration information corresponding with debugging interface handover request file;And
According to attribute configuration information, the first finger daemon sets debugging interface to switch mark by the attribute service of Android device Know.
It should be noted that if failing to the file verification of debugging interface handover request, then terminate.
104th, switched according to debugging interface and identified, switch debugging interface.
Specifically, the second finger daemon of Android device reads debugging interface switching mark;And
Switched according to debugging interface and identified, the second finger daemon switching debugging interface.
Optionally, before step 101, the method that the embodiment of the present invention is provided can also include:
Start Android device;
Detect and identify the External memory equipment for being inserted into Android device.
Optionally, before step 104, the method that the embodiment of the present invention is provided can also include:
Second finger daemon of Android device reads the debugging interface switching for judging to read and identifies whether effectively, if having Effect, then switch according to debugging interface and identify, switch debugging interface, otherwise terminate.
An embodiment of the present invention provides a kind of call method of debugging interface, for Android device, no matter Android device energy It is no that graphical interfaces operation is directly provided, External memory equipment and Android device need to be only attached, be deposited by getting outside The debugging interface handover request file in equipment is stored up, and debugging interface handover request file is verified by Android device, And set debugging interface to switch mark after being proved to be successful, and switched according to debugging interface and identified, switch debugging interface, so that The purpose for the debugging interface for conveniently and efficiently switching out Android device is realized, and then facilitates user by using debugging acid Android device is operated, can not switch debugging with this Android device solved in the prior art without graphical interfaces operation connects Mouthful the problem of, and solve some Android devices acquiescence after the issue of Android official release in the prior art and be not turned on debugging and connect Mouthful and the problem of lead to not operate Android device using Android debugging acid.
Embodiment two
An embodiment of the present invention provides a kind of call method of debugging interface, and with reference to shown in Fig. 2, this method includes:
201st, Android device is started.
202nd, detect and identify the External memory equipment for being inserted into Android device.
Wherein, Android device can be provided with the smart mobile phone of Android system, tablet computer, wearable device, intelligence Household appliances, vehicle audio, vehicle-mounted radio or other;
External memory equipment is previously stored with debugging interface handover request file, and External memory equipment can be SD card, USB flash disk Or mobile hard disk etc..
Specifically, the process can include:
When External memory equipment is inserted into the interface of Android device, detect between External memory equipment and Android device Insertion event, and External memory equipment is identified according to insertion event.
It is exemplary, if External memory equipment is SD card, after SD card is inserted into Android device, if detecting SD card and peace Insertion event is produced between tall and erect equipment, then SD card is recognized according to insertion event.
The embodiment of the present invention is not limited specific detection identification process.
In the embodiment of the present invention, the External memory equipment of Android device is inserted into by detecting and identifying, and then after being easy to It is continuous that debugging interface handover request file is obtained from the External memory equipment recognized, and pass through debugging interface handover request file Switch debugging interface, due to only needing user that Android device is inserted on External memory equipment, pass through figure circle without user Operated in face of Android device, so even Android device can not be directly obtained graphical interfaces operation or Android device acquiescence Debugging interface is not turned on, the debugging interface for conveniently and efficiently switching Android device can be also realized by the embodiment of the present invention.
203rd, the debugging interface handover request file in the External memory equipment being connected with Android device is obtained.
Wherein, debugging interface handover request file is used for the debugging interface for indicating switching Android device, and debugging interface can be with It is the adb interfaces of Android device.
Specifically, the embodiment of the present invention is not limited specific acquisition process.
, please by the debugging interface switching obtained in the External memory equipment being connected with Android device in the embodiment of the present invention File is sought, it is another without user so that Android device subsequently can switch debugging interface according to debugging interface handover request file Row operates Android device, realizes the purpose for conveniently and efficiently switching out debugging interface, herein so that Android debugging work Tool can be applied, so as to meet use demand of the user to Android debugging acid.
204th, the first finger daemon of Android device reads debugging interface handover request file.
Specifically, after Android device and External memory equipment produce connection event, the system kernel of Android device can incite somebody to action The connection event is sent to the first finger daemon, the first finger daemon carry External memory equipment, and by External memory equipment Debugging interface handover request file copy under preset mount directory.
Wherein, the first finger daemon is used to carry out safety verification, the first finger daemon to debugging interface handover request file To operate in the system finger daemon for being used for managing storage device such as SD card and USB flash disk of the andriod platforms of Android device, Yu Ben In inventive embodiments, the first finger daemon is vold processes (Volume Daemon), but the present invention is not limited.
The embodiment of the present invention is not limited specific reading process.
205th, the first finger daemon judges whether debugging interface handover request file meets preset condition, if so, then performing Step 206, if it is not, then terminating.
Wherein, preset condition includes meeting specified file name, and/or meeting specified file format, and/or meet specifying text Part is signed.
Specifically, the first finger daemon judges whether debugging interface handover request file meets preset condition, which can With including:
Obtain the filename, and/or file format, and/or file signature of debugging interface handover request file;
Judge whether the filename in debugging interface handover request file meets specified file name;And/or
Judge whether the file format in debugging interface handover request file meets specified file format;And/or
Judge whether the file signature in debugging interface handover request file meets specified file signature.
The present invention is not limited specific deterministic process.
It is worth noting that, step 204 to step 205 is to realize the mistake verified to debugging interface handover request file Journey, in addition to the mode of above-mentioned steps, can also realize the process by other means, the embodiment of the present invention is to specific side Formula is not limited.
In the embodiment of the present invention, by being verified to debugging interface handover request file so that the debugging of Android device Interface cannot be directly switched out, and the security of Android device is ensure that with this.
206th, attribute configuration information corresponding with debugging interface handover request file is determined.
Wherein, attribute configuration information includes Property Name and attribute status value.
Specifically, the process can include:
Debugging interface handover request file is parsed, to parse in the data in debugging interface handover request file Hold;
Determine attribute configuration information corresponding with the data content parsed.
Further, it is also possible to directly determine that corresponding attribute sets letter according to the filename of debugging interface handover request file Breath.The embodiment of the present invention is not limited specific determination mode.
207th, debugging interface is set to cut by the attribute service of Android device according to attribute configuration information, the first finger daemon Dehorn is known.
Wherein, attribute service (property service) is a mechanism of andriod platforms, can be used for inquire about or Person sets corresponding attribute.
Specifically, the process can include:
First finger daemon obtains Property Name and attribute status value in attribute configuration information by attribute service, and leads to Calling property_set functions are crossed, attribute status value is assigned to Property Name, to generate debugging interface switching mark, and are protected The property file of bag deposit switching mark containing debugging interface, so that other finger daemons pass through attribute service mechanism reading attributes file In debugging interface switching mark, wherein, other finger daemons can be the embodiment of the present invention in the second finger daemon.
The embodiment of the present invention is not limited specific set-up mode.
In the embodiment of the present invention, attribute service that Android device is passed through according to attribute configuration information, the first finger daemon Set debugging interface to switch mark, switch so that other finger daemons read debugging interface by the attribute service of Android device Mark.
It is worth noting that, step 206 to step 207 is to realize to set debugging to connect according to debugging interface handover request file The process of mouth switching mark, in addition to the mode of above-mentioned steps, can also realize the process by other means, the present invention is real Example is applied to be not limited specific mode.
208th, the second finger daemon of Android device reads debugging interface switching mark.
Wherein, the second finger daemon is used to switch debugging interface, and the second finger daemon can operate in Android device Andriod platforms be used for connect the system finger daemon that external equipment is debugged, in the embodiment of the present invention, second guards Process is adbd processes (Adbd Daemon), but the present invention is not limited.
Cut specifically, the second finger daemon reads the debugging interface in dependence file by the attribute service of Android device Dehorn is known, and the embodiment of the present invention is not limited specific reading manner.
Since the finger daemon in Android device is very much, direct correlation is had no to each other, therefore the present invention utilizes Android system Attribute service (property service) mechanism of system come connect the first finger daemon (such as vold processes) and second guard into Journey (such as adbd processes), the operation that the second finger daemon is triggered with the first finger daemon is realized with this.In the embodiment of the present invention, lead to Cross the debugging interface that the second finger daemon is read by the attribute service of Android device in dependence file and switch mark, reach The purpose of the information transmission between the second finger daemon and the first finger daemon is realized using the attribute service of Android device.
209th, switched according to debugging interface and identified, the second finger daemon switching debugging interface.
Being identified specifically, being switched according to debugging interface, the second finger daemon opens the debugging interface of Android device, so that its He operates Android device by debugging interface commissioning device.
It is worth noting that, step 208 to step 209 is to realize to switch according to debugging interface to identify, switch debugging interface Process, in addition to the mode of above-mentioned steps, can also realize the process by other means, the embodiment of the present invention is to specific Mode be not limited.
In the embodiment of the present invention, switched by using the second finger daemon according to debugging interface and identified, switch debugging interface, The purpose for the debugging interface for conveniently and efficiently switching out installation equipment is realized, and then facilitates user and is debugged by using Android Instrument operates Android device, can not switch tune with the Android device that this is solved in the prior art without graphical interfaces operation The problem of trying mouthful, and solve some Android devices acquiescence after the issue of Android official release in the prior art and be not turned on adjusting The problem of trying mouth and leading to not operate Android device using Android debugging acid.
Optionally, before step 209, method provided in an embodiment of the present invention can also include:
The debugging interface switching that second finger daemon judges to read identifies whether effectively.
Specifically, the second finger daemon judges whether debugging interface switching mark is identical with default virtual value, if identical, Then judge that debugging interface switching mark is effective, otherwise judge that debugging interface switching mark is invalid;
When judging that debugging interface switching mark is effective, then switched according to debugging interface and identified, the switching of the second finger daemon Debugging interface, otherwise forbids switching debugging interface.
In the embodiment of the present invention, since Android device is before debugging interface is switched, first debugging interface can be switched and identified Validity verified that, if debugging interface switching mark is effective, Android device just switches debugging interface, if debugging interface Switching mark is invalid, and Android device forbids switching debugging interface, thus further ensure that the security of Android device.
An embodiment of the present invention provides a kind of call method of debugging interface, applied to Android device, no matter Android device Graphical interfaces operation can be directly provided, External memory equipment need to be only connected with Android device, by getting external storage Debugging interface handover request file in equipment, and debugging interface handover request file is verified by Android device, and Set debugging interface to switch mark after being proved to be successful, and switched according to debugging interface and identified, switch debugging interface, so that real Show and conveniently and efficiently switched out debugging interface, and then Android debugging acid convenient for users grasps Android device Make, solve the problems, such as that the Android device in the prior art without graphical interfaces operation can not switch debugging interface, and solution with this Some Android devices acquiescence after the issue of Android official release in the prior art of having determined is not turned on debugging interface and leads to not make The problem of being operated with Android debugging acid to Android device.
Embodiment three
An embodiment of the present invention provides a kind of calling device of debugging interface, applied to Android device, with reference to shown in Fig. 3, The device 3 includes:
Acquisition module 31, for obtaining the debugging interface handover request text in the External memory equipment being connected with Android device Part;
Authentication module 32, is connected with acquisition module 31, for being verified to debugging interface handover request file;
Setup module 33, is connected with authentication module 32, if for debugging interface handover request file verification success, root Debugging interface is set to switch mark according to debugging interface handover request file;And
Handover module 34, is connected with setup module 33, is identified for being switched according to debugging interface, switches debugging interface.
Optionally, device 3 further includes starting module 35 and detection identification module 36;
Starting module 35, for starting Android device;And
Identification module 36 is detected, is connected with starting module 35 and acquisition module 31, is inserted into for detecting and identifying respectively The External memory equipment of Android device.
Optionally, authentication module 32 includes:
First reading submodule 321, for reading debugging interface handover request by the first finger daemon of Android device File;And
Verify submodule 322, it is pre- for judging whether debugging interface handover request file meets by the first finger daemon If condition, if so, being then proved to be successful.
Optionally, setup module 33 includes:
Determination sub-module 331, for determining attribute configuration information corresponding with debugging interface handover request file;And
Submodule 332 is set, for according to attribute configuration information, being taken by the first finger daemon by the attribute of Android device Business sets debugging interface to switch mark.
Optionally, handover module 34 includes:
Second reading submodule 341, for reading debugging interface switching mark by the second finger daemon of Android device; And
Switching submodule 342, identifies for being switched according to debugging interface, switches debugging interface by the second finger daemon.
An embodiment of the present invention provides a kind of calling device of debugging interface, which is applied to Android device, no matter pacifies Can tall and erect equipment directly provide graphical interfaces operation, only need to be connected External memory equipment with Android device by the device, and Debugging interface handover request file is verified by Android device, and sets debugging interface to switch mark after being proved to be successful Know, and switched according to debugging interface and identified, switch debugging interface, it is achieved thereby that debugging interface is conveniently and efficiently switched out, And then Android debugging acid convenient for users operates Android device, is solved in the prior art without figure circle with this Android device the problem of can not switching debugging interface of face operation, and solve in the prior art some Android devices in Android Acquiescence is not turned on debugging interface and leads to not operate Android device using Android debugging acid after official release issue The problem of.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, details are not described herein.
Above-mentioned all optional technical solutions, can use any combination to form the alternative embodiment of the present invention, herein no longer Repeat one by one.In several embodiments provided by the present invention, it should be understood that disclosed method and apparatus, can pass through Other modes are realized.For example, device embodiment described above is only schematical, for example, the division of the unit, Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can be with With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.
It should be noted that in the description of the present invention, term " first ", " second " etc. are only used for description purpose, without It is understood that to indicate or implying relative importance.In addition, in the description of the present invention, unless otherwise indicated, the implication of " multiple " It is two or more.
It should be noted that:The calling device for the debugging interface that above-described embodiment provides is performing the called side of debugging interface , can be as needed and by above-mentioned function only with the division progress of above-mentioned each function module for example, in practical application during method Distribution is completed by different function modules, i.e., the internal structure of device is divided into different function modules, to complete to retouch above The all or part of function of stating.In addition, the calling device of debugging interface and the calling of debugging interface that above-described embodiment provides Embodiment of the method belongs to same design, its specific implementation process refers to embodiment of the method, and which is not described herein again.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on, should all be included in the protection scope of the present invention.

Claims (10)

  1. A kind of 1. call method of debugging interface, for Android device, it is characterised in that the described method includes:
    Obtain the debugging interface handover request file in the External memory equipment being connected with the Android device;
    The debugging interface handover request file is verified;
    If being proved to be successful, debugging interface is set to switch mark according to the debugging interface handover request file;And
    Switched according to the debugging interface and identified, switch the debugging interface.
  2. 2. according to the method described in claim 1, it is characterized in that, described obtain the external storage being connected with the Android device Before debugging interface handover request Files step in equipment, the method further includes:
    Start the Android device;And
    Detect and identify the External memory equipment for being inserted into the Android device.
  3. 3. according to the method described in claim 1, it is characterized in that, described test the debugging interface handover request file Card includes:
    First finger daemon of the Android device reads the debugging interface handover request file;And
    First finger daemon judges whether the debugging interface handover request file meets preset condition, if so, then verifying Success.
  4. 4. according to the method described in claim 1, it is characterized in that, described set according to the debugging interface handover request file Debugging interface switching mark includes:
    Determine attribute configuration information corresponding with the debugging interface handover request file;And
    According to the attribute configuration information, first finger daemon sets the tune by the attribute service of the Android device Mouth of trying switching mark.
  5. 5. according to the method described in claim 1, it is characterized in that, described switch mark, switching institute according to the debugging interface Stating debugging interface includes:
    Second finger daemon of the Android device reads the debugging interface switching mark switching;And
    Switching switches according to the debugging interface to be identified, and second finger daemon switches the debugging interface.
  6. A kind of 6. calling device of debugging interface, applied to Android device, it is characterised in that described device includes:
    Acquisition module, for obtaining the debugging interface handover request text in the External memory equipment being connected with the Android device Part;
    Authentication module, is connected with the acquisition module, for being verified to the debugging interface handover request file;
    Setup module, is connected with the authentication module, if for debugging interface handover request file verification success, root Debugging interface is set to switch mark according to the debugging interface handover request file;And
    Handover module, is connected with the setup module, is identified for being switched according to the debugging interface, switches the debugging and connects Mouthful.
  7. 7. device according to claim 6, it is characterised in that described device further includes starting module and detection identification mould Block;
    The starting module, for starting the Android device;And
    The detection identification module, is connected with the starting module and the acquisition module respectively, for detecting and identifying insertion To the External memory equipment of the Android device.
  8. 8. device according to claim 6, it is characterised in that the authentication module includes:
    First reading submodule, for reading the debugging interface handover request by the first finger daemon of the Android device File;And
    Verify submodule, it is pre- for judging whether the debugging interface handover request file meets by first finger daemon If condition, if so, being then proved to be successful.
  9. 9. device according to claim 6, it is characterised in that the setup module includes:
    Determination sub-module, for determining attribute configuration information corresponding with the debugging interface handover request file;And
    Submodule is set, for according to the attribute configuration information, passing through the Android device by first finger daemon Attribute service sets the debugging interface switching mark.
  10. 10. device according to claim 6, it is characterised in that the handover module includes:
    Second reading submodule, for reading the debugging interface switching mark by the second finger daemon of the Android device Know;And
    Switching submodule, for switching mark switching according to the debugging interface, by described in second finger daemon switching Debugging interface.
CN201711213159.1A 2017-11-28 2017-11-28 Debugging interface calling method and device Active CN107977313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711213159.1A CN107977313B (en) 2017-11-28 2017-11-28 Debugging interface calling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711213159.1A CN107977313B (en) 2017-11-28 2017-11-28 Debugging interface calling method and device

Publications (2)

Publication Number Publication Date
CN107977313A true CN107977313A (en) 2018-05-01
CN107977313B CN107977313B (en) 2021-04-20

Family

ID=62012066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711213159.1A Active CN107977313B (en) 2017-11-28 2017-11-28 Debugging interface calling method and device

Country Status (1)

Country Link
CN (1) CN107977313B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089252A (en) * 2018-09-26 2018-12-25 广州高清视信数码科技股份有限公司 A kind of adb connection control method, system and the device of Android intelligent equipment
CN110830850A (en) * 2019-10-31 2020-02-21 四川九州电子科技股份有限公司 Debugging information acquisition method of android set top box

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7660412B1 (en) * 2005-12-09 2010-02-09 Trend Micro Incorporated Generation of debug information for debugging a network security appliance
CN102713858A (en) * 2011-01-12 2012-10-03 丰田自动车株式会社 Online debugging system for information processing device and online debugging method
CN103810068A (en) * 2014-03-11 2014-05-21 福州瑞芯微电子有限公司 SD card slot based debugging equipment, system and method
CN105701373A (en) * 2015-12-28 2016-06-22 东软集团股份有限公司 ADB interface opening method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7660412B1 (en) * 2005-12-09 2010-02-09 Trend Micro Incorporated Generation of debug information for debugging a network security appliance
CN102713858A (en) * 2011-01-12 2012-10-03 丰田自动车株式会社 Online debugging system for information processing device and online debugging method
CN103810068A (en) * 2014-03-11 2014-05-21 福州瑞芯微电子有限公司 SD card slot based debugging equipment, system and method
CN105701373A (en) * 2015-12-28 2016-06-22 东软集团股份有限公司 ADB interface opening method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089252A (en) * 2018-09-26 2018-12-25 广州高清视信数码科技股份有限公司 A kind of adb connection control method, system and the device of Android intelligent equipment
CN110830850A (en) * 2019-10-31 2020-02-21 四川九州电子科技股份有限公司 Debugging information acquisition method of android set top box

Also Published As

Publication number Publication date
CN107977313B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
RU2667041C2 (en) Emergency call system and method
CN106227572A (en) A kind of frequency converter control system programme upgrade method
CN104537291A (en) Screen interface unlocking method and screen interface unlocking device
CN102340398A (en) Security policy setting and determining method, and method and device for executing operation by application program
CN106528097A (en) Version synchronization method for two pieces of BIOS (Basic Input/ Output System) firmware, and electronic equipment
CN101964978A (en) Reinforcement method for strengthening safety of mobile terminal system on basis of safe TF card
CN104363589A (en) Identity authentication method, device and terminal
CN109582331A (en) Upgrade method, the device and system of vehicle-carrying communication module
CN107977313A (en) The call method and device of a kind of debugging interface
CN104519482B (en) A kind of device parameter configuration method and device
CN115002168A (en) Safety detection method for vehicle remote control and vehicle-mounted system
CN106684985B (en) Wireless charging control method and wireless charging device
CN101888627A (en) Mobile terminal and system data protection method thereof
CN106775834A (en) Brush machine verification method and device
CN110096882B (en) Safety measurement method in equipment operation process
CN105979519A (en) Method and device for controlling network access through charging state
CN106407779A (en) Information acquisition method and apparatus, and terminal
CN106599619A (en) Verification method and device
CN107229490B (en) Multi-application smart card transaction method and multi-application smart card
CN103942472B (en) The method and device of software is started for the person that shields unauthorized use
CN108337126A (en) CAN message test device and method
CN109525980A (en) Realize the anti-lost method and system of mobile phone, anti-loss mobile phone
CN110740119B (en) Internet of things equipment activation mode
CN104995635A (en) Image transmission method, device and terminal device
CN109697356B (en) Application software permission adaptation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant