CN107463437B - Application control method and device, storage medium and electronic equipment - Google Patents

Application control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107463437B
CN107463437B CN201710644129.XA CN201710644129A CN107463437B CN 107463437 B CN107463437 B CN 107463437B CN 201710644129 A CN201710644129 A CN 201710644129A CN 107463437 B CN107463437 B CN 107463437B
Authority
CN
China
Prior art keywords
application
network
background
priority
applications
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
CN201710644129.XA
Other languages
Chinese (zh)
Other versions
CN107463437A (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 CN201710644129.XA priority Critical patent/CN107463437B/en
Publication of CN107463437A publication Critical patent/CN107463437A/en
Application granted granted Critical
Publication of CN107463437B publication Critical patent/CN107463437B/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
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses application control methods, devices, storage media and electronic equipment, wherein the application control method comprises the steps of judging whether the current electronic equipment is connected with a network or not when the operating memory occupancy is detected to be higher than a threshold, if so, determining the application preset priority corresponding to the network type of the connected network, determining the network type supported by background applications, adjusting the priority of each background application according to the application preset priority and the network type supported by the background applications, closing the corresponding background applications according to the priority of each background application from low to high so that the operating memory occupancy is not higher than a threshold.

Description

Application control method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to application management and control methods and apparatuses, a storage medium, and an electronic device.
Background
With the development of the internet and the mobile communication network, and with the rapid development of the processing capability and the storage capability of the electronic device, a great amount of applications are rapidly spread and used.
For background applications, when a large number of applications run simultaneously, a large amount of running memory space is occupied, and the electronic device runs unsmoothly.
Disclosure of Invention
The embodiment of the invention provides application management and control methods and devices, a storage medium and electronic equipment, which can reduce the power consumption of the electronic equipment.
, an embodiment of the present invention provides application control methods, which are applied to an electronic device, and the method includes:
when detecting that the operating memory occupancy is higher than the th threshold value, judging whether the current electronic equipment is connected with a network;
if so, determining the application preset priority corresponding to the network type of the connected network;
determining the network type supported by the background application;
adjusting the priority of each background application according to the preset priority of the application and the network type supported by the background application;
and closing the corresponding background applications according to the priority of each background application from low to high so as to ensure that the running memory occupation is not higher than the th threshold value.
In a second aspect, an embodiment of the present invention provides kinds of application control apparatuses, which are applied to an electronic device, and the apparatus includes:
the judging module is used for judging whether the current electronic equipment is connected with a network or not when the fact that the operating memory occupation amount is higher than an th threshold value is detected;
the level determining module is used for determining the application preset priority corresponding to the network type of the connected network when the judging module judges that the network type is positive;
the type determining module is used for determining the network type supported by the background application;
adjusting module, which is used to adjust the priority of each background application according to the application preset priority and the network type supported by the background application;
and the closing module is used for closing the corresponding background applications according to the priority of each background application from low to high so as to ensure that the running memory occupation amount is not higher than the th threshold value.
In a third aspect, an embodiment of the present invention further provides storage media, where the storage media stores therein a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the above application management and control method.
In a fourth aspect, an embodiment of the present invention further provides electronic devices, including a processor and a memory, where the processor is electrically connected to the memory, and the memory is used to store instructions and data, and the processor is used to execute the application management and control method.
The embodiment of the invention discloses application control methods, devices, storage media and electronic equipment, wherein the application control method comprises the steps of judging whether the current electronic equipment is connected with a network, if so, determining application preset priority corresponding to the network type of the connected network, determining the network type supported by background applications, adjusting the priority of each background application according to the application preset priority and the network type supported by the background applications, closing the corresponding background applications according to the priority of each background application from low to high so that the occupation amount of running memory is not higher than a threshold value.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a scene schematic diagram of an application management and control method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of types of methods for managing and controlling applications according to an embodiment of the present invention.
Fig. 3 is another kinds of flow charts of the application management and control apparatus according to the embodiment of the present invention.
Fig. 4 is a schematic diagram of another scenarios of the application management and control method according to the embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an application management and control apparatus according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a second structure of an application management and control apparatus according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a third application management and control apparatus according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a fourth application management and control apparatus according to an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a fifth structure of an application management and control apparatus according to an embodiment of the present invention.
Fig. 10 is a schematic view of kinds of structures of an electronic device according to an embodiment of the present invention.
Fig. 11 is another kinds of structural schematic diagrams of the electronic device according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only partial embodiments of of the present invention, rather than all embodiments.
The embodiment of the invention provides application control methods and devices, a storage medium and electronic equipment.
Referring to fig. 1, fig. 1 is a scene diagram illustrating an application management and control method according to an embodiment of the present invention.
As shown in the figure, different applications APP 1-APP 9 are installed in electronic equipment (such as a smart phone, a tablet computer and the like). the electronic equipment monitors the operating memory occupation amount, generates a query instruction when detecting that the operating memory occupation amount is higher than a th threshold value, and queries the networking condition of the current electronic equipment, such as whether to access a network, what kind of network is accessed and the like, according to the query instruction.
If the network is accessed, the network type (such as a wireless network or a data network) of the network connected to the electronic device is determined, and then the application preset priority corresponding to the network type is obtained, for example, if the th level is the highest level, if the data network is connected, the st level is set as only connectable to the data network, the second priority is set as both connectable to the wireless network and connectable to the data network, the third priority is set as only connectable to the wireless data network, and the fourth priority is set as forbidden to connect to the network.
For example, if the current access network is a data network, the priority of the application (such as APP1) which is set to only use the data network is used for the network in the background application, the priority of the application is set to be the highest (such as the level), the application (such as APP9) which is set to use the data network and the wireless network is used for the network in the background application, the priority of the application is set to be the second level lower than the application (such as APP1) which only uses the data network, the application (such as APP3) which is set to only use the wireless network is used for the network in the background application, the third level APP lower than the application (such as APP9) which can use the data network or the wireless network is used, and the application (such as APP5) which is set to be the unavailable network or does not apply for the network access permission in the background application, the priority of the application is set to be the fourth level lower than the application (such as APP3) which only uses the wireless network.
And finally, closing the corresponding background applications (such as APP5) according to the sequence from low to high in priority, stopping the background applications from running, so that the running memory occupation amount is not higher than a threshold value, if the running memory occupation amount is still higher than a threshold value, continuing to close the background applications, so that the running memory occupation amount is not higher than a threshold value, or until all the background applications are closed, so that the running memory is released, the running speed of subsequent applications is increased, and the power consumption of the electronic device is reduced.
In , application control methods are provided, and as shown in fig. 2, the process may be as follows:
and S110, judging whether the current electronic equipment is connected with the network or not when the operating memory occupation is detected to be higher than the th threshold value, if so, executing the step S120, and if not, ending the process.
The running memory occupation amount is the running memory resource occupied by the running application. The operating Memory, i.e., RAM (Random Access Memory), is usually used as a temporary storage medium for the operating system or other running programs, and is also called system Memory. If the capacity of the memory bank is larger, more memory is used for storing the tasks running simultaneously, and the response speed of the system is higher. Conversely, the smaller the memory bank capacity, the fewer tasks that can be run simultaneously, and the slower the speed of system response.
The th threshold may be a reference value of the upper limit of the reasonable operating memory occupancy, which is obtained through multiple tests by those skilled in the art, based on multiple factors such as hardware performance of the random access memory itself, other hardware configurations in the electronic device, an operating system of the electronic device, and software optimization, and may be set to, for example, 70% or 80%.
When the operating memory occupancy is detected to be higher than the threshold, the operating memory occupancy is considered to reach the upper limit, and at this time, a query instruction may be triggered, so that the electronic device determines the network connection information of the current electronic device according to the query instruction.
Detecting the occupancy amount of the running memory, and judging whether the occupancy amount of the running memory is higher than an th threshold value;
if the operating memory occupancy is higher than the th threshold, triggering a query instruction;
and inquiring whether the current electronic equipment is connected with the network or not according to the inquiry instruction.
And S120, determining the application preset priority corresponding to the network type of the connected network.
In , the application pre-set priority corresponding to the network type can be pre-set according to the demand level of the network type, the more the network type of the network connected to the current electronic device matches with the network connection setting information of the application, the greater the demand level of the application on the current network.
For example, assuming that the th priority is the highest level, if a data network is connected, the application default priority corresponding to the data network may be that the st level is set as a data network only, the second level is set as a wireless network and a data network both connectable, the third level is set as a wireless data network only, and the fourth level is set as a network connection forbidden.
For another example, assuming that the th priority is the highest level, if a wireless network is connected, the wireless network may have a corresponding level of th level set as a connectable wireless network, a second level set as a connectable wireless network and a connectable data network, a third level set as a connectable data network, and a fourth level set as a non-connectable network.
And S130, determining the network type supported by the background application.
In general, developers often design various permissions when developing applications, for example, to develop an Android operating system, when an application execution needs to read a security-sensitive permission item, a related permission request must be declared in an Android configuration file (xml). For example, allowing a program to access Wi-Fi (WIreless-FIdelity) network status information, allowing a program to access information about a GSM (Global System for mobile communication) network, allowing a program to discover and pair bluetooth devices, allowing a program to update cell phone battery statistics, allowing access to albums, and so forth.
In , the first time the application is downloaded for installation, the system prompts the user whether to grant the application the privilege for sensitive privileges.
For network connection authority, some applications need to be normally used according to different functions of the application, such as instant messaging application: QQ, WeChat, etc.; some applications do not need to be used in a networking way, such as alarm clocks, memorandums and the like; while some applications do not require networking where additional functionality, such as music players, cameras, etc., can be implemented. And the network connection permission application aiming at each application can set the permission of granting or not granting the network connection of the application according to the actual requirement.
In particular, the types of networks that different applications may be supported by the device may be different, and the user may set which applications may use which types of networks, depending on the actual use of the user. For example, the instant messaging application may be configured to use both a wireless network and a data network, the video application may be configured to only support the use of a wireless network, and the online payment application may be configured to only support the use of a data network.
And S140, adjusting the priority of each background application according to the preset priority of the application and the network type supported by the background application.
Taking the setting rule of the application preset priority corresponding to the data network in S120 as an example, assuming that APP1 only supports using the data network, APP3 only supports using the data network and the wireless network, APP5 only supports using the wireless network, and APP7 prohibits using the network, then APP1 may be adjusted to the th level, APP3 to the second level, APP5 to the third level, and APP7 to the fourth level.
S150, closing the corresponding background applications according to the sequence of the priority of each background application from low to high so as to enable the running memory occupation amount not to be higher than the th threshold value.
For example, in a linux system, the smaller the value is, the higher the priority is, the larger the value is, the lower the priority is, and in a windows system, the smaller the value is, the lower the priority is, the larger the value is, the higher the priority is, and therefore in concrete implementation, the value for representing the priority may be set according to the operating system actually installed in the electronic device based on the setting rule of the operating system.
Specifically, the higher the priority of the application with the greater demand on the networked network, the lower the priority of the application with the lesser demand on the networked network, as the network is currently used, it can be considered that the user tends to use the application needing the networked network to a certain extent at , so that the background application with the smaller demand can be preferentially closed.
Specifically, the corresponding number of incoming applications may be selected from the background applications to be closed according to the order of the priority from low to high. For example, if the priorities of the background applications APP1 to APP5 are ranked from high to low as: APP3> APP2> APP1> APP4> APP5, which means that application APP5 has minimal demand on the currently connected network, application APP5 may be turned off first, then application APP4 may be turned off, then application APP1 may be turned off, and so on.
On the premise that the running memory occupation can be ensured to be reduced to the threshold value, only a proper amount of applications need to be closed.
Therefore, the application control methods are provided in the embodiments of the present invention, and when it is detected that the operating memory occupancy is higher than the threshold, whether the current electronic device is connected to a network is judged, if so, the application preset priority corresponding to the network type of the connected network is determined, the network type supported by background applications is determined, the priority of each background application is adjusted according to the application preset priority and the network type supported by the background applications, the corresponding background applications are closed according to the priority of each background application from low to high, so that the operating memory occupancy is not higher than the threshold.
In , another application control methods are further provided, and are applied to an electronic device, as shown in fig. 3, the process may be as follows:
s210, when the operating memory occupation amount is detected to be higher than the th threshold value, judging whether the current electronic equipment is connected with a network or not, if so, executing a step S250, and if not, executing a step S220.
In practical application, the th threshold value can be set to values such as 70%, 80% and the like, when the operating memory occupancy is detected to be higher than the th threshold value, the operating memory occupancy is regarded as reaching the upper limit, and at this time, a query instruction can be triggered, so that the electronic device determines the network connection information of the current electronic device according to the query instruction, and determines whether the electronic device is currently connected to a network.
S220, acquiring the connection duration of the communication connection between each background application and the server and the historical running duration of each application.
Specifically, when the network connection information is null, that is, the electronic device is not currently connected to the network, the application that needs to use the network to normally operate cannot normally operate. At this time, if such an application runs in the background, it may be preferentially turned off.
However, in embodiments, there are some applications that apply for network usage rights, and they can run without network connection, but they lack small functions, such as music playing applications, and they can normally perform music playing functions as long as there is a local music cache.
In one implementation, the connection duration for each background application to establish a communication connection with the server is obtained, since the application is networked to interact with the server, the interaction duration between the application and the server is obtained as limiting conditions to avoid such applications being turned off.
And S230, calculating the ratio of the connection time length to the historical operation time length.
The expression form of the ratio can be various, and can be a percentage form, a decimal form, or a fractional form.
S240, screening out the target application with the ratio larger than the second threshold value from the background applications, and closing the target application.
The preset time period may be set by a person skilled in the art or a manufacturer, such as 60%, 70%, etc. Specifically, when the ratio of the connection duration of the application to the server to the historical running duration is greater than a second threshold, it indicates that the background application frequently interacts with the server. Therefore, it is not often used when there is no network connection. Therefore, background applications with a ratio greater than the second threshold may be turned off to reduce power consumption of the electronic device.
And S250, determining the application preset priority corresponding to the network type of the connected network.
The network types can be divided into data networks and wireless networks. In the data network, according to different network systems, for example, the 3 modes of GSM (2G)/TD-SCDMA (3G)/TD-LTE (4G) are used in china mobile; GSM (2G)/WCDMA (3G)/TD-LTE (4G)/FDD-LTE (4G) is used in China Unicom; china telecom uses CDMA1X (2G) EVDO (3G)/TD-LTE (4G)/FDD-LTE (4G). In a wireless network, such as a common Wi-Fi network, a hotspot, etc.
In embodiments, the application preset priorities corresponding to different network types may be set according to the setting condition of the available network types of the application and the matching degree of the network types of the currently connected network.
Specifically, if the th network type is a data network and the second network type is a data network, the matching degree is 100%, if the th network type is a data network and the second network type is a data network and a wireless network, the matching degree is 50%, if the th network type is a data network and the second network type is a wireless network, the matching degree is 1%, if the th network type is a data network and the second network type is a forbidden network, the matching degree is 0.
Therefore, if a data network is connected, assuming that the th level is the highest level, the application default priority corresponding to the data network may be that the st level is set to be only connectable to the data network, the second level is set to be both connectable to the wireless network and the data network, the third level is set to be only connectable to the wireless data network, and the fourth level is set to be disabled from being connected to the network.
Accordingly, assuming that the th priority is the highest level, if a wireless data network is connected, the wireless network may have the corresponding levels that the st level is set as a connectable wireless network, the second level is set as a connectable wireless network and a connectable data network, the third level is set as a connectable data network, and the fourth level is set as a connection-prohibited network.
And S260, determining the network type supported by the background application.
In particular, the types of networks that different applications may be supported by the device may be different, and the user may set which applications may use which types of networks, depending on the actual use of the user. For example, the instant messaging application may be configured to use both a wireless network and a data network, the video application may be configured to only support the use of a wireless network, and the online payment application may be configured to only support the use of a data network.
S270, different hierarchies are set according to the network types supported by the background applications, and the background applications with the same supported network types are distributed to the same hierarchy.
For example, among APP1 to APP9, APP1 supports a data network, APP2 supports a data network, APP3 supports a wireless network, APP4 supports a wireless network and a data network, APP5 supports a wireless network, APP6 supports a wireless network, APP7 prohibits use of a network, APP8 supports a wireless network and a data network, and APP9 supports a wireless network and a data network, APP1 and APP2 may be divided into the same level, APP3, APP5, APP6 may be divided into the same level, and APP7 may be used as levels individually.
S280, setting different priorities for different levels according to the preset priority of the application and the network type supported by the background application.
The APP 1-9 hierarchy division is continued to be taken as an example, and the priorities are the same. The priority order from high to low is: APP1/APP2> APP4/APP8/APP9> APP3/APP5/APP6> APP 7.
In , in order to make the granularity of management smaller and to precisely control the prioritization, the priorities of the applications in the same level may be adjusted .
Acquiring the network traffic consumption rate of background applications in the same level;
and adjusting the priority of the background application in the same level according to the network traffic consumption rate.
The network traffic consumption rate is the network traffic consumed by the application in a unit time. The priority of the application with higher network traffic consumption rate can be adjusted to be lower, and the priority of the application with lower network traffic consumption rate can be adjusted to be higher.
In , the method may further include, according to the historical operating conditions of the applications, adjusting the priorities in the same hierarchy by indirectly determining how frequently the applications are used by the user.
Acquiring running information of background applications in the same level in a historical time period;
the priority of the background application in the same hierarchy is adjusted according to the running information.
The operation information may include kinds or more of operation time length, use times, starting frequency, etc. the historical time period may be the latest months or the latest weeks, etc., which is not limited in particular.
In , the electronic device may record running information (such as running duration, usage times, and starting frequency) of each application in a certain historical time period, calculate comprehensive values according to the recorded information and preset rules, for example, set weights for each parameter, calculate comprehensive values according to each parameter and its corresponding weight, to summarize application usage ranking, and based on this, adjust priorities of applications in the same level, adjust priorities of applications with frequent usage to be higher, and adjust priorities of applications with low usage to be lower, so that applications with low priorities are preferentially recovered.
For example, taking APP1/APP2> APP4/APP8/APP9> APP3/APP5/APP6> APP7 as an example, after the priority level is further adjusted , the priority level can be APP1> APP2> APP4> APP8> APP9> APP3> APP5APP6> APP 7.
And S290, closing the corresponding background applications in sequence according to the sequence of the priority from low to high until the running memory occupation amount is equal to or lower than the th threshold value.
In order to ensure that the background application is not influenced too much, on the premise that the running memory occupation amount is reduced to the th threshold value, only a proper amount of applications are required to be closed, and the running of some applications is stopped temporarily.
Continuing to refer to fig. 2, the background applications include APP, and APP, the priority of which is ordered from high to low as APP/APP > APP, if the APP traffic consumption rate is greater than APP, the priority of APP may be set higher than APP, the closing sequence may be ordered in such a way that APP > APP7, if APP runs more frequently than APP, APP priority may be set higher than APP, the closing sequence may be ordered in such a way that APP > APP7, referring to fig. 4, if the traffic consumption rate is greater than APP, the closing sequence may be ordered in such a way that APP > APP7, the electronic device operates from high to low according to the priority, first, then closes, and then determines whether the memory occupancy is never operated after closing the applications, if no APP > APP, or if no memory is decreased to the background APP, the background applications are selected until the background applications are.
As can be seen from the above, the application control method provided in the embodiment of the present invention determines whether the current electronic device is connected to the network when it is detected that the operating memory occupancy is higher than the th threshold, determines the application preset priority corresponding to the network type of the connected network if the electronic device is connected, determines the network type supported by the background application, adjusts the priority of each background application according to the application preset priority and the network type supported by the background application, closes the corresponding background application according to the priority of each background application from low to high, so that the operating memory occupancy is not higher than the th threshold, acquires the connection duration for establishing the communication connection between each background application and the server and the historical operating duration of each application if the electronic device is not connected to the network, calculates the ratio, closes the corresponding background application according to the ratio.
In another embodiment of the present invention, kinds of application management control apparatuses are further provided, and the application management control apparatuses may be integrated in an electronic device in a form of software or hardware, and the electronic device may specifically include a mobile phone, a tablet computer, a notebook computer, and the like, as shown in fig. 5, the application management control apparatus 300 may include a determining module 301, a level determining module 302, a type determining module 303, a adjusting module 304, and a closing module 305, where:
the judging module 301 is configured to, when it is detected that the operating memory occupancy is higher than the th threshold, judge whether the current electronic device is connected to a network;
a level determining module 302, configured to determine an application preset priority corresponding to a network type of the connected network when the determining module determines that the network type is the positive network;
a type determining module 303, configured to determine a network type supported by the background application;
, an adjusting module 304, configured to adjust the priority of each background application according to the application preset priority and the network type supported by the background application;
the closing module 305 is configured to close the corresponding background applications according to the priority of each background application from low to high, so that the running memory footprint is not higher than the th threshold.
In embodiments, referring to fig. 6, the adjustment module 304 may include:
a setting submodule 3041, configured to set different hierarchies according to network types supported by the background applications, and allocate the background applications with the same supported network types to the same hierarchy;
the adjusting submodule 3042 is configured to set different priorities for different hierarchies according to the application preset priority and the network type supported by the background application.
Referring to fig. 7, in some embodiments, the application management apparatus 300 further includes:
the consumption rate obtaining module 306 is configured to obtain network traffic consumption rates of the background applications in the same hierarchy after setting different priorities for the different hierarchies and before closing the corresponding background applications according to a descending order of the priorities of the background applications;
and a second adjusting module 307, configured to adjust the priority of the background application in the same level according to the network traffic consumption rate.
Referring to fig. 8, in some embodiments, the application management apparatus 300 further includes:
the information obtaining module 308 is configured to obtain the running information of the background applications in the same hierarchy in the historical time period before closing the corresponding background applications according to the sequence of priorities of the background applications from low to high after setting different priorities for the different hierarchies;
and a third adjusting module 309, configured to adjust the priority of the background application in the same hierarchy according to the running information.
Referring to fig. 9, in embodiments, the application management apparatus 300 may further include:
a duration obtaining module 310, configured to obtain, if the current electronic device is not connected to the network, a connection duration for establishing a communication connection between each background application and the server, and a historical operation duration of each application;
a calculating module 311, configured to calculate a ratio of the connection duration to the historical operating duration;
the closing module 305 is further configured to screen out, from the background applications, target applications with a ratio greater than the second threshold for closing.
As can be seen from the above, the application control apparatus provided in the embodiment of the present invention, when detecting that the operating memory occupancy is higher than the th threshold, determines whether the current electronic device is connected to the network, if so, determines the application preset priority corresponding to the network type of the connected network, determines the network type supported by the background application, adjusts the priority of each background application according to the application preset priority and the network type supported by the background application, closes the corresponding background application according to the priority of each background application from low to high, so that the operating memory occupancy is not higher than the th threshold.
In yet another embodiment of the present invention, electronic devices are also provided, wherein the electronic devices may be smart phones, tablet computers, and the like, as shown in fig. 10, an electronic device 400 includes a processor 401 and a memory 402, wherein the processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or loading an application stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the electronic device.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to applications of applications or applications into the memory 402 according to the following steps, and the processor 401 runs the applications stored in the memory 402, so as to implement various functions:
when detecting that the operating memory occupancy is higher than the th threshold value, judging whether the current electronic equipment is connected with a network;
if so, determining the application preset priority corresponding to the network type of the connected network;
determining the network type supported by the background application;
adjusting the priority of each background application according to the preset priority of the application and the network type supported by the background application;
and closing the corresponding background applications according to the priority of each background application from low to high so as to ensure that the running memory occupation amount is not higher than the th threshold value.
In , processor 401 performs the following steps:
setting different hierarchies according to the network types supported by the background application, and distributing the background applications with the same supported network types into the same hierarchy;
and setting different priorities for different levels according to the preset priority of the application and the network type supported by the background application.
In , after setting different priorities for the different hierarchies, before closing the corresponding background applications according to the priority of each background application from low to high, processor 401 executes the following steps:
acquiring the network traffic consumption rate of background applications in the same level;
the priorities of the background applications in the same level are adjusted according to the network traffic consumption rate.
In , after setting different priorities for the different hierarchies, before closing the corresponding background applications according to the priority of each background application from low to high, processor 401 executes the following steps:
acquiring running information of background applications in the same level in a historical time period;
the priority of the background application in the same hierarchy is adjusted according to the running information.
In , processor 401 performs the following steps:
if the current electronic equipment is not connected with the network, acquiring the connection duration of communication connection between each background application and the server and the historical operation duration of each application;
calculating the ratio of the connection time length to the historical operation time length;
and screening out the target application with the ratio larger than the second threshold value from the background applications, and closing the target application.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing instructions executable in the processor. Applications may constitute various functional modules. The processor 401 executes various functional applications and data processing by running applications stored in the memory 402.
In , as shown in fig. 11, the electronic device 400 further includes a display 403, a control circuit 404, a radio frequency circuit 405, an input unit 406, an audio circuit 407, a sensor 408, and a power source 409, wherein the processor 401 is electrically connected to the display 403, the control circuit 404, the radio frequency circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power source 409 respectively.
The display screen 403 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 404 is electrically connected to the display 403, and is configured to control the display 403 to display information.
The rf circuit 405 is used for transceiving rf signals to establish wireless communication with a network device or other electronic devices through wireless communication, and to transceive signals with the network device or other electronic devices.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The audio circuit 407 may provide an audio interface between the user and the electronic device through a speaker, microphone.
The sensor 408 is used to collect external environmental information. The sensors 408 may include ambient light sensors, acceleration sensors, light sensors, motion sensors, and other sensors.
The power source 409 may be used to power various components of the electronic device 400. in , the power source 409 may be logically coupled to the processor 401 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 11, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
As can be seen from the above, in the electronic device provided in the embodiment of the present invention, when it is detected that the operating memory occupancy is higher than the th threshold, it is determined whether the current electronic device is connected to a network, if so, it determines the application preset priority corresponding to the network type of the connected network, determines the network type supported by the background application, adjusts the priority of each background application according to the application preset priority and the network type supported by the background application, closes the corresponding background application according to the priority of each background application from low to high, so that the operating memory occupancy is not higher than the th threshold.
In embodiments, storage media are also provided, the storage media having stored therein a plurality of instructions adapted to be loaded by a processor to perform any of the application governing method described above.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program stored in computer readable storage medium, which may include Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, etc.
Furthermore, unless otherwise indicated herein, numerical ranges are only used to refer to each individual value falling within the relevant range by the express method, and each individual value is incorporated into the specification as if it were individually recited , and all method steps described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context.
The application control method, the application control device, the storage medium and the electronic device provided by the embodiment of the invention are described in detail, a specific example is applied in the description to explain the principle and the implementation of the invention, and the description of the embodiment is only used to help understanding the method and the core idea of the invention; meanwhile, for those 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 (8)

1, application control method applied to electronic equipment, the method includes:
when detecting that the operating memory occupancy is higher than the th threshold value, judging whether the current electronic equipment is connected with a network;
if so, determining the application preset priority corresponding to the network type of the connected network;
determining the network type supported by the background application;
setting different levels according to the network types supported by the background applications, and distributing the background applications with the same supported network types to the same level;
closing corresponding background applications according to the priority of each background application from low to high so as to ensure that the running memory occupation amount is not higher than the th threshold value;
if the current electronic equipment is not connected with the network, acquiring the connection duration of communication connection between each background application and the server and the historical operation duration of each application;
calculating the ratio of the connection duration to the historical operation duration;
and screening out the target application with the ratio larger than the second threshold value from each background application, and closing the target application.
2. The application management and control method according to claim 1, wherein after setting different priorities for the different hierarchies, before closing corresponding background applications according to a sequence of priorities of the background applications from low to high, the method further comprises:
acquiring the network traffic consumption rate of background applications in the same level;
and adjusting the priority of the background application in the same level according to the network traffic consumption rate.
3. The application management and control method according to claim 1, wherein after setting different priorities for the different hierarchies, before closing corresponding background applications according to a sequence of priorities of the background applications from low to high, the method further comprises:
acquiring running information of background applications in the same level in a historical time period;
and adjusting the priority of the background application in the same level according to the running information.
4, kind of application management and control device, be applied to electronic equipment, its characterized in that, the device includes:
the judging module is used for judging whether the current electronic equipment is connected with a network or not when the fact that the operating memory occupation amount is higher than an th threshold value is detected;
the level determining module is used for determining the application preset priority corresponding to the network type of the connected network when the judging module judges that the network type is positive;
the type determining module is used for determining the network type supported by the background application;
adjusting module, which is used to adjust the priority of each background application according to the application preset priority and the network type supported by the background application;
the closing module is used for closing the corresponding background applications according to the priority of each background application from low to high so as to ensure that the running memory occupation amount is not higher than the th threshold value;
the time length acquisition module is used for acquiring the connection time length for establishing communication connection between each background application and the server and the historical running time length of each application if the current electronic equipment is not connected with the network;
the calculation module is used for calculating the ratio of the connection duration to the historical operation duration;
the closing module is further configured to screen out, from the background applications, the target application of which the ratio is greater than the second threshold value and close the target application;
wherein the th adjustment module comprises:
the setting submodule is used for setting different hierarchies according to the network types supported by the background application and distributing the background application with the same supported network type to the same hierarchy;
and the adjusting submodule is used for setting different priorities for different levels according to the preset priority of the application and the network type supported by the background application.
5. The application management and control apparatus according to claim 4, wherein the apparatus further comprises:
the consumption rate acquisition module is used for acquiring the network traffic consumption rate of the background applications in the same hierarchy before closing the corresponding background applications according to the sequence of the priorities of the background applications from low to high after setting different priorities for the different hierarchies;
and the second adjusting module is used for adjusting the priority of the background application in the same level according to the network traffic consumption rate.
6. The application management and control apparatus according to claim 4, wherein the apparatus further comprises:
the information acquisition module is used for acquiring the running information of the background applications in the same hierarchy in a historical time period before closing the corresponding background applications according to the sequence of the priorities of the background applications from low to high after setting different priorities for the different hierarchies;
and the third adjusting module is used for adjusting the priority of the background application in the same level according to the running information.
Storage medium 7, , wherein the storage medium has stored therein a plurality of instructions adapted to be loaded by a processor to perform the application management method according to any of claims 1-3, .
8, electronic device, comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the application management and control method according to any of claims 1-3, wherein the application management and control method is defined in any of claims .
CN201710644129.XA 2017-07-31 2017-07-31 Application control method and device, storage medium and electronic equipment Active CN107463437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710644129.XA CN107463437B (en) 2017-07-31 2017-07-31 Application control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710644129.XA CN107463437B (en) 2017-07-31 2017-07-31 Application control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107463437A CN107463437A (en) 2017-12-12
CN107463437B true CN107463437B (en) 2020-01-31

Family

ID=60546971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710644129.XA Active CN107463437B (en) 2017-07-31 2017-07-31 Application control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107463437B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018902B (en) * 2018-01-10 2023-01-31 Oppo广东移动通信有限公司 Memory processing method and device, electronic equipment and computer readable storage medium
CN110046032A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN109684090A (en) * 2018-12-19 2019-04-26 三星电子(中国)研发中心 A kind of resource allocation methods and device
CN109857544A (en) * 2018-12-27 2019-06-07 努比亚技术有限公司 Resource reclaim control method, terminal and computer readable storage medium
CN110022437B (en) * 2019-03-07 2021-04-16 浙江大华技术股份有限公司 Management and control device, management and control method, device and storage medium for electric lens
CN110380937B (en) * 2019-07-23 2021-08-31 中国工商银行股份有限公司 Network testing method and device applied to electronic equipment
CN113051128B (en) * 2019-12-27 2022-06-28 Oppo广东移动通信有限公司 Power consumption detection method and device, electronic equipment and storage medium
CN111162943B (en) * 2019-12-27 2021-02-09 珠海格力电器股份有限公司 Method and device for configuring application networking priority and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092689A (en) * 2013-01-10 2013-05-08 深圳市金立通信设备有限公司 Method and terminal of process management
CN103500121A (en) * 2013-09-29 2014-01-08 深圳Tcl新技术有限公司 Process managing method and device
CN103631661A (en) * 2013-11-27 2014-03-12 青岛海信电器股份有限公司 Internal storage management method and device
CN104820545A (en) * 2015-04-30 2015-08-05 北京奇虎科技有限公司 Memory cleaning method and memory cleaning device of mobile terminal
CN105354093A (en) * 2015-12-09 2016-02-24 广东欧珀移动通信有限公司 Memory management method and mobile terminal
CN105392191A (en) * 2015-11-27 2016-03-09 广东欧珀移动通信有限公司 Optimization method for power consumption of terminal and optimization system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102176645B1 (en) * 2014-01-02 2020-11-09 삼성전자 주식회사 Method for managing applicationand electronic device implementing the same

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092689A (en) * 2013-01-10 2013-05-08 深圳市金立通信设备有限公司 Method and terminal of process management
CN103500121A (en) * 2013-09-29 2014-01-08 深圳Tcl新技术有限公司 Process managing method and device
CN103631661A (en) * 2013-11-27 2014-03-12 青岛海信电器股份有限公司 Internal storage management method and device
CN104820545A (en) * 2015-04-30 2015-08-05 北京奇虎科技有限公司 Memory cleaning method and memory cleaning device of mobile terminal
CN105392191A (en) * 2015-11-27 2016-03-09 广东欧珀移动通信有限公司 Optimization method for power consumption of terminal and optimization system
CN105354093A (en) * 2015-12-09 2016-02-24 广东欧珀移动通信有限公司 Memory management method and mobile terminal

Also Published As

Publication number Publication date
CN107463437A (en) 2017-12-12

Similar Documents

Publication Publication Date Title
CN107463437B (en) Application control method and device, storage medium and electronic equipment
CN107479951B (en) Process control method and device, storage medium and electronic equipment
US20190369700A1 (en) Electronic Device Control Method and Apparatus, and Electronic Device
CN107506240B (en) Background application program control method and device, storage medium and electronic equipment
EP3486770B1 (en) Processing method, device and storage medium for implementing automatic startup
CN107528976A (en) Resource allocation method and Related product
WO2019024641A1 (en) Data synchronization method and apparatus, storage medium and electronic device
US10579129B2 (en) Method, apparatus and storage medium for processing application of mobile terminal and electronic device
JP2021506016A (en) Methods and devices for processing memory and storage media
CN107450709B (en) Application processing method, device, storage medium and electronic equipment
US11843670B2 (en) Packet data unit (PDU) session control method and apparatus
US10824213B2 (en) Sensor processing method of mobile terminal, non-transitory storage medium, and electronic device
CN114153621B (en) System process regulation and control method and device, electronic equipment and readable storage medium
CN111007932A (en) Temperature control system, temperature control method based on temperature control system and electronic equipment
JP7272694B2 (en) Method and terminal for reducing power consumption of terminal
CN110018885B (en) Application program freezing method and device, storage medium and terminal
CN113495787A (en) Resource allocation method, device, storage medium and electronic equipment
CN117407133A (en) Task processing method and device and computer readable storage medium
CN112804160A (en) Current limiting method, device, equipment, medium and product based on application program
CN107463395B (en) Component calling method and device
CN110120963B (en) Data processing method, device, equipment and machine readable medium
CN108307060B (en) Electronic equipment, fall protection method and related product
CN109992369B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN117632460A (en) Load adjusting method and terminal equipment
CN115373865A (en) Concurrent thread management method, device, electronic equipment 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: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant