CN107832127B - Application control method and related product - Google Patents

Application control method and related product Download PDF

Info

Publication number
CN107832127B
CN107832127B CN201710985662.2A CN201710985662A CN107832127B CN 107832127 B CN107832127 B CN 107832127B CN 201710985662 A CN201710985662 A CN 201710985662A CN 107832127 B CN107832127 B CN 107832127B
Authority
CN
China
Prior art keywords
target
target operation
operation instruction
instruction
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710985662.2A
Other languages
Chinese (zh)
Other versions
CN107832127A (en
Inventor
林志泳
刘美
莫瑞宏
张俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710985662.2A priority Critical patent/CN107832127B/en
Publication of CN107832127A publication Critical patent/CN107832127A/en
Application granted granted Critical
Publication of CN107832127B publication Critical patent/CN107832127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application

Abstract

The embodiment of the invention discloses an application control method and a related product, wherein the method comprises the following steps: monitoring the running state of each application in the background when the target game runs in the foreground; if a target operation instruction triggered by a target application running in a background is monitored, judging whether the target operation instruction belongs to a preset instruction set; and if the target operation instruction belongs to a preset instruction set, limiting the operation corresponding to the target operation instruction. The embodiment of the invention can limit some operations of background application when the game runs on the foreground, so as to ensure that the bandwidth of the game is kept in a certain range, achieve the aim of accelerating the game and improve the user experience.

Description

Application control method and related product
Technical Field
The invention relates to the technical field of mobile terminals, in particular to an application control method and a related product.
Background
With the widespread application of mobile terminals (mobile phones, tablet computers, etc.), the applications that the mobile terminals can support are increasing, the functions are increasing, and the mobile terminals are developing towards diversification and individuation, and become indispensable electronic products in the life of users.
Currently, games use a user scenario that is important for competing with games with mobile terminals. The user pays great attention to the speed and performance of the game, and if the speed, performance and network state of the game cannot be guaranteed by sufficient resources when the user uses the game, the user will feel bad experiences such as jamming, disconnection and the like, for example: the critical game scene is jammed and disconnected, which causes a group battle failure, a battle failure and the like, wherein one important reason is that many three-party applications may perform some activities in the background when the user uses the game scene, and seize resources used by foreground games, so that the game resources are not sufficiently guaranteed when the user plays games, for example, if the game is downloaded in the background or cached, memory will be occupied, memory resources of the foreground games are not sufficiently allocated, and the game is jammed, therefore, how to control the background applications is realized, and the problem of increasing the game speed needs to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides an application control method and a related product, which can realize the control of background application so as to improve the game speed.
In a first aspect, an embodiment of the present invention provides an application control method, where the method includes:
monitoring the running state of each application in the background when the target game runs in the foreground;
if a target operation instruction triggered by a target application running in a background is monitored, judging whether the target operation instruction belongs to a preset instruction set;
and if the target operation instruction belongs to a preset instruction set, limiting the operation corresponding to the target operation instruction.
In a second aspect, an embodiment of the present invention provides an application control apparatus, including:
the monitoring unit is used for monitoring the running state of each application in the background when the target game runs on the foreground;
the first judgment unit is used for judging whether a target operation instruction triggered by a target application running in a background belongs to a preset instruction set or not if the target operation instruction is monitored;
and the processing unit is used for limiting the operation corresponding to the target operation instruction if the target operation instruction belongs to a preset instruction set.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for some or all of the steps as described in the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium is used for storing a computer program, where the computer program is used to make a computer execute some or all of the steps described in the first aspect of the present invention.
In a fifth aspect, embodiments of the present invention provide a computer program product, wherein the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present invention. The computer program product may be a software installation package.
The embodiment of the invention has the following beneficial effects:
it can be seen that, in the embodiment of the present invention, when a target game runs on a foreground, the running status of each application in the background is monitored, if a target operation instruction triggered by the target application running in the background is monitored, whether the target operation instruction belongs to a preset instruction set is determined, and if the target operation instruction belongs to the preset instruction set, an operation corresponding to the target operation instruction is limited, so that when the game runs on the foreground, some operations of the background application can be limited, so as to ensure that the bandwidth of the game is kept within a certain range, achieve the purpose of accelerating the game, and improve user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an application control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another application control method disclosed in the embodiment of the present invention;
FIG. 3 is a flow chart of another application control method disclosed in the embodiment of the present invention;
fig. 4A is a schematic structural diagram of an application control apparatus according to an embodiment of the present invention;
FIG. 4B is a schematic diagram of a processing unit of the application control apparatus depicted in FIG. 4A according to an embodiment of the present invention;
FIG. 4C is a schematic diagram of another structure of the application control apparatus depicted in FIG. 4A according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present invention may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
In specific implementation, in the current Android system, for a scene in which a user uses a game, no special Processing is performed at the present stage, and some Processing for ensuring that game resources are sufficient is not performed on the game scene, for example, resources such as a game network speed, a memory, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), an Input/Output (IO) and the like are ensured. Many third-party applications may perform some activities in the background when the user uses a game scene, and occupy resources used by foreground games, so that the game resources cannot be sufficiently guaranteed when the user plays games. For example: if the three-party applications are active in the background, or downloaded, or perform the action of occupying network resources in the background, the three-party applications will occupy network bandwidth and network resources, resulting in insufficient network bandwidth or network resource allocation of foreground games, and resulting in game stutter. Thus, in order to solve the above problem, an embodiment of the present invention provides an application control method, where the method includes:
monitoring the running state of each application in the background when the target game runs in the foreground;
if a target operation instruction triggered by a target application running in a background is monitored, judging whether the target operation instruction belongs to a preset instruction set;
and if the target operation instruction belongs to a preset instruction set, limiting the operation corresponding to the target operation instruction.
It can be seen that, in the embodiment of the present invention, when a target game runs on a foreground, the running status of each application in the background is monitored, if a target operation instruction triggered by the target application running in the background is monitored, whether the target operation instruction belongs to a preset instruction set is determined, and if the target operation instruction belongs to the preset instruction set, an operation corresponding to the target operation instruction is limited, so that when the game runs on the foreground, some operations of the background application can be limited, so as to ensure that the bandwidth of the game is kept within a certain range, achieve the purpose of accelerating the game, and improve user experience.
Of course, although the embodiment of the present invention is directed to a game, if other situations occur, for example, a certain program is run, a movie is downloaded, or an important file is transmitted, a similar idea to that of the embodiment of the present invention may be used to limit a background application, so as to ensure that the foreground application has a smaller running influence, and on the other hand, other background applications may also have a room to play, for example, when you download a movie, you may also receive a voice chat message sent by another person, thereby improving user experience.
Fig. 1 is a schematic flowchart illustrating an embodiment of an application control method according to an embodiment of the present invention. The application control method described in this embodiment includes the following steps:
101. and when the target game runs in the foreground, monitoring the running state of each application in the background.
In the embodiment of the invention, the background application is not limited anytime and anywhere, but is limited only when a certain trigger condition is met. When the target game runs in the foreground, the running condition of each application in the background can be detected, and each application can be specified by a user or defaulted by the system. In addition, the running status of each application in the background is monitored, for example, whether a certain instruction is received, whether a certain instruction is sent, whether a message is pushed, whether cache data is generated, and the like. The mobile terminal may perform the step of monitoring the operating status of each application in the background only for the target game and the target game is in the foreground.
Optionally, the target game may be set by the user or default by the system, and the target game may be any game installed in the mobile terminal. Certainly, not all games are in the game mode, the background application needs to be limited, and after all, if the background application is limited, the power consumption of the mobile terminal is also increased to a certain extent.
Optionally, the target game is run on a foreground, which mainly means that the target game is run on the foreground, and in a game mode, the game mode may be a process of starting the game and entering a game environment, or the game process is not limited herein.
102. And if a target operation instruction triggered by the target application running in the background is monitored, judging whether the target operation instruction belongs to a preset instruction set.
The preset instruction set can be set by a user, or the system defaults. The target application may be set by the user, or the system may default to be any third-party application in the mobile terminal, and specifically, the target application may be at least one of the following: video applications, social applications, payment applications, gaming applications, news applications, office applications, browser applications, antivirus applications, and the like.
Optionally, the preset instruction set may include at least one of the following: the update instruction is applied to the application for updating, and of course, during the update process, an update package is downloaded, the update package is used for updating the application, the download instruction is used for downloading data from a network, such as downloading pictures, updating web pages, and the like, the upload instruction is used for uploading data to the server, such as feeding back an application response message, synchronizing data (e.g., cloud synchronization), uploading pictures, and the like, and the receive instruction is used for receiving a message sent by the server, such as a push message, specifically, advertisement push, or video push. Certainly, the preset instruction set further includes other operation instructions, for example, a push instruction, and sometimes, when an application runs in the background and pushes a message to a user, normal game of the user may be affected, so that such an instruction may also be set in the preset instruction set, or a cache data generation instruction, and such an instruction is applied in the running process to generate cache data, and the cache data may occupy a certain memory resource to a certain extent, so that normal game of the user may also be affected.
Optionally, in the step 102, determining whether the target operation instruction belongs to a preset instruction set may include the following steps:
21. when the target operation instruction is an instruction consuming network resources, estimating the network resource occupancy rate corresponding to the target operation instruction, when the network resource occupancy rate is greater than a first preset threshold value, confirming that the target operation instruction belongs to the preset instruction set, and when the network resource occupancy rate is less than or equal to the first preset threshold value, confirming that the target operation instruction does not belong to the preset instruction set;
22. and when the target operation instruction is not an instruction consuming network resources, confirming that the target operation instruction does not belong to the preset instruction set.
The instructions consuming network resources mainly refer to instructions that need to occupy network bandwidth resources, such as an upgrade instruction, a download instruction, an upload instruction, and a receive instruction (for example, data sent by a receiving server, such as pictures and videos). The first preset threshold may be set by the user, or may be set by default. Of course, for the instruction consuming the network resource class, the network resource occupancy rate corresponding to the target operation instruction may be estimated, for example, the network resource occupancy rate of the target application may be determined through the historical usage record of the target application. And further, when the network resource occupancy rate is greater than a first preset threshold value, determining that the target operation instruction belongs to a preset instruction set, and when the network resource occupancy rate is less than or equal to the first preset threshold value, determining that the target operation instruction does not belong to the preset instruction set. Of course, when the target operation instruction is not an instruction consuming the network resource class, it is determined that the target operation instruction does not belong to the preset instruction set. Therefore, the preset instruction set can be determined through the network resource occupancy rate corresponding to the instruction and possibly occupying the network resources, so that some background operations can still be performed during foreground games to a great extent, normal operation of background applications is guaranteed, and user experience is improved under the condition that user games are not influenced.
Optionally, in the step 102, determining whether the target operation instruction belongs to a preset instruction set may be implemented as follows:
and determining the preset instruction set corresponding to the target game according to the corresponding relation between the preset game and the instruction set, and executing the step of judging whether the target operation instruction belongs to the preset instruction set.
The preset game and the instruction set may be stored in the mobile terminal in advance. Further, a preset instruction set corresponding to the target game may be determined according to the correspondence between the preset game and the instruction set. Different games can correspond to different instruction sets, so that the method is more targeted, can flexibly and effectively limit some operations of background applications, and can finish the operation of some background applications under the condition of not influencing the normal operation of foreground games.
103. And if the target operation instruction belongs to a preset instruction set, limiting the operation corresponding to the target operation instruction.
If the target operation instruction belongs to the preset instruction set, the operation corresponding to the target operation instruction may be limited, for example, the operation corresponding to the target operation instruction may be limited to execute the instruction corresponding to the target operation only when the target operation instruction exits from the game mode of the target game, or the operation corresponding to the target operation instruction may be limited to execute the instruction corresponding to the target operation only when the target game is located on the background, or the execution time of the target operation instruction may be directly delayed, for example, the operation corresponding to the target operation instruction may be executed after a specified time period, and the specified time period may be set by the user or default.
Optionally, if the target operation instruction does not belong to the preset instruction set, the operation corresponding to the target operation instruction may be executed.
Optionally, in step 103, limiting the operation corresponding to the target operation instruction may include the following steps:
31. if the target game is always in the foreground, operation corresponding to the target operation instruction is forbidden;
32. and if the target game is switched to the background, determining the execution priority corresponding to the target operation instruction, and executing the target operation instruction according to the execution priority.
If the target game is in the foreground all the time, the operation corresponding to the target operation instruction can be forbidden, that is, if the target game is in the foreground all the time, the user is indicated to be in the game all the time, the operation corresponding to the target operation instruction can be limited, so that background activities can be reduced, memory resources are saved, and the purpose of accelerating the game is achieved. If the target game is switched to the background, the user may be considered not to want the game temporarily, and therefore, the operation corresponding to the target operation command may not be prohibited, and the number of possibly limited commands may be large during the game, and therefore, the execution priority corresponding to the target operation command may be determined, and the target operation command may be executed according to the execution priority, and thus, the target operation command may be maintained to be executed in order.
Optionally, in step 103, limiting the operation corresponding to the target operation instruction may include the following steps:
33. acquiring user operation frequency;
34. when the duration of the user operation frequency lower than a second preset threshold is greater than a third preset threshold, judging whether the user operates the target game;
35. and if the user is not operating the target game, executing the target operation instruction.
The second preset threshold and the third preset threshold can be set by the user, or the system is default. The above user operation frequency may be understood as the number of pressing times of pressing the touch display screen in a unit time, which indicates, to a certain extent, the severity of the user game, so that, if the duration of the user operation frequency being lower than the second preset threshold is greater than the third preset threshold, it may be determined whether the user is operating the target game, because the user is not playing the game, the target operation instruction may be executed, and if the user is playing the game, the target operation instruction may not be executed. Therefore, the state of the user is judged through the operation frequency, if the user does not play games, the target operation instruction can be executed, the user cannot be influenced at the moment, the user experience is improved, and some activities of the background application are completed, so that the background application can be updated in time, or other communication is completed.
Optionally, in step 103, limiting the operation corresponding to the target operation instruction may be implemented as follows:
and limiting the network rate of the operation corresponding to the target operation instruction.
The network rate of the operation corresponding to the target operation instruction may be limited, for example, the network rate of the operation corresponding to the target operation instruction is lower than a preset network rate, so that the execution of the operation corresponding to the target operation instruction may not affect the normal game of the user, and the purpose of running the background application may also be achieved, where the preset network rate may be set by the user or default by the system. Of course, different applications, different operating instructions, may correspond to different network rates.
It can be seen that, in the embodiment of the present invention, when a target game runs on a foreground, the running status of each application in the background is monitored, if a target operation instruction triggered by the target application running in the background is monitored, whether the target operation instruction belongs to a preset instruction set is determined, and if the target operation instruction belongs to the preset instruction set, an operation corresponding to the target operation instruction is limited, so that when the game runs on the foreground, some operations of the background application can be limited, so as to ensure that the bandwidth of the game is kept within a certain range, achieve the purpose of accelerating the game, and improve user experience.
Please refer to fig. 2, which is a flowchart illustrating an embodiment of an application control method according to an embodiment of the present invention. The application control method described in this embodiment includes the following steps:
201. and when the target game runs in the foreground, judging whether the target game starts a game acceleration function or not.
The game acceleration function can be understood as a control switch of a control, of course, the game acceleration function can be started for online games, and the game acceleration function can not be started for non-online games, after all, if the game is not online, the game acceleration function does not need to consume network resources, and therefore, the quality of network bandwidth is not affected.
202. And if so, monitoring the running condition of each application in the background.
If the target game starts the game acceleration function, the step of monitoring the running state of each application in the background can be executed, and if the target game does not start the game acceleration function, the running state of each application in the background can not be monitored, so that the embodiment of the invention can be executed through one control.
203. And if a target operation instruction triggered by the target application running in the background is monitored, judging whether the target operation instruction belongs to a preset instruction set.
204. And if the target operation instruction belongs to a preset instruction set, limiting the operation corresponding to the target operation instruction.
The detailed description of the steps 203 to 204 may refer to the corresponding steps of the application control method described in fig. 1, and will not be described herein again.
For example, in the game mode, once a game runs in the foreground, the game acceleration function may determine whether the game starts the acceleration function, if the game starts the acceleration function, it may determine whether the network protection function is started, if the network protection function is started, the network of other applications in the background is limited, and network access, network operation, and network communication are all prohibited by means of directly limiting network policies such as iptable. Therefore, through the control of a blacklist (a preset instruction set), when the game exits, the network strategy is recovered, the network prohibition is changed into the network permission, and therefore, limited operations can be executed in the background when the game exits or the user does not play the game, smooth operation of background application is guaranteed, and user experience is improved.
It can be seen that, in the embodiment of the present invention, when a target game runs on a foreground, whether the target game starts a game acceleration function is determined, if yes, the running status of each application in the background is monitored, if a target operation instruction triggered by the target application running in the background is monitored, whether the target operation instruction belongs to a preset instruction set is determined, and if the target operation instruction belongs to the preset instruction set, an operation corresponding to the target operation instruction is limited, so that, when the game runs on the foreground, some operations of the background application can be limited, so as to ensure that the bandwidth of the game is kept within a certain range, achieve the purpose of game acceleration, and improve user experience.
Please refer to fig. 3, which is a flowchart illustrating an embodiment of an application control method according to an embodiment of the present invention. The application control method described in this embodiment includes the following steps:
301. and when the target game runs in the foreground, judging whether the target game is a preset application.
The preset application can be set by the user or defaulted by the system. As such, embodiments of the present invention may be implemented only for specific applications.
302. And monitoring the running state of each application in the background when the target game is the preset application.
And when the target game is a preset application, executing the step of monitoring the running state of each application in the background. If the target game is not the preset application, the step of monitoring the running state of each background application may not be executed.
303. And if a target operation instruction triggered by the target application running in the background is monitored, judging whether the target operation instruction belongs to a preset instruction set.
304. And if the target operation instruction belongs to a preset instruction set, limiting the operation corresponding to the target operation instruction.
The detailed descriptions of the steps 302-304 may refer to the corresponding steps of the application control method described in fig. 1, and are not repeated herein.
It can be seen that, in the embodiment of the present invention, when the target game runs on the foreground, it is determined whether the target game is a preset application, if yes, the running status of each application in the background is monitored, if a target operation instruction triggered by the target application running in the background is monitored, it is determined whether the target operation instruction belongs to a preset instruction set, and if the target operation instruction belongs to the preset instruction set, an operation corresponding to the target operation instruction is limited.
Referring to fig. 4A, fig. 4A is a schematic structural diagram of an application control device according to the present embodiment. The application control device is applied to a mobile terminal, and comprises: a monitoring unit 401, a first judging unit 402 and a processing unit 403, wherein,
the monitoring unit 401 is configured to monitor the running status of each application in the background when the target game runs on the foreground;
a first determining unit 402, configured to determine whether a target operation instruction triggered by a target application running in a background belongs to a preset instruction set if the target operation instruction is monitored;
the processing unit 403 is configured to, if the target operation instruction belongs to a preset instruction set, limit an operation corresponding to the target operation instruction.
Optionally, the first determining unit 402 is specifically configured to:
when the target operation instruction is an instruction consuming network resources, estimating the network resource occupancy rate corresponding to the target operation instruction, when the network resource occupancy rate is greater than a first preset threshold value, confirming that the target operation instruction belongs to the preset instruction set, and when the network resource occupancy rate is less than or equal to the first preset threshold value, confirming that the target operation instruction does not belong to the preset instruction set;
and when the target operation instruction is not an instruction consuming network resources, confirming that the target operation instruction does not belong to the preset instruction set.
Optionally, the processing unit 403 is specifically configured to:
if the target game is always in the foreground, operation corresponding to the target operation instruction is forbidden;
and if the target game is switched to the background, determining the execution priority corresponding to the target operation instruction, and executing the target operation instruction according to the execution priority.
Alternatively, as shown in fig. 4B, fig. 4B is a detailed structure of the processing unit 403 of the application control apparatus depicted in fig. 4A, where the processing unit 403 may include: the obtaining module 4031, the determining module 4032 and the executing module 4033 specifically include the following:
an obtaining module 4031, configured to obtain a user operation frequency;
a determining module 4032, configured to determine whether the user is operating the target game when the duration of the user operation frequency that is lower than the second preset threshold is greater than a third preset threshold;
an executing module 4033, configured to execute the target operation instruction if the user is not operating the target game.
Alternatively, as shown in fig. 4C, fig. 4C is a modified structure of the application control device depicted in fig. 4A, and compared with fig. 4A, the device depicted in fig. 4C may further include: the second determining unit 404 is specifically as follows:
a second determining unit 404, configured to determine whether the target game starts a game acceleration function, and if so, the monitoring unit 401 executes the step of monitoring the operating status of each application in the background.
It can be seen that, the application control device described in the embodiment of the present invention monitors the running status of each application in the background when the target game runs in the foreground, determines whether the target operation instruction belongs to the preset instruction set if the target operation instruction triggered by the target application running in the background is monitored, and limits the operation corresponding to the target operation instruction if the target operation instruction belongs to the preset instruction set.
It should be noted that the application control device described in the embodiment of the device of the present invention is presented in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
For example, the monitoring unit 401 may be implemented by the mobile terminal shown in fig. 5, and specifically, the processor 3000 may monitor the running status of each application in the background when the target game runs in the foreground by calling the executable program code in the memory 4000.
Fig. 5 is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present invention. The mobile terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, e.g., a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 being connected by a bus 5000.
The input device 1000 may be a touch panel, a physical button, or a mouse.
The output device 2000 may be a display screen.
The memory 4000 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 4000 is used for storing a set of program codes, and the input device 1000, the output device 2000 and the processor 3000 are used for calling the program codes stored in the memory 4000 to execute the following operations:
monitoring the running state of each application in the background when the target game runs in the foreground;
if a target operation instruction triggered by a target application running in a background is monitored, judging whether the target operation instruction belongs to a preset instruction set;
and if the target operation instruction belongs to a preset instruction set, limiting the operation corresponding to the target operation instruction.
Optionally, the determining, by the processor 3000, whether the target operation instruction belongs to a preset instruction set includes:
when the target operation instruction is an instruction consuming network resources, estimating the network resource occupancy rate corresponding to the target operation instruction, when the network resource occupancy rate is greater than a first preset threshold value, confirming that the target operation instruction belongs to the preset instruction set, and when the network resource occupancy rate is less than or equal to the first preset threshold value, confirming that the target operation instruction does not belong to the preset instruction set;
and when the target operation instruction is not an instruction consuming network resources, confirming that the target operation instruction does not belong to the preset instruction set.
Optionally, the processor 3000 limits an operation corresponding to the target operation instruction, including:
if the target game is always in the foreground, operation corresponding to the target operation instruction is forbidden;
and if the target game is switched to the background, determining the execution priority corresponding to the target operation instruction, and executing the target operation instruction according to the execution priority.
Optionally, the processor 3000 limits an operation corresponding to the target operation instruction, including:
acquiring user operation frequency;
when the duration of the user operation frequency lower than a second preset threshold is greater than a third preset threshold, judging whether the user operates the target game;
and if the user is not operating the target game, executing the target operation instruction.
Optionally, the processor 3000 is further specifically configured to perform the following operations:
and judging whether the target game starts a game acceleration function, if so, executing the step of monitoring the running state of each application in the background.
An embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the application control methods described in the above method embodiments.
Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the application control methods as recited in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An application control method, comprising:
monitoring the running state of each application in the background when the target game runs in the foreground;
if a target operation instruction triggered by a target application running in a background is monitored, judging whether the target operation instruction belongs to a preset instruction set or not, wherein the judging step comprises the following steps of: when the target operation instruction is an instruction for consuming network resources, estimating the network resource occupancy rate corresponding to the target operation instruction, and when the network resource occupancy rate is greater than a first preset threshold value, confirming that the target operation instruction belongs to the preset instruction set; the instruction for consuming the network resource class is an instruction for occupying network bandwidth resources;
if the target operation instruction belongs to a preset instruction set, limiting the operation corresponding to the target operation instruction, including: limiting the network rate of the operation corresponding to the target operation instruction so that the network rate of the operation corresponding to the target operation instruction is lower than a preset network rate; the preset network rates corresponding to different target operation instructions are different;
the limiting the operation corresponding to the target operation instruction further comprises: acquiring user operation frequency; when the duration of the user operation frequency lower than a second preset threshold is greater than a third preset threshold, judging whether the user operates the target game; and if the user is not operating the target game, executing the target operation instruction.
2. The method according to claim 1, wherein the determining whether the target operation instruction belongs to a preset instruction set further comprises:
when the network resource occupancy rate is less than or equal to the first preset threshold value, confirming that the target operation instruction does not belong to the preset instruction set;
and when the target operation instruction is not an instruction consuming network resources, confirming that the target operation instruction does not belong to the preset instruction set.
3. The method according to claim 1 or 2, wherein the limiting the operation corresponding to the target operation instruction comprises:
and if the target game is switched to the background, determining the execution priority corresponding to the target operation instruction, and executing the target operation instruction according to the execution priority.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
and judging whether the target game starts a game acceleration function, if so, executing the step of monitoring the running state of each application in the background.
5. An application control apparatus, comprising:
the monitoring unit is used for monitoring the running state of each application in the background when the target game runs on the foreground;
the first judging unit is used for judging whether a target operation instruction triggered by a target application running in a background belongs to a preset instruction set or not if the target operation instruction triggered by the target application running in the background is monitored, and the judging unit comprises the following steps: when the target operation instruction is an instruction for consuming network resources, estimating the network resource occupancy rate corresponding to the target operation instruction, and when the network resource occupancy rate is greater than a first preset threshold value, confirming that the target operation instruction belongs to the preset instruction set; the instruction for consuming the network resource class is an instruction for occupying network bandwidth resources;
the processing unit is configured to limit, if the target operation instruction belongs to a preset instruction set, an operation corresponding to the target operation instruction, and includes: limiting the network rate of the operation corresponding to the target operation instruction so that the network rate of the operation corresponding to the target operation instruction is lower than a preset network rate; the preset network rates corresponding to different target operation instructions are different;
the processing unit includes:
the acquisition module is used for acquiring the user operation frequency;
the judging module is used for judging whether the user operates the target game or not when the duration of the user operation frequency lower than the second preset threshold is larger than a third preset threshold;
and the execution module is used for executing the target operation instruction if the user is not operating the target game.
6. The apparatus according to claim 5, wherein the first determining unit is further specifically configured to:
when the network resource occupancy rate is less than or equal to the first preset threshold value, confirming that the target operation instruction does not belong to the preset instruction set;
and when the target operation instruction is not an instruction consuming network resources, confirming that the target operation instruction does not belong to the preset instruction set.
7. The apparatus according to claim 5 or 6, wherein the processing unit is specifically configured to:
and if the target game is switched to the background, determining the execution priority corresponding to the target operation instruction, and executing the target operation instruction according to the execution priority.
8. The apparatus of claim 5 or 6, further comprising:
and the second judgment unit is used for judging whether the target game starts a game acceleration function or not, and if so, the monitoring unit executes the step of monitoring the running state of each application in the background.
9. A mobile terminal, comprising: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for the method of any of claims 1-4.
10. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
CN201710985662.2A 2017-10-20 2017-10-20 Application control method and related product Active CN107832127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710985662.2A CN107832127B (en) 2017-10-20 2017-10-20 Application control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710985662.2A CN107832127B (en) 2017-10-20 2017-10-20 Application control method and related product

Publications (2)

Publication Number Publication Date
CN107832127A CN107832127A (en) 2018-03-23
CN107832127B true CN107832127B (en) 2022-03-01

Family

ID=61648747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710985662.2A Active CN107832127B (en) 2017-10-20 2017-10-20 Application control method and related product

Country Status (1)

Country Link
CN (1) CN107832127B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321201A (en) * 2018-03-29 2019-10-11 努比亚技术有限公司 A kind of background program processing method, terminal and computer readable storage medium
CN111736931A (en) * 2019-03-25 2020-10-02 青岛海信移动通信技术股份有限公司 Application display interface interception method and terminal
CN110532095B (en) * 2019-08-27 2022-06-03 Oppo(重庆)智能科技有限公司 Memory optimization method and device, electronic equipment and storage medium
CN110765432B (en) * 2019-09-25 2023-05-12 深圳市火乐科技发展有限公司 System file modification method, intelligent projector and related products

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111847A (en) * 2014-06-26 2014-10-22 北京奇虎科技有限公司 Method and device for improving running speed of games
CN106604361A (en) * 2016-12-07 2017-04-26 广东欧珀移动通信有限公司 WiFi scanning method and mobile terminal
CN107219972A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 A kind of method of application management, equipment and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9703615B2 (en) * 2014-07-18 2017-07-11 Facebook, Inc. Stepped sizing of code execution

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111847A (en) * 2014-06-26 2014-10-22 北京奇虎科技有限公司 Method and device for improving running speed of games
CN106604361A (en) * 2016-12-07 2017-04-26 广东欧珀移动通信有限公司 WiFi scanning method and mobile terminal
CN107219972A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 A kind of method of application management, equipment and computer-readable recording medium

Also Published As

Publication number Publication date
CN107832127A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN107832127B (en) Application control method and related product
CN109408223B (en) Resource allocation method, device, terminal and storage medium
CN107803029B (en) Display processing method and related product
CN106774786B (en) Power consumption control method and device
CN107817995B (en) Background silent application starting method and device and terminal equipment
CN107402790B (en) Application program starting method and device, storage medium and terminal
US10936371B2 (en) Method for resource allocation and related products
CN110333947B (en) Method, device, equipment and medium for loading subcontracting resources of game application
EP3062193A1 (en) Task management method and device
CN109343902B (en) Audio processing assembly operation method and device, terminal and storage medium
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN106022101B (en) application management method and terminal
CN112203034B (en) Frame rate control method and device and electronic equipment
CN113434300B (en) Data processing method and related device
CN107831886B (en) Control method and device for associated starting application, storage medium and intelligent terminal
CN106937258B (en) A kind of control method of broadcast, device and mobile terminal
CN107835984B (en) Thermal mitigation user experience
EP3486823B1 (en) System notification service control method, apparatus, terminal device, and storage medium
CN111132132A (en) Traffic management method and device and terminal equipment
EP3588991B1 (en) Method and apparatus for generating broadcast queue, storage medium, and electronic device
WO2018161609A1 (en) Broadcast receiver control method and device, mobile terminal and storage medium
CN108011860B (en) Method, device and terminal for processing broadcast message
CN109547630B (en) Cloud mobile phone use method and device during screen locking, computer equipment and storage medium
CN106776041B (en) Data processing method and device
CN112131029B (en) Broadcast processing method, apparatus, computer device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant