Application acceleration method, apparatus, computer device and storage medium
By automatically triggering the acceleration function when the application starts, obtaining permissions and modes, and displaying information, the problem of long manual operation paths for users in existing technologies is solved, and efficient application acceleration and human-computer interaction are achieved.
Patent Information
- Application Number
- CN202011437980.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-07
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2040-12-07
AI Technical Summary
In existing technologies, the application acceleration process requires a long manual operation path from the user, resulting in low human-computer interaction efficiency.
When the first application starts, the second application is automatically triggered to provide acceleration functions, obtain matching acceleration permissions or modes, and synchronously display acceleration processing information after startup, without requiring manual operation by the user.
It simplifies the application acceleration process, improves human-computer interaction efficiency, and automatically provides acceleration services for applications without requiring users to perform repetitive manual operations.
Smart Images

Figure CN112596807B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to an application program acceleration method and device, computer equipment and storage medium. BACKGROUND
[0002] Application program acceleration refers to improving the network speed during the running of an application program, and ensuring efficient data transmission between the application program and a server. At present, each time the application program is accelerated, a user needs to manually start an application accelerator, select an application program to be accelerated in the application accelerator, exit the current application accelerator interface, and start the application program to be accelerated, so that the application accelerator performs network acceleration during the running of the application program.
[0003] By using the above method, the user needs to repeat the above steps each time the application program is accelerated, the operation path is long, and the human-computer interaction efficiency is extremely low. SUMMARY
[0004] The embodiments of the present application provide an application program acceleration method and device, computer equipment and storage medium, which can simplify the operation path of the user when the application program is accelerated, and improve the human-computer interaction efficiency. The technical scheme is as follows:
[0005] In one aspect, an application program acceleration method is provided, which includes:
[0006] In response to the starting and running of a first application program, triggering an acceleration function of a second application program, wherein the second application program is used to provide the acceleration function to the first application program;
[0007] Obtaining the acceleration permission or acceleration mode matched by the second application program for the first application program;
[0008] Based on the acceleration permission or acceleration mode matched by the first application program, performing acceleration processing on the first application program;
[0009] In response to the completion of the starting of the first application program, synchronously displaying the acceleration processing information for the first application program.
[0010] In one aspect, an application program acceleration device is provided, which includes:
[0011] A triggering module is configured to, in response to the starting and running of a first application program, trigger an acceleration function of a second application program, wherein the second application program is used to provide the acceleration function to the first application program;
[0012] An obtaining module is configured to obtain the acceleration permission or acceleration mode matched by the second application program for the first application program;
[0013] an acceleration module, configured to, in response to the first data table comprising an application identifier of the first application, accelerate the first application based on an acceleration mode corresponding to the first application by the second application;
[0014] a display module, configured to, in response to completion of starting of the first application, synchronously display acceleration processing information for the first application.
[0015] In a possible implementation, the display module is configured to, in response to the triggering operation on the first prompt information, display an acceleration interface, the acceleration interface comprising at least one permission opening control, the permission opening control being configured to open an acceleration permission;
[0016] The apparatus further comprises an operation detection module, configured to detect a triggering operation on the at least one permission opening control;
[0017] The display module is configured to, in response to the at least one permission opening control being all opened, display a dynamic effect of acceleration function opening in a first region of the acceleration interface.
[0018] In a possible implementation, the acceleration interface further comprises an acceleration function opening control.
[0019] The apparatus further comprises:
[0020] a state detection module, configured to, in response to detecting a triggering operation on the acceleration function opening control, detect an opening state of the at least one permission opening control;
[0021] a state setting module, configured to, in response to the at least one permission opening control being all in an opened state, set the acceleration function opening control to an opened state;
[0022] The display module is configured to, in response to any permission opening control being in an unopened state, display second prompt information, the second prompt information being configured to prompt to open the at least one permission opening control.
[0023] In a possible implementation, the acceleration interface displays a permission opening progress identifier.
[0024] The apparatus further comprises:
[0025] a determination module, configured to, in response to an acceleration permission corresponding to any permission opening control being opened, determine a progress increase value corresponding to the acceleration permission;
[0026] an update module, configured to update the permission opening progress identifier based on the progress increase value.
[0027] In a possible implementation, the display module is configured to:
[0028] In response to the triggering operation on the first prompt information, determine the acceleration permission or the acceleration mode matched by the first application program;
[0029] Display an acceleration interface corresponding to the acceleration permission or the acceleration mode.
[0030] In a possible implementation, the acceleration interface displays an application program selection entry, which is configured to provide a function of selecting an application program to be accelerated.
[0031] In a possible implementation, the triggering module is configured to:
[0032] In response to the first application program starting to run, obtain current network environment data;
[0033] In response to the network environment data not satisfying a reference condition, detect an opening state of the acceleration function of the second application program.
[0034] In a possible implementation, the obtaining module is configured to perform any one of the following:
[0035] Obtain a first account level of a user account logged in the first application program, and determine the acceleration permission or the acceleration mode corresponding to the first account level as the acceleration permission or the acceleration mode corresponding to the first application program;
[0036] Obtain a first account level of a user account logged in the first application program, and determine the acceleration permission or the acceleration mode corresponding to the first account level as the acceleration permission or the acceleration mode corresponding to the first application program;
[0037] Obtain a first data table configured to store application identifiers of application programs allowed to be accelerated and corresponding acceleration permissions or acceleration modes, query the first data table based on an application identifier of the first application program, and determine the acceleration permission or the acceleration mode corresponding to the first application program.
[0038] In a possible implementation, the acceleration module is configured to:
[0039] In response to the first application program corresponding to a first acceleration permission or a first acceleration mode, obtain a second data table configured to store process identifiers of running processes, and clear, by the second application program, processes other than the first application program and the second application program indicated by the second data table;
[0040] In response to the first application program corresponding to a second acceleration permission or a second acceleration mode, call, by the second application program, a virtual network card of a virtual private network, intercept, by the virtual network card, a data packet including an application identifier of the first application program, and call an application acceleration script of the second application program to transmit the data packet.
[0041] In a possible implementation manner, the apparatus further includes:
[0042] a second obtaining module, configured to, in response to the first application ending running, obtain network quality improvement information in a running process of the first application;
[0043] the display module is configured to display the network quality improvement information.
[0044] In an aspect, a computer device is provided, which includes one or more processors and one or more memories, the one or more memories storing at least one computer program, the at least one computer program being loaded and executed by the one or more processors to implement operations performed by the application acceleration method.
[0045] In an aspect, a computer readable storage medium is provided, which stores at least one computer program, the at least one computer program being loaded and executed by a processor to implement operations performed by the application acceleration method.
[0046] In an aspect, a computer program product is provided, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device implements operations performed by the application acceleration method.
[0047] The technical scheme provided by the embodiments of the present application automatically triggers a second application to provide acceleration function for a first application based on corresponding acceleration permission or acceleration mode after the first application is started, and shows current acceleration processing information to a user, so that the user does not need to manually operate in the application acceleration process, the operation path of the user in the application acceleration scenario is effectively simplified, and the human-computer interaction efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0049] Figure 1 is an implementation environment schematic diagram of an application acceleration method provided by the embodiments of the present application;
[0050] Figure 2 is a flowchart of an application acceleration method provided by the embodiments of the present application;
[0051] Figure 3 is a specific flowchart of an application acceleration method provided by the embodiment of the present application;
[0052] Figure 4 is a display diagram of accelerated processing information provided by the embodiment of the present application;
[0053] Figure 5 is a flowchart of an application acceleration ending process provided by the embodiment of the present application;
[0054] Figure 6 is a display diagram of network quality improvement information provided by the embodiment of the present application;
[0055] Figure 7 is a flowchart of an application acceleration process provided by the embodiment of the present application;
[0056] Figure 8 is a flowchart of an automatic acceleration function setting method provided by the embodiment of the present application;
[0057] Figure 9 is a display diagram of first prompt information provided by the embodiment of the present application;
[0058] Figure 10 is an acceleration interface diagram provided by the embodiment of the present application;
[0059] Figure 11 is an acceleration interface diagram provided by the embodiment of the present application;
[0060] Figure 12 is an acceleration interface diagram provided by the embodiment of the present application;
[0061] Figure 13 is an application selection interface diagram provided by the embodiment of the present application;
[0062] Figure 14 is a flowchart of an acceleration function starting process provided by the embodiment of the present application;
[0063] Figure 15 is a structural diagram of an application acceleration device provided by the embodiment of the present application;
[0064] Figure 16 is a structural diagram of a terminal provided by the embodiment of the present application;
[0065] Figure 17 is a structural diagram of a server provided by the embodiment of the present application. DETAILED DESCRIPTION
[0066] In order to make the objects, technical solutions and advantages of the present application clearer, the following further describes the embodiments of the present application with reference to the drawings. Obviously, the described embodiments are only some of but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall into the scope of the present application.
[0067] The terms "first", "second" and the like in the present application are used to distinguish the same items or similar items with substantially the same function, and it should be understood that there is no logical or time sequence dependency between "first", "second" and "n", and the quantity and execution order are not limited.
[0068] The following explains the terms related to the embodiments of the present application:
[0069] Normal acceleration mode: the application acceleration is performed by clearing the background cache data.
[0070] E-sport acceleration mode: the application is accelerated through the WiFi (Wireless Fidelity) and mobile network dual channels, and the acceleration effect is better than that of the normal acceleration mode.
[0071] Figure 1 FIG. 1 is a schematic diagram of an implementation environment of an application acceleration method provided by the embodiments of the present application, referring to FIG. 1, Figure 1 the implementation environment includes a terminal 101 and a first server 102.
[0072] The terminal 101 is installed and runs a first application and a second application, and the second application is used to provide acceleration service for the first application. For example, the terminal 101 can be a smart phone, a tablet computer, a notebook computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, a desktop computer, a smart television, a smart vehicle device, and the like, and the embodiments of the present application are not limited thereto.
[0073] The first server 102 is a background server of the first application program, configured to provide background service for running of the first application program. Optionally, the implementation environment can further include a second server 103, which is a background server corresponding to the second application program, configured to provide background service for running of the second application program. The server can be a physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), and big data and artificial intelligence platform, and the present application embodiment does not limit the same.
[0074] Optionally, the terminal 101, the first server 102 and the second server 103 are connected directly or indirectly through wired or wireless communication. It can be known by those skilled in the art that the number of terminals can be more or less, for example, the terminal can be only one, or several tens or hundreds, or more. The number and type of terminals in the implementation environment are not limited in the present application embodiment.
[0075] The present application embodiment provides an application program acceleration method, which can be applied to various types of application programs. When the relevant running permission of the second application program is turned on, the acceleration service can be provided for other application programs, that is, when the second application program detects that the first application program is started and the first application program allows to be accelerated, the first application program is automatically accelerated, without manual triggering by the user. For example, for a network game application program, the second application program can automatically accelerate the game in the background after the user starts the game, avoiding the user manually executing the application acceleration step every time the game is started, effectively shortening the user's operation path.
[0076] Figure 2 The present application embodiment provides a flowchart of an application program acceleration method. The method can be applied to the implementation environment described above, referring to Figure 2 In one possible implementation manner, the embodiment includes the following steps:
[0077] 201. The terminal triggers the acceleration function of the second application program in response to the first application program starting to run, the second application program being configured to provide the acceleration function for the first application program.
[0078] The first application can be any type of application, for example, the first application is a network game application with high requirements for network quality, etc. The second application is a security management application, a network tool application, etc., for example, a mobile phone manager, a game accelerator, etc. The second application can provide acceleration function for the first application, for example, improve the running fluency of the first application, improve the data transmission efficiency between the client and the server of the first application, etc.
[0079] 202. The terminal acquires the acceleration permission or acceleration mode matched by the second application for the first application.
[0080] In a possible implementation, the acceleration scheme provided by the second application is different for the application with different acceleration permissions or acceleration modes, and the acceleration effect produced is also different.
[0081] 203. The terminal performs acceleration processing on the first application based on the acceleration permission or acceleration mode matched by the first application.
[0082] For example, the terminal cleans up the cache space through the second application to optimize the running environment of the first application, or accelerates the data transmission speed between the client and the server of the first application through the second application. The specific mode of the acceleration processing is not limited in the embodiments of the application.
[0083] 204. The terminal synchronously displays the acceleration processing information for the first application in response to the completion of the start of the first application.
[0084] In a possible implementation, the terminal displays the acceleration processing information in the form of a pop-up window or a message in the running interface of the first application, wherein the acceleration processing information can include the acceleration mode applied by the first application, the current network speed, etc., which is not limited in the embodiments of the application.
[0085] The technical scheme provided in the embodiments of the application automatically triggers the second application to provide acceleration function for the first application based on the corresponding acceleration permission or acceleration mode after the start of the first application, and displays the current acceleration processing information to the user, so that the user does not need to manually operate in the application acceleration process, effectively simplifying the operation path of the user in the application acceleration scenario, and improving the human-computer interaction efficiency.
[0086] The above embodiments are a brief introduction to the technical scheme of the application. Specifically, the technical scheme of the application will be described in detail in combination with Figure 3 The application acceleration method is described in detail. Figure 3 is a specific flowchart of an application acceleration method provided in the embodiments of the application, which is described in detail as follows.Figure 3 In a possible implementation, the embodiment includes the following steps:
[0087] 301. The terminal invokes the second application in response to the first application running, and the second application detects the opening state of the acceleration function.
[0088] In a possible implementation, the second application is pre-run in the background, for example, the terminal triggers the second application to start when starting, the second application is run in the background after starting, or the second application is pre-started by the user. When the first application starts, the second application running in the background detects whether the current acceleration function is opened. In a possible implementation, the first application can wake up the second application when the first application starts, that is, the first application can trigger the second application to start when the first application starts. The second application is woken up, that is, the second application is run, and it is detected whether the current acceleration function is opened. If the acceleration function of the second application is in the unenabled state, step 302 is performed, and if the acceleration function of the second application is in the enabled state, steps 303 to 305 are performed.
[0089] In a possible implementation, the second application determines whether to perform the step of detecting the opening state of the acceleration function based on the current network environment of the terminal. That is, in response to the first application running, the second application first acquires current network environment data, for example, the network environment data includes the current network speed, network speed fluctuation data, etc., and when it is determined that the network environment data does not meet the reference condition, that is, it is determined that the first application has acceleration demand, the opening state of the acceleration function of the second application is detected. When it is determined that the network environment data meets the reference condition, the application can not be accelerated, that is., the step of detecting the opening state of the acceleration function of the second application is not performed. The reference condition includes a network speed threshold, a network speed fluctuation threshold, etc., which are not limited in the embodiment of the application. In the embodiment of the application, after it is determined that the first application has acceleration demand, the subsequent acceleration steps are performed, which can avoid invalid data processing of the terminal and reduce the data processing amount.
[0090] 302. The terminal performs a step of prompting the user to open the acceleration function of the second application in response to the acceleration function being in the unopened state.
[0091] In a possible implementation, the terminal can guide the user to open the acceleration function by displaying prompt information, for example, displaying first prompt information to prompt the user to jump to an acceleration interface to open the acceleration function. For example, the process of guiding the user to open the acceleration function includes the steps shown in 701-704. Figure 7
[0092] 303、the terminal triggers the acceleration function of the second application to start running in response to the acceleration function being in the turned-on state, and the first application is detected by the second application whether to allow being accelerated.
[0093] In a possible implementation, the second application judges whether the first application allows being accelerated before accelerating the first application. For example, the second application stores a first data table of application identifiers of applications that allow being accelerated, i.e., applications to which the acceleration function has been applied. The second application matches the application identifier of the first application with the application identifiers in the first data table to judge whether the first application allows being accelerated. The application identifier can be a resource package name of the application, for example. The application identifiers included in the first data table are set by default or provided by a user, for example, and the embodiments of the present application do not limit this. Optionally, the first data table is stored in the terminal by the second application, or in a second server corresponding to the second application. It should be noted that the second application can also store information of applications to which the acceleration function has been applied in other forms, for example, by providing a token for the first application, and the embodiments of the present application do not limit this. It should be noted that the above description of the method of judging whether the first application allows being accelerated is only an example of a possible implementation, and the embodiments of the present application do not limit this.
[0094] In the embodiments of the present application, if the first data table includes the identifier of the first application, i.e., the first application allows being accelerated, the terminal continues to perform the following step 304; if the first data table does not include the identifier of the first application, i.e., the first application currently does not allow being accelerated, the first application does not need to be accelerated. Optionally, if the first application currently does not allow being accelerated, the terminal can also prompt the user to apply the acceleration function to the first application and add the application identifier of the first application to the first data table, and the embodiments of the present application do not limit this.
[0095] 304、the terminal determines the acceleration permission or acceleration mode corresponding to the first application in response to the first application allowing being accelerated.
[0096] Different application programs can correspond to different acceleration modes, or different acceleration permissions are opened for different application programs, and different acceleration modes or acceleration permissions correspond to different network acceleration methods and network acceleration effects. In a possible implementation, there is a corresponding relationship between the acceleration mode and the acceleration permission, that is, different acceleration permissions need to be opened for different acceleration modes. For example, a first acceleration mode corresponds to a first acceleration permission, where the first acceleration mode is a normal acceleration mode, and the first acceleration permission includes three sub permissions of background survival permission, software identification permission, and notification permission. In this case, the running environment of the first application program can be optimized in the form of cleaning the cache space of the terminal, thereby improving the running speed of the first application program. A second acceleration mode corresponds to a second acceleration permission, where the second acceleration mode is an e-sports acceleration mode, and the second acceleration permission includes five sub permissions of background survival permission, software identification permission, notification permission, VPN (Virtual Private Network) permission, and background pop-up window permission. In this case, the data transmission speed of the first application program can be improved by calling a VPN virtual network card.
[0097] In a possible implementation, the information of the acceleration permission or the acceleration mode corresponding to the application program is stored in the first data table, and the second application program queries the first data table based on the application identifier of the first application program. If the first data table includes the application identifier of the first application program, the acceleration permission or the acceleration mode associated with the application identifier is obtained. Of course, the acceleration permission or the acceleration mode corresponding to the first application program can also be stored in other forms, which are not limited in the embodiments of the application.
[0098] In a possible implementation, the acceleration permission or the acceleration mode can be determined based on a first account level of a user account logged in the first application program, and different account levels correspond to different acceleration permissions or acceleration modes. For example, a normal account level corresponds to a normal acceleration mode, and corresponds to three acceleration permissions of background survival permission, software identification permission, and notification permission; a vip account level corresponds to an e-sports acceleration mode, and corresponds to five acceleration permissions of background survival permission, software identification permission, notification permission, VPN permission, and background pop-up window permission. The second application program determines the acceleration permission or the acceleration mode corresponding to the first account level as the acceleration permission or the acceleration mode corresponding to the first application program. Of course, the acceleration permission or the acceleration mode can also be determined based on a second account level of a user account logged in the second application program, which is not limited in the embodiments of the application.
[0099] In a possible implementation, the acceleration permission or the acceleration mode corresponding to the first application can be selected by the user. For example, the terminal displays selection controls corresponding to various acceleration modes, for example, in the form of a pop-up window in the running interface of the first application, or jumps to an acceleration mode selection interface, and the specific display manner of the selection controls corresponding to the acceleration modes is not limited in the embodiments of the present application. The terminal determines the acceleration mode selected by the user based on the triggering operation of the user on the selection controls. For example, the terminal can also display an opening control corresponding to the acceleration permission, and determine the acceleration mode for the first application based on the acceleration permission opened by the user. In the embodiments of the present application, the user selects the acceleration mode by himself / herself, so as to ensure that the running state of the first application after acceleration meets the user demand.
[0100] In a possible implementation, the acceleration permission or the acceleration mode corresponding to the first application is determined based on current network environment data. For example, the network environment data includes network speed, and the current network speed is located in different numerical intervals, corresponding to different acceleration permissions or acceleration modes. The correspondence between the numerical interval and the acceleration permission or the acceleration mode is set by the developer, and the embodiments of the present application are not limited thereto. In the embodiments of the present application, the acceleration mode is flexibly determined based on the current network environment, so as to ensure that the running state of the first application after acceleration is good.
[0101] It should be noted that the above description of the acceleration mode determination method is only an exemplary description of several possible implementations, and the embodiments of the present application are not limited thereto.
[0102] 305、The terminal accelerates the first application based on the acceleration permission or the acceleration mode corresponding to the first application through the second application.
[0103] For example, in response to the first application corresponding to the first acceleration permission or the first acceleration mode, the terminal obtains a second data table through the second application, where the second data table is used to store process identifiers of running processes, that is, the second data table is a current cleanable memory cache list. The terminal cleans the processes other than the first application and the second application indicated by the second data table through the second application, for example, the terminal calls an interface for cleaning cache data in the second application, and cleans data through the interface.
[0104] For example, in response to the first application corresponding to the second acceleration permission or the second acceleration mode, the terminal invokes the virtual network interface card (VNIC) of the Virtual Private Network (VPN VNIC) through the second application. This VPN VNIC intercepts data packets containing the application identifier of the first application and invokes the application acceleration script of the second application to transmit the data packets. Taking an Android terminal as an example, when enabling VPN on the terminal, an Activity component needs to be passed in; that is, an Activity component needs to be displayed on the interface. In this case, to avoid affecting the display of the first application's interface and to avoid interfering with the user's use of the first application, the second application opens a one-pixel transparent interface, i.e., passes in a transparent Activity component. The Android system interface is invoked through the context of this transparent Activity component to start the VPN VNIC and intercept data packets from the first application. The VPN VNIC then transmits the intercepted data packets to the second application's backend server through the application acceleration script of the second application, and the second application's backend server then transmits them to the first application's backend server. The application acceleration script for the second application can be an SDK (Software Development Kit) for dual-channel acceleration of the application, where dual-channel refers to acceleration via both WiFi and mobile network. In one possible implementation, after the terminal confirms that dual-channel acceleration has started normally, it closes the previously opened transparent Activity component.
[0105] It should be noted that the above description of the acceleration methods corresponding to each acceleration mode is only an exemplary description of a possible implementation. This application embodiment does not limit which method is specifically used for application acceleration.
[0106] 306. Upon completion of the startup of the first application, the terminal simultaneously displays accelerated processing information for the first application.
[0107] In a possible implementation, after the first application program is started, the second application program accelerates the first application, and the terminal can display the acceleration processing information, i.e., information about the acceleration mode currently applied to the first application program. For example, in the application scenario of the first acceleration mode, after the data cleaning is completed, the terminal displays the acceleration processing information on the running interface of the first application program, and the acceleration processing information is used to prompt the user that the first application program is currently running in the first acceleration mode. Alternatively, in the application scenario of the second acceleration mode, after it is determined that the dual-channel acceleration is normally started, the terminal displays the acceleration processing information, and the acceleration processing information is used to prompt the user that the first application program is currently running in the second acceleration mode. The acceleration processing information is displayed in the form of a pop-up floating window or a message notification, which is not limited in the embodiment of the application. Figure 4 is a display diagram of acceleration processing information provided by the embodiment of the application, referring to Figure 4 , the terminal displays the acceleration processing information 401 on the running interface of the first application program in the form of a message notification.
[0108] 307. The terminal displays the network quality improvement information in the acceleration process in response to the end of the running of the first application program.
[0109] In the embodiment of the application, the second application program stops accelerating the first application program when it detects that the first application program ends running. In a possible implementation, the terminal stores the application identifiers of the running application programs in the form of a stack, and the application identifier of the newly started application program is stored at the top of the stack. The second application program can determine whether the first application program is running based on the change of the application identifier at the top of the stack, determine whether to continue accelerating the first application program, and stop the acceleration process of the first application program if it is determined that the first application program ends running. Of course, the second application program can determine whether the first application program is running by other manners, which is not limited in the embodiment of the application. Figure 5 is a flowchart of the end process of the application program acceleration provided by the embodiment of the application, referring to Figure 5 , when the second application program detects the change of the application identifier at the top of the stack, it executes step 501 to determine whether there is a running application acceleration process, i.e., whether an application program is currently accelerated. If there is a running application acceleration process, it executes step 502 to determine whether the application program indicated by the application identifier at the top of the stack has applied the acceleration function. If yes, it is determined that the accelerated application program ends running, and it continues to execute step 503 to end the acceleration process, and then executes step 504 to display the acceleration result, i.e., the network quality improvement information.
[0110] In a possible implementation, the acceleration result can be expressed as network instruction promotion information, and the network quality promotion information includes network speed promotion information and the like. For example, in response to the first application ending running, the terminal obtains the network quality promotion information in the running process of the first application through the second application, and displays the network quality promotion information. Figure 6 is a display diagram of network quality promotion information provided by an embodiment of the present application, referring to Figure 6 , the terminal displays the network quality promotion information 601 in the form of a message, and the network quality promotion information includes the network speed promotion range in the current acceleration process, and optionally, further includes an information viewing entrance 602, which is used to view the detailed information of the network quality change in the current acceleration process. For example, in response to a triggering operation on the information viewing entrance 602, a detailed information viewing interface is displayed, and the detailed information viewing interface displays the detailed information of the network quality change in the current acceleration process.
[0111] The technical scheme provided by the embodiment of the present application automatically triggers the second application to provide acceleration service for the first application based on the corresponding acceleration permission or acceleration mode after the first application is started, and shows the information of the current acceleration service to the user. In the application acceleration process, the user does not need to manually operate, which effectively simplifies the operation path of the user in the application acceleration scene, and improves the human-computer interaction efficiency.
[0112] Figure 7 is a flowchart of application acceleration provided by an embodiment of the present application, and the following Figure 7 , the above application acceleration process is described. Referring to Figure 7In one possible implementation, after the second application starts, step 701 is executed to detect the application identifier of the started first application, then step 702 is executed to determine if there is a currently running acceleration process. If so, step 703 is executed to determine if the application being accelerated in the acceleration process is the first application. If not, step 704 is executed. If the application being accelerated in the current acceleration process is not the first application, the current acceleration process is terminated, and step 704 is executed again. If the application being accelerated in the current acceleration process is the first application, the acceleration of the first application continues. In step 704, it is determined whether the first application has applied the acceleration function. If not, step 705 is executed to display a first prompt message to prompt the user to apply the acceleration function to the first application. If so, step 706 is executed to determine the acceleration mode corresponding to the first application and accelerate the first application based on the acceleration mode. This application provides a solution for automatically accelerating applications in the background. Taking game applications as an example, when the game starts, background acceleration is automatically triggered to avoid interfering with the game process. This simplifies the user's operation path, greatly improves the convenience of game acceleration for users, effectively improves the network speed during game operation, and reduces data transmission latency.
[0113] The above embodiments describe a method for automatically accelerating the first application when the second application enables the acceleration function. In this embodiment, if the second application does not enable the acceleration function, the user can be guided to enable the automatic acceleration function, that is, the user can be guided to enable the running permission of the second application to ensure that the second application can accelerate other applications. Figure 8 This is a flowchart of an automatic acceleration function setting method provided in an embodiment of this application, see reference. Figure 8 In one possible implementation, the method includes the following steps:
[0114] 801. In response to the fact that the acceleration function is not enabled, the terminal displays a first prompt message on the running interface of the first application.
[0115] The first prompt message is used to prompt the user to enable the acceleration function. For example, the first prompt message is displayed on the running interface of the first application in the form of a pop-up floating window or a message notification. Figure 9 This is a schematic diagram illustrating the display of a first prompt message provided in an embodiment of this application, such as... Figure 9 As shown, the first area 902 of the running interface 901 of the first application displays the first prompt information, wherein the first area 902 can be any area of the running interface 901.
[0116] 802、the terminal displays an acceleration interface in response to the triggering operation on the first prompt information.
[0117] In a possible implementation, different acceleration modes correspond to different acceleration interfaces. Taking an example of an acceleration mode based on an account level of a user account logged in the second application, the terminal determines the account level of the user account logged in the second application in response to the triggering operation on the first prompt information, determines an acceleration mode corresponding to the account level, and displays an acceleration interface corresponding to the acceleration mode. The acceleration interface may, for example, include at least one permission opening control, which is used to open an acceleration permission, that is, a relevant running permission of the second application. In a possible implementation, the acceleration interface further includes an acceleration function opening control. Optionally, the acceleration function opening control is allowed to be opened only when all the permission opening controls are in an opened state, and the acceleration function opening control cannot be opened if any permission opening control is in an unopened state. That is, in response to detecting a triggering operation on the acceleration function opening control, the terminal detects the opening state of the at least one permission opening control, opens the acceleration function opening control in response to all the permission opening controls being in the opened state, and displays a second prompt information in response to any permission opening control being in the unopened state, where the second prompt information is used to prompt to open the at least one permission opening control. Optionally, if the user directly opens the acceleration function opening control, automatic opening of the permission opening controls can be triggered. For example, in a first acceleration mode, that is, a normal acceleration mode, the running permission opened to the second application includes at least a background survival permission, a software identification permission, and a notification permission; and in a second acceleration mode, that is, an e-sports acceleration mode, the running permission opened to the second application includes at least the background survival permission, the software identification permission, the notification permission, a VPN permission, and a background pop-up window permission. Figure 10 FIG. 1 is a schematic diagram of an acceleration interface provided by an embodiment of the present application, where the acceleration interface includes an acceleration function opening control 1001 and a permission opening control 1002.
[0118] 803、the terminal detects a triggering operation on at least one permission opening control and the acceleration function opening control of the acceleration interface.
[0119] In a possible implementation, the acceleration interface displays a permission opening progress identifier, which is used to indicate the opening state of the permission opening control. In response to any running permission corresponding to the permission opening control being opened, the terminal determines a progress increase value corresponding to the running permission, and updates the permission opening progress identifier based on the progress increase value.
[0120] Figure 11is a schematic diagram of an acceleration interface provided by an embodiment of the present application. A first region of the acceleration interface displays an effect picture corresponding to a current acceleration function opening state. In a possible implementation, when the acceleration function is not opened, the effect picture is as shown in Figure 11 FIG. 1A. The effect picture includes a rocket 1102, a launching platform 1103, and a permission opening progress identifier 1104. When the acceleration function is not opened, the rocket 1102 is in the launching platform 1103, and the launching platform 1103 stores energy 1105. When any running permission is opened or closed, the amount of the energy 1105 stored in the launching platform 1103 also changes. The permission opening progress identifier 1104 can be in the form of a number. In a possible implementation, the permission opening progress identifier 1104 corresponds to the energy 1105 stored in the launching platform. For example, when the permission opening progress identifier 1104 is 40%, the energy 1105 stored in the launching platform accounts for 40% of the total storage space of the launching platform. When the launching platform 1103 is full of energy and the permission opening progress identifier 1104 reaches 100%, it indicates that the acceleration function is opened. Figure 11 In a possible implementation, the acceleration interface can display the progress increase value of each running permission. As shown in FIG. 1B, the left region of the permission opening control displays the progress increase value of the running permission indicated by the permission opening control. For example, the progress increase value of the running permission is displayed in the form of an energy ball 1106, and the number in the energy ball 1106 represents the progress increase value. It should be noted that the above description of the effect picture is only an example, and the specific style of the effect picture is not limited in the embodiments of the present application. Figure 11
[0121] 804. The terminal displays, in the first region of the acceleration interface, an acceleration function opening animation effect in response to the at least one permission opening control and the acceleration function opening control being both opened.
[0122] In a possible implementation, taking the effect picture of the acceleration interface as shown in FIG. 1C as an example, the acceleration function opening animation effect can be a rocket launching animation effect, that is, when the acceleration function is opened, the rocket launching animation effect is displayed. Figure 11 Figure 12 is a schematic diagram of an acceleration interface provided by an embodiment of the present application. The acceleration function is in an opened state, and the effect picture is as shown in Figure 12 FIG. 2A. After the acceleration function opening animation effect is displayed, the rocket 1202 is displayed in a launched state, and the launching platform is no longer displayed. Optionally, the background of the effect picture is changed to a starry sky view, which matches the rocket launching state.
[0123] In one possible implementation, the acceleration interface displays an application selection entry, which provides the ability to select the application to be accelerated. For example... Figure 12 As shown, the accelerated interface displays an application selection entry 1203. In response to a trigger operation on the application selection entry, the application selection interface is displayed. Figure 13 This is a schematic diagram of an application selection interface provided in an embodiment of this application. Figure 13 Taking the interface shown as an example, the application selection interface displays application identifiers for multiple applications, allowing the user to select the application to be accelerated. Optionally, the second application adds the application identifier of the selected application from the application selection interface to the first data table. It should be noted that the above description of the application selection interface is merely an exemplary illustration of one possible implementation; the application selection interface can also be displayed on the acceleration interface as a pop-up window, and this embodiment does not limit this approach.
[0124] Figure 14 This is a flowchart of an acceleration function activation process provided in an embodiment of this application, which is described below in conjunction with... Figure 14 The process of enabling the acceleration function described above is explained below. In one possible implementation, in response to the startup of the first application, the second application executes step 1401, checking whether all running permissions of the second application are enabled. If any running permissions are not enabled, the user is guided to enable the relevant running permissions. If all running permissions are enabled, step 1402 is executed, checking whether the acceleration function enabling control is enabled. If not, the user is guided to enable the acceleration function enabling control. If so, the application to be accelerated is selected, and the acceleration function settings are completed. In this embodiment, after enabling the necessary running permissions to the second application, the second application can automatically accelerate other applications, effectively improving the convenience of application acceleration and the user experience of the application. Taking a game application as the first application and a mobile phone manager as the second application, in this embodiment of the application, when the game starts, if the mobile phone manager detects that the current network speed of the terminal is low, it guides the user to enable the automatic acceleration function by displaying a prompt message. After the user grants the mobile phone manager the necessary running permissions for application acceleration, the user can apply the automatic acceleration function. When starting the game in subsequent applications, there is no need to manually set up application acceleration. The mobile phone manager automatically completes the game acceleration in the background. The user does not need to go through a repetitive and complicated operation path every time the game is started, which effectively improves the efficiency of human-computer interaction.
[0125] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.
[0126] Figure 15is a structural schematic diagram of an application acceleration device provided by an embodiment of the present application, referring to Figure 15 The device comprises:
[0127] A triggering module 1501 is configured to trigger an acceleration function of a second application in response to starting and running of a first application, wherein the second application is configured to provide the acceleration function for the first application.
[0128] An obtaining module 1502 is configured to obtain an acceleration permission or an acceleration mode matched by the second application for the first application.
[0129] An acceleration module 1503 is configured to accelerate the first application based on the acceleration mode corresponding to the first application by the second application in response to the first data table comprising an application identifier of the first application.
[0130] A display module 1504 is configured to synchronously display acceleration processing information for the first application in response to completion of starting of the first application.
[0131] In a possible implementation manner, the triggering module 1501 is configured to:
[0132] detect an opening state of the acceleration function of the second application in response to starting and running of the first application.
[0133] display first prompt information in a running interface of the first application in response to the acceleration function of the second application being in an unopened state, wherein the first prompt information is configured to prompt to open the acceleration function.
[0134] trigger the acceleration function of the second application to run in response to the acceleration function of the second application being in an opened state.
[0135] In a possible implementation manner, the display module 1504 is configured to display an acceleration interface in response to a triggering operation on the first prompt information, wherein the acceleration interface comprises at least one permission opening control configured to open an acceleration permission.
[0136] The device further comprises an operation detection module configured to detect a triggering operation on the at least one permission opening control.
[0137] The display module 1504 is configured to display a dynamic effect of the acceleration function being opened in a first region of the acceleration interface in response to the at least one permission opening control being all opened.
[0138] In a possible implementation manner, the acceleration interface further comprises an acceleration function opening control.
[0139] The device further comprises:
[0140] a state detection module, configured to, in response to detecting a triggering operation on the acceleration function start control, detect a start state of the at least one permission start control;
[0141] a state setting module, configured to, in response to the at least one permission start control being in the started state, set the acceleration function start control to the started state;
[0142] The display module 1504 is configured to, in response to any permission start control being in the unstarted state, display second prompt information, the second prompt information being used to prompt to start the at least one permission start control first.
[0143] In a possible implementation, the acceleration interface is displayed with a permission start progress identifier;
[0144] The apparatus further includes:
[0145] a determination module, configured to, in response to an acceleration permission corresponding to any permission start control being started, determine a progress increase value corresponding to the acceleration permission;
[0146] an update module, configured to update the permission start progress identifier based on the progress increase value.
[0147] In a possible implementation, the display module 1504 is configured to:
[0148] in response to a triggering operation on the first prompt information, determine an acceleration permission or an acceleration mode matched by the first application program;
[0149] display an acceleration interface corresponding to the acceleration permission or the acceleration mode.
[0150] In a possible implementation, the acceleration interface is displayed with an application program selection entry, the application program selection entry being used to provide a function of selecting an application program to be accelerated.
[0151] In a possible implementation, the triggering module 1501 is configured to:
[0152] in response to the first application program starting to run, acquire current network environment data;
[0153] in response to the network environment data not satisfying a reference condition, detect a start state of an acceleration function of the second application program.
[0154] In a possible implementation, the acquisition module 1502 is configured to perform any one of the following:
[0155] obtain a first account level of the user account logged in the first application, and determine the acceleration permission or the acceleration mode corresponding to the first account level as the acceleration permission or the acceleration mode corresponding to the first application;
[0156] obtain a first account level of the user account logged in the first application, and determine the acceleration permission or the acceleration mode corresponding to the first account level as the acceleration permission or the acceleration mode corresponding to the first application;
[0157] obtain a first data table used for storing application identifiers of applications allowed to be accelerated and corresponding acceleration permissions or acceleration modes, query the first data table based on the application identifier of the first application, and determine the acceleration permission or the acceleration mode corresponding to the first application.
[0158] In a possible implementation, the acceleration module 1503 is configured to:
[0159] in response to the first application corresponding to the first acceleration permission or the first acceleration mode, obtain a second data table used for storing process identifiers of running processes, and clear, through the second application, processes other than the first application and the second application indicated by the second data table;
[0160] in response to the first application corresponding to the second acceleration permission or the second acceleration mode, call a virtual network card of a virtual private network through the second application, intercept a data packet including an application identifier of the first application through the virtual network card, and call an application acceleration script of the second application to transmit the data packet.
[0161] In a possible implementation, the apparatus further includes:
[0162] the second obtaining module is configured to obtain network quality improvement information in a running process of the first application in response to the first application ending running;
[0163] the display module 1504 is configured to display the network quality improvement information.
[0164] The apparatus provided by the embodiments of the present application automatically triggers the second application to provide the first application with acceleration functions based on the corresponding acceleration permission or acceleration mode after the first application is started, and displays the current acceleration processing information to the user, so that the user does not need to manually operate in the application acceleration process, the operation path of the user in the application acceleration scenario is effectively simplified, and the human-computer interaction efficiency is improved.
[0165] It should be noted that the application program acceleration device provided in the above embodiments is only used for example to illustrate the division of the above function modules during application program acceleration. In actual application, the above functions can be completed by different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the application program acceleration device provided in the above embodiments and the application program acceleration device embodiment belong to the same concept, and the specific implementation process is detailed in the device embodiment, which will not be described here.
[0166] The computer device provided by the above technical solution can be implemented as a terminal or a server, for example, Figure 16 is a structural schematic diagram of a terminal provided by an embodiment of the present application. The terminal 1600 can be a smart phone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a notebook computer or a desktop computer. The terminal 1600 can also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0167] Generally, the terminal 1600 includes one or more processors 1601 and one or more memories 1602.
[0168] The processor 1601 can include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1601 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), a PLA (Programmable Logic Array). The processor 1601 can also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit), and the coprocessor being a low-power processor for processing data in a standby state. In some embodiments, the processor 1601 can be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 1601 can also include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
[0169] The memory 1602 can include one or more computer-readable storage media that can be non-transitory. The memory 1602 can also include a high-speed random access memory, and a nonvolatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1602 is used to store at least one program code for being executed by the processor 1601 to implement the application acceleration method provided by the method embodiments in the present application.
[0170] In some embodiments, the terminal 1600 can also optionally include a peripheral device interface 1603 and at least one peripheral device. The processor 1601, the memory 1602, and the peripheral device interface 1603 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 1603 through a bus, a signal line, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1604, a display screen 1605, a camera assembly 1606, an audio circuit 1607, and a power supply 1609.
[0171] The peripheral interface 1603 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 1601 and the memory 1602. In some embodiments, the processor 1601, the memory 1602 and the peripheral interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1601, the memory 1602 and the peripheral interface 1603 can be implemented on a separate chip or circuit board, and the present embodiments are not limited in this regard.
[0172] The radio frequency circuit 1604 is used to receive and send RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1604 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1604 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 1604 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1604 can also include NFC (Near Field Communication) related circuitry, and the present application is not limited in this regard.
[0173] The display screen 1605 is configured to display a UI (User Interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 1605 is a touch display screen, the display screen 1605 is further configured to capture touch signals on or above the surface of the display screen 1605. The touch signals can be input to the processor 1601 as control signals for processing. In this case, the display screen 1605 can also be configured to provide virtual buttons and / or virtual keyboard, also known as soft buttons and / or soft keyboard. In some embodiments, the display screen 1605 can be one, arranged on the front panel of the terminal 1600; in other embodiments, the display screen 1605 can be at least two, arranged on different surfaces of the terminal 1600 or in a folding design; in some embodiments, the display screen 1605 can be a flexible display screen, arranged on a curved surface or a folding surface of the terminal 1600. Even, the display screen 1605 can also be arranged in an irregular shape, i.e. a special-shaped screen. The display screen 1605 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.
[0174] The camera assembly 1606 is configured to capture images or videos. Optionally, the camera assembly 1606 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, the rear camera is at least two, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, to realize the background blur function by fusing the main camera and the depth-of-field camera, the panoramic shooting and VR (Virtual Reality) shooting function by fusing the main camera and the wide-angle camera, or other fusion shooting functions. In some embodiments, the camera assembly 1606 can further include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to the combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.
[0175] The audio circuit 1607 can include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into an electrical signal input to the processor 1601 for processing, or input to the radio frequency circuit 1604 to realize voice communication. For the purpose of stereo sound collection or noise reduction, the microphone can be multiple, respectively arranged at different parts of the terminal 1600. The microphone can also be an array microphone or an omnidirectional collection type microphone. The speaker is used to convert the electrical signal from the processor 1601 or the radio frequency circuit 1604 into sound waves. The speaker can be a traditional diaphragm speaker, or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only can the electrical signal be converted into a sound wave that humans can hear, but also can be converted into a sound wave that humans cannot hear for ranging purposes. In some embodiments, the audio circuit 1607 can also include a headphone jack.
[0176] The power supply 1609 is used to supply power to each component in the terminal 1600. The power supply 1609 can be alternating current, direct current, disposable battery or rechargeable battery. When the power supply 1609 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0177] In some embodiments, the terminal 1600 also includes one or more sensors 1610. The one or more sensors 1610 include but are not limited to: an acceleration sensor 1611, a gyroscope sensor 1612, a pressure sensor 1613, an optical sensor 1615, and a proximity sensor 1616.
[0178] The acceleration sensor 1611 can detect the acceleration in three coordinate axes of the coordinate system established by the terminal 1600. For example, the acceleration sensor 1611 can be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 1601 can control the display screen 1605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1611. The acceleration sensor 1611 can also be used for game or user motion data collection.
[0179] The gyroscope sensor 1612 can detect the body direction and rotation angle of the terminal 1600, and the gyroscope sensor 1612 can collect 3D actions of the user on the terminal 1600 in cooperation with the acceleration sensor 1611. The processor 1601 can realize the following functions according to the data collected by the gyroscope sensor 1612: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization when shooting, game control, and inertial navigation.
[0180] The pressure sensor 1613 can be disposed at the side frame of the terminal 1600 and / or the lower layer of the display screen 1605. When the pressure sensor 1613 is disposed at the side frame of the terminal 1600, the holding signal of the user to the terminal 1600 can be detected, and the left-hand or right-hand recognition or the shortcut operation can be performed by the processor 1601 according to the holding signal collected by the pressure sensor 1613. When the pressure sensor 1613 is disposed at the lower layer of the display screen 1605, the operable control on the UI interface can be controlled by the processor 1601 according to the pressure operation of the user to the display screen 1605. The operable control includes at least one of the button control, the scroll bar control, the icon control, and the menu control.
[0181] The optical sensor 1615 is used to collect the ambient light intensity. In one embodiment, the processor 1601 can control the display brightness of the display screen 1605 according to the ambient light intensity collected by the optical sensor 1615. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1605 is increased; when the ambient light intensity is low, the display brightness of the display screen 1605 is decreased. In another embodiment, the processor 1601 can also dynamically adjust the shooting parameter of the camera assembly 1606 according to the ambient light intensity collected by the optical sensor 1615.
[0182] The proximity sensor 1616, also called the distance sensor, is usually disposed at the front panel of the terminal 1600. The proximity sensor 1616 is used to collect the distance between the user and the front of the terminal 1600. In one embodiment, when the proximity sensor 1616 detects that the distance between the user and the front of the terminal 1600 gradually decreases, the display screen 1605 is switched from the bright screen state to the off-screen state by the processor 1601; when the proximity sensor 1616 detects that the distance between the user and the front of the terminal 1600 gradually increases, the display screen 1605 is switched from the off-screen state to the bright screen state by the processor 1601.
[0183] Those skilled in the art can understand that Figure 16 The structure shown in the above description does not constitute a limitation on the terminal 1600, and can include more or less components than the illustrated components, or combine certain components, or adopt a different component arrangement.
[0184] Figure 17is a structural schematic diagram of a server provided by an embodiment of the present application. The server 1700 can have great differences due to different configurations or performances, and can include one or more processors (Central Processing Units, CPUs) 1701 and one or more memories 1702. The one or more memories 1702 store at least one piece of program code, which is loaded and executed by the one or more processors 1701 to implement the method provided by each of the above-mentioned method embodiments. Of course, the server 1700 can also have a wired or wireless network interface, a keyboard, an input and output interface, and other components for realizing the functions of the device, and the like, so as to perform input and output. The server 1700 can also include other components for realizing the functions of the device, which are not described here.
[0185] In an example embodiment, a computer readable storage medium is also provided, for example, a memory including at least one piece of program code, which can be executed by a processor to complete the application acceleration method in the above-mentioned embodiments. For example, the computer readable storage medium can be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0186] In an example embodiment, a computer program product is also provided, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to make the computer device implement the operations performed by the application acceleration method.
[0187] Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by a program instructing relevant hardware, which can be stored in a computer readable storage medium. The storage medium mentioned above can be a Read-Only Memory, a magnetic disk or an optical disk, etc.
[0188] The above is only an optional embodiment of the present application, and is not used to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. An application program acceleration method characterized by, The method comprises: in response to starting running of a first application program, detecting an opening state of an acceleration function of a second application program, the second application program being configured to provide the acceleration function to the first application program; in response to the acceleration function of the second application program being in the opened state, triggering the acceleration function of the second application program to run; in response to the acceleration function of the second application program being in the unopened state, displaying a first prompt information in a running interface of the first application program, the first prompt information being configured to prompt to open the acceleration function; in response to a triggering operation on the first prompt information, displaying an acceleration interface, the acceleration interface comprising at least one permission opening control configured to open a running permission of the second application program, and the acceleration interface further comprising a progress increase value of a running permission indicated by each permission opening control; detecting a triggering operation on the at least one permission opening control; in response to the running permission corresponding to any permission opening control being opened, determining the progress increase value corresponding to the running permission; based on the progress increase value, updating a permission opening progress identifier configured to indicate an opening situation of the permission opening control; in response to the at least one permission opening control being all opened, displaying a dynamic effect of the acceleration function being opened in the acceleration interface; obtaining an acceleration permission or an acceleration mode matched by the second application program for the first application program; based on the acceleration permission or the acceleration mode matched by the first application program, performing acceleration processing on the first application program; in response to completion of starting of the first application program, synchronously displaying acceleration processing information for the first application program.
2. The method of claim 1, wherein, The acceleration interface further comprises an acceleration function opening control. After displaying the acceleration interface in response to the triggering operation on the first prompt information, the method further comprises: in response to detecting a triggering operation on the acceleration function opening control, detecting an opening state of the at least one permission opening control; in response to the at least one permission opening control being in the opened state, setting the acceleration function opening control to the opened state; in response to any permission opening control being in the unopened state, displaying a second prompt information configured to prompt to open the at least one permission opening control.
3. The method of claim 1, wherein, The method of displaying the acceleration interface in response to the triggering operation on the first prompt information comprises: in response to the triggering operation on the first prompt information, determining an acceleration permission or an acceleration mode matched by the first application program; displaying an acceleration interface corresponding to the acceleration permission or the acceleration mode.
4. The method of claim 1, wherein, The acceleration interface displays an application program selection entrance configured to provide a function of selecting an application program to be accelerated.
5. The method of claim 1, wherein, The method of detecting an opening state of an acceleration function of a second application program in response to starting running of a first application program comprises: in response to starting running of the first application program, obtaining current network environment data; in response to the network environment data not satisfying a reference condition, detecting the opening state of the acceleration function of the second application program.
6. The method of claim 1, wherein, The obtaining the acceleration permission or the acceleration mode matched by the second application for the first application comprises any of the following: obtaining a first account level of a logged-in user account in the first application, and determining the acceleration permission or the acceleration mode corresponding to the first account level as the acceleration permission or the acceleration mode corresponding to the first application; obtaining a first data table for storing application identifiers of applications allowed to be accelerated and corresponding acceleration permissions or acceleration modes, and querying the first data table based on an application identifier of the first application to determine the acceleration permission or the acceleration mode corresponding to the first application.
7. The method of claim 1, wherein, The acceleration processing of the first application based on the acceleration permission or the acceleration mode matched by the first application comprises: in response to the first application corresponding to a first acceleration permission or a first acceleration mode, obtaining a second data table for storing process identifiers of running processes, and clearing, by the second application, processes other than the first application and the second application indicated by the second data table; in response to the first application corresponding to a second acceleration permission or a second acceleration mode, calling a virtual network card of a virtual private network by the second application, intercepting a data packet including an application identifier of the first application by the virtual network card, and calling an application acceleration script of the second application to transmit the data packet.
8. The method of claim 1, wherein, After the synchronization of the acceleration processing information for the first application in response to the completion of the start of the first application, the method further comprises: in response to the end of the running of the first application, obtaining network quality improvement information in the running process of the first application; displaying the network quality improvement information.
9. An application acceleration device, comprising: The apparatus comprises: a triggering module configured to, in response to the start of a first application, detect an open state of an acceleration function of a second application, the second application being configured to provide the acceleration function to the first application, trigger the acceleration function of the second application to run in response to the acceleration function of the second application being in an open state, and display first prompt information in a running interface of the first application in response to the acceleration function of the second application being in a non-open state, the first prompt information being configured to prompt to open the acceleration function; a display module configured to, in response to a triggering operation on the first prompt information, display an acceleration interface, the acceleration interface comprising at least one permission opening control configured to open a running permission of the second application, and the acceleration interface further comprising a progress increase value of the running permission indicated by each permission opening control; a detection module configured to detect a triggering operation on the at least one permission opening control; a determination module configured to, in response to a running permission corresponding to any permission opening control being opened, determine a progress increase value corresponding to the running permission; and a display module configured to display the progress increase value corresponding to the running permission. The updating module is configured to update the permission opening progress identifier based on the progress increase value, the permission opening progress identifier being used to indicate an opening state of the permission opening control; The display module is configured to display a dynamic effect of the acceleration function being opened on the acceleration interface in response to all the at least one permission opening control being opened. The first obtaining module is configured to obtain an acceleration permission or an acceleration mode matched by the second application program for the first application program. The acceleration module is configured to perform acceleration processing on the first application program based on the acceleration permission or the acceleration mode matched by the first application program. The display module is configured to synchronously display the acceleration processing information for the first application program in response to the starting of the first application program being completed.
10. The apparatus of claim 9, wherein, The acceleration interface further includes an acceleration function opening control. The device further includes: The state detection module is configured to detect an opening state of the at least one permission opening control in response to detecting a triggering operation on the acceleration function opening control. The state setting module is configured to set the acceleration function opening control to an opened state in response to all the at least one permission opening control being in the opened state. The display module is configured to display second prompt information in response to any permission opening control being in an unopened state, the second prompt information being used to prompt the at least one permission opening control to be opened first.
11. The apparatus of claim 9, wherein, The display module is configured to: determine the acceleration permission or the acceleration mode matched by the first application program in response to a triggering operation on the first prompt information; and display an acceleration interface corresponding to the acceleration permission or the acceleration mode.
12. The apparatus of claim 9, wherein, The acceleration interface displays an application program selection entry, and the application program selection entry is used to provide a function of selecting an application program to be accelerated.
13. The apparatus of claim 9, wherein, The triggering module is configured to: obtain current network environment data in response to the first application program being started to run; and detect an opening state of the acceleration function of the second application program in response to the network environment data not satisfying a reference condition.
14. The apparatus of claim 9, wherein, The obtaining module is configured to perform any of the following: obtain a first account level of a logged-in user account in the first application program, and determine the acceleration permission or the acceleration mode corresponding to the first account level as the acceleration permission or the acceleration mode corresponding to the first application program; obtain a first data table, the first data table being used to store application identifiers of application programs allowed to be accelerated and corresponding acceleration permissions or acceleration modes, and query the first data table based on an application identifier of the first application program to determine the acceleration permission or the acceleration mode corresponding to the first application program.
15. The apparatus of claim 9, wherein, The acceleration module is configured to: obtain a second data table in response to the first application program corresponding to a first acceleration permission or a first acceleration mode, the second data table being used to store process identifiers of running processes, and clear, by the second application program, processes other than the first application program and the second application program indicated by the second data table. In response to the first application program corresponding to a second acceleration permission or a second acceleration mode, a virtual network card of a virtual private network is invoked through the second application program, a data packet including an application identifier of the first application program is intercepted through the virtual network card, an application acceleration script of the second application program is invoked, and the data packet is transmitted.
16. The apparatus of claim 9, wherein, The apparatus further includes: A second acquisition module is configured to acquire network quality improvement information during running of the first application program in response to the first application program ending running. A display module is configured to display the network quality improvement information.
17. A computer device, comprising: The computer device includes one or more processors and one or more memories, and the one or more memories store at least one computer program, which is loaded and executed by the one or more processors to implement operations performed by the application program acceleration method according to any one of claims 1 to 8.
18. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one computer program, which is loaded and executed by the processor to implement operations performed by the application program acceleration method according to any one of claims 1 to 8.
Citation Information
Patent Citations
User equipment and method for realizing data transmission thereof
CN106851682A
Method for controlling application programs and mobile terminal
CN108089806A
Data transmission method, device and equipment and storage medium
CN110233937A