Application management and control method and apparatus, electronic device and computer readable storage medium
Through intelligent management and control methods, we analyze the correlation and frequency of use between applications and decide whether to launch the target application. This solves the problem of device lagging and power consumption caused by chain startup of applications, and achieves resource saving and operational efficiency improvement.
Patent Information
- Application Number
- PCT/CN2024/084068
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2024-03-27
- Publication Date
- 2024-10-03
AI Technical Summary
With the increase of applications in electronic devices, chain startup between applications leads to too many processes, occupying memory and performance resources, causing device freezes and power consumption problems.
Through intelligent management and control methods, we analyze the correlation strength and historical usage frequency between applications based on the user's usage habits and scenarios, and decide whether to launch the target application to avoid unnecessary application startup.
It effectively avoids chain startup of malicious applications, saves computing resources, reduces device power consumption, and improves operating efficiency.
Smart Images

Figure CN2024084068_03102024_PF_FP_ABST
Abstract
Description
Application management method, device, electronic device and computer-readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 27, 2023, with application number 202310336825.X and application name “Application Management Method, Device, Electronic Device and Computer-readable Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to an application management method, device, electronic device, and computer-readable storage medium. Background Art
[0003] The system installed in the electronic device needs to run applications to perform corresponding functions. However, as more and more applications are installed in the electronic device, some applications will wake up each other, thereby generating corresponding processes in the background. These processes will occupy the memory space of the electronic device and the performance resources of the electronic device, causing the electronic device to freeze and consume power during operation. Technical Solutions
[0004] The present invention provides an application management method, device, electronic device, and computer-readable storage medium. The application management method can intelligently manage the target application to be launched by the current application based on the user's usage habits and usage scenarios.
[0005] In a first aspect, an embodiment of the present application provides an application management method, including:
[0006] When receiving a start request from the first application to start the second application, determining first application information of the first application and second application information of the second application;
[0007] determining, based on the first application information and the second application information, the strength of the association between the first application and the second application;
[0008] If the correlation strength is less than a preset strength threshold, obtaining historical usage scenario information of the second application and current usage scenario information of the electronic device;
[0009] Determine whether to start the second application according to the historical usage scenario information and the current usage scenario information.
[0010] In a second aspect, an embodiment of the present application provides an application management and control device, including:
[0011] an information determination module, configured to determine first application information of the first application and second application information of the second application upon receiving a start request from the first application to start the second application;
[0012] a correlation determination module, configured to determine the correlation strength between the first application and the second application based on the first application information and the second application information;
[0013] an acquisition module, configured to acquire historical usage scenario information of the second application and current usage scenario information of the electronic device if the correlation strength is less than a preset strength threshold;
[0014] The control module is used to determine whether to start the second application according to the historical usage scenario information and the current usage scenario information.
[0015] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory storing executable program code and a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the application management method provided by the embodiment of the present application.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores multiple instructions, and the instructions are suitable for a processor to load to execute the application management method provided by the embodiment of the present application.
[0017] In an embodiment of the present application, when an electronic device receives a request from a first application to launch a second application, it determines the first application information of the first application and the second application information of the second application; determines the strength of the association between the first application and the second application based on the first application information and the second application information; if the strength of the association is less than a preset strength threshold, it obtains the historical usage scenario information of the second application and the current usage scenario information of the electronic device; and determines whether to launch the second application based on the historical usage scenario information and the current usage scenario information. Thus, when the first application is about to launch the second application, it determines whether to launch the second application based on the historical usage scenario information of the second application and the current usage scenario information of the electronic device, thereby intelligently controlling whether the second application is launched. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0019] FIG1 is a first flow chart of the application management method provided in an embodiment of the present application.
[0020] FIG2 is a second flow chart of the application management method provided in an embodiment of the present application.
[0021] FIG3 is a schematic diagram of the structure of an application control device provided in an embodiment of the present application.
[0022] FIG4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
[0023] Implementation Methods of the Application
[0024] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0025] The system installed in the electronic device needs to run applications to perform corresponding functions. However, as more and more applications are installed in the electronic device, some applications will wake up each other, thereby generating corresponding processes in the background. These processes will occupy the memory space of the electronic device and the performance resources of the electronic device, causing the electronic device to freeze and consume power during operation.
[0026] For example, there will be a chain startup effect between some applications. Application A starts application B, and application B starts application C. This will cause disorderly startup between applications, resulting in more processes in electronic devices, which will cause electronic devices to consume power faster and even freeze.
[0027] To solve the above technical problems, embodiments of the present application provide an application management method, device, electronic device, and computer-readable storage medium. The application management method can intelligently manage the target application to be launched by the current application based on the user's usage habits and usage scenarios.
[0028] Please refer to Figure 1, which is a schematic diagram of the first process of the application management method provided by an embodiment of the present application. The application management method may include the following steps:
[0029] 110. When a start request for the first application to start the second application is received, determine first application information of the first application and second application information of the second application.
[0030] In some implementations, some applications often exist in the background after being started. If the user does not exit the application, the application will attempt to request to wake up some applications in the background. Such applications are first applications. In other words, the first application can be a background application.
[0031] When the first application is a background application and the electronic device receives a start request from the first application to start the second application, the electronic device can obtain first application information of the first application and second application information of the second application.
[0032] For example, the electronic device can determine the application information of the application from the information generated when the application is installed, such as the application information including the package name, application type, application developer, etc. The application information can also include the application usage status information of the application, including foreground applications, background applications, dormant applications, etc. The first application information and the second application information mentioned above can both include one or more of the above application information.
[0033] In some implementations, when the first application and the second application are installed, the electronic device may collect application information, and when the applications installed on the electronic device are running, the application information of the applications may also be collected.
[0034] In some embodiments, the electronic device can obtain application information of an application by determining the process started by the application. For example, the electronic device can obtain first process information of a first process of a first application that issues a start request, and second process information of a second process of a second application that needs to be started, where the first application information includes the first process information, and the second application information includes the second process information.
[0035] 120. Determine the strength of the association between the first application and the second application based on the first application information and the second application information.
[0036] In some implementations, the electronic device may perform a correlation analysis on the first process information and the second process information to determine the strength of the correlation between the first application and the second application.
[0037] For example, based on the first process information, it can be determined that the first process is a process that is highly correlated with other applications, the first process is a process with system-level priority, and the first process can achieve basic functions by calling processes of other applications. For example, the first process can be an Activity component process, where Activity is an application component that provides a screen that users can use to interact in order to complete a task. All operations in Activity are closely related to the user. It is a component responsible for interacting with the user and can display specified controls through setContentView(View). In an Android application, an Activity is usually a separate screen that can display some controls and can also listen to and process user events in response. Activities communicate with each other through Intent.
[0038] For example, the first process is the process corresponding to the ContentProvider component. The ContentProvider component is used for data exchange and sharing between processes, that is, cross-process communication, such as using the binder mechanism. In this case, the first process also has a higher priority.
[0039] At this time, the first process is a process with a higher priority. In order to facilitate the call of other applications, the first process and the second process often have a higher correlation strength, and the first application and the second application also have a higher correlation strength.
[0040] In some implementations, if the first process is a background process that is constantly kept alive, such as chat software, which often maintains a constant background activity to enable real-time message reception, and if the second process is a file management application process, which often stores files in chat scenarios, then the correlation between the first and second processes is determined to be strong. Therefore, the correlation between the first and second applications is strong.
[0041] In some embodiments, if the first process is a dormant background process, such as a reading application, and if the second process is a payment application, the strength of the association between the first process and the second process is low. Therefore, the strength of the association between the first application and the second application is low.
[0042] In other words, the strength of the association between applications is often determined based on process information. Process information can reflect in real time the tasks that the applications want to perform during actual operation, thereby more accurately judging the strength of the association between applications.
[0043] In some implementations, a neural network model may be pre-set, and the neural network model may be capable of judging the strength of the association between one application and another application based on process information between the two processes.
[0044] For example, the neural network model outputs a score value. The higher the score value, the stronger the correlation between one application and another application.
[0045] In some embodiments, those skilled in the art may also collect a large amount of process information of different applications, and then analyze and summarize the process information to determine the correlation strength between processes, and then use the correlation strength as the correlation strength between applications.
[0046] 130. If the correlation strength is less than a preset strength threshold, obtain historical usage scenario information of the second application and current usage scenario information of the electronic device.
[0047] In some implementations, a preset strength threshold for the strength of the association can be pre-set. When the strength of the association is greater than or equal to the preset strength threshold, it indicates that the first application and the second application are highly associated. In this case, the electronic device can allow the first application to launch the second application in the background, thereby ensuring that the user can use the applications normally. For example, if the first application is a chat application and the second application is a file management application, after the first application downloads a file, it can launch the second application in the background to open or save the file.
[0048] In some embodiments, when the strength of the association between the first application and the second application is less than a preset strength threshold, historical usage scenario information of the second application and current usage scenario information of the electronic device are obtained.
[0049] For example, the historical usage frequency and number of times the second application was used within a preset historical time period are obtained. The historical usage scenario information includes the historical usage frequency, historical usage number, and historical usage time. The preset historical time period may be a time period before the current time. The historical usage frequency of the second application is the percentage of the usage time of the second application to the usage time of all applications within the preset historical time period. The historical usage number of the second application is the number of times the user opened the application within the preset historical time period.
[0050] In some implementations, the electronic device may obtain the current location and current time of the electronic device, and the current usage scenario information includes the current location and current time.
[0051] 140. Determine whether to start a second application based on the historical usage scenario information and the current usage scenario information.
[0052] In some implementations, the electronic device may determine whether to launch the second application based on historical usage time and historical usage location, as well as the current location and current time.
[0053] For example, the electronic device can determine the time period when the second application is most frequently used within a preset historical time period based on the historical usage time, and determine the most frequently used location based on the historical usage location. If the current location matches the most frequently used location and the current time is within the most frequently used time period of the day, it is determined that the first application starts the second application.
[0054] For another example, if the current location does not match the most frequently used location, but the current time is within the most frequently used time period of the day, it is determined that the first application starts the second application.
[0055] For another example, if the current location matches the most frequently used location, but the current time is not within the most frequently used time period of the day, it is determined that the first application starts the second application.
[0056] For another example, if the current location does not match the most frequently used location, but the current time is not within the most frequently used time period of the day, it is determined that the first application does not start the second application.
[0057] In some embodiments, the electronic device can construct a first usage habit vector based on historical usage time and historical usage location; construct a second usage habit vector based on current time and current location; and determine whether to start the second application based on the first usage habit vector and the second usage habit vector.
[0058] For example, the electronic device can take time and location as two elements to construct a vector, and then comprehensively consider the two dimensions of time and location, so as to construct a first usage habit vector based on historical usage time and historical usage location, and construct a second usage habit vector based on current time and current location.
[0059] Specifically, the electronic device may pre-set a neural network model, which may input time information and location information and then output a corresponding vector.
[0060] After the electronic device obtains the first habit vector and the second habit vector, it can be configured to calculate an error value between the first habit vector and the second habit vector, such as calculating the difference in modulus between the first habit vector and the second habit vector. If the error value is within a preset error range, the first application is determined to be able to launch the second application. Conversely, if the error value is outside the preset error range, the first application is determined to be unable to launch the second application.
[0061] In some embodiments, the computer device may input the first habit vector into a similarity calculation model, and then calculate a loss value between the first habit vector and the second habit vector. If the loss value is within a preset loss value range, it indicates that the first application can launch the second application. If the loss value is outside the preset loss value range, it indicates that the first application cannot launch the second application.
[0062] Through the above approach, the electronic device can determine whether to launch the second application based on historical usage scenario information and current usage scenario information, thereby achieving intelligent control over whether the second application is launched. This prevents the first application from arbitrarily launching the second application, thereby preventing malicious applications from chaining multiple applications, thereby saving the electronic device's computing resources and reducing the electronic device's power consumption.
[0063] In an embodiment of the present application, when an electronic device receives a request from a first application to launch a second application, it determines the first application information of the first application and the second application information of the second application; determines the strength of the association between the first application and the second application based on the first application information and the second application information; if the strength of the association is less than a preset strength threshold, it obtains the historical usage scenario information of the second application and the current usage scenario information of the electronic device; and determines whether to launch the second application based on the historical usage scenario information and the current usage scenario information. Thus, when the first application is about to launch the second application, it determines whether to launch the second application based on the historical usage scenario information of the second application and the current usage scenario information of the electronic device, thereby intelligently controlling whether the second application is launched.
[0064] For a more detailed understanding of the application management method provided in the embodiment of the present application, please continue to refer to Figure 2, which is a second flow chart of the application management method provided in the embodiment of the present application. The application management method may include the following steps:
[0065] 201. When receiving a start request from a first application to start a second application, determine whether the first application is a background application.
[0066] In some implementations, some applications often exist in the background after being launched. If the user does not exit the application, the application will attempt to request to wake up other applications in the background. When an electronic device receives a request from a first application to launch a second application, it determines whether the first application is a background application. For example, it determines whether the first application is a foreground application or a background application based on the first application's process.
[0067] If the first application is the foreground application, the electronic device may generate a pop-up window to remind the user whether to start the second application, and the electronic device decides whether to start the second application based on the user's selection.
[0068] Alternatively, if the first application is the foreground application, the electronic device can directly start the second application according to the start request.
[0069] In some implementations, when receiving a launch request from a first application to launch a second application, the electronic device may determine whether the second application has already been launched. If the second application has already been launched, the electronic device may directly allow the first application to launch the second application.
[0070] 202. If the first application is a background application, determine first application information of the first application and second application information of the second application.
[0071] When the first application is a background application and the electronic device receives a start request from the first application to start the second application, the electronic device can obtain first application information of the first application and second application information of the second application.
[0072] For example, the electronic device can determine the application information of the application from the information generated when the application is installed, such as the application information including the package name, application type, application developer, etc. The application information can also include the application usage status information of the application, including foreground applications, background applications, dormant applications, etc. The first application information and the second application information mentioned above can both include one or more of the above application information.
[0073] In some implementations, when the first application and the second application are installed, the electronic device may collect application information, and when the applications installed on the electronic device are running, the application information of the applications may also be collected.
[0074] 203. Obtain first process information of a first process of which a first application issues a start request, and second process information of a second process of a second application that needs to be invoked, where the first application information includes the first process information, and the second application information includes the second process information.
[0075] In some embodiments, the electronic device can obtain application information of an application by determining the process started by the application. For example, the electronic device can obtain first process information of a first process of a first application that issues a start request, and second process information of a second process of a second application that needs to be started, where the first application information includes the first process information, and the second application information includes the second process information.
[0076] The process information may include the priority of the process. For example, the priority of the process of the system application is higher, while the priority of the process of the third-party application is lower than that of the system process.
[0077] 204. Perform a correlation analysis on the first process information and the second process information to determine the correlation strength between the first application and the second application.
[0078] In some implementations, the electronic device may perform a correlation analysis on the first process information and the second process information to determine the strength of the correlation between the first application and the second application.
[0079] For example, based on the first process information, it can be determined that the first process is a process that is highly correlated with other applications, the first process is a process with system-level priority, and the first process can achieve basic functions by calling processes of other applications. For example, the first process can be an Activity component process, where Activity is an application component that provides a screen that users can use to interact in order to complete a task. All operations in Activity are closely related to the user. It is a component responsible for interacting with the user and can display specified controls through setContentView(View). In an Android application, an Activity is usually a separate screen that can display some controls and listen to and process user events in response. Activities communicate with each other through Intent.
[0080] For example, the first process is the process corresponding to the ContentProvider component. The ContentProvider component is used for data exchange and sharing between processes, that is, cross-process communication, such as using the binder mechanism. In this case, the first process also has a higher priority.
[0081] At this time, the first process is a process with a higher priority. In order to facilitate the call of other applications, the first process and the second process often have a higher correlation strength, and the first application and the second application also have a higher correlation strength.
[0082] In some implementations, if the first process is a background process that is constantly kept alive, such as chat software, which often maintains a constant background activity to enable real-time message reception, and if the second process is a file management application process, which often stores files in chat scenarios, then the correlation between the first and second processes is determined to be strong. Therefore, the correlation between the first and second applications is strong.
[0083] In some embodiments, if the first process is a dormant background process, such as a reading application, and if the second process is a payment application, the strength of the association between the first process and the second process is low. Therefore, the strength of the association between the first application and the second application is low.
[0084] In other words, the strength of the association between applications is often determined based on process information. Process information can reflect in real time the tasks that the applications want to perform during actual operation, thereby more accurately judging the strength of the association between applications.
[0085] In some implementations, a neural network model may be pre-set, and the neural network model may be capable of judging the strength of the association between one application and another application based on process information between the two processes.
[0086] For example, the neural network model outputs a score value. The higher the score value, the stronger the correlation between one application and another application.
[0087] In some embodiments, those skilled in the art may also collect a large amount of process information of different applications, and then analyze and summarize the process information to determine the correlation strength between processes, and then use the correlation strength as the correlation strength between applications.
[0088] In some embodiments, the electronic device may determine a first priority of the first process based on the first process information, and determine a second priority of the second process based on the second process information; and determine the association strength based on the first priority and the second priority.
[0089] For example, an electronic device can pre-assign priorities to different application processes. When a first application needs to start a second application, the electronic device can multiply the first priority of the first process by the second priority of the second process to obtain a calculation result. This calculation result is the strength of association between the first application and the second application.
[0090] 205. If the correlation strength is less than the preset strength threshold, obtain the historical usage frequency and historical usage count of the second application within the preset historical time period, and the historical usage scenario information includes the historical usage frequency and historical usage count; obtain the current location and current time of the electronic device, and the current usage scenario information includes the current location and current time.
[0091] In some implementations, a preset strength threshold for the strength of the association can be pre-set. When the strength of the association is greater than or equal to the preset strength threshold, it indicates that the first application and the second application are highly associated. In this case, the electronic device can allow the first application to launch the second application in the background, thereby ensuring that the user can use the applications normally. For example, if the first application is a chat application and the second application is a file management application, after the first application downloads a file, it can launch the second application in the background to open or save the file.
[0092] In some embodiments, when the strength of the association between the first application and the second application is less than a preset strength threshold, the historical usage frequency and historical usage count of the second application within a preset historical time period are obtained, and the historical usage scenario information includes the historical usage frequency and historical usage count; the current location and current time of the electronic device are obtained, and the current usage scenario information includes the current location and current time.
[0093] For example, the historical usage frequency and number of times the second application was used within a preset historical time period are obtained. The historical usage scenario information includes the historical usage frequency, historical usage number, and historical usage time. The preset historical time period may be a time period before the current time. The historical usage frequency of the second application is the percentage of the usage time of the second application to the usage time of all applications within the preset historical time period. The historical usage number of the second application is the number of times the user opened the application within the preset historical time period.
[0094] In some implementations, the electronic device may obtain the current location and current time of the electronic device, and the current usage scenario information includes the current location and current time.
[0095] In some embodiments, if the historical usage frequency is higher than the preset usage frequency, it is determined whether the historical usage count is higher than the preset usage count. If the historical usage count is higher than the preset usage count, the historical usage time and historical usage location of the second application are determined.
[0096] 206. Determine whether to start a second application based on the historical usage time and historical usage location, as well as the current location and current time.
[0097] In some implementations, the electronic device may determine whether to launch the second application based on historical usage time and historical usage location, as well as the current location and current time.
[0098] For example, the electronic device can determine the time period when the second application is most frequently used within a preset historical time period based on the historical usage time, and determine the most frequently used location based on the historical usage location. If the current location matches the most frequently used location and the current time is within the most frequently used time period of the day, it is determined that the first application starts the second application.
[0099] For another example, if the current location does not match the most frequently used location, but the current time is within the most frequently used time period of the day, it is determined that the first application starts the second application.
[0100] For another example, if the current location matches the most frequently used location, but the current time is not within the most frequently used time period of the day, it is determined that the first application starts the second application.
[0101] For another example, if the current location does not match the most frequently used location, but the current time is not within the most frequently used time period of the day, it is determined that the first application does not start the second application.
[0102] In some embodiments, the electronic device can construct a first usage habit vector based on historical usage time and historical usage location; construct a second usage habit vector based on current time and current location; and determine whether to start the second application based on the first usage habit vector and the second usage habit vector.
[0103] For example, the electronic device can take time and location as two elements to construct a vector, and then comprehensively consider the two dimensions of time and location, so as to construct a first usage habit vector based on historical usage time and historical usage location, and construct a second usage habit vector based on current time and current location.
[0104] Specifically, the electronic device may pre-set a neural network model, which may input time information and location information and then output a corresponding vector.
[0105] After the electronic device obtains the first habit vector and the second habit vector, it can be configured to calculate an error value between the first habit vector and the second habit vector, such as calculating the difference in modulus between the first habit vector and the second habit vector. If the error value is within a preset error range, the first application is determined to be able to launch the second application. Conversely, if the error value is outside the preset error range, the first application is determined to be unable to launch the second application.
[0106] In some embodiments, the computer device may input the first habit vector into a similarity calculation model, and then calculate a loss value between the first habit vector and the second habit vector. If the loss value is within a preset loss value range, it indicates that the first application can launch the second application. If the loss value is outside the preset loss value range, it indicates that the first application cannot launch the second application.
[0107] Through the above approach, the electronic device can determine whether to launch the second application based on historical usage scenario information and current usage scenario information, thereby achieving intelligent control over whether the second application is launched. This prevents the first application from arbitrarily launching the second application, thereby preventing malicious applications from chaining multiple applications, thereby saving the electronic device's computing resources and reducing the electronic device's power consumption.
[0108] In an embodiment of the present application, when an electronic device receives a start request from a first application to start a second application, it determines whether the first application is a background application. If the first application is a background application, the first application information of the first application and the second application information of the second application are determined. The first process information of the first process that issues the start request of the first application and the second process information of the second application that needs to be awakened are obtained, the first application information includes the first process information, and the second application information includes the second process information. A correlation analysis is performed on the first process information and the second process information to determine the strength of the correlation between the first application and the second application. If the correlation strength is less than a preset strength threshold, the historical usage frequency and historical usage count of the second application within a preset historical time period are obtained, and the historical usage scenario information includes the historical usage frequency and historical usage count; the current location and current time of the electronic device are obtained, and the current usage scenario information includes the current location and current time. Based on the historical usage time and historical usage location, as well as the current location and current time, it is determined whether to start the second application. In this way, whether to start the second application can be intelligently controlled based on the user's application usage habits.
[0109] Please refer to Figure 3, which is a schematic diagram of the structure of the application management and control device provided in an embodiment of the present application. The application management and control device 300 may include:
[0110] An information determination module 310 is configured to determine first application information of the first application and second application information of the second application when receiving a start request from the first application to start the second application;
[0111] A correlation determination module 320, configured to determine the correlation strength between the first application and the second application based on the first application information and the second application information;
[0112] an acquisition module 330 for acquiring historical usage scenario information of the second application and current usage scenario information of the electronic device if the correlation strength is less than a preset strength threshold;
[0113] The control module 340 is configured to determine whether to start the second application based on the historical usage scenario information and the current usage scenario information.
[0114] In some embodiments, the information determination module 310 is configured to determine whether the first application is a background application;
[0115] If the first application is a background application, first application information of the first application and second application information of the second application are determined.
[0116] In some embodiments, the relevance determination module 320 is configured to obtain first process information of a first process of a first application that issues a start request, and second process information of a second process of a second application that needs to be invoked, where the first application information includes the first process information, and the second application information includes the second process information;
[0117] A correlation analysis is performed on the first process information and the second process information to determine the correlation strength between the first application and the second application.
[0118] In some embodiments, the relevance determination module 320 is configured to determine a first priority of the first process based on the first process information, and to determine a second priority of the second process based on the second process information;
[0119] The strength of association is determined based on the first priority and the second priority.
[0120] In some embodiments, the acquisition module 330 is configured to acquire a historical usage frequency and a historical usage count of the second application within a preset historical time period, where the historical usage scenario information includes the historical usage frequency and the historical usage count;
[0121] Obtain the current location and current time of the electronic device, where the current usage scenario information includes the current location and current time.
[0122] In some embodiments, the acquisition module 330 is configured to determine whether the historical usage count is higher than a preset usage count if the historical usage frequency is higher than a preset usage frequency;
[0123] If the historical usage count is higher than the preset usage count, determining the historical usage time and historical usage location of the second application;
[0124] In some implementations, the control module 340 is configured to determine whether to start the second application based on historical usage time and historical usage location, as well as the current location and current time.
[0125] In some embodiments, the control module 340 is configured to construct a first usage habit vector based on historical usage time and historical usage location;
[0126] Constructing a second usage habit vector based on the current time and current location;
[0127] It is determined whether to start the second application according to the first usage habit vector and the second usage habit vector.
[0128] In an embodiment of the present application, when an application control device receives a start request from a first application to start a second application, it determines the first application information of the first application and the second application information of the second application; determines the strength of the association between the first application and the second application based on the first application information and the second application information; if the strength of the association is less than a preset strength threshold, it obtains the historical usage scenario information of the second application and the current usage scenario information of the electronic device; and determines whether to start the second application based on the historical usage scenario information and the current usage scenario information. Thus, when the first application wants to start the second application, it determines whether to start the second application based on the historical usage scenario information of the second application and the current usage scenario information of the electronic device, thereby intelligently controlling whether the second application is started.
[0129] Accordingly, an embodiment of the present application also provides an electronic device, which may be a terminal or a server, and the terminal may be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA). As shown in Figure 4, Figure 4 is a structural diagram of an electronic device provided in an embodiment of the present application. The electronic device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0130] The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device 400. By running or loading software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, it executes various functions of the electronic device 400 and processes data, thereby monitoring the electronic device 400 as a whole.
[0131] In the embodiment of the present application, the processor 401 in the electronic device 400 loads instructions corresponding to one or more application processes into the memory 402 according to the following steps, and the processor 401 runs the application stored in the memory 402 to implement various functions:
[0132] When receiving a start request from the first application to start the second application, determining first application information of the first application and second application information of the second application;
[0133] determining, based on the first application information and the second application information, the strength of the association between the first application and the second application;
[0134] If the correlation strength is less than a preset strength threshold, obtaining historical usage scenario information of the second application and current usage scenario information of the electronic device;
[0135] Determine whether to start the second application according to the historical usage scenario information and the current usage scenario information.
[0136] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0137] Optionally, as shown in FIG4 , electronic device 400 further includes: a touch screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. Processor 401 is electrically connected to touch screen 403, radio frequency circuit 404, audio circuit 405, input unit 406, and power supply 407, respectively. Those skilled in the art will appreciate that the electronic device structure shown in FIG4 does not limit the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0138] The touch display screen 403 can be used for displaying a graphical user interface and receiving an operation instruction generated by the user acting on the graphical user interface. The touch display screen 403 can include a display panel and a touch panel. Among them, the display panel can be used for displaying information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, a liquid crystal display (LCD), an organic light emitting diode (OLED, Organic Light-Emitting Diode) and the like can be used to configure the display panel. The touch panel can be used for collecting the user's touch operation on or near it (such as the user uses any suitable object or accessory such as a finger, a stylus on the touch panel or near the touch panel) and generates corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, 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 the touch point coordinates, and then sends it to the processor 401, and can receive the command sent by the processor 401 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 401 to determine the type of touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 403 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 403 can also be used as part of the input unit 406 to realize the input function.
[0139] The radio frequency circuit 404 may be used to transmit and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to transmit and receive signals with the network device or other electronic devices.
[0140] Audio circuit 405 can be used to provide an audio interface between the user and the electronic device through a speaker and microphone. Audio circuit 405 can convert received audio data into electrical signals and transmit them to the speaker, which then converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are received by audio circuit 405 and converted into audio data. The audio data is then output to processor 401 for processing, then transmitted via RF circuit 404 to, for example, another electronic device, or to memory 402 for further processing. Audio circuit 405 may also include an earphone jack to allow communication between external headphones and the electronic device.
[0141] The input unit 406 may be configured to receive input digital, character information, or user feature information (such as fingerprint, iris, or facial information), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
[0142] Power supply 407 is used to supply power to various components of electronic device 400. Optionally, power supply 407 can be logically connected to processor 401 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. Power supply 407 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0143] Although not shown in FIG. 4 , the electronic device 400 may further include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0144] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0145] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0146] To this end, an embodiment of the present application provides a storage medium storing a plurality of instructions that can be loaded by a processor to execute the application management method provided in the embodiment of the present application. For example, the instructions can execute the following steps:
[0147] When receiving a start request from the first application to start the second application, determining first application information of the first application and second application information of the second application;
[0148] determining, based on the first application information and the second application information, the strength of the association between the first application and the second application;
[0149] If the correlation strength is less than a preset strength threshold, obtaining historical usage scenario information of the second application and current usage scenario information of the electronic device;
[0150] Determine whether to start the second application according to the historical usage scenario information and the current usage scenario information.
[0151] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0152] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0153] Since the instructions stored in the storage medium can execute the steps of any application management method provided in the embodiments of the present application, the beneficial effects that can be achieved by the application management method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0154] The above is a detailed introduction to an application management method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core ideas. At the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An application management and control method, in, include: When receiving a start request from a first application to start a second application, determining first application information of the first application and second application information of the second application; Determine the strength of association between the first application and the second application according to the first application information and the second application information; If the correlation strength is less than a preset strength threshold, obtaining historical usage scenario information of the second application and current usage scenario information of the electronic device; Determine whether to start the second application according to the historical usage scenario information and the current usage scenario information.
2. The application management method according to claim 1, in, The determining the first application information of the first application and the second application information of the second application includes: Determining whether the first application is a background application; If the first application is a background application, first application information of the first application and second application information of the second application are determined.
3. The application management method according to claim 1, in, The determining the strength of association between the first application and the second application according to the first application information and the second application information includes: Acquire first process information of a first process to which the first application issues a start request, and second process information of a second process to be invoked of the second application, wherein the first application information includes the first process information, and the second application information includes the second process information; A correlation analysis is performed on the first process information and the second process information to determine the correlation strength between the first application and the second application.
4. The application management method according to claim 3, in, The performing correlation analysis on the first process information and the second process information to determine the correlation strength between the first application and the second application includes: Determining a first priority of the first process according to the first process information, and determining a second priority of the second process according to the second process information; The association strength is determined according to the first priority and the second priority.
5. The application management method according to claim 1, in, The acquiring the historical usage scenario information of the second application and the current usage scenario information of the electronic device includes: Acquire a historical usage frequency and a historical usage count of the second application within a preset historical time period, wherein the historical usage scenario information includes the historical usage frequency and the historical usage count; The current location and current time of the electronic device are obtained, wherein the current usage scenario information includes the current location and the current time.
6. The application management method according to claim 5, in, The determining whether to start the second application according to the historical usage scenario information and the current usage scenario information includes: If the historical usage frequency is higher than the preset usage frequency, determining whether the historical usage count is higher than the preset usage count; If the historical usage count is higher than a preset usage count, determining the historical usage time and historical usage location of the second application; Determine whether to start the second application according to the historical use time and the historical use location, as well as the current location and the current time.
7. The application management method according to claim 6, in, The determining whether to start the second application according to the historical use time and the historical use location, as well as the current location and the current time, includes: Determine the time period in which the second application is most frequently used within a preset historical time period according to the historical use time, and determine the location in which the second application is most frequently used according to the historical use location; If the current location matches the most frequently used location, and / or the current time is within the most frequently used time period, determining that the first application starts the second application; If the current location does not match the most frequently used location, and the current time is not within the most frequently used time period, it is determined that the first application does not start the second application.
8. The application management method according to claim 6, in, The determining whether to start the second application according to the historical use time and the historical use location, as well as the current location and the current time, includes: constructing a first usage habit vector according to the historical usage time and the historical usage location; constructing a second usage habit vector according to the current time and the current location; Determine whether to activate the Second application.
9. The application management method according to claim 8, in, The determining whether to start the second application according to the first usage habit vector and the second usage habit vector includes: calculating an error value between the first habit vector and the second habit vector; If the error value is within a preset difference range, determining to start the second application; If the error value is outside the preset difference range, it is determined not to start the second application.
10. An application control device, in, include: an information determination module, configured to determine first application information of the first application and second application information of the second application when receiving a start request from the first application to start the second application; a correlation determination module, configured to determine the correlation strength between the first application and the second application according to the first application information and the second application information; an acquisition module, configured to acquire historical usage scenario information of the second application and current usage scenario information of the electronic device if the association strength is less than a preset strength threshold; A control module is used to determine whether to start the second application according to the historical usage scenario information and the current usage scenario information.
11. The application management and control device according to claim 10, in, The information determination module is further used to determine first application information of the first application and second application information of the second application, including: Determining whether the first application is a background application; If the first application is a background application, first application information of the first application and second application information of the second application are determined.
12. The application management and control device according to claim 10, in, The association determination module is further configured to determine the strength of association between the first application and the second application according to the first application information and the second application information, including: Acquire first process information of a first process to which the first application issues a start request, and second process information of a second process to be invoked of the second application, wherein the first application information includes the first process information, and the second application information includes the second process information; A correlation analysis is performed on the first process information and the second process information to determine the correlation strength between the first application and the second application.
13. The application management and control device according to claim 12, in, The correlation determination module is further used to perform correlation analysis on the first process information and the second process information to determine the correlation strength between the first application and the second application, including: Determining a first priority of the first process according to the first process information, and determining a second priority of the second process according to the second process information; The association strength is determined according to the first priority and the second priority.
14. The application management and control device according to claim 10, in, The acquisition module is further used to acquire historical usage scenario information of the second application and current usage scenario information of the electronic device, including: Acquire a historical usage frequency and a historical usage count of the second application within a preset historical time period, wherein the historical usage scenario information includes the historical usage frequency and the historical usage count; The current location and current time of the electronic device are obtained, wherein the current usage scenario information includes the current location and the current time.
15. The application management and control device according to claim 14, in, The control module is further configured to determine whether to start the second application according to the historical usage scenario information and the current usage scenario information, including: If the historical usage frequency is higher than the preset usage frequency, determining whether the historical usage count is higher than the preset usage count; If the historical usage count is higher than a preset usage count, determining the historical usage time and historical usage location of the second application; Determine whether to start the second application according to the historical use time and the historical use location, as well as the current location and the current time.
16. The application management device according to claim 15, wherein the control module is further configured to determine whether to start the second application according to the historical use time and the historical use location, as well as the current location and the current time. include: Determine the time period in which the second application is most frequently used within a preset historical time period according to the historical use time, and determine the location in which the second application is most frequently used according to the historical use location; If the current location matches the most frequently used location, and / or the current time is within the most frequently used time period, determining that the first application starts the second application; If the current location does not match the most frequently used location, and the current time is not within the most frequently used time period, it is determined that the first application does not start the second application.
17. The application management and control device according to claim 15, in, The control module is further configured to determine whether to start the second application according to the historical use time and the historical use location, as well as the current location and the current time, including: constructing a first usage habit vector according to the historical usage time and the historical usage location; constructing a second usage habit vector according to the current time and the current location; Determine whether to start the second application according to the first usage habit vector and the second usage habit vector.
18. The application management and control device according to claim 17, in, The control module is further configured to determine whether to start the second application according to the first usage habit vector and the second usage habit vector, including: calculating an error value between the first habit vector and the second habit vector; If the error value is within a preset difference range, determining to start the second application; If the error value is outside the preset difference range, it is determined not to start the second application.
19. An electronic device, in, include: A memory storing executable program code, and a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the application management method as described in any one of claims 1-9.
20. A computer-readable storage medium, in, The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the application management method described in any one of claims 1-9.
Citation Information
Patent Citations
Method and apparatus for starting application according to correlation policy
CN107066290A
Application closing method and device, storage medium and electronic equipment
CN107734616A
Application processing method, mobile terminal and storage medium
CN109828844A
Application control method and terminal equipment
CN111007976A
Control method and control device for application program
CN114237452A
