CN109831496B - Terminal data debugging method - Google Patents

Terminal data debugging method Download PDF

Info

Publication number
CN109831496B
CN109831496B CN201910060116.7A CN201910060116A CN109831496B CN 109831496 B CN109831496 B CN 109831496B CN 201910060116 A CN201910060116 A CN 201910060116A CN 109831496 B CN109831496 B CN 109831496B
Authority
CN
China
Prior art keywords
controlled
terminal
debugging
controlled end
control
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
CN201910060116.7A
Other languages
Chinese (zh)
Other versions
CN109831496A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910060116.7A priority Critical patent/CN109831496B/en
Publication of CN109831496A publication Critical patent/CN109831496A/en
Application granted granted Critical
Publication of CN109831496B publication Critical patent/CN109831496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a terminal data debugging method, which can provide a scheme for quickly checking data and debugging a database for software developers and software testers in the software development process, can help non-professional developers to quickly know the software database and software service logic, and can ensure that the developers can more intuitively obtain the database debugging process by adopting a visual debugging interface; in addition, the debugging method can execute different SQL sentences according to different user operations, and the user can open a corresponding Web page console by accessing the local Http server of the mobile terminal so as to check the data in the database and acquire the debugging process of the database in real time and check whether the debugging of the database achieves the expected effect, thereby greatly improving the debugging efficiency of the database and shortening the debugging period of the database.

Description

Terminal data debugging method
Technical Field
The invention relates to the technical field of internet data service, in particular to a terminal data debugging method.
Background
With the development and popularization of portable mobile terminals, portable mobile terminals such as mobile phones and the like are widely used for data interaction and processing, and the database in the mobile phone needs to be debugged when the data interaction and processing are performed through the mobile phone and the like, generally, the debugging of the database in the mobile phone mainly includes the following modes: firstly, exporting an SQLite database in a mobile phone to a computer end, checking the SQLite database through software installed in the computer end, and executing related SQL sentences to obtain corresponding debugging results; secondly, Root operation is executed on the mobile phone, an RE file manager is installed on the mobile phone, and then a file of a target database is found under a directory of a corresponding application program so as to check data in the target database; thirdly, plug-ins related to Android Studio are installed in the mobile phone, and the corresponding database is checked and debugged through the plug-ins, but part of the plug-ins may need to be charged or the checking and debugging speed is low. It can be seen that, the existing method for debugging the database of the mobile phone cannot directly check and debug the database therein, and it needs to transfer the database to another debuggeable check terminal, or perform Root processing on the mobile phone, or implement corresponding check and debug operations with the help of a corresponding charging plug-in, that is, the user cannot check and debug the database of the mobile phone at any time and any place.
In order to overcome the defects of the mobile phone Database debugging mode, Amitshekhariitbhu develops an Android-Debug-Database debugging scheme, which is called an ADD scheme for short. According to the ADD scheme, a mobile phone user can directly check a mobile phone database at any time and any place through a browser in the mobile phone, and can also directly execute SQL sentences on the mobile phone database to debug the mobile phone database; in addition, through the ADD scheme, a mobile phone user can also directly check all databases in the mobile phone application, check all shared preferences in the mobile phone application, execute SQL statements on the specified databases, perform visual editing processing on data corresponding to the specified databases or directly download the databases and other different forms of operations, and the ADD scheme can enable the user to directly debug the mobile phone databases without the help of additional means. However, the ADD scheme can only debug the local database of the mobile phone, but cannot debug the database of the mobile phone in real time in a remote manner, which seriously restricts the popularization and application of the ADD scheme.
Disclosure of Invention
In the operation of viewing and debugging a mobile phone database, although the existing ADD scheme can perform interactive operations such as viewing and debugging of the database through a browser Web page of a mobile phone, so as to provide a local data service function related to an Android system, the ADD scheme is only limited to the debugging of the local database of the mobile phone, and cannot realize the remote real-time debugging of the mobile phone database. With the development of the TCP long connection technology, debugging the mobile phone database in a remote mode is more consistent with the development trend of terminal data debugging, and the technical scheme of remotely checking and debugging the database of the terminal such as the mobile phone in real time does not exist at present. In addition, in the development process of mobile phone terminal software based on the ADD scheme, the operation on data is usually in a code level and the operation result of the data is invisible, a lot of time is needed to execute code verification in order to check the operation result of the data, the code verification process needs to be completed by personnel with corresponding development capacity, the ADD scheme cannot judge the code verification result by a visual interface, and the application difficulty of the ADD scheme is increased.
Aiming at the defects in the prior art, the invention provides a terminal data debugging method, which aims to provide a scheme for quickly checking data and debugging a database for software developers and software testers in the development process of mobile terminal software such as a mobile phone and the like, and can also help non-professional developers to quickly know the service logic of the software database and software; in addition, the terminal data debugging method can execute different SQL sentences according to different user operations during the debugging of the built-in database, and the user can also open the corresponding Web page console by accessing the local Http server of the mobile terminal so as to check the data in the database and acquire the debugging process of the database in real time and check whether the debugging of the database achieves the expected effect, thereby greatly improving the debugging efficiency of the database and shortening the debugging period of the database.
The invention provides a terminal data debugging method, which is characterized in that the debugging method can debug the terminal data through at least one of a local service mode and a remote agent mode, and is characterized in that:
the local service mode specifically comprises the steps of constructing access control connection of a control end to the controlled end based on a port of the controlled end, simultaneously realizing access operation on a static page of a web console in the controlled end through a browser, and realizing editing and debugging operation on internal data of the controlled end based on the access operation;
the remote agent mode specifically comprises the steps of establishing remote agent access of a control end to a controlled end so as to realize access control operation of the control end to a web console in the controlled end, and realizing editing and debugging operation of internal data of the controlled end based on the access control operation;
further, in the local service mode, the port of the controlled end defaults to a random available port, and after the access control connection of the control end to the controlled end is established, matching processing is further performed on the static resource of the web console of the controlled end and a private directory web console resource, so that dynamic updating operation is performed on the static resource of the web console in the controlled end;
further, in the local service mode, a servo terminal related to the controlled end is constructed, after access control connection of the control end to the controlled end is constructed, access operation of the browser to a static page of a web console in the controlled end is achieved through a self-defined http resolution framework in the servo terminal, wherein the http resolution framework specifically comprises an OPTIONS request as a cross-domain confirmation request, a GET request as a resource request and a POST request as a service interface;
further, in the http parsing framework, the GET request is used to implement a return response about static file information, where the static file information includes at least one format of json, text, html, javascript, application/octet-stream, and the POST request is used to implement a service processing response about an Action framework in the servo terminal;
further, in the local service mode, a servo terminal related to the controlled end is constructed, and after access control connection of a control end to the controlled end is constructed, access operation of the browser to a static page of a web console in the controlled end is realized through a self-defined action frame in the servo terminal, wherein the action frame specifically comprises a pre-loading processor determined by a hash algorithm, and data interaction between the pre-loading processor and the POST request is completed through the pre-loading processor;
further, in the remote agent mode, the step of establishing remote agent access of the control terminal to the controlled terminal specifically includes adding the controlled terminal to a registered device list corresponding to a service terminal based on interaction of a connection request and verification information and handshake authentication confirmation, and then establishing agent channel access connection between the control terminal and a corresponding controlled terminal in the registered device list based on interaction of the verification information;
further, in the remote agent service mode, after a control end is constructed to perform remote agent access on a controlled end, the control end sends a control instruction to the server end, the server end generates an instruction id according to the control instruction and sends the instruction id to the controlled end, the controlled end feeds back an instruction content acquisition request to the server end according to the instruction id, the server end sends instruction content information to the controlled end according to the instruction content acquisition request, the controlled end executes a related instruction according to the instruction content information and feeds back an instruction execution result to the server end, and the server end then feeds back the instruction execution result to the control end, so that instruction information interaction operation between the control end and the controlled end is realized;
further, in the remote proxy service mode, the access control operation of the control end on the web console in the controlled end specifically includes that the access control operation is realized through at least one of matching confirmation of a service interface, interaction of a service request instruction, a service request of a static file and form uploading between the cloud web console corresponding to the control end and the web console corresponding to the controlled end; wherein, the matching confirmation of the service interface is realized according to the similarity of the received parameter set, specifically, setting Ki=[k1,…,ki]A service interface parameter set k of the cloud end web console corresponding to the control endiSetting S for the ith interface parameter of the cloud end web console corresponding to the control endj=[s1,…,sj]A service interface parameter set, s, of the web console corresponding to the controlled terminaljEstablishing a summary for the jth interface parameter of the web console corresponding to the controlled end by using a KM algorithmObtaining K from the model of the monilia treeiAnd SjThe best match M between, and the weight of the best match M is the similarity,
Figure BDA0001953864460000051
wherein, S (K)i,Sj) For the similarity between two service interface parameter sets, weight (M) is the weight of the best match M, a is the matching number of M, wiA weight value corresponding to each matching parameter;
further, w isiThe calculation process of (2) is as follows:
Figure BDA0001953864460000052
wherein l is KiAnd SjH is K in the shortest path length of the conceptual tree modeliAnd SjThe height of the nearest same upper-layer concept in the concept tree model in the tree, mu and epsilon are influence factors used for adjusting l and h in similarity calculation, mu is more than or equal to 0, and epsilon is more than or equal to 0;
subsequently, the similarity S (K) calculated from the above is obtainedi,Sj) And a predetermined threshold value, judging the similarity S (K)i,Sj) Whether a preset interface matching condition is met or not;
further, in the remote proxy service mode, real-time communication is realized between the cloud end web console corresponding to the control end and the web console corresponding to the controlled end in a TCP long connection mode, wherein the TCP long connection mode specifically includes that an http request is packaged into an instruction packet to minimize the data volume transmitted by the TCP long connection, and meanwhile, uploading and downloading of a file with a specific data volume is realized through the http request to realize interface request asynchronous proxy connection between the cloud end web console corresponding to the control end and the web console corresponding to the controlled end;
further, the debugging of the terminal data through the local service mode and the remote agent mode specifically includes executing at least one of screenshot on the controlled terminal, internal information acquisition of the controlled terminal, network environment information acquisition of the controlled terminal, Dump stack information of the controlled terminal, and collection of App logs.
Compared with the prior art, the terminal data debugging scheme is a scheme for providing a software developer and a software tester with rapid data checking and database debugging in the development process of mobile terminal software such as a mobile phone, the debugging method can also help non-professional developers to quickly know the software database and the software service logic, and the adopted visual debugging interface can enable the developers to more intuitively obtain the database debugging process, which is obviously different from the past method of only debugging through database codes; in addition, the debugging method can execute different SQL statements according to different user operations in the process of debugging the built-in database, and the user can also open a corresponding Web page console by accessing the local Http server of the mobile terminal so as to check the data in the database and acquire the debugging process of the database in real time and check whether the debugging of the database achieves the expected effect, thereby greatly improving the debugging efficiency of the database and shortening the debugging period of the database.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is schematic diagrams of different modes of a terminal data debugging method according to the present invention;
fig. 2(a) -2(c) are schematic diagrams illustrating a flow of a local service mode in a terminal data debugging method according to the present invention;
fig. 3(a) -3(h) are schematic diagrams illustrating a flow of a remote agent mode in a terminal data debugging method according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of different modes of a terminal data debugging method according to an embodiment of the present invention. As can be seen from fig. 1, the terminal data debugging method may include two different operation modes, namely a local service mode LDC and a remote proxy mode RDC, and preferably, the terminal data debugging method can debug the terminal data through at least one of the local service mode and the remote proxy mode; preferably, the terminal data may be data in a database corresponding to different applications in a portable mobile terminal, preferably, the portable mobile terminal may be, but is not limited to, a mobile terminal such as a mobile phone or a tablet computer, and preferably, a terminal system corresponding to the portable mobile terminal may be an Android system.
Specifically, for the ontology service mode, the method may specifically include, based on a port of a controlled end, constructing an access control connection of a control end to the controlled end, and meanwhile, implementing an access operation to a static page of a web console in the controlled end through a browser, and implementing an editing and debugging operation to internal data of the controlled end based on the access operation; the remote agent mode may specifically include establishing remote agent access of the control end to the controlled end to implement access control operation of the control end to a web console in the controlled end, and implementing editing and debugging operation of internal data of the controlled end based on the access control operation. Preferably, the terminal data debugging method based on the local service mode and the remote agent mode may include but is not limited to at least one of screenshot execution on the controlled end, internal information acquisition of the controlled end, network environment information acquisition of the controlled end, Dump stack information of the controlled end, and collection of App logs.
Further, after the local service mode is started, it will create a Server at the controlled end and bind a port, preferably, the port can be a default random port, so that the devices corresponding to the controlled end in the local area network corresponding to the local service mode can all realize access operation; and then, accessing a Web page of a static control console which is opened by default in the local service mode through a browser which is arranged in equipment corresponding to the controlled terminal, packaging and storing Web page resources in a database, realizing all control functions of the Web page through the static control console, and then editing data contents such as the database, file management and the like to achieve the purpose of simulation, thereby realizing the purpose of data debugging in the local service mode.
Further, in the remote agent mode, the operation of the Web page of the static console in the Internet can be kept consistent with the operation of the Web page of the static console in the local area network, so that a data interaction bridge between the Internet and the local area network is established, and the Internet data debugging management service with higher safety factor is provided; furthermore, before the controlled end starts the remote proxy mode, the controlled end will start the local service mode according to the configured information, for example, determine whether the local service mode is allowed to be accessed by the non-proxy end, if so, accept the access request of the non-proxy end, if not, return a 403 right error message, actually, in order to ensure the security of the local service mode, the local service mode, which is normally in remote proxy mode, is not allowed to request access from any type of non-proxy side, and when the local service mode is activated, it generates a secure connection code, the secure connection code is transmitted to the remote proxy mode for use in initiating validation of the remote proxy mode, preferably if the remote proxy mode does not develop local service mode connection rights, then a validation operation is required on the secure connection code; preferably, the secure connection code is randomly generated after each activation of the local service mode; preferably, the secure connection code is not saved as permanently stored data, and the corresponding secure connection code is deleted after the activation verification of the remote agent mode is completed.
In general, the terminal data debugging method can not only provide data debugging of a local service mode related to an Android system and realize interactive operation of data debugging through a Web page of a mobile terminal, but also provide data debugging of a remote agent mode related to the Android system, and the remote agent mode can realize remote real-time debugging of a database under different applications of the mobile terminal, which is an obvious difference between the terminal data debugging method and the existing debugging method such as an ADD scheme; in addition, the remote proxy mode can also expand cloud control function, and provides a proxy mechanism which can reach any control device of the internet, the debugging library of the remote proxy is based on MiniHttpServer conforming to the Http protocol and adopts an Http resolver developed by JAVA native API, can receive common interface requests and support uploading and downloading of files, the remote proxy mode supports standard Http protocol requests such as GET, POST, OPTIONS and PUT, the Web page design of the remote proxy mode also adds different file management functions such as uploading, downloading, renaming, deleting and creating folders of files, the remote proxy mode also provides data adding, CSV exporting, printing and copying functions so as to process currently displayed data by Excel, the remote proxy mode also provides data filtering, data column adding, data contraction and data selection so as to hide excessive data columns, therefore, the data reading effect is optimized, the data reading interference is reduced, the remote agent mode also supports dynamic acquisition and calling of a Json tool, and a Json library is not integrated in the remote agent mode, so that the access stability of the remote agent mode is improved, and the volume of the database is reduced.
Fig. 2(a) -2(c) are schematic diagrams illustrating a flow of a local service mode in a terminal data debugging method according to an embodiment of the present invention. Referring to fig. 2(a), in the local service mode, a start process of the local service mode specifically includes performing port binding on Android, where the port preferably uses an available port by default, and then checking a built-in Web resource version and an Android system private directory Web resource version to automatically implement dynamic update of a Web static resource, where a resource package corresponding to the Web resource version preferably is subject to an Android dependent malicious Web _ app.
Further, referring to fig. 2(b), in the local service mode, a server terminal related to the controlled end may be further constructed, and after an access control connection of the control end to the controlled end is constructed, an access operation of the browser to a static page of a web console in the controlled end is implemented through a self-defined http parsing frame in the server terminal, where the http parsing frame specifically includes an OPTIONS request as a cross-domain confirmation request, a GET request as a resource request, and a POST request as a service interface. In addition, in the http parsing framework, the GET request is used for realizing a return response about static file information, wherein the static file information comprises at least one format of json, text, html, javascript and application/octet-stream, and the POST request is used for realizing a service processing response about an Action framework in the servo terminal. The Http parsing framework in the local service model is specifically minihttp server developed using native JAVA API, which supports partial Http protocol, in particular belonging to a custom Http parser, and is preferably open source placed in the above organization itgowo of Github.
Further, referring to fig. 2(c), in the local service mode, a server terminal related to the controlled end is further constructed, and after an access control connection of the control end to the controlled end is constructed, an action frame defined in the server terminal is further used to implement an access operation of the browser to a static page of a web console in the controlled end, where the action frame specifically includes determining a pre-loading processor by using a hash algorithm, and then completing data interaction with the POST request by using the pre-loading processor. Each class for realizing the ACTION frame interface needs to realize a doaction method, completes a service request by transmitting data and an http operation object to realize standard http interaction, and simultaneously realizes that the ACTION processing class needs to have a static constant ACTION, wherein the assignment of the static constant is a text type and is used for identifying the ACTION type capable of being processed by a processor, and the assignment of the static constant is unique. In addition, when initializing the ACTION framework, a processor implementing the ACTION interface is created as needed and placed in a HashMap container, for example, the constant ACTION of the ACTION processor is taken as a key, and the processor object is taken as a value. And after the action framework receives the service request, for example, after receiving the content of the Json tool analysis request, acquiring the action parameter, and acquiring the corresponding action from the HashMap, thereby finding and calling the method of the action ().
Fig. 3(a) -3(h) are schematic diagrams illustrating a flow of the remote agent mode in the terminal data debugging method according to the embodiment of the present invention. In the remote proxy mode, constructing remote proxy access of the control end to the controlled end may specifically include adding the controlled end to a registered device list corresponding to a service end based on interaction of a connection request and verification information and handshake authentication confirmation, and then constructing proxy channel access connection between the control end and a corresponding controlled end in the registered device list based on interaction of the verification information.
Further, in the remote agent service mode, after a control end is constructed to access a remote agent of a controlled end, the control end sends a control instruction to the service end, the service end generates an instruction id according to the control instruction and sends the instruction id to the controlled end, the controlled end feeds back an instruction content acquisition request to the service end according to the instruction id, the service end sends instruction content information to the controlled end according to the instruction content acquisition request, the controlled end executes a related instruction according to the instruction content information and feeds back an instruction execution result to the service end, and the service end then feeds back the instruction execution result to the control end, so that instruction information interaction operation between the control end and the controlled end is realized.
Further, in the remote proxy service mode, the access control operation of the control end on the web console in the controlled end specifically includes that the access control operation is realized through at least one of matching confirmation of a service interface, interaction of a service request instruction, a service request of a static file and form uploading between the cloud web console corresponding to the control end and the web console corresponding to the controlled end; wherein, the matching confirmation of the service interface is realized according to the similarity of the received parameter set, specifically, setting Ki=[k1,…,ki]A service interface parameter set k of the cloud end web console corresponding to the control endiSetting S for the ith interface parameter of the cloud end web console corresponding to the control endj=[s1,…,sj]A service interface parameter set, s, of the web console corresponding to the controlled terminaljEstablishing a concept tree model for the jth interface parameter of the web console corresponding to the controlled end by using a KM algorithm to obtain KiAnd SjThe best match M between, and the weight of the best match M is the similarity,
Figure BDA0001953864460000111
wherein, S (K)i,Sj) For the similarity between two service interface parameter sets, weight (M) is the weight of the best match M, a is the matching number of M, wiA weight value corresponding to each matching parameter;
further, w isiThe calculation process of (2) is as follows:
Figure BDA0001953864460000112
wherein l is KiAnd SjShortest path length in the conceptual tree modelH is KiAnd SjThe height of the nearest same upper-layer concept in the concept tree model in the tree, mu and epsilon are influence factors used for adjusting l and h in similarity calculation, mu is more than or equal to 0, and epsilon is more than or equal to 0;
subsequently, the similarity S (K) calculated from the above is obtainedi,Sj) And a predetermined threshold value, judging the similarity S (K)i,Sj) Whether the preset interface matching condition is met or not.
In addition, standard Http protocol POST request data can be sent through a Web console, a cloud service end is packaged into an instruction packet and uses UUID as the ID of the instruction packet for association, the ID of the instruction packet is sent to a remote service of a controlled end through a TCP long connection protocol, the controlled end analyzes the type of the instruction packet after receiving the ID of the instruction packet, then the Http protocol is used for carrying the content of the instruction packet pointed by the ID of the instruction packet, and a Body part in the Http protocol is obtained. And then sending an Http request to a local service of the slave end while carrying corresponding authorization parameters, wherein the content of the instruction packet serves as a Body part request of an Http protocol, sending a processing result of the Body part, which is returned by the local service of the slave end, to a cloud server as a Body part while carrying a corresponding instruction ID, searching a Web connection channel of instruction packet information after receiving the processing result, and finally sending the Body part to a Web connection.
Further, in the remote proxy service mode, real-time communication is achieved between the cloud end web console corresponding to the control end and the web console corresponding to the controlled end in a TCP long connection mode, wherein the TCP long connection mode specifically includes that an http request is packaged into an instruction packet to achieve minimization of data volume transmitted by the TCP long connection, and meanwhile uploading and downloading of files with specific data volume are achieved through the http request to achieve asynchronous proxy connection of interface requests between the cloud end web console corresponding to the control end and the web console corresponding to the controlled end.
It can be seen from the above embodiments that the terminal data debugging method is a scheme for providing a software developer and software testers with a rapid data checking and database debugging function in the development process of mobile terminal software such as a mobile phone, and the debugging method can also help non-professional developers to quickly know the software database and software business logic, and the adopted visual debugging interface can enable the developers to more intuitively obtain the database debugging process; in addition, the debugging method can also open a corresponding Web page console by accessing the local Http server of the mobile terminal, so as to check the data in the database and obtain the debugging process of the database in real time, and check whether the debugging of the database achieves the expected effect, thereby greatly improving the debugging efficiency of the database and shortening the debugging period of the database.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A terminal data debugging method, wherein the terminal data can be debugged in at least one of a local service mode and a remote agent mode, and wherein:
the local service mode specifically comprises the steps of constructing access control connection of a control end to the controlled end based on a port of the controlled end, simultaneously realizing access operation on a static page of a web console in the controlled end through a browser, and realizing editing and debugging operation on internal data of the controlled end based on the access operation;
the remote agent mode specifically comprises the steps of establishing remote agent access of a control end to a controlled end so as to realize access control operation of the control end to a web console in the controlled end, and realizing editing and debugging operation of internal data of the controlled end based on the access control operation;
in the remote proxy service mode, the access control operation of the control end on the web console in the controlled end specifically includes that the cloud web console corresponding to the control end corresponds to the controlled endThe access control operation is realized among the web control platforms through at least one of matching confirmation of a service interface, interaction of service request instructions, service requests of static files and form uploading; wherein, the matching confirmation of the service interface is realized according to the similarity of the received parameter set, specifically, setting Ki=[k1,...,ki]A service interface parameter set k of the cloud end web console corresponding to the control endiSetting S for the ith interface parameter of the cloud end web console corresponding to the control endj=[s1,...,sj]A service interface parameter set, s, of the web console corresponding to the controlled terminaljEstablishing a concept tree model for the jth interface parameter of the web console corresponding to the controlled end by using a KM algorithm to obtain KiAnd SjThe best match M between, and the weight of the best match M is the similarity,
Figure FDA0002983445030000021
wherein, S (K)i,Sj) For the similarity between two service interface parameter sets, weight (M) is the weight of the best match M, a is the matching number of M, wiA weight value corresponding to each matching parameter;
further, w isiThe calculation process of (2) is as follows:
Figure FDA0002983445030000022
wherein l is KiAnd SjH is K in the shortest path length of the conceptual tree modeliAnd SjThe height of the nearest same upper-layer concept in the concept tree model in the tree, mu and epsilon are influence factors used for adjusting l and h in similarity calculation, mu is more than or equal to 0, and epsilon is more than or equal to 0;
subsequently, the similarity S (K) calculated from the above is obtainedi,Sj) And aA fixed threshold value, and judging the similarity S (K)i,Sj) Whether the preset interface matching condition is met or not.
2. The debugging method of terminal data according to claim 1, characterized in that: in the local service mode, the port of the controlled end defaults to a random available port, and after the access control connection of the control end to the controlled end is established, matching processing is further performed on the static resource of the web console of the controlled end and a private directory web console resource, so that dynamic updating operation is performed on the static resource of the web console in the controlled end.
3. The debugging method of terminal data according to claim 1, characterized in that: in the local service mode, a servo terminal related to the controlled terminal is further constructed, after access control connection of the control terminal to the controlled terminal is constructed, access operation of the browser to a static page of a web console in the controlled terminal is achieved through a self-defined http resolution framework in the servo terminal, wherein the http resolution framework specifically comprises an OPTIONS request as a cross-domain confirmation request, a GET request as a resource request and a POST request as a service interface.
4. A debugging method of terminal data according to claim 3, characterized in that: in the http analysis framework, the GET request is used for realizing a return response about static file information, wherein the static file information includes at least one format of json, text, html, javascript and application/octet-stream, and the POST request is used for realizing a service processing response about an Action framework in the servo terminal.
5. A debugging method of terminal data according to claim 3, characterized in that: in the local service mode, a servo terminal related to the controlled end is further constructed, when access control connection of a control end to the controlled end is constructed, access operation of the browser to a static page of a web console in the controlled end is further achieved through a self-defined action frame in the servo terminal, wherein the action frame specifically comprises a pre-loading processor determined by a Hash algorithm, and data interaction between the pre-loading processor and the POST request is completed through the pre-loading processor.
6. The debugging method of terminal data according to claim 1, characterized in that: in the remote agent mode, the specific step of establishing remote agent access of the control end to the controlled end includes adding the controlled end to a registered equipment list corresponding to a service end based on interaction of a connection request and verification information and handshake authentication confirmation, and then establishing agent channel access connection between the control end and a corresponding controlled end in the registered equipment list based on the interaction of the verification information.
7. The debugging method of terminal data according to claim 6, characterized in that: in the remote agent service mode, after a control end is constructed to access a remote agent of a controlled end, the control end sends a control instruction to the server end, the server end generates an instruction id according to the control instruction and sends the instruction id to the controlled end, the controlled end feeds back an instruction content acquisition request to the server end according to the instruction id, the server end sends instruction content information to the controlled end according to the instruction content acquisition request, the controlled end executes a related instruction according to the instruction content information and feeds back an instruction execution result to the server end, and the server end then feeds back the instruction execution result to the control end, so that instruction information interaction operation between the control end and the controlled end is realized.
8. The debugging method of terminal data according to claim 1, characterized in that: in the remote proxy service mode, real-time communication is achieved between the cloud end web console corresponding to the control end and the web console corresponding to the controlled end in a TCP long connection mode, wherein the TCP long connection mode specifically includes that an http request is packaged into an instruction packet to achieve minimization of data volume transmitted by the TCP long connection, and meanwhile uploading and downloading of files with specific data volume are achieved through the http request to achieve asynchronous proxy connection of interface requests between the cloud end web console corresponding to the control end and the web console corresponding to the controlled end.
9. The debugging method of terminal data according to claim 1, characterized in that: the debugging of the terminal data through the local service mode and the remote agent mode specifically comprises at least one of screenshot execution on the controlled terminal, internal information acquisition of the controlled terminal, network environment information acquisition of the controlled terminal, Dump stack information of the controlled terminal and collection of an App log.
CN201910060116.7A 2019-01-22 2019-01-22 Terminal data debugging method Active CN109831496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910060116.7A CN109831496B (en) 2019-01-22 2019-01-22 Terminal data debugging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910060116.7A CN109831496B (en) 2019-01-22 2019-01-22 Terminal data debugging method

Publications (2)

Publication Number Publication Date
CN109831496A CN109831496A (en) 2019-05-31
CN109831496B true CN109831496B (en) 2021-06-15

Family

ID=66861868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910060116.7A Active CN109831496B (en) 2019-01-22 2019-01-22 Terminal data debugging method

Country Status (1)

Country Link
CN (1) CN109831496B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704298A (en) * 2020-05-20 2021-11-26 菜鸟智能物流控股有限公司 Data processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283713A (en) * 2014-10-13 2015-01-14 杭州华三通信技术有限公司 Remote management method and converting device
CN105450463A (en) * 2014-08-26 2016-03-30 阿里巴巴集团控股有限公司 Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN107026764A (en) * 2016-02-02 2017-08-08 腾讯科技(深圳)有限公司 A kind of remote debugging method, equipment, server and system
CN107463499A (en) * 2017-08-08 2017-12-12 百度在线网络技术(北京)有限公司 The long-range connection methods of ADB, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162408B2 (en) * 2003-12-15 2007-01-09 Microsoft Corporation Subscriber identification module (SIM) emulator

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450463A (en) * 2014-08-26 2016-03-30 阿里巴巴集团控股有限公司 Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system
CN104283713A (en) * 2014-10-13 2015-01-14 杭州华三通信技术有限公司 Remote management method and converting device
CN107026764A (en) * 2016-02-02 2017-08-08 腾讯科技(深圳)有限公司 A kind of remote debugging method, equipment, server and system
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN107463499A (en) * 2017-08-08 2017-12-12 百度在线网络技术(北京)有限公司 The long-range connection methods of ADB, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109831496A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
US10977111B2 (en) Constraint solver execution service and infrastructure therefor
CN108595329B (en) Application testing method and device and computer storage medium
KR101723937B1 (en) Cloud-assisted method and service for application security verification
JP6438031B2 (en) Client download and installation method and apparatus
US20160227343A1 (en) System and method for creating mobile application store
US9229844B2 (en) System and method for monitoring web service
CN109558320B (en) System testing method, device, system, equipment and computer readable storage medium
CN112866348B (en) Database access method and device, computer equipment and storage medium
CN109831351B (en) Link tracking method, device, terminal and storage medium
CN105704178A (en) Task platform access method and task platform access device
WO2020046981A1 (en) Automated code verification service and infrastructure therefor
CN111949314A (en) Method and device for generating application installation package, server and storage medium
CN109918112B (en) Game hot update method, device and storage medium
CN112699034B (en) Virtual login user construction method, device, equipment and storage medium
CN109831496B (en) Terminal data debugging method
CN111935107B (en) Identity authentication method, device, system, electronic equipment and storage medium
CN113485927A (en) Test data generation method, device, equipment and storage medium
CN112187747A (en) Remote container login method and device and electronic equipment
CN112181822A (en) Test method and test method for starting time consumption of application program
CN115733666A (en) Password management method and device, electronic equipment and readable storage medium
CN116521251A (en) Service management method, device, computer equipment and storage medium
CN113015156A (en) Mobile phone number batch binding changing method, terminal and computer readable storage medium
CN111752559A (en) Front-end and back-end separation system, method, device and storage medium
KR101249449B1 (en) Apparatus for web platform verification tool and control method thereof
CN114189553B (en) Flow playback method, system and computing 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