CN112612526B - Application program control method, device, terminal equipment and storage medium - Google Patents

Application program control method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112612526B
CN112612526B CN202011556870.9A CN202011556870A CN112612526B CN 112612526 B CN112612526 B CN 112612526B CN 202011556870 A CN202011556870 A CN 202011556870A CN 112612526 B CN112612526 B CN 112612526B
Authority
CN
China
Prior art keywords
preset
application program
time
application
control instruction
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
CN202011556870.9A
Other languages
Chinese (zh)
Other versions
CN112612526A (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.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance Co 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 Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN202011556870.9A priority Critical patent/CN112612526B/en
Publication of CN112612526A publication Critical patent/CN112612526A/en
Application granted granted Critical
Publication of CN112612526B publication Critical patent/CN112612526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/442Shutdown

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an application program control method, which is applied to terminal equipment, and comprises the following steps: acquiring a first memory occupancy rate of the terminal equipment when a preset application program is in a self-starting forbidden state and the preset application program is not running in the foreground and reaches a preset time; when the first memory occupancy rate does not exceed a preset threshold value, starting a preset application program so that the preset application program runs in the background; and closing the preset application program when the background running time of the preset application program reaches the preset duration. The invention also discloses an application program control device, terminal equipment and a computer readable storage medium. By adopting the method, the memory occupancy rate of the terminal equipment is lower, the preset application program runs in the background, and the preset application program can respond to the information sent by the server corresponding to the preset application program, so that the server can deploy the preset application program, and the user experience is better.

Description

Application program control method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of application control technologies, and in particular, to an application control method, an application control device, a terminal device, and a computer readable storage medium.
Background
With the development of technology, as terminal devices are popularized, the terminal devices can be smart televisions, smart set-top boxes, smart mobile phones and the like, and the memory and processor performance of the terminal devices are also improved rapidly.
In general, after a terminal device installs a plurality of non-system application programs, many application programs will run in the background, occupy memory and a processor for a long time, resulting in that the memory and the processor of the terminal device are too high, the resources of the terminal device are insufficient, and the terminal device is blocked.
Currently, by setting a blacklist application program by a user, a very-used application program in the blacklist is prohibited from running in the background. However, the very-used application programs in the blacklist cannot be run in the background, and the corresponding servers of the very-used application programs in the blacklist cannot obtain the corresponding application programs of the very-used application programs, so that the servers cannot deploy the preset application programs, and the experience of users is poor.
Disclosure of Invention
The invention mainly aims to provide an application program control method, an application program control device, terminal equipment and a computer readable storage medium, and aims to solve the technical problem that a server cannot deploy a preset application program in the prior art, so that user experience is poor.
In order to achieve the above object, the present invention provides an application program control method applied to a terminal device, the method comprising the steps of:
Acquiring a first memory occupancy rate of the terminal equipment when a preset application program is in a self-starting forbidden state and the preset application program is not running in the foreground and reaches a preset time;
when the first memory occupancy rate does not exceed a preset threshold value, starting the preset application program so that the preset application program runs in the background;
and closing the preset application program when the background running time of the preset application program reaches the preset duration.
Optionally, before the step of obtaining the first memory occupancy rate of the terminal device when the preset application program is in the self-starting prohibition state and the preset application program is not running in the foreground and the preset time is reached, the method further includes:
Acquiring preset application information of the preset application program;
the preset application information is sent to a server, so that the server obtains a first control instruction based on the preset application information, wherein the first control instruction comprises the preset time and the preset duration corresponding to the preset application program;
and when the first control instruction is received, acquiring the preset time and the preset duration from the first control instruction.
Optionally, the server stores configuration information of the preset application program; the step of sending the preset application information to a server so that the server obtains a first control instruction based on the preset application information includes:
And sending the preset application information to the server so that the server obtains the first control instruction based on the preset application information and the configuration information.
Optionally, when the first memory occupancy rate does not exceed a preset threshold, the preset application program is started, so that after the step of running the preset application program in the background, the method further includes:
Acquiring a second memory occupancy rate of the terminal equipment;
The second memory occupancy rate is sent to the server, so that the server obtains a second control instruction based on the second memory occupancy rate and the first control instruction, wherein the second control instruction comprises a first time and a first duration corresponding to the preset application program;
when the second control instruction is received, acquiring the first time and the first duration from the second control instruction;
Updating the preset time by using the first time to obtain updated preset time, and updating the preset time by using the first time to obtain updated preset time.
Optionally, after the step of closing the preset application program when the background running time of the preset application program reaches a preset duration, the method further includes:
Acquiring a third memory occupancy rate of the terminal equipment;
The third memory occupancy rate is sent to the server, so that the server obtains a third control instruction based on the third memory occupancy rate and the second control instruction, wherein the third control instruction comprises a second time and a second duration corresponding to the preset application program;
When the third control instruction is received, acquiring the second time and the second duration from the third control instruction;
Updating the updated preset time by using the second time to obtain updated preset time, and updating the updated preset time by using the second time to obtain updated preset time.
Optionally, after the step of closing the preset application program when the background running time of the preset application program reaches a preset duration, the method further includes:
When the uninstalled application programs in the preset application programs are detected, determining the uninstalled application programs in the preset application programs as first application programs;
the first application information of the first application program is sent to the server, so that the server obtains a fourth control instruction based on the first application information and the first control instruction, wherein the fourth control instruction comprises a third time and a third duration corresponding to the first application program;
when the fourth control instruction is received, acquiring the third time and the third duration from the fourth control instruction;
updating the preset time by using the third time to obtain updated preset time, and updating the preset time by using the third time to obtain updated preset time.
Optionally, after the step of closing the preset application program when the background running time of the preset application program reaches a preset duration, the method further includes:
when detecting that a new application program is added to the preset application program, determining the new application program and the preset application program as a second application program;
Transmitting second application information of the second application program to the server so that the server obtains a fifth control instruction based on the second application information and the first control instruction, wherein the fifth control instruction comprises a fourth time and a fourth duration corresponding to the second application program;
When the fifth control instruction is received, acquiring the fourth time and the fourth duration from the fifth control instruction;
updating the preset time by using the fourth time to obtain updated preset time, and updating the preset time by using the fourth time to obtain updated preset time.
In addition, in order to achieve the above object, the present invention also provides an application control device, applied to a terminal device, including:
The acquisition module is used for acquiring a first memory occupancy rate of the terminal equipment when a preset application program is in a self-starting forbidden state and reaches a preset time under the condition that the preset application program is not running in the foreground;
The starting module is used for starting the preset application program when the first memory occupancy rate does not exceed a preset threshold value, so that the preset application program runs in the background;
And the closing module is used for closing the preset application program when the background running time of the preset application program reaches the preset duration.
In addition, to achieve the above object, the present invention also proposes a terminal device including: the system comprises a memory, a processor and an application control program stored in the memory and running on the processor, wherein the application control program realizes the steps of the application control method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon an application control program which, when executed by a processor, implements the steps of the application control method as set forth in any one of the above.
The technical scheme of the invention provides an application program control method which is applied to terminal equipment, and comprises the following steps: when a preset application program is in a self-starting forbidden state and the preset application program is not running in the foreground, acquiring a first memory occupancy rate of the terminal equipment when a preset time is reached; when the first memory occupancy rate does not exceed a preset threshold value, starting the preset application program so that the preset application program runs in the background; and closing the preset application program when the background running time of the preset application program reaches a preset duration. In the existing application program control method, when the preset application program is forbidden to be started automatically, the preset application program cannot run in the background, the preset application program cannot respond to information sent by a server corresponding to the preset application program, and in the invention, when the first memory occupancy rate does not exceed a preset threshold, namely, the memory occupancy rate is lower, and when the preset time arrives, the preset application program is controlled to run in the background, when the preset application program runs in the background, the preset application program can respond to the information sent by the server corresponding to the preset application program, and when the preset time arrives, the preset application program is closed, so that the memory occupancy rate is reduced, and meanwhile, the preset application program is forbidden to be started automatically.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to the structures shown in these drawings without giving inventive effort to those skilled in the art.
Fig. 1 is a schematic diagram of a terminal device structure of a hardware running environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of an application control method according to the present invention;
Fig. 3 is a block diagram of a first embodiment of an application control device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings, in which it is evident that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments of the invention without undue burden, are within the scope of the invention.
The memory of the terminal equipment is insufficient, so that the terminal equipment is blocked. In general, after a plurality of non-system application programs are installed in a terminal device, many application programs can run in the background and occupy memory for a long time, so that the memory occupancy rate of the terminal device is too high, the resources of the terminal device are insufficient, and the terminal device is blocked.
Currently, by setting a blacklist application by a user, very-used applications in the blacklist are prohibited. But the application program which is not in the blacklist still runs in the background under the condition of not opening the running, and the terminal equipment still has the clamping. Meanwhile, the very-used application programs in the blacklist are closed, so that the corresponding servers of the very-used application programs in the blacklist cannot obtain the corresponding application programs of the very-used application programs, and the servers cannot deploy the preset application programs, so that the experience of users is poor.
Referring to fig. 1, fig. 1 is a schematic diagram of a terminal device structure of a hardware running environment according to an embodiment of the present invention.
The terminal device may be a Mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet personal computer (PAD), or other User Equipment (UE), a handheld device, a vehicle mounted device, a wearable device, a computing device, or other processing device connected to a wireless modem, a Mobile Station (MS), or the like. The terminal device may be referred to as a user terminal, a portable terminal, a desktop terminal, etc.
In general, a terminal device includes: at least one processor 301, a memory 302 and an application control program stored on said memory and executable on said processor, said application control program being configured to implement the steps of the application control method as described above.
Processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 301 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL processing), FPGA (field-programmable gate array), PLA (Programmable Logic Array ). Processor 301 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central ProcessingUnit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 301 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. The processor 301 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for handling relevant application control method operations so that the application control method model can be trained and learned autonomously, improving efficiency and accuracy.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement the application control method provided by the method embodiments of the present invention.
In some embodiments, the terminal may further optionally include: a communication interface 303, and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. The respective peripheral devices may be connected to the communication interface 303 through a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power supply 306.
The communication interface 303 may be used to connect at least one peripheral device associated with an I/O (Input/Output) to the processor 301 and the memory 302.. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 301, the memory 302, and the communication interface 303 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 304 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 304 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 304 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (WIRELESS FIDELITY ) networks. In some embodiments, the radio frequency circuit 304 may further include NFC (NEAR FIELD Communication) related circuits, which the present invention is not limited to.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 305 is a touch screen, the display 305 also has the ability to collect touch signals at or above the surface of the display 305. The touch signal may be input as a control signal to the processor 301 for processing. At this point, the display 305 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 305 may be one, the front panel of an electronic device; in other embodiments, the display screen 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display 305 may be a flexible display disposed on a curved surface or a folded surface of the electronic device. Even more, the display screen 305 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 305 may be made of LCD (LiquidCrystal Display ), OLED (organic light-emitting diode) or other materials.
The power supply 306 is used to power the various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the terminal device, and may include more or less components than illustrated, or may combine certain components, or may be arranged in different components.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein an application program control program is stored on the computer readable storage medium, and the application program control program realizes the steps of the application program control method when being executed by a processor. Therefore, a detailed description will not be given here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present invention, please refer to the description of the method embodiments of the present invention. As determined as an example, the program instructions may be deployed to be executed on one terminal device or on multiple terminal devices located at one site or on multiple terminal devices distributed across multiple sites and interconnected by a communication network.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of computer programs, which may be stored on a computer-readable storage medium, and which, when executed, may comprise the steps of the embodiments of the methods described above. The computer readable storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (random AccessMemory, RAM), or the like.
Based on the above hardware structure, an embodiment of the application control method of the present invention is presented.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of an application control method of the present invention, where the method is applied to a terminal device, and the method includes the following steps:
Step S11: and when the preset application program is in a self-starting forbidden state and the preset application program is not running in the foreground, acquiring the first memory occupancy rate of the terminal equipment when the preset time is reached.
It should be noted that, the execution main body of the present invention is a terminal device, an application program control program is installed on the terminal device, and when the terminal device executes the application program control program, the application program control method of the present invention is implemented; the terminal device may be a mobile terminal, a computer, or an intelligent set-top box, etc., and the present invention is not limited thereto.
The preset application program may be all application programs (sum of all unnecessary running system application programs and all non-system application programs) in the terminal equipment, or may enable part of application programs (part of unnecessary running system application programs and part of non-system application programs) in the terminal equipment. In addition, the user may set the preset application according to his own needs, for example, determine the preset application for the video application and the game application, and determine the chat application as a non-preset application.
The preset application program generally comprises a plurality of application programs, each application program has own preset time and preset duration, and an application program control program in the terminal equipment is required to control the starting and closing of each application program respectively according to the respective preset time and preset duration of each application program in the preset application program. The preset time and the preset duration are sent based on a server, and the server can be a server corresponding to an application program control program in the mobile terminal.
It should be noted that, the first memory occupancy rate refers to a memory occupancy rate of the terminal device obtained in real time when executing step S11 in the application control method of the present invention. The running of the preset application program means that both the process and the service of the preset application program are running.
Further, before step S11, the method further includes: acquiring preset application information of the preset application program; the preset application information is sent to a server, so that the server obtains a first control instruction based on the preset application information, wherein the first control instruction comprises the preset time and the preset duration corresponding to the preset application program; and when the first control instruction is received, acquiring the preset time and the preset duration from the first control instruction.
Specifically, the server stores configuration information of the preset application program; the step of sending the preset application information to a server so that the server obtains a first control instruction based on the preset application information includes: and sending the preset application information to the server so that the server obtains the first control instruction based on the preset application information and the configuration information.
It should be noted that, the preset application information is name, label or identification information of the preset application program, and the information used for characterizing the preset application program may be the preset application information; the user may send the configuration information to the server through the terminal device or other electronic devices, where the configuration information generally includes a background running time (a preset time is obtained based on the background running time, and typically, the preset time is the same as the background running time) and a background running time (a preset time is obtained based on the background running time, and typically, the preset time is the same as the background running time) of the preset application program, and the configuration information generally includes the background running time and the background running time of all the preset application programs. The preset time may be specific time information, for example, 12:00 a day, or may be cycle time information (the starting point of timing may be the time when the preset time is obtained from the first control instruction), for example, every 3 hours, etc., where the time when the preset time is obtained from the first control instruction is 12:00 a preset time is 15:00 a preset time is 18:00 a preset time.
Wherein, the configuration information sent by the user can be set by the user according to the own requirements
The preset times and preset durations corresponding to different preset applications are generally different, and one preset application corresponds to one preset time and one preset duration. For example, the a video application presets time to 12 per day: 00, the preset duration is 20 minutes, and the preset time of the B news application program is 14 per day: 00, the preset time is 10 minutes.
When the preset time and the preset duration of some preset application programs do not exist in the configuration information, the server can determine the preset time and the preset duration of the application programs based on the configuration information of other users.
It can be understood that the first control instruction includes a preset time and a preset duration of all preset applications. If the first control instruction does not include the preset time and the preset duration of some preset application programs, the preset application programs cannot be started automatically, and cannot be controlled to be started by the application program control program of the invention due to the lack of the preset time.
For example, the preset application programs include an a video application program, a B game application program and a C chat application program, and the server obtains a first control instruction based on the user configuration information and preset application information (application program names) of the a video application program, the B game application program and the C chat application program, wherein in the first control instruction, the preset time of the a video application program is 12:00 per day, the preset time period is 20 minutes, the preset time of the B game application program is 10:00, 15:00 and 19:00 per day, and the preset time period is 10 minutes; the preset time of the chat application program is every 2 hours, and the preset time length is 30 minutes. The terminal equipment respectively controls the A video application program, the B game application program and the C chat application program to be started at the corresponding preset time based on the preset time and the preset time of the A video application program, the B game application program and the C chat application program, controls the A video application program, the B game application program and the C chat application program to run in the background, and closes the A video application program, the B game application program and the C chat application program after the corresponding preset time is run in the background.
Step S12: and when the first memory occupancy rate does not exceed a preset threshold value, starting the preset application program so that the preset application program runs in the background.
It should be noted that, if the preset application program is not running in the foreground, at this time, the preset application program is running in the background, so that the running of the foreground application program is not affected, and meanwhile, the preset application program runs in the background, and can respond to the information sent by the server corresponding to the preset application program, so that the server can deploy the preset application program. The preset threshold value can be set by a user according to requirements, the invention is not limited, and the preset threshold value can be 70% or the like.
Further, after step S12, the method further includes: acquiring a second memory occupancy rate of the terminal equipment; the second memory occupancy rate is sent to the server, so that the server obtains a second control instruction based on the second memory occupancy rate and the first control instruction, wherein the second control instruction comprises a first time and a first duration corresponding to the preset application program; when the second control instruction is received, acquiring the first time and the first duration from the second control instruction; updating the preset time by using the first time to obtain updated preset time, and updating the preset time by using the first time to obtain updated preset time.
It should be noted that, after the preset application program is started, the memory occupancy rate of the terminal device may be changed, and at this time, the memory occupancy rate of the terminal device, that is, the second memory occupancy rate, is obtained, so that the server updates the preset time and the preset duration of the preset application program based on the second memory occupancy rate, where the updated preset time is the first time, and the updated preset duration is the first duration.
For example, when the second memory occupancy rate is higher (not exceeding the preset threshold value), the first time and the first duration of the preset application program may be obtained, so that the preset time is updated by using the first time, and the preset duration is updated by using the first duration, for example, the preset time of the a video application program is 12:00, the preset duration is 20 minutes, and the server obtains the second control instruction based on the obtained second memory occupancy rate, where the first time is 13:00, the second duration is 15 minutes in the second control instruction, the updated preset time is 13:00, and the updated preset duration is 15 minutes.
The first time may be adjusted preset time including all preset application programs (preset time of an application program with preset time adjusted in the preset application program is adjusted preset time, preset time of an application program with unchanged preset time in the preset application program is not original preset time, that is, the first time includes a part with unchanged preset time and a part with changed preset time), the preset time is directly replaced by the first time, or the first time may also be adjusted time including only part of the preset application program (part of the preset application program with changed preset time), the original preset time of the part of the preset application program is directly replaced by the first time, and the preset time of other part of the preset application program is not changed. The second time, the second time period, the third time period, the fourth time period, and the fourth time period described below may be referred to herein, and are not described in detail.
Step S13: and closing the preset application program when the background running time of the preset application program reaches the preset duration.
It should be noted that, the background running time of the preset application program cannot be infinite, and is usually a preset duration (refer to the preset duration described above), so as to avoid that the running time of the preset application program is too long, and as the foreground application program runs, the memory occupancy rate is too high, and the terminal device is blocked.
Further, after step S13, the method further includes: acquiring a third memory occupancy rate of the terminal equipment; the third memory occupancy rate is sent to the server, so that the server obtains a third control instruction based on the third memory occupancy rate and the second control instruction, wherein the third control instruction comprises a second time and a second duration corresponding to the preset application program; when the third control instruction is received, acquiring the second time and the second duration from the third control instruction; updating the updated preset time by using the second time to obtain updated preset time, and updating the updated preset time by using the second time to obtain updated preset time.
It should be noted that, after the preset application program is closed, the memory occupancy rate of the terminal device may be changed, and at this time, the memory occupancy rate of the terminal device, that is, the third memory occupancy rate, is obtained, so that the server updates the updated preset time (first time) and the updated preset duration (first duration) of the preset application program based on the third memory occupancy rate, where the updated preset time is the second time, and the updated preset duration is the second duration.
The second time may be an adjusted preset time including all preset application programs, the updated preset time is directly replaced by the second time, or the first time may be an adjusted preset time including only part of the preset application programs (part of the preset application programs whose preset time is changed), the original updated preset time of the part of the preset application programs is directly replaced by the second time, and the original updated preset time of the other part of the preset application programs is not changed. Likewise, the second duration may be the same.
It can be understood that after the preset application is started and closed, the memory occupancy rate of the terminal device is obtained respectively, so that the server updates the preset time and the preset duration based on the memory occupancy rate, and the obtained updated preset time and preset duration are more reasonable: the preset application program is started at the preset time and runs for a preset time period, and the memory occupancy rate of the terminal equipment is relatively low during the running of the preset application program.
Further, after step S13, the method further includes: when the uninstalled application programs in the preset application programs are detected, determining the uninstalled application programs in the preset application programs as first application programs; the first application information of the first application program is sent to the server, so that the server obtains a fourth control instruction based on the first application information and the first control instruction, wherein the fourth control instruction comprises a third time and a third duration corresponding to the first application program; when the fourth control instruction is received, acquiring the third time and the third time length from the fourth control instruction; updating the preset time by using the third time to obtain updated preset time, and updating the preset time by using the third time to obtain updated preset time.
It should be noted that, after some of the preset application programs are uninstalled, the remaining application programs are first application programs, at this time, the preset duration and the preset time corresponding to the first control instruction need to be updated by using the first application information of the first application programs, that is, the preset time and the preset duration corresponding to the uninstalled application programs are deleted, the preset time corresponding to the remaining first application programs is third time, the preset duration corresponding to the remaining first application programs is third time, at this time, the updated preset duration is third time, and the updated preset time is third time.
Meanwhile, because some application programs in the preset application programs are deleted, the server can also adjust the preset time and the preset time length of the rest first application programs to a certain extent, the preset time after the adjustment of the first application programs is the third time, and the preset time length after the adjustment is the fourth time length.
It can be appreciated that the update procedure of this embodiment may also be an update of the second control instruction and the third control instruction, and reference is made to an update of the first control instruction, which is not described herein.
For example, the preset application programs include an M application program and an N application program, the preset time of the M application program is 10:00, the preset time period is 10 minutes, the preset time of the N application program is 12:00, and the preset time period is 12 minutes. When the M application is uninstalled, the server obtains a fourth control instruction according to the first application information of the first application (the M application is less than the preset application), the third time corresponding to the fourth control instruction includes the preset time of the N application being 11:00 (compared with the original adjustment), the third time corresponding to the fourth control instruction includes the preset time of the N application being 15 minutes, the M application no longer has the preset time and the preset time, at this time, the preset time of the preset application is updated (the preset time of the M application is deleted at the same time) by using the third time, and the updated preset time are obtained, wherein the preset time of the N application in the updated preset time is 11:00, the preset time of the N application in the updated preset time is 15 minutes, and the preset time of the other preset application (the preset time does not include the M application at this time) is not changed.
Further, after step S13, the method further includes: when detecting that a new application program is added to the preset application program, determining the new application program and the preset application program as a second application program; transmitting second application information of the second application program to the server so that the server obtains a fifth control instruction based on the second application information and the first control instruction, wherein the fifth control instruction comprises a fourth time and a fourth duration corresponding to the second application program; when the fifth control instruction is received, acquiring the fourth time and the fourth duration from the fifth control instruction; updating the preset time by using the fourth time to obtain updated preset time, and updating the preset time by using the fourth time to obtain updated preset time.
Specifically, the server may also store new configuration information, where the new configuration information includes configuration information of a new application program, and the server obtains a fifth control instruction based on the second application information, the new configuration information, and the first control instruction.
It should be noted that, a new application program is added to the preset application program (a new application program is installed or a new application program is added to the preset application program), the sum of the preset application program and the new application program is a second application program, at this time, the preset time and the preset time in the first control instruction need to be updated by using the second application information and the new configuration information (including the configuration information corresponding to the new application program, or may include the configuration information of the second application program, which may be sent by the user) of the second application program, so as to obtain a fifth control instruction, that is, the preset time and the preset time corresponding to the new application program are added, the preset time corresponding to the second application program (the sum of the preset application program and the new application program) is a fourth time, the preset time corresponding to the second application program is a fourth time, at this time, the updated preset time is a fourth time, and the updated preset time is a fourth time.
Meanwhile, as a new application program is added to the second application program relative to the preset application program, the server can also adjust the preset time and the preset time length of the preset application program to a certain extent, the third time comprises the preset time after the adjustment of the preset application program and the preset time of the new application program, and the fourth time comprises the preset time length after the adjustment of the preset application program and the preset time length of the new application program.
It can be appreciated that the update procedure of this embodiment may also be an update of the second control instruction and the third control instruction, and reference is made to an update of the first control instruction, which is not described herein.
For example, the preset application program includes a P application program, the preset time of the P application program is 10:00, the preset duration is 10 minutes, and the new application program is a Q application program. The server obtains a fifth control instruction according to second application information and new configuration information (comprising configuration information of the Q application program, wherein the background running time of the Q application program is 12:00 and the background running time is 12 minutes) of the second application program (more Q application programs than the preset application program), the fourth time corresponding to the fifth control instruction comprises preset time of the P application program is 9:00 (compared with the preset time of the Q application program which is adjusted originally) and preset time of the Q application program is 12:00, and the fourth time corresponding to the fifth control instruction comprises preset time of the P application program is 15 minutes and preset time of the Q application program is 12 minutes; at this time, the preset time of the preset application program is updated by using the fourth time, the preset time of the preset application program is updated by using the third time, and the updated preset time are obtained, wherein the preset time of the P application program in the updated preset time is 11:00, the preset time of the Q application program is increased by 12:00, the preset time of the P application program in the updated preset time is 15 minutes, the preset time of the Q application program is increased by 12 minutes, and the preset time of other preset application programs are unchanged.
The technical scheme of the invention provides an application program control method which is applied to terminal equipment, and comprises the following steps: when a preset application program is in a self-starting forbidden state and the preset application program is not running in the foreground, acquiring a first memory occupancy rate of the terminal equipment when a preset time is reached; when the first memory occupancy rate does not exceed a preset threshold value, starting the preset application program so that the preset application program runs in the background; and closing the preset application program when the background running time of the preset application program reaches a preset duration. In the existing application program control method, when the preset application program is forbidden to be started automatically, the preset application program cannot run in the background, the preset application program cannot respond to information sent by a server corresponding to the preset application program, and in the invention, when the first memory occupancy rate does not exceed a preset threshold, namely, the memory occupancy rate is lower, and when the preset time arrives, the preset application program is controlled to run in the background, when the preset application program runs in the background, the preset application program can respond to the information sent by the server corresponding to the preset application program, and when the preset time arrives, the preset application program is closed, so that the memory occupancy rate is reduced, and meanwhile, the preset application program is forbidden to be started automatically.
Referring to fig. 3, fig. 3 is a block diagram showing a first embodiment of an application control apparatus according to the present invention, the apparatus being applied to a terminal device, the apparatus comprising:
The acquiring module 10 is configured to acquire a first memory occupancy rate of the terminal device when a preset application program is in a self-starting prohibition state and reaches a preset time under a condition that the preset application program is not running in the foreground;
the starting module 20 is configured to start the preset application program when the first memory occupancy rate does not exceed a preset threshold value, so that the preset application program runs in the background;
And the closing module 30 is configured to close the preset application program when the background running time of the preset application program reaches a preset duration.
The foregoing description is only of the optional embodiments of the present invention, and is not intended to limit the scope of the invention, but the equivalent structural changes made by the description of the present invention and the accompanying drawings under the inventive concept of the present invention, or the direct/indirect application in other related technical fields are included in the scope of the present invention.

Claims (9)

1. An application control method, characterized by being applied to a terminal device, comprising the steps of:
acquiring a first memory occupancy rate of the terminal equipment when a preset application program is in a self-starting forbidden state and the preset application program is not running in the foreground and reaches a preset time;
when the first memory occupancy rate does not exceed a preset threshold value, starting the preset application program so that the preset application program runs in the background;
closing the preset application program when the background running time of the preset application program reaches a preset duration;
when the preset application program is in a self-starting prohibition state and the preset application program is not running in the foreground, and the preset time is reached, before the step of obtaining the first memory occupancy rate of the terminal device, the method further includes:
Acquiring preset application information of the preset application program;
The preset application information is sent to a server, so that the server obtains a first control instruction based on the preset application information, wherein the first control instruction comprises the preset time and the preset duration corresponding to the preset application program;
and when the first control instruction is received, acquiring the preset time and the preset duration from the first control instruction.
2. The application control method according to claim 1, wherein the server stores configuration information of the preset application; the step of sending the preset application information to a server so that the server obtains a first control instruction based on the preset application information includes:
And sending the preset application information to the server so that the server obtains the first control instruction based on the preset application information and the configuration information.
3. The application control method according to claim 2, wherein the step of starting the preset application when the first memory occupancy does not exceed a preset threshold, so that the preset application runs in the background, the method further comprises:
Acquiring a second memory occupancy rate of the terminal equipment;
The second memory occupancy rate is sent to the server, so that the server obtains a second control instruction based on the second memory occupancy rate and the first control instruction, wherein the second control instruction comprises a first time and a first duration corresponding to the preset application program;
when the second control instruction is received, acquiring the first time and the first duration from the second control instruction;
Updating the preset time by using the first time to obtain updated preset time, and updating the preset time by using the first time to obtain updated preset time.
4. The application control method according to claim 3, wherein after the step of closing the preset application when the background running time of the preset application reaches a preset duration, the method further comprises:
Acquiring a third memory occupancy rate of the terminal equipment;
The third memory occupancy rate is sent to the server, so that the server obtains a third control instruction based on the third memory occupancy rate and the second control instruction, wherein the third control instruction comprises a second time and a second duration corresponding to the preset application program;
when the third control instruction is received, acquiring the second time and the second duration from the third control instruction;
Updating the updated preset time by using the second time to obtain the updated preset time, and updating the updated preset time by using the second time to obtain the updated preset time.
5. The application control method according to claim 1, wherein after the step of closing the preset application when the background running time of the preset application reaches a preset duration, the method further comprises:
When the uninstalled application programs in the preset application programs are detected, determining the uninstalled application programs in the preset application programs as first application programs;
the first application information of the first application program is sent to the server, so that the server obtains a fourth control instruction based on the first application information and the first control instruction, wherein the fourth control instruction comprises a third time and a third duration corresponding to the first application program;
when the fourth control instruction is received, acquiring the third time and the third duration from the fourth control instruction;
Updating the preset time by using the third time to obtain updated preset time, and updating the preset time by using the third time to obtain updated preset time.
6. The application control method according to claim 1, wherein after the step of closing the preset application when the background running time of the preset application reaches a preset duration, the method further comprises:
When detecting that a new application program is added to the preset application program, determining the new application program and the preset application program as a second application program;
transmitting second application information of the second application program to the server so that the server obtains a fifth control instruction based on the second application information and the first control instruction, wherein the fifth control instruction comprises a fourth time and a fourth duration corresponding to the second application program;
When the fifth control instruction is received, acquiring the fourth time and the fourth duration from the fifth control instruction;
Updating the preset time by using the fourth time to obtain updated preset time, and updating the preset time by using the fourth time to obtain updated preset time.
7. An application control apparatus, applied to a terminal device, comprising:
the acquisition module is used for acquiring a first memory occupancy rate of the terminal equipment when a preset application program is in a self-starting forbidden state and reaches a preset time under the condition that the preset application program is not running in the foreground;
the starting module is used for starting the preset application program when the first memory occupancy rate does not exceed a preset threshold value, so that the preset application program runs in the background;
the closing module is used for closing the preset application program when the background running time of the preset application program reaches a preset duration;
The device is also used for acquiring preset application information of the preset application program; the preset application information is sent to a server, so that the server obtains a first control instruction based on the preset application information, wherein the first control instruction comprises the preset time and the preset duration corresponding to the preset application program; and when the first control instruction is received, acquiring the preset time and the preset duration from the first control instruction.
8. A terminal device, characterized in that the terminal device comprises: memory, a processor and an application control program stored on the memory and running on the processor, which when executed by the processor implements the steps of the application control method according to any one of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon an application control program, which when executed by a processor, implements the steps of the application control method according to any one of claims 1 to 6.
CN202011556870.9A 2020-12-24 2020-12-24 Application program control method, device, terminal equipment and storage medium Active CN112612526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011556870.9A CN112612526B (en) 2020-12-24 2020-12-24 Application program control method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011556870.9A CN112612526B (en) 2020-12-24 2020-12-24 Application program control method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112612526A CN112612526A (en) 2021-04-06
CN112612526B true CN112612526B (en) 2024-04-19

Family

ID=75244991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011556870.9A Active CN112612526B (en) 2020-12-24 2020-12-24 Application program control method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112612526B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138854A (en) * 2021-04-19 2021-07-20 北京字节跳动网络技术有限公司 Terminal control method and device, terminal and storage medium
CN114820272B (en) * 2022-03-18 2024-06-14 北京趋动智能科技有限公司 Data interaction method and device, storage medium and electronic equipment

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468645A (en) * 2013-09-13 2015-03-25 联想(北京)有限公司 Control method, electronic equipment, and information transmission method and device
CN105045637A (en) * 2015-08-14 2015-11-11 深圳市金立通信设备有限公司 Application start method and terminal
CN105138400A (en) * 2015-07-29 2015-12-09 努比亚技术有限公司 Application self-starting management method and apparatus
CN105677533A (en) * 2015-12-30 2016-06-15 广东欧珀移动通信有限公司 Application process monitoring method and device
CN105718284A (en) * 2016-01-18 2016-06-29 广东小天才科技有限公司 Application starting method and apparatus for communication terminal
CN105824664A (en) * 2016-03-08 2016-08-03 广东欧珀移动通信有限公司 Start monitoring method and device of application program and terminal equipment
CN105868006A (en) * 2015-12-09 2016-08-17 乐视致新电子科技(天津)有限公司 Application operation control method and apparatus
CN105893129A (en) * 2016-03-30 2016-08-24 北京小米移动软件有限公司 Processing method and device for application programs in terminal
CN106055360A (en) * 2016-05-30 2016-10-26 乐视控股(北京)有限公司 Starting method of application background service and mobile terminal
CN106156608A (en) * 2016-08-24 2016-11-23 四川长虹通信科技有限公司 One forbids background application self-start method and device
CN106598656A (en) * 2016-12-07 2017-04-26 北京奇虎科技有限公司 Mobile terminal and starting method and apparatus for banned application therefor
WO2017092498A1 (en) * 2015-11-30 2017-06-08 宇龙计算机通信科技(深圳)有限公司 Information management method and user terminal
CN106909447A (en) * 2015-12-23 2017-06-30 北京金山安全软件有限公司 Background application processing method and device and terminal
CN107506240A (en) * 2017-07-31 2017-12-22 广东欧珀移动通信有限公司 Background application management-control method, device, storage medium and electronic equipment
CN107526638A (en) * 2017-08-01 2017-12-29 广东欧珀移动通信有限公司 Applied program processing method, device, mobile terminal and storage medium
CN107766128A (en) * 2016-08-17 2018-03-06 华为技术有限公司 A kind of method and device for starting application
CN108307236A (en) * 2018-02-01 2018-07-20 深圳创维-Rgb电子有限公司 A kind of method, storage medium and the smart television of smart television memory optimization
CN108536529A (en) * 2018-03-30 2018-09-14 努比亚技术有限公司 A kind of multitask regulation and control method, equipment and computer readable storage medium
CN109992370A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN111045824A (en) * 2019-12-12 2020-04-21 Oppo广东移动通信有限公司 Application control method and device, electronic equipment and computer readable medium
WO2020093208A1 (en) * 2018-11-05 2020-05-14 深圳市欢太科技有限公司 Application processing method and apparatus, computer device, and computer readable storage medium
CN111611027A (en) * 2020-05-28 2020-09-01 Oppo广东移动通信有限公司 Method for starting application program, terminal equipment and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102050945B1 (en) * 2015-04-14 2019-12-02 후아웨이 테크놀러지 컴퍼니 리미티드 Terminal control method and apparatus, and terminal

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468645A (en) * 2013-09-13 2015-03-25 联想(北京)有限公司 Control method, electronic equipment, and information transmission method and device
CN105138400A (en) * 2015-07-29 2015-12-09 努比亚技术有限公司 Application self-starting management method and apparatus
CN105045637A (en) * 2015-08-14 2015-11-11 深圳市金立通信设备有限公司 Application start method and terminal
WO2017092498A1 (en) * 2015-11-30 2017-06-08 宇龙计算机通信科技(深圳)有限公司 Information management method and user terminal
CN105868006A (en) * 2015-12-09 2016-08-17 乐视致新电子科技(天津)有限公司 Application operation control method and apparatus
CN106909447A (en) * 2015-12-23 2017-06-30 北京金山安全软件有限公司 Background application processing method and device and terminal
CN105677533A (en) * 2015-12-30 2016-06-15 广东欧珀移动通信有限公司 Application process monitoring method and device
CN105718284A (en) * 2016-01-18 2016-06-29 广东小天才科技有限公司 Application starting method and apparatus for communication terminal
CN105824664A (en) * 2016-03-08 2016-08-03 广东欧珀移动通信有限公司 Start monitoring method and device of application program and terminal equipment
CN105893129A (en) * 2016-03-30 2016-08-24 北京小米移动软件有限公司 Processing method and device for application programs in terminal
CN106055360A (en) * 2016-05-30 2016-10-26 乐视控股(北京)有限公司 Starting method of application background service and mobile terminal
CN107766128A (en) * 2016-08-17 2018-03-06 华为技术有限公司 A kind of method and device for starting application
CN106156608A (en) * 2016-08-24 2016-11-23 四川长虹通信科技有限公司 One forbids background application self-start method and device
CN106598656A (en) * 2016-12-07 2017-04-26 北京奇虎科技有限公司 Mobile terminal and starting method and apparatus for banned application therefor
CN107506240A (en) * 2017-07-31 2017-12-22 广东欧珀移动通信有限公司 Background application management-control method, device, storage medium and electronic equipment
CN107526638A (en) * 2017-08-01 2017-12-29 广东欧珀移动通信有限公司 Applied program processing method, device, mobile terminal and storage medium
CN109992370A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN108307236A (en) * 2018-02-01 2018-07-20 深圳创维-Rgb电子有限公司 A kind of method, storage medium and the smart television of smart television memory optimization
CN108536529A (en) * 2018-03-30 2018-09-14 努比亚技术有限公司 A kind of multitask regulation and control method, equipment and computer readable storage medium
WO2020093208A1 (en) * 2018-11-05 2020-05-14 深圳市欢太科技有限公司 Application processing method and apparatus, computer device, and computer readable storage medium
CN111045824A (en) * 2019-12-12 2020-04-21 Oppo广东移动通信有限公司 Application control method and device, electronic equipment and computer readable medium
CN111611027A (en) * 2020-05-28 2020-09-01 Oppo广东移动通信有限公司 Method for starting application program, terminal equipment and readable storage medium

Also Published As

Publication number Publication date
CN112612526A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
US11314309B2 (en) Electronic device control method and apparatus, and electronic device
CN112612526B (en) Application program control method, device, terminal equipment and storage medium
CN112883036B (en) Index creation method, device, storage server and storage medium
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
KR20140112907A (en) System, apparatus and method for connecting short distance communication
CN112351097A (en) Device control method, device, sending end and storage medium
CN112689172B (en) Program playing method and device, set top box and storage medium
CN112566244B (en) Equipment positioning method, device, terminal equipment and storage medium
CN104219372A (en) A method and an apparatus for adjusting backlight brightness of a mobile terminal
CN113918280A (en) Dynamic adjustment method of virtual machine resources, terminal device and storage medium
CN113038232A (en) Video playing method, device, equipment, server and storage medium
CN112583907A (en) Connection method and device, smart home equipment and computer readable storage medium
CN112399686A (en) Light control method, device, equipment and storage medium
CN113784216B (en) Video clamping and recognizing method and device, terminal equipment and storage medium
CN113225234B (en) Asset detection method, device, terminal equipment and computer readable storage medium
CN112350895B (en) Keep-alive method and device for application program, equipment and computer readable storage medium
CN114594965A (en) Application software installation method and device, terminal equipment and storage medium
CN112532971A (en) Image processing method, image processing device, display terminal and computer readable storage medium
CN112584215B (en) Video transmission method and device, intelligent television and storage medium
CN112346885A (en) Electronic device control method, device, equipment and computer readable storage medium
CN112423004B (en) Video data transmission method, device, transmitting end and storage medium
CN112583706A (en) Gateway service processing method, gateway, receiving end, system and storage medium
CN112468870A (en) Video playing method, device, equipment and storage medium
CN114173172B (en) Data processing method, device, terminal equipment and storage medium
CN112349248B (en) Screen brightness adjusting method and device, multimedia terminal and computer readable 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
GR01 Patent grant
GR01 Patent grant