WO2020133437A1 - 应用程序的管理方法、装置、存储介质及电子设备 - Google Patents

应用程序的管理方法、装置、存储介质及电子设备 Download PDF

Info

Publication number
WO2020133437A1
WO2020133437A1 PCT/CN2018/125694 CN2018125694W WO2020133437A1 WO 2020133437 A1 WO2020133437 A1 WO 2020133437A1 CN 2018125694 W CN2018125694 W CN 2018125694W WO 2020133437 A1 WO2020133437 A1 WO 2020133437A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
power
target
management framework
restriction
Prior art date
Application number
PCT/CN2018/125694
Other languages
English (en)
French (fr)
Inventor
帅朝春
张寅祥
戴堃
吴建文
陆天洋
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2018/125694 priority Critical patent/WO2020133437A1/zh
Priority to CN201880099385.8A priority patent/CN112997150B/zh
Publication of WO2020133437A1 publication Critical patent/WO2020133437A1/zh

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

Definitions

  • the present application relates to the technical field of electronic equipment, and in particular, to an application management method, device, storage medium, and electronic equipment.
  • Embodiments of the present application provide an application program management method, device, storage medium, and electronic equipment, which can improve the management efficiency of application programs.
  • an embodiment of the present application provides an application management method, including:
  • the power management framework includes multiple levels of power limitation levels, and each power limitation level includes a corresponding limit condition;
  • the corresponding target power limitation level is determined according to the modified power management framework and the predicted start time of the application, and the application is set in the target power limitation level.
  • an application management apparatus including:
  • the determining unit is used to determine the predicted start time of the application according to the usage habits of the application;
  • the starting unit is used to start a power management framework, the power management framework includes a plurality of levels of power limitation levels, and each power limitation level includes a corresponding restriction condition;
  • a modification unit configured to obtain a current power value, determine a corresponding target restriction condition according to the power value, and modify the restriction condition in the power management framework according to the target restriction condition;
  • the setting unit is configured to determine a corresponding target power limitation level according to the modified power management framework and the predicted start time of the application, and set the application in the target power limitation level.
  • a storage medium provided by an embodiment of the present application stores a computer program thereon, and when the computer program runs on a computer, the computer is caused to execute the method for managing an application program as provided in any embodiment of the present application .
  • an electronic device provided by an embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is used to perform the steps by calling the computer program:
  • the power management framework includes multiple levels of power limitation levels, and each power limitation level includes a corresponding limit condition;
  • the corresponding target power limitation level is determined according to the modified power management framework and the predicted start time of the application, and the application is set in the target power limitation level.
  • FIG. 1 is a system architecture diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of an application management method provided by an embodiment of the present application.
  • FIG. 3 is another schematic flowchart of an application program management method provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a scenario of a method for managing an application program provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of modules of an application management device provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another module of an application management apparatus provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • module used in this article can be regarded as a software object executed on the computing system.
  • the different components, modules, engines and services described in this article can be regarded as the implementation objects on the computing system.
  • the device and method described herein are preferably implemented in the form of software, and of course, can also be implemented in hardware, which are all within the protection scope of the present application.
  • FIG. 1 is a system architecture diagram of an electronic device provided by an embodiment of the present invention.
  • the system architecture is an Android system architecture.
  • the system architecture may also be an Apple (iphone Operating System) , IOS) system framework, etc.
  • the Android system architecture is the architecture of the Android system.
  • the Android system architecture like its operating system, uses a layered architecture, which is divided into four layers, from high to low are the Android application layer (Application), Android application framework Layer (Application Framework), Android system running layer and Linux kernel layer.
  • Application layer The application is a program written in java that runs on a virtual machine, such as a desktop one-screen application, camera application, email client, SMS short message program, and calendar.
  • Application framework layer This layer is the application programming interface (API) framework used when writing the core applications released by Google. Developers can also use these frameworks to develop their own applications, which simplifies The structure design of the program development is required, but the development principles of its framework must be followed, such as the power management framework, which is a new application standby grouping function that allows the system to restrict the application to call the central processing according to the user's usage.
  • Device Central Processing Unit, CPU
  • the application standby group can prioritize its resource requests according to the frequency of application or the last use time.
  • the application standby group can be multiple groups, such as four Grouping, the system will divide each application into one of four priority groups according to the usage of each application, and each group has different restrictions on the scheduling of device resources. The higher the priority group, the scheduling of device resources The higher the packet with lower priority is, the lower the scheduling of device resources is.
  • System runtime library (C/C++ library and Android runtime library) layer: When using the Android application framework, the Android system will support various components we use through some C/C++ libraries to make it better serve us, such as SQLite (relational database), Webkit (web browser engine).
  • SQLite relational database
  • Webkit web browser engine
  • Linux kernel layer Android's core system services are given to the Linux2.6 kernel, such as security, memory management, process management, network protocol stack, and driver model, etc., all depend on the kernel, such as Binder IPC (Internet Process Connection) inter-process communication driver , A special driver for Android, with a separate device node that provides the function of inter-process communication.
  • Binder IPC Internet Process Connection
  • An embodiment of the present application provides an application management method.
  • the execution subject of the application management method may be the application management device provided in the embodiment of the application, or an electronic device integrated with the application management device, wherein The application management device can be implemented in hardware or software.
  • the electronic device may be a smart phone, a tablet computer, a PDA (Personal Digital Assistant) and so on.
  • An embodiment of the present invention provides an application management method, including:
  • the power management framework includes multiple levels of power limitation levels, and each power limitation level includes a corresponding limit condition;
  • the corresponding target power limitation level is determined according to the modified power management framework and the predicted start time of the application, and the application is set in the target power limitation level.
  • the step of determining a corresponding target restriction condition according to the power value and modifying the restriction condition in the power management framework according to the target restriction condition may include: obtaining a prediction curve, The prediction curve includes an association relationship between each power value and the limiting condition; matching the prediction curve according to the current power value, determining a target restriction condition corresponding to the current power value; according to the target restriction condition, the power management framework To modify the restrictions in.
  • the step of determining the corresponding target power limit level according to the modified power management framework and the predicted start time of the application, and setting the application in the target power limit level may include: Obtain the restricted conditions in the modified power management framework and the predicted startup time of the application; match the restricted conditions according to the predicted startup time of the application, determine the matching target restriction conditions and the target power restriction level corresponding to the target restrictions; The application program is set in the corresponding target power limit level.
  • the power management framework includes four levels of power limitation levels, and each power limitation level includes a corresponding restriction condition, and a corresponding target restriction condition is determined according to the power value, according to the
  • the step of modifying the restriction conditions in the power management framework by the target restriction condition may include: obtaining a prediction curve, the prediction curve containing an association relationship between each power value and the restriction condition; matching the prediction according to the current power value Curve to determine the target limit conditions corresponding to the current power value; according to the target limit conditions, the limit conditions corresponding to the four levels of power limit levels in the power management framework are modified.
  • the step of determining the corresponding target power limit level according to the modified power management framework and the predicted start time of the application, and setting the application in the target power limit level may include: Obtain the four restrictions in the modified power management framework and the predicted start time of the application; match the four restrictions according to the predicted start time of the application, and determine the matching target restrictions and the corresponding target restrictions Target power limit level; set the application in the corresponding target power limit level.
  • the step of determining the predicted start time of the application according to the usage habits of the application may include: recording time information characteristics when the application is started as a sample to form a sample set; Perform training and learning to generate a prediction model containing usage habits of applications in the time information dimension; obtain current time information, enter the time information into the prediction model, and determine the predicted start time of each application at the current time.
  • the step of setting the application program in the corresponding target power limit level may further include: detecting whether it is in a charging state; and when the charging state is detected, closing the power management framework.
  • FIG. 2 is a schematic flowchart of an application management method provided by an embodiment of the application.
  • the application management method may include the following steps:
  • step S101 the predicted start time of the application program is determined according to the usage habits of the application program.
  • the predicted start time of the application can also be determined according to the frequency of use of the application. Specifically, when the frequency of use of the application is higher, it means that the user is more likely to use it next time, and the corresponding application The shorter the predicted startup time of the program, and the lower the frequency of use of the application, the smaller the probability that the user will use it next, and the longer the predicted startup time of the corresponding application.
  • the step of determining the predicted start time of the application according to the usage habits of the application may include:
  • step S102 the power management framework is started.
  • the power management framework includes multiple levels of power limitation levels, such as 4 levels, etc. Each level allocates corresponding resources to applications, and the higher the priority level, the more equipment resources are allocated. Correspondingly, The lower the priority level, the less equipment resources are allocated.
  • the equipment resources include CPU resources or network resources called by applications.
  • each power limitation level of the power management framework includes a corresponding limit condition.
  • the limit condition is a time condition, such as a predicted start time within 2 hours, within 3 hours, within 4 hours, etc. After the predicted start time of the application, the corresponding power management framework can be started to implement the later application management.
  • step S103 the current power value is obtained, and the corresponding target restriction condition is determined according to the power value, and the restriction condition in the power management framework is modified according to the target restriction condition.
  • the association relationship between the power value and the target limit condition can be preset, and the current power value can be obtained in real time, and the target limit condition suitable for the current power condition can be determined according to the current power value.
  • the number of target limit conditions and the power management framework The number of restrictions in the corresponding corresponds to, so after determining the corresponding target restrictions, the restrictions in the power management framework can be modified one by one according to the target restrictions, making the restrictions in the revised power management framework more Meet the current power environment.
  • the step of determining the corresponding target restriction condition according to the power value and modifying the restriction condition in the power management framework according to the target restriction condition may include:
  • the prediction curve may include the correlation between each power value and the limiting condition, and the curve can dynamically reflect the relationship between the power value and the limiting condition. Therefore, the prediction curve is obtained, and the prediction curve is matched according to the current power value to determine
  • the target limit condition corresponding to the current power value corresponds to the number of limit conditions in the power management framework, so the limit conditions in the power management framework can be modified one by one according to the target limit conditions, so that after the modification
  • the restrictions in the power management framework of China are more in line with the current power environment.
  • step S104 the corresponding target power limit level is determined according to the modified power management framework and the predicted start time of the application, and the application is set in the target power limit level.
  • the target power limit level corresponding to the application is determined, such as in the modified power management framework
  • the corresponding limit condition of the first power limit level is within 1 hour and the corresponding limit condition of the second power limit level is within 2 hours, etc.
  • the priority of the first power limit level is higher than the priority of the second power limit level.
  • the predicted start time of the application is 61 minutes. According to the comparison principle of priority from high to low, it is determined that the application does not belong to the first power limit level, but belongs to the second power limit level, that is to say, the second power limit level is The target power limit level sets the application in the second power limit level.
  • the step of determining the corresponding target power limit level according to the modified power management framework and the predicted start time of the application, and setting the application in the target power limit level may include:
  • the modified restriction conditions in the power management framework are the first power restriction level.
  • the corresponding restrictions are within 1 hour, and the second The limit condition corresponding to the power limit level is within 2 hours, and the limit condition corresponding to the third power limit level is within 3 hours, etc.
  • the priority of the first power limit level is greater than that of the second power limit level and the limit of the second power limit level
  • the priority is greater than the third power limit level.
  • the target restriction condition For the target power limit level is the third power limit level, the game application is set in the third power limit level, through the device resource setting of the third power limit level, the game application can be well Limit device resources and save power consumption of electronic devices.
  • the method for managing an application program determines the predicted startup time of the application program according to the usage habits of the application program; the power management framework is started, and the power management framework includes multiple levels of power limitation levels , Each power limit level contains a corresponding limit condition; obtain the current power value, and determine the corresponding target limit condition according to the power value, modify the limit conditions in the power management framework according to the target limit condition; according to the modified The power management framework and the predicted start time of the application determine the corresponding target power limit level, and set the application in the target power limit level.
  • the predicted start time of each application can be determined according to the user's habitual behavior of using the application, the power management framework can be started, and the limiting conditions in each power limitation level in the power management framework can be dynamically adjusted according to the current power value, so that The power management framework can better restrict the resources of applications according to the current power situation, realize the automation of application management, and improve the management efficiency of applications.
  • FIG. 3 is another schematic flowchart of an application program management method according to an embodiment of the present application.
  • the method includes:
  • step S201 the characteristics of the time information when the application is started are recorded as samples to form a sample set.
  • user behavior learning is performed first, that is, when the application is detected to be opened, the current opening time information feature is obtained as a sample, and the samples within one month are continuously collected, which constitutes a reflection of the application opening habits Sample set.
  • step S202 training and learning are performed on the sample set to generate a prediction model containing usage habits of the application in the dimension of time information.
  • the mobile phone performs training and learning on the sample set, and can perform clustering processing on the opening time information of each application in the sample set to obtain a prediction model that can predict that each application is started at a certain time point.
  • step S203 the current time information is obtained, the time information is input into the prediction model, and the predicted start time of each application program at the current time is determined.
  • the current time information such as 14:27
  • enter the 14:27 into the prediction model according to the difference between the current time 14:27 and each application after the current time
  • the predicted start time of each application for example, the time point of application 1 is 15:26, the time point of application 2 is 16:20, the time point of application 3 is 17:21, and the time point of application 4 is At 19:27, it can be determined that the predicted start time of application 1 is 59 minutes, the predicted start time of application 2 is 113 minutes, the predicted start time of application 3 is 174 minutes, and the predicted start time of application 4 is 300 minutes.
  • step S204 the power management framework is started.
  • the mobile phone power management framework includes four levels of power limitation levels.
  • the four levels of power limitation levels can be Active (the first power limitation level), indicating that the application is being used, and the task, standard alarm On the resource call of the bell and FCM information, applications under this level are exempt from any system restrictions.
  • Working which means that the application is used frequently, and applications under this level will be restricted by some systems in terms of task running and alarm triggering.
  • Frequent the third power limit level
  • the applications under this level will be affected in tasks and the ability to trigger alarms, and there are a large number of high-priority FCM messages received.
  • each power limit level contains a corresponding limit condition, the application under this level will be in the task, alarm and high priority FCM message resources Calling is strictly restricted, and in addition, network access capabilities will also be affected, that is, from the first power limit level to the fourth power limit level, the resources of the devices that can be called are getting lower and lower.
  • each power limitation level of the power management framework has a corresponding limit condition, for example, the limit condition of the first power limitation level is within 2 hours, the limit condition of the second power limitation level is within 3 hours, and the third power The limit condition of the limit level is within 4 hours, and the limit condition of the fourth power limit level is 4 hours.
  • the mobile phone calls the system framework layer to start the power management framework.
  • step S205 a prediction curve is acquired, the prediction curve is matched according to the current power value, and a target restriction condition corresponding to the current power value is determined, and the power restriction level corresponding to the four levels in the power management framework is restricted according to the target restriction condition The conditions are modified.
  • the mobile phone correspondingly obtains the prediction curve
  • the prediction curve contains the correlation between each power value and the restriction condition
  • the curve can dynamically reflect the relationship between the power value and the restriction condition, the higher the power value, the looser the restriction condition, the power value The lower the limit, the wider the corresponding restrictions.
  • the corresponding target limit condition of the power value 0.5 is determined as the limit condition of the first power limit level is within 1 hour
  • the limit condition of the second power limit level Within 2 hours
  • the limit condition for the third power limit level is within 3 hours
  • the limit condition for the fourth power limit level is outside 3 hours.
  • the restriction conditions corresponding to the four levels of power restriction levels in the power management framework are modified according to the target restriction conditions, so that the modified four-level restriction conditions of the power management framework conform to the current power environment.
  • step S206 the four constraints in the modified power management framework and the predicted start time of the application program are acquired.
  • the four limit conditions corresponding to the four power limit levels in the modified power management framework are obtained, that is, the limit condition of the first power limit level is within 1 hour, and the limit condition of the second power limit level is within 2 hours.
  • the limit condition for the third power limit level is within 3 hours, and the limit condition for the fourth power limit level is outside 3 hours.
  • the predicted start time of the application that is, the predicted start time of application 1 is 59 minutes
  • the predicted start time of application 2 is 113 minutes
  • the predicted start time of application 3 is 174 minutes
  • the predicted start time of application 4 is 300 minutes.
  • step S207 the four restriction conditions are matched according to the predicted start time of the application, the matching target restriction condition and the target power restriction level corresponding to the target restriction are determined, and the application is set in the corresponding target power restriction level.
  • the four limit conditions are matched according to the priority, and the target power limit condition corresponding to application 1 is determined to be within 1 hour, which belongs to the first power limit level, and the target power limit condition corresponding to application 2 is within 2 hours.
  • the application is set in the corresponding target power limit level.
  • the mobile phone displays that application 1 is placed in the first power limit level 101, application 2 is placed in the second power limit level 102, application 3 is placed in the third power limit level 103, and the application 4 Put in the fourth power limit level 104, the user can manually confirm the result or adjust the result accordingly, so that the number of applications of each power limit level of the power frame can be dynamically adjusted according to the time limit, saving The effect of mobile phone battery.
  • step S208 it is detected whether it is in a charged state.
  • step S209 when it is detected that the mobile phone is in the charging state, step S209 is performed, and when it is detected that the mobile phone is not in the charging state, it returns to continue to perform step S208.
  • step S209 the power management framework is closed.
  • the power management framework can be directly turned off.
  • an application management method by recording time information features when an application is opened as a sample, constructs a sample set, and trains and learns the sample set through a clustering algorithm to generate The prediction model of application usage habits in the information dimension, input the current time information into the prediction model, that is, the predicted startup time of each application can be predicted, the power management framework can be started, the current power value and the prediction curve can be obtained, and the determined
  • the target limit condition corresponding to the current power value according to the target limit condition, modify the limit conditions corresponding to the four levels of power limit levels in the power management framework, and determine the corresponding according to the modified power management framework and the predicted start time of the application
  • the target power limit level and set the application in the target power limit level.
  • the predicted start time of each application can be determined according to the user's habit of using the application
  • the power management framework can be started, and the limit conditions in each power limit level in the power management framework can be dynamically adjusted according to the current power value.
  • the power value is sufficient, the restrictions on the use of the application are relaxed, and when the power value is low, the restrictions on the use of the application are tightened, so that the power management framework can better control the application according to the current power situation. Restrict resources and automate application management, improving the efficiency of application management.
  • the embodiments of the present application further provide an apparatus based on the above-mentioned application program management method.
  • the meaning of the nouns is the same as that in the above application program management method.
  • An embodiment of the present invention provides an application management device, including:
  • the determining unit is used to determine the predicted start time of the application according to the usage habits of the application;
  • the starting unit is used to start a power management framework, the power management framework includes a plurality of levels of power limitation levels, and each power limitation level includes a corresponding restriction condition;
  • a modification unit configured to obtain a current power value, determine a corresponding target restriction condition according to the power value, and modify the restriction condition in the power management framework according to the target restriction condition;
  • the setting unit is configured to determine a corresponding target power limitation level according to the modified power management framework and the predicted start time of the application, and set the application in the target power limitation level.
  • the modification unit is used to obtain a prediction curve, and the prediction curve includes an association relationship between each power value and a limiting condition; a matching subunit is used to match the prediction curve according to the current power value, A target restriction condition corresponding to the current power value is determined; a modification subunit is used to modify the restriction condition in the power management framework according to the target restriction condition.
  • the setting unit may include: an acquisition sub-unit for acquiring the restricted condition in the modified power management framework and the predicted start time of the application program; a determination sub-unit for determining the application program according to the application program The predicted start time of the system matches the restriction condition, determines the matching target restriction condition and the target power restriction level corresponding to the target restriction condition; and sets a subunit for setting the application in the corresponding target power restriction level.
  • the determining unit may include: a recording subunit for recording time information characteristics when the application is started as a sample to form a sample set; and a generating subunit for training and learning the sample set To generate a prediction model that contains the usage habits of the application in the time information dimension; determine the subunit to obtain the current time information, enter the time information into the prediction model, and determine the prediction of each application at the current time Start Time.
  • the device further includes: a detection unit for detecting whether it is in a charged state; and a shutdown unit for closing the power management framework when it is detected in a charged state.
  • FIG. 5 is a schematic diagram of a module of an application management device provided by an embodiment of the present application.
  • the application management device 300 includes a determination unit 31, a startup unit 32, a modification unit 33, and a setting unit 34.
  • the determining unit 31 is configured to determine the predicted start time of the application program according to the usage habits of the application program.
  • the determining unit 31 can collect the habitual information of the user when opening the application, such as the time information when opening the application, continuously collecting a preset number or time information within a preset time to form a sample library, Training and learning to determine the predicted start time of each application.
  • the starting unit 32 is used to start a power management framework.
  • the power management framework includes multiple levels of power restriction levels, and each power restriction level includes a corresponding restriction condition.
  • the power management framework includes multiple levels of power limitation levels, such as 4 levels, etc. Each level allocates corresponding resources to applications, and the higher the priority level, the more equipment resources are allocated. Correspondingly, The lower the priority level, the less equipment resources are allocated.
  • the equipment resources include CPU resources or network resources called by applications.
  • each power limitation level of the power management framework includes a corresponding limit condition.
  • the limit condition is a time condition, such as a predicted start time within 2 hours, within 3 hours, within 4 hours, etc. After the predicted startup time of the application program is output, the startup unit 32 can correspondingly start the power management framework to realize the management of the later application program.
  • the modification unit 33 is configured to obtain a current power value, determine a corresponding target restriction condition according to the power value, and modify the restriction condition in the power management framework according to the target restriction condition.
  • the modification unit 33 may preset the association relationship between the power value and the target restriction condition, and obtain the current power value in real time, and determine the target restriction condition suitable for the current power condition according to the current power value.
  • the number of target restriction conditions and The number of restrictions in the power management framework corresponds to each other. Therefore, after the corresponding target restrictions are determined, the restrictions in the power management framework can be modified one by one according to the target restrictions, so that the The restrictions are more in line with the current power environment.
  • the setting unit 34 is configured to determine a corresponding target power limit level according to the modified power management framework and the predicted start time of the application, and set the application in the target power limit level.
  • the setting unit 34 determines the target power limit level to which the application belongs, based on the limit conditions corresponding to each power limit level in the modified power management framework and the predicted start time of each application, such as the modified power level
  • the limit condition corresponding to the first power limit level in the management framework is within 1 hour and the limit condition corresponding to the second power limit level is within 2 hours, etc.
  • the priority of the first power limit level is higher than that of the second power limit level Level
  • the predicted start time of an application is 61 minutes. According to the comparison principle of priority from high to low, it is determined that the application does not belong to the first power limit level, but belongs to the second power limit level, that is to say the second power
  • the limit level is the target power limit level, and the application is set in the second power limit level.
  • FIG. 6, is a schematic diagram of another module of the application management device provided by the embodiment of the present application.
  • the application management device 300 may further include:
  • the determination unit 31 may include a recording subunit 311, a generation subunit 312, and a determination subunit 313.
  • the recording subunit 311 is used to record the characteristics of time information when the application is started as a sample to form a sample set.
  • the generating sub-unit 312 is used to train and learn the sample set, and generate a prediction model including usage habits of the application program in the dimension of time information.
  • the determination subunit 313 is used to obtain current time information, input the time information into the prediction model, and determine the predicted start time of each application program at the current time.
  • the modification unit 33 may include an acquisition subunit 331, a matching subunit 332, and a modification subunit 333.
  • the obtaining subunit 331 is configured to obtain a prediction curve, and the prediction curve includes an association relationship between each power value and a limiting condition.
  • the matching subunit 332 is configured to match the predicted curve according to the current power value and determine a target restriction condition corresponding to the current power value.
  • the modification subunit 333 is configured to modify the restriction condition in the power management framework according to the target restriction condition.
  • the setting unit 34 may include an acquisition subunit 341, a determination subunit 342, and a setting subunit 343.
  • the obtaining subunit 331 is used to obtain the restricted condition in the modified power management framework and the predicted start time of the application program.
  • the determining subunit 342 is configured to match the restriction conditions according to the predicted start time of the application program, and determine the matching target restriction conditions and the target power restriction level corresponding to the target restriction conditions.
  • the setting sub-unit 343 is used to set the application in the corresponding target power limit level.
  • the detection unit 35 is used to detect whether it is in a charging state.
  • the closing unit 36 is configured to close the power management framework when it is detected that it is in a charging state.
  • the electronic device 500 includes a processor 501 and a memory 502.
  • the processor 501 and the memory 502 are electrically connected.
  • the processor 500 is the control center of the electronic device 500, which uses various interfaces and lines to connect the various parts of the entire electronic device, executes or loads the computer program stored in the memory 502, and calls the data stored in the memory 502 to execute
  • the electronic device 500 performs various functions and processes data to perform overall monitoring of the electronic device 500.
  • the memory 502 can be used to store software programs and modules.
  • the processor 501 runs computer programs and modules stored in the memory 502 to execute various functional applications and data processing.
  • the memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, computer programs required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store Data created by the use of electronic devices, etc.
  • the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502.
  • the processor 501 in the electronic device 500 will load the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and the processor 501 runs and stores the instructions in the memory 502
  • the computer program in order to achieve various functions, as follows:
  • the power management framework includes multiple levels of power limitation levels, and each power limitation level includes a corresponding limit condition;
  • the corresponding target power limitation level is determined according to the modified power management framework and the predicted start time of the application, and the application is set in the target power limitation level.
  • the processor 501 may specifically perform the following steps:
  • the prediction curve includes an association relationship between each power value and a limiting condition
  • the processor 501 may Specifically perform the following steps:
  • the power management framework includes four levels of power restriction levels, each of which includes a corresponding restriction condition. After determining the corresponding target restriction condition according to the power value, according to the When the target restriction condition modifies the restriction condition in the power management framework, the processor 501 may specifically perform the following steps:
  • the prediction curve includes an association relationship between each power value and a limiting condition
  • the restriction conditions corresponding to the four levels of power restriction levels in the power management framework are modified.
  • the processor 501 may Specifically perform the following steps:
  • the processor 501 when determining the predicted start time of the application program according to the usage habits of the application program, the processor 501 may specifically perform the following steps:
  • the processor 501 may further specifically perform the following steps:
  • the power management framework is closed.
  • the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power supply 506.
  • the display 503, the radio frequency circuit 504, the audio circuit 505, and the power supply 506 are electrically connected to the processor 501, respectively.
  • the display 503 can be used to display information input by the user or provided to the user and various graphical user interfaces, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display 503 may include a display panel.
  • the display panel may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD) or an organic light emitting diode (Organic Light-Emitting Diode, OLED).
  • LCD liquid crystal display
  • OLED Organic Light-Emitting Diode
  • the radio frequency circuit 504 can be used to send and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and send and receive signals with network devices or other electronic devices.
  • the audio circuit 505 can be used to provide an audio interface between a user and an electronic device through speakers and microphones.
  • the power supply 506 can be used to power various components of the electronic device 500.
  • the power supply 506 may be logically connected to the processor 501 through a power management system, so as to implement functions such as charging, discharging, and power consumption management through the power management system.
  • the electronic device 500 may further include a camera, a Bluetooth module, etc., which will not be repeated here.
  • An embodiment of the present application further provides a storage medium that stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the method for managing the application program in any of the foregoing embodiments, for example, according to the application
  • the usage habits of the program determine the predicted start time of the application; start the power management framework, the power management framework includes multiple levels of power limit levels, and each power limit level contains a corresponding limit condition; obtain the current power value , And determine the corresponding target limit condition according to the power value, and modify the limit conditions in the power management framework according to the target limit condition; determine according to the modified power management framework and the predicted start time of the application The corresponding target power limit level, and the application is set in the target power limit level.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read Only Memory, ROM,), or a random access memory (Random Access Memory, RAM), etc.
  • the application program management method of the embodiments of the present application can be controlled by a computer program.
  • the computer program can be stored in a computer-readable storage medium, such as stored in the memory of the electronic device, and executed by at least one processor in the electronic device, the execution process can include, for example, applications The procedure of the embodiment of the program management method.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
  • each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, magnetic disk, or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)
  • Stored Programmes (AREA)
  • Power Sources (AREA)

Abstract

本申请实施例公开了一种应用程序的管理方法,该方法包括确定应用程序的预测启动时间,启动电量管理框架,并根据当前的电量值确定出相应的目标限制条件以对电量管理框架进行修改,根据修改后的电量管理框架和预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在目标电量限制等级中。提升了应用程序的管理效率。

Description

应用程序的管理方法、装置、存储介质及电子设备 技术领域
本申请涉及电子设备技术领域,尤其涉及一种应用程序的管理方法、装置、存储介质及电子设备。
背景技术
随着电子技术的不断发展,电子设备如手机的功能越来越强大,在手机中可以安装各种各样的应用,以满足用户的需求,为用户的生活工作带来更多的便利。
很多应用程序在用户打开并切换后会在后台运行,而对于一些用户不常使用的应用程序,在后台运行的话会消耗手机的电量和内存资源,进而影响手机的使用及续航。
目前,为了避免不常使用的应用程序在后台运行而导致手机的电量和内存资源的浪费,用户可以将手机设置为省电模式以限制应用程序的功耗,但是,该方法为同时对所有的应用程序进行功耗限制,影响用户的操作,导致对应用程序的管理效率较低。
发明内容
本申请实施例提供一种应用程序的管理方法、装置、存储介质及电子设备,可以提升应用程序的管理效率。
第一方面,本申请实施例了提供了一种应用程序的管理方法,包括:
根据应用程序的使用习惯,确定出应用程序的预测启动时间;
启动电量管理框架,所述电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;
获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改;
根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
第二方面,本申请实施例了提供了的一种应用程序的管理装置,包括:
确定单元,用于根据应用程序的使用习惯,确定出应用程序的预测启动时间;
启动单元,用于启动电量管理框架,所述电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;
修改单元,用于获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改;
设置单元,用于根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
第三方面,本申请实施例提供的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如本申请任一实施例提供的应用程序的管理方法。
第四方面,本申请实施例提供的电子设备,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行步骤:
根据应用程序的使用习惯,确定出应用程序的预测启动时间;
启动电量管理框架,所述电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;
获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改;
根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
附图说明
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其它有益效果显而易见。
图1为本发明实施例所提供电子设备运行的系统架构图。
图2是本申请实施例提供的应用程序的管理方法的流程示意图。
图3为本申请实施例提供的应用程序的管理方法的另一流程示意图。
图4是本申请实施例提供的应用程序的管理方法的场景示意图。
图5为本申请实施例提供的应用程序的管理装置的模块示意图。
图6为本申请实施例提供的应用程序的管理装置的另一模块示意图。
图7为本申请实施例提供的电子设备的结构示意图。
图8为本申请实施例提供的电子设备的另一结构示意图。
具体实施方式
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。
本文所使用的术语「模块」可看做为在该运算系统上执行的软件对象。本文该的不同组件、模块、引擎及服务可看做为在该运算系统上的实施对象。而本文该的装置及方法优选的以软件的方式进行实施,当然也可在硬件上进行实施,均在本申请保护范围之内。
请参阅图1,图1为本发明实施例所提供电子设备运行的系统架构图,该系统架构为安卓(Android)系统架构,在一实施方式中,该系统架构还可以为苹果(iphone Operating System,IOS)系统框架等。该安卓系统架构是安卓系统的体系结构,安卓的系统架构和其操作系统一样,采用了分层的架构,共分为四层,从高到低分别是安卓应用层(Application),安卓应用框架层(Application Framework),安卓系统运行层和Linux内核层。
应用层:应用是用java语言编写的运行在虚拟机上的程序,比如桌面负一屏应用、摄像机应用、Email客户端、SMS短消息程序以及日历等。
应用框架层:这一层是编写谷歌(Google)发布的核心应用时所使用的应用程序编程接口(Application Programming Interface,API)框架,开发人员同样可以使用这些框架来开发自己的应用,这样便简化了程序开发的结构设计,但是必须要遵守其框架的开发原则,如电量管理框架,该电量管理框架为新增的应用待机分组功能,可以让系统根据用户的使 用情况而限制应用调取中央处理器(Central Processing Unit,CPU)或者网络等设备资源,该应用待机分组能根据应用的使用频率或者最近一次使用时间,对其资源请求进行优先级排序,应用待机分组可以为多组,如四个分组,系统会根据每个应用的使用情况,将其划分至四个优先分组中的一个,而每个分组对设备资源的调度各有不同的限制,优先级越高的分组对设备资源的调度越高,优先级越低的分组对设备资源的调度越低。
系统运行库(C/C++库以及安卓运行库)层:当使用安卓应用框架时,安卓系统会通过一些C/C++库来支持我们使用的各个组件,使其更好的为我们服务,比如其中的SQLite(关系数据库),Webkit(Web浏览器引擎)。
Linux内核层:安卓的核心系统服务给予Linux2.6内核,如安全性、内存管理、进程管理、网络协议栈和驱动模型等都依赖于该内核,比如Binder IPC(Internet Process Connection进程间通信)驱动,安卓的一个特殊驱动程序,具有单独的设备节点,提供进程间通信的功能。
本申请实施例提供一种应用程序的管理方法,该应用程序的管理方法的执行主体可以是本申请实施例提供的应用程序的管理装置,或者集成了该应用程序的管理装置的电子设备,其中该应用程序的管理装置可以采用硬件或者软件的方式实现。其中,电子设备可以是智能手机、平板电脑、掌上电脑(PDA,Personal Digital Assistant)等。
以下进行具体分析说明。
本发明实施例提供一种应用程序的管理方法,包括:
根据应用程序的使用习惯,确定出应用程序的预测启动时间;
启动电量管理框架,所述电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;
获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改;
根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
在一种实施方式中,该根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改的步骤,可以包括:获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;根据所述目标限制条件对所述电量管理框架中的限制条件进行修改。
在一种实施方式中,该根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中的步骤,可以包括:获取修改后的电量管理框架中的限制条件以及应用程序的预测启动时间;根据所述应用程序的预测启动时间匹配限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;将所述应用程序设置在相应的目标电量限制等级中。
在一种实施方式中,所述电量管理框架包括四个级别的电量限制等级,每一电量限制 等级包含有相应的限制条件,该根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改的步骤,可以包括:获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;根据所述目标限制条件对所述电量管理框架中的四个级别的电量限制等级相应的限制条件进行修改。
在一种实施方式中,该根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中的步骤,可以包括:获取修改后的电量管理框架中的四个限制条件以及应用程序的预测启动时间;根据所述应用程序的预测启动时间匹配所述四个限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;将所述应用程序设置在相应的目标电量限制等级中。
在一种实施方式中,该根据应用程序的使用习惯,确定出应用程序的预测启动时间的步骤,可以包括:记录应用程序开启时的时间信息特征作为样本,构成样本集;对所述样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯的预测模型;获取当前的时间信息,将所述时间信息输入预测模型,确定出当前时间下每一应用程序的预测启动时间。
在一种实施方式中,该将应用程序设置在相应的目标电量限制等级中的步骤之后,还可以包括:检测是否处于充电状态;当检测到处于充电状态时,关闭所述电量管理框架。
本申请实施例提供一种应用程序的管理方法,如图2所示,图2为本申请实施例提供的应用程序的管理方法的流程示意图,该应用程序的管理方法可以包括以下步骤:
在步骤S101中,根据应用程序的使用习惯,确定出应用程序的预测启动时间。
需要说明的是,虽然电子设备上会安装各种各样的应用程序,如游戏类应用程序、办公类应用程序以及音频类应用程序等等,但是用户平常使用的过程中,每一应用程序开启的时间都不一样,有些应用经常会被开启,而有些应用可能很久都不会被开启,而对于在近期可能不使用的应用程序,在后台运行的话会消耗手机的电量和内存资源,影响手机的使用及续航,所以用户往往希望只分配较少的设备资源。
其中,可以采集平时用户在开启应用程序的习惯信息,如每一次开启应用程序时的时间信息,连续采集预设数量或者预设时间内的时间信息,形成样本库,对样本库进行训练学习,确定出每一个应用程序的预测启动时间。
在一实施方式中,还可以根据应用程序的使用频率来确定出应用程序的预测启动时间,具体可以为当应用程序的使用频率越高,说明用户在接下来使用的概率越大,相应的应用程序的预测启动时间越短,当应用程序的使用频率越低,说明用户在接下来使用的概率越小,相应的应用程序的预测启动时间越长。
在一些实施方式中,该根据应用程序的使用习惯,确定出应用程序的预测启动时间的步骤,可以包括:
(1)记录应用程序开启时的时间信息特征作为样本,构成样本集;
(2)对所述样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯 的预测模型;
(3)获取当前的时间信息,将所述时间信息输入预测模型,确定出当前时间下每一应用程序的预测启动时间。
其中,可以记录每一应用程序开启时的时间信息特征作为一个样本,构建含有多个样本的样本集,或者连续采集一个周期内的样本,如一个月的样本构建样本集,对该样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯的预测模型,如根据对某一应用程序的打开时间进行训练学习,可以学习出该应用程序在时间上的开启规律,即推算确定出该应用程序每天的启动时间。
进一步的,可以获取当前的时间信息,将该时间信息输入到预测模型,进而确定出在当前时间下每一应用程序的预测启动时间,如当前时间为10点42分,某一应用程序的启动时间为11点42分,那么该应用程序的预测启动时间为60分钟。
在步骤S102中,启动电量管理框架。
其中,该电量管理框架包括有多个级别的电量限制等级,如4个等级等等,每一等级对应用进行相应的资源分配,优先级别越高的等级分配越多的设备资源,相应的,优先级别越低的等级分配越少的设备资源,该设备资源包括应用调用CPU资源或者网络等等。
进一步的,该电量管理框架的每一电量限制等级都包含有相应的限制条件,该限制条件为时间条件,如预测启动时间在2小时以内、3小时以内、4小时以内等等,所以在确定出应用程序的预测启动时间之后,可以相应的启动电量管理框架,实现后期的应用程序的管理。
在步骤S103中,获取当前的电量值,并根据电量值确定出相应的目标限制条件,根据目标限制条件对电量管理框架中的限制条件进行修改。
其中,不同的电量值对于应用程序的使用限制是不同的,当电子设备的电量值充足的情况下,可以放宽对应用程序的使用限制,使得用户具有更流畅的操作体验,而当电子设备的电量值较少的情况下,为了保证电子设备的续航,可以加强对部分应用程序的使用限制,使得被限制的部分应用程序不会过多的浪费设备资源,造成电量的浪费,也就是说电量值越高,限制的应用程序越少,而电量值越低,限制的应用程序越多。
进一步的,可以预先设置电量值与目标限制条件的关联关系,并实时的获取当前的电量值,根据当前电量值确定出适合当前电量条件的目标限制条件,该目标限制条件的数量与电量管理框架中的限制条件的数目相对应,因此,在确定出相应的目标限制条件后,可以根据目标限制条件对电量管理框架中的限制条件进行逐一修改,使得修改后的电量管理框架中的限制条件更符合当前的电量环境。
在一些实施方式中,该根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改的步骤,可以包括:
(1)获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;
(2)根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;
(3)根据所述目标限制条件对所述电量管理框架中的限制条件进行修改。
其中,该预测曲线可以包含每一电量值与限制条件的关联关系,该曲线可以动态反应出电量值与限制条件的关系,因此,获取预测曲线,根据当前的电量值匹配预测曲线,以确定出当前的电量值相应的目标限制条件,该目标限制条件的数量与电量管理框架中的限制条件的数目相对应,所以可以根据目标限制条件对电量管理框架中的限制条件进行逐一修改,使得修改后的电量管理框架中的限制条件更符合当前的电量环境。
在步骤S104中,根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在目标电量限制等级中。
其中,根据修改后的电量管理框架中的每一电量限制等级相应的限制条件以及每一应用程序的预测启动时间,确定出应用程序相应属于的目标电量限制等级,如修改后的电量管理框架中的第一电量限制等级相应的限制条件为1小时内和第二电量限制等级相应的限制条件为2小时内等,第一电量限制等级的优先级高于第二电量限制等级的优先级,某应用程序的预测启动时间为61分钟,根据优先级从高至低的对比原则,确定该应用程序不属于第一电量限制等级,而属于第二电量限制等级,也就是说第二电量限制等级为目标电量限制等级,将该应用程序设置在第二电量限制等级中。
在一些实施方式中,该根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在目标电量限制等级中的步骤,可以包括:
(1)获取修改后的电量管理框架中的限制条件以及应用程序的预测启动时间;
(2)根据所述应用程序的预测启动时间匹配限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;
(3)将所述应用程序设置在相应的目标电量限制等级中。
其中,首先获取修改后的更符合当前的电量环境的电量管理框架中的限制条件,如修改后的电量管理框架中的限制条件为第一电量限制等级相应的限制条件为1小时内,第二电量限制等级相应的限制条件为2小时内,以及第三电量限制等级相应的限制条件为3小时内等等,第一电量限制等级的优先级大于第二电量限制等级,第二电量限制等级的优先级大于第三电量限制等级。获取应用程序的预测启动时间,如某游戏应用程序预测启动时间为150分钟,那么该预测启动时间150分钟与每一限制条件进行匹配,确定匹配的目标限制条件为3小时内,该目标限制条件对于的目标电量限制等级为第三电量限制等级,将该某游戏应用程序设置在该第三电量限制等级中,通过第三电量限制等级的设备资源设置,可以很好的对该某游戏应用程序进行设备资源限制,节省电子设备的功耗。
由上述可知,本实施例提供的一种应用程序的管理方法,通过根据应用程序的使用习惯,确定出应用程序的预测启动时间;启动电量管理框架,电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;获取当前的电量值,并根据电量值确定出相应的目标限制条件,根据目标限制条件对电量管理框架中的限制条件进行修改;根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在目标电量限制等级中。以此可以根据用户使用应用程序的习惯行为,确定出每一应用程序的预测启动时间,启动电量管理框架,并根据当前电量值动态 调整电量管理框架中每一电量限制等级中的限制条件,使得电量管理框架可以根据当前的电量情况更好的对应用程序进行资源限制,实现应用程序管理的自动化,提升了对应用程序的管理效率。
根据上述实施例所描述的方法,以下将举例作进一步详细说明。
请参阅图3,图3为本申请实施例提供的应用程序的管理方法的另一流程示意图。
具体而言,该方法包括:
在步骤S201中,记录应用程序开启时的时间信息特征作为样本,构成样本集。
需要说明的是,为了更好的说明本申请,以下将电子设备以手机进行举例说明,手机中会安装各种各样的应用程序,但是用户平常使用的过程中,每一应用程序开启的时间都不一样,有些应用程序会被频繁的开启,而有些应用可能很长时间都不会被开启,而对于在近期可能不使用的应用程序,在后台正常运行的话会过量的消耗手机的电量和内存资源,影响手机的使用及续航,所以用户往往希望对于此类应用程序只需要分配较少的设备资源即可。
其中,在本申请中,首先进行用户行为学习,即当检测到应用程序开启时,获取当前的开启时间信息特征作为样本,并连续采集一个月内的样本,构成可以反映出应用程序开启习惯的样本集。
在步骤S202中,对样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯的预测模型。
其中,手机对样本集进行训练学习,可以对样本集中的每一应用程序的开启时间信息进行聚类处理,得到可以预测出每一应用程序在某时间点上开启的预测模型。
在步骤S203中,获取当前的时间信息,将时间信息输入预测模型,确定出当前时间下每一应用程序的预测启动时间。
其中,获取当前的时间信息,如14点27分,将该14点27分输入预测模型,根据当前时间14点27分与每一应用程序在该当前时间点之后的时间点的差值,得出每一应用程序的预测启动时间,如应用1的时间点为15点26分、应用2的时间点为16点20分、应用3的时间点为17点21分,应用4的时间点为19时27分,那么可确定出应用1的预测启动时间为59分钟,应用2的预测启动时间为113分钟,应用3的预测启动时间为174分钟,以及应用4的预测启动时间为300分钟。
在步骤S204中,启动电量管理框架。
其中,该手机电量管理框架包括四个级别的电量限制等级,该四个级别的电量限制等级可以分别为活跃(Active)(第一电量限制等级),表示应用正在被使用,在任务、标准闹铃以及FCM信息的资源调用上,该等级下的应用程序免收任何系统限制。工作(Working set)(第二电量限制等级),表示应用使用频率很高,该等级下的应用程序会在任务运行和闹铃触发方面受到部分系统限制。常用(Frequent)(第三电量限制等级),表示应用经常但不是每天被使用,该等级下的应用程序会在任务、触发闹铃的能力都会受到影响,而且接受的高优先性FCM消息也有数量上限。极少(Rare)(第四电量限制等级),应用偶尔 被使用,每一电量限制等级包含有相应的限制条件,该等级下的应用程序会在任务、闹铃和高优先性FCM消息的资源调用上都受到严格的限制,此外,网络访问能力也会受到影响,也就是说,从第一电量限制等级到第四电量限制等级,可以调用的设备资源越来越低。
进一步的,该电量管理框架的每一电量限制等级都有相应的限制条件,如第一电量限制等级的限制条件为2小时内,第二电量限制等级的限制条件为3小时内,第三电量限制等级的限制条件为4小时内,第四电量限制等级的限制条件为4小时外,手机调用系统框架层,启动该电量管理框架。
在步骤S205中,获取预测曲线,根据当前的电量值匹配预测曲线,确定出当前的电量值相应的目标限制条件,根据目标限制条件对电量管理框架中的四个级别的电量限制等级相应的限制条件进行修改。
其中,手机相应的获取预测曲线,该预测曲线包含每一电量值与限制条件的关联关系,该曲线可以动态反应出电量值与限制条件的关系,电量值越高,限制条件越松,电量值越低,相应的限制条件越宽。比如当前的电量值为0.5,那么根据该电量值0.5匹配预测曲线,确定出电量值0.5相应的目标限制条件为第一电量限制等级的限制条件为1小时内,第二电量限制等级的限制条件为2小时内,第三电量限制等级的限制条件为3小时内,第四电量限制等级的限制条件为3小时外。相应的,根据目标限制条件对电量管理框架中的四个级别的电量限制等级相应的限制条件进行修改,使得修改后电量管理框架的四个等级的限制条件符合当前的电量环境。
在步骤S206中,获取修改后的电量管理框架中的四个限制条件以及应用程序的预测启动时间。
其中,获取修改的电量管理框架中的四个电量限制等级相应的四个限制条件,即第一电量限制等级的限制条件为1小时内,第二电量限制等级的限制条件为2小时内,第三电量限制等级的限制条件为3小时内,第四电量限制等级的限制条件为3小时外。和应用程序的预测启动时间,即应用1的预测启动时间为59分钟,应用2的预测启动时间为113分钟,应用3的预测启动时间为174分钟,以及应用4的预测启动时间为300分钟。
在步骤S207中,根据应用程序的预测启动时间匹配四个限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级,将应用程序设置在相应的目标电量限制等级中。
其中,根据应用程序的预测启动时间按照优先级匹配四个限制条件,确定应用1对应的目标电量限制条件为1小时内,属于第一电量限制等级,应用2对应目标电量限制条件为2小时内,属于第二电量限制等级,应用3对应的目标电量限制条件为3小时内,属于第三电量限制等级,和应用4对应的目标电量限制条件为3小时外,属于第四电量限制等级。相应的,将应用程序设置在相应的目标电量限制等级中。
如图4所示,手机显示将应用1放入第一电量限制等级101中,将应用2放入第二电量限制等级102中,将应用3放入第三电量限制等级103中,和将应用4放入第四电量限制等级104中,用户可以手动确认该结果或者对该结果进行相应的调节,以此,可以根据 时间限制来动态调节电量框架每一电量限制等级的应用程序数量,达到节省手机电量的效果。
在步骤S208中,检测是否处于充电状态。
其中,当检测到手机处于充电状态时,执行步骤S209,当检测到手机不处于充电状态时,返回继续执行步骤S208。
在步骤S209中,关闭电量管理框架。
其中,当检测到手机处于充电状态时,由于有电源补给,所以不需要通过电量管理框架对应用程序进行使用限制,影响用户体验,所以可以直接关闭该电量管理框架。
由上述可知,本实施例提供的一种应用程序的管理方法,通过记录应用程序开启时的时间信息特征作为样本,构建样本集,并通过聚类算法对样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯的预测模型,将当前时间信息输入预测模型,即可以预测出每一应用程序的预测启动时间,启动电量管理框架,获取当前的电量值以及预测曲线,确定出当前电量值相应的目标限制条件,根据目标限制条件对电量管理框架中的四个级别的电量限制等级相应的限制条件进行修改,根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在目标电量限制等级中。以此可以根据用户使用应用程序的时间的习惯,确定出每一应用程序的预测启动时间,启动电量管理框架,并根据当前电量值动态调整电量管理框架中每一电量限制等级中的限制条件,在电量值充足的情况下,放宽对应用程序使用的限制,在电量值较低的情况下,缩紧对应用程序使用的限制,使得电量管理框架可以根据当前的电量情况更好的对应用程序进行资源限制,实现应用程序管理的自动化,提升了对应用程序的管理效率。
为便于更好的实施本申请实施例提供的应用程序的管理方法,本申请实施例还提供一种基于上述应用程序的管理方法的装置。其中名词的含义与上述应用程序的管理方法中相同,具体实现细节可以参考方法实施例中的说明。
本发明实施例提供一种应用程序的管理装置,包括:
确定单元,用于根据应用程序的使用习惯,确定出应用程序的预测启动时间;
启动单元,用于启动电量管理框架,所述电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;
修改单元,用于获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改;
设置单元,用于根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
在一种实施方式中,该修改单元,用于获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;匹配子单元,用于根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;修改子单元,用于根据所述目标限制条件对所述电量管理框架中的限制条件进行修改。
在一种实施方式中,该设置单元,可以包括:获取子单元,用于获取修改后的电量管 理框架中的限制条件以及应用程序的预测启动时间;确定子单元,用于根据所述应用程序的预测启动时间匹配限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;设置子单元,用于将所述应用程序设置在相应的目标电量限制等级中。
在一种实施方式中,该确定单元,可以包括:记录子单元,用于记录应用程序开启时的时间信息特征作为样本,构成样本集;生成子单元,用于对所述样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯的预测模型;确定子单元,用于获取当前的时间信息,将所述时间信息输入预测模型,确定出当前时间下每一应用程序的预测启动时间。
在一种实施方式中,所述装置还包括:检测单元,用于检测是否处于充电状态;关闭单元,用于当检测到处于充电状态时,关闭所述电量管理框架。
请参阅图5,图5为本申请实施例提供的应用程序的管理装置的模块示意图。具体而言,该应用程序的管理装置300,包括:确定单元31、启动单元32、修改单元33以及设置单元34。
确定单元31,用于根据应用程序的使用习惯,确定出应用程序的预测启动时间。
其中,确定单元31可以采集平时用户在开启应用程序的习惯信息,如每一次开启应用程序时的时间信息,连续采集预设数量或者预设时间内的时间信息,形成样本库,对样本库进行训练学习,确定出每一个应用程序的预测启动时间。
启动单元32,用于启动电量管理框架,所述电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件。
其中,该电量管理框架包括有多个级别的电量限制等级,如4个等级等等,每一等级对应用进行相应的资源分配,优先级别越高的等级分配越多的设备资源,相应的,优先级别越低的等级分配越少的设备资源,该设备资源包括应用调用CPU资源或者网络等等。
进一步的,该电量管理框架的每一电量限制等级都包含有相应的限制条件,该限制条件为时间条件,如预测启动时间在2小时以内、3小时以内、4小时以内等等,所以在确定出应用程序的预测启动时间之后,启动单元32可以相应的启动电量管理框架,实现后期的应用程序的管理。
修改单元33,用于获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改。
其中,不同的电量值对于应用程序的使用限制是不同的,当电子设备的电量值充足的情况下,可以放宽对应用程序的使用限制,使得用户具有更流畅的操作体验,而当电子设备的电量值较少的情况下,为了保证电子设备的续航,可以加强对部分应用程序的使用限制,使得被限制的部分应用程序不会过多的浪费设备资源,造成电量的浪费,也就是说电量值越高,限制的应用程序越少,而电量值越低,限制的应用程序越多。
进一步的,修改单元33可以预先设置电量值与目标限制条件的关联关系,并实时的获取当前的电量值,根据当前电量值确定出适合当前电量条件的目标限制条件,该目标限制条件的数量与电量管理框架中的限制条件的数目相对应,因此,在确定出相应的目标限制 条件后,可以根据目标限制条件对电量管理框架中的限制条件进行逐一修改,使得修改后的电量管理框架中的限制条件更符合当前的电量环境。
设置单元34,用于根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
其中,设置单元34根据修改后的电量管理框架中的每一电量限制等级相应的限制条件以及每一应用程序的预测启动时间,确定出应用程序相应属于的目标电量限制等级,如修改后的电量管理框架中的第一电量限制等级相应的限制条件为1小时内和第二电量限制等级相应的限制条件为2小时内等,第一电量限制等级的优先级高于第二电量限制等级的优先级,某应用程序的预测启动时间为61分钟,根据优先级从高至低的对比原则,确定该应用程序不属于第一电量限制等级,而属于第二电量限制等级,也就是说第二电量限制等级为目标电量限制等级,将该应用程序设置在第二电量限制等级中。
可一并参考图6,图6为本申请实施例提供的应用程序的管理装置的另一模块示意图,该应用程序的管理装置300还可以包括:
其中,该确定单元31可以包括记录子单元311、生成子单元312以及确定子单元313。
进一步的,该记录子单元311,用于记录应用程序开启时的时间信息特征作为样本,构成样本集。该生成子单元312,用于对所述样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯的预测模型。该确定子单元313,用于获取当前的时间信息,将所述时间信息输入预测模型,确定出当前时间下每一应用程序的预测启动时间。
其中,该修改单元33可以包括获取子单元331、匹配子单元332、以及修改子单元333。
进一步的,该获取子单元331,用于获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系。该匹配子单元332,用于根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件。该修改子单元333,用于根据所述目标限制条件对所述电量管理框架中的限制条件进行修改。
其中,该设置单元34可以包括获取子单元341、确定子单元342以及设置子单元343。
进一步的,该获取子单元331,用于获取修改后的电量管理框架中的限制条件以及应用程序的预测启动时间。该确定子单元342,用于根据所述应用程序的预测启动时间匹配限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级。该设置子单元343,用于将所述应用程序设置在相应的目标电量限制等级中。
检测单元35,用于检测是否处于充电状态。
关闭单元36,用于当检测到处于充电状态时,关闭所述电量管理框架。
本申请实施例还提供一种电子设备。请参阅图7,电子设备500包括处理器501以及存储器502。其中,处理器501与存储器502电性连接。
该处理器500是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器502内的计算机程序,以及调用存储在存储器502内的数据,执行电子设备500的各种功能并处理数据,从而对电子设备500进行整体监控。
该存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502 的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器501对存储器502的访问。
在本申请实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501运行存储在存储器502中的计算机程序,从而实现各种功能,如下:
根据应用程序的使用习惯,确定出应用程序的预测启动时间;
启动电量管理框架,所述电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;
获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改;
根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
在某些实施方式中,在根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改时,处理器501可以具体执行以下步骤:
获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;
根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;
根据所述目标限制条件对所述电量管理框架中的限制条件进行修改。
在某些实施方式中,在根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中时,处理器501可以具体执行以下步骤:
获取修改后的电量管理框架中的限制条件以及应用程序的预测启动时间;
根据所述应用程序的预测启动时间匹配限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;
将所述应用程序设置在相应的目标电量限制等级中。
在某些实施方式中,所述电量管理框架包括四个级别的电量限制等级,每一电量限制等级包含有相应的限制条件,在根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改时,处理器501可以具体执行以下步骤:
获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;
根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;
根据所述目标限制条件对所述电量管理框架中的四个级别的电量限制等级相应的限制条件进行修改。
在某些实施方式中,在根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中时,处理器501可以具体执行以下步骤:
获取修改后的电量管理框架中的四个限制条件以及应用程序的预测启动时间;
根据所述应用程序的预测启动时间匹配所述四个限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;
将所述应用程序设置在相应的目标电量限制等级中。
在某些实施方式中,在根据应用程序的使用习惯,确定出应用程序的预测启动时间时,处理器501可以具体执行以下步骤:
记录应用程序开启时的时间信息特征作为样本,构成样本集;
对所述样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯的预测模型;
获取当前的时间信息,将所述时间信息输入预测模型,确定出当前时间下每一应用程序的预测启动时间。
在某些实施方式中,在将应用程序设置在相应的目标电量限制等级中之后,处理器501还可以具体执行以下步骤:
检测是否处于充电状态;
当检测到处于充电状态时,关闭所述电量管理框架。
请一并参阅图8,在某些实施方式中,电子设备500还可以包括:显示器503、射频电路504、音频电路505以及电源506。其中,其中,显示器503、射频电路504、音频电路505以及电源506分别与处理器501电性连接。
该显示器503可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器503可以包括显示面板,在某些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。
该射频电路504可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。
该音频电路505可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。
该电源506可以用于给电子设备500的各个部件供电。在一些实施例中,电源506可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管图8中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。
本申请实施例还提供一种存储介质,该存储介质存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上述任一实施例中的应用程序的管理方法,比如:根据应用程序的使用习惯,确定出应用程序的预测启动时间;启动电量管理框架,所述电 量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改;根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)、或者随机存取记忆体(Random Access Memory,RAM)等。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
需要说明的是,对本申请实施例的应用程序的管理方法而言,本领域普通测试人员可以理解实现本申请实施例的应用程序的管理方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如应用程序的管理方法的实施例的流程。其中,该的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。
对本申请实施例的应用程序的管理装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,该存储介质譬如为只读存储器,磁盘或光盘等。
以上对本申请实施例所提供的一种应用程序的管理方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种应用程序的管理方法,其中,包括:
    根据应用程序的使用习惯,确定出应用程序的预测启动时间;
    启动电量管理框架,所述电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;
    获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改;
    根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
  2. 如权利要求1所述的应用程序的管理方法,其中,所述根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改的步骤,包括:
    获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;
    根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;
    根据所述目标限制条件对所述电量管理框架中的限制条件进行修改。
  3. 如权利要求2所述的应用程序的管理方法,其中,所述根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中的步骤,包括:
    获取修改后的电量管理框架中的限制条件以及应用程序的预测启动时间;
    根据所述应用程序的预测启动时间匹配限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;
    将所述应用程序设置在相应的目标电量限制等级中。
  4. 如权利要求1所述的应用程序的管理方法,其中,所述电量管理框架包括四个级别的电量限制等级,每一电量限制等级包含有相应的限制条件,所述根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改的步骤,包括:
    获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;
    根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;
    根据所述目标限制条件对所述电量管理框架中的四个级别的电量限制等级相应的限制条件进行修改。
  5. 如权利要求4所述的应用程序的管理方法,其中,所述根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中的步骤,包括:
    获取修改后的电量管理框架中的四个限制条件以及应用程序的预测启动时间;
    根据所述应用程序的预测启动时间匹配所述四个限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;
    将所述应用程序设置在相应的目标电量限制等级中。
  6. 如权利要求1所述的应用程序的管理方法,其中,所述根据应用程序的使用习惯,确定出应用程序的预测启动时间的步骤,包括:
    记录应用程序开启时的时间信息特征作为样本,构成样本集;
    对所述样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯的预测模型;
    获取当前的时间信息,将所述时间信息输入预测模型,确定出当前时间下每一应用程序的预测启动时间。
  7. 如权利要求1所述的应用程序的管理方法,其中,所述将应用程序设置在相应的目标电量限制等级中的步骤之后,还包括:
    检测是否处于充电状态;
    当检测到处于充电状态时,关闭所述电量管理框架。
  8. 一种应用程序的管理装置,其中,包括:
    确定单元,用于根据应用程序的使用习惯,确定出应用程序的预测启动时间;
    启动单元,用于启动电量管理框架,所述电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;
    修改单元,用于获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改;
    设置单元,用于根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
  9. 如权利要求8所述的应用程序的管理装置,其中,所述修改单元,包括:
    获取子单元,用于获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;
    匹配子单元,用于根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;
    修改子单元,用于根据所述目标限制条件对所述电量管理框架中的限制条件进行修改。
  10. 如权利要求9所述的应用程序的管理装置,其中,所述设置单元,包括:
    获取子单元,用于获取修改后的电量管理框架中的限制条件以及应用程序的预测启动时间;
    确定子单元,用于根据所述应用程序的预测启动时间匹配限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;
    设置子单元,用于将所述应用程序设置在相应的目标电量限制等级中。
  11. 如权利要求8所述的应用程序的管理装置,其中,所述确定单元,包括:
    记录子单元,用于记录应用程序开启时的时间信息特征作为样本,构成样本集;
    生成子单元,用于对所述样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯的预测模型;
    确定子单元,用于获取当前的时间信息,将所述时间信息输入预测模型,确定出当前时间下每一应用程序的预测启动时间。
  12. 如权利要求8所述的应用程序的管理装置,其中,所述装置还包括:
    检测单元,用于检测是否处于充电状态;
    关闭单元,用于当检测到处于充电状态时,关闭所述电量管理框架。
  13. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1所述的应用程序的管理方法。
  14. 一种电子设备,包括处理器和存储器,所述存储器有计算机程序,其中,所述处理器通过调用所述计算机程序,用于执行步骤:
    根据应用程序的使用习惯,确定出应用程序的预测启动时间;
    启动电量管理框架,所述电量管理框架包括多个级别的电量限制等级,每一电量限制等级包含有相应的限制条件;
    获取当前的电量值,并根据所述电量值确定出相应的目标限制条件,根据所述目标限制条件对所述电量管理框架中的限制条件进行修改;
    根据修改后的电量管理框架以及应用程序的预测启动时间确定出相应的目标电量限制等级,并将应用程序设置在所述目标电量限制等级中。
  15. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:
    获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;
    根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;
    根据所述目标限制条件对所述电量管理框架中的限制条件进行修改。
  16. 如权利要求15所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:
    获取修改后的电量管理框架中的限制条件以及应用程序的预测启动时间;
    根据所述应用程序的预测启动时间匹配限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;
    将所述应用程序设置在相应的目标电量限制等级中。
  17. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:
    获取预测曲线,所述预测曲线包含每一电量值与限制条件的关联关系;
    根据当前的电量值匹配所述预测曲线,确定出当前的电量值相应的目标限制条件;
    根据所述目标限制条件对所述电量管理框架中的四个级别的电量限制等级相应的限制条件进行修改。
  18. 如权利要求17所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:
    获取修改后的电量管理框架中的四个限制条件以及应用程序的预测启动时间;
    根据所述应用程序的预测启动时间匹配所述四个限制条件,确定匹配的目标限制条件以及目标限制条件对应的目标电量限制等级;
    将所述应用程序设置在相应的目标电量限制等级中。
  19. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:
    记录应用程序开启时的时间信息特征作为样本,构成样本集;
    对所述样本集进行训练学习,生成包含有时间信息维度上的应用程序的使用习惯的预测模型;
    获取当前的时间信息,将所述时间信息输入预测模型,确定出当前时间下每一应用程序的预测启动时间。
  20. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,还用于执行步骤:
    检测是否处于充电状态;
    当检测到处于充电状态时,关闭所述电量管理框架。
PCT/CN2018/125694 2018-12-29 2018-12-29 应用程序的管理方法、装置、存储介质及电子设备 WO2020133437A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/125694 WO2020133437A1 (zh) 2018-12-29 2018-12-29 应用程序的管理方法、装置、存储介质及电子设备
CN201880099385.8A CN112997150B (zh) 2018-12-29 2018-12-29 应用程序的管理方法、装置、存储介质及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/125694 WO2020133437A1 (zh) 2018-12-29 2018-12-29 应用程序的管理方法、装置、存储介质及电子设备

Publications (1)

Publication Number Publication Date
WO2020133437A1 true WO2020133437A1 (zh) 2020-07-02

Family

ID=71128512

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/125694 WO2020133437A1 (zh) 2018-12-29 2018-12-29 应用程序的管理方法、装置、存储介质及电子设备

Country Status (2)

Country Link
CN (1) CN112997150B (zh)
WO (1) WO2020133437A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114047741B (zh) * 2021-11-10 2024-03-19 潍柴动力股份有限公司 自修复诊断限制系统临时中断功能的实现方法及相关装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104160360A (zh) * 2012-01-25 2014-11-19 苹果公司 电子设备的电源管理
CN106201448A (zh) * 2015-05-04 2016-12-07 中国移动通信集团辽宁有限公司 信息处理方法及用户终端
CN106569890A (zh) * 2016-11-09 2017-04-19 广东欧珀移动通信有限公司 一种应用控制方法及终端
CN107402809A (zh) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 应用程序的管控方法、装置、存储介质及电子设备
US20180102981A1 (en) * 2014-03-10 2018-04-12 Microsoft Technology Licensing, Llc Resource management based on device-specific or user-specific resource usage profiles

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095412B (zh) * 2016-05-31 2019-07-16 Oppo广东移动通信有限公司 一种应用程序的关闭方法和装置
CN106020907B (zh) * 2016-05-31 2019-12-03 Oppo广东移动通信有限公司 一种应用程序的关闭方法和装置
CN106125896A (zh) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 一种应用程序冻结方法及移动终端
CN107734616B (zh) * 2017-10-31 2021-01-15 Oppo广东移动通信有限公司 应用程序关闭方法、装置、存储介质和电子设备
CN107832131B (zh) * 2017-10-31 2020-07-07 Oppo广东移动通信有限公司 应用程序关闭方法、装置、存储介质和电子设备
CN107809542B (zh) * 2017-11-14 2020-06-12 Oppo广东移动通信有限公司 应用程序控制方法、装置、存储介质和电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104160360A (zh) * 2012-01-25 2014-11-19 苹果公司 电子设备的电源管理
US20180102981A1 (en) * 2014-03-10 2018-04-12 Microsoft Technology Licensing, Llc Resource management based on device-specific or user-specific resource usage profiles
CN106201448A (zh) * 2015-05-04 2016-12-07 中国移动通信集团辽宁有限公司 信息处理方法及用户终端
CN106569890A (zh) * 2016-11-09 2017-04-19 广东欧珀移动通信有限公司 一种应用控制方法及终端
CN107402809A (zh) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 应用程序的管控方法、装置、存储介质及电子设备

Also Published As

Publication number Publication date
CN112997150A (zh) 2021-06-18
CN112997150B (zh) 2023-12-08

Similar Documents

Publication Publication Date Title
US10467025B2 (en) Managing delivery of code and dependent data using application containers
US11144371B2 (en) Digital assistant extensibility to third party applications
US20240054079A1 (en) Memory Management Method and Apparatus, Electronic Device, and Computer-Readable Storage Medium
KR102148948B1 (ko) 전자 장치의 멀티 태스킹 방법 및 그 전자 장치
CN109947496B (zh) 应用程序预加载方法、装置、存储介质及移动终端
US10470133B2 (en) Electronic device and method for controlling application and component
WO2019128540A1 (zh) 资源管理方法、移动终端及计算机可读存储介质
WO2019024646A1 (zh) 应用管控方法、装置及电子设备
WO2020042769A1 (zh) 图像信息的传输方法、装置、存储介质及电子设备
JP2024515462A (ja) アプリケーションによる描画操作を実行する方法及び電子装置
CN110032266B (zh) 信息处理方法、装置、计算机设备和计算机可读存储介质
WO2019024619A1 (zh) 进程管理方法、装置、存储介质及电子设备
WO2024119988A1 (zh) 多cpu环境下的进程调度方法、装置、电子设备和介质
WO2019128573A1 (zh) 信息处理方法、装置、计算机设备和计算机可读存储介质
WO2020206688A1 (zh) 视频播放方法、装置、存储介质及电子设备
WO2020133408A1 (zh) 应用程序的优先级调整方法、装置、存储介质及电子设备
CN107832131B (zh) 应用程序关闭方法、装置、存储介质和电子设备
WO2020133437A1 (zh) 应用程序的管理方法、装置、存储介质及电子设备
CN107908273B (zh) 应用管理方法、装置、存储介质及电子设备
WO2020206690A1 (zh) 应用清理方法、装置、存储介质及电子设备
WO2019024643A1 (zh) 数据同步管控方法、装置及电子设备
WO2020133455A1 (zh) 应用程序的管理方法、装置、存储介质及电子设备
CN117112046B (zh) 应用程序的启动方法及电子设备
WO2020133441A1 (zh) 应用程序的管理方法、装置、存储介质及电子设备
CN111385416B (zh) 电子设备和闹钟处理方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18945238

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 081121)

122 Ep: pct application non-entry in european phase

Ref document number: 18945238

Country of ref document: EP

Kind code of ref document: A1