WO2023241052A1 - 应用的运行状态调节方法、终端及存储介质 - Google Patents

应用的运行状态调节方法、终端及存储介质 Download PDF

Info

Publication number
WO2023241052A1
WO2023241052A1 PCT/CN2023/073431 CN2023073431W WO2023241052A1 WO 2023241052 A1 WO2023241052 A1 WO 2023241052A1 CN 2023073431 W CN2023073431 W CN 2023073431W WO 2023241052 A1 WO2023241052 A1 WO 2023241052A1
Authority
WO
WIPO (PCT)
Prior art keywords
current
target
application
threshold value
target application
Prior art date
Application number
PCT/CN2023/073431
Other languages
English (en)
French (fr)
Inventor
谢军
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023241052A1 publication Critical patent/WO2023241052A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Definitions

  • the present disclosure relates to the field of terminal technology, and in particular, to an application running state adjustment method, a terminal and a storage medium.
  • the youth mode will limit the login period and login time, as well as restrict browsing content, etc.; the other is to pre-set the use of the target application.
  • the above two methods are mandatory for restricting the target application, and the control methods are not flexible enough. For example, when the user is using the target application and the target application is forced to close because the limit time is reached, the user experience will be affected.
  • the main purpose of the present disclosure is to provide an application running state adjustment method, a terminal and a storage medium, aiming to solve the technical problem of low flexibility of existing target application restriction methods.
  • the present disclosure provides a method for adjusting the running status of an application.
  • the method for adjusting the running status of an application includes: obtaining the current running information of the target application; wherein the current running information is the resource usage data of the target application within the current restricted period; obtaining the current user corresponding The target adjustment coefficient and the basic threshold value of the target application in the current restricted period, and the target threshold value is calculated based on the target adjustment coefficient and the basic threshold value; based on the comparison result of the current operating information and the target threshold value, the target application is adjusted The running status during the current restricted period.
  • the present disclosure also provides a terminal, which includes a processor, a memory, and one or more computer programs stored on the memory and executable by the processor.
  • One or more computer programs may be executed by one or more processors to implement the steps of the operating state adjustment method applied as above.
  • the present disclosure also provides a computer-readable storage medium.
  • One or more computer programs are stored on the computer-readable storage medium.
  • the one or more computer programs are executed by a processor, the above-applied running state adjustment method is implemented. A step of.
  • Figure 1 is a schematic diagram of the hardware structure of a terminal involved in the solution of the present disclosure
  • Figure 2 is a schematic flow chart of the first embodiment of the operating state adjustment method applied in the present disclosure
  • Figure 3 is a schematic flowchart of a second embodiment of the operating state adjustment method applied in the present disclosure
  • Figure 4 is a schematic flowchart of a third embodiment of the operating state adjustment method applied in the present disclosure.
  • Figure 5 is a schematic flowchart of the fourth embodiment of the operating state adjustment method applied in the present disclosure.
  • Figure 6 is a functional module schematic diagram of the first embodiment of the operating state adjustment device applied in the present disclosure.
  • the youth mode will limit the login period and login time, as well as restrict browsing content, etc.; the other is to pre-set the use of the target application.
  • the above two methods are mandatory for restricting the target application, and the control methods are not flexible enough. For example, when the user is using the target application and the target application is forced to close because the limit time is reached, the user experience will be affected.
  • the application running state adjustment method involved in the present disclosure is mainly applied to a terminal, which may be a PC, portable computer, mobile terminal, or other device with display and processing functions.
  • Figure 1 is a schematic diagram of the hardware structure of a terminal involved in the present disclosure.
  • the terminal may include a processor 1001 (such as a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to realize connection and communication between these components;
  • the user interface 1003 can include a display screen (Display) and an input unit such as a keyboard (Keyboard);
  • the network interface 1004 can optionally include a standard wired interface and a wireless interface. (such as WI-FI interface);
  • the memory 1005 can be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory.
  • the memory 1005 can optionally be a storage device independent of the aforementioned processor 1001 .
  • Figure 1 does not constitute a limitation on the terminal involved in the present disclosure, and may include more or fewer components than shown, or combine certain components, or different components. layout.
  • the memory 1005 as a computer-readable storage medium in FIG. 1 may include an operating system, a network communication module, and one or more computer programs.
  • the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call one or more computer programs stored in the memory 1005 and execute the application running status adjustment method provided by the present disclosure. .
  • the present disclosure provides a method for adjusting the operating status of an application.
  • Figure 2 is a schematic flow chart of a first embodiment of the operating state adjustment method applied in the present disclosure.
  • Step S10 Obtain the current running information of the target application, where the current running information is the resource usage data of the target application within the current restricted period.
  • the current running information refers to the system resources required when the target application is running. Controlling the use of resources can indirectly control the running status of the target application.
  • the resource usage is sampled based on the application restriction instruction. Generally, the usage of various resources used by the target application during the current restriction period is accumulated as the current running information of the target application. .
  • the running information of the present disclosure refers to the system resources used by the application when running, such as power consumption, cache space, running time, Internet data traffic, etc.
  • the running status refers to the process status of the application, which is mainly divided into the application process does not exist (i.e. stops running), is running in the foreground, and is running in the background.
  • the adjustment of the running status mainly includes allowing the application process to continue (ie, allowing the application to run), restricting the application run (ie, limiting the resource usage of the application), or ending the application process (ie, stopping the application from running).
  • the application restriction method provided by the present disclosure needs to trigger execution based on the application restriction instruction.
  • the application restriction method is not a function that a device must include, but can be used as a function item or function. It can be applied and users can choose whether to use it to enhance user experience.
  • the application restriction method provided by the present disclosure is executed, that is, the application operation restriction mode is entered; this mode can independently set the use switch, such as through user menu selection, icon triggering, remote control It can be activated by command, device startup configuration, preset time point or cycle time point triggering; it can also be bundled with the existing mode of the device, such as youth mode, growth protection mode, etc.
  • the purpose of general resource control is to reduce the harm to the human body caused by the use of electronic equipment, or to save limited resources, etc., so the resources related to this can be controlled using the application restriction method provided by the present disclosure.
  • typical resources that need to be controlled include multiple resource restriction dimensions such as foreground running time, application power consumption, and application Internet data traffic.
  • the various types of resources that need to be collected can be required for the operation of the target application itself, as well as the target application depends on other application services during the operation process, resulting in the sharing of resources used by other application services.
  • various types of resource samples in this embodiment are accumulated to represent resource original units.
  • the foreground running time can be expressed based on the system clock precision, such as nanoseconds (ns).
  • ns nanoseconds
  • the application power consumption can be based on the system's own power consumption statistics, such as the application power consumption statistics in the Android system, and the unit is generally milliampere hours (mAh).
  • the Internet data traffic can be separately selected for the paid public network traffic sending and receiving statistics, or can include all data sending and receiving statistics including free wifi data, and the unit is generally KB.
  • the delta cumulative value is generally calculated according to the piling event timestamp corresponding to the resource characteristics, or the delta is accumulated according to a certain frequency sampling period value; for example, for the foreground running time, if the system receives the timestamp of the target application switching to the foreground event as t1, and receives the target application switching to the background event after a period of time, or another non-target application switching to the foreground event, at this time the system The timestamp is t2, then the foreground running time of the target application is (t2-t1).
  • restrictions on various types of resources have a timeline attribute, which is recorded as a restriction period.
  • the restriction period in which the target application is currently running is recorded as the current restriction period.
  • the restriction period generally has a start time point and an end time point. The end time point can be set manually, or the time when a certain event is triggered can be marked as the end time point, such as exiting the application restriction method of the present disclosure.
  • multiple time-consecutive restriction periods may be combined as the current restriction period, Sampling of various resources is completed within each sub-restriction period, and is finally accumulated into the current operating information of the current restriction period.
  • the definition of the restriction period of the present disclosure requires a preset time distribution, which can be configured according to a calendar time period or configured and used in one go. For example, when executing the application restriction method of the present disclosure, the user selects 18:00-21:00 of the day as the restriction period through the setting interface. The application restriction method of the present disclosure is not executed during the non-restriction period, but within this period of the day. The application restriction method will be executed; if daily periodic execution is selected based on this configuration, then the disclosed application restriction method will be triggered and executed during this period of each subsequent day.
  • Step S20 Obtain the target adjustment coefficient corresponding to the current user and the basic threshold value of the target application in the current restricted period, and calculate the target threshold value based on the target adjustment coefficient and the basic threshold value.
  • the target threshold value is calculated based on the basic threshold values and target adjustment coefficients of various types of resources.
  • the current user can be any user using the target application.
  • the current user who uses the target application can be clearly identified based on account information, etc., and the current user's historical resource usage value or historical adjustment coefficient can be called based on the current user's account information to further determine the current user's usage in the current restricted period.
  • Base threshold and target adjustment coefficient If the current user is using the target application for the first time, the initial adjustment coefficient and basic threshold can be used, and then adjusted according to the current user's usage habits.
  • Step S30 Adjust the running status of the target application during the current restricted period based on the comparison result between the current running information and the target threshold value.
  • the usage of various resources of the current running information is judged, so as to learn the usage of the target application during the current restricted period, and according to the target Application usage, and adjust the running status of the target application accordingly.
  • the current running information is greater than the target threshold value, it means that the use of the target application during the current restricted period has exceeded the limit. At this time, the operation of the target application needs to be restricted and the operation of the target application needs to be stopped; If the current running information is less than the target threshold value, it means that the use of the target application during the current restriction period is within the allowed limit range. At this time, the restrictions on the target application can be relaxed to allow the target application to continue running.
  • This embodiment provides a method for adjusting the running status of an application.
  • the method obtains the current running information of the target application.
  • the current running information is the resource usage data of the target application in the current restricted period; obtain the target adjustment coefficient corresponding to the current user and the basic threshold value of the target application in the current restricted period, and calculate the target based on the target adjustment coefficient and the basic threshold value Threshold value: Based on the comparison between the current running information and the target threshold value, adjust the running status of the target application during the current restricted period.
  • the target threshold value is used to dynamically adjust the basic threshold value based on the current user's usage habits of the target application during the current restricted period; and based on the comparison results between the current running information and the target threshold value, the current usage of the target application is The usage status is adjusted, thereby realizing dynamic adjustment of the target application, making the operation restrictions on the target application more flexible, improving the user experience, and solving the technical problem of low flexibility of the existing target application restriction methods.
  • steps S021 to S022 are also specifically included.
  • the initial adjustment coefficient may be a preset initial value. For example, based on historical operating information, a range of the initial adjustment coefficient is evaluated, and the initial adjustment coefficient for the current restriction period is set according to the range; or The current limit time can be calculated based on the mathematical expectation of historical operating information and the deviation value of the basic threshold value. The initial adjustment coefficient of the segment.
  • the historical operating information Old_std_1, Old_std_2, ..., Old_std_n of n limited periods saved before the current limited period is obtained, and the mathematical expectation of the n historical operating information is calculated through the existing mathematical calculation method.
  • the coefficient New_factor Bias_0-Bias, so that the calculated initial adjustment coefficient meets actual needs.
  • the initial adjustment coefficient can be expanded, thereby indirectly raising the target threshold value; if the deviation proportion value is A positive number means that the overall expectation of historical operating information exceeds the basic threshold value, that is, the use of various resources is excessive.
  • the initial adjustment coefficient should be reduced, and then the target threshold value can be indirectly lowered to adjust the use of various resources. limit.
  • step S20 before step S20, it further includes:
  • the initial adjustment coefficient and initial threshold value are determined based on the historical resource usage data corresponding to at least one historical user.
  • the historical resource usage data includes the foreground running time, application power consumption and Internet access Data Flow. Update the initial adjustment coefficient according to the target resource usage data corresponding to the current user. Generate target adjustment coefficients.
  • the basic coefficient can be adjusted accordingly based on feedback data automatically evaluated by the system or feedback data provided by different users after use.
  • a target adjustment coefficient suitable for the current limit period is generated; the target adjustment coefficient for each limit period can be calculated and adjusted accordingly, making the adjustment coefficient an iterative feedback parameter.
  • the initial adjustment coefficient and the basic threshold value of the current restricted period are calculated based on historical operating information, and the initial adjustment coefficient can be calculated and adjusted accordingly according to the actual usage of the target application by different users. , so as to adjust the running restrictions of the target application accordingly; for users who can comply with the application usage restrictions, they can be allowed to use the application beyond the limit within a certain range; conversely, for users who always use the application beyond the limit, they can be restricted The duration of use of the target application, so as to achieve the control effect of the target application.
  • FIG. 4 is a schematic flowchart of a third embodiment of the operating state adjustment method applied in the present disclosure.
  • step S30 specifically includes steps S31 to step S33.
  • Step S32 Compare various types of resource usage data with corresponding threshold values to obtain comparison results corresponding to various types of resource usage data.
  • adjusting the running status of the target application during the current limit period according to the over-limit flags of various types of resources specifically includes: performing logical operations on the current over-limit flags of various types of resources, and based on the results of the logical operations, Adjust the running status of the target application during the current restricted period to restricted running status or stop running status.
  • the logical operation result is "TRUE”, it means that the sampling cumulative value of at least one type of target resource among various types of resources exceeds the corresponding target threshold value. At this time, it is determined that the target adjustment state of the target application is to stop the operation of the target application; if the logic The operation result is "FALSE”, which means that the cumulative sampling value of various resources does not exceed the corresponding target threshold value. At this time, it is determined that the target adjustment state of the target application is to allow the operation of the target application; after completing the logical operation, the target application is determined based on the determination result. Adjust the current running status of the target application accordingly.
  • adjusting the running status of the target application in the current restricted period according to the over-limit flags of various types of resources specifically includes: when there are over-limit resources in various types of resources with the over-limit flag being true, Then obtain the resource level of the over-limit resource; when the resource level of the over-limit resource reaches the preset level, adjust the running state of the target application during the current limit period to the stopped running state; when the resource level of the over-limit resource does not reach the preset level , adjust the running status of the target application during the current restricted period to the restricted running status.
  • the adjustment status of the target application when it is necessary to limit the running status of the target application, it may be determined based on the user's actual usage requirements or the actual usage of the current resource usage data that the adjustment status of the target application is to limit the running status or It is a stopped state.
  • the over-limit level of the resource usage data of this type of resource is determined. If the over-limit level of the resource usage data of this type of resource is It is the first level, which means that the over-limit degree of this type of resource is low. It may be that too many running applications cause the target application to occupy a larger share of resources. At this time, you can adjust the running status of the target application to the restricted running status; and if this type The over-limit level of the resource is level 2 or more, which means that the over-limit level of this type of resource is relatively high. It may be that the target application takes a long time to run. At this time, the running state of the target application can be adjusted to stop running state to force Remind the current user to stop running the target application.
  • the over-limit usage of the target application is dynamically restricted.
  • Limiting the running status is equivalent to reminding the user to choose to actively stop or the target application is about to be forced to stop, rather than directly and forcibly stopping the operation of the target application.
  • FIG. 5 is a schematic flowchart of a fourth embodiment of the operating state adjustment method applied in the present disclosure.
  • Step S11 Obtain the initial resource usage data of the target application within the current restricted period, and determine the resource correction coefficient based on the current operating environment data of the target application.
  • Step S12 Based on the resource correction coefficient, the initial resource usage data is corrected to obtain current operating information.
  • the current running environment data of the target application will have an impact on the current running information of the target application.
  • the present disclosure can modify the The actual sampling cumulative values of various resources are corrected by increasing, decreasing, and maintaining.
  • the usage of various resources by the target application within the current restriction period is sampled to obtain the corresponding initial resource usage data, and then the usage status of the device is determined according to the device usage status and the device usage.
  • the impact of the usage environment on the user experience is evaluated to obtain a resource correction coefficient, and the initial resource usage data collected is corrected through the resource correction coefficient to obtain the corrected resource usage data as the target The current running information of the application during the current restricted period.
  • the application restriction method provided by the present disclosure is typically applied to mobile devices such as mobile phones and tablets.
  • Target applications that need to be restricted are installed in the mobile devices. Typical target applications are games, and the controlled applications can be expanded. to the entire installed application belonging to an application category, such as game applications; in actual control, several similar applications can be restricted as a whole, that is, several applications can be treated as an application group or a combined application to obtain an application as a whole.
  • the running information corresponding to the entire application is the sum of the accumulated sampling values of various resources used by each target application of this category within the restricted period.
  • the environment and device status of the device have an impact on the use of various resources. For example, if the screen brightness of the device is too bright or too dark relative to the environment, it will cause damage to the user's eyes. will increase. At this time, the resource usage should be limited to less, and the user should be reminded to reduce the use of the device in this environment; or under certain environmental noise, if the volume is too high or too low, it may affect the user experience, so it needs to be limited. Reduction in resource use; or the impact of environment and equipment temperature, etc. In inappropriate environments or equipment temperatures, the reduction in resource use should be limited. In addition, the location where the user uses the mobile device will also be an influencing factor. Users in different locations may expect different levels of restrictions, so the resource restrictions of the target application need to be flexibly adjusted based on actual usage scenarios and usage needs.
  • the correction of multiple factors based on the environment and equipment can be understood as an equivalent correction coefficient for a type of resource.
  • a correction coefficient of 1 means that the environment and equipment status have no influence on the cumulative result. correction, then the correction coefficient is greater than 1, which means that the sampling cumulative value of the actual resource usage will obtain an expanded virtual cumulative value after being corrected by the correction coefficient. At this time, the sampling accumulation of various types of resources will be accelerated and reach the goal faster.
  • the target threshold value will cause the target application to run limited; if the correction coefficient is less than 1, the cumulative sampling value will be reduced, delaying the time for the cumulative sampling value of various resources to reach the target threshold value, allowing the target application to run longer time.
  • the present disclosure also provides an applied operating state adjustment device.
  • FIG. 6 is a functional module schematic diagram of the first embodiment of the operating state adjustment device applied by the present disclosure.
  • the application's running status adjustment device includes a current running information acquisition module 10, a target threshold calculation module 20, and a running status adjustment module 30.
  • the current running information acquisition module 10 is configured to obtain the current running information of the current application.
  • the current running information is the target Resource usage data of the target application during the current restricted period.
  • the target threshold value calculation module 20 is configured to obtain the target adjustment coefficient corresponding to the current user and the basic threshold value of the target application in the current restricted period, and calculate the target threshold value based on the target adjustment coefficient and the basic threshold value.
  • the running status adjustment module 30 is configured to adjust the running status of the target application during the current restricted period based on the comparison result between the current running information and the target threshold value.
  • the applied operating state adjustment device may further include a target adjustment coefficient generation module.
  • the target adjustment coefficient generation module may include: a deviation value calculation unit configured to receive the preset initial adjustment coefficient or the basic gate. When issuing an adjustment operation instruction for the limit value, the deviation value between the feedback value in the adjustment operation instruction and the basic threshold value is calculated; the target adjustment coefficient generation unit is configured to increase or increase the initial adjustment coefficient or the basic threshold value according to the deviation value. Decrease to generate the target adjustment coefficient.
  • the target adjustment coefficient generation module specifically includes: an initial adjustment coefficient generation unit configured to read the initial adjustment coefficient and the initial threshold value; wherein the initial adjustment coefficient and the initial threshold value are based on at least one The historical resource usage data corresponding to historical users is determined.
  • the historical resource usage data includes the foreground running time, application power consumption and Internet data traffic; the initial adjustment coefficient update unit is configured to update the initial adjustment coefficient based on the target resource usage data corresponding to the current user. Update is performed to generate the target adjustment coefficient.
  • the operating status adjustment module 30 includes: a threshold value determination submodule configured to obtain various types of resource usage data in the current operating information, and determine various types of resource usage data in the target threshold value. The corresponding threshold value; the data comparison sub-module is configured to compare various types of resource usage data with the corresponding threshold values to obtain the comparison results corresponding to various types of resource usage data; the running status adjustment sub-module is configured to compare the The comparison results corresponding to various types of resource usage data adjust the running status of the target application during the current restricted period.
  • the running status adjustment submodule specifically includes: an over-limit flag setting unit configured to set the over-limit flag corresponding to the resource whose usage data is greater than the corresponding threshold value to true, and set the usage data not greater than The over-limit flag corresponding to the resource corresponding to the threshold value is set to false; the running status adjustment unit is configured to adjust the running status of the target application during the current limit period based on the over-limit flag of various resources.
  • the running status adjustment unit specifically includes: a running status adjustment subunit configured to perform logical operations on the current over-limit flags of various types of resources, and apply the target in the current limit period based on the results of the logical operations.
  • the operating state is adjusted to limited operating state or stopped operating state.
  • the running status adjustment unit specifically includes: a resource level acquisition subunit configured to obtain the resource level of the over-limit resource when there are over-limit resources in various types of resources with an over-limit mark that is true. ; Stop the running status adjustment subunit, configured to apply the target to the current limit when the resource level of the over-limit resource reaches the preset level. The running status of the restricted period is adjusted to the stopped running state; the restricted running status adjustment subunit is configured to adjust the running status of the target application in the current restricted period to the restricted running state when the resource level of the over-limit resource does not reach the preset level.
  • the current running information obtaining module 10 includes: an initial resource usage data obtaining unit configured to obtain initial resource usage data of the target application within the current restricted period; a current running information obtaining unit configured to obtain the target application based on the target application.
  • the current operating environment data is used to determine the resource correction coefficient, and based on the resource correction coefficient, the initial resource usage data is corrected to obtain the current operating information.
  • Each module in the above-mentioned application's running state adjustment device corresponds to each step in the above-mentioned application's running state adjustment method embodiment, and their functions and implementation processes will not be described in detail here.
  • the present disclosure also provides a computer-readable storage medium.
  • One or more computer programs are stored on the computer-readable storage medium of the present disclosure. When one or more computer programs are executed by a processor, the steps of the above-mentioned application running state adjustment method are implemented.
  • the present disclosure may be used in numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputers, mainframe computers, including Distributed computing environment for any of the above systems or devices, etc.
  • the present disclosure may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • the present disclosure may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network.
  • program modules may be located in both local and remote computer storage media including storage devices.
  • the methods of the above embodiments can It can be implemented with the help of software plus the necessary common hardware platform. Of course, it can also be implemented through hardware, but in many cases the former is a better implementation method.
  • the technical solution of the present disclosure can be embodied in the form of a software product in nature or in part that contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM) as mentioned above. , magnetic disk, optical disk), including several instructions to cause a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present disclosure.
  • the present disclosure provides a method for adjusting the running status of an application.
  • the method obtains the current running information of the target application.
  • the current running information is the resource usage data of the target application in the current restricted period; obtain the target adjustment coefficient corresponding to the current user and the basic threshold value of the target application in the current restricted period, and calculate the target based on the target adjustment coefficient and the basic threshold value Threshold value: Based on the comparison between the current running information and the target threshold value, adjust the running status of the target application during the current restricted period.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

本公开涉及终端技术领域,本公开提供一种应用的运行状态调节方法、终端及存储介质,方法基于目标应用在当前限制时段内的当前运行信息,获悉目标应用在当前限制时段内的资源使用情况;根据当前用户对应的目标调节系数以及基础门限值,计算得到适用于当前用户的目标门限值,从而基于当前用户在当前限制时段对于目标应用的使用习惯,对基础门限值进行动态调节;并根据当前运行信息和目标门限值的比对结果,对目标应用的当前使用状况进行调节。

Description

应用的运行状态调节方法、终端及存储介质
相关申请的交叉引用
本公开要求享有2022年06月15日提交的名称为“应用的运行状态调节方法、终端及存储介质”的中国专利申请CN202210676015.4的优先权,其全部内容通过引用并入本公开中。
技术领域
本公开涉及终端技术领域,尤其涉及一种应用的运行状态调节方法、终端及存储介质。
背景技术
目前,对于移动终端中的应用使用限制,一种是限制用户登陆目标应用的时间,比如青少年模式会限制可登陆时段和登陆时长,以及限制浏览内容等;另一种是预先设置目标应用的使用时间和频率等,对目标应用的使用进行限制。但是,上述两种方法对于目标应用的限制是强制性的,控制手段不够灵活,比如用户正在使用目标应用时,因为到达限制时间而强制关闭目标应用,就会影响用户体验。
因此,如何解决现有目标应用限制方法灵活性低成为亟待解决的技术问题。
发明内容
本公开的主要目的在于提供一种应用的运行状态调节方法、终端及存储介质,旨在解决现有目标应用限制方法灵活性低的技术问题。
本公开提供一种应用的运行状态调节方法,应用的运行状态调节方法包括:获取目标应用的当前运行信息;其中,当前运行信息为目标应用在当前限制时段内的资源使用数据;获取当前用户对应的目标调节系数以及目标应用在当前限制时段的基础门限值,并基于目标调节系数以及基础门限值计算得到目标门限值;基于当前运行信息与目标门限值的对比结果,调节目标应用在当前限制时段的运行状态。
本公开还提供一种终端,终端包括处理器、存储器、以及存储在存储器上并可被处理器执行的一个或者多个计算机程序。一个或者多个计算机程序可被一个或者多个处理器执行,以实现如上应用的运行状态调节方法的步骤。
本公开还提供一种计算机可读存储介质,计算机可读存储介质上存储有一个或者多个计算机程序,其中所述一个或者多个计算机程序被处理器执行时,实现如上应用的运行状态调节方法的步骤。
附图说明
图1为本公开的方案中涉及的一种终端的硬件结构示意图;
图2为本公开应用的运行状态调节方法第一实施例的流程示意图;
图3为本公开应用的运行状态调节方法第二实施例的流程示意图;
图4为本公开应用的运行状态调节方法第三实施例的流程示意图;
图5为本公开应用的运行状态调节方法第四实施例的流程示意图;
图6为本公开应用的运行状态调节装置第一实施例的功能模块示意图。
本公开目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。
随着移动互联网的快速发展,移动终端逐渐成为人们日常生活中不可或缺的部分。相应的,人们在日常生活中使用移动终端的时间和频率日渐增加。但是,不合理地使用移动终端,会对人们的日常生活和身体健康造成较大的影响。特别是对于未成年人,长时间的使用移动终端会导致其视力下降,影响其身心健康。
目前,对于移动终端中的应用使用限制,一种是限制用户登陆目标应用的时间,比如青少年模式会限制可登陆时段和登陆时长,以及限制浏览内容等;另一种是预先设置目标应用的使用时间和频率等,对目标应用的使用进行限制。但是,上述两种方法对于目标应用的限制是强制性的,控制手段不够灵活,比如用户正在使用目标应用时,因为到达限制时间而强制关闭目标应用,就会影响用户体验。
因此,如何解决现有目标应用限制方法灵活性低成为亟待解决的技术问题。
本公开涉及的应用的运行状态调节方法主要应用于一种终端,该终端可以是PC、便携计算机、移动终端等具有显示和处理功能的设备。
参照图1,图1为本公开方案中涉及的一种终端的硬件结构示意图。本公开中,终端 可以包括处理器1001(例如CPU),通信总线1002,用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信;用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard);网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口);存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器,存储器1005可选的还可以是独立于前述处理器1001的存储装置。
本领域技术人员可以理解,图1中示出的硬件结构并不构成对本公开所涉及的终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
继续参照图1,图1中作为一种计算机可读存储介质的存储器1005可以包括操作***、网络通信模块以及一个或者多个计算机程序。
在图1中,网络通信模块主要用于连接服务器,与服务器进行数据通信;而处理器1001可以调用存储器1005中存储的一个或者多个计算机程序,并执行本公开提供的应用的运行状态调节方法。
本公开提供了一种应用的运行状态调节方法。
参照图2,图2为本公开应用的运行状态调节方法第一实施例的流程示意图。
本实施例中,应用的运行状态调节方法包括以下步骤S10至步骤S30。
步骤S10,获取目标应用的当前运行信息,其中,当前运行信息为目标应用在当前限制时段内的资源使用数据。
本实施例中,当前运行信息是指目标应用运行时所需要的***资源,对资源的使用控制,可以间接控制目标应用的运行状态。当需要对目标应用进行限制时,基于应用限制指令,对资源的使用情况进行采样,一般地,将当前限制时段内目标应用运行所使用的各类资源的使用累计,作为目标应用的当前运行信息。
在一示例性的实施方式中,本公开的运行信息是指应用在运行时所使用的***资源,比如功耗、缓存空间、运行时长、上网数据流量等。运行状态是指应用的进程状态,主要区分为应用进程不存在(即停止运行)、前台运行中以及后台运行中等。而本公开中针对运行状态的调节主要包括允许应用进程继续(即允许应用运行)、限制应用运行(即限制应用的资源使用)或者结束应用进程(即停止应用运行)等。
在一示例性的实施方式中,本公开所提供的应用限制方法需要基于应用限制指令触发执行,该应用限制方法并不是一个设备必须包含的功能,而是可以作为一个功能项或者功 能应用,用户可自主选择是否使用,以增加用户体验。
在一示例性的实施方式中,基于应用限制指令,执行本公开所提供的应用限制方法,即进入应用运行限制模式;该模式可以独立设置使用开关,比如通过用户菜单选择、图标触发、远程控制命令、设备启动配置、预设时间点或周期时间点触发等方式启用;也可以与设备已有模式捆绑使用,比如青少年模式、成长保护模式等。
本实施例中,一般资源控制的目的是为了减少电子设备使用对人体的伤害,或者对于有限资源的节约等,所以与此相关的资源均可采用本公开所提供的应用限制方法进行控制。基于用户眼睛视力保护、节约电量和付费流量等相关体验,典型需要控制使用的资源为前台运行时长、应用功耗、应用上网数据流量等多种资源限制维度。
其中,需要采集的各类资源可以是目标应用本身运行所需要的,以及目标应用运行过程中依赖于其他应用服务,而导致其他应用服务使用的资源分担份额。
在一示例性的实施方式中,本实施例中的各类资源采样累计为资源原始单元表示。
其中,前台运行时长可以基于***时钟精度表示,如纳秒(ns),在目标应用处于前台运行状态时,采样当前时间戳,然后减去上次保存的时间戳,获得差值,并以此差值作为本次采样要累计的dalta值。
其中,应用功耗可以基于***自身的功耗统计,比如android***中的应用电量消耗统计,单位一般为毫安时(mAh)。
其中,上网数据流量可以单独选择收费的公网流量收发统计,也可以包含免费的wifi数据在内所有数据收发统计,单位一般为KB。
在一示例性的实施方式中,在资源采样过程中,比如在一个更小的单位限制时段内,一般按照与资源特点对应的打桩事件时间戳计算delta累计值,或者按照一定频率采样周期累加delta值;例如,对于前台运行时长,如果***收到目标应用切入前台事件的时间戳为t1,间隔一段时间收到该目标应用切入后台事件,或者另一个非目标应用切入到前台事件,此时***时间戳记为t2,则该目标应用此次的前台运行时长为(t2-t1)。
在一示例性的实施方式中,对于各类资源的限制具有时间轴属性,记为限制时段,本实施例中将目标应用当前运行的限制时段记为当前限制时段。限制时段一般有一个开始时间点和一个结束时间点,结束时间点可以是人为设定的,也可以将某个事件触发的时间标记为结束时间点,比如退出本公开的应用限制方法。
在一示例性的实施方式中,可以将多个时间连续的限制时段组合,作为当前限制时段, 在各个子限制时段内完成对各类资源的采样,最终累计为当前限制时段的当前运行信息。
在一示例性的实施方式中,本公开的限制时段的定义需要预设设置时间分布,可以根据日历时间周期配置,也可以一次性配置使用。例如,在执行本公开的应用限制方法时,用户通过设置界面选择当天的18:00-21:00作为限制时段,非限制时段不执行本公开的应用限制方法,而在当天的该时段内则会执行应用限制方法;如果在该配置的基础上选择每天周期执行,那么在后续每天的该时段都会触发并执行本公开的应用限制方法。
在一示例性的实施方式中,限制时段可以设置为多个子时段的组合,比如设置一天中的不同时段:11:00-13:00/18:00-20:00等,以多个子时段组合为一个完整的限制时段;此时,仅是表示只有在各个子时段中所采集的目标应用的运行信息有效,而并不影响对于本公开的应用限制方法的执行。
步骤S20,获取当前用户对应的目标调节系数以及目标应用在当前限制时段的基础门限值,并基于目标调节系数以及基础门限值计算得到目标门限值。
本实施例中,目标门限值的计算时基于各类资源的基本门限值和目标调节系数。基本门限值作为基准值使用,而目标调节系数作为对基本门限值按比例浮动的调节依据,比如:假设一个资源的基础门限值为100,而目标调节系数为10%,那么该资源的最大目标门限值为100*(1+10%)=110;目标门限值作为当前限制时段的目标应用的当前运行信息的超限比较标准,而当前运行信息中的各类资源都需要计算一个对应的目标门限值。
可以理解地是,当前运行信息的每一类资源可以各自单独设置一个目标调节系数,对每一类资源进行分别调节;也可以综合计算使用相同的目标调节系数,以对各类资源进行统一调节。
可以理解地是,当前用户可以是使用目标应用的任一用户。在一实施方式中,可以根据账号信息等明确使用目标应用的当前用户,并且可以根据当前用户的账户信息,调用当前用户的历史资源使用值或历史调节系数,进一步确定当前用户在当前限制时段的基础门限值和目标调节系数。如果当前用户为第一次使用目标应用的用户,则可以使用初始调节系数和基础门限值,再根据当前用户的使用习惯进行调整。
步骤S30,基于当前运行信息与目标门限值的对比结果,调节目标应用在当前限制时段的运行状态。
本实施例中,通过对比目标应用的当前运行信息和目标门限值,对当前运行信息的各类资源使用情况进行判断,从而获悉目标应用在当前限制时段的使用情况,并且根据目标 应用的使用情况,对目标应用的运行状态进行相应的调节。
在一示例性的实施方式中,如果当前运行信息大于目标门限值,则表示目标应用在当前限制时段的使用已经超限,此时需要对目标应用的运行进行限制,停止目标应用的运行;如果当前运行信息小于目标门限值,则表示目标应用在当前限制时段的使用在允许的限制范围内,此时,可以放宽对于目标应用的限制,从而允许目标应用继续运行。
本实施例提供一种应用的运行状态调节方法,方法获取目标应用的当前运行信息。当前运行信息为目标应用在当前限制时段内的资源使用数据;获取当前用户对应的目标调节系数以及目标应用在当前限制时段的基础门限值,并基于目标调节系数以及基础门限值计算得到目标门限值;基于当前运行信息与目标门限值的对比结果,调节目标应用在当前限制时段的运行状态。通过上述方式,基于目标应用在当前限制时段内的当前运行信息,获悉目标应用在当前限制时段内的资源使用情况;根据当前用户对应的目标调节系数以及基础门限值,计算得到适用于当前用户的目标门限值,从而基于当前用户在当前限制时段对于目标应用的使用习惯,对基础门限值进行动态调节;并根据当前运行信息和目标门限值的比对结果,对目标应用的当前使用状况进行调节,由此实现目标应用的动态调节,使得对于目标应用的运行限制更加灵活,提高了用户体验,解决了现有目标应用限制方法灵活性低的技术问题。
参照图3,图3为本公开应用的运行状态调节方法第二实施例的流程示意图。
基于上述图2所示实施例,本实施例中,步骤S20之前,具体还包括步骤S021至步骤S022。
步骤S021,在接收到针对预设初始调节系数或基础门限值的调节操作指令时,计算调节操作指令中的反馈值与基础门限值的偏差值。步骤S022,根据偏差值,将初始调节系数或基础门限值进行增大或减小,生成目标调节系数。
本实施例中,初始调节系数的使用一般在当前限制时段内有效,当计算得到对应于当前限制时段的初始调节系数之后,可以保持该初始调节系数不变;而在接收到当前用户基于预设初始调节系数或基础门限值发送的反馈数据时,可以根据实际使用需求对初始调节系数进行相应的调整,生成目标调节系数,从而实现对目标门限值的动态设置。
在一示例性的实施方式中,初始调节系数可以是预设的一个初始值,比如根据历史运行信息,评估得到一个初始调节系数的范围,从而依据该范围设置当前限制时段的初始调节系数;也可以根据历史运行信息的数学期望和基础门限值的偏差值,计算出当前限制时 段的初始调节系数。
在一示例性的实施方式中,在进行当前限制时段的应用限制时,需要获取各类资源的原基础门限值Old_base,当前限制时段前保存的n个限制时段的历史运行信息Old_std_1、Old_std_2、...、Old_std_n,原资源调节系数Old_factor,原基础调节系数Base_factor,以此来计算新的初始调节系数New_factor。
在一示例性的实施方式中,获取当前限制时段前保存的n个限制时段的历史运行信息Old_std_1、Old_std_2、...、Old_std_n,通过现有的数学计算方法计算n个历史运行信息的数学期望Old_e;计算数学期望Old_e相对于各类资源的原基础门限值Old_base的偏差比例值Bias=(Old_e-Old_base)/Old_base;可以参考偏差比例值,添加一个基础偏移Bias_0,计算新的初始调节系数New_factor=Bias_0-Bias,以使得计算得到的初始调节系数符合实际需求。
在一示例性的实施方式中,通过现有的数学计算方法,计算n个历史运行信息的数学期望Old_e相对于各类资源的原基础门限值Old_base的偏差比例值:Bias=(Old_e-Old_base)/Old_base;如果该偏差比例值为负数,则表示历史运行信息的总体期望未超过基础门限值,此时可以扩大初始调节系数,从而间接调高目标门限值;如果该偏差比例值为正数,则表示历史运行信息的总体期望超过基础门限值,即各类资源的使用过度,此时应该减小初始调节系数,进而间接调低目标门限值,对各类资源的使用进行限制。
在一示例性的实施方式中,在当前限制时段结束之后,可以通过与用户的交互,获得用户对当前限制时段内的应用运行限制进行体验评价,并根据该体验评价生成对应的反馈数据。基于上述反馈数据,对当前限制时段的初始调节系数进行动态调节,进而实现对各类资源的目标门限值实现动态调节,逐步调节目标应用所使用的资源,进而起到控制应用运行状态的目的;比如,如果资源使用超限,但用户评价认为合理,那么基础门限值可以结合资源使用和调节系数进行与之匹配的调整,使得目标应用的当前运行信息不超过目标门限值,进而允许目标应用可以继续运行。
在一示例性实施例中,步骤S20之前,具体还包括:
读取初始调节系数和初始门限值;其中,初始调节系数和初始门限值是基于至少一个历史用户对应的历史资源使用数据确定的,历史资源使用数据包括前台运行时长、应用功耗以及上网数据流量。根据当前用户对应的目标资源使用数据,对初始调节系数进行更新, 生成目标调节系数。
本实施例中,当一个限制时段结束之后,将该限制时段内所采样的目标应用的运行信息保存,该运行信息能够反映目标应用的运行限制执行效果,可以用于计算初始调节系数和基础门限值。而不同用户在相同限制时段内对于目标应用的使用需求和使用习惯不同,当根据前一用户的使用数据生成的初始调节系数或者基础门限值不适用于当前用户的使用需求时,可以根据当前用户的资源使用数据,对初始调节系数进行对应的调整,生成适用于当前用户的目标调节系数。
在一示例性的实施方式中,在获得目标应用的当前限制时段对应的初始调节系数后,可以根据***自动评估的反馈数据或者不同用户使用后的提供的反馈数据对基础系数进行相应的调整,从而生成适用于当前限制时段的目标调节系数;每一个限制时段的目标调节系数都可以依此进行计算和调整,使得该调节系数成为一种迭代次反馈参数。
在一示例性的实施方式中,根据历史运行信息对当前限制时段的初始调节系数和基础门限值进行计算,能够根据不同用户对于目标应用的实际使用情况,对初始调节系数进行对应的计算调整,从而对目标应用的运行限制进行相应的限制调整;对于能够遵守应用使用限制的用户,可以在一定范围内允许其超限使用;反之,对于总是超限使用应用的用户,则可以限制其对于目标应用的使用时长,从而达到目标应用的管控效果。
参照图4,图4为本公开应用的运行状态调节方法第三实施例的流程示意图。
基于上述图2所示实施例,本实施例中,步骤S30具体包括步骤S31至步骤S33。
步骤S31,获取当前运行信息中的各类资源使用数据,并在目标门限值中确定各类资源使用数据对应的门限值。
本实施例中,应用运行过程中需要多种类别的资源支持,比如前台运行时长、应用功耗和上网数据流量等,不同类别的资源使用超限评判标准是不同的,而目标应用对不同类别的资源使用数据也是不同的,所以对于不同类别的资源使用数据,需要设置不同的门限值,以避免对于各类资源使用数据的超限评判不合理而无法实现限制目的。
步骤S32,将各类资源使用数据分别与对应的门限值进行比对,获得各类资源使用数据对应的对比结果。步骤S33,根据各类资源使用数据对应的对比结果,调节目标应用在当前限制时段的运行状态。
在一示例性实施例中,步骤S33可以包括:将使用数据大于对应的门限值的资源对应的超限标记设置为真,并将使用数据不大于对应门限值的资源对应的超限标记设置为假; 根据各类资源的超限标记,调节目标应用在当前限制时段的运行状态。
本实施例中,根据各类资源使用数据分别与对应的门限值比对的对比结果,对当前运行信息中的各类资源进行标记;如果某一类资源的资源使用数据大于对应的门限值,那么设置该类资源超限标记为“TRUE”,即标记为真;相应地,如果某一类资源的资源使用数据小于对应的门限值,那么设置该类资源超限标记为“FALSE”,即标记为假。
在一示例性实施例中,根据各类资源的超限标记,调节目标应用在当前限制时段的运行状态具体包括:对各类资源的当前超限标记进行逻辑运算,并根据逻辑运算的结果,将目标应用在当前限制时段的运行状态调节为限制运行状态或停止运行状态。
在一示例性的实施方式中,假设存在I类资源,则可以得到相应的超限标记:Tag 1,Tag 2,Tag 3,...,Tag I,将这些标记进行混合逻辑组合运算,其结果设置为Tag_result;比如可以是简单的与操作,即所有资源同时超限:Tag_result=Tag 1&Tag 2&...&Tag I;也可以是混合逻辑,比如资源1超限且其他资源之一超限:Tag_result=Tag 1&(Tag 2|Tag3...|Tag I)。
如果逻辑运算结果为“TRUE”,则表示各类资源中至少一类目标资源的采样累计值超过对应的目标门限值,此时判定目标应用的目标调节状态为停止目标应用的运行;如果逻辑运算结果为“FALSE”,则表示各类资源的采样累计值未超过对应的目标门限值,此时判定目标应用的目标调节状态为允许目标应用的运行;完成逻辑运算之后,根据判定结果对目标应用当前运行状态进行相应的调节。
在一示例性实施例中,根据各类资源的超限标记,调节目标应用在当前限制时段的运行状态具体还包括:在各类资源中存在超限标记为真的超限资源的情况下,则获取超限资源的资源级别;在超限资源的资源级别达到预设级别时,将目标应用在当前限制时段的运行状态调节为停止运行状态;在超限资源的资源级别未达到预设级别时,将目标应用在当前限制时段的运行状态调节为限制运行状态。
在一示例性的实施方式中,如果各类资源中存在超限标记为真的资源,即表示其中至少有一类资源的资源使用数据超过了该资源对应的门限值,此时需要对目标应用的运行状态进行限制。
在一示例性的实施方式中,当需要对目标应用的运行状态进行限制时,可以根据用户实际使用需求或者当前资源使用数据的实际使用情况,来确定对于目标应用的调节状态是限制运行状态或者是停止运行状态。
在一示例性的实施方式中,在进行超限标记前,可以对资源使用数据的超限数据设置一个或者多个超限级别,并根据该类资源的门限值,对该类资源对应的每个超限级别设定一个超限阈值,可以是按比例设置或者按等间隔设置,比如假设某一类资源的门限值为100,可以设置105为第一超限级别,110为第二超限级别,或者设置在门限值基础上每增加10%的资源使用值,为一个超限级别。
在一示例性的实施方式中,当检测到某一类资源的资源使用数据超过了对应的门限值时,判断该类资源的资源使用数据的超限级别,如果该类资源的超限级别为第一级,表示该类资源的超限程度较低,可能是运行应用过多造成目标应用的资源占比较多,此时,可以调节目标应用的运行状态为限制运行状态;而如果该类资源的超限级别为第二级或者更多,表示该类资源的超限程度较高,可能是目标应用的运行时间较长,此时可以调节目标应用的运行状态为停止运行状态,以强制提醒当前用户停止运行目标应用。
本实施例中,通过设置超限级别,对目标应用的超限使用进行动态限制,限制运行状态相当于提醒用户选择主动停止或者目标应用即将强制停止,而不是直接强制性的停止目标应用的运行,可以给用户预留一定的时间作出相应的处理,使得应用限制方法更加灵活,提高用户的使用体验;同时,设置超限级别上限,保留对目标应用的强制停止运行的限制功能,能够避免自觉性较差的用户对于目标应用的过多使用,从而保证应用限制功能的实际目的和效用。
参照图5,图5为本公开应用的运行状态调节方法第四实施例的流程示意图。
基于上述图2所示实施例,本实施例中,步骤S10具体包括步骤S11至步骤S12。
步骤S11,获得目标应用在当前限制时段内的初始资源使用数据,并基于目标应用的当前运行环境数据,确定资源修正系数。步骤S12,基于资源修正系数,对初始资源使用数据进行修正,获得当前运行信息。
本实施例中,目标应用的当前运行环境数据,会对目标应用的当前运行信息产生影响,而为了更合理地对目标应用所使用的各类资源的调节和限制,本公开可以通过修正方式对各类资源的实际采样累计值进行增加、减少、保持的修正运算。
在一示例性的实施方式中,在执行应用限制方法时,对目标应用在当前限制时段内对于各类资源的使用情况进行采样,从而获得对应的初始资源使用数据,然后根据设备使用状态和设备的使用环境对用户体验的影响,评估得到一个资源修正系数,并且通过该资源修正系数对采集到的初始资源使用数据进行修正,得到修正后的资源使用数据,作为目标 应用在当前限制时段的当前运行信息。
在一示例性的实施方式中,本公开所提供的应用限制方法典型应用于手机、平板等移动设备,在移动设备中安装需要限制运行的目标应用,典型目标应用为游戏,所控应用可以扩展到一个应用类别所属的已安装应用整体,比如游戏类应用;在实际控制中,可以将若干同类应用作为一个整体加以运行限制,即将若干应用作为一个应用组或者一个组合应用,得到一个应用整体,该应用整体所对应的运行信息为每个该类别目标应用在限制时段内所使用的各类资源采样累计值总和。
在一示例性的实施方式中,设备所处的环境和设备状态对各类资源的使用存在影响,比如相对于环境不同明暗下,设备的屏幕亮度如果太亮或者太暗,那么对于用户眼睛的伤害就会加大,此时应该限制资源使用更少,提醒用户减少在该环境下对于设备的使用;或者在一定环境噪音下,音量如果太大或者太小,可能都会影响用户体验,所以需要限制资源使用的减少;又或者环境和设备温度的影响等,在不适宜的环境或设备温度下,对于资源的使用应该限制其减少。此外,用户使用移动设备所处的位置也会是一个影响因素,在不同的地点用户可能期待不同的限制程度,所以需要根据实际使用场景和使用需求,对目标应用的资源限制进行灵活调节。
在一示例性的实施方式中,基于环境和设备的多种因素修正对于一类资源而言,可以理解为一个等价修正系数体现上,比如修正系数为1表示环境和设备状态对累计结果不修正,那么修正系数大于1,则表示实际资源使用的采样累计值在通过该修正系数修正后,会得到一个扩大的虚拟累计值,此时,对于各类资源的采样累计会加速,更快达到目标门限值而导致目标应用运行受限;而如果修正系数小于1,则会减小采样累计值,延迟各类资源采样累计值达到目标门限值的时间,而使得目标应用能够运行更长时间。
本实施例中,考虑到不同环境和终端状态对用户体验的影响,将这两类因素体现在资源使用数据的累计计算中去,从而对实际采样的初始资源使用数据进行修正,使得本公开的应用限制方法更加适合用户主观感受,提高用户体验。
此外,本公开还提供一种应用的运行状态调节装置。
参照图6,图6为本公开应用的运行状态调节装置第一实施例的功能模块示意图。
本实施例中,应用的运行状态调节装置包括当前运行信息获取模块10、目标门限值计算模块20、运行状态调节模块30。
当前运行信息获取模块10,配置为获取当前应用的当前运行信息。当前运行信息为目 标应用在当前限制时段内的资源使用数据。目标门限值计算模块20,配置为获取当前用户对应的目标调节系数以及目标应用在当前限制时段的基础门限值,并基于目标调节系数以及基础门限值计算得到目标门限值。运行状态调节模块30,配置为基于当前运行信息与目标门限值的对比结果,调节目标应用在当前限制时段的运行状态。
在一示例性实施例中,应用的运行状态调节装置还可以包括目标调节系数生成模块,目标调节系数生成模块可以包括:偏差值计算单元,配置为在接收到针对预设初始调节系数或基础门限值的调节操作指令时,计算调节操作指令中的反馈值与基础门限值的偏差值;目标调节系数生成单元,配置为根据偏差值,将初始调节系数或基础门限值进行增大或减小,生成目标调节系数。
在一示例性实施例中,目标调节系数生成模块具体还包括:初始调节系数生成单元,配置为读取初始调节系数和初始门限值;其中,初始调节系数和初始门限值是基于至少一个历史用户对应的历史资源使用数据确定的,历史资源使用数据包括前台运行时长、应用功耗以及上网数据流量;初始调节系数更新单元,配置为根据当前用户对应的目标资源使用数据,对初始调节系数进行更新,生成目标调节系数。
在一示例性实施例中,运行状态调节模块30,包括:门限值确定子模块,配置为获取当前运行信息中的各类资源使用数据,并在目标门限值中确定各类资源使用数据对应的门限值;数据对比子模块,配置为将各类资源使用数据分别与对应的门限值进行比对,获得各类资源使用数据对应的对比结果;运行状态调节子模块,配置为根据各类资源使用数据对应的对比结果,调节目标应用在当前限制时段的运行状态。
在一示例性实施例中,运行状态调节子模块具体包括:超限标记设置单元,配置为将使用数据大于对应的门限值的资源对应的超限标记设置为真,并将使用数据不大于对应门限值的资源对应的超限标记设置为假;运行状态调节单元,配置为根据各类资源的超限标记,调节目标应用在当前限制时段的运行状态。
在一示例性实施例中,运行状态调节单元具体包括:运行状态调节子单元,配置为对各类资源的当前超限标记进行逻辑运算,并根据逻辑运算的结果,将目标应用在当前限制时段的运行状态调节为限制运行状态或停止运行状态。
在一示例性实施例中,运行状态调节单元具体包括:资源级别获取子单元,配置为在各类资源中存在超限标记为真的超限资源的情况下,则获取超限资源的资源级别;停止运行状态调节子单元,配置为在超限资源的资源级别达到预设级别时,将目标应用在当前限 制时段的运行状态调节为停止运行状态;限制运行状态调节子单元,配置为在超限资源的资源级别未达到预设级别时,将目标应用在当前限制时段的运行状态调节为限制运行状态。
在一示例性实施例中,当前运行信息获取模块10包括:初始资源使用数据获得单元,配置为获得目标应用在当前限制时段内的初始资源使用数据;当前运行信息获得单元,配置为基于目标应用的当前运行环境数据,确定资源修正系数,并基于资源修正系数,对初始资源使用数据进行修正,获得当前运行信息。
其中,上述应用的运行状态调节装置中各个模块与上述应用的运行状态调节方法实施例中各步骤相对应,其功能和实现过程在此处不再一一赘述。
此外,本公开还提供一种计算机可读存储介质。
本公开计算机可读存储介质上存储有一个或者多个计算机程序,其中一个或者多个计算机程序被处理器执行时,实现如上述的应用的运行状态调节方法的步骤。
其中,一个或者多个计算机程序被执行时所实现的方法可参照本公开应用的运行状态调节方法的各个实施例,此处不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者***不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者***所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者***中还存在另外的相同要素。
上述本公开序号仅仅为了描述,不代表实施例的优劣。
本公开可用于众多通用或专用的计算机***环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器***、基于微处理器的***、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何***或设备的分布式计算环境等等。本公开可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本公开,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可 借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。
本公开提供一种应用的运行状态调节方法,方法获取目标应用的当前运行信息。当前运行信息为目标应用在当前限制时段内的资源使用数据;获取当前用户对应的目标调节系数以及目标应用在当前限制时段的基础门限值,并基于目标调节系数以及基础门限值计算得到目标门限值;基于当前运行信息与目标门限值的对比结果,调节目标应用在当前限制时段的运行状态。通过上述方式,能够实现目标应用的动态调节,使得对于目标应用的运行限制更加灵活,提高了用户体验,解决了现有目标应用限制方法灵活性低的技术问题。
以上仅为本公开的优选实施例,并非因此限制本公开的专利范围,凡是利用本公开说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本公开的专利保护范围内。

Claims (10)

  1. 一种应用的运行状态调节方法,包括:
    获取目标应用的当前运行信息;其中,所述当前运行信息为所述目标应用在当前限制时段内的资源使用数据;
    获取当前用户对应的目标调节系数以及所述目标应用在所述当前限制时段的基础门限值,并基于所述目标调节系数以及所述基础门限值计算得到目标门限值;
    基于所述当前运行信息与所述目标门限值的对比结果,调节所述目标应用在所述当前限制时段的运行状态。
  2. 根据权利要求1所述的应用的运行状态调节方法,其中,所述获取当前用户对应的目标调节系数以及所述目标应用在所述当前限制时段的基础门限值之前,还包括:
    在接收到针对预设初始调节系数或所述基础门限值的调节操作指令时,计算所述调节操作指令中的反馈值与所述基础门限值的偏差值;
    根据所述偏差值,将所述初始调节系数或所述基础门限值进行增大或减小,生成所述目标调节系数。
  3. 根据权利要求1所述的应用的运行状态调节方法,其中,所述获取当前用户对应的目标调节系数以及所述目标应用在所述当前限制时段的基础门限值之前,还包括:
    读取初始调节系数和初始门限值;其中,所述初始调节系数和初始门限值是基于至少一个历史用户对应的历史资源使用数据确定的,所述历史资源使用数据包括前台运行时长、应用功耗以及上网数据流量;
    根据所述当前用户对应的目标资源使用数据,对所述初始调节系数进行更新,生成所述目标调节系数。
  4. 根据权利要求1所述的应用的运行状态调节方法,其中,所述基于所述当前运行信息与所述目标门限值的对比结果,调节所述目标应用在所述当前限制时段的运行状态,包括:
    获取所述当前运行信息中的各类资源使用数据,并在所述目标门限值中确定各类资源使用数据对应的门限值;
    将各类资源使用数据分别与对应的门限值进行比对,获得各类资源使用数据对应的对比结果;
    根据所述各类资源使用数据对应的对比结果,调节所述目标应用在所述当前限制时段的运行状态。
  5. 根据权利要求4所述的应用的运行状态调节方法,其中,所述根据所述各类资源使用数据对应的对比结果,调节所述目标应用在所述当前限制时段的运行状态,包括:
    将使用数据大于对应的门限值的资源对应的超限标记设置为真,并将使用数据不大于对应门限值的资源对应的超限标记设置为假;
    根据各类资源的超限标记,调节所述目标应用在所述当前限制时段的运行状态。
  6. 根据权利要求5所述的应用的运行状态调节方法,其中,所述根据各类资源的超限标记,调节所述目标应用在所述当前限制时段的运行状态,包括:
    对所述各类资源的当前超限标记进行逻辑运算,并根据所述逻辑运算的结果,将所述目标应用在所述当前限制时段的运行状态调节为限制运行状态或停止运行状态。
  7. 根据权利要求5所述的应用的运行状态调节方法,其中,根据各类资源的超限标记,调节所述目标应用在所述当前限制时段的运行状态,包括:
    在所述各类资源中存在所述超限标记为真的超限资源的情况下,获取所述超限资源的资源级别;
    在所述超限资源的资源级别达到预设级别时,将所述目标应用在所述当前限制时段的运行状态调节为停止运行状态;
    在所述超限资源的资源级别未达到所述预设级别时,将所述目标应用在所述当前限制时段的运行状态调节为限制运行状态。
  8. 根据权利要求1-7中任一项所述的应用的运行状态调节方法,其中,所述获取目标应用的当前运行信息,包括:
    获得所述目标应用在所述当前限制时段内的初始资源使用数据;
    基于所述目标应用的当前运行环境数据,确定资源修正系数,并基于所述资源修正系数,对所述初始资源使用数据进行修正,获得所述当前运行信息。
  9. 一种终端,包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的一个或者多个计算机程序,其中所述一个或者多个计算机程序可被一个或者多个处理器执行,以实现如权利要求1至8中任一项所述的应用的运行状态调节方法的步骤。
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储有一个或者多个计算 机程序,其中所述一个或者多个计算机程序被处理器执行时,实现如权利要求1至8中任一项所述的应用的运行状态调节方法的步骤。
PCT/CN2023/073431 2022-06-15 2023-01-20 应用的运行状态调节方法、终端及存储介质 WO2023241052A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210676015.4 2022-06-15
CN202210676015.4A CN117271252A (zh) 2022-06-15 2022-06-15 应用的运行状态调节方法、终端及存储介质

Publications (1)

Publication Number Publication Date
WO2023241052A1 true WO2023241052A1 (zh) 2023-12-21

Family

ID=89193092

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/073431 WO2023241052A1 (zh) 2022-06-15 2023-01-20 应用的运行状态调节方法、终端及存储介质

Country Status (2)

Country Link
CN (1) CN117271252A (zh)
WO (1) WO2023241052A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150347262A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Performance management based on resource consumption
CN106055100A (zh) * 2016-05-26 2016-10-26 广东欧珀移动通信有限公司 一种防沉迷方法、装置和终端设备
CN106096352A (zh) * 2016-05-26 2016-11-09 广东欧珀移动通信有限公司 一种移动终端的防沉迷控制方法、装置及移动终端
CN107317932A (zh) * 2017-06-28 2017-11-03 努比亚技术有限公司 终端的使用限制方法、移动终端及计算机可读存储介质
CN110018903A (zh) * 2018-01-10 2019-07-16 广东欧珀移动通信有限公司 资源管理方法、装置、移动终端及计算机可读存储介质
CN110032431A (zh) * 2018-01-12 2019-07-19 广东欧珀移动通信有限公司 应用处理方法和装置、电子设备、计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150347262A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Performance management based on resource consumption
CN106055100A (zh) * 2016-05-26 2016-10-26 广东欧珀移动通信有限公司 一种防沉迷方法、装置和终端设备
CN106096352A (zh) * 2016-05-26 2016-11-09 广东欧珀移动通信有限公司 一种移动终端的防沉迷控制方法、装置及移动终端
CN107317932A (zh) * 2017-06-28 2017-11-03 努比亚技术有限公司 终端的使用限制方法、移动终端及计算机可读存储介质
CN110018903A (zh) * 2018-01-10 2019-07-16 广东欧珀移动通信有限公司 资源管理方法、装置、移动终端及计算机可读存储介质
CN110032431A (zh) * 2018-01-12 2019-07-19 广东欧珀移动通信有限公司 应用处理方法和装置、电子设备、计算机可读存储介质

Also Published As

Publication number Publication date
CN117271252A (zh) 2023-12-22

Similar Documents

Publication Publication Date Title
US9690685B2 (en) Performance management based on resource consumption
US9335815B2 (en) Method and system for battery power saving
CN110187753B (zh) 应用程序控制方法、装置、终端和计算机可读存储介质
CN110221921A (zh) 内存管理方法、终端及计算机可读存储介质
CN109906437B (zh) 基于线程重要性的处理器核停止和频率选择
US11582340B2 (en) Mobile computing device notification mode determination
US9164780B2 (en) Method and device for an intelligent control of portable electronic devices
CN106066872B (zh) 一种数据更新管理方法和电子设备
CN108196482B (zh) 功耗控制方法、装置、存储介质及电子设备
US20210191579A1 (en) Window adjustment method, window adjustment device and mobile terminal
CN110941411A (zh) 帧率的控制方法、装置及计算机存储介质
CN111538678A (zh) 数据缓冲方法、设备及计算机可读存储介质
CN112083988A (zh) 屏幕刷新率控制方法、移动终端及计算机可读存储介质
US10275007B2 (en) Performance management for a multiple-CPU platform
CN109189528B (zh) 弹窗展示的控制方法、弹窗展示方法
WO2018076698A1 (zh) 终端的延迟显示的方法、装置及终端、计算机存储介质
CN111767136B (zh) 进程管理方法、终端及具有存储功能的装置
WO2023241052A1 (zh) 应用的运行状态调节方法、终端及存储介质
US8380669B2 (en) Throttling to reduce synchronizations of excessively changing data
CN106686708B (zh) 一种数据业务管理的方法及装置
CN108011860B (zh) 一种处理广播消息的方法、装置及终端
CN112715040B (zh) 一种降低功耗的方法、终端设备及存储介质
CN114327714A (zh) 应用程序控制方法、装置、设备及介质
CN107870809B (zh) 应用关闭方法、装置、存储介质及电子设备
CN111290799A (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: 23822624

Country of ref document: EP

Kind code of ref document: A1