CN114721787A - Operation event processing method, device, electronic device and storage medium - Google Patents
Operation event processing method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN114721787A CN114721787A CN202210308723.2A CN202210308723A CN114721787A CN 114721787 A CN114721787 A CN 114721787A CN 202210308723 A CN202210308723 A CN 202210308723A CN 114721787 A CN114721787 A CN 114721787A
- Authority
- CN
- China
- Prior art keywords
- object operation
- operation event
- event
- obtaining
- program
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 22
- 230000004044 response Effects 0.000 claims abstract description 26
- 230000006399 behavior Effects 0.000 claims description 77
- 238000000034 method Methods 0.000 claims description 52
- 238000012545 processing Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 12
- 238000001514 detection method Methods 0.000 claims 4
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 230000001960 triggered effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 239000011230 binding agent Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000008685 targeting Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000003542 behavioural effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开提供了一种操作事件处理方法、装置、电子设备以及存储介质,涉及计算机技术领域,尤其涉及软件技术领域。具体实现方案为:响应于检测到对象针对目标应用程序的至少一个对象操作事件,拦截至少一个对象操作事件,得到对象操作事件信息;根据对象操作事件信息,得到对象操作行为记录。
The present disclosure provides an operation event processing method, apparatus, electronic device, and storage medium, and relates to the field of computer technology, and in particular, to the field of software technology. The specific implementation scheme is: in response to detecting at least one object operation event of the object for the target application, intercept at least one object operation event to obtain the object operation event information; and obtain the object operation behavior record according to the object operation event information.
Description
技术领域technical field
本公开涉及计算机技术领域,尤其涉及软件技术领域。具体地,涉及一种操作事件处理方法、装置、电子设备以及存储介质。The present disclosure relates to the field of computer technology, and in particular, to the field of software technology. Specifically, it relates to an operation event processing method, apparatus, electronic device and storage medium.
背景技术Background technique
随着计算机技术的发展,计算机软件技术也得到了发展。例如,可以将基于计算机软件技术创建的各种类型的应用程序(Application,APP)安装于电子设备,以向对象提供各种功能。With the development of computer technology, computer software technology has also been developed. For example, various types of application programs (Application, APP) created based on computer software technology can be installed on electronic devices to provide various functions to objects.
对象可以在使用应用程序的过程中,将产生对象操作事件。例如,对象操作事件可以包括点击事件、输入事件、选择事件或滑动事件。Objects can generate object operation events in the process of using the application. For example, object manipulation events may include click events, input events, selection events, or swipe events.
发明内容SUMMARY OF THE INVENTION
本公开提供了一种操作事件处理方法、装置、电子设备以及存储介质。The present disclosure provides an operation event processing method, apparatus, electronic device, and storage medium.
根据本公开的一方面,提供了一种操作事件处理方法,包括:响应于检测到对象针对目标应用程序的至少一个对象操作事件,拦截上述至少一个对象操作事件,得到对象操作事件信息;以及,根据上述对象操作事件信息,得到对象操作行为记录。According to an aspect of the present disclosure, an operation event processing method is provided, comprising: in response to detecting at least one object operation event of an object for a target application, intercepting the at least one object operation event to obtain object operation event information; and, According to the above-mentioned object operation event information, an object operation behavior record is obtained.
根据本公开的另一方面,提供了一种操作事件处理装置,包括:第一获得模块,用于响应于检测到对象针对目标应用程序的至少一个对象操作事件,拦截上述至少一个对象操作事件,得到对象操作事件信息;以及,第二获得模块,用于根据上述对象操作事件信息,得到对象操作行为记录。According to another aspect of the present disclosure, there is provided an operation event processing apparatus, comprising: a first obtaining module, configured to intercept at least one object operation event described above in response to detecting at least one object operation event of an object targeting a target application, obtaining object operation event information; and, a second obtaining module, configured to obtain an object operation behavior record according to the above-mentioned object operation event information.
根据本公开的另一方面,提供了一种电子设备,包括:至少一个处理器;以及与上述至少一个处理器通信连接的存储器;其中,上述存储器存储有可被上述至少一个处理器执行的指令,上述指令被上述至少一个处理器执行,以使上述至少一个处理器能够执行本公开所述的方法。According to another aspect of the present disclosure, there is provided an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor , the above-mentioned instructions are executed by the above-mentioned at least one processor, so that the above-mentioned at least one processor can execute the method described in the present disclosure.
根据本公开的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,上述计算机指令用于使上述计算机执行本公开所述的方法。According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method described in the present disclosure.
根据本公开的另一方面,提供了一种计算机程序产品,包括计算机程序,上述计算机程序在被处理器执行时实现本公开所述的方法。According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program that, when executed by a processor, implements the method described in the present disclosure.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or critical features of embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present disclosure. in:
图1示意性示出了根据本公开实施例的可以应用操作事件处理方法及装置的示例性系统架构;FIG. 1 schematically shows an exemplary system architecture to which the operation event processing method and apparatus can be applied according to an embodiment of the present disclosure;
图2示意性示出了根据本公开实施例的操作事件处理方法的流程图;FIG. 2 schematically shows a flowchart of an operation event processing method according to an embodiment of the present disclosure;
图3示意性示出了根据本公开实施例的操作数据处理过程的示例示意图;FIG. 3 schematically shows an example schematic diagram of an operation data processing process according to an embodiment of the present disclosure;
图4示意性示出了根据本公开实施例的操作事件处理装置的框图;以及FIG. 4 schematically shows a block diagram of an operation event processing apparatus according to an embodiment of the present disclosure; and
图5示意性示出了根据本公开实施例的适于实现操作事件处理方法的电子设备的框图。FIG. 5 schematically shows a block diagram of an electronic device suitable for implementing an operation event processing method according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
可以通过对对象在使用应用程序过程中产生的对象操作事件进行录制的方式,来获取对象的对象操作行为记录,以便后续可以通过回放对象操作行为记录来发现对象在使用应用程序过程中存在的问题,更有针对性地对应用程序进行改进,以优化应用程序。The object operation behavior record of the object can be obtained by recording the object operation events generated by the object in the process of using the application program, so that the problems existing in the process of using the application program can be found by playing back the object operation behavior record later. , make more targeted improvements to the application to optimize the application.
可以利用如下方式实现对象操作事件的录制。The recording of object operation events can be implemented in the following ways.
一种方式在于,在录制程序具有根(即Root)权限的情况下,利用相关事件获取指令来获取对象操作事件。One way is to obtain the object operation event by using the relevant event obtaining instruction when the recording program has the root (ie Root) authority.
另一种方式在于,利用辅助功能(即Accessiblity Service)返回的对象操作事件进行录制。Another way is to use the object operation events returned by the accessibility function (that is, the Accessibility Service) for recording.
另一种方式在于,利用修改后的ROM(Read-Only Memory,只读内存)来录制对象操作事件。ROM可以是源码编译后的产物。Another way is to use a modified ROM (Read-Only Memory, read-only memory) to record object operation events. ROM can be the product of compiled source code.
基于上述内容,针对一种方式,需要授予根权限才能实现录制。针对利用辅助功能实现的方式,基于辅助功能录制的对象操作事件是由对象所操作的应用程序发送的。如果被操作的应用程序使用的是自定义布局,即未使用原生控件来实现而是通过开发者重新编写的新控件来实现,则由于是重新编写的控件,开发者未启动针对对象操作事件的辅助功能,因此,将使得辅助功能难以获取全部的对象操作事件。针对利用修改后ROM实现的方式,需要修改源码,对对象使用的电子设备进行刷机,影响对象使用的安全性。Based on the above, for one method, you need to grant root permissions to achieve recording. For the method implemented by the auxiliary function, the object operation event recorded based on the auxiliary function is sent by the application program operated by the object. If the operated application uses a custom layout, that is, it is not implemented with native controls but implemented with new controls rewritten by the developer, the developer does not start the operation for object manipulation events due to the rewritten controls. Accessibility functions, therefore, will make it difficult for accessibility functions to obtain all object manipulation events. In view of the method implemented by using the modified ROM, the source code needs to be modified, and the electronic equipment used by the object needs to be flashed, which affects the security of the use of the object.
为此,本申请提出了一种操作事件处理方案。即,在检测到对象针对目标应用程序的至少一个对象操作事件的情况下,将至少一个对象操作事件进行拦截,得到对象操作事件信息,再根据对象操作事件信息,得到对象操作行为记录,实现了在不修改ROM和不被授予根权限的情况下,获得完整的对象操作行为记录。To this end, the present application proposes an operation event processing solution. That is, in the case of detecting at least one object operation event of the object against the target application, intercepting at least one object operation event to obtain the object operation event information, and then obtaining the object operation behavior record according to the object operation event information. Obtain a complete record of object manipulation behavior without modifying the ROM and without being granted root privileges.
图1示意性示出了根据本公开实施例的可以应用操作事件处理方法及装置的示例性系统架构。FIG. 1 schematically shows an exemplary system architecture to which the operation event processing method and apparatus can be applied according to an embodiment of the present disclosure.
需要注意的是,图1所示仅为可以应用本公开实施例的系统架构的示例,以帮助本领域技术人员理解本公开的技术内容,但并不意味着本公开实施例不可以用于其他设备、系统、环境或场景。例如,在另一实施例中,可以应用操作事件处理方法及装置的示例性系统架构可以包括终端设备、网络和服务器,网络用以在终端设备和服务器之间提供通信链路的介质。网络可以包括各种连接类型,例如有线和/或无线通信链路等。It should be noted that FIG. 1 is only an example of a system architecture to which the embodiments of the present disclosure can be applied, so as to help those skilled in the art to understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used for other A device, system, environment or scene. For example, in another embodiment, an exemplary system architecture to which the operational event processing method and apparatus may be applied may include a terminal device, a network, and a server, the network being a medium for providing a communication link between the terminal device and the server. A network may include various connection types, such as wired and/or wireless communication links, and the like.
如图1所示,根据该实施例的系统架构100可以包括电子设备101。电子设备101可以设置有监听程序1010和录制程序1011。此外,监听程序1010和录制程序1011可以被设置于不同的电子设备。例如,监听程序1010被设置于第一电子设备。录制程序1011被设置于第二电子设备。电子设备101可以是终端设备或服务器。As shown in FIG. 1 , the
终端设备上可以安装有各种通讯客户端应用。例如,知识阅读类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端和社交平台软件等中的至少一项(仅为示例)。Various communication client applications can be installed on the terminal device. For example, at least one of knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients, and social platform software, etc. (only examples).
终端设备可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等。The terminal device may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
服务器可以是提供各种服务的各种类型的服务器。例如,服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务(Virtual Private Server,虚拟专用服务器)中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。Servers can be various types of servers that provide various services. For example, a server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in a cloud computing service system to solve the problem of traditional physical hosts and VPS services (Virtual Private Server, virtual private server). There are the defects of difficult management and weak business expansion. The server can also be a server of a distributed system, or a server combined with a blockchain.
监听程序1010可以响应于检测到对象针对目标应用程序的至少一个对象操作事件,拦截至少一个对象操作事件,得到对象操作事件信息。The
监听程序1010向录制程序1011发送对象操作实际信息。The
录制程序1011根据对象操作事件信息,得到对象操作行为记录。The
应该理解,图1中的电子设备的数目仅仅是示意性的。根据实现需要,可以具有任意数目的电子设备。It should be understood that the number of electronic devices in FIG. 1 is merely illustrative. There may be any number of electronic devices depending on implementation needs.
应注意,以下方法中各个操作的序号仅作为该操作的表示以便描述,而不应被看作表示该各个操作的执行顺序。除非明确指出,否则该方法不需要完全按照所示顺序来执行。It should be noted that the sequence numbers of the respective operations in the following methods are only used as representations of the operations for the convenience of description, and should not be regarded as representing the execution order of the respective operations. The methods need not be performed in the exact order shown unless explicitly stated.
图2示意性示出了根据本公开实施例的操作事件处理方法的流程图。FIG. 2 schematically shows a flowchart of an operation event processing method according to an embodiment of the present disclosure.
如图2所示,该方法200包括操作S210~S220。As shown in FIG. 2, the
在操作S210,响应于检测到对象针对目标应用程序的至少一个对象操作事件,拦截至少一个对象操作事件,得到对象操作事件信息。In operation S210, in response to detecting at least one object operation event of the object with respect to the target application, intercept at least one object operation event to obtain object operation event information.
在操作S220,根据对象操作事件信息,得到对象操作行为记录。In operation S220, an object operation behavior record is obtained according to the object operation event information.
根据本公开的实施例,对象可以包括用户。目标应用程序(Application,APP)可以是各种类型的应用程序。对象操作事件可以指对象在使用目标应用程序的过程中触发的操作事件。对象操作事件可以包括点击事件、输入事件、选择事件或滑动事件。点击事件可以包括单击事件或双击事件。According to an embodiment of the present disclosure, the object may include a user. The target application (Application, APP) can be various types of applications. An object operation event may refer to an operation event triggered by an object in the course of using the target application. Object manipulation events can include click events, input events, selection events, or swipe events. Click events can include single click events or double click events.
根据本公开的实施例,对象操作事件信息可以包括用于描述对象操作事件的相关信息。对象操作事件信息可以包括以下至少一项:操作时刻、事件参数和对象标识。According to an embodiment of the present disclosure, the object operation event information may include related information for describing the object operation event. The object operation event information may include at least one of the following: operation time, event parameters and object identification.
根据本公开的实施例,对象操作行为记录可以指用于描述对象在预定时段内使用目标应用程序产生的操作行为。操作行为可以包括以下至少一项:点击行为、输入行为、选择行为和滑动行为。可以根据对象操作行为记录,回放对象操作事件。此外,还可以根据对象操作行为记录,确定对象潜在行为。According to an embodiment of the present disclosure, the object operation behavior record may be used to describe the operation behavior generated by the object using the target application within a predetermined period of time. The operation behavior may include at least one of the following: click behavior, input behavior, selection behavior, and sliding behavior. Object operation events can be recorded and played back according to object operation behavior. In addition, the potential behavior of the object can also be determined according to the operation behavior record of the object.
根据本公开的实施例,操作S210可以由监听程序执行。操作S220可以由录制程序执行。即,监听程序可以实现在检测到对象针对目标应用程序的至少一个对象操作事件的情况下,拦截至少一个对象操作事件,得到对象操作事件信息。录制程序可以实现在检测到针对对象的操作行为录制事件的情况下,对对象操作事件信息进行整合,得到对象操作行为记录。录制程序可以在未被授予根权限的情况下,实现上述获得对象操作行为记录的操作。According to an embodiment of the present disclosure, operation S210 may be performed by a listener program. Operation S220 may be performed by a recording program. That is, the listener program can intercept at least one object operation event to obtain the object operation event information in the case of detecting at least one object operation event of the object for the target application. The recording program can integrate the object operation event information to obtain the object operation behavior record under the condition of detecting the object operation behavior recording event. The recording program can implement the above-mentioned operation of obtaining the object operation behavior record without being granted the root authority.
根据本公开的实施例,在检测到对象针对目标应用程序的至少一个对象操作事件的情况下,将至少一个对象操作事件进行拦截,得到对象操作事件信息,再根据对象操作事件信息,得到对象操作行为记录,实现了在不修改ROM和不被授予根权限的情况下,获得完整的对象操作行为记录。According to an embodiment of the present disclosure, in the case of detecting at least one object operation event of an object targeting a target application, the at least one object operation event is intercepted to obtain object operation event information, and then the object operation event information is obtained according to the object operation event information Behavior record, to obtain a complete object operation behavior record without modifying the ROM and not being granted root permissions.
根据本公开的实施例,根据对象操作事件信息,得到对象操作行为记录,可以包括如下操作。According to an embodiment of the present disclosure, obtaining the object operation behavior record according to the object operation event information may include the following operations.
响应于检测到针对对象的操作行为录制事件,根据对象操作事件信息,得到对象操作行为记录。In response to detecting the operation behavior recording event for the object, the object operation behavior record is obtained according to the object operation event information.
根据本公开的实施例,操作行为录制事件可以指需要对对象操作事件进行录制的事件。可以在检测到操作行为录制控件被触发的情况下,生成操作行为录制事件。备选地,可以在检测到操作行为录制程序被触发的情况下,生成操作行为录制事件。According to an embodiment of the present disclosure, an operation behavior recording event may refer to an event that needs to record an object operation event. The operation behavior recording event can be generated when it is detected that the operation behavior recording control is triggered. Alternatively, an operation behavior recording event may be generated when it is detected that the operation behavior recording program is triggered.
根据本公开的实施例,操作S210可以包括如下操作。According to an embodiment of the present disclosure, operation S210 may include the following operations.
在至少一个对象操作事件被发送至目标视图的同时,拦截至少一个对象操作事件,得到对象操作事件信息。对象操作事件是对象针对目标应用程序的操作事件。目标视图是用于响应对象操作事件的视图。When at least one object operation event is sent to the target view, at least one object operation event is intercepted to obtain object operation event information. Object operation events are object operation events for the target application. The target view is the view used to respond to object manipulation events.
根据本公开的实施例,视图(即View)可以是界面层的控件的抽象。视图可以表征控件。视图可以用于响应操作事件。According to an embodiment of the present disclosure, a view (ie, View) may be an abstraction of the controls of the interface layer. Views can represent controls. Views can be used to respond to operational events.
根据本公开的实施例,可以利用事件中心(即EventHub)程序来监听对象针对目标应用程序的至少一个对象操作事件。利用事件读取(即InputReader)程序来获取至少一个对象操作事件。例如,可以利用InputReader程序中持续循环线程(即loopOnce())调用EventHub程序的getEvents()来获取至少一个对象操作事件。利用事件分发(即InputDispatcher)程序向事件下发(即ViewRootImpl)程序发送至少一个对象操作事件。事件下发程序可以包括用于处理各个对象操作事件的对象操作事件下发程序。利用事件下发程序可以向与至少一个对象操作事件各自对应的视图发送对象操作事件。利用视图响应与视图对应的对象操作事件。According to an embodiment of the present disclosure, an event hub (ie, EventHub) program can be used to monitor an object operation event for at least one object of the target application. At least one object operation event is obtained by using an event reading (ie InputReader) program. For example, the continuous loop thread (ie loopOnce()) in the InputReader program can call getEvents() of the EventHub program to obtain at least one object operation event. Send at least one object operation event to the event dispatching (ie ViewRootImpl) program by using the event dispatching (ie InputDispatcher) program. The event issuing program may include an object operation event issuing program for processing each object operation event. The object operation event can be sent to the respective views corresponding to at least one object operation event by using the event dispatcher. Use the view to respond to object manipulation events corresponding to the view.
根据本公开的实施例,可以在检测到至少一个对象操作事件被发送至目标视图的同时,对至少一个对象操作事件进行拦截,以得到对象操作事件信息。According to the embodiments of the present disclosure, at least one object operation event can be intercepted while detecting that at least one object operation event is sent to the target view, so as to obtain object operation event information.
根据本公开的实施例,通过在至少一个对象操作事件被发送至目标视图的同时,拦截至少一个对象操作事件,以便于后续可以实现在不修改ROM和不被授予根权限的情况下,获得完整的对象操作行为记录。According to the embodiments of the present disclosure, at least one object operation event is intercepted while at least one object operation event is sent to the target view, so that it can be implemented later without modifying the ROM and without being granted root authority. The object operation behavior record.
根据本公开的实施例,在至少一个对象操作事件被发送至目标视图的同时,拦截至少一个对象操作事件,得到对象操作事件信息,可以包括如下操作。According to an embodiment of the present disclosure, while at least one object operation event is sent to the target view, intercepting at least one object operation event to obtain object operation event information may include the following operations.
响应于检测到对象操作事件下发程序被执行,拦截至少一个对象操作事件,得到对象操作事件信息。In response to detecting that the object operation event issuing program is executed, at least one object operation event is intercepted to obtain object operation event information.
根据本公开的实施例,可以在检测到对象操作事件下发程序被执行的情况下,触发执行针对至少一个对象操作事件的拦截操作,得到对象操作事件信息。According to the embodiments of the present disclosure, when it is detected that the program for issuing the object operation event is executed, the execution of the interception operation for at least one object operation event can be triggered to obtain the object operation event information.
根据本公开的实施例,响应于检测到对象操作事件下发程序被执行,拦截至少一个对象操作事件,得到对象操作事件信息,可以包括如下操作。According to an embodiment of the present disclosure, in response to detecting that an object operation event issuing program is executed, intercepting at least one object operation event to obtain object operation event information may include the following operations.
监听程序响应于检测到对象操作事件下发程序被执行,拦截至少一个对象操作事件,得到对象操作事件信息。监听程序是基于挂钩策略实现的。In response to detecting that the object operation event issuing program is executed, the listener program intercepts at least one object operation event, and obtains object operation event information. Listeners are implemented based on a hooking strategy.
根据本公开的实施例,挂钩(即Hook)策略可以指用于在预定程序执行的方法中注入目标代码,在预定程序的方法被执行的情况下,可以触发目标代码被执行的策略。目标代码可以包括与用于拦截至少一个对象操作事件相关的代码。挂钩策略可以包括以下一项:基于反射和动态代理的挂钩策略、基于JNI(Java Native Interface,Java本地接口)的挂钩策略、基于Xposed框架的挂钩策略、基于GOT(即全局符号)的挂钩策略和基于Inline的挂钩策略。可以根据实际业务需求来确定挂钩策略,在此不作限定。例如,挂钩策略可以是基于Xposed框架的挂钩策略。According to an embodiment of the present disclosure, a hook (ie, Hook) strategy may refer to a strategy for injecting target code into a method for executing a predetermined program, and when the method for a predetermined program is executed, the target code may be triggered to be executed. The object code may include code related to intercepting at least one object manipulation event. The hooking strategy can include one of the following: a hooking strategy based on reflection and dynamic proxy, a hooking strategy based on JNI (Java Native Interface, Java Native Interface), a hooking strategy based on the Xposed framework, a hooking strategy based on GOT (ie, global symbols) and Inline-based hooking strategy. The hooking strategy can be determined according to actual business requirements, which is not limited here. For example, the hooking strategy can be a hooking strategy based on the Xposed framework.
根据本公开的实施例,对象操作事件下发程序可以指用于将对象操作事件发送至用于响应对象操作事件的视图的程序。According to an embodiment of the present disclosure, an object operation event issuing program may refer to a program for sending an object operation event to a view for responding to the object operation event.
根据本公开的实施例,监听程序可以是基于挂钩策略,根据目标代码和事件下发程序得到的。可以利用监听程序响应于检测到对象操作事件下发程序被执行,拦截至少一个对象操作事件,得到对象操作事件信息。According to an embodiment of the present disclosure, the listener program may be obtained based on the hooking policy and according to the target code and the event delivery program. The listener program can be used to intercept at least one object operation event in response to detecting that the object operation event issuing program is executed to obtain the object operation event information.
根据本公开的实施例,通过基于挂钩策略的监听程序来拦截至少一个对象操作事件,得到对象操作事件信息,便于后续可以在不修改ROM和不被授予根权限的情况下,获得完整的对象操作行为记录。According to the embodiments of the present disclosure, at least one object operation event is intercepted by a listener program based on the hooking strategy, and the object operation event information is obtained, so that the complete object operation can be obtained subsequently without modifying the ROM and without being granted root authority. Behavioural records.
根据本公开的实施例,上述操作事件处理方法还可以包括如下操作。According to an embodiment of the present disclosure, the above-mentioned operation event processing method may further include the following operations.
从事件下发程序中确定与对象操作事件相关的对象操作事件下发程序。将目标代码注入至对象操作事件下发程序,得到监听程序。目标代码包括与用于拦截至少一个对象操作事件相关的代码。The object operation event dispatcher related to the object operation event is determined from the event dispatcher. Inject the target code into the object operation event dispatcher to get the listener. The object code includes code related to intercepting at least one object manipulation event.
根据本公开的实施例,对象操作事件可以包括以下一项:点击事件、滑动事件、选择事件和输入事件。事件下发程序可以包括对象操作事件下发程序。对象操作事件下发程序可以包括以下一项:与点击事件对应的对象操作事件下发程序、与滑动事件对应的对象操作事件下发程序、与选择事件对应的对象操作事件下发程序和与输入事件对应的对象操作事件下发程序。According to an embodiment of the present disclosure, the object manipulation event may include one of the following: a click event, a slide event, a selection event, and an input event. The event dispatcher may include an object operation event dispatcher. The object operation event dispatcher may include one of the following: an object operation event dispatcher corresponding to a click event, an object operation event dispatcher corresponding to a sliding event, an object operation event dispatcher corresponding to a selection event, and an object operation event dispatcher corresponding to the input event. The object operation event dispatcher corresponding to the event.
例如,与点击事件对应的对象操作事件下发程序可以是事件下发程序中的processPointerEvent方法。processPointerEvent方法可以用于实现下发点击操作事件至相应的视图。与滑动事件对应的对象操作事件下发程序可以包括事件下发程序中的processKeyEvent方法。processKeyEvent方法可以用于实现下发滑动事件至相应的视图。For example, the object operation event dispatcher corresponding to the click event may be the processPointerEvent method in the event dispatcher. The processPointerEvent method can be used to deliver click operation events to the corresponding views. The object operation event dispatcher corresponding to the sliding event may include the processKeyEvent method in the event dispatcher. The processKeyEvent method can be used to deliver sliding events to the corresponding view.
根据本公开的实施例,可以对事件下发程序进行分析,确定与至少一个对象操作事件各自对应的对象操作事件下发程序。针对对象操作事件,可以将与对象操作事件对应的目标代码注入至与对象操作事件对应的对象操作事件下发程序,得到与对象操作事件对应的监听程序。根据与至少一个对象操作事件对应的监听程序,得到监听程序。According to the embodiments of the present disclosure, the event delivery program can be analyzed to determine the object operation event delivery program corresponding to at least one object operation event. For the object operation event, the target code corresponding to the object operation event can be injected into the object operation event issuing program corresponding to the object operation event to obtain the listener program corresponding to the object operation event. The listener program is obtained according to the listener program corresponding to the at least one object operation event.
根据本公开的实施例,上述操作事件处理方法还可以包括如下操作。According to an embodiment of the present disclosure, the above-mentioned operation event processing method may further include the following operations.
监听程序向录制程序发送对象操作事件信息。The listener sends object operation event information to the recorder.
根据本公开的实施例,操作S220可以包括如下操作。According to an embodiment of the present disclosure, operation S220 may include the following operations.
录制程序响应于检测到针对对象的操作行为录制事件,根据对象操作事件信息,得到对象操作行为记录。In response to detecting the operation behavior recording event for the object, the recording program obtains the object operation behavior record according to the object operation event information.
根据本公开的实施例,监听程序可以在获得对象操作事件信息之后,可以向录制程序发送对象操作事件信息。录制程序可以在检测到操作行为录制事件被触发的情况下,对对象操作事件信息进行处理,得到对象操作行为记录。According to an embodiment of the present disclosure, after obtaining the object operation event information, the listener program may send the object operation event information to the recording program. The recording program can process the object operation event information to obtain the object operation behavior record when it detects that the operation behavior recording event is triggered.
根据本公开的实施例,通过监听程序获取对象操作事件信息,监听程序向录制程序发送对象操作事件信息,以便在系统未被修改ROM且在录制程序未被授予根权限的情况下,能够获得完整的对象操作行为记录。According to the embodiment of the present disclosure, the object operation event information is obtained through the listener program, and the listener program sends the object operation event information to the recording program, so that the system can obtain the complete information when the ROM has not been modified and the recording program has not been granted root authority. The object operation behavior record.
根据本公开的实施例,监听程序向录制程序发送对象操作事件信息,可以包括如下操作。According to an embodiment of the present disclosure, the listener program sends object operation event information to the recording program, which may include the following operations.
监听程序利用跨进程通信策略向录制程序发送对象操作事件信息。The listener uses the cross-process communication strategy to send object operation event information to the recorder.
根据本公开的实施例,跨进程通信(Inter Process Communication,IPC)策略可以指用于实现不同程序之间进行通信的策略。跨进程通信策略可以包括Binder(即粘合剂)策略。According to an embodiment of the present disclosure, an Inter Process Communication (Inter Process Communication, IPC) strategy may refer to a strategy for implementing communication between different programs. Cross-process communication strategies may include Binder strategies.
根据本公开的实施例,监听程序可以利用Binder策略向录制程序发送对象操作事件信息。According to an embodiment of the present disclosure, the listener program can send object operation event information to the recording program by using the binder strategy.
根据本公开的实施例,对象操作事件信息包括至少一个对象操作事件的操作时刻和事件参数。According to an embodiment of the present disclosure, the object operation event information includes an operation time and event parameters of at least one object operation event.
根据本公开的实施例,根据对象操作事件信息,得到对象操作行为记录,可以包括如下操作。According to an embodiment of the present disclosure, obtaining the object operation behavior record according to the object operation event information may include the following operations.
根据至少一个对象操作事件的操作时刻,确定相邻两个对象操作事件之间的操作间隔。根据相邻两个对象操作事件之间的操作间隔和至少一个对象操作事件的事件参数,得到对象操作行为记录。An operation interval between two adjacent object operation events is determined according to the operation moment of at least one object operation event. According to the operation interval between two adjacent object operation events and the event parameter of at least one object operation event, the object operation behavior record is obtained.
根据本公开的实施例,操作时刻可以指对象操作事件的发生时刻。事件参数可以包括位置参数。此外,对象操作事件信息还可以包括对象标识。位置参数可以用于表征对象操作事件中操作行为发生的位置。位置参数可以包括坐标参数。例如,点击事件的位置参数可以包括第一横坐标参数和第一纵坐标参数。滑动事件的位置参数可以包括开始时刻的位置参数和结束时刻的位置参数。开始时刻的位置参数可以包括第二横坐标参数和第二纵坐标参数。结束时刻的位置参数可以包括第三横坐标参数和第三纵坐标参数。According to an embodiment of the present disclosure, the operation time may refer to the occurrence time of the object operation event. Event parameters can include positional parameters. In addition, the object operation event information may further include an object identification. The location parameter can be used to characterize the location where the operation behavior occurs in the object operation event. The location parameters may include coordinate parameters. For example, the position parameter of the click event may include a first abscissa parameter and a first ordinate parameter. The position parameter of the sliding event may include the position parameter of the start time and the position parameter of the end time. The location parameter at the start time may include a second abscissa parameter and a second ordinate parameter. The position parameter at the end time may include a third abscissa parameter and a third ordinate parameter.
根据本公开的实施例,可以确定与同一对象标识对应的至少一个对象操作事件。根据至少一个对象操作事件各自的操作时刻,确定相邻两个对象操作事件之间的操作间隔和至少一个对象操作事件各自的位置参数,得到对象操作行为记录。对象操作行为记录可以包括至少一个对象操作事件各自的位置参数和至少一个对象操作事件彼此之间的操作间隔。According to an embodiment of the present disclosure, at least one object operation event corresponding to the same object identification can be determined. According to the respective operation moments of the at least one object operation event, the operation interval between two adjacent object operation events and the respective position parameters of the at least one object operation event are determined to obtain the object operation behavior record. The object operation behavior record may include respective position parameters of at least one object operation event and an operation interval between at least one object operation event.
例如,至少一个对象操作事件可以包括点击事件和滑动事件。点击事件的操作时刻是T1。点击事件的位置参数是(x,y)。滑动事件的操作时刻是T2。滑动事件的位置参数包括开始时刻的(x1,y1)和结束时刻的(x2,y2)。可以确定T1与T2之间的操作间隔是(T2-T1)。对象操作行为记录包括如下内容“在(x,y)发生点击事件,在等待操作间隔(T2-T1)之后,在(x1,y1)和(x2,y2)发生滑动事件”。For example, the at least one object manipulation event may include a click event and a swipe event. The operation time of the click event is T 1 . The position parameter of the click event is (x, y). The operation time of the sliding event is T 2 . The position parameters of the sliding event include (x 1 , y 1 ) at the start time and (x 2 , y 2 ) at the end time. It can be determined that the operation interval between T 1 and T 2 is (T 2 -T 1 ). The object operation behavior record includes the following content "a click event occurs at (x, y), and after waiting for the operation interval (T 2 -T 1 ), a sliding event occurs at (x 1 , y 1 ) and (x 2 , y 2 ) ".
根据本公开的实施例,上述操作事件处理方法还可以包括如下操作。According to an embodiment of the present disclosure, the above-mentioned operation event processing method may further include the following operations.
响应于检测到针对对象的操作行为回放事件,根据对象操作行为记录对至少一个对象操作事件进行回放。In response to detecting an operation behavior playback event for the object, at least one object operation event is played back according to the object operation behavior record.
根据本公开的实施例,操作行为回放事件可以指需要对对象操作事件进行回放的事件。可以在检测到操作行为回放控件被触发的情况下,生成操作行为回放事件。备选地,可以在检测到操作行为回放程序被触发的情况下,生成操作行为录制事件。可以利用录制程序执行回放操作。According to an embodiment of the present disclosure, an operation behavior playback event may refer to an event requiring playback of an object operation event. The operation behavior playback event can be generated when it is detected that the operation behavior playback control is triggered. Alternatively, the operation behavior recording event may be generated when it is detected that the operation behavior playback program is triggered. Playback can be performed using the recording program.
根据本公开的实施例,通过对至少一个对象操作事件进行回放,可以及时发现对象在使用目标应用程序过程中存在的问题,更有针对性地对目标应用程序进行改进,以优化目标应用程序。According to the embodiments of the present disclosure, by replaying at least one object operation event, problems existing in the process of using the target application program of the object can be discovered in time, and the target application program can be improved in a more targeted manner to optimize the target application program.
下面参考图3,结合具体实施例对根据本公开实施例所述的操作事件处理方法做进一步说明。3 , the operation event processing method according to the embodiment of the present disclosure will be further described with reference to specific embodiments.
图3示意性示出了根据本公开实施例的操作事件处理过程的示例示意图。FIG. 3 schematically shows an example schematic diagram of an operation event processing procedure according to an embodiment of the present disclosure.
如图3所示,在300中,至少一个对象操作事件可以包括点击事件301和滑动事件302。As shown in FIG. 3 , in 300 , at least one object manipulation event may include a
可以利用事件中心程序303来监听对象针对目标应用程序点击事件301和滑动事件302。利用事件读取程序304来获取点击事件301和滑动事件302。利用事件分发程序305向事件下发程序306发送点击事件301和滑动事件302。事件下发程序306可以包括用于处理点击事件301的对象操作事件下发程序3060和用于处理滑动事件302的对象操作事件下发程序3061。利用事件下发程序306可以向点击事件301和滑动事件302各自对应的视图307发送对象操作事件。利用视图307响应与视图307对应的对象操作事件。The
与点击事件对应的对象操作事件下发程序可以是事件下发程序中的processPointerEvent方法。processPointerEvent方法可以用于实现下发点击操作事件至相应的视图。与滑动事件对应的对象操作事件下发程序可以包括事件下发程序中的processKeyEvent方法。processKeyEvent方法可以用于实现下发滑动事件至相应的视图。The object operation event dispatcher corresponding to the click event may be the processPointerEvent method in the event dispatcher. The processPointerEvent method can be used to deliver click operation events to the corresponding views. The object operation event dispatcher corresponding to the sliding event may include the processKeyEvent method in the event dispatcher. The processKeyEvent method can be used to deliver sliding events to the corresponding view.
针对点击事件301,可以将与点击事件301和滑动事件302对应的目标代码308注入至与点击事件301对应的对象操作事件下发程序3060和与滑动事件302对应的对象操作事件下发程序3061,得到监听程序309。For the
监听程序309可以响应于检测到对象针对目标应用程序的点击事件301和滑动事件302,拦截点击事件301和滑动事件302,得到对象操作事件信息。监听程序309向录制程序310发送对象操作实际信息。录制程序310根据对象操作事件信息,得到对象操作行为记录。The
本公开的技术方案中,所涉及的用户个人信息的收集、存储、使用、加工、传输、提供和公开等处理,均符合相关法律法规的规定,且不违背公序良俗。In the technical solutions of the present disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of the user's personal information involved are all in compliance with relevant laws and regulations, and do not violate public order and good customs.
在本公开的技术方案中,在获取或采集用户个人信息之前,均获取了用户的授权或同意。In the technical solution of the present disclosure, the authorization or consent of the user is obtained before the user's personal information is obtained or collected.
以上仅是示例性实施例,但不限于此,还可以包括本领域已知的其他操作事件处理方法,只要能够实现在不修改ROM和不被授予根权限的情况下,获得完整的对象操作行为记录即可。The above is only an exemplary embodiment, but it is not limited to this, and can also include other operation event processing methods known in the art, as long as it can achieve complete object operation behavior without modifying the ROM and not being granted root authority Just record it.
图4示意性示出了根据本公开实施例的操作事件处理装置的框图。FIG. 4 schematically shows a block diagram of an operation event processing apparatus according to an embodiment of the present disclosure.
如图4所示,操作事件处理装置400可以包括第一获得模块410和第二获得模块420。As shown in FIG. 4 , the operation
第一获得模块410,用于响应于检测到对象针对目标应用程序的至少一个对象操作事件,拦截至少一个对象操作事件,得到对象操作事件信息。The first obtaining
第二获得模块420,用于根据对象操作事件信息,得到对象操作行为记录。The second obtaining
根据本公开的实施例,第一获得模块410可以包括第一获得子模块。According to an embodiment of the present disclosure, the first obtaining
第一获得子模块,用于在至少一个对象操作事件被发送至目标视图的同时,拦截至少一个对象操作事件,得到对象操作事件信息。对象操作事件是对象针对目标应用程序的操作事件。目标视图是用于响应对象操作事件的视图。The first obtaining sub-module is configured to intercept at least one object operation event while at least one object operation event is sent to the target view to obtain object operation event information. Object operation events are object operation events for the target application. The target view is the view used to respond to object manipulation events.
根据本公开的实施例,第一获得子模块可以包括获得单元。According to an embodiment of the present disclosure, the first obtaining sub-module may include an obtaining unit.
获得单元,用于响应于检测到对象操作事件下发程序被执行,拦截至少一个对象操作事件,得到对象操作事件信息。The obtaining unit is configured to intercept at least one object operation event in response to detecting that the object operation event issuing program is executed, and obtain the object operation event information.
根据本公开的实施例,获得单元可以包括获得子单元。According to an embodiment of the present disclosure, the obtaining unit may include obtaining subunits.
获得子单元,用于监听程序响应于检测到对象操作事件下发程序被执行,拦截至少一个对象操作事件,得到对象操作事件信息。监听程序是基于挂钩策略实现的。The obtaining subunit is used for the listener program to intercept at least one object operation event in response to detecting that the object operation event issuing program is executed to obtain the object operation event information. Listeners are implemented based on a hooking strategy.
根据本公开的实施例,上述操作事件处理装置400还可以包括确定模块和第三获得模块。According to an embodiment of the present disclosure, the above-mentioned operation
确定模块,用于从事件下发程序中确定与对象操作事件相关的对象操作事件下发程序。The determining module is used for determining the object operation event issuing program related to the object operation event from the event issuing program.
第三获得模块,用于将目标代码注入至对象操作事件下发程序,得到监听程序。目标代码包括与用于拦截至少一个对象操作事件相关的代码。The third obtaining module is used for injecting the target code into the object operation event issuing program to obtain the listener program. The object code includes code related to intercepting at least one object manipulation event.
根据本公开的实施例,上述操作事件处理装置400还可以包括发送模块。According to an embodiment of the present disclosure, the above-mentioned operation
发送模块,用于监听程序向录制程序发送对象操作事件信息。The sending module is used for the listener to send the object operation event information to the recording program.
根据本公开的实施例,第二获得模块420可以包括第二获得子模块。According to an embodiment of the present disclosure, the second obtaining
第二获得子模块,用于录制程序响应于检测到针对对象的操作行为录制事件,根据对象操作事件信息,得到对象操作行为记录。The second obtaining sub-module is used for the recording program to obtain the object operation behavior record according to the object operation event information in response to detecting the operation behavior recording event for the object.
根据本公开的实施例,对象操作事件信息包括至少一个对象操作事件的操作时刻和事件参数。According to an embodiment of the present disclosure, the object operation event information includes an operation time and event parameters of at least one object operation event.
根据本公开的实施例,根据对象操作事件信息,得到对象操作行为记录,可以包括如下操作。According to an embodiment of the present disclosure, obtaining the object operation behavior record according to the object operation event information may include the following operations.
根据至少一个对象操作事件的操作时刻,确定相邻两个对象操作事件之间的操作间隔。根据相邻两个对象操作事件之间的操作间隔和至少一个对象操作事件的事件参数,得到对象操作行为记录。An operation interval between two adjacent object operation events is determined according to the operation moment of at least one object operation event. According to the operation interval between two adjacent object operation events and the event parameter of at least one object operation event, the object operation behavior record is obtained.
根据本公开的实施例,上述操作事件处理装置400还可以包括回放模块。According to an embodiment of the present disclosure, the above-mentioned operation
回放模块,用于响应于检测到针对对象的操作行为回放事件,根据对象操作行为记录对至少一个对象操作事件进行回放。The playback module is configured to play back at least one object operation event according to the object operation behavior record in response to detecting the operation behavior replay event for the object.
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
根据本公开的实施例,一种电子设备,包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行如上所述的方法。According to an embodiment of the present disclosure, an electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are processed by the at least one processor The processor executes to enable at least one processor to execute the method as described above.
根据本公开的实施例,一种存储有计算机指令的非瞬时计算机可读存储介质,其中,计算机指令用于使计算机执行如上所述的方法。According to an embodiment of the present disclosure, there is a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to perform the method as described above.
根据本公开的实施例,一种计算机程序产品,包括计算机程序,计算机程序在被处理器执行时实现如上所述的方法。According to an embodiment of the present disclosure, a computer program product includes a computer program that, when executed by a processor, implements the method as described above.
图5示意性示出了根据本公开实施例的适于实现操作事件处理方法的电子设备的框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。FIG. 5 schematically shows a block diagram of an electronic device suitable for implementing an operation event processing method according to an embodiment of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
如图5所示,电子设备500包括计算单元501,其可以根据存储在只读存储器(ROM)502中的计算机程序或者从存储单元508加载到随机访问存储器(RAM)503中的计算机程序,来执行各种适当的动作和处理。在RAM 503中,还可存储电子设备500操作所需的各种程序和数据。计算单元501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5 , the
电子设备500中的多个部件连接至I/O接口505,包括:输入单元506,例如键盘、鼠标等;输出单元507,例如各种类型的显示器、扬声器等;存储单元508,例如磁盘、光盘等;以及通信单元509,例如网卡、调制解调器、无线通信收发机等。通信单元509允许电子设备500通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the
计算单元501可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元501的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元501执行上文所描述的各个方法和处理,例如操作事件处理方法。例如,在一些实施例中,操作事件处理方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元508。在一些实施例中,计算机程序的部分或者全部可以经由ROM 502和/或通信单元509而被载入和/或安装到电子设备500上。当计算机程序加载到RAM 503并由计算单元501执行时,可以执行上文描述的操作事件处理方法的一个或多个步骤。备选地,在其他实施例中,计算单元501可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行操作事件处理方法。
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、复杂可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), complex programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, performs the functions/functions specified in the flowcharts and/or block diagrams. Action is implemented. The program code may execute entirely on the machine, partly on the machine, partly on the machine and partly on a remote machine as a stand-alone software package or entirely on the remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,也可以是分布式系统的服务器,或者是结合了区块链的服务器。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a distributed system server, or a server combined with blockchain.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present disclosure can be executed in parallel, sequentially, or in different orders. As long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, there is no limitation herein.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure should be included within the protection scope of the present disclosure.
Claims (19)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210308723.2A CN114721787A (en) | 2022-03-25 | 2022-03-25 | Operation event processing method, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210308723.2A CN114721787A (en) | 2022-03-25 | 2022-03-25 | Operation event processing method, device, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114721787A true CN114721787A (en) | 2022-07-08 |
Family
ID=82239574
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210308723.2A Pending CN114721787A (en) | 2022-03-25 | 2022-03-25 | Operation event processing method, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114721787A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567182A (en) * | 2003-06-20 | 2005-01-19 | 鸿富锦精密工业(深圳)有限公司 | Journal log register system and method thereof |
US9063803B1 (en) * | 2013-04-29 | 2015-06-23 | Amazon Technologies, Inc. | Rich recording and playback of program execution |
CN105335283A (en) * | 2014-08-01 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Application testing method and device in terminal equipment |
CN110290216A (en) * | 2019-06-28 | 2019-09-27 | 百度在线网络技术(北京)有限公司 | Monitor execution method, instruction delivery method, device, equipment and storage medium |
CN111352790A (en) * | 2020-02-20 | 2020-06-30 | Oppo(重庆)智能科技有限公司 | Test method and device for reporting input event, mobile terminal and storage medium |
-
2022
- 2022-03-25 CN CN202210308723.2A patent/CN114721787A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567182A (en) * | 2003-06-20 | 2005-01-19 | 鸿富锦精密工业(深圳)有限公司 | Journal log register system and method thereof |
US9063803B1 (en) * | 2013-04-29 | 2015-06-23 | Amazon Technologies, Inc. | Rich recording and playback of program execution |
CN105335283A (en) * | 2014-08-01 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Application testing method and device in terminal equipment |
CN110290216A (en) * | 2019-06-28 | 2019-09-27 | 百度在线网络技术(北京)有限公司 | Monitor execution method, instruction delivery method, device, equipment and storage medium |
CN111352790A (en) * | 2020-02-20 | 2020-06-30 | Oppo(重庆)智能科技有限公司 | Test method and device for reporting input event, mobile terminal and storage medium |
Non-Patent Citations (2)
Title |
---|
STAN_Z: "Android Input事件获取与分发简单总结", pages 1, Retrieved from the Internet <URL:https://www.jianshu.com/p/f984523efd3c> * |
王宪平;许江来;崔帅;周哲帅;: "利用ActiveX实现设备监控信息流的旁路捕获", 电讯技术, no. 11, 28 November 2016 (2016-11-28) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11916920B2 (en) | Account access security using a distributed ledger and/or a distributed file system | |
US10762277B2 (en) | Optimization schemes for controlling user interfaces through gesture or touch | |
CN103984538B (en) | Application scenario identification method, power consumption management method, devices and terminal equipment | |
US9612920B2 (en) | Hierarchical system manager rollback | |
US10530790B2 (en) | Privileged session analytics | |
US11647086B2 (en) | System and method for maintaining user session continuity across multiple devices and/or multiple platforms | |
CN108139958A (en) | Event batch processing, output sequence in continuous query processing and the state storage based on daily record | |
US11704680B2 (en) | Detecting fraudulent user accounts using graphs | |
US10095608B2 (en) | Application test automation transmitting data via phone/voice calls | |
CN113839944B (en) | Method, device, electronic equipment and medium for coping with network attack | |
CN111330280A (en) | Data processing method and device in game, storage medium and electronic equipment | |
CN113238815B (en) | Interface access control method, device, equipment and storage medium | |
US20170147483A1 (en) | Tracking asynchronous entry points for an application | |
CN111666567A (en) | Detection method, device, computer program and medium for malicious modification of application program | |
US10579446B2 (en) | Per-request event detection to improve request-response latency | |
WO2025124273A1 (en) | Security audit method for distributed database and related device | |
CN112000491B (en) | Application program interface calling method, device, equipment and storage medium | |
US11023479B2 (en) | Managing asynchronous analytics operation based on communication exchange | |
CN114721787A (en) | Operation event processing method, device, electronic device and storage medium | |
CN115310096A (en) | A security vulnerability processing method, device, equipment and medium | |
CN114329149A (en) | Detection method, device, electronic device and readable storage medium for automatic crawling of page information | |
US20250240323A1 (en) | Snapshot for activity detection and threat analysis | |
US20230306367A1 (en) | Methods, apparatuses and computer program products for managing feature preload data object processing operations in a card-based collaborative workflow management system | |
CN117131086A (en) | Verification code query method, device, equipment and storage medium | |
CN115801357A (en) | Global exception handling method, device, equipment and storage medium |
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 |