WO2021175148A1 - Target behavior identification method, and electronic device - Google Patents

Target behavior identification method, and electronic device Download PDF

Info

Publication number
WO2021175148A1
WO2021175148A1 PCT/CN2021/077878 CN2021077878W WO2021175148A1 WO 2021175148 A1 WO2021175148 A1 WO 2021175148A1 CN 2021077878 W CN2021077878 W CN 2021077878W WO 2021175148 A1 WO2021175148 A1 WO 2021175148A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
application
target application
behavior
sdk
Prior art date
Application number
PCT/CN2021/077878
Other languages
French (fr)
Chinese (zh)
Inventor
王保和
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021175148A1 publication Critical patent/WO2021175148A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Definitions

  • FIG. 1 shows a flowchart of a target behavior recognition method provided by an embodiment of the present invention
  • FIG. 2 shows a flowchart of an example of a target behavior recognition method provided by an embodiment of the present invention
  • the interface displayed in the foreground can be obtained by obtaining the task stack.
  • the task stack is used to save the value of the register, the parameters/local variables of the function in the running/calling process, etc., when the target application is switched to the background , SDK can know which interface of which application is currently interacting with the user by calling the system interface.
  • the judgment module 302 includes:
  • the processor 410 may be specifically configured to:
  • the radio frequency unit 401 may be used for:

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

Provided are a target behavior identification method, and an electronic device. The method comprises: when a target application program is running and an interface displayed in the foreground is a preset display interface, acquiring a target moment, wherein the target moment is the moment when the interface displayed in the foreground starts to perform display; and according to whether a software development kit (SDK) of the target application program records a payment record of the target application program within a preset time period from the target moment, identifying whether there is a target behavior in the target application program.

Description

目标行为识别方法及电子设备Target behavior recognition method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2020年03月04日在中国提交的中国专利申请号202010144595.3的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 202010144595.3 filed in China on March 4, 2020, and the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明涉及移动通信技术领域,尤其涉及一种目标行为识别方法及电子设备。The present invention relates to the field of mobile communication technology, in particular to a target behavior recognition method and electronic equipment.
背景技术Background technique
随着移动通信技术的迅速发展,以智能手机为首的电子设备已成为人们生活中各方面不可或缺的工具。电子设备的各种应用程序(Application,APP)的功能也逐渐完善,不再只是单纯地起到通信作用,较多的是为用户提供各种智能化服务,给用户工作、生活带来了极大的便利。With the rapid development of mobile communication technology, electronic devices led by smart phones have become indispensable tools in all aspects of people's lives. The functions of various application programs (Application, APP) of electronic equipment are also gradually being improved. They are no longer simply playing a communication role, but more are providing users with a variety of intelligent services, which bring great work and life to users. Great convenience.
为了便于用户使用,一些应用程序提供了支付功能,比如游戏类APP和购物类APP。对于一些APP,例如游戏类APP,当前的运作模式通常为应用分发平台与游戏类APP供应商联合运营,应用分发平台为游戏提供流量支持,并将游戏类APP的收入按照预先约定的规则进行分成。而实际操作的过程中,有可能出现的APP作弊行为,比如绕过平台的支付功能完成支付,以此避免与应用分发平台进行收入分成。对此,现有技术通常采用静态代码检测提前发现可疑代码,但采用静态代码检测识别率低,无法准确检测APP是否存在绕过平台的支付功能完成支付的行为。For the convenience of users, some applications provide payment functions, such as game apps and shopping apps. For some apps, such as game apps, the current mode of operation is usually the joint operation of the app distribution platform and the game app provider. The app distribution platform provides traffic support for the game, and the revenue of the game app is divided according to pre-agreed rules. . In the actual operation process, there may be APP cheating behaviors, such as bypassing the payment function of the platform to complete the payment, so as to avoid revenue sharing with the application distribution platform. In this regard, the prior art usually uses static code detection to detect suspicious codes in advance, but the recognition rate of static code detection is low, and it is impossible to accurately detect whether the APP has bypassed the payment function of the platform to complete the payment.
发明内容Summary of the invention
本发明实施例提供一种目标行为识别方法及电子设备,以解决现有技 术中无法准确检测APP是否存在绕过平台的支付功能完成支付的行为的问题。The embodiments of the present invention provide a target behavior identification method and electronic equipment to solve the problem that in the prior art, it is impossible to accurately detect whether the APP has a behavior that bypasses the payment function of the platform to complete the payment.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above technical problems, the present invention is implemented as follows:
第一方面,本发明实施例提供了一种目标行为识别方法,所述方法应用于电子设备,所述方法包括:In the first aspect, an embodiment of the present invention provides a target behavior recognition method, the method is applied to an electronic device, and the method includes:
在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面开始显示的时刻;In the case where the target application is running and the interface displayed in the foreground is a preset display interface, acquiring the target time, where the target time is the time when the interface displayed in the foreground starts to be displayed;
根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包(Software Development Kit,SDK)中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为。Identify the target application according to whether the payment record of the target application is recorded in the software development kit (SDK) of the target application within a preset time period after the target moment Whether there is a target behavior.
第二方面,本发明实施例还提供了一种电子设备,所述电子设备包括:In a second aspect, an embodiment of the present invention also provides an electronic device, the electronic device including:
检测模块,用于在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面开始显示的时刻;The detection module is configured to obtain the target time when the target application is running and the interface displayed in the foreground is a preset display interface, where the target time is the time when the interface displayed in the foreground starts to be displayed;
判断模块,用于根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为。The judging module is configured to identify whether the target application has a payment record recorded in the software development kit SDK of the target application within a preset time period after the target moment. There is a target behavior.
第三方面,本发明实施例还提供了一种电子设备,该电子设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的目标行为识别方法中的步骤。In a third aspect, an embodiment of the present invention also provides an electronic device that includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, The steps in the target behavior recognition method as described above are realized.
第四方面,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的目标行为识别方法中的步骤。In a fourth aspect, an embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the target behavior recognition method described above is implemented A step of.
在本发明实施例中,通过在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面开始显示的时刻;根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支 付记录,识别所述目标应用程序是否存在目标行为;基于SDK中是否记载有所述目标应用程序的支付记录识别目标行为,识别过程简单,识别率高且成本低,可以准确检测APP是否存在绕过平台的支付功能完成支付的行为。In the embodiment of the present invention, the target time is acquired when the target application is running and the interface displayed in the foreground is the preset display interface. The target time is the time when the interface displayed in the foreground starts to be displayed; In a preset time period after the target moment, whether the payment record of the target application is recorded in the software development kit SDK of the target application, and identify whether the target application has the target behavior; based on the SDK Whether the payment record of the target application is recorded to identify the target behavior, the recognition process is simple, the recognition rate is high, and the cost is low, and it can accurately detect whether the APP has a behavior that bypasses the payment function of the platform to complete the payment.
附图说明Description of the drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present invention more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1表示本发明实施例提供的目标行为识别方法的流程图;FIG. 1 shows a flowchart of a target behavior recognition method provided by an embodiment of the present invention;
图2表示本发明实施例提供的目标行为识别方法的示例的流程图;FIG. 2 shows a flowchart of an example of a target behavior recognition method provided by an embodiment of the present invention;
图3表示本发明实施例提供的电子设备的框图之一;Figure 3 shows one of the block diagrams of the electronic device provided by the embodiment of the present invention;
图4表示本发明实施例提供的电子设备的框图之二。Fig. 4 shows the second block diagram of the electronic device provided by the embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It should be understood that “one embodiment” or “an embodiment” mentioned throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present invention. Therefore, the appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner.
在本发明的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In various embodiments of the present invention, it should be understood that the size of the sequence number of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not be implemented in the present invention. The implementation process of the example constitutes any limitation.
为了便于理解本发明实施例提供的目标行为识别方法,下面先介绍与本发明实施例相关的技术:In order to facilitate the understanding of the target behavior recognition method provided by the embodiment of the present invention, the following first introduces the technology related to the embodiment of the present invention:
软件开发工具包SDK为用于实现某种功能的工具包。现有技术中,一些特定的APP,例如游戏类APP会植入SDK用以记录用户的行为,使得移动应用开发者获得用户使用的部分相关数据。The software development kit SDK is a tool kit used to implement a certain function. In the prior art, some specific apps, such as game apps, are embedded in SDK to record user behaviors, so that mobile application developers can obtain some relevant data used by users.
参见图1,本发明一实施例提供了一种目标行为识别方法,应用于电子设备,所述电子设备包括各种手持设备、车载设备、可穿戴设备、计算设备或其它处理设备,以及各种形式的移动台(Mobile Station,MS),终端设备(Terminal Device)等等。Referring to Figure 1, an embodiment of the present invention provides a target behavior recognition method, which is applied to electronic devices, including various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices, and various Forms of mobile station (Mobile Station, MS), terminal equipment (Terminal Device), etc.
所述方法包括:The method includes:
步骤101,在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面开始显示的时刻。Step 101: When the target application is running and the interface displayed in the foreground is a preset display interface, acquire a target time, where the target time is the time when the interface displayed in the foreground starts to be displayed.
其中,所述目标应用程序为需要进行目标行为识别的应用程序,可选的,所述目标应用程序可以为某一类型的应用程序,如包含支付功能的APP,游戏类APP等,本发明实施例对此不做限定。Wherein, the target application is an application that requires target behavior recognition. Optionally, the target application may be a certain type of application, such as an APP containing a payment function, a game APP, etc. The implementation of the present invention The example does not limit this.
其中,所述目标应用程序运行可以包括所述目标应用程序在前台运行或所述目标应用程序切换到后台运行。Wherein, the target application running may include the target application running in the foreground or the target application switching to running in the background.
可选的,可以在检测到所述目标应用程序切换到后台运行的情况下,获取前台显示的界面。Optionally, when it is detected that the target application program is switched to running in the background, the interface displayed in the foreground may be obtained.
具体地,可以通过所述目标应用程序的SDK来监听所述目标应用程序切换到后台,由于SDK集成在所述目标应用程序内部,所以SDK可以通过对所述目标应用程序生命周期监听来获知所述目标应用程序已经切换到后台。Specifically, the SDK of the target application can be used to monitor that the target application is switched to the background. Since the SDK is integrated within the target application, the SDK can learn about the status of the target application by monitoring the life cycle of the target application. The target application has been switched to the background.
可选的,可以通过获取任务堆栈获取前台显示的界面,具体地,任务堆栈用于保存寄存器的值、函数在运行/调用过程中的参数/局部变量等,所述目标应用程序切换至后台时,SDK通过对系统接口的调用,可以获知当前正在跟用户交互的是哪一个应用程序的哪一个界面。Optionally, the interface displayed in the foreground can be obtained by obtaining the task stack. Specifically, the task stack is used to save the value of the register, the parameters/local variables of the function in the running/calling process, etc., when the target application is switched to the background , SDK can know which interface of which application is currently interacting with the user by calling the system interface.
若前台显示的界面为预设显示界面,获取目标时刻。If the interface displayed in the foreground is the preset display interface, the target time is obtained.
具体地,获取前台显示的界面之后,可以将前台显示的界面与预先存储的预设显示界面进行比对,判断前台显示的显示界面是否为预设显示界面;其中,所述预设显示界面可以为支付界面,比如通过支付类APP进行支付时,支付类APP的支付界面。Specifically, after obtaining the interface displayed in the foreground, the interface displayed in the foreground can be compared with the preset display interface stored in advance to determine whether the display interface displayed in the foreground is the preset display interface; wherein, the preset display interface may be It is the payment interface, such as the payment interface of the payment APP when the payment is made through the payment APP.
若所述前台显示的界面与预设显示界面相匹配,则确定所述前台显示的界面为所述预设显示界面。If the interface displayed in the foreground matches the preset display interface, it is determined that the interface displayed in the foreground is the preset display interface.
本发明实施例提供的目标行为识别方法还包括步骤102,根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为。The target behavior identification method provided by the embodiment of the present invention further includes step 102, according to whether the target application’s software development kit SDK is recorded in the target application’s software development kit SDK within a preset time period after the target moment. Payment records to identify whether the target application has a target behavior.
其中,所述目标行为为所述目标应用程序绕过平台的支付功能完成支付的行为。Wherein, the target behavior is the behavior of the target application bypassing the payment function of the platform to complete payment.
正常情况下,如果应用程序没有绕过平台的支付功能,所有的支付界面都是应用程序调用SDK启动的,每一次这样的启动行为,SDK都会进行记录。因此,可以根据所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录来识别所述目标应用程序是否存在目标行为。Under normal circumstances, if the application does not bypass the payment function of the platform, all payment interfaces are started by the application calling the SDK, and the SDK will record every such startup behavior. Therefore, it is possible to identify whether the target application has a target behavior according to whether the payment record of the target application is recorded in the software development kit SDK of the target application.
具体地,若所述SDK中记载有所述支付记录,识别所述目标应用程序不存在目标行为;和/或,Specifically, if the payment record is recorded in the SDK, it is recognized that there is no target behavior in the target application; and/or,
若所述SDK中未记载有所述支付记录,识别所述目标应用程序存在目标行为;If the payment record is not recorded in the SDK, identify that the target application has a target behavior;
也就是说,若所述SDK中记载有所述支付记录,可以理解为该次支付界面是所述目标应用程序调用所述SDK启动的,则所述目标应用程序不存在绕过平台的支付功能完成支付的行为。若所述SDK中未记载有所述支付记录,则该次支付界面不是由所述目标应用程序调用所述SDK启动的,则所述目标应用程序存在绕过平台的支付功能完成支付的行为。In other words, if the payment record is recorded in the SDK, it can be understood that the payment interface was started by the target application calling the SDK, and the target application does not have a payment function that bypasses the platform. The act of completing the payment. If the payment record is not recorded in the SDK, the payment interface is not started by the target application calling the SDK, and the target application may bypass the payment function of the platform to complete the payment.
可选的,本发明实施例中,在识别所述目标应用程序存在所述目标行为的情况下,上报所述目标行为。Optionally, in this embodiment of the present invention, the target behavior is reported when the target application is identified as having the target behavior.
目标应用程序绕过平台的支付功能完成支付的行为在行业内属于违规 行为,目标应用程序享受了平台提供的流量扶持,但又不给平台方分成,极大损害了分发平台的利益,因此,在识别所述目标应用程序存在所述目标行为的情况下,可以向分发平台上报所述目标行为,以便应用分发平台及时采取措施进行处理。The behavior of the target application to bypass the payment function of the platform to complete the payment is illegal in the industry. The target application enjoys the traffic support provided by the platform, but does not share with the platform party, which greatly harms the interests of the distribution platform. Therefore, In the case of identifying that the target application has the target behavior, the target behavior may be reported to the distribution platform, so that the application distribution platform can take timely measures for processing.
可选地,本发明实施例中,本发明实施例提供的目标行为识别方法还包括:Optionally, in the embodiment of the present invention, the target behavior recognition method provided in the embodiment of the present invention further includes:
在第一应用程序为所述目标应用程序的情况下,在所述第一应用程序的安装包内加入预设的SDK数据包。In the case where the first application is the target application, a preset SDK data package is added to the installation package of the first application.
若所述第一应用程序为所述目标应用程序,在所述第一应用程序的安装包内加入预设的SDK数据包,可以通过SDK记录应用程序的使用行为等信息。If the first application is the target application, a preset SDK data package is added to the installation package of the first application, and information such as the use behavior of the application can be recorded through the SDK.
本发明实施例中,在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面开始显示的时刻;根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为;基于SDK中是否记载有所述目标应用程序的支付记录识别目标行为,识别过程简单,识别率高且成本低,可以准确检测APP是否存在绕过平台的支付功能完成支付的行为。In the embodiment of the present invention, when the target application is running and the interface displayed in the foreground is a preset display interface, the target time is acquired, where the target time is the time when the interface displayed in the foreground starts to be displayed; In the preset time period after the target moment, whether the payment record of the target application is recorded in the software development kit SDK of the target application, and identify whether the target application has the target behavior; based on whether the SDK is recorded The payment record of the target application program recognizes the target behavior, the recognition process is simple, the recognition rate is high, and the cost is low, and it can accurately detect whether the APP has a behavior that bypasses the payment function of the platform to complete the payment.
作为示例,参见图2,以目标应用程序为游戏APP为例,图2示出了一目标行为识别方法的主要过程,目标行为识别方法的过程可以包括以下步骤:步骤201至步骤205。As an example, referring to FIG. 2, taking the target application as a game APP as an example, FIG. 2 shows the main process of a target behavior recognition method. The process of the target behavior recognition method may include the following steps: step 201 to step 205.
步骤201,监测游戏APP切换到后台运行,记录当前时刻t1。Step 201: The monitoring game APP is switched to run in the background, and the current time t1 is recorded.
由于SDK集成在游戏APP内部,所以SDK可以通过对APP的生命周期监听来获知APP已经切换到后台。Since the SDK is integrated inside the game APP, the SDK can learn that the APP has switched to the background by monitoring the life cycle of the APP.
步骤202,获取游戏APP在电子设备前台的显示界面。Step 202: Obtain the display interface of the game APP in the foreground of the electronic device.
APP切换至后台时,SDK通过对系统接口的调用,可以获知当前正在跟用户交互的是哪一个APP的哪一个界面,此处称为游戏APP的FJ界面。When the APP is switched to the background, the SDK can know which interface of which APP is currently interacting with the user by calling the system interface, which is called the FJ interface of the game APP here.
步骤203,判断所述显示界面是否为预设显示界面。Step 203: Determine whether the display interface is a preset display interface.
电子设备预存好的指定几款支付APP的预设显示界面,预设显示界面 包括:TJ、WJ、YJ等界面,用上述202步骤中获取到的FJ界面与这些预存的界面进行匹配,如果能够匹配上,则说明游戏APP跳转到了支付界面。Specify the preset display interfaces of several payment APPs pre-stored in the electronic device. The preset display interfaces include: TJ, WJ, YJ and other interfaces. Use the FJ interface obtained in step 202 above to match these pre-stored interfaces. If you can If it matches, it means that the game APP has jumped to the payment interface.
步骤204,判断t1时刻后的X分钟内,SDK中是否记载有支付记录。Step 204: Determine whether payment records are recorded in the SDK within X minutes after time t1.
正常情况下,所有的支付界面都应该是游戏APP调用SDK启动的,每一次这样的启动行为,SDK都会进行记录Z1、Z2、Z3、…、Zn,当步骤203中已确定跳转到支付界面时,需要检查下X分钟内,是否有此游戏APP发起的支付记录,如果能查询到,则没有目标行为(切支付),否则会判断为切支付行为,并进行记录。Under normal circumstances, all payment interfaces should be started by the game APP calling the SDK. Every time such a startup behavior, the SDK will record Z1, Z2, Z3, …, Zn. When it is determined in step 203 to jump to the payment interface At the time, you need to check whether there is a payment record initiated by this game APP within X minutes. If it can be queried, there is no target behavior (payment cut), otherwise it will be judged as a payment cut behavior and recorded.
步骤205,若游戏APP存在切支付行为,则对其进行上报。Step 205: If there is a payment cut behavior in the game APP, report it.
在下次SDK被调起时,将步骤204中所记录的切支付行为进行联网上报,通过后台展示出所有切支付行为的游戏APP,并进行相应的处理。When the SDK is called up next time, the payment cut behavior recorded in step 204 is reported online, and all the game apps of the payment cut behavior are displayed through the background, and corresponding processing is performed.
本发明实施例中,在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面开始显示的时刻;根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为;基于SDK识别目标行为,识别过程简单,识别率高且成本低;避免APP跳过应用分发平台进行支付,保障应用分发平台的利益。In the embodiment of the present invention, when the target application is running and the interface displayed in the foreground is a preset display interface, the target time is acquired, where the target time is the time when the interface displayed in the foreground starts to be displayed; In the preset time period after the target moment, whether the payment record of the target application is recorded in the software development kit SDK of the target application, identify whether the target application has the target behavior; identify the target behavior based on the SDK , The recognition process is simple, the recognition rate is high, and the cost is low; it prevents APP from skipping the application distribution platform for payment, and protects the interests of the application distribution platform.
以上介绍了本发明实施例提供的目标行为识别方法,下面将结合附图介绍本发明实施例提供的电子设备。The target behavior recognition method provided by the embodiment of the present invention has been introduced above, and the electronic device provided by the embodiment of the present invention will be described below with reference to the accompanying drawings.
参见图3,本发明实施例还提供了一种电子设备300,所述电子设备300包括各种手持设备、车载设备、可穿戴设备、计算设备或其它处理设备,以及各种形式的移动台,终端设备等等,所述电子设备300包括:Referring to FIG. 3, an embodiment of the present invention also provides an electronic device 300, which includes various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices, and various forms of mobile stations. Terminal equipment, etc., the electronic equipment 300 includes:
检测模块301,用于在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面开始显示的时刻;The detection module 301 is configured to obtain a target time when the target application is running and the interface displayed in the foreground is a preset display interface, where the target time is the time when the interface displayed in the foreground starts to be displayed;
判断模块302,用于根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为。The judging module 302 is configured to identify the target application according to whether the payment record of the target application is recorded in the software development kit SDK of the target application within a preset time period after the target moment Whether there is a target behavior.
可选地,本发明实施例中,所述判断模块302包括:Optionally, in the embodiment of the present invention, the judgment module 302 includes:
第一判断子模块,用于若所述SDK中记载有所述支付记录,识别所述目标应用程序不存在目标行为;和/或,The first judging submodule is used to identify that the target application does not have a target behavior if the payment record is recorded in the SDK; and/or,
第二判断子模块,用于若所述SDK中未记载有所述支付记录,识别所述目标应用程序存在目标行为。The second judgment sub-module is used for identifying that the target application has a target behavior if the payment record is not recorded in the SDK.
可选地,本发明实施例中,所述检测模块301包括:Optionally, in this embodiment of the present invention, the detection module 301 includes:
获取子模块,用于检测到所述电子设备300的目标应用程序切换到后台运行,获取所述电子设备300在所述电子设备300的前台显示的界面;The acquiring sub-module is used to detect that the target application of the electronic device 300 is switched to running in the background, and to acquire the interface displayed by the electronic device 300 in the foreground of the electronic device 300;
匹配子模块,用于将所述前台显示的界面与预设显示界面相匹配,判断所述前台显示的界面是否为所述预设显示界面。The matching sub-module is configured to match the interface displayed in the foreground with the preset display interface, and determine whether the interface displayed in the foreground is the preset display interface.
若电子设备300前台所运行的应用程序为目标应用程序,检测到目标应用由前台切换到后台运行,获取电子设备300前台显示的界面;然后将应用界面与预先存储的预设显示界面进行比对,判断所示显示界面是否为预设显示界面;可选地,预设显示界面可以为支付界面,比如通过支付类APP进行支付时,支付类APP的支付界面(或支付成功界面)。If the application running in the foreground of the electronic device 300 is the target application, it is detected that the target application is switched from the foreground to the background operation, and the interface displayed in the foreground of the electronic device 300 is obtained; then the application interface is compared with the preset display interface stored in advance , Determine whether the displayed display interface is a preset display interface; optionally, the preset display interface may be a payment interface, such as the payment interface (or payment success interface) of a payment APP when payment is made through a payment APP.
若所述前台显示的界面与预设显示界面相匹配,则确定所述前台显示的界面为所述预设显示界面。If the interface displayed in the foreground matches the preset display interface, it is determined that the interface displayed in the foreground is the preset display interface.
可选地,本发明实施例中,所述检测模块301包括:Optionally, in this embodiment of the present invention, the detection module 301 includes:
获取子模块,用于获取任务堆栈。Get submodule, used to get task stack.
可选地,本发明实施例中,所述电子设备300还包括:Optionally, in this embodiment of the present invention, the electronic device 300 further includes:
加入模块,用于在第一应用程序为所述目标应用程序的情况下,在所述第一应用程序的安装包内加入预设的SDK数据包。The adding module is used to add a preset SDK data package to the installation package of the first application when the first application is the target application.
可选地,本发明实施例中,所述电子设备300还包括:Optionally, in this embodiment of the present invention, the electronic device 300 further includes:
上报模块,用于在识别所述目标应用程序存在所述目标行为的情况下,上报所述目标行为。The reporting module is configured to report the target behavior in the case of identifying that the target application has the target behavior.
本发明实施例提供的电子设备300能够实现图1至图2的方法实施例中目标行为识别方法实现的各个过程,为避免重复,这里不再赘述。The electronic device 300 provided by the embodiment of the present invention can implement each process of the target behavior recognition method in the method embodiments of FIG. 1 to FIG.
本发明的实施例中,在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面 开始显示的时刻;根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为;基于SDK中是否记载有所述目标应用程序的支付记录识别目标行为,识别过程简单,识别率高且成本低,可以准确检测APP是否存在绕过平台的支付功能完成支付的行为In the embodiment of the present invention, when the target application is running and the interface displayed in the foreground is a preset display interface, the target time is acquired, and the target time is the time when the interface displayed in the foreground starts to be displayed; Within a preset time period after the target moment, whether the payment record of the target application is recorded in the software development kit SDK of the target application, and identify whether the target application has the target behavior; The payment record that records the target application recognizes the target behavior, the recognition process is simple, the recognition rate is high and the cost is low, and it can accurately detect whether the APP has bypassed the payment function of the platform to complete the payment behavior
图4为实现本发明各个实施例的一种电子设备的硬件结构示意图;4 is a schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention;
该电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、处理器410、以及电源411等部件。本领域技术人员可以理解,图4中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and Power supply 411 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 4 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiment of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,处理器410,可以用于在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面开始显示的时刻;根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为。Wherein, the processor 410 may be used to obtain the target time when the target application is running and the interface displayed in the foreground is a preset display interface, where the target time is the time when the interface displayed in the foreground starts to be displayed; In a preset time period after the target moment, whether the payment record of the target application is recorded in the software development kit SDK of the target application, and identify whether the target application has a target behavior.
可选地,处理器410具体可以用于:Optionally, the processor 410 may be specifically configured to:
若所述SDK中记载有所述支付记录,识别所述目标应用程序不存在目标行为;和/或,If the payment record is recorded in the SDK, identify that the target application does not have the target behavior; and/or,
若所述SDK中未记载有所述支付记录,识别所述目标应用程序存在目标行为。If the payment record is not recorded in the SDK, it is identified that the target application has a target behavior.
可选地,处理器410还可以用于:Optionally, the processor 410 may also be used to:
在第一应用程序为所述目标应用程序的情况下,在所述第一应用程序的安装包内加入预设的SDK数据包。In the case where the first application is the target application, a preset SDK data package is added to the installation package of the first application.
可选地,射频单元401可以用于:Optionally, the radio frequency unit 401 may be used for:
在识别所述目标应用程序存在所述目标行为的情况下,上报所述目标 行为。In the case of identifying that the target application has the target behavior, report the target behavior.
需要说明的是,本实施例中上述电子设备400可以实现本发明实施例中方法实施例中的各个过程,以及达到相同的有益效果,为避免重复,此处不再赘述。It should be noted that the above-mentioned electronic device 400 in this embodiment can implement each process in the method embodiment in the embodiment of the present invention and achieve the same beneficial effects. In order to avoid repetition, details are not described herein again.
应理解的是,本发明实施例中,射频单元401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器410处理;另外,将上行的数据发送给基站。通常,射频单元401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元401还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 can be used to receive and send signals during information transmission or communication. Specifically, the downlink data from the base station is received and processed by the processor 410; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 402, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元403可以将射频单元401或网络模块402接收的或者在存储器409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元403还可以提供与电子设备400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元403包括扬声器、蜂鸣器以及受话器等。The audio output unit 403 may convert the audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output it as sound. Moreover, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic device 400 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
输入单元404用于接收音频或视频信号。输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元406上。经图形处理器4041处理后的图像帧可以存储在存储器409(或其它存储介质)中或者经由射频单元401或网络模块402进行发送。麦克风4042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元401发送到移动通信基站的格式输出。The input unit 404 is used to receive audio or video signals. The input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042. The graphics processor 4041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame can be displayed on the display unit 406. The image frame processed by the graphics processor 4041 may be stored in the memory 409 (or other storage medium) or sent via the radio frequency unit 401 or the network module 402. The microphone 4042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode for output.
电子设备400还包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板4061的亮度, 接近传感器可在电子设备400移动到耳边时,关闭显示面板4061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light. The proximity sensor can close the display panel 4061 and the display panel 4061 when the electronic device 400 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元406用于显示由用户输入的信息或提供给用户的信息。显示单元406可包括显示面板4061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板4061。The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元407可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板4071上或在触控面板4071附近的操作)。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器410,接收处理器410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板4071。除了触控面板4071,用户输入单元407还可以包括其他输入设备4072。具体地,其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 407 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 4071 or near the touch panel 4071. operate). The touch panel 4071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 410, the command sent by the processor 410 is received and executed. In addition, the touch panel 4071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may also include other input devices 4072. Specifically, other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板4071可覆盖在显示面板4061上,当触控面板4071检测到在其上或附近的触摸操作后,传送给处理器410以确定触摸事件的类型,随后处理器410根据触摸事件的类型在显示面板4061上提供相应的视觉输出。虽然在图4中,触控面板4071与显示面板4061是作为 两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板4071与显示面板4061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 4071 can cover the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it transmits it to the processor 410 to determine the type of touch event, and then the processor 410 determines the type of touch event according to the touch The type of event provides corresponding visual output on the display panel 4061. Although in FIG. 4, the touch panel 4071 and the display panel 4061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元408为外部装置与电子设备400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(Input/Output,I/O)端口、视频I/O端口、耳机端口等等。接口单元408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备400内的一个或多个元件或者可以用于在电子设备400和外部装置之间传输数据。The interface unit 408 is an interface for connecting an external device and the electronic device 400. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (Input/Output, I/O) port, video I/O port, headphone port, etc. The interface unit 408 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 400 or can be used to connect the electronic device 400 to an external device. Transfer data between devices.
存储器409可用于存储软件程序以及各种数据。存储器409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 409 can be used to store software programs and various data. The memory 409 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器410是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器409内的软件程序和/或模块,以及调用存储在存储器409内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器410可包括一个或多个处理单元;优选的,处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。The processor 410 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 409, and calls the data stored in the memory 409 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 410.
电子设备400还可以包括给各个部件供电的电源411(比如电池),优选的,电源411可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 400 may also include a power source 411 (such as a battery) for supplying power to various components. Preferably, the power source 411 may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,电子设备400包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 400 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种电子设备,包括处理器410,存储器409,存储在存储器409上并可在所述处理器410上运行的计算机程序,该计算机程序被处理器410执行时实现上述目标行为识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides an electronic device, including a processor 410, a memory 409, and a computer program stored on the memory 409 and running on the processor 410. When the computer program is executed by the processor 410, Each process of the foregoing embodiment of the target behavior recognition method is realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述目标行为识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质的示例包括非暂态计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. The technical effect, in order to avoid repetition, will not be repeated here. Wherein, examples of the computer-readable storage medium include non-transitory computer-readable storage media, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks, or CD etc.
上面参考根据本发明的实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明的各方面。应当理解,流程图和/或框图中的每个方框以及流程图和/或框图中各方框的组合可以由计算机程序指令实现。这些计算机程序指令可被提供给通用计算机、专用计算机、或其它可编程数据处理装置的处理器,以产生一种机器,使得经由计算机或其它可编程数据处理装置的处理器执行的这些指令使能对流程图和/或框图的一个或多个方框中指定的功能/动作的实现。这种处理器可以是但不限于是通用处理器、专用处理器、特殊应用处理器或者现场可编程逻辑电路。还可理解,框图和/或流程图中的每个方框以及框图和/或流程图中的方框的组合,也可以由执行指定的功能或动作的专用硬件来实现,或可由专用硬件和计算机指令的组合来实现。The various aspects of the present invention have been described above with reference to the flowcharts and/or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present invention. It should be understood that each block in the flowcharts and/or block diagrams and combinations of blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine that enables the execution of these instructions via the processor of the computer or other programmable data processing device Implementation of the functions/actions specified in one or more blocks of the flowcharts and/or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a dedicated processor, a special application processor, or a field programmable logic circuit. It can also be understood that each block in the block diagram and/or flowchart and the combination of the blocks in the block diagram and/or flowchart can also be implemented by dedicated hardware that performs specified functions or actions, or can be implemented by dedicated hardware and A combination of computer instructions.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可 以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, many forms can be made without departing from the purpose of the present invention and the scope of protection of the claims, and they all fall within the protection of the present invention.

Claims (12)

  1. 一种目标行为识别方法,应用于电子设备,所述方法包括:A target behavior recognition method, applied to an electronic device, the method including:
    在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面开始显示的时刻;In the case where the target application is running and the interface displayed in the foreground is a preset display interface, acquiring the target time, where the target time is the time when the interface displayed in the foreground starts to be displayed;
    根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为。According to whether the payment record of the target application is recorded in the software development kit SDK of the target application within a preset time period after the target moment, identify whether the target application has a target behavior.
  2. 根据权利要求1所述的目标行为识别方法,其中,所述根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为的步骤,包括:The target behavior identification method according to claim 1, wherein the target application is recorded according to whether the target application is recorded in the software development kit SDK of the target application within a preset time period after the target moment. The payment record of, the step of identifying whether there is a target behavior in the target application includes:
    若所述SDK中记载有所述支付记录,识别所述目标应用程序不存在目标行为;和/或,If the payment record is recorded in the SDK, identify that the target application does not have the target behavior; and/or,
    若所述SDK中未记载有所述支付记录,识别所述目标应用程序存在目标行为。If the payment record is not recorded in the SDK, it is identified that the target application has a target behavior.
  3. 根据权利要求1所述的目标行为识别方法,所述方法还包括:The target behavior recognition method according to claim 1, the method further comprising:
    在第一应用程序为所述目标应用程序的情况下,在所述第一应用程序的安装包内加入预设的SDK数据包。In the case where the first application is the target application, a preset SDK data package is added to the installation package of the first application.
  4. 根据权利要求1所述的目标行为识别方法,其中,所述识别所述目标应用程序是否存在目标行为的步骤之后,所述方法还包括:The target behavior identification method according to claim 1, wherein after the step of identifying whether the target application has a target behavior, the method further comprises:
    在识别所述目标应用程序存在所述目标行为的情况下,上报所述目标行为。In the case of identifying that the target application has the target behavior, report the target behavior.
  5. 一种电子设备,包括:An electronic device including:
    检测模块,用于在目标应用程序运行,且前台显示的界面为预设显示界面的情况下,获取目标时刻,所述目标时刻为所述前台显示的界面开始显示的时刻;The detection module is configured to obtain the target time when the target application is running and the interface displayed in the foreground is a preset display interface, where the target time is the time when the interface displayed in the foreground starts to be displayed;
    判断模块,用于根据自所述目标时刻之后的预设时间段内,所述目标应用程序的软件开发工具包SDK中是否记载有所述目标应用程序的支付记录,识别所述目标应用程序是否存在目标行为。The judging module is configured to identify whether the target application has a payment record recorded in the software development kit SDK of the target application within a preset time period after the target moment. There is a target behavior.
  6. 根据权利要求5所述的电子设备,其中,所述判断模块包括:The electronic device according to claim 5, wherein the judgment module comprises:
    第一判断子模块,用于若所述SDK中记载有所述支付记录,识别所述目标应用程序不存在目标行为;和/或The first judging submodule is used to identify that the target application does not have a target behavior if the payment record is recorded in the SDK; and/or
    第二判断子模块,用于若所述SDK中未记载有所述支付记录,识别所述目标应用程序存在目标行为。The second judgment sub-module is used for identifying that the target application has a target behavior if the payment record is not recorded in the SDK.
  7. 根据权利要求5所述的电子设备,还包括:The electronic device according to claim 5, further comprising:
    加入模块,用于在第一应用程序为所述目标应用程序的情况下,在所述第一应用程序的安装包内加入预设的SDK数据包。The adding module is used to add a preset SDK data package to the installation package of the first application when the first application is the target application.
  8. 根据权利要求5所述的电子设备,还包括:The electronic device according to claim 5, further comprising:
    上报模块,用于在识别所述目标应用程序存在所述目标行为的情况下,上报所述目标行为。The reporting module is configured to report the target behavior in the case of identifying that the target application has the target behavior.
  9. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至4中任一项所述的目标行为识别方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor. The computer program is executed by the processor to implement any of claims 1 to 4 One of the steps of the target behavior recognition method.
  10. 一种电子设备,被配置成用于执行如权利要求1至4中任一项所述的目标行为识别方法的步骤。An electronic device configured to execute the steps of the target behavior recognition method according to any one of claims 1 to 4.
  11. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述的目标行为识别方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the target behavior identification method according to any one of claims 1 to 4 are realized.
  12. 一种计算机程序产品,所述程序产品可被处理器执行以实现如权利要求1至4中任一项所述的目标行为识别方法的步骤。A computer program product that can be executed by a processor to implement the steps of the target behavior identification method according to any one of claims 1 to 4.
PCT/CN2021/077878 2020-03-04 2021-02-25 Target behavior identification method, and electronic device WO2021175148A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010144595.3A CN111427644B (en) 2020-03-04 2020-03-04 Target behavior identification method and electronic equipment
CN202010144595.3 2020-03-04

Publications (1)

Publication Number Publication Date
WO2021175148A1 true WO2021175148A1 (en) 2021-09-10

Family

ID=71547528

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/077878 WO2021175148A1 (en) 2020-03-04 2021-02-25 Target behavior identification method, and electronic device

Country Status (2)

Country Link
CN (1) CN111427644B (en)
WO (1) WO2021175148A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427644B (en) * 2020-03-04 2022-05-06 维沃软件技术有限公司 Target behavior identification method and electronic equipment
CN111966429B (en) * 2020-08-21 2022-07-08 支付宝(杭州)信息技术有限公司 Applet processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440574A (en) * 2013-07-29 2013-12-11 广州九游信息技术有限公司 Method, client terminal and system for processing game payment
CN108416579A (en) * 2018-02-02 2018-08-17 上海米飞网络科技有限公司 It is a kind of to apply interior intelligent payment platform and intelligent payment method
CN109801050A (en) * 2019-01-22 2019-05-24 深圳瑞银信信息技术有限公司 A kind of mobile payment SDK and method of payment for online store
CN109992472A (en) * 2019-02-25 2019-07-09 努比亚技术有限公司 A kind of interface monitoring method, terminal and computer readable storage medium
US20190251529A1 (en) * 2016-07-29 2019-08-15 Square, Inc. Reprogrammable point-of-sale transaction flows
CN111427644A (en) * 2020-03-04 2020-07-17 维沃软件技术有限公司 Target behavior identification method and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823813B (en) * 2012-11-19 2018-10-02 腾讯科技(深圳)有限公司 Electric terminal historical operation records processing method and processing device
US10083050B2 (en) * 2014-07-13 2018-09-25 Shift 6 Ltd. User interface usage simulation generation and presentation
CN106504000A (en) * 2016-10-25 2017-03-15 广州爱九游信息技术有限公司 User terminal and means of payment detection means and method
CN108108156A (en) * 2016-11-23 2018-06-01 上海冰穹网络科技有限公司 SDK Subscriber Management Systems and method
CN106600266A (en) * 2016-12-05 2017-04-26 深圳前海微众银行股份有限公司 Mobile payment method and apparatus based on SDK
CN107146082B (en) * 2017-05-27 2021-01-29 北京小米移动软件有限公司 Transaction record information acquisition method and device and computer readable storage medium
CN107357732B (en) * 2017-07-17 2020-11-13 阿里巴巴(中国)有限公司 User terminal and software development kit access state detection device and method
CN109976513B (en) * 2019-02-20 2020-03-03 方科峰 System interface design method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440574A (en) * 2013-07-29 2013-12-11 广州九游信息技术有限公司 Method, client terminal and system for processing game payment
US20190251529A1 (en) * 2016-07-29 2019-08-15 Square, Inc. Reprogrammable point-of-sale transaction flows
CN108416579A (en) * 2018-02-02 2018-08-17 上海米飞网络科技有限公司 It is a kind of to apply interior intelligent payment platform and intelligent payment method
CN109801050A (en) * 2019-01-22 2019-05-24 深圳瑞银信信息技术有限公司 A kind of mobile payment SDK and method of payment for online store
CN109992472A (en) * 2019-02-25 2019-07-09 努比亚技术有限公司 A kind of interface monitoring method, terminal and computer readable storage medium
CN111427644A (en) * 2020-03-04 2020-07-17 维沃软件技术有限公司 Target behavior identification method and electronic equipment

Also Published As

Publication number Publication date
CN111427644A (en) 2020-07-17
CN111427644B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
WO2021136159A1 (en) Screenshot method and electronic device
WO2021017763A1 (en) Transaction processing method, terminal device, and computer-readable storage medium
CN107770760A (en) A kind of method and mobile terminal of the type for identifying bluetooth equipment
WO2020186964A1 (en) Audio signal outputting method and terminal device
WO2020156123A1 (en) Information processing method and terminal device
WO2021057290A1 (en) Information control method and electronic device
WO2021083091A1 (en) Screenshot capturing method and terminal device
WO2021136138A1 (en) Information prompting method and electronic device
WO2021077908A1 (en) Parameter adjusting method and electronic device
WO2021190387A1 (en) Detection result output method, electronic device, and medium
WO2021129850A1 (en) Voice message playback method and electronic device
WO2021104251A1 (en) Control method and first electronic device
WO2021115220A1 (en) Information sharing method, electronic device and computer-readable storage medium
WO2021175148A1 (en) Target behavior identification method, and electronic device
CN109062634B (en) Application starting method and mobile terminal
WO2021104232A1 (en) Display method and electronic device
CN108196815A (en) A kind of adjusting method and mobile terminal of sound of conversing
WO2021078140A1 (en) Message interaction method and electronic device
WO2020211602A1 (en) Application control method and terminal device
WO2021190370A1 (en) Screenshot method and electronic apparatus
WO2021208893A1 (en) Audio output mode switching method and electronic device
CN108093119B (en) Strange incoming call number marking method and mobile terminal
WO2021083090A1 (en) Message sending method and mobile terminal
WO2021052333A1 (en) Message reply method, device, and mobile terminal
CN111343591B (en) Session information processing method and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21765259

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21765259

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 220223)

122 Ep: pct application non-entry in european phase

Ref document number: 21765259

Country of ref document: EP

Kind code of ref document: A1