WO2017084293A1 - Application closing method, device and electronic equipment - Google Patents

Application closing method, device and electronic equipment Download PDF

Info

Publication number
WO2017084293A1
WO2017084293A1 PCT/CN2016/083731 CN2016083731W WO2017084293A1 WO 2017084293 A1 WO2017084293 A1 WO 2017084293A1 CN 2016083731 W CN2016083731 W CN 2016083731W WO 2017084293 A1 WO2017084293 A1 WO 2017084293A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
closed
processes
running
state
Prior art date
Application number
PCT/CN2016/083731
Other languages
French (fr)
Chinese (zh)
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 WO2017084293A1 publication Critical patent/WO2017084293A1/en

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Definitions

  • the present invention relates to the field of computer application technologies, and in particular, to an application closing method, apparatus, and electronic device.
  • Operating systems on mobile devices, computers and other terminal devices are multi-tasking operating systems that can run multiple applications simultaneously.
  • Each running application consumes system resources and consumes power.
  • the terminal device When too many applications are running at the same time, the terminal device will run very slowly.
  • too many applications running at the same time consume a lot of power. Therefore, it is especially important to close the running application in time.
  • the existing application shutdown technique periodically detects applications that are running in the background and ends the process of the application running in the background based on the user's actions.
  • the applicant's research found that after the process of ending the application running in the background, the process of the closed application will run again, and continue to occupy system resources and consume power.
  • the existing application shutdown technology does not completely shut down the application, causing the closed application to still consume system resources and consume power after it is automatically started.
  • An object of the embodiments of the present invention is to provide an application closing method, an apparatus, and an electronic device, which can completely shut down an application program, and prevent the closed application from automatically restarting when the user does not actively start.
  • the specific technical solutions are as follows:
  • An embodiment of the present invention provides an application closing method, where the method includes:
  • the method further includes:
  • the application that needs to be closed is removed from the determined application to be closed, and the remaining applications to be closed are obtained;
  • the closing the application resident service of the application to be closed and ending all processes of the application to be closed including:
  • the method further includes:
  • the operating parameter includes at least one of an application power consumption percentage, an application power consumption rate, an application memory occupation percentage, an application central processor occupation percentage, and an application background running cumulative duration;
  • Each operating parameter corresponds to a preset threshold; the preset parameter condition is composed of a plurality of comparison results and a logical relationship between the plurality of comparison results, and the comparison result is a comparison between the operating parameter and a corresponding preset threshold. result.
  • the running state includes at least one of an application audio output state, an application download state, and an application login state, and each running state corresponds to a preset state condition.
  • the application that needs to be closed is removed from the determined application to be closed, and the remaining applications to be closed are obtained, including:
  • the application to be closed that satisfies its corresponding preset state is determined as an application that does not need to be closed;
  • the application that does not need to be closed is removed to obtain the remaining applications to be closed.
  • the closing the application resident service of the application to be closed and ending all processes of the application to be closed including:
  • the forced stop interface is triggered to close the application resident service of the application to be closed and end all processes of the application to be closed.
  • the application resident service of the application to be closed is closed and all processes of the application to be closed are ended.
  • the method further includes:
  • a floating window is displayed on the top of the displayed application details page.
  • the floating window is a translucent floating window.
  • a determining module configured to determine, by the application that meets the preset parameter condition, the current running parameter as an application to be closed;
  • And closing a module configured to close an application resident service of the application to be closed and end all processes of the application to be closed.
  • the device further includes:
  • a removing module configured to determine, according to an operating state of each application to be closed, an application to be closed, according to an operating state of each application to be closed, after the determining module determines that the current running parameter meets a preset parameter condition as an application to be closed Remove applications that do not need to be closed to get the remaining applications to be closed;
  • the shutdown module is specifically configured to:
  • the device further includes:
  • a matching module configured to remove the application that needs to be closed from the determined application to be closed according to the running state of each to-be-closed application, and obtain the remaining applications to be closed, and then the remaining The application to be closed is compared to a whitelist containing applications that do not need to be closed;
  • the shutdown module is specifically configured to:
  • the running parameter includes at least one of an application power consumption percentage, an application power consumption rate, an application memory occupation percentage, an application central processor occupation percentage, and an application background running cumulative duration; each operation The parameters all correspond to a preset threshold; the preset parameter condition is determined by multiple comparison results. And a logical relationship between the plurality of comparison results, wherein the comparison result is a comparison result of the operation parameter and the corresponding preset threshold.
  • the running state includes at least one of an application audio output state, an application download state, and an application login state, and each running state corresponds to a preset state condition.
  • the removing module includes:
  • a determining sub-module for determining a preset state for each application to be closed
  • a first determining submodule configured to determine an application to be closed that meets its corresponding preset state as an application that does not need to be closed
  • the first removal sub-module is configured to remove the application that does not need to be closed to obtain the remaining applications to be closed.
  • the shutdown module includes:
  • a display submodule configured to display an application detail page corresponding to the application to be closed
  • the calling submodule is configured to trigger a forced stop interface to close the application resident service of the application to be closed and end all processes of the application to be closed by calling a forced stop control of the application detail page.
  • the device further includes:
  • a floating window display module configured to: in the calling submodule, trigger a forced stop interface to close an application resident service of the application to be closed and end the application to be closed by calling a forced stop control of the application detail page Before all the processes of the program, after the display sub-module displays the application details page corresponding to the application to be closed, displaying a floating window on the displayed application detail page;
  • the floating window is a translucent floating window.
  • An embodiment of the present invention provides an electronic device, where the electronic device includes:
  • the circuit board is disposed inside the space enclosed by the housing, the processor and the memory are disposed on the circuit board; and the power supply circuit is used for each circuit of the electronic device or The device is powered; the memory is for storing executable program code; the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory for executing one of the above-described embodiments of the present invention
  • the application closes the method.
  • embodiments of the present invention disclose a computer readable storage medium, wherein the storage medium has one or more modules for performing the present invention when the one or more modules are executed by an electronic device.
  • An application shutdown method as described in the above embodiments.
  • An application closing method according to an embodiment of the present invention is applied to an electronic device.
  • an embodiment of the present invention discloses a computer program, wherein the computer program uses An application closing method according to the above embodiment of the present invention is executed at runtime. An application closing method according to an embodiment of the present invention is applied to an electronic device.
  • An application closing method, device, and electronic device determine that an application whose current running parameter meets a preset parameter condition is determined to be to be closed by acquiring a current running parameter of each application currently running.
  • the application closes the application resident service of the application to be closed and ends all processes of the application to be closed.
  • the invention automatically determines the application to be closed according to the operating parameters of each application, so the determined application to be closed is more in line with the user's shutdown requirement.
  • the invention completely shuts down the application by closing the application resident service of the application to be closed and ending all the processes of the application to be closed, and avoids the closed application automatically restarting if the user does not actively start. Make it unable to continue to occupy system resources and consume power.
  • FIG. 1 is a schematic flowchart of an application closing method according to an embodiment of the present invention.
  • FIG. 2(a) is a schematic diagram of an initial interface of a power saving application according to an embodiment of the present invention
  • FIG. 2(b) is a schematic diagram of a power saving application scanning application program according to an embodiment of the present invention.
  • FIG. 2(c) is a schematic diagram of an application details page of a semi-transparent floating window display according to an embodiment of the present invention
  • 2(d) is a schematic diagram of an interface after a power-saving application closes each application to be closed according to an embodiment of the present invention
  • FIG. 2(e) is a schematic diagram of an initial interface of returning to a power-saving application after each application to be closed is closed according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another application closing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of another application closing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an application shutdown apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • an application shutdown method provided by an embodiment of the present invention may include:
  • the method shown in Figure 1 can be applied to an electronic device, which can be a terminal device or a server communicatively coupled to the terminal device.
  • the terminal device may be a terminal device such as a smart TV, a computer, a tablet, a mobile phone, an in-vehicle device, and a wearable device.
  • a terminal device such as a smart TV, a computer, a tablet, a mobile phone, an in-vehicle device, and a wearable device.
  • the running parameter may include at least one of an application power consumption percentage, an application power consumption rate, an application memory occupation percentage, an application central processor occupation percentage, and an application background running cumulative duration.
  • S102 Determine, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed.
  • Each of the operating parameters corresponds to a preset threshold
  • the preset parameter condition is formed by a plurality of comparison results and a logical relationship between the plurality of comparison results, where the comparison result is an operation parameter and a corresponding preset threshold. Comparison results.
  • the logical relationship may be various, for example:
  • Logical relationship 1 the comparison result of each running parameter and its corresponding preset threshold is greater than a preset threshold
  • the logical relationship is two; only one comparison result of each running parameter and its corresponding preset threshold is greater than a preset threshold.
  • the terminal device is a 2G mobile phone.
  • the preset threshold of the percentage of power consumption per hour of WeChat is 0.5%
  • the preset threshold corresponding to the WeChat power consumption rate is 0.5% per hour
  • the preset threshold corresponding to the percentage of WeChat memory usage 0.5%
  • the preset threshold corresponding to the percentage of the WeChat central processor occupancy is 0.7%
  • the threshold corresponding to the accumulated duration of the WeChat background operation is 5 hours.
  • the mobile phone is currently running WeChat
  • WeChat's hourly power consumption percentage is 1%
  • power consumption rate is 1% per hour
  • memory usage percentage is 1%
  • central processor occupancy percentage is 0.5%
  • background running cumulative time is 2 hours. Since the comparison result of the three operating parameters of the WeChat with the corresponding preset threshold is greater than the preset threshold, the WeChat is determined to be the application to be closed.
  • the determined application to be closed is more in line with the user's shutdown requirement.
  • S103 Close the application resident service of the application to be closed and end all processes of the application to be closed.
  • the embodiment of the present invention closes both the application resident service of the application to be closed and all the processes of the application to be closed, so that the process of the closed application cannot be resident by the application. start up.
  • the step S103 may include:
  • the forced stop interface is triggered to close the application resident service of the application to be closed and end all processes of the application to be closed.
  • the application details page corresponding to each application to be closed may be displayed in sequence, for example, first displaying an application details page corresponding to the application to be closed, and closing the application of the application to be closed. After the program resides in the service and ends all the processes of the application to be closed, another application to be closed is displayed, and its application resident service is closed and all its processes are ended.
  • the application resident service of the application to be closed is closed and all processes of the application to be closed are ended.
  • the method further includes:
  • a floating window is displayed on the top of the displayed application details page.
  • the application details page located below the floating window will not receive the user's instruction due to the floating window top display, thereby avoiding the interruption of the application resident service interruption and the process end process being interrupted due to user misoperation.
  • the floating window may be a translucent floating window, and the user may see the application details page of the lower layer through the semi-transparent floating window to understand the closing process of the application.
  • the method may further include:
  • An application running in each background determining whether the identifier of the application is located in a preset blacklist, and the blacklist stores an identifier of an application that does not need to run in the background;
  • applications that do not need to run in the background can be set by the user.
  • the step S101 may specifically include: obtaining, according to a click operation of the one-click power saving option by the user, an operation parameter of each application currently running in the terminal device.
  • step S103 may include: processing each application to be closed separately as follows:
  • the invention can close the application resident service and end all processes of the application for each application to be closed, so that the user can perform the shutdown for each application to be closed separately.
  • the application of the application to be closed is resident and ends the operation of all processes of the application to be closed.
  • the application details page is an application management page provided by the operating system of the terminal device.
  • forcibly stopping the interface first verifies whether the caller's signature is the system signature. If yes, the verification is passed, forcibly stopping the interface will close the application resident service of the application to be closed and ending the service. Close all processes of the application. Since the application details page is provided by the operating system of the terminal device, the signature of the control in the application details page is the system signature, so that the above verification passes, thereby forcibly stopping the interface to close the application resident service of the application to be closed and ending. All processes of the application to be closed.
  • the invention can directly reach the system level detail page of the application, automatically call the forced stop control of the application detail page corresponding to the application, without the user manually clicking the button, to achieve the purpose of automatically closing the application. Since the page is generally unknown to the user, it is difficult to find, and the present invention automatically calls the application details page corresponding to the application without the user looking for it.
  • FIG. 1 The method shown in FIG. 1 will be specifically described below through a specific embodiment.
  • the terminal device is a mobile phone
  • FIG. 2(a) is a schematic diagram of an initial interface of a power-saving application program according to an embodiment of the present invention
  • FIG. 2(b) is a power-saving application scanning application program according to an embodiment of the present invention.
  • the schematic diagram obtains running parameters of each application currently running by the mobile phone, and determines, according to the running parameters of the respective applications, that the application to be closed is displayed and displayed below the interface, without the user clicking the close button in the power consumption list of the power saving application
  • FIG. 2(c) is a schematic diagram of an application details page of a semi-transparent floating window display according to an embodiment of the present invention, by which a user can see an application being closed without a user clicking a forced stop button on the page.
  • FIG. 2(d) provides an embodiment of the present invention.
  • a power-saving application closes the interface diagram after each application to be closed, showing the power-saving effect achieved after closing each application to be closed, thereby closing each application to be closed to reduce the user's 4 operations
  • FIG. 2(e) is a schematic diagram of an initial interface for returning to a power-saving application after each application to be closed is closed according to an embodiment of the present invention.
  • another application closing method provided by the present invention may include:
  • S302 Determine, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed.
  • the step S301 is the same as the step S101 of the method shown in FIG. 1
  • the step S302 is the same as the step S102 of the method shown in FIG. 1 and will not be described again.
  • S304 Close the remaining application resident services of the application to be closed and end all processes of the remaining applications to be closed.
  • Step S304 may be a specific execution process of step S103 shown in FIG. 1.
  • the running state may include at least one of an application audio output state, an application download state, and an application login state, and each running state corresponds to a preset state condition.
  • the step S303 may include:
  • the application to be closed that satisfies its corresponding preset state is determined as an application that does not need to be closed;
  • the application that does not need to be closed is removed to obtain the remaining applications to be closed.
  • the preset state corresponding to the audio output state of the application is no audio output
  • the preset state corresponding to the application download state is no download
  • the preset state corresponding to the application login state is not logged in.
  • the QQ music is determined to be an application that does not need to be closed.
  • the pea pod is determined to be an application that does not need to be closed.
  • the QQ is determined to be an application that does not need to be closed.
  • another application closing method provided by the present invention may include:
  • S402 Determine, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed.
  • the step S301 is the same as the step S101 of the method shown in FIG. 1
  • the step S302 is the same as the step S102 of the method shown in FIG. 1
  • the step S403 is the same as the step S303 of the method shown in FIG.
  • the whitelist can be a list of applications that are set by the user and that do not need to be closed.
  • S405 Close the application resident service of the application that is not included in the whitelist in the remaining applications to be closed, and end the applications that are not included in the whitelist in the remaining applications to be closed. All processes of the program.
  • the remaining applications to be closed are compared with the white list including the application that does not need to be closed, the remaining applications to be closed that are not in the white list are automatically determined, and thus the determined application to be closed is more in line with the user. Closed demand.
  • the method further includes:
  • the default application type can be game class, live wallpaper class and tool class.
  • An application that is in an abnormal state in each application that is currently running is determined to be the application to be closed.
  • the abnormal running state can be various, for example:
  • Abnormal operation state 1 The application repeatedly executes a piece of code into an infinite loop state
  • Abnormal operation state 2 The application is in an unresponsive state.
  • the application closing method of the embodiment of the present invention determines that the current running parameter of the currently running application is determined, and the application whose current running parameter meets the preset parameter condition is determined to be the application to be closed. Close the application resident service of the application to be closed and end all processes of the application to be closed.
  • the invention automatically determines the application to be closed according to the operating parameters of each application, so the determined application to be closed is more in line with the user's shutdown requirement.
  • the invention completely shuts down the application by closing the application resident service of the application to be closed and ending all the processes of the application to be closed, and avoids the closed application automatically restarting if the user does not actively start. Make it unable to continue to occupy system resources and consume power.
  • FIG. 5 is a schematic structural diagram of an application shutdown apparatus according to an embodiment of the present invention.
  • the apparatus shown in FIG. 5 may include:
  • the obtaining module 501 is configured to obtain current running parameters of each application currently running;
  • the apparatus shown in FIG. 5 can be applied to an electronic device, which can be a terminal device or a server communicatively coupled to the terminal device.
  • the determining module 502 is configured to determine, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed;
  • the closing module 503 is configured to close the application resident service of the application to be closed and end all processes of the application to be closed.
  • the embodiment of the present invention closes both the application resident service of the application to be closed and all the processes of the application to be closed, so that the process of the closed application cannot be resident by the application. start up.
  • the operation parameter may include at least one of an application power consumption percentage, an application power consumption rate, an application memory occupation percentage, an application central processor occupation percentage, and an application background running cumulative duration; each operation parameter
  • Each of the preset parameter values is composed of a plurality of comparison results and a logical relationship between the plurality of comparison results, and the comparison result is a comparison result of the operation parameter and the corresponding preset threshold.
  • the logical relationship may be various, for example:
  • Logical relationship 1 the comparison result of each running parameter and its corresponding preset threshold is greater than a preset threshold
  • the logical relationship is two; only one comparison result of each running parameter and its corresponding preset threshold is greater than a preset threshold.
  • the determined application to be closed is more in line with the user's shutdown requirement.
  • the apparatus shown in FIG. 5 may further include:
  • the shutdown module 503 can be specifically configured to:
  • the device shown in FIG. 5 may further include:
  • Aligning module configured to determine from the removal module according to the running state of each application to be closed After closing the application without removing the application, and after obtaining the remaining applications to be closed, comparing the remaining applications to be closed with the white list containing the application that does not need to be closed;
  • the shutdown module 503 can be specifically configured to:
  • the operating state may include at least one of an application audio output state, an application download state, and an application login state, and each operating state corresponds to a preset state condition.
  • the removing module may include:
  • a determining sub-module for determining a preset state for each application to be closed
  • a first determining submodule configured to determine an application to be closed that meets its corresponding preset state as an application that does not need to be closed
  • the first removal sub-module is configured to remove the application that does not need to be closed to obtain the remaining applications to be closed.
  • the preset state corresponding to the audio output state of the application is no audio output
  • the preset state corresponding to the application download state is no download
  • the preset state corresponding to the application login state is not logged in.
  • the shutdown module 503 can include:
  • a display submodule configured to display an application detail page corresponding to the application to be closed
  • the calling submodule is configured to trigger a forced stop interface to close the application resident service of the application to be closed and end all processes of the application to be closed by calling a forced stop control of the application detail page.
  • the device may further include:
  • a floating window display module configured to: in the calling submodule, trigger a forced stop interface to close an application resident service of the application to be closed and end the application to be closed by calling a forced stop control of the application detail page Before all the processes of the program, after the display sub-module displays the application details page corresponding to the application to be closed, displaying a floating window on the displayed application detail page;
  • the application details page located below the floating window will not receive the user's instruction due to the floating window top display, thereby avoiding the interruption of the application resident service interruption and the process end process being interrupted due to user misoperation.
  • the floating window may be a translucent floating window.
  • the application details page of the lower layer can be seen through the semi-transparent floating window to understand the closing process of the application.
  • the invention can close the application resident service and end all processes of the application for each application to be closed, so that the user can perform the shutdown for each application to be closed separately.
  • the application of the application to be closed is resident and ends the operation of all processes of the application to be closed.
  • the application details page is an application management page provided by the operating system of the terminal device.
  • forcibly stopping the interface first verifies whether the caller's signature is the system signature. If yes, the verification is passed, forcibly stopping the interface will close the application resident service of the application to be closed and ending the service. Close all processes of the application. Since the application details page is provided by the operating system of the terminal device, the signature of the control in the application details page is the system signature, so that the above verification passes, thereby forcibly stopping the interface to close the application resident service of the application to be closed and ending. All processes of the application to be closed.
  • the invention can directly reach the system level detail page of the application, automatically call the forced stop control of the application detail page corresponding to the application, without the user manually clicking the button, to achieve the purpose of automatically closing the application. Since the page is generally unknown to the user, it is difficult to find, and the present invention automatically calls the application details page corresponding to the application without the user looking for it.
  • An application closing device determines an application that meets a preset parameter condition by using an application running parameter of each application currently running, and closes the application to be closed.
  • the application resident service that closes the application is closed and all processes of the application to be closed are ended.
  • the invention automatically determines the application to be closed according to the operating parameters of each application, so the determined application to be closed is more in line with the user's shutdown requirement.
  • the invention completely shuts down the application by closing the application resident service of the application to be closed and ending all the processes of the application to be closed, and avoids the closed application automatically restarting if the user does not actively start. Make it unable to continue to occupy system resources and consume power.
  • an embodiment of the present invention provides an electronic device, where the electronic device may include:
  • a housing (not shown), a processor 601, a memory 602, a circuit board 603, and a power supply circuit 604, wherein the circuit board 603 is disposed inside a space enclosed by the housing, and the processor 601 and the memory 602 are disposed on the circuit board.
  • an embodiment of the present invention further provides a computer readable storage medium, wherein the storage medium has one or more modules, and when the one or more modules are executed by an electronic device, the electronic device is caused An application closing method according to the above embodiment of the present invention is executed.
  • the embodiment of the present invention further provides a computer program, wherein the calculation program is used to execute an application closing method according to the above embodiment of the present invention at runtime. An application closing method according to an embodiment of the present invention is applied to an electronic device.

Landscapes

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

Abstract

Provided in the embodiments of the present invention are a method, a device, and an electronic equipment for closing an application, in which, by obtaining the current running parameters of each application that is currently running, determining an application of which current running parameters satisfy a preset parameter condition as an application to be closed, and closing the application resident service of the application to be closed and ending all the processes of the application to be closed. The invention automatically determines the application to be closed according to the running parameters of each application, thereby the application to be closed determined is more in line with the user's closing demand. The present invention achieves the goal of completely shutting down the application by closing the application resident service of the application to be closed and ending all the processes of the application to be closed, thereby avoiding the situation that the closed application is automatically restarted when the user does not take the initiative to start the application, so that the closed application cannot continue to take up system resources and consume power.

Description

应用程序关闭方法、装置及电子设备Application closing method, device and electronic device
相关申请的交叉引用Cross-reference to related applications
本申请要求北京金山安全软件有限公司于2015年11月20日提交的、发明名称为“一种应用程序关闭方法、装置及电子设备”的、中国专利申请号“201510812585.1”的优先权。The present application claims the priority of the Chinese patent application No. 201510812585.1, filed on November 20, 2015, by the name of the s.
技术领域Technical field
本发明涉及计算机应用技术领域,特别是涉及一种应用程序关闭方法、装置及电子设备。The present invention relates to the field of computer application technologies, and in particular, to an application closing method, apparatus, and electronic device.
背景技术Background technique
手机、电脑等终端设备上的操作系统都是多任务的操作系统,可以同时运行多个应用程序。Operating systems on mobile devices, computers and other terminal devices are multi-tasking operating systems that can run multiple applications simultaneously.
正在运行的各应用程序会占用系统资源并消耗电能。当有过多的应用程序同时运行时,终端设备的运行将十分缓慢。对于使用电池提供电能的终端设备而言,过多的应用程序同时运行还会消耗大量电能。因此及时对运行的应用程序进行关闭显得尤为重要。Each running application consumes system resources and consumes power. When too many applications are running at the same time, the terminal device will run very slowly. For end devices that use batteries to provide power, too many applications running at the same time consume a lot of power. Therefore, it is especially important to close the running application in time.
现有的应用程序关闭技术定期检测正在后台运行的应用程序,并根据用户的操作结束正在后台运行的应用程序的进程。但申请人研究发现,现有技术在结束正在后台运行的应用程序的进程后,在用户未主动启动的情况下,已关闭的应用程序的进程会再次运行,继续占用系统资源并消耗电能。可见,现有的应用程序关闭技术无法彻底关闭应用程序,导致已关闭的应用程序自动启动后仍占用系统资源并消耗电能。The existing application shutdown technique periodically detects applications that are running in the background and ends the process of the application running in the background based on the user's actions. However, the applicant's research found that after the process of ending the application running in the background, the process of the closed application will run again, and continue to occupy system resources and consume power. As you can see, the existing application shutdown technology does not completely shut down the application, causing the closed application to still consume system resources and consume power after it is automatically started.
发明内容Summary of the invention
本发明实施例的目的在于提供一种应用程序关闭方法、装置及电子设备,可以彻底关闭应用程序,避免已关闭的应用程序在用户未主动启动的情况下自动重新启动。具体技术方案如下:An object of the embodiments of the present invention is to provide an application closing method, an apparatus, and an electronic device, which can completely shut down an application program, and prevent the closed application from automatically restarting when the user does not actively start. The specific technical solutions are as follows:
本发明实施例提供了一种应用程序关闭方法,所述方法包括:An embodiment of the present invention provides an application closing method, where the method includes:
获取当前正在运行的各应用程序的当前运行参数;Get the current running parameters of each application currently running;
将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序;Determining, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed;
关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有 进程。Close the application resident service of the application to be closed and end all of the application to be closed process.
可选的,所述将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序之后,所述方法还包括:Optionally, after the determining, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed, the method further includes:
根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序;According to the running state of each application to be closed, the application that needs to be closed is removed from the determined application to be closed, and the remaining applications to be closed are obtained;
所述关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程,包括:The closing the application resident service of the application to be closed and ending all processes of the application to be closed, including:
关闭所述剩余的待关闭应用程序的应用程序常驻服务并结束所述剩余的待关闭应用程序的所有进程。Close the remaining application resident services of the application to be closed and end all processes of the remaining applications to be closed.
可选的,所述根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序之后,所述方法还包括:Optionally, after the application to be closed is removed from the determined to-be-closed application, and the remaining applications to be closed are obtained, the method further includes:
将所述剩余的待关闭应用程序与包含无需关闭的应用程序的白名单进行比对;Comparing the remaining applications to be closed with a whitelist containing applications that do not need to be closed;
所述关闭所述剩余的待关闭应用程序的应用程序常驻服务并结束所述剩余的待关闭应用程序的所有进程,包括:The closing of the remaining application resident services of the remaining applications to be closed and ending all processes of the remaining applications to be closed, including:
关闭所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的应用程序常驻服务,结束所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的所有进程。Close the application resident service of the application that is not included in the whitelist in the remaining applications to be closed, and end the applications of the remaining applications to be closed that are not included in the whitelist All processes.
可选的,所述运行参数包括应用程序的耗电百分比、应用程序耗电速率、应用程序内存占用百分比、应用程序中央处理器占用百分比和应用程序后台运行累计时长中的至少一个;Optionally, the operating parameter includes at least one of an application power consumption percentage, an application power consumption rate, an application memory occupation percentage, an application central processor occupation percentage, and an application background running cumulative duration;
每一运行参数均对应有一预设阈值;所述预设参数条件由多个比较结果及所述多个比较结果之间的逻辑关系构成,所述比较结果为运行参数与对应预设阈值的比较结果。Each operating parameter corresponds to a preset threshold; the preset parameter condition is composed of a plurality of comparison results and a logical relationship between the plurality of comparison results, and the comparison result is a comparison between the operating parameter and a corresponding preset threshold. result.
可选的,所述运行状态包括应用程序音频输出状态、应用程序下载状态和应用程序登录状态中的至少一个,每一运行状态均对应有一预设状态条件,Optionally, the running state includes at least one of an application audio output state, an application download state, and an application login state, and each running state corresponds to a preset state condition.
所述根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序,包括:According to the running status of each application to be closed, the application that needs to be closed is removed from the determined application to be closed, and the remaining applications to be closed are obtained, including:
针对每一待关闭应用程序进行预设状态的判定;Determining a preset state for each application to be closed;
将满足其对应的预设状态的待关闭应用程序确定为无需关闭的应用程序;The application to be closed that satisfies its corresponding preset state is determined as an application that does not need to be closed;
将所述无需关闭的应用程序进行去除,获得剩余的待关闭应用程序。The application that does not need to be closed is removed to obtain the remaining applications to be closed.
可选的,所述关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程,包括: Optionally, the closing the application resident service of the application to be closed and ending all processes of the application to be closed, including:
显示所述待关闭应用程序对应的应用详情页面;Displaying an application details page corresponding to the application to be closed;
通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。By calling the forced stop control of the application details page, the forced stop interface is triggered to close the application resident service of the application to be closed and end all processes of the application to be closed.
可选的,在通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程之前,在显示所述待关闭应用程序对应的应用详情页面之后,所述方法还包括:Optionally, after the forced stop interface is triggered by calling the forced stop control of the application detail page, the application resident service of the application to be closed is closed and all processes of the application to be closed are ended. After the application details page corresponding to the application is closed, the method further includes:
在显示的所述应用详情页面上层置顶显示一悬浮窗。A floating window is displayed on the top of the displayed application details page.
可选的,所述悬浮窗为半透明悬浮窗。Optionally, the floating window is a translucent floating window.
本发明实施例提供的一种应用程序关闭装置,所述装置包括:An application closing device provided by an embodiment of the present invention includes:
获得模块,用于获取当前正在运行的各应用程序的当前运行参数;Obtaining a module for obtaining current running parameters of each application currently running;
确定模块,用于将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序;a determining module, configured to determine, by the application that meets the preset parameter condition, the current running parameter as an application to be closed;
关闭模块,用于关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。And closing a module, configured to close an application resident service of the application to be closed and end all processes of the application to be closed.
可选的,所述装置还包括:Optionally, the device further includes:
去除模块,用于在所述确定模块将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序之后,根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序;a removing module, configured to determine, according to an operating state of each application to be closed, an application to be closed, according to an operating state of each application to be closed, after the determining module determines that the current running parameter meets a preset parameter condition as an application to be closed Remove applications that do not need to be closed to get the remaining applications to be closed;
所述关闭模块,具体用于:The shutdown module is specifically configured to:
关闭所述剩余的待关闭应用程序的应用程序常驻服务并结束所述剩余的待关闭应用程序的所有进程。Close the remaining application resident services of the application to be closed and end all processes of the remaining applications to be closed.
可选的,所述装置还包括:Optionally, the device further includes:
比对模块,用于在所述去除模块根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序的之后,将所述剩余的待关闭应用程序与包含无需关闭的应用程序的白名单进行比对;a matching module, configured to remove the application that needs to be closed from the determined application to be closed according to the running state of each to-be-closed application, and obtain the remaining applications to be closed, and then the remaining The application to be closed is compared to a whitelist containing applications that do not need to be closed;
所述关闭模块,具体用于:The shutdown module is specifically configured to:
关闭所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的应用程序常驻服务,结束所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的所有进程。Close the application resident service of the application that is not included in the whitelist in the remaining applications to be closed, and end the applications of the remaining applications to be closed that are not included in the whitelist All processes.
可选的,所述运行参数包括应用程序的耗电百分比、应用程序耗电速率、应用程序内存占用百分比、应用程序中央处理器占用百分比和应用程序后台运行累计时长中的至少一个;每一运行参数均对应有一预设阈值;所述预设参数条件由多个比较结果 及所述多个比较结果之间的逻辑关系构成,所述比较结果为运行参数与对应预设阈值的比较结果。Optionally, the running parameter includes at least one of an application power consumption percentage, an application power consumption rate, an application memory occupation percentage, an application central processor occupation percentage, and an application background running cumulative duration; each operation The parameters all correspond to a preset threshold; the preset parameter condition is determined by multiple comparison results. And a logical relationship between the plurality of comparison results, wherein the comparison result is a comparison result of the operation parameter and the corresponding preset threshold.
可选的,所述运行状态包括应用程序音频输出状态、应用程序下载状态和应用程序登录状态中的至少一个,每一运行状态均对应有一预设状态条件,Optionally, the running state includes at least one of an application audio output state, an application download state, and an application login state, and each running state corresponds to a preset state condition.
所述去除模块,包括:The removing module includes:
判定子模块,用于针对每一待关闭应用程序进行预设状态的判定;a determining sub-module for determining a preset state for each application to be closed;
第一确定子模块,用于将满足其对应的预设状态的待关闭应用程序确定为无需关闭的应用程序;a first determining submodule, configured to determine an application to be closed that meets its corresponding preset state as an application that does not need to be closed;
第一去除子模块,用于将所述无需关闭的应用程序进行去除,获得剩余的待关闭应用程序。The first removal sub-module is configured to remove the application that does not need to be closed to obtain the remaining applications to be closed.
可选的,所述关闭模块,包括:Optionally, the shutdown module includes:
显示子模块,用于显示所述待关闭应用程序对应的应用详情页面;a display submodule, configured to display an application detail page corresponding to the application to be closed;
调用子模块,用于通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。The calling submodule is configured to trigger a forced stop interface to close the application resident service of the application to be closed and end all processes of the application to be closed by calling a forced stop control of the application detail page.
可选的,所述装置还包括:Optionally, the device further includes:
浮窗显示模块,用于在所述调用子模块在通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程之前,在所述显示子模块在显示所述待关闭应用程序对应的应用详情页面之后,在显示的所述应用详情页面上层置顶显示一悬浮窗;a floating window display module, configured to: in the calling submodule, trigger a forced stop interface to close an application resident service of the application to be closed and end the application to be closed by calling a forced stop control of the application detail page Before all the processes of the program, after the display sub-module displays the application details page corresponding to the application to be closed, displaying a floating window on the displayed application detail page;
可选的,所述悬浮窗为半透明悬浮窗。Optionally, the floating window is a translucent floating window.
本发明实施例提供了一种电子设备,所述电子设备包括:An embodiment of the present invention provides an electronic device, where the electronic device includes:
壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行本发明上述实施例所述的一种应用程序关闭方法。a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, the processor and the memory are disposed on the circuit board; and the power supply circuit is used for each circuit of the electronic device or The device is powered; the memory is for storing executable program code; the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory for executing one of the above-described embodiments of the present invention The application closes the method.
为实现上述目的,本发明实施例公开了一种计算机可读存储介质,其中,该存储介质有一个或者多个模块,当所述一个或者多个模块被一个电子设备执行时用于执行本发明上述实施例所述的一种应用程序关闭方法。其中,本发明实施例所述的一种应用程序关闭方法,应用于电子设备。To achieve the above object, embodiments of the present invention disclose a computer readable storage medium, wherein the storage medium has one or more modules for performing the present invention when the one or more modules are executed by an electronic device. An application shutdown method as described in the above embodiments. An application closing method according to an embodiment of the present invention is applied to an electronic device.
为实现上述目的,本发明实施例公开了一种计算机程序,其中,该计算机程序用 于在运行时执行本发明上述实施例所述的一种应用程序关闭方法。其中,本发明实施例所述的一种应用程序关闭方法,应用于电子设备。In order to achieve the above object, an embodiment of the present invention discloses a computer program, wherein the computer program uses An application closing method according to the above embodiment of the present invention is executed at runtime. An application closing method according to an embodiment of the present invention is applied to an electronic device.
本发明实施例提供的一种应用程序关闭方法、装置及电子设备,通过获取当前正在运行的各应用程序的当前运行参数,将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序,关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。本发明根据各应用程序的运行参数自动确定待关闭应用程序,因此所确定的待关闭应用程序更符合用户的关闭需求。本发明通过关闭待关闭应用程序的应用程序常驻服务并结束待关闭应用程序的所有进程达到彻底关闭应用程序的目的,避免了已关闭的应用程序在用户未主动启动的情况下自动重新启动,使其无法继续占用系统资源及消耗电能。An application closing method, device, and electronic device provided by an embodiment of the present invention determine that an application whose current running parameter meets a preset parameter condition is determined to be to be closed by acquiring a current running parameter of each application currently running. The application closes the application resident service of the application to be closed and ends all processes of the application to be closed. The invention automatically determines the application to be closed according to the operating parameters of each application, so the determined application to be closed is more in line with the user's shutdown requirement. The invention completely shuts down the application by closing the application resident service of the application to be closed and ending all the processes of the application to be closed, and avoids the closed application automatically restarting if the user does not actively start. Make it unable to continue to occupy system resources and consume power.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例提供的一种应用程序关闭方法的流程示意图;1 is a schematic flowchart of an application closing method according to an embodiment of the present invention;
图2(a)为本发明实施例提供的一种省电应用程序初始界面示意图;2(a) is a schematic diagram of an initial interface of a power saving application according to an embodiment of the present invention;
图2(b)为本发明实施例提供的一种省电应用程序扫描应用程序示意图;FIG. 2(b) is a schematic diagram of a power saving application scanning application program according to an embodiment of the present invention;
图2(c)为本发明实施例提供的一种半透明悬浮窗显示的应用详情页面示意图;2(c) is a schematic diagram of an application details page of a semi-transparent floating window display according to an embodiment of the present invention;
图2(d)为本发明实施例提供的一种省电应用程序关闭每一待关闭应用程序后的界面示意图;2(d) is a schematic diagram of an interface after a power-saving application closes each application to be closed according to an embodiment of the present invention;
图2(e)为本发明实施例提供的一种关闭每一待关闭应用程序后返回省电应用程序初始界面示意图;FIG. 2(e) is a schematic diagram of an initial interface of returning to a power-saving application after each application to be closed is closed according to an embodiment of the present invention;
图3为本发明实施例提供的另一种应用程序关闭方法的流程示意图;3 is a schematic flowchart of another application closing method according to an embodiment of the present invention;
图4为本发明实施例提供的另一种应用程序关闭方法的流程示意图;4 is a schematic flowchart of another application closing method according to an embodiment of the present invention;
图5为本发明实施例提供的一种应用程序关闭装置的结构示意图;FIG. 5 is a schematic structural diagram of an application shutdown apparatus according to an embodiment of the present invention;
图6为本发明实施例提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
如图1所示,本发明实施例提供的一种应用程序关闭方法,该方法可以包括:As shown in FIG. 1 , an application shutdown method provided by an embodiment of the present invention may include:
S101:获取当前正在运行的各应用程序的当前运行参数。S101: Acquire current running parameters of each application currently running.
图1所示方法可以应用于电子设备中,该电子设备可以为终端设备或与终端设备通信连接的服务器。The method shown in Figure 1 can be applied to an electronic device, which can be a terminal device or a server communicatively coupled to the terminal device.
具体的,终端设备可以为智能电视、电脑、平板、手机、车载设备和可穿戴设备等终端设备。Specifically, the terminal device may be a terminal device such as a smart TV, a computer, a tablet, a mobile phone, an in-vehicle device, and a wearable device.
具体的,所述运行参数可以包括应用程序的耗电百分比、应用程序耗电速率、应用程序内存占用百分比、应用程序中央处理器占用百分比和应用程序后台运行累计时长中的至少一个。Specifically, the running parameter may include at least one of an application power consumption percentage, an application power consumption rate, an application memory occupation percentage, an application central processor occupation percentage, and an application background running cumulative duration.
S102:将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序。S102: Determine, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed.
其中,每一运行参数均对应有一预设阈值,所述预设参数条件由多个比较结果及所述多个比较结果之间的逻辑关系构成,所述比较结果为运行参数与对应预设阈值的比较结果。Each of the operating parameters corresponds to a preset threshold, and the preset parameter condition is formed by a plurality of comparison results and a logical relationship between the plurality of comparison results, where the comparison result is an operation parameter and a corresponding preset threshold. Comparison results.
具体的,所述逻辑关系可以有多种,例如:Specifically, the logical relationship may be various, for example:
逻辑关系一:各运行参数与其对应预设阈值的比较结果均为大于预设阈值;Logical relationship 1: the comparison result of each running parameter and its corresponding preset threshold is greater than a preset threshold;
逻辑关系二;各运行参数与其对应预设阈值的比较结果中只需有一个比较结果为大于预设阈值。The logical relationship is two; only one comparison result of each running parameter and its corresponding preset threshold is greater than a preset threshold.
为方便理解,下面结合一具体实例对逻辑关系一进行说明:For ease of understanding, the following describes a logical relationship in conjunction with a specific example:
终端设备为内存为2G的手机,微信每小时的耗电百分比对应的预设阈值为0.5%、微信耗电速率对应的预设阈值为每小时0.5%、微信内存占用百分比对应的预设阈值为0.5%、微信中央处理器占用百分比对应的预设阈值为0.7%和微信后台运行累计时长对应的阈值为5小时。手机当前正在运行微信,微信的每小时耗电百分比为1%、耗电速率为每小时1%、内存占用百分比为1%、中央处理器占用百分比为0.5%和后台运行累计时长为2小时,由于微信的5个运行参数中有3个运行参数与对应的预设阈值的比较结果为大于预设阈值,所以将微信确定为待关闭应用程序。The terminal device is a 2G mobile phone. The preset threshold of the percentage of power consumption per hour of WeChat is 0.5%, the preset threshold corresponding to the WeChat power consumption rate is 0.5% per hour, and the preset threshold corresponding to the percentage of WeChat memory usage. 0.5%, the preset threshold corresponding to the percentage of the WeChat central processor occupancy is 0.7%, and the threshold corresponding to the accumulated duration of the WeChat background operation is 5 hours. The mobile phone is currently running WeChat, WeChat's hourly power consumption percentage is 1%, power consumption rate is 1% per hour, memory usage percentage is 1%, central processor occupancy percentage is 0.5%, and background running cumulative time is 2 hours. Since the comparison result of the three operating parameters of the WeChat with the corresponding preset threshold is greater than the preset threshold, the WeChat is determined to be the application to be closed.
由于根据各应用程序的运行参数自动确定待关闭应用程序,因此所确定的待关闭应用程序更符合用户的关闭需求。Since the application to be closed is automatically determined according to the running parameters of each application, the determined application to be closed is more in line with the user's shutdown requirement.
S103:关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。S103: Close the application resident service of the application to be closed and end all processes of the application to be closed.
申请人研究发现:在结束正在后台运行的应用程序的进程后,在用户未主动启动 的情况下,已关闭的应用程序的进程会再次运行,这是由于应用程序的常驻服务可重新启动应用程序的进程,在结束正在后台运行的应用程序的进程后,应用程序的常驻服务会重新启动已关闭的应用程序的进程。因此,本发明实施例既关闭所述待关闭应用程序的应用程序常驻服务,又结束所述待关闭应用程序的所有进程,从而使得已关闭的应用程序的进程无法被应用程序的常驻服务启动。Applicant's research found that after the process of ending the application running in the background, the user did not initiate In the case where the closed application's process will run again, this is because the application's resident service can restart the application's process, and the application's resident service after ending the process of the application running in the background The process of the closed application will be restarted. Therefore, the embodiment of the present invention closes both the application resident service of the application to be closed and all the processes of the application to be closed, so that the process of the closed application cannot be resident by the application. start up.
其中,步骤S103,可以包括:The step S103 may include:
显示所述待关闭应用程序对应的应用详情页面;Displaying an application details page corresponding to the application to be closed;
通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。By calling the forced stop control of the application details page, the forced stop interface is triggered to close the application resident service of the application to be closed and end all processes of the application to be closed.
具体的,当待关闭应用程序为多个时,可以依次显示各待关闭应用程序对应的应用详情页面,例如:首先显示一待关闭应用程序对应的应用详情页面,关闭该待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程后,再显示另一待关闭应用程序,并关闭其应用程序常驻服务并结束其所有进程。Specifically, when there are multiple applications to be closed, the application details page corresponding to each application to be closed may be displayed in sequence, for example, first displaying an application details page corresponding to the application to be closed, and closing the application of the application to be closed. After the program resides in the service and ends all the processes of the application to be closed, another application to be closed is displayed, and its application resident service is closed and all its processes are ended.
可选的,在通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程之前,在显示所述待关闭应用程序对应的应用详情页面之后,所述方法还包括:Optionally, after the forced stop interface is triggered by calling the forced stop control of the application detail page, the application resident service of the application to be closed is closed and all processes of the application to be closed are ended. After the application details page corresponding to the application is closed, the method further includes:
在显示的所述应用详情页面上层置顶显示一悬浮窗。A floating window is displayed on the top of the displayed application details page.
其中,由于悬浮窗置顶显示,因此位于悬浮窗下层的应用详情页面将无法接收到用户的指令,从而避免由于用户误操作导致应用程序常驻服务的关闭过程被中断以及进程结束过程被中断。The application details page located below the floating window will not receive the user's instruction due to the floating window top display, thereby avoiding the interruption of the application resident service interruption and the process end process being interrupted due to user misoperation.
可选的,所述悬浮窗可以为半透明悬浮窗,用户可通过半透明悬浮窗看到下层的应用详情页面,从而了解应用程序的关闭过程。Optionally, the floating window may be a translucent floating window, and the user may see the application details page of the lower layer through the semi-transparent floating window to understand the closing process of the application.
具体的,步骤S101之前还可以包括:Specifically, before step S101, the method may further include:
对各后台正在运行的应用程序:判断该应用程序的标识是否位于预设黑名单中,所述黑名单中保存有无需后台运行的应用程序的标识;An application running in each background: determining whether the identifier of the application is located in a preset blacklist, and the blacklist stores an identifier of an application that does not need to run in the background;
如果是,关闭该应用程序的常驻服务,结束该应用程序的所有进程。If so, close the application's resident service and end all processes for that application.
其中,无需后台运行的应用程序可以由用户设定。Among them, applications that do not need to run in the background can be set by the user.
具体的,步骤S101可以具体包括:根据用户对一键省电选项的点击操作,获得终端设备中当前正在运行的各应用程序的运行参数。Specifically, the step S101 may specifically include: obtaining, according to a click operation of the one-click power saving option by the user, an operation parameter of each application currently running in the terminal device.
同时,步骤S103可以包括:分别对每一待关闭应用程序均进行如下处理:In the meantime, step S103 may include: processing each application to be closed separately as follows:
通过调用该待关闭应用程序对应的应用详情页面的强制停止控件,触发强制停止接口关闭该待关闭应用程序的应用程序常驻服务并结束该待关闭应用程序的所有进 程。By calling the forced stop control of the application details page corresponding to the application to be closed, triggering the forced stop interface to close the application resident service of the application to be closed and ending all the applications of the application to be closed Cheng.
这样,用户只需点击一次,本发明即可对每一待关闭应用程序均关闭应用程序常驻服务并结束应用程序的所有进程,从而使得用户可以无需分别对每一待关闭应用程序执行关闭该待关闭应用程序的应用程序常驻服务并结束该待关闭应用程序的所有进程的操作。In this way, the user only needs to click once, and the invention can close the application resident service and end all processes of the application for each application to be closed, so that the user can perform the shutdown for each application to be closed separately. The application of the application to be closed is resident and ends the operation of all processes of the application to be closed.
其中,应用详情页面为终端设备的操作系统提供的应用程序管理页面。The application details page is an application management page provided by the operating system of the terminal device.
具体的,在触发强制停止接口后,强制停止接口会首先验证调用者的签名是否为系统签名,如果是,则验证通过,强制停止接口将关闭待关闭应用程序的应用程序常驻服务并结束待关闭应用程序的所有进程。由于应用详情页面是终端设备的操作系统提供的,因此应用详情页面中的控件的签名为系统签名,这样,上述验证通过,从而强制停止接口关闭该待关闭应用程序的应用程序常驻服务并结束该待关闭应用程序的所有进程。Specifically, after the forced stop interface is triggered, forcibly stopping the interface first verifies whether the caller's signature is the system signature. If yes, the verification is passed, forcibly stopping the interface will close the application resident service of the application to be closed and ending the service. Close all processes of the application. Since the application details page is provided by the operating system of the terminal device, the signature of the control in the application details page is the system signature, so that the above verification passes, thereby forcibly stopping the interface to close the application resident service of the application to be closed and ending. All processes of the application to be closed.
本发明可以直接到达应用程序的系统级详情页面,自动调用应用程序对应的应用详情页面的强制停止控件,无需用户手动点击按键,达到自动化关闭应用程序的目的。由于该页面一般用户并不知晓,因此寻找困难,而本发明自动调用该应用程序对应的应用详情页面,无需用户寻找。The invention can directly reach the system level detail page of the application, automatically call the forced stop control of the application detail page corresponding to the application, without the user manually clicking the button, to achieve the purpose of automatically closing the application. Since the page is generally unknown to the user, it is difficult to find, and the present invention automatically calls the application details page corresponding to the application without the user looking for it.
下面通过一具体的实施例对图1所示方法进行具体说明。The method shown in FIG. 1 will be specifically described below through a specific embodiment.
例如:终端设备为手机,图2(a)为本发明实施例提供的一种省电应用程序初始界面示意图,图2(b)为本发明实施例提供的一种省电应用程序扫描应用程序示意图,获得手机当前正在运行的各应用程序的运行参数,根据所述各应用程序的运行参数,确定待关闭应用程序并显示在界面下方,无需用户点击省电应用程序耗电列表中的关闭按键,图2(c)为本发明实施例提供的一种半透明悬浮窗显示的应用详情页面示意图,通过此页面用户可看到正在进行关闭的应用程序,无需用户点击该页面中的强制停止按键,无需点击强制停止弹窗中的确定按键,无需点击返回按键,省电应用程序将自动触发强制停止按键,并自动触发强制停止弹窗中的确定按键,关闭每一待关闭应用程序,自动返回至省电应用程序关闭每一待关闭应用程序后的界面,图2(d)为本发明实施例提供的一种省电应用程序关闭每一待关闭应用程序后的界面示意图,展示关闭每一待关闭应用程序后所达到的省电效果,由此关闭每一待关闭应用程序减少用户4次操作,图2(e)为本发明实施例提供的一种关闭每一待关闭应用程序后返回省电应用程序初始界面示意图。For example, the terminal device is a mobile phone, FIG. 2(a) is a schematic diagram of an initial interface of a power-saving application program according to an embodiment of the present invention, and FIG. 2(b) is a power-saving application scanning application program according to an embodiment of the present invention. The schematic diagram obtains running parameters of each application currently running by the mobile phone, and determines, according to the running parameters of the respective applications, that the application to be closed is displayed and displayed below the interface, without the user clicking the close button in the power consumption list of the power saving application FIG. 2(c) is a schematic diagram of an application details page of a semi-transparent floating window display according to an embodiment of the present invention, by which a user can see an application being closed without a user clicking a forced stop button on the page. You don't need to click the OK button in the forced stop pop-up window, you don't need to click the back button, the power-saving application will automatically trigger the forced stop button, and automatically trigger the OK button in the forced stop pop-up window, close each application to be closed, and automatically return. After the power saving application closes the interface after each application to be closed, FIG. 2(d) provides an embodiment of the present invention. A power-saving application closes the interface diagram after each application to be closed, showing the power-saving effect achieved after closing each application to be closed, thereby closing each application to be closed to reduce the user's 4 operations, FIG. 2(e) is a schematic diagram of an initial interface for returning to a power-saving application after each application to be closed is closed according to an embodiment of the present invention.
如图3所示,本发明提供的另一种应用程序关闭方法,可以包括:As shown in FIG. 3, another application closing method provided by the present invention may include:
S301:获取当前正在运行的各应用程序的当前运行参数。 S301: Acquire current running parameters of each application currently running.
S302:将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序。S302: Determine, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed.
其中,步骤S301与图1所示方法的步骤S101相同,步骤S302与图1所示方法的步骤S102相同,不再赘述。The step S301 is the same as the step S101 of the method shown in FIG. 1 , and the step S302 is the same as the step S102 of the method shown in FIG. 1 and will not be described again.
S303:根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序。S303: According to the running status of each application to be closed, the application that needs to be closed is removed from the determined application to be closed, and the remaining applications to be closed are obtained.
S304:关闭所述剩余的待关闭应用程序的应用程序常驻服务并结束所述剩余的待关闭应用程序的所有进程。S304: Close the remaining application resident services of the application to be closed and end all processes of the remaining applications to be closed.
步骤S304可以为图1所示步骤S103的一种具体执行过程。Step S304 may be a specific execution process of step S103 shown in FIG. 1.
具体的,所述运行状态可以包括应用程序音频输出状态、应用程序下载状态和应用程序登录状态中的至少一个,每一运行状态均对应有一预设状态条件。Specifically, the running state may include at least one of an application audio output state, an application download state, and an application login state, and each running state corresponds to a preset state condition.
其中,步骤S303,可以包括:The step S303 may include:
针对每一待关闭应用程序进行预设状态的判定;Determining a preset state for each application to be closed;
将满足其对应的预设状态的待关闭应用程序确定为无需关闭的应用程序;The application to be closed that satisfies its corresponding preset state is determined as an application that does not need to be closed;
将所述无需关闭的应用程序进行去除,获得剩余的待关闭应用程序。The application that does not need to be closed is removed to obtain the remaining applications to be closed.
在本发明实施例中,应用程序音频输出状态对应的预设状态为无音频输出,应用程序下载状态对应的预设状态为无下载,应用程序登录状态对应的预设状态为未登录。In the embodiment of the present invention, the preset state corresponding to the audio output state of the application is no audio output, and the preset state corresponding to the application download state is no download, and the preset state corresponding to the application login state is not logged in.
由于有音频输出、有下载和已登录代表用户正在使用该待关闭应用程序,因此无需关闭该待关闭应用程序。Since there is audio output, downloads, and logged in, the user is using the application to be closed, so there is no need to close the application to be closed.
例如:待关闭应用程序为QQ音乐,QQ音乐正在播放音乐,则将QQ音乐确定为无需关闭的应用程序。For example, if the application to be closed is QQ music and QQ music is playing music, the QQ music is determined to be an application that does not need to be closed.
或者,or,
待关闭应用程序为豌豆荚,豌豆荚正在更新应用,则将豌豆荚确定为无需关闭的应用程序。When the application to be closed is a pea pod and the pea pod is being updated, the pea pod is determined to be an application that does not need to be closed.
或者,or,
待关闭应用程序为QQ,用户已登录QQ,则将QQ确定为无需关闭的应用程序。When the application to be closed is QQ and the user has logged in to QQ, the QQ is determined to be an application that does not need to be closed.
通过将运行状态满足对应的预设状态的待关闭应用程序确定为无需关闭的应用程序,进一步筛选出更准确的用户需要关闭的应用程序。By determining the application to be closed whose running state meets the corresponding preset state as an application that does not need to be closed, the more accurate application that the user needs to close is further filtered out.
如图4所示,本发明提供的另一种应用程序关闭方法,可以包括:As shown in FIG. 4, another application closing method provided by the present invention may include:
S401:获取当前正在运行的各应用程序的当前运行参数。S401: Acquire current running parameters of each application currently running.
S402:将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序。S402: Determine, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed.
S403:根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序。 S403: According to the running status of each application to be closed, the application that needs to be closed is removed from the determined application to be closed, and the remaining applications to be closed are obtained.
其中,步骤S301与图1所示方法的步骤S101相同,步骤S302与图1所示方法的步骤S102相同,步骤S403与图3所示方法的步骤S303相同,不再赘述。The step S301 is the same as the step S101 of the method shown in FIG. 1, the step S302 is the same as the step S102 of the method shown in FIG. 1, and the step S403 is the same as the step S303 of the method shown in FIG.
S404:将所述剩余的待关闭应用程序与包含无需关闭的应用程序的白名单进行比对。S404: Align the remaining applications to be closed with a white list containing applications that do not need to be closed.
其中,白名单可以为用户设定的包含无需关闭的应用程序的名单。Among them, the whitelist can be a list of applications that are set by the user and that do not need to be closed.
S405:关闭所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的应用程序常驻服务,结束所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的所有进程。S405: Close the application resident service of the application that is not included in the whitelist in the remaining applications to be closed, and end the applications that are not included in the whitelist in the remaining applications to be closed. All processes of the program.
由于将所述剩余的待关闭应用程序与包含无需关闭的应用程序的白名单进行比对,自动确定未在白名单中的剩余的待关闭应用程序,由此确定的待关闭应用程序更加符合用户的关闭需求。Since the remaining applications to be closed are compared with the white list including the application that does not need to be closed, the remaining applications to be closed that are not in the white list are automatically determined, and thus the determined application to be closed is more in line with the user. Closed demand.
具体的,在图1所示方法基础上,在步骤S103之前,所述方法还包括:Specifically, on the basis of the method shown in FIG. 1 , before the step S103, the method further includes:
获得终端设备当前正在运行的各应用程序所属的应用程序类型,将预设的应用程序类型的当前正在运行的应用程序确定为待关闭应用程序;Obtaining an application type to which each application currently running by the terminal device belongs, and determining a currently running application of the preset application type as an application to be closed;
其中,预设的应用程序的类型可以为游戏类、动态壁纸类和工具类等。Among them, the default application type can be game class, live wallpaper class and tool class.
或者,or,
将当前正在运行的各应用程序中处于异常运行状态的应用程序确定为待关闭应用程序。An application that is in an abnormal state in each application that is currently running is determined to be the application to be closed.
所述异常运行状态可以有多种,例如:The abnormal running state can be various, for example:
异常运行状态一:应用程序重复执行一段代码进入死循环状态;Abnormal operation state 1: The application repeatedly executes a piece of code into an infinite loop state;
异常运行状态二:应用程序处于无响应状态。Abnormal operation state 2: The application is in an unresponsive state.
可见,本发明实施例提供的一种应用程序关闭方法,通过获取当前正在运行的各应用程序的当前运行参数,将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序,关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。本发明根据各应用程序的运行参数自动确定待关闭应用程序,因此所确定的待关闭应用程序更符合用户的关闭需求。本发明通过关闭待关闭应用程序的应用程序常驻服务并结束待关闭应用程序的所有进程达到彻底关闭应用程序的目的,避免了已关闭的应用程序在用户未主动启动的情况下自动重新启动,使其无法继续占用系统资源及消耗电能。It can be seen that the application closing method of the embodiment of the present invention determines that the current running parameter of the currently running application is determined, and the application whose current running parameter meets the preset parameter condition is determined to be the application to be closed. Close the application resident service of the application to be closed and end all processes of the application to be closed. The invention automatically determines the application to be closed according to the operating parameters of each application, so the determined application to be closed is more in line with the user's shutdown requirement. The invention completely shuts down the application by closing the application resident service of the application to be closed and ending all the processes of the application to be closed, and avoids the closed application automatically restarting if the user does not actively start. Make it unable to continue to occupy system resources and consume power.
图5为本发明实施例提供的一种应用程序关闭装置的结构示意图,与图1所示的方法相对应,图5所示装置可以包括:FIG. 5 is a schematic structural diagram of an application shutdown apparatus according to an embodiment of the present invention. Corresponding to the method shown in FIG. 1, the apparatus shown in FIG. 5 may include:
获得模块501,用于获取当前正在运行的各应用程序的当前运行参数; The obtaining module 501 is configured to obtain current running parameters of each application currently running;
图5所示装置可以应用于电子设备中,该电子设备可以为终端设备或与终端设备通信连接的服务器。The apparatus shown in FIG. 5 can be applied to an electronic device, which can be a terminal device or a server communicatively coupled to the terminal device.
确定模块502,用于将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序;The determining module 502 is configured to determine, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed;
关闭模块503,用于关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。The closing module 503 is configured to close the application resident service of the application to be closed and end all processes of the application to be closed.
申请人研究发现:在结束正在后台运行的应用程序的进程后,在用户未主动启动的情况下,已关闭的应用程序的进程会再次运行,这是由于应用程序的常驻服务可重新启动应用程序的进程,在结束正在后台运行的应用程序的进程后,应用程序的常驻服务会重新启动已关闭的应用程序的进程。因此,本发明实施例既关闭所述待关闭应用程序的应用程序常驻服务,又结束所述待关闭应用程序的所有进程,从而使得已关闭的应用程序的进程无法被应用程序的常驻服务启动。Applicant's research found that after ending the process of the application running in the background, the process of the closed application will run again if the user does not actively start, because the application's resident service can restart the application. The process of the program, after the process of the application running in the background is finished, the application's resident service restarts the process of the closed application. Therefore, the embodiment of the present invention closes both the application resident service of the application to be closed and all the processes of the application to be closed, so that the process of the closed application cannot be resident by the application. start up.
其中,所述运行参数可以包括应用程序的耗电百分比、应用程序耗电速率、应用程序内存占用百分比、应用程序中央处理器占用百分比和应用程序后台运行累计时长中的至少一个;每一运行参数均对应有一预设阈值;所述预设参数条件由多个比较结果及所述多个比较结果之间的逻辑关系构成,所述比较结果为运行参数与对应预设阈值的比较结果。The operation parameter may include at least one of an application power consumption percentage, an application power consumption rate, an application memory occupation percentage, an application central processor occupation percentage, and an application background running cumulative duration; each operation parameter Each of the preset parameter values is composed of a plurality of comparison results and a logical relationship between the plurality of comparison results, and the comparison result is a comparison result of the operation parameter and the corresponding preset threshold.
具体的,所述逻辑关系可以有多种,例如:Specifically, the logical relationship may be various, for example:
逻辑关系一:各运行参数与其对应预设阈值的比较结果均为大于预设阈值;Logical relationship 1: the comparison result of each running parameter and its corresponding preset threshold is greater than a preset threshold;
逻辑关系二;各运行参数与其对应预设阈值的比较结果中只需有一个比较结果为大于预设阈值。The logical relationship is two; only one comparison result of each running parameter and its corresponding preset threshold is greater than a preset threshold.
由于根据各应用程序的运行参数自动确定待关闭应用程序,因此所确定的待关闭应用程序更符合用户的关闭需求。Since the application to be closed is automatically determined according to the running parameters of each application, the determined application to be closed is more in line with the user's shutdown requirement.
在本发明其他实施例中,图5所示装置还可以包括:In other embodiments of the present invention, the apparatus shown in FIG. 5 may further include:
去除模块,用于在所述确定模块502将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序之后,根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序;a module for removing the application to be closed according to the running state of each application to be closed after the determining module 502 determines that the application whose current running parameter meets the preset parameter condition is the application to be closed. Remove the application that does not need to be closed, and get the remaining applications to be closed;
所述关闭模块503,可以具体用于:The shutdown module 503 can be specifically configured to:
关闭所述剩余的待关闭应用程序的应用程序常驻服务并结束所述剩余的待关闭应用程序的所有进程。Close the remaining application resident services of the application to be closed and end all processes of the remaining applications to be closed.
进一步,在图5所示装置包括去除模块时,该装置还可以包括:Further, when the device shown in FIG. 5 includes a removal module, the device may further include:
比对模块,用于在所述去除模块根据各待关闭应用程序的运行状态,从确定的待 关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序的之后,将所述剩余的待关闭应用程序与包含无需关闭的应用程序的白名单进行比对;Aligning module, configured to determine from the removal module according to the running state of each application to be closed After closing the application without removing the application, and after obtaining the remaining applications to be closed, comparing the remaining applications to be closed with the white list containing the application that does not need to be closed;
所述关闭模块503,可以具体用于:The shutdown module 503 can be specifically configured to:
关闭所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的应用程序常驻服务,结束所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的所有进程。Close the application resident service of the application that is not included in the whitelist in the remaining applications to be closed, and end the applications of the remaining applications to be closed that are not included in the whitelist All processes.
在本发明其他实施例中,所述运行状态可以包括应用程序音频输出状态、应用程序下载状态和应用程序登录状态中的至少一个,每一运行状态均对应有一预设状态条件,In other embodiments of the present invention, the operating state may include at least one of an application audio output state, an application download state, and an application login state, and each operating state corresponds to a preset state condition.
所述去除模块,可以包括:The removing module may include:
判定子模块,用于针对每一待关闭应用程序进行预设状态的判定;a determining sub-module for determining a preset state for each application to be closed;
第一确定子模块,用于将满足其对应的预设状态的待关闭应用程序确定为无需关闭的应用程序;a first determining submodule, configured to determine an application to be closed that meets its corresponding preset state as an application that does not need to be closed;
第一去除子模块,用于将所述无需关闭的应用程序进行去除,获得剩余的待关闭应用程序。The first removal sub-module is configured to remove the application that does not need to be closed to obtain the remaining applications to be closed.
在本发明实施例中,应用程序音频输出状态对应的预设状态为无音频输出,应用程序下载状态对应的预设状态为无下载,应用程序登录状态对应的预设状态为未登录。In the embodiment of the present invention, the preset state corresponding to the audio output state of the application is no audio output, and the preset state corresponding to the application download state is no download, and the preset state corresponding to the application login state is not logged in.
由于有音频输出、有下载和已登录代表用户正在使用该待关闭应用程序,因此无需关闭该待关闭应用程序。Since there is audio output, downloads, and logged in, the user is using the application to be closed, so there is no need to close the application to be closed.
所述关闭模块503,可以包括:The shutdown module 503 can include:
显示子模块,用于显示所述待关闭应用程序对应的应用详情页面;a display submodule, configured to display an application detail page corresponding to the application to be closed;
调用子模块,用于通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。The calling submodule is configured to trigger a forced stop interface to close the application resident service of the application to be closed and end all processes of the application to be closed by calling a forced stop control of the application detail page.
所述装置还可以包括:The device may further include:
浮窗显示模块,用于在所述调用子模块在通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程之前,在所述显示子模块在显示所述待关闭应用程序对应的应用详情页面之后,在显示的所述应用详情页面上层置顶显示一悬浮窗;a floating window display module, configured to: in the calling submodule, trigger a forced stop interface to close an application resident service of the application to be closed and end the application to be closed by calling a forced stop control of the application detail page Before all the processes of the program, after the display sub-module displays the application details page corresponding to the application to be closed, displaying a floating window on the displayed application detail page;
其中,由于悬浮窗置顶显示,因此位于悬浮窗下层的应用详情页面将无法接收到用户的指令,从而避免由于用户误操作导致应用程序常驻服务的关闭过程被中断以及进程结束过程被中断。 The application details page located below the floating window will not receive the user's instruction due to the floating window top display, thereby avoiding the interruption of the application resident service interruption and the process end process being interrupted due to user misoperation.
具体的,所述悬浮窗可以为半透明悬浮窗。Specifically, the floating window may be a translucent floating window.
用户可通过半透明悬浮窗看到下层的应用详情页面,从而了解应用程序的关闭过程。The application details page of the lower layer can be seen through the semi-transparent floating window to understand the closing process of the application.
这样,用户只需点击一次,本发明即可对每一待关闭应用程序均关闭应用程序常驻服务并结束应用程序的所有进程,从而使得用户可以无需分别对每一待关闭应用程序执行关闭该待关闭应用程序的应用程序常驻服务并结束该待关闭应用程序的所有进程的操作。In this way, the user only needs to click once, and the invention can close the application resident service and end all processes of the application for each application to be closed, so that the user can perform the shutdown for each application to be closed separately. The application of the application to be closed is resident and ends the operation of all processes of the application to be closed.
其中,应用详情页面为终端设备的操作系统提供的应用程序管理页面。The application details page is an application management page provided by the operating system of the terminal device.
具体的,在触发强制停止接口后,强制停止接口会首先验证调用者的签名是否为系统签名,如果是,则验证通过,强制停止接口将关闭待关闭应用程序的应用程序常驻服务并结束待关闭应用程序的所有进程。由于应用详情页面是终端设备的操作系统提供的,因此应用详情页面中的控件的签名为系统签名,这样,上述验证通过,从而强制停止接口关闭该待关闭应用程序的应用程序常驻服务并结束该待关闭应用程序的所有进程。Specifically, after the forced stop interface is triggered, forcibly stopping the interface first verifies whether the caller's signature is the system signature. If yes, the verification is passed, forcibly stopping the interface will close the application resident service of the application to be closed and ending the service. Close all processes of the application. Since the application details page is provided by the operating system of the terminal device, the signature of the control in the application details page is the system signature, so that the above verification passes, thereby forcibly stopping the interface to close the application resident service of the application to be closed and ending. All processes of the application to be closed.
本发明可以直接到达应用程序的系统级详情页面,自动调用应用程序对应的应用详情页面的强制停止控件,无需用户手动点击按键,达到自动化关闭应用程序的目的。由于该页面一般用户并不知晓,因此寻找困难,而本发明自动调用该应用程序对应的应用详情页面,无需用户寻找。The invention can directly reach the system level detail page of the application, automatically call the forced stop control of the application detail page corresponding to the application, without the user manually clicking the button, to achieve the purpose of automatically closing the application. Since the page is generally unknown to the user, it is difficult to find, and the present invention automatically calls the application details page corresponding to the application without the user looking for it.
本发明实施例提供的一种应用程序关闭装置,通过获取当前正在运行的各应用程序的当前运行参数,将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序,关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。本发明根据各应用程序的运行参数自动确定待关闭应用程序,因此所确定的待关闭应用程序更符合用户的关闭需求。本发明通过关闭待关闭应用程序的应用程序常驻服务并结束待关闭应用程序的所有进程达到彻底关闭应用程序的目的,避免了已关闭的应用程序在用户未主动启动的情况下自动重新启动,使其无法继续占用系统资源及消耗电能。An application closing device provided by an embodiment of the present invention determines an application that meets a preset parameter condition by using an application running parameter of each application currently running, and closes the application to be closed. The application resident service that closes the application is closed and all processes of the application to be closed are ended. The invention automatically determines the application to be closed according to the operating parameters of each application, so the determined application to be closed is more in line with the user's shutdown requirement. The invention completely shuts down the application by closing the application resident service of the application to be closed and ending all the processes of the application to be closed, and avoids the closed application automatically restarting if the user does not actively start. Make it unable to continue to occupy system resources and consume power.
相应地,如图6所述,本发明实施例提供了一种电子设备,所述电子设备可以包括:Correspondingly, as shown in FIG. 6, an embodiment of the present invention provides an electronic device, where the electronic device may include:
壳体(图中未示出)、处理器601、存储器602、电路板603和电源电路604,其中,电路板603安置在壳体围成的空间内部,处理器601和存储器602设置在电路板603上;电源电路604,用于为电子设备的各个电路或器件供电;存储器602用于存储可执行程序代码;处理器601通过读取存储器602中存储的可执行程序代码来运行与可执 行程序代码对应的程序,以用于执行上述任一项实施例所述的应用程序关闭方法。a housing (not shown), a processor 601, a memory 602, a circuit board 603, and a power supply circuit 604, wherein the circuit board 603 is disposed inside a space enclosed by the housing, and the processor 601 and the memory 602 are disposed on the circuit board. 603; power circuit 604 for powering various circuits or devices of the electronic device; memory 602 for storing executable program code; processor 601 running and executable by reading executable program code stored in memory 602 A program corresponding to the program code for executing the application shutdown method described in any of the above embodiments.
相应地,本发明实施例还提供了一种计算机可读存储介质,其中,该存储介质有一个或者多个模块,当所述一个或者多个模块被一个电子设备执行时,使得所述电子设备执行本发明上述实施例所述的一种应用程序关闭方法。相应地,本发明实施例还提供了一种计算机程序,其中,该计算程序用于在运行时执行本发明上述实施例所述的一种应用程序关闭方法。其中,本发明实施例所述的一种应用程序关闭方法,应用于电子设备。Correspondingly, an embodiment of the present invention further provides a computer readable storage medium, wherein the storage medium has one or more modules, and when the one or more modules are executed by an electronic device, the electronic device is caused An application closing method according to the above embodiment of the present invention is executed. Correspondingly, the embodiment of the present invention further provides a computer program, wherein the calculation program is used to execute an application closing method according to the above embodiment of the present invention at runtime. An application closing method according to an embodiment of the present invention is applied to an electronic device.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (19)

  1. 一种应用程序关闭方法,其特征在于,所述方法包括:An application shutdown method, the method comprising:
    获取当前正在运行的各应用程序的当前运行参数;Get the current running parameters of each application currently running;
    将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序;Determining, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed;
    关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。Close the application resident service of the application to be closed and end all processes of the application to be closed.
  2. 根据权利要求1所述的方法,其特征在于,所述将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序之后,所述方法还包括:The method according to claim 1, wherein the method further comprises: after determining, by the application that the current running parameter meets the preset parameter condition, that the application is to be closed, the method further comprises:
    根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序;According to the running state of each application to be closed, the application that needs to be closed is removed from the determined application to be closed, and the remaining applications to be closed are obtained;
    所述关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程,包括:The closing the application resident service of the application to be closed and ending all processes of the application to be closed, including:
    关闭所述剩余的待关闭应用程序的应用程序常驻服务并结束所述剩余的待关闭应用程序的所有进程。Close the remaining application resident services of the application to be closed and end all processes of the remaining applications to be closed.
  3. 根据权利要求2所述的方法,其特征在于,所述根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序之后,所述方法还包括:The method according to claim 2, wherein the removing the application that needs to be closed from the determined application to be closed according to the running state of each application to be closed, and obtaining the remaining applications to be closed, The method also includes:
    将所述剩余的待关闭应用程序与包含无需关闭的应用程序的白名单进行比对;Comparing the remaining applications to be closed with a whitelist containing applications that do not need to be closed;
    所述关闭所述剩余的待关闭应用程序的应用程序常驻服务并结束所述剩余的待关闭应用程序的所有进程,包括:The closing of the remaining application resident services of the remaining applications to be closed and ending all processes of the remaining applications to be closed, including:
    关闭所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的应用程序常驻服务,结束所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的所有进程。Close the application resident service of the application that is not included in the whitelist in the remaining applications to be closed, and end the applications of the remaining applications to be closed that are not included in the whitelist All processes.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述运行参数包括应用程序的耗电百分比、应用程序耗电速率、应用程序内存占用百分比、应用程序中央处理器占用百分比和应用程序后台运行累计时长中的至少一个;The method according to any one of claims 1 to 3, wherein the operating parameters include an application power consumption percentage, an application power consumption rate, an application memory usage percentage, and an application central processor occupancy percentage. And at least one of the accumulated durations of the application running in the background;
    每一运行参数均对应有一预设阈值;所述预设参数条件由多个比较结果及所述多个比较结果之间的逻辑关系构成,所述比较结果为运行参数与对应预设阈值的比较结果。Each operating parameter corresponds to a preset threshold; the preset parameter condition is composed of a plurality of comparison results and a logical relationship between the plurality of comparison results, and the comparison result is a comparison between the operating parameter and a corresponding preset threshold. result.
  5. 根据权利要求2至4中任一项所述的方法,其特征在于,所述运行状态包括应用程序音频输出状态、应用程序下载状态和应用程序登录状态中的至少一个,每一运 行状态均对应有一预设状态条件,The method according to any one of claims 2 to 4, wherein the operating state comprises at least one of an application audio output state, an application download state, and an application login state, each of which The row status corresponds to a preset state condition.
    所述根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序,包括:According to the running status of each application to be closed, the application that needs to be closed is removed from the determined application to be closed, and the remaining applications to be closed are obtained, including:
    针对每一待关闭应用程序进行预设状态的判定;Determining a preset state for each application to be closed;
    将满足其对应的预设状态的待关闭应用程序确定为无需关闭的应用程序;The application to be closed that satisfies its corresponding preset state is determined as an application that does not need to be closed;
    将所述无需关闭的应用程序进行去除,获得剩余的待关闭应用程序。The application that does not need to be closed is removed to obtain the remaining applications to be closed.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程,包括:The method according to any one of claims 1 to 5, wherein the closing the application resident service of the application to be closed and ending all processes of the application to be closed comprises:
    显示所述待关闭应用程序对应的应用详情页面;Displaying an application details page corresponding to the application to be closed;
    通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。By calling the forced stop control of the application details page, the forced stop interface is triggered to close the application resident service of the application to be closed and end all processes of the application to be closed.
  7. 根据权利要求6所述的方法,其特征在于,在通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程之前,在显示所述待关闭应用程序对应的应用详情页面之后,所述方法还包括:The method according to claim 6, wherein the forced stop interface is triggered to close the application resident service of the application to be closed and the application to be closed is terminated by calling a forced stop control of the application detail page. After all the processes of the program are displayed, after the application details page corresponding to the application to be closed is displayed, the method further includes:
    在显示的所述应用详情页面上层置顶显示一悬浮窗。A floating window is displayed on the top of the displayed application details page.
  8. 根据权利要求7所述的方法,其特征在于,所述悬浮窗为半透明悬浮窗。The method of claim 7 wherein said floating window is a translucent floating window.
  9. 一种应用程序关闭装置,其特征在于,所述装置包括:An application shutdown device, characterized in that the device comprises:
    获得模块,用于获取当前正在运行的各应用程序的当前运行参数;Obtaining a module for obtaining current running parameters of each application currently running;
    确定模块,用于将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序;a determining module, configured to determine, by the application that meets the preset parameter condition, the current running parameter as an application to be closed;
    关闭模块,用于关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。And closing a module, configured to close an application resident service of the application to be closed and end all processes of the application to be closed.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:The device according to claim 9, wherein the device further comprises:
    去除模块,用于在所述确定模块将所述当前运行参数满足预设参数条件的应用程序确定为待关闭应用程序之后,根据各待关闭应用程序的运行状态,从确定的待关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序;a removing module, configured to determine, according to an operating state of each application to be closed, an application to be closed, according to an operating state of each application to be closed, after the determining module determines that the current running parameter meets a preset parameter condition as an application to be closed Remove applications that do not need to be closed to get the remaining applications to be closed;
    所述关闭模块,具体用于:The shutdown module is specifically configured to:
    关闭所述剩余的待关闭应用程序的应用程序常驻服务并结束所述剩余的待关闭应用程序的所有进程。Close the remaining application resident services of the application to be closed and end all processes of the remaining applications to be closed.
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    比对模块,用于在所述去除模块根据各待关闭应用程序的运行状态,从确定的待 关闭应用程序中去除无需关闭的应用程序,获得剩余的待关闭应用程序的之后,将所述剩余的待关闭应用程序与包含无需关闭的应用程序的白名单进行比对;Aligning module, configured to determine from the removal module according to the running state of each application to be closed After closing the application without removing the application, and after obtaining the remaining applications to be closed, comparing the remaining applications to be closed with the white list containing the application that does not need to be closed;
    所述关闭模块,具体用于:The shutdown module is specifically configured to:
    关闭所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的应用程序常驻服务,结束所述剩余的待关闭应用程序中未包含于所述白名单中的应用程序的所有进程。Close the application resident service of the application that is not included in the whitelist in the remaining applications to be closed, and end the applications of the remaining applications to be closed that are not included in the whitelist All processes.
  12. 根据权利要求9至11中任一项所述的装置,其特征在于,所述运行参数包括应用程序的耗电百分比、应用程序耗电速率、应用程序内存占用百分比、应用程序中央处理器占用百分比和应用程序后台运行累计时长中的至少一个;每一运行参数均对应有一预设阈值;所述预设参数条件由多个比较结果及所述多个比较结果之间的逻辑关系构成,所述比较结果为运行参数与对应预设阈值的比较结果。The apparatus according to any one of claims 9 to 11, wherein the operating parameters include an application power consumption percentage, an application power consumption rate, an application memory usage percentage, and an application central processor occupation percentage. And at least one of the accumulated running time of the application running in the background; each running parameter corresponds to a preset threshold; the preset parameter condition is composed of a plurality of comparison results and a logical relationship between the plurality of comparison results, The comparison result is the comparison result of the running parameter and the corresponding preset threshold.
  13. 根据权利要求10至12中任一项所述的装置,其特征在于,所述运行状态包括应用程序音频输出状态、应用程序下载状态和应用程序登录状态中的至少一个,每一运行状态均对应有一预设状态条件,The apparatus according to any one of claims 10 to 12, wherein the operating state comprises at least one of an application audio output state, an application download state, and an application login state, each operating state corresponding to Have a preset state condition,
    所述去除模块,包括:The removing module includes:
    判定子模块,用于针对每一待关闭应用程序进行预设状态的判定;a determining sub-module for determining a preset state for each application to be closed;
    第一确定子模块,用于将满足其对应的预设状态的待关闭应用程序确定为无需关闭的应用程序;a first determining submodule, configured to determine an application to be closed that meets its corresponding preset state as an application that does not need to be closed;
    第一去除子模块,用于将所述无需关闭的应用程序进行去除,获得剩余的待关闭应用程序。The first removal sub-module is configured to remove the application that does not need to be closed to obtain the remaining applications to be closed.
  14. 根据权利要求9至13中任一项所述的装置,其特征在于,所述关闭模块,包括:The device according to any one of claims 9 to 13, wherein the shutdown module comprises:
    显示子模块,用于显示所述待关闭应用程序对应的应用详情页面;a display submodule, configured to display an application detail page corresponding to the application to be closed;
    调用子模块,用于通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程。The calling submodule is configured to trigger a forced stop interface to close the application resident service of the application to be closed and end all processes of the application to be closed by calling a forced stop control of the application detail page.
  15. 根据权利要求14所述的装置,其特征在于,所述装置还包括:The device according to claim 14, wherein the device further comprises:
    浮窗显示模块,用于在所述调用子模块在通过调用所述应用详情页面的强制停止控件,触发强制停止接口关闭所述待关闭应用程序的应用程序常驻服务并结束所述待关闭应用程序的所有进程之前,在所述显示子模块在显示所述待关闭应用程序对应的应用详情页面之后,在显示的所述应用详情页面上层置顶显示一悬浮窗。a floating window display module, configured to: in the calling submodule, trigger a forced stop interface to close an application resident service of the application to be closed and end the application to be closed by calling a forced stop control of the application detail page Before all the processes of the program, after the display sub-module displays the application details page corresponding to the application to be closed, a floating window is displayed on the displayed application detail page.
  16. 根据权利要求15所述的装置,其特征在于,所述悬浮窗为半透明悬浮窗。 The device of claim 15 wherein said floating window is a translucent floating window.
  17. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, comprising:
    壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行权利要求1至8中任一项所述的应用程序关闭方法。a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, the processor and the memory are disposed on the circuit board; and the power supply circuit is used for each circuit of the electronic device or The device is powered; the memory is for storing executable program code; the processor is operative to execute the program corresponding to the executable program code by reading executable program code stored in the memory for performing any one of claims 1 to 8. The application shutdown method described.
  18. 一种计算机程序,其特征在于,用于在运行时,执行权利要求1至8中任一项所述的应用程序关闭方法。A computer program for performing the application shutdown method of any one of claims 1 to 8 at runtime.
  19. 一种计算机可读存储介质,其特征在于,所述存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个电子设备执行时,使得所述电子设备:A computer readable storage medium, wherein the storage medium stores one or more modules, when the one or more modules are executed by an electronic device, causing the electronic device to:
    执行权利要求1至8中任一项所述的应用程序关闭方法。 The application shutdown method of any one of claims 1 to 8.
PCT/CN2016/083731 2015-11-20 2016-05-27 Application closing method, device and electronic equipment WO2017084293A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510812585.1A CN105468409A (en) 2015-11-20 2015-11-20 Application program closing method and device and electronic equipment
CN201510812585.1 2015-11-20

Publications (1)

Publication Number Publication Date
WO2017084293A1 true WO2017084293A1 (en) 2017-05-26

Family

ID=55606147

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083731 WO2017084293A1 (en) 2015-11-20 2016-05-27 Application closing method, device and electronic equipment

Country Status (2)

Country Link
CN (1) CN105468409A (en)
WO (1) WO2017084293A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181700A (en) * 2017-07-19 2017-09-19 努比亚技术有限公司 Control method, mobile terminal and the storage medium of application program for mobile terminal
EP3690663A4 (en) * 2017-09-30 2020-11-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Application cleaning method and apparatus, storage medium and electronic device

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468409A (en) * 2015-11-20 2016-04-06 北京金山安全软件有限公司 Application program closing method and device and electronic equipment
CN105867592B (en) * 2016-04-18 2019-04-12 北京小米移动软件有限公司 A kind of method and apparatus managing electric quantity consumption
CN106020834A (en) * 2016-05-24 2016-10-12 珠海市魅族科技有限公司 Method for controlling application program and program controlling device
CN106095055B (en) * 2016-05-31 2018-07-27 广东欧珀移动通信有限公司 A kind of method for closing and device of application program
CN106055365B (en) * 2016-05-31 2019-10-25 Oppo广东移动通信有限公司 A kind of closing application program method and apparatus
CN106095414A (en) * 2016-06-01 2016-11-09 北京金山安全软件有限公司 Method and device for managing application program and electronic equipment
CN106203067B (en) * 2016-06-22 2019-09-13 Oppo广东移动通信有限公司 A kind of method for cleaning and device of application program
CN106201698A (en) * 2016-07-15 2016-12-07 北京金山安全软件有限公司 Method and device for managing application program and electronic equipment
CN106254333A (en) * 2016-07-29 2016-12-21 北京北信源软件股份有限公司 A kind of safety desktop management method and device
CN106354562B (en) * 2016-08-25 2024-04-12 深圳市泰衡诺科技有限公司 Memory cleaning system and memory cleaning method
CN106484461A (en) * 2016-09-13 2017-03-08 北京智能管家科技有限公司 Service keepalive method and device in intelligent terminal
CN107968960A (en) * 2016-10-20 2018-04-27 中兴通讯股份有限公司 A kind of backstage audio and video playing control method and device
CN106557361A (en) * 2016-11-14 2017-04-05 天脉聚源(北京)传媒科技有限公司 A kind of application program exits method and device
CN106776010B (en) * 2016-11-23 2020-06-05 广州华多网络科技有限公司 Resource allocation method and terminal
CN107145215B (en) * 2017-05-06 2019-09-27 维沃移动通信有限公司 A kind of background application method for cleaning and mobile terminal
CN109241729B (en) * 2017-07-10 2022-05-13 阿里巴巴集团控股有限公司 Application program detection and processing method and device, terminal device and electronic device
CN107506240B (en) * 2017-07-31 2020-01-31 Oppo广东移动通信有限公司 Background application program control method and device, storage medium and electronic equipment
CN107885588B (en) * 2017-11-21 2021-02-19 Oppo广东移动通信有限公司 Application service control method and device, storage medium and mobile terminal
CN107748685B (en) * 2017-11-21 2020-12-25 Oppo广东移动通信有限公司 Application program starting control method and device, terminal equipment and storage medium
CN108153620A (en) * 2017-12-27 2018-06-12 深圳豪客互联网有限公司 A kind of course control method and device
CN109996226A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Process handling method and device, electronic equipment, computer readable storage medium
CN109995930A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Process handling method and device, electronic equipment, computer readable storage medium
CN108717376A (en) * 2018-03-23 2018-10-30 河源市美晨智能研究院 Management method, electronic equipment and the device with store function of background application
CN109683974B (en) * 2018-12-26 2022-05-31 北京金山安全软件有限公司 Awakening method for application background service process in mobile terminal and related equipment
CN110620949B (en) 2019-09-17 2022-02-08 北京字节跳动网络技术有限公司 Control method, device, medium and electronic equipment for hot spot recommendation popup window

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN102981878A (en) * 2012-11-28 2013-03-20 广东欧珀移动通信有限公司 Method for automatically closing background programs and mobile terminal of automatically closing background programs
CN103530235A (en) * 2013-10-18 2014-01-22 北京奇虎科技有限公司 Method and device for clearing internal storage in mobile terminal
CN105468409A (en) * 2015-11-20 2016-04-06 北京金山安全软件有限公司 Application program closing method and device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200525421A (en) * 2004-01-30 2005-08-01 Intervideo Digital Technology Corp Structure of shared application program in operating system and method thereof
CN103345397A (en) * 2013-07-11 2013-10-09 北京奇虎科技有限公司 Method and device for cleaning processes of mobile terminal
CN104298549B (en) * 2014-09-30 2018-03-30 北京金山安全软件有限公司 Method and device for cleaning application programs in mobile terminal and mobile terminal
CN104598315A (en) * 2014-12-12 2015-05-06 广州三星通信技术研究有限公司 Memory managing method, device and terminal
CN104820545B (en) * 2015-04-30 2017-04-12 深圳市奇虎智能科技有限公司 Memory cleaning method and memory cleaning device of mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN102981878A (en) * 2012-11-28 2013-03-20 广东欧珀移动通信有限公司 Method for automatically closing background programs and mobile terminal of automatically closing background programs
CN103530235A (en) * 2013-10-18 2014-01-22 北京奇虎科技有限公司 Method and device for clearing internal storage in mobile terminal
CN105468409A (en) * 2015-11-20 2016-04-06 北京金山安全软件有限公司 Application program closing method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181700A (en) * 2017-07-19 2017-09-19 努比亚技术有限公司 Control method, mobile terminal and the storage medium of application program for mobile terminal
EP3690663A4 (en) * 2017-09-30 2020-11-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Application cleaning method and apparatus, storage medium and electronic device

Also Published As

Publication number Publication date
CN105468409A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
WO2017084293A1 (en) Application closing method, device and electronic equipment
RU2686673C1 (en) Device and method of terminal control and terminal
CN105912370B (en) Control method and device for background application program of mobile terminal and mobile terminal
EP2763034B1 (en) Method and device for image-capturing application screen for use in mobile terminal
US20210389973A1 (en) Electronic device and method for operating the same
WO2015184885A1 (en) Method and device for closing background application of mobile terminal, and mobile terminal
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN110554762A (en) Method and terminal for controlling application program
WO2015120702A1 (en) Method, device, and mobile terminal for cleaning up application process
CN106815065B (en) Background application awakening method and device and electronic equipment
CN109542744A (en) Detect method, apparatus, storage medium and the terminal of terminal booting abnormal problem
US10445104B2 (en) Electronic device, method for controlling electronic device, and program
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
CN104503828A (en) Process management method and terminal
CN107943270B (en) Application service control method and device, storage medium and mobile terminal
TW201621623A (en) System, method and terminal for cleaning memory
WO2015172283A1 (en) Method, device and mobile terminal for reducing power consumption
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
CN107231386B (en) Application state conversion method and device and mobile terminal
US20080253357A1 (en) Computer system with internet phone functionality
US20160132098A1 (en) Electronic apparatus and wake-up method thereof
CN112579369B (en) Multithreading brushing system, method, device, equipment and storage medium
CN113626778A (en) Method, apparatus, electronic device, and computer storage medium for waking up device
US10545562B2 (en) Electronic device and method for operating the same
CN106843440B (en) A kind of mobile terminal restarts control method, device and mobile terminal

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: 16865474

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 03.09.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16865474

Country of ref document: EP

Kind code of ref document: A1