Active component discovery method, device, storage medium and electronic device

By constructing a call graph between applications and dividing application groups, the target active components are determined, which solves the power consumption and heating problems caused by frequent activation between APPs, enables rapid positioning and control of grouping behavior between applications, and ensures the safety of terminal devices. In good running condition.

CN113791844BActive Publication Date: 2024-08-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111063674.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-10
Publication Date
2024-08-23
Estimated Expiration
2041-09-10

AI Technical Summary

Technical Problem

During the development and operation of application software, frequent APP pull-up operations lead to additional power consumption and heating problems. It is difficult to effectively locate and control grouping behavior between applications with existing technology.

Method used

By obtaining inter-application activation behavior data within a preset time period, construct an inter-application calling relationship graph, divide applications into different groups, determine the target activation component from the target application group, and narrow the scope of the target activation component. , improve efficiency and accuracy.

Benefits of technology

It realizes the rapid positioning of grouping behavior between applications, reduces power consumption and heat generation, ensures that terminal equipment runs in optimal conditions, and is suitable for rapid positioning of grouping behaviors between various applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113791844B
    Figure CN113791844B
Patent Text Reader

Abstract

The present disclosure provides a method for discovering a pull-live component, a pull-live component discovery device, a computer-readable storage medium, and an electronic device, and relates to the field of computer vision technology. The pull-live component discovery method includes: obtaining the pull-up behavior data between applications within a preset time period; constructing an inter-application call relationship graph based on the inter-application pull-up behavior data; dividing the applications in the inter-application call relationship graph into different application groups; determining a target application group from the different application groups; and determining a target pull-live component from the target application group. The present disclosure can quickly locate the group behavior between applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of application technology, and in particular to a method for discovering active components, an apparatus for discovering active components, a computer-readable storage medium, and an electronic device. Background Art

[0002] In the development and operation of application software (APP), push messages are a very important means of reaching users. Push messages can form interactions with users and also have the function of waking up the APP.

[0003] In order to increase the survival time of APPs, APPs have adopted a strategy of grouping and waving each other. That is, when one APP is opened, another APP can be pulled up, thereby achieving the purpose of activating the process and pushing messages.

[0004] However, if users frequently launch apps while using their phones, it will inevitably result in additional power consumption and heat. Summary of the invention

[0005] The present disclosure provides a method for discovering active components, an apparatus for discovering active components, a computer-readable storage medium, and an electronic device, so as to achieve the purpose of quickly locating the clustering behavior between applications.

[0006] According to the first aspect of the present disclosure, a method for discovering a pull-live component is provided, including: obtaining pull-up behavior data between applications within a preset time period; constructing a call relationship graph between applications based on the pull-up behavior data between applications; dividing the applications in the call relationship graph between applications into different application groups; determining a target application group from the different application groups; and determining a target pull-live component from the target application group.

[0007] According to a second aspect of the present disclosure, there is provided a device for discovering a pull-live component, the device comprising: a data acquisition module for acquiring pull-up behavior data between applications within a preset time period; a relationship graph determination module for constructing a call relationship graph between applications based on the pull-up behavior data between applications; an application group division module for dividing the applications in the call relationship graph between applications into different application groups; a target application group determination module for determining a target application group from different application groups; and a target pull-live component determination module for determining a target pull-live component from the target application group.

[0008] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for discovering active components according to the first aspect and possible implementation methods thereof are implemented.

[0009] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the live component discovery method of the above-mentioned first aspect and its possible implementation methods by executing the executable instructions.

[0010] The technical solution disclosed in this disclosure has the following beneficial effects:

[0011] On the one hand, by constructing a call relationship graph between applications and then dividing the applications in the call relationship graph between applications into different application groups, the target activation component can be determined only from the target application group, narrowing the scope of determining the target activation component and improving the efficiency and accuracy of determining the target activation component. On the other hand, the activation component discovery method is based on the call relationship between applications and has nothing to do with the specific activation technology. Therefore, it is applicable to activation behaviors between a variety of applications. Even if the activation process principle changes, as long as there is a pull result between applications, the target activation component can be quickly located, thereby providing a basis for management and control strategies and ensuring that terminal devices operate in a better state.

[0012] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0014] Figure 1 A schematic diagram showing a system architecture of an exemplary application environment of a method and apparatus for discovering live components in this exemplary embodiment;

[0015] Figure 2 A schematic diagram showing the structure of a computer system of an electronic device in this exemplary embodiment;

[0016] Figure 3 A flowchart of a method for discovering a live component in this exemplary embodiment is shown;

[0017] Figure 4 A schematic diagram of a calling relationship between applications in this exemplary embodiment is shown;

[0018] Figure 5 A schematic diagram of a structure for dividing applications into different application groups in this exemplary embodiment is shown;

[0019] Figure 6 A flowchart of the steps of dividing applications into different application groups in this exemplary embodiment is shown;

[0020] Figure 7 A schematic diagram showing the structure of a directed graph of inter-application call relationships in this exemplary embodiment is shown;

[0021] Figure 8 A schematic structural diagram of a pulling component discovery device according to this exemplary embodiment is shown. DETAILED DESCRIPTION

[0022] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0023] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0024] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined, so the actual execution order may change according to the actual situation. In addition, all the terms "first" and "second" below are only for the purpose of distinction and should not be used as limitations of the present disclosure.

[0025] Figure 1 A schematic diagram of the system architecture of an exemplary application environment in which a method and apparatus for discovering live components according to an embodiment of the present disclosure can be applied is shown.

[0026] like Figure 1As shown, the system architecture 100 may include one or more of terminal devices 101 and 102, a network 103 and a server 104. The network 103 is used to provide a medium for a communication link between the terminal devices 101 and 102 and the server 104. The terminal devices 101 and 102 may be various electronic devices with display screens, and various APPs or browsers may be installed on the terminal devices 101 and 102. The display screens of the terminal devices 101 and 102 may present APP interfaces or web page interfaces, etc.

[0027] Terminal devices 101 and 102 include but are not limited to portable computers, smart phones, tablet computers and other devices with display functions. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 104 may be a server cluster composed of multiple servers.

[0028] During the actual operation of the terminal devices 101 and 102, the server 104 can monitor the running status of the processes on the terminal devices 101 and 102, and obtain information related to malicious activation such as chain startup between applications.

[0029] Taking a terminal device with Android components installed as an example, the existing Android components include four common components: Activity, Service, Content Provider, and Broadcast Receiver. Taking Activity as an example, Activity is an application component that provides users with a screen for task interaction, can display some controls, and can also listen to and process user events to respond.

[0030] Usually, when applications are launched, the Activity of the launched application is transparent, and during the startup process, its Activity is also at risk of being intercepted. Therefore, detecting whether the application's Activity is transparent and whether it is intercepted during the Activity startup process is important information in determining malicious components.

[0031] It should be noted that the method for discovering active components provided in the embodiments of the present disclosure is not only applicable to the above-mentioned four commonly used components, but also to other components that can be used to be activated between applications, and the embodiments of the present disclosure do not make any special limitations on this.

[0032] The various steps of the pull-live component discovery method described below are applied to the server 104, that is, the various steps of the pull-live component discovery method are executed by the server 104. In this case, the pull-live component discovery device is set in the server 104. Of course, the pull-live component discovery device can also be directly set in the terminal devices 101 and 102 used by the user, so that these malicious pull-live components can be processed in time after discovery.

[0033] Figure 2 The schematic diagram of the structure of the computer system of the electronic device suitable for implementing the embodiment of the present disclosure is shown. In the exemplary embodiment of the present disclosure, at least the server 104 among the terminal devices 101, 102 and the server 104 can be configured as Figure 2 It should be noted that Figure 2 The computer system 200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0034] like Figure 2 As shown, the computer system 200 includes a central processing unit (CPU) 201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 202 or the program loaded from the storage part 208 to the random access memory (RAM) 203. In the RAM 203, various programs and data required for system operation are also stored. The CPU 201, the ROM 202, and the RAM 203 are connected to each other through a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.

[0035] The following components are connected to the I / O interface 205: an input section 206 including a keyboard, a mouse, etc.; an output section 207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 208 including a hard disk, etc.; and a communication section 209 including a network interface card such as a LAN card, a modem, etc. The communication section 209 performs communication processing via a network such as the Internet. A drive 210 is also connected to the I / O interface 205 as needed. A removable medium 211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 210 as needed, so that a computer program read therefrom is installed into the storage section 208 as needed.

[0036] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 209, and / or installed from a removable medium 211. When the computer program is executed by the central processing unit (CPU) 201, various functions defined in the method and apparatus of the present application are executed.

[0037] As for the component discovery solution described in the present disclosure, after obtaining the component activation related data, the terminal devices 101 and 102 pass it to the central processing unit (CPU) 201 of the server 104. The central processing unit (CPU) 201 can use the relevant data to determine the malicious activation components, thereby achieving the purpose of quickly locating the clustering behavior between applications.

[0038] Based on this, the embodiment of the present disclosure provides a method for discovering active components. The technical solution of the embodiment of the present disclosure will be described in detail below:

[0039] The method for discovering components to be activated provided in this exemplary embodiment is mainly used to determine malicious components in the process of activating applications to each other, so as to avoid power consumption and heat generation problems caused by suspending more applications in the terminal device without the user's knowledge.

[0040] Combine the following Figure 3 The method for finding a live component according to an exemplary embodiment of the present disclosure is described in detail. Figure 3 As shown, the pull-live component discovery method may include:

[0041] Step S310, obtaining the application launch behavior data within a preset time period;

[0042] Step S330, constructing a call relationship graph between applications based on the pull-up behavior data between applications;

[0043] Step S350, dividing the applications in the inter-application call relationship graph into different application groups;

[0044] Step S370, determining a target application group from different application groups;

[0045] Step S390, determining a target activation component from the target application group.

[0046] The pull-live component discovery method achieves the following technical effects: On the one hand, by constructing a call relationship graph between applications, and then dividing the applications in the call relationship graph between applications into different application groups, the target pull-live component can be determined only from the target application group, narrowing the scope of determining the target pull-live component and improving the efficiency and accuracy of determining the target pull-live component. On the other hand, the pull-live component discovery method is based on the call relationship between applications and has nothing to do with the specific pull-live technology. Therefore, it is applicable to pull-live behaviors between a variety of applications. Even if the pull-live process principle changes, as long as there is a pull-up result between applications, the target pull-live component can be quickly located, thereby providing a basis for the management and control strategy and ensuring that the terminal device operates in a better state.

[0047] The implementation process of each step is described in detail below:

[0048] In step S310, the inter-application launch behavior data within a preset time period is obtained.

[0049] In actual applications, the server or the terminal device itself can obtain the operation data of the terminal device in real time, including the application-to-application launch behavior data. After obtaining the above data, the data can be stored in a database.

[0050] In this exemplary embodiment, when it is necessary to use these data to discover active components, the inter-application pull-up behavior data within a preset time period can be directly obtained from the database. The preset time period can be flexibly set according to actual needs, for example, it can be one week, three days or one day. This exemplary embodiment does not specifically limit this.

[0051] In this exemplary embodiment, the inter-application pull-up behavior data may include: caller, callee, component, and attribute information. Among them, the component refers to the component called by the callee, and the attribute information includes the number of calls, whether the Activity is transparent, whether the Activity is intercepted during the startup process, etc. Among them, whether the pull-up event occurs can be determined by whether the Activity is transparent or whether the Activity is intercepted during the startup process. If it occurs, the caller, callee, and corresponding components involved can be determined.

[0052] In step S330, a call relationship graph between applications is constructed based on the pull-up behavior data between applications.

[0053] In this exemplary implementation, after the caller, the callee, and the corresponding components are determined, an inter-application call relationship graph between the caller and the callee may be established.

[0054] Reference Figure 4, taking 7 apps that have calling relationships with each other as an example, the calling relationship diagram between apps is explained. Figure 4 In the connection between APPs, the arrow points to the callee. Between APP1 and APP4, APP1 is the caller and APP4 is the callee. Between APP1 and APP5, there is a mutual calling relationship. APP1 will pull up APP5. In addition, after APP5 is started, it may also pull up APP1. At this time, APP1 is both the caller and the callee, and similarly, APP5 is both the caller and the callee.

[0055] In addition, in the inter-application call relationship diagram, attributes may be set for each line. For example, the attribute of a line may be the number of calls, thereby providing sufficient data support for subsequent application group division.

[0056] In this exemplary embodiment, in the process of constructing the inter-application call relationship graph, it is necessary to remove the self-calling data in the inter-application pull-up behavior data to construct a directed acyclic graph of the inter-application call relationship. Among them, the self-calling data is the situation where the application calls its own component, and its determination of mutually pulling up components belongs to interference data. Therefore, by removing the self-calling data, the existence of a loop in the constructed inter-application call relationship graph can be avoided, thereby avoiding affecting the subsequent application group division accuracy.

[0057] In step S350, the applications in the inter-application call relationship graph are divided into different application groups.

[0058] In this exemplary embodiment, after constructing a directed acyclic graph of the calling relationship between applications, the applications can be divided into different application groups using a community discovery algorithm. Figure 5 As shown, multiple applications are divided into multiple application groups 501, 502, 503, and 504, wherein one application group may include multiple applications, and the APPs in the application group may be numbered as needed.

[0059] In an optional implementation of this embodiment, refer to Figure 6 , dividing the applications in the inter-application call relationship graph into different application groups may include the following steps:

[0060] Step S610: Allocate an application group to each application.

[0061] Initially, each application group contains only one application, which is a conceptual division.

[0062] Step S630 , classify the applications into application groups where neighboring applications are located, and calculate the modularity of the application groups where neighboring applications are located by taking the number of calls between applications as weights.

[0063] Modularity is an indicator used to measure the division of communities in a network. Its physical meaning is the difference between the sum of the weights of the connections between nodes in the network and the sum of the weights of the connections in a random situation. The greater the modularity, the greater the sum of the weights of the edges in the area where the application group is divided, and the smaller the weight of the connection with the outside world. The application and the adjacent application here not only mean that they are adjacent in location, but also that there is a connection between the two applications.

[0064] In this exemplary implementation, the attribute of the connection, that is, the number of calls, may be used as the weight of the connection to calculate the modularity of the application group to which the neighboring application belongs.

[0065] Step S650: group the applications into an application group where the neighboring application with the largest modularity is located.

[0066] Usually, there are multiple neighboring applications around an application. Therefore, the modularity of the application group where the multiple neighboring applications are located can be calculated, and finally the application is divided into the application group where the neighboring application with the largest modularity is located.

[0067] Step S670: divide each application into a neighboring application group with the largest modularity until the modularity of the application group no longer increases.

[0068] After a certain application is divided, the next application can be divided, that is, the next application is divided into the application group of the neighboring application with the largest modularity according to the above steps S630 and S650. The above operations are repeated until the modularity of all application groups does not increase, at which point the division of application groups is completed.

[0069] Step S370: determine a target application group from different application groups.

[0070] In this exemplary embodiment, after completing the division of application groups, it is necessary to determine a target application group from different application groups. For different problems, the target application group to be obtained is different. Taking malicious activation between applications as an example, the target application group is the malicious activation application group.

[0071] In the process of screening malicious application groups, the interception rate counted by the original background interception strategy or the chain startup interception strategy held by the manufacturer can be used as a judgment standard, and the application group with an interception rate greater than the preset threshold can be determined as the target application group.

[0072] In practical applications, the preset threshold can be determined according to the actual interception rate. For example, the preset threshold can be any value between 0.8 and 0.9. This exemplary embodiment does not specifically limit the specific value of the interception rate.

[0073] Step S390, determining a target activation component from the target application group.

[0074] In this exemplary embodiment, since the target application group is an application group with an interception rate greater than a preset threshold, there are many pull-activation processes between the applications. Therefore, after determining the target application group, the target pull-activation component can be directly determined from the target application group.

[0075] In an optional implementation of this embodiment, the target pull-live component may be a malicious pull-live component, and determining the malicious pull-live component is to determine the component with more pull-live processes. The component here refers to the component of the called party.

[0076] Specifically, in the process of determining the target activation component, a directed graph of inter-application call relationships can be constructed based on the call relationships between applications in the target application group; and then the target activation component can be determined based on the directed graph of inter-application call relationships.

[0077] Reference Figure 7 , shows a schematic diagram of the structure of a directed graph of inter-application call relationships in this exemplary embodiment, which is a directed graph of call relationships between the caller, the component, and the callee, wherein the component is the component of the callee, and according to the definition of the component, it can be a component shared between applications, or a component customized by a certain application, which is not specifically limited in this exemplary embodiment. Figure 7 In the figure, APP1-APP5 are callers, Comp1-Comp3 are components, APP6-APP9 are callees, and the connecting lines with arrows represent the calling relationships.

[0078] According to the above call relationship, the output degree of each component can be determined, so that the component with an output degree greater than a preset value can be determined as the target activation component. Among them, the output degree includes in-degree and out-degree. In a directed graph, the number of arrows pointing to the component connection line is the in-degree of the component, and the number of arrows leaving the component is the out-degree of the component. The sum of the in-degree and out-degree is the output degree of the component.

[0079] According to the above method, refer to Figure 7 , the output degree of component Comp1 is determined to be 8, the output degree of component Comp2 is determined to be 2, and the output degree of component Comp3 is determined to be 3.

[0080] After determining the output degree of the component, the component whose output degree is greater than the preset value can be determined as the target activation component. The size of the preset value can be determined according to the actual situation. For example, the preset value can be any value between 4 and 5. According to the preset value, the above-mentioned component Comp1 is the target activation component to be determined. The size of the preset value can also be adjusted according to the actual situation, and the exemplary embodiment of the present disclosure does not make any special limitation on this.

[0081] In the process of actually determining the output degree of a component, the above-mentioned directed graph may not be used, and the output degree may be directly calculated based on data statistics to determine the target activation component required. The output degree here is the sum of the number of callers and the number of callees related to the component. Finally, the component with an output degree greater than a preset value can be determined as the target activation component.

[0082] It should be noted that the live component discovery method for determining the target live component provided in this exemplary embodiment can not only be used to determine malicious live components, but also can determine other types of components as needed. As long as they can be determined using the live component discovery method provided in this exemplary embodiment, they all fall within the scope of protection of this application.

[0083] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0084] The exemplary embodiment of the present disclosure also provides a pull-live component discovery device. Figure 8 As shown, the pull-live component discovery device 800 may include:

[0085] The data acquisition module 810 is used to acquire the application launch behavior data within a preset time period;

[0086] A relationship graph determination module 830 is used to construct a call relationship graph between applications based on the pull-up behavior data between applications;

[0087] An application group division module 850 is used to divide the applications in the inter-application call relationship graph into different application groups;

[0088] A target application group determination module 870, configured to determine a target application group from different application groups;

[0089] The target activation component determination module 890 is used to determine the target activation component from the target application group.

[0090] The specific details of each part of the above device have been described in detail in the implementation method part, so they will not be repeated here.

[0091] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0092] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0093] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0094] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0095] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0096] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for discovering active components, characterized in that: include: Get the application launch behavior data within a preset time period; Constructing a call relationship graph between applications based on the pull-up behavior data between applications; Dividing the applications in the inter-application call relationship graph into different application groups; Determining a target application group from the different application groups; Determining a target activation component from the target application group; Determining the target activation component from the target application group includes: constructing a directed graph of calling relationships among callers, components and callees according to calling relationships among applications in the target application group; determining the component with an output degree greater than a preset value as the target activation component according to the directed graph of calling relationships; Dividing the applications in the inter-application call relationship diagram into different application groups includes: Allocating an application group to each of the applications; The application is divided into an application group where the neighboring application is located, and the modularity of the application group where the neighboring application is located is calculated using the number of calls between applications as a weight; the modularity refers to an indicator used to measure the community division in the application call relationship graph, which represents the difference between the sum of the weights of the connections between the nodes in the application call relationship graph and the sum of the weights of the connections in a random situation; Classifying the application into the application group where the neighboring application with the largest modularity is located; Each of the applications is divided into a neighboring application group with the largest modularity until the modularity of all application groups no longer increases.

2. The discovery method according to claim 1, characterized in that: According to the inter-application pull-up behavior data, constructing an inter-application call relationship graph includes: The self-calling data in the inter-application pull-up behavior data is removed, and a directed acyclic graph of the inter-application calling relationship is constructed.

3. The discovery method according to claim 1 or 2, characterized in that: Determining a target application group from the different application groups includes: The application group whose interception rate is greater than a preset threshold is determined as the target application group.

4. A live component discovery device, characterized in that: The device comprises: A data acquisition module is used to acquire the application launch behavior data within a preset time period; A relationship graph determination module, used to construct a call relationship graph between applications based on the pull-up behavior data between the applications; An application group division module, used to divide the applications in the inter-application call relationship graph into different application groups; A target application group determination module, used to determine a target application group from the different application groups; A target activation component determination module is used to determine a target activation component from the target application group; the target activation component determination module is configured to: construct a directed graph of call relationships between callers, components and callees based on the call relationships between applications in the target application group; and determine the component with an output degree greater than a preset value as the target activation component based on the directed graph of call relationships; The application group partitioning module is configured as follows: Allocating an application group to each of the applications; The application is divided into an application group where the neighboring application is located, and the modularity of the application group where the neighboring application is located is calculated using the number of calls between applications as a weight; the modularity refers to an indicator used to measure the community division in the application call relationship graph, which represents the difference between the sum of the weights of the connections between the nodes in the application call relationship graph and the sum of the weights of the connections in a random situation; Classifying the application into the application group where the neighboring application with the largest modularity is located; Each of the applications is divided into a neighboring application group with the largest modularity until the modularity of all application groups no longer increases.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for discovering live components according to any one of claims 1 to 3 is implemented.

6. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the pull-live component discovery method described in any one of claims 1 to 3 by executing the executable instructions.