技术领域technical field
本申请实施例涉及终端技术领域,尤其涉及应用程序的控制方法、装置、存储介质及终端。The embodiments of the present application relate to the technical field of terminals, and in particular, to an application program control method, device, storage medium, and terminal.
背景技术Background technique
随着终端技术的快速发展,应用程序越来越多样化,终端中安装的应用程序也越来越多。With the rapid development of terminal technology, application programs are becoming more and more diverse, and more and more application programs are installed in the terminal.
然而,应用程序会想尽一切办法在终端系统后台偷偷启动。大多数情况下,这些应用程序并非用户希望启动的应用程序,其在后台偷偷地进行各种对用户有影响的行为。比如,某些第三方应用在用户不知情的情况下进行数据上传或下载,使用了终端的系统资源,占用了网络带宽,影响了终端的处理速度、功耗等性能。甚至,一些自启动的应用程序,如流氓应用,还可能带来安全隐患。However, the application will try its best to launch secretly in the background of the terminal system. In most cases, these applications are not applications that users want to start, and they secretly perform various behaviors that affect users in the background. For example, some third-party applications upload or download data without the user's knowledge, using the system resources of the terminal, occupying the network bandwidth, and affecting the processing speed and power consumption of the terminal. Even, some self-starting application programs, such as rogue applications, may also bring security risks.
发明内容Contents of the invention
本申请实施例提供应用程序的控制方法、装置、存储介质及终端,可以对应用程序的启动方式进行有效的管理控制。The embodiments of the present application provide an application program control method, device, storage medium, and terminal, which can effectively manage and control the startup mode of the application program.
第一方面,本申请实施例提供了一种应用程序的控制方法,该方法包括:In the first aspect, the embodiment of the present application provides an application control method, the method includes:
在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序;When the event of starting the application by reading the notification permission is triggered, obtain the application to be started with the permission to read the notification;
获取所述待启动应用程序的关联信息;Acquiring associated information of the application to be started;
根据所述关联信息确定是否启动所述待启动应用程序。Determine whether to start the application program to be started according to the association information.
第二方面,本申请实施例提供了一种应用程序的控制装置,该装置包括:In the second aspect, the embodiment of the present application provides an application program control device, which includes:
待启动应用程序获取模块,用于在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序;The application program acquisition module to be started is used to obtain the application program to be started with the permission to read the notification when the event of starting the application by reading the notification permission method is triggered;
关联信息获取模块,用于获取所述待启动应用程序的关联信息;An associated information acquiring module, configured to acquire associated information of the application to be started;
待启动应用程序控制模块,用于根据所述关联信息确定是否启动所述待启动应用程序。A to-be-started application program control module, configured to determine whether to start the to-be-started application program according to the associated information.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例第一方面所述的应用程序的控制方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for controlling an application program as described in the first aspect of the embodiment of the present application is implemented.
第四方面,本申请实施例提供了一种终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例第一方面所述的应用程序的控制方法。In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and when the processor executes the computer program, the computer program according to the embodiment of the present application is implemented. The application control method described in the first aspect.
本申请实施例中提供的应用程序的控制方案,在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序,并根据待启动应用程序的关联信息确定是否启动待启动应用程序。通过采用上述技术方案,可以有效的管控以读取通知权限的方式自启动应用程序的操作,减少应用程序通过读取通知权限的方式自启动的情况,进而,减少应用程序通过读取通知权限的方式实现自己的进程常驻的情况发生,从而,减少使用终端资源的应用,提高处理速度,同时降低了终端功耗,提高终端的续航时间。The application program control scheme provided in the embodiment of the present application, when the event of starting the application by reading the notification permission method is triggered, obtain the application program to be started with the permission to read the notification, and determine according to the associated information of the application program to be started Whether to start the pending application. By adopting the above technical solution, it is possible to effectively control the operation of self-starting the application program by reading the notification permission, reduce the situation that the application program starts automatically by reading the notification permission, and then reduce the application program by reading the notification permission. In this way, the situation that its own process is resident occurs, thereby reducing applications that use terminal resources, improving processing speed, reducing terminal power consumption, and improving terminal battery life.
附图说明Description of drawings
图1为本申请实施例提供的一种应用程序的控制方法的流程示意图;FIG. 1 is a schematic flowchart of an application program control method provided in an embodiment of the present application;
图2为本申请实施例提供的一种应用程序的自启动开关界面的示意图;FIG. 2 is a schematic diagram of a self-starting switch interface of an application program provided by an embodiment of the present application;
图3为本申请实施例提供的另一种应用程序的控制方法的流程示意图;FIG. 3 is a schematic flowchart of another application program control method provided by the embodiment of the present application;
图4为本申请实施例提供的又一种应用程序的控制方法的流程示意图;FIG. 4 is a schematic flowchart of another method for controlling an application provided by an embodiment of the present application;
图5为本申请实施例提供的一种应用程序的控制装置的结构示意图;FIG. 5 is a schematic structural diagram of an application program control device provided by an embodiment of the present application;
图6为本申请实施例提供的一种终端的结构框图;FIG. 6 is a structural block diagram of a terminal provided in an embodiment of the present application;
图7是本申请实施例提供的一种移动终端的结构示意图。FIG. 7 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solution of the present application will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
目前,智能系统作为用户群最大的智能终端的操作系统平台,可以兼容各种第三方应用,以满足用户在生活、娱乐中的各种使用需求。但是,这些第三方应用可能通过引导用户打开读取通知权限的方式在后台自动启动,并在用户不知情的情况下进行数据上传或下载,影响了终端的使用性能和安全性。At present, as the operating system platform of smart terminals with the largest user base, the smart system can be compatible with various third-party applications to meet the various needs of users in life and entertainment. However, these third-party applications may automatically start in the background by guiding users to open the permission to read notifications, and upload or download data without the user's knowledge, affecting the performance and security of the terminal.
为了更清楚的说明本申请,下面对通过读取通知权限的方式启动应用程序进行简要说明。相关技术中,在安卓系统(android)中,读取通知权限是指“android.permission.BIND_NOTIFICATION_LISTENER_SERVICE”的权限。其中,第三方应用可以通过读取通知权限的方式获取与监听终端系统中各种各样的通知。第三方应用需要建立一个与之对应的service服务来监听系统的通知信息,每个第三方应用建立的service服务会注册到系统通知管理服务中,系统通知管理服务会在通知有变化时,通知第三方应用建立的service服务。如果此时第三方应用进程未启动,则会被系统通知管理服务启动,第三方应用通过这种读取通知权限的方式,使自己的进程保持常驻。即使第三方应用刚刚被查杀清除,系统还会通过读取通知权限的方式,启动第三方应用。导致第三方应用一直使用终端的系统资源,占用网络带宽,出现终端的处理速度变慢、网络速度变慢或耗电量增加等影响终端性能的问题。甚至,一些应用程序在后台运行的过程中唤醒其他第三方应用,使用户在不知情的情况下,被一些流氓应用所利用,不利于用户的使用体验和系统的安全保障。本申请实施例提供的应用程序的控制方案,可以有效的管控应用程序通过读取通知权限的方式自启动。In order to illustrate this application more clearly, the following briefly describes how to start an application by reading notification permissions. In related technologies, in the Android system (android), the permission to read notifications refers to the permission of "android.permission.BIND_NOTIFICATION_LISTENER_SERVICE". Wherein, the third-party application can obtain and monitor various notifications in the terminal system by reading notification permissions. The third-party application needs to create a corresponding service service to monitor the notification information of the system. The service service created by each third-party application will be registered in the system notification management service. The system notification management service will notify the first notification when the notification changes. The service service created by the third-party application. If the third-party application process is not started at this time, it will be started by the system notification management service. The third-party application keeps its own process resident by reading the notification permission in this way. Even if the third-party application has just been scanned and cleared, the system will start the third-party application by reading the notification permission. As a result, the third-party application has been using the system resources of the terminal, occupying the network bandwidth, and the processing speed of the terminal is slowed down, the network speed is slowed down, or the power consumption is increased, which affects the performance of the terminal. Even, some applications wake up other third-party applications while running in the background, so that users are used by some rogue applications without knowing it, which is not conducive to user experience and system security. The application control solution provided by the embodiment of the present application can effectively control the self-starting of the application by reading the notification permission.
图1为本申请实施例提供的应用程序的控制方法的流程示意图,该方法可以由应用程序的控制装置执行,其中该装置可由软件和/或硬件实现,一般可集成在终端中。如图1所示,该方法包括:Fig. 1 is a schematic flowchart of an application program control method provided by an embodiment of the present application. The method can be executed by an application program control device, wherein the device can be implemented by software and/or hardware, and can generally be integrated in a terminal. As shown in Figure 1, the method includes:
步骤101、在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序。Step 101 , when an event of starting an application by means of reading notification permission is triggered, obtain an application program to be started with read notification permission.
在本申请实施例中,当监控到通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序,从而进行通过读取通知权限的方式启动应用程序的管控事件。In the embodiment of the present application, when the monitoring event of starting an application by reading the notification permission is triggered, the application to be started with the read notification permission is obtained, so as to control the startup of the application by reading the notification permission event.
可以理解的是,系统监听到通知时,读取通知内容,并从读取到的通知内容中获取待启动的应用程序,此时若检测到该应用程序未启动,则触发通过读取通知权限方式启动应用的事件。当应用程序被查杀清理后,系统通知管理服务检测到系统通知有变化时,欲启动应用程序,即通过读取通知权限方式启动应用的事件被触发;当用户主动点击打开应用程序的读取通知权限时,表征通过读取通知权限方式启动应用的事件被触发;当被其他应用程序发出的通知关联启动时,表征通过读取通知权限方式启动应用的事件被触发。需要说明的是,本申请实施例对通过读取通知权限方式启动应用的事件被触发的具体表现形式不作限定。It is understandable that when the system listens to the notification, it reads the content of the notification and obtains the application to be started from the content of the notification read. method to start the event of the application. When the application is checked, killed and cleaned up, and the system notification management service detects a change in the system notification, the event to start the application, that is, start the application by reading the notification permission, is triggered; when the user actively clicks to open the read notification of the application When the permission is notified, the event that indicates that the application is started by reading the notification permission is triggered; when the notification association issued by other applications is started, the event that indicates that the application is started by reading the notification permission is triggered. It should be noted that the embodiment of the present application does not limit the specific expression form in which the event of starting the application by reading the notification permission is triggered.
需要说明的是,在根据关联信息对通过读取权限的方式自启动的应用程序进行管控之前,还包括:判断具有读取通知权限的应用程序是否已经启动;若具有读取通知权限的应用程序未启动,则触发以读取通知权限方式启动应用程序的管控事件。在以读取通知权限方式启动应用程序的管控事件被触发时,则对应用程序的自启动方式、包名、组件名称以及自启动状态等关联信息进行综合判断,也可以理解为执行根据对所述关联信息匹配预设自启动控制策略的操作。若具有读取通知权限的应用程序已启动,则不触发以读取通知权限方式启动应用程序的管控事件。It should be noted that, before controlling the self-starting application program through the read permission method according to the associated information, it also includes: judging whether the application program with the read notification permission has been started; if the application program with the read notification permission If it is not started, the control event of starting the application with read notification permission is triggered. When the management and control event of starting the application with the read notification permission is triggered, a comprehensive judgment is made on the self-starting method, package name, component name, and self-starting status of the application, which can also be understood as the execution basis. The above association information matches the operation of the preset self-starting control strategy. If the application with read notification permission has been started, the control event of starting the application with read notification permission will not be triggered.
步骤102、获取待启动应用程序的关联信息。Step 102, acquiring associated information of the application program to be started.
在本申请实施例中,待启动应用程序的关联信息可以包括待启动应用程序的自启动方式,其中,自启动方式可以包括多用户切换自启动、开机自启动、应用查杀自启动和用户主动打开应用程序的读取通知权限时自启动。多用户切换自启动可以理解为同一终端可以供多个用户使用,每个用户均设置有自己需要的应用程序,当多用户切换使用的过程中,应用程序进行自启动;开机自启动可以理解为当终端开机时,应用程序自启动;应用查杀自启动可以理解为当应用程序被查杀清理后又重新自启动;用户主动打开应用程序的读取通知权限时自启动可以理解为当用户主动打开应用程序的读取通知权限时,应用程序自启动。In this embodiment of the present application, the associated information of the application to be started may include the self-starting method of the application to be started, wherein the self-starting method may include multi-user switching self-starting, power-on self-starting, application killing self-starting and user initiative Launched automatically when the app's read notification permission is turned on. Multi-user switching self-starting can be understood as the same terminal can be used by multiple users, and each user has its own application program. When multi-user switching is in use, the application program will be self-starting; When the terminal is turned on, the application starts automatically; the self-starting of the application killing can be understood as restarting the application after being scanned and cleaned; the self-starting when the user actively opens the read notification permission of the application can be understood as when the user actively When the read notification permission of the application is turned on, the application starts automatically.
可选的,待启动应用程序的关联信息还可以包括待启动应用程序的包名、组件名称和自启动状态。其中,待启动应用程序的包名还可以替换为待启动应用程序的其他标识信息,如应用程序的进程标识。Optionally, the associated information of the application to be started may also include the package name, component name and self-starting state of the application to be started. Wherein, the package name of the application to be started may also be replaced with other identification information of the application to be started, such as the process identification of the application.
可选的,通过管理通知的系统服务中的设定函数获取待启动应用程序的包名及组件名称;根据待启动应用程序的包名或组件名称查询预设的自启动状态表,确定待启动应用程序的自启动状态。Optionally, obtain the package name and component name of the application to be started through the setting function in the system service of the management notification; query the preset self-starting status table according to the package name or component name of the application to be started, and determine the to-be-started The self-starting state of the application.
其中,管理通知的系统服务即系统通知管理服务,管理通知的系统服务中的设定函数可以为rebindServices函数,该函数在系统服务代码ManagedServices中。通过rebindServices函数可以获取待启动应用程序的包名以及组件名称。Wherein, the system service for managing notification is the system notification management service, and the setting function in the system service for managing notification may be the rebindServices function, which is in the system service code ManagedServices. The package name and component name of the application to be started can be obtained through the rebindServices function.
自启动状态表为存储有用户设置的应用程序的自启动状态为打开或关闭状态的表格。自启动状态可以理解为待启动应用程序的自启动开关的状态信息,其中,可以在终端的应用管家或配置界面中增加应用程序的自启动开关,供用户通过操作自启动开关打开或关闭该应用程序的自启动功能。从而,可以采用自启动开关的状态信息表征自启动权限。自启动状态包括自启动开关处于开启状态和自启动开关处于关闭状态。若自启动开关处于开启状态,则说明对应的应用程序具有自启动权限。图2是本申请实施例提供的一种应用程序的自启动开关界面的示意图。如图2所示,用户可以通过应用管家进入应用程序的自启动设置界面,在该界面内,可以通过对选择控件210的操作打开或关闭应用程序A(或应用程序B/C/D)的自启动功能,也可以认为是赋予应用程序A自启动权限。还可以通过编辑控件220增加或修改应用程序。系统检测到某一应用程序的自启动功开关的状态(即自启动状态)发生变化时,更新自启动状态表,该自启状态表可以存储于本地缓存,也可以存储于云端服务器。另外,该自启动状态表可以是文件格式,还可以是数据表格式。The self-starting state table is a table in which the self-starting state of the application program set by the user is on or off. The self-starting state can be understood as the status information of the self-starting switch of the application to be started, wherein the self-starting switch of the application can be added in the application manager or configuration interface of the terminal, so that the user can open or close the application by operating the self-starting switch The self-starting function of the program. Therefore, the status information of the self-starting switch can be used to represent the self-starting authority. The self-starting state includes the self-starting switch being on and the self-starting switch being off. If the self-start switch is on, it means that the corresponding application has the self-start permission. FIG. 2 is a schematic diagram of an application program self-starting switch interface provided by an embodiment of the present application. As shown in FIG. 2, the user can enter the self-starting setting interface of the application program through the application manager. In this interface, the user can open or close the application program A (or application program B/C/D) by operating the selection control 210. The self-starting function can also be regarded as giving application A the self-starting permission. Applications can also be added or modified through edit control 220 . When the system detects that the state of the self-starting function switch of a certain application program (ie, the self-starting state) changes, it updates the self-starting state table. The self-starting state table can be stored in a local cache or a cloud server. In addition, the self-starting status table may be in the form of a file or a data table.
步骤103、根据关联信息确定是否启动待启动应用程序。Step 103: Determine whether to start the application program to be started according to the association information.
在本申请实施例中,根据待启动应用程序的关联信息确定是否通过读取通知权限的方式启动待启动应用程序,即根据待启动应用程序的关联信息允许通过读取通知权限的方式启动待启动应用程序,或者,根据待启动应用程序的关联信息禁止通过读取通知权限的方式启动待启动应用程序。In this embodiment of the application, it is determined whether to start the application to be started by reading the notification permission according to the associated information of the application to be started, that is, according to the associated information of the application to be started, it is allowed to start the application to be started by reading the notification permission The application program, or, according to the associated information of the application program to be launched, it is forbidden to start the application program to be launched by means of reading the notification permission.
可选的,当待启动应用程序的自启动方式为多用户切换自启动或开机自启动时,禁止通过监听通知权限方式启动待启动应用程序。可以理解的是,在系统监听到通知后,确定触发通知的事件是否是因为终端用户切换或开机,若是,则不读取通知内容,即禁止通过监听通知权限方式启动该待启用应用程序。这样设置的好处在于,可以有效减少系统的数据处理量。Optionally, when the self-starting mode of the application to be started is the multi-user switching self-starting or the power-on self-starting, it is forbidden to start the application to be started by monitoring the notification permission. It can be understood that after the system monitors the notification, it determines whether the event triggering the notification is due to the end user switching or powering on, and if so, the content of the notification is not read, that is, it is prohibited to start the application to be enabled by monitoring the notification permission. The advantage of this setting is that it can effectively reduce the amount of data processing of the system.
可选的,当待启动应用程序的自启动方式为应用查杀自启动或用户主动打开应用程序的读取通知权限时自启动时,判断关联信息是否满足预设条件;当关联信息满足预设条件时,禁止通过读取通知权限方式启动待启动应用程序;其中,预设条件包括:待启动应用程序的包名与第一预设白名单列表中预设的应用程序信息不匹配,组件名称与第二预设白名单列表中预设的组件信息不匹配,并且,自启动状态为关闭状态,其中,按照设定周期通过具有读取通知权限的应用程序的历史使用记录,生成所述第一预设白名单列表及第二预设白名单列表。示例性的,按照设定周期获取具有读取通知权限的应用程序的历史使用记录。在本次获取到具有读取通知权限的应用程序在预设时间区间内的历史使用记录时,采用机器学习方式对该历史使用记录进行学习,生成允许通过读取通知权限方式启动的应用程序的列表,将具有应用程序包名的第一列表作为第一预设白名单列表,将具有应用程序组件名称的第二列表作为第二预设白名单列表。可以理解的是,第一预设白名单列表与第二预设白名单列表可以合成一个列表,也可以为两个列表。在达到设定周期时,再次获取具有读取通知权限的应用程序在预设时间区间内的历史使用记录,并根据历史使用记录采用机器学习方式更新该第一预设白名单列表及第二预设白名单列表。可以理解的是,还可以通过数据统计方式,根据该历史使用记录生成第一预设白名单列表及第二预设白名单列表。Optionally, when the self-starting mode of the application to be started is self-starting by killing the application or when the user actively opens the read notification permission of the application, it is judged whether the associated information satisfies the preset condition; when the associated information satisfies the preset conditions, it is forbidden to start the application to be started by reading the notification permission; wherein, the preset conditions include: the package name of the application to be started does not match the preset application information in the first preset whitelist, and the component name It does not match the preset component information in the second preset whitelist list, and the self-starting state is closed, wherein the second A default white list and a second default white list. Exemplarily, the historical use records of the application programs with the permission to read notifications are acquired according to a set period. When the historical usage records of the application with read notification permission within the preset time interval are obtained this time, use machine learning to learn the historical usage records, and generate a notification that allows the application to be started by reading notification permission. lists, the first list with application package names is used as the first preset whitelist, and the second list with application component names is used as the second preset whitelist. It can be understood that the first preset whitelist and the second preset whitelist may be combined into one list, or may be two lists. When the set period is reached, the historical usage records of the application programs with the permission to read notifications within the preset time interval are obtained again, and the first preset white list and the second preset white list are updated according to the historical usage records using machine learning. Set a whitelist list. It can be understood that the first preset whitelist list and the second preset whitelist list can also be generated according to the historical use records through data statistics.
可选的,当待启动应用程序的自启动方式为应用查杀自启动或用户主动打开应用程序的读取通知权限时自启动时,进一步判断出:当待启动应用程序的包名与第一预设白名单列表中预设的应用程序信息匹配时,或者,当组件名称与第二预设白名单列表中预设的组件信息匹配时,或者,当自启动状态为开启状态时,允许通过读取通知权限方式启动待启动应用程序。Optionally, when the self-starting mode of the application to be started is self-starting by killing the application or automatically starting when the user actively opens the read notification permission of the application, it is further judged that: when the package name of the application to be started is the same as the first When the preset application information in the preset whitelist matches, or when the component name matches the preset component information in the second preset whitelist, or when the self-starting state is enabled, allowing the Start the application to be started by reading the notification permission method.
示例性的,当待启动应用程序的自启动方式为应用查杀自启动或用户主动打开应用程序的读取通知权限时自启动时,将待启动应用程序的包名与第一预设白名单列表中预设的应用程序信息进行匹配。例如,根据待启动应用程序的包名查询第一预设白名单列表,确定待启动应用程序的包名是否属于第一预设白名单列表。若该待启动应用进程的包名属于第一预设白名单列表,则直接允许该待启动应用程序启动,即,允许待启动应用程序通过读取通知权限的方式启动。Exemplarily, when the self-starting mode of the application to be started is self-starting by scanning the application or automatically starting when the user actively opens the read notification permission of the application, the package name of the application to be started and the first preset white list The preset application information in the list is matched. For example, the first preset whitelist is queried according to the package name of the application to be started to determine whether the package name of the application to be started belongs to the first preset whitelist. If the package name of the application process to be started belongs to the first preset white list, the application program to be started is directly allowed to start, that is, the application program to be started is allowed to start by reading the notification permission.
当待启动应用程序的自启动方式为应用查杀自启动或用户主动打开应用程序的读取通知权限时自启动时,将待启动应用程序的组件名称与第二预设白名单列表中预设的组件信息进行匹配。例如,根据待启动应用程序的组件名称查询第二预设白名单列表,确定待启动应用程序的组件名称是否属于第二预设白名单列表。若该待启动应用进程的组件名称属于第二预设白名单列表,则直接允许该待启动应用程序启动,即,允许待启动应用程序通过读取通知权限的方式启动。When the self-starting mode of the application to be started is self-starting by scanning the application or when the user actively opens the read notification permission of the application, the component name of the application to be started and the preset in the second preset white list Component information for matching. For example, the second preset whitelist is queried according to the component name of the application to be started to determine whether the component name of the application to be started belongs to the second preset whitelist. If the component name of the application process to be started belongs to the second preset white list, the application program to be started is directly allowed to start, that is, the application program to be started is allowed to be started by reading the notification permission.
当待启动应用程序的自启动方式为应用查杀自启动或用户主动打开应用程序的读取通知权限时自启动时,判断待启动应用程序的自启动状态。例如,可以通过查询自启动状态表,确定该应用程序的自启动开关是出于打开状态还是关闭状态。若待启动应用程序的自启动状态,即待启动应用程序的自启动开关已打开,则直接允许该待启动应用程序启动,即,允许待启动应用程序通过读取通知权限的方式启动。When the self-starting mode of the application to be started is self-starting by scanning the application or automatically starting when the user actively opens the read notification permission of the application, determine the self-starting state of the application to be started. For example, it may be determined whether the self-starting switch of the application program is in the on state or in the off state by querying the self-starting state table. If the self-starting state of the application to be started, that is, the self-starting switch of the application to be started is turned on, the application to be started is directly allowed to start, that is, the application to be started is allowed to start by reading the notification permission.
可以理解的是,当待启动应用程序的自启动方式为应用查杀自启动或用户主动打开应用程序的读取通知权限时自启动时,对待启动应用程序的关联信息(待启动应用程序的包名、组件名称以及自启动状态)进行匹配操作的执行顺序并不是唯一的,其执行顺序可以调换。It can be understood that when the self-starting mode of the application to be started is self-starting by killing the application or when the user actively opens the read notification permission of the application, the associated information of the application to be started (the package of the application to be started) Name, component name, and self-starting state) the execution order of matching operations is not unique, and its execution order can be exchanged.
其中,第一预设白名单列表和第二预设白名单列表可以是对按照设定周期通过具有读取通知权限的应用程序的历史使用记录进行统计或学习而生成制定的。按照设定周期通过具有读取通知权限的应用程序的历史使用记录可以理解为用户样本。用户样本的选择可以是本机用户在设定时间区间内的具有读取通知权限的应用程序的历史使用数据,还可以是设定数量满足设定条件的用户群体在设定时间区间内的具有读取通知权限的应用程序的历史使用数据。例如,服务器获取本机用户一个月内的具有读取通知权限的应用程序的历史使用数据,作为用户样本,采用机器学习模型对该用户样本进行学习,预测用户可能使用的具有读取通知权限的应用程序,根据该应用程序生成第一预设白名单列表和第二预设白名单列表,以便于在开机后或后台允许其自启动。又如,服务器获取1万名年龄在16-26岁之间的用户在一个月内的具有读取通知权限的应用程序的历史使用数据,作为用户样本,统计出这个用户群体常用的具有读取通知权限的应用程序,根据该应用程序生成第一预设白名单列表和第二预设白名单列表,以便于在开机后或后台允许其自启动。其中,第一预设白名单列表和第二预设白名单列表可以相同,也可以不同。白名单列表(第一预设白名单列表和第二预设白名单列表)生成后,由服务器推送至终端。需要说明的是,该第一预设白名单列表和第二预设白名单列表还可以由用户选择。该第一预设白名单列表和第二预设白名单列表可以以文件方式存储在终端本地或云端服务器,还可以以数据库方式存储在终端本地或云端服务器。Wherein, the first preset white list and the second preset white list may be generated and formulated through statistics or learning of historical use records of applications with read notification permission according to a set period. The historical usage records of applications with the permission to read notifications according to the set period can be understood as user samples. The selection of user samples can be the historical usage data of applications with read notification permission of local users within the set time interval, or the set number of user groups that meet the set conditions within the set time interval. Read historical usage data for apps with notification permissions. For example, the server obtains the historical usage data of applications with the permission to read notifications of the local user within one month, as a user sample, uses a machine learning model to study the user sample, and predicts the applications that the user may use with the permission to read notifications. The application program generates a first preset whitelist list and a second preset whitelist list according to the application program, so as to allow it to start automatically after booting or in the background. For another example, the server obtains the historical usage data of 10,000 users aged between 16 and 26 within a month of applications with the permission to read notifications, as a user sample, and counts the commonly used applications with the permission to read notifications by this user group. The application program of the notification permission generates a first preset whitelist list and a second preset whitelist list according to the application program, so as to allow it to start automatically after booting or in the background. Wherein, the first preset whitelist and the second preset whitelist may be the same or different. After the whitelist list (the first preset whitelist list and the second preset whitelist list) is generated, it is pushed to the terminal by the server. It should be noted that the first preset whitelist and the second preset whitelist may also be selected by the user. The first preset whitelist and the second preset whitelist can be stored in the terminal local or cloud server in the form of files, and can also be stored in the terminal local or cloud server in the form of database.
可选的,根据关联信息确定是否启动待启动应用程序,包括:判断待启动应用程序是否为系统内置的应用程序;在待启动应用程序为系统内置的应用程序时,允许通过读取通知权限方式启动待启动应用程序。Optionally, determining whether to start the application to be started according to the associated information includes: judging whether the application to be started is a built-in application in the system; Start the pending application.
示例性的,判断所述待启动应用程序是否为系统内置的应用程序;若是,则执行允许通过读取通知权限的方式对待启动应用程序启动的操作;否则,根据所述待启动应用程序的关联信息确定允许或禁止通过读取通知权限的方式对待启动应用程序进行启动。例如,在通过读取通知权限方式启动应用的事件被触发时,根据具有读取通知权限的待启动应用程序的关联信息,确定所述待启动应用程序为系统内置的应用程序,则允许该待启动应用程序启动。及如果该待启动应用程序为非系统内置应用,则对该待启动应用程序的关联信息进行判断,以确定是否启动待启动应用程序。Exemplarily, it is judged whether the application to be started is a built-in application in the system; if so, perform an operation allowing the application to be started by reading the notification permission; otherwise, according to the association of the application to be started The information determines whether to allow or prohibit the launch of the application to be launched by means of the read notification permission. For example, when the event of starting an application by reading the notification permission is triggered, according to the associated information of the application to be started with the permission to read the notification, it is determined that the application to be started is a built-in application in the system, then the pending application is allowed Start the application to start. And if the application to be started is a non-system built-in application, judging the associated information of the application to be started to determine whether to start the application to be started.
本申请实施例的技术方案,在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序,并根据待启动应用程序的关联信息确定是否启动待启动应用程序,可以有效的管控以读取通知权限的方式自启动应用程序的操作,减少流氓应用程序通过读取通知权限的方式实现自己的进程常驻的情况发生,从而,减少使用终端资源的应用,提高处理速度,同时降低了终端功耗,提高终端的续航时间。In the technical solution of the embodiment of the present application, when the event of starting the application by means of reading the notification permission is triggered, the application to be started with the permission to read the notification is obtained, and it is determined whether to start the application to be started according to the associated information of the application to be started The program can effectively control the operation of self-starting applications by reading notification permissions, reducing the occurrence of rogue applications realizing their own process resident by reading notification permissions, thereby reducing the use of terminal resources. Improve the processing speed, reduce the power consumption of the terminal at the same time, and improve the battery life of the terminal.
图3为本申请实施例提供的应用程序的控制方法的流程示意图。如图3所示,该方法包括:FIG. 3 is a schematic flowchart of an application program control method provided by an embodiment of the present application. As shown in Figure 3, the method includes:
步骤301、在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序。Step 301 , when an event of starting an application by means of reading notification permission is triggered, obtain an application to be started with the permission to read notification.
步骤302、获取待启动应用程序的自启动方式。Step 302, acquire the self-starting mode of the application program to be started.
其中,自启动方式可以包括多用户切换自启动、开机自启动、应用查杀自启动和用户主动打开应用程序的读取通知权限时自启动。待启动应用程序的自启动方式在同一时刻只能为其中的一种。Among them, the self-starting mode may include multi-user switching self-starting, booting up self-starting, application scanning and killing self-starting, and self-starting when the user actively opens the read notification permission of the application program. The self-starting mode of the application to be started can only be one of them at the same time.
步骤303、当待启动应用程序的自启动方式为多用户切换自启动或开机自启动时,禁止通过监听通知权限方式启动待启动应用程序。Step 303 , when the self-starting mode of the application program to be started is multi-user switching self-starting or power-on self-starting, prohibiting the application program to be started by monitoring the notification permission mode.
步骤304、当待启动应用程序的自启动方式为应用查杀自启动或用户主动打开应用程序的读取通知权限时自启动时,通过管理通知的系统服务中的设定函数获取待启动应用程序的包名及组件名称。Step 304. When the self-starting mode of the application to be started is self-starting by killing the application or when the user actively opens the read notification permission of the application, obtain the application to be started through the setting function in the system service for managing notifications The package name and component name of .
步骤305、根据待启动应用程序的包名或组件名称查询预设的自启动状态表,确定待启动应用程序的自启动状态。Step 305: Query the preset self-starting state table according to the package name or component name of the application to be started, and determine the self-starting state of the application to be started.
步骤306、判断待启动应用程序的包名、组件名称及自启动状态是否满足预设条件,若是,则执行步骤307,否则,执行步骤308。Step 306 , judging whether the package name, component name and self-starting state of the application to be started meet the preset conditions, if yes, execute step 307 , otherwise, execute step 308 .
其中,预设条件包括:待启动应用程序的包名与第一预设白名单列表中预设的应用程序信息不匹配,组件名称与第二预设白名单列表中预设的组件信息不匹配,并且,自启动状态为关闭状态,其中,按照设定周期通过具有读取通知权限的应用程序的历史使用记录,生成所述第一预设白名单列表及第二预设白名单列表。Wherein, the preset conditions include: the package name of the application to be started does not match the preset application information in the first preset whitelist, and the component name does not match the preset component information in the second preset whitelist , and the self-starting state is an off state, wherein the first preset whitelist list and the second preset whitelist list are generated according to the set period through the historical use records of the application programs with the permission to read notifications.
可以理解的是,当同时满足以下三个条件:启动应用程序的包名与第一预设白名单列表中预设的应用程序信息不匹配;组件名称与第二预设白名单列表中预设的组件信息不匹配;自启动状态为关闭状态时,执行步骤307。It can be understood that when the following three conditions are met at the same time: the package name of the startup application does not match the preset application information in the first preset whitelist list; the component name does not match the preset application information in the second preset whitelist list The component information does not match; when the self-starting state is closed, go to step 307.
当满足以下三个条件:启动应用程序的包名与第一预设白名单列表中预设的应用程序信息匹配;组件名称与第二预设白名单列表中预设的组件信息匹配;自启动状态为开启状态,中的任意一个或多个时,则执行步骤308。When the following three conditions are met: the package name of the startup application matches the preset application information in the first preset whitelist list; the component name matches the preset component information in the second preset whitelist list; self-starting When the status is any one or more of the on status, step 308 is performed.
步骤307、禁止通过读取通知权限方式启动待启动应用程序。Step 307, forbidding to start the application program to be started by means of reading the notification permission.
步骤308、允许通过读取通知权限方式启动待启动应用程序。Step 308, allowing the application program to be started to be started by means of reading the notification permission.
本申请实施例中提供的应用程序的控制方案,在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序,并根据待启动应用程序的关联信息确定是否启动待启动应用程序。通过采用上述技术方案,可以有效的管控以读取通知权限的方式自启动应用程序的操作,减少应用程序通过读取通知权限的方式自启动的情况,进而,减少应用程序通过读取通知权限的方式实现自己的进程常驻的情况发生,从而,减少使用终端资源的应用,提高处理速度,同时降低了终端功耗,提高终端的续航时间。The application program control scheme provided in the embodiment of the present application, when the event of starting the application by reading the notification permission method is triggered, obtain the application program to be started with the permission to read the notification, and determine according to the associated information of the application program to be started Whether to start the pending application. By adopting the above technical solution, it is possible to effectively control the operation of self-starting the application program by reading the notification permission, reduce the situation that the application program starts automatically by reading the notification permission, and then reduce the application program by reading the notification permission. In this way, the situation that its own process is resident occurs, thereby reducing applications that use terminal resources, improving processing speed, reducing terminal power consumption, and improving terminal battery life.
图4为本申请实施例提供的应用程序的控制方法的流程示意图。如图4所示,该方法包括:FIG. 4 is a schematic flowchart of an application program control method provided by an embodiment of the present application. As shown in Figure 4, the method includes:
步骤401、在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序。Step 401 , when an event of starting an application by means of reading notification permission is triggered, obtain an application to be started with the permission to read notification.
步骤402、获取待启动应用程序的自启动方式。Step 402, acquire the self-starting mode of the application program to be started.
其中,自启动方式可以包括多用户切换自启动、开机自启动、应用查杀自启动和用户主动打开应用程序的读取通知权限时自启动。Among them, the self-starting mode may include multi-user switching self-starting, booting up self-starting, application scanning and killing self-starting, and self-starting when the user actively opens the read notification permission of the application program.
待启动应用程序的自启动方式在同一时刻只能为其中的一种。The self-starting mode of the application to be started can only be one of them at the same time.
步骤403、当待启动应用程序的自启动方式为多用户切换自启动或开机自启动时,禁止通过监听通知权限方式启动待启动应用程序。Step 403 , when the self-starting mode of the application program to be started is multi-user switching self-starting or booting-up self-starting, it is prohibited to start the application program to be started by monitoring notification authority.
步骤404、当待启动应用程序的自启动方式为应用查杀自启动或用户主动打开应用程序的读取通知权限时自启动时,通过管理通知的系统服务中的设定函数获取待启动应用程序的包名及组件名称。Step 404, when the self-starting mode of the application to be started is self-starting by killing the application or automatically starting when the user actively opens the read notification permission of the application, obtain the application to be started through the setting function in the system service of managing notifications The package name and component name of .
步骤405、根据待启动应用程序的包名或组件名称查询预设的自启动状态表,确定待启动应用程序的自启动状态。Step 405, query the preset self-starting state table according to the package name or component name of the application to be started, and determine the self-starting state of the application to be started.
步骤406、判断待启动应用程序是否为系统内置的应用程序,若是,则执行步骤413,否则执行步骤407。Step 406 , judging whether the application to be started is a built-in application in the system, if yes, execute step 413 , otherwise execute step 407 .
步骤407、判断待启动应用程序的包名与第一预设白名单列表中预设的应用程序信息是否匹配,若是,则执行步骤413,否则执行步骤408。Step 407 , judging whether the package name of the application to be started matches the preset application information in the first preset white list, if yes, execute step 413 , otherwise execute step 408 .
步骤408、判断待启动应用程序的组件名称与第二预设白名单列表中预设的组件信息是否匹配,若是,则执行步骤413,否则执行步骤409。Step 408 , judging whether the component name of the application to be started matches the preset component information in the second preset white list, if yes, execute step 413 , otherwise execute step 409 .
步骤409、判断待启动应用程序的自启动状态是否为开启状态,若是,则执行步骤413,否则执行步骤410。Step 409 , judging whether the self-starting state of the application to be started is enabled, if yes, execute step 413 , otherwise execute step 410 .
需要说明的是,上述步骤406至409的顺序并不是固定的,可以互换。It should be noted that the order of the above steps 406 to 409 is not fixed and can be interchanged.
步骤410、禁止通过读取通知权限方式启动待启动应用程序。Step 410, forbidding to start the application program to be started by means of reading the notification permission.
步骤411、保存所述待启动应用程序的包名,根据包名生成拦截启动记录。Step 411: Save the package name of the application to be started, and generate an interception start record according to the package name.
步骤412、将拦截启动记录提供给用户。Step 412, providing the interception start record to the user.
步骤413、允许通过读取通知权限方式启动待启动应用程序。Step 413, allowing the application program to be started to be started by means of reading the notification permission.
本申请实施例的技术方案,在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序,并根据待启动应用程序的关联信息确定是否启动待启动应用程序,可以有效的管控以读取通知权限的方式自启动应用程序的操作。另外,若禁止通过读取通知权限的方式启动待启动应用程序,则保存待启动应用程序的包名,根据包名生成拦截启动记录,向用户展示所述拦截启动记录,可以向用户展示所有因自启动被拦截的启动记录,优化人机交互设计。In the technical solution of the embodiment of the present application, when the event of starting the application by means of reading the notification permission is triggered, the application to be started with the permission to read the notification is obtained, and it is determined whether to start the application to be started according to the associated information of the application to be started The program can effectively control the operation of self-starting applications in the way of reading notification permissions. In addition, if it is forbidden to start the application to be started by reading the notification permission, save the package name of the application to be started, generate an interception start record according to the package name, and display the interception start record to the user. Since the startup is intercepted, the startup record is optimized to optimize the design of human-computer interaction.
图5为本申请实施例提供的一种应用程序的控制装置的结构示意图,该装置可由软件和/或硬件实现,一般集成在终端上,可通过执行应用程序的控制方法在通过读取通知权限方式启动应用的事件被触发时,根据待启动应用程序的关联信息确定是否启动所述待启动应用程序。如图5所示,该装置包括:Fig. 5 is a schematic structural diagram of an application program control device provided by an embodiment of the present application. The device can be implemented by software and/or hardware, and is generally integrated on a terminal. When an event of starting an application is triggered, it is determined whether to start the application to be started according to the associated information of the application to be started. As shown in Figure 5, the device includes:
待启动应用程序获取模块501,用于在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序;The application program acquisition module 501 to be started is used to obtain the application program to be started with the permission to read the notification when the event of starting the application by reading the notification permission method is triggered;
关联信息获取模块502,用于获取所述待启动应用程序的关联信息;An associated information acquiring module 502, configured to acquire associated information of the application to be started;
待启动应用程序控制模块503,用于根据所述关联信息确定是否启动所述待启动应用程序。A to-be-started application control module 503, configured to determine whether to start the to-be-started application according to the associated information.
本申请实施例中提供的应用程序的控制装置,在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序,并根据待启动应用程序的关联信息确定是否启动待启动应用程序,可以有效的管控以读取通知权限的方式自启动应用程序的操作,减少流氓应用程序通过读取通知权限的方式实现自己的进程常驻的情况发生,从而,减少使用终端资源的应用,提高处理速度,同时降低了终端功耗,提高终端的续航时间。The application control device provided in the embodiment of the present application, when the event of starting the application by reading the notification authority is triggered, obtains the application to be started with the read notification authority, and determines according to the associated information of the application to be started Whether to start the application to be started can effectively control the operation of self-starting the application by reading the notification permission, reducing the occurrence of rogue applications realizing their own process resident by reading the notification permission, thereby reducing the use of The application of terminal resources improves the processing speed, reduces the power consumption of the terminal, and improves the battery life of the terminal.
可选的,所述关联信息包括所述待启动应用程序的自启动方式,其中,所述自启动方式包括多用户切换自启动、开机自启动、应用查杀自启动和用户主动打开应用程序的读取通知权限时自启动;Optionally, the associated information includes the self-starting mode of the application to be started, wherein the self-starting mode includes multi-user switching self-starting, power-on self-starting, application killing self-starting, and the user actively opening the application Automatically start when the notification permission is read;
所述待启动应用程序控制模块,用于:The application control module to be started is used for:
当所述待启动应用程序的自启动方式为多用户切换自启动或开机自启动时,禁止通过监听通知权限方式启动所述待启动应用程序。When the self-starting mode of the to-be-started application program is multi-user switching self-starting or power-on self-starting, it is forbidden to start the to-be-started application program by monitoring notification authority.
可选的,所述关联信息还包括待启动应用程序的包名、组件名称和自启动状态;Optionally, the associated information also includes the package name, component name and self-starting state of the application to be started;
通过管理通知的系统服务中的设定函数获取所述待启动应用程序的包名及组件名称;Obtain the package name and component name of the application to be started through the setting function in the system service of the management notification;
根据所述待启动应用程序的包名或组件名称查询预设的自启动状态表,确定所述待启动应用程序的自启动状态。Querying a preset self-starting state table according to the package name or component name of the application to be started to determine the self-starting state of the application to be started.
可选的,所述待启动应用程序控制模块,用于:Optionally, the application control module to be started is used for:
当所述待启动应用程序的自启动方式为应用查杀自启动或用户主动打开应用程序的读取通知权限时自启动时,判断所述关联信息是否满足预设条件;When the self-starting mode of the application to be started is self-starting by killing the application or self-starting when the user actively opens the read notification permission of the application, it is judged whether the associated information satisfies the preset condition;
当所述关联信息满足所述预设条件时,禁止通过读取通知权限方式启动所述待启动应用程序;When the associated information satisfies the preset condition, it is forbidden to start the application program to be started by reading the notification permission;
其中,所述预设条件包括:所述待启动应用程序的包名与第一预设白名单列表中预设的应用程序信息不匹配,所述组件名称与第二预设白名单列表中预设的组件信息不匹配,并且,所述自启动状态为关闭状态,其中,按照设定周期通过具有读取通知权限的应用程序的历史使用记录,生成所述第一预设白名单列表及第二预设白名单列表。Wherein, the preset conditions include: the package name of the application to be started does not match the preset application information in the first preset whitelist, and the component name does not match the preset information in the second preset whitelist. The set component information does not match, and the self-starting state is an off state, wherein the first preset whitelist list and the second preset whitelist list are generated according to the set period through the historical usage records of the application programs with the permission to read notifications. Two preset whitelists.
可选的,所述待启动应用程序控制模块,用于:Optionally, the application control module to be started is used for:
当所述待启动应用程序的包名与所述第一预设白名单列表中预设的应用程序信息匹配时,或者,当所述组件名称与所述第二预设白名单列表中预设的组件信息匹配时,或者,当所述自启动状态为开启状态时,允许通过读取通知权限方式启动所述待启动应用程序。When the package name of the application to be started matches the preset application information in the first preset whitelist, or, when the component name matches the preset in the second preset whitelist When the component information matches, or when the self-starting state is enabled, it is allowed to start the application program to be started by reading the notification permission.
可选的,所述待启动应用程序控制模块,用于:Optionally, the application control module to be started is used for:
判断所述待启动应用程序是否为系统内置的应用程序;Judging whether the application program to be started is a system built-in application program;
在所述待启动应用程序为系统内置的应用程序时,允许通过读取通知权限方式启动所述待启动应用程序。When the application program to be started is a built-in application program in the system, it is allowed to start the application program to be started by reading notification permissions.
可选的,还包括:Optionally, also include:
拦截启动记录生成模块,用于在禁止通过读取通知权限方式启动所述待启动应用程序时,保存所述待启动应用程序的包名,根据所述包名生成拦截启动记录;An interception startup record generation module, used to save the package name of the application to be started when it is forbidden to start the application to be started by reading the notification permission mode, and generate an interception startup record according to the package name;
拦截启动记录提供模块,用于将所述拦截启动记录提供给用户。The interception startup record providing module is configured to provide the interception startup record to the user.
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于应用程序的控制方法,该方法包括:The embodiment of the present application also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used for a control method of an application program when executed by a computer processor, and the method includes:
在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序;When the event of starting the application by reading the notification permission is triggered, obtain the application to be started with the permission to read the notification;
获取所述待启动应用程序的关联信息;Acquiring associated information of the application to be started;
根据所述关联信息确定是否启动所述待启动应用程序。Determine whether to start the application program to be started according to the association information.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDRRAM、SRAM、EDORAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape drives; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; Volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Also, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a network. The storage medium may store program instructions (eg embodied as computer programs) executable by one or more processors.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的应用程序的控制操作,还可以执行本申请任意实施例所提供的应用程序的控制方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the control operations of the above-mentioned application programs, and can also execute the application programs provided in any embodiment of the application Related operations in the control method.
本申请实施例提供了一种终端,该终端内具有操作系统,也可以称为智能终端,该智能终端中可集成本申请实施例提供的以广播方式启动应用的控制装置。其中,智能终端包括智能手机、平板电脑、掌上游戏机、笔记本电脑及智能穿戴设备(包括智能手表、智能眼镜或智能手环)等。图6为本申请实施例提供的一种终端的结构框图。如图6所示,终端600可以包括:存储器601,处理器602及存储在存储器上并可在处理器运行的计算机程序,所述处理器602执行所述计算机程序时实现如本申请实施例所述的应用程序的控制方法。An embodiment of the present application provides a terminal with an operating system inside, which may also be called a smart terminal, and the smart terminal may integrate the control device for starting an application in a broadcast mode provided in the embodiment of the present application. Among them, smart terminals include smart phones, tablet computers, handheld game consoles, notebook computers and smart wearable devices (including smart watches, smart glasses or smart bracelets), etc. FIG. 6 is a structural block diagram of a terminal provided by an embodiment of the present application. As shown in FIG. 6, the terminal 600 may include: a memory 601, a processor 602, and a computer program stored on the memory and executable on the processor. The control method of the application program described above.
本申请实施例提供的终端,在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序,并根据待启动应用程序的关联信息确定是否启动待启动应用程序。通过采用上述技术方案,可以有效的管控以读取通知权限的方式自启动应用程序的操作,减少应用程序通过读取通知权限的方式自启动的情况,进而,减少应用程序通过读取通知权限的方式实现自己的进程常驻的情况发生,从而,减少使用终端资源的应用,提高处理速度,同时降低了终端功耗,提高终端的续航时间。The terminal provided in the embodiment of the present application acquires the application to be started with the permission to read the notification when the event of starting the application by reading the notification permission is triggered, and determines whether to start the application to be started according to the associated information of the application to be started program. By adopting the above technical solution, it is possible to effectively control the operation of self-starting the application program by reading the notification permission, reduce the situation that the application program starts automatically by reading the notification permission, and then reduce the application program by reading the notification permission. In this way, the situation that its own process is resident occurs, thereby reducing applications that use terminal resources, improving processing speed, reducing terminal power consumption, and improving terminal battery life.
图7为本申请实施例提供的又一种移动终端的结构示意图,如图7所示,该移动终端可以包括:壳体(图中未示出)、存储器701、中央处理器(central processing unit,CPU)702(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU702和所述存储器701设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器701,用于存储可执行程序代码;所述CPU702通过读取所述存储器701中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:FIG. 7 is a schematic structural diagram of another mobile terminal provided by the embodiment of the present application. As shown in FIG. 7, the mobile terminal may include: a housing (not shown in the figure), a memory 701, a central processing unit (central processing unit , CPU) 702 (also known as processor, hereinafter referred to as CPU), a circuit board (not shown in the figure) and a power circuit (not shown in the figure). The circuit board is placed inside the space enclosed by the housing; the CPU702 and the memory 701 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the mobile terminal The memory 701 is used to store executable program codes; the CPU702 executes a computer program corresponding to the executable program codes by reading the executable program codes stored in the memory 701, to achieve the following steps:
在通过读取通知权限方式启动应用的事件被触发时,获取具有读取通知权限的待启动应用程序;When the event of starting the application by reading the notification permission is triggered, obtain the application to be started with the permission to read the notification;
获取所述待启动应用程序的关联信息;Acquiring associated information of the application to be started;
根据所述关联信息确定是否启动所述待启动应用程序。Determine whether to start the application program to be started according to the association information.
所述移动终端还包括:外设接口703、RF(Radio Frequency,射频)电路705、音频电路706、扬声器711、电源管理芯片708、输入/输出(I/O)子系统709、其他输入/控制设备710、触摸屏712、其他输入/控制设备710以及外部端口704,这些部件通过一个或多个通信总线或信号线707来通信。The mobile terminal also includes: peripheral interface 703, RF (Radio Frequency, radio frequency) circuit 705, audio circuit 706, speaker 711, power management chip 708, input/output (I/O) subsystem 709, other input/control device 710 , touch screen 712 , other input/control devices 710 , and external ports 704 , these components communicate via one or more communication buses or signal lines 707 .
应该理解的是,图示移动终端700仅仅是移动终端的一个范例,并且移动终端700可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 700 is only an example of a mobile terminal, and the mobile terminal 700 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于应用程序的控制的移动终端进行详细的描述,该移动终端以手机为例。The following describes in detail the mobile terminal used for controlling the application program provided by this embodiment, and the mobile terminal takes a mobile phone as an example.
存储器701,所述存储器701可以被CPU702、外设接口703等访问,所述存储器701可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 701, the memory 701 can be accessed by the CPU 702, the peripheral interface 703, etc., the memory 701 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.
外设接口703,所述外设接口703可以将设备的输入和输出外设连接到CPU702和存储器701。Peripheral interface 703 , which can connect the input and output peripherals of the device to CPU 702 and memory 701 .
I/O子系统709,所述I/O子系统709可以将设备上的输入输出外设,例如触摸屏712和其他输入/控制设备710,连接到外设接口703。I/O子系统709可以包括显示控制器7091和用于控制其他输入/控制设备710的一个或多个输入控制器7092。其中,一个或多个输入控制器7092从其他输入/控制设备710接收电信号或者向其他输入/控制设备710发送电信号,其他输入/控制设备710可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器7092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 709 , the I/O subsystem 709 can connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710 , to the peripheral interface 703 . I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710 . Among them, one or more input controllers 7092 receive electrical signals from or send electrical signals to other input/control devices 710, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏712,所述触摸屏712是用户移动终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 712, the touch screen 712 is an input interface and an output interface between the user's mobile terminal and the user, and displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.
I/O子系统709中的显示控制器7091从触摸屏712接收电信号或者向触摸屏712发送电信号。触摸屏712检测触摸屏上的接触,显示控制器7091将检测到的接触转换为与显示在触摸屏712上的用户界面对象的交互,即实现人机交互,显示在触摸屏712上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or sends electrical signals to the touch screen 712 . The touch screen 712 detects the contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 712, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 712 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touch screen.
RF电路705,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路705接收并发送RF信号,RF信号也称为电磁信号,RF电路705将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路705可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 705 receives and sends RF signals, which are also called electromagnetic signals, and the RF circuit 705 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, Codec) Chipset, Subscriber Identity Module (Subscriber Identity Module, SIM) and so on.
音频电路706,主要用于从外设接口703接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器711。The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703 , convert the audio data into electrical signals, and send the electrical signals to the speaker 711 .
扬声器711,用于将手机通过RF电路705从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 711 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 705 into sound and play the sound to the user.
电源管理芯片708,用于为CPU702、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 708 is used for power supply and power management for the hardware connected to the CPU 702 , the I/O subsystem and the peripheral interface.
上述实施例中提供的应用程序的控制装置、存储介质及移动终端可执行本申请实施例所提供的对应的应用程序的控制方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的应用程序的控制方法。The application program control device, storage medium, and mobile terminal provided in the above embodiments can execute the corresponding application program control method provided in the embodiments of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the foregoing embodiments, reference may be made to the application program control method provided in any embodiment of the present application.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments and technical principles used in this application. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711168382.9ACN107862203A (en) | 2017-11-21 | 2017-11-21 | Control method, device, storage medium and the terminal of application program |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711168382.9ACN107862203A (en) | 2017-11-21 | 2017-11-21 | Control method, device, storage medium and the terminal of application program |
| Publication Number | Publication Date |
|---|---|
| CN107862203Atrue CN107862203A (en) | 2018-03-30 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711168382.9APendingCN107862203A (en) | 2017-11-21 | 2017-11-21 | Control method, device, storage medium and the terminal of application program |
| Country | Link |
|---|---|
| CN (1) | CN107862203A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108549798A (en)* | 2018-04-12 | 2018-09-18 | 珠海市魅族科技有限公司 | Terminal equipment control method and device, terminal device and computer readable storage medium |
| CN110087290A (en)* | 2019-04-23 | 2019-08-02 | 努比亚技术有限公司 | Power consumption management-control method, terminal and computer readable storage medium |
| CN111797423A (en)* | 2019-04-09 | 2020-10-20 | Oppo广东移动通信有限公司 | Model training method, data authorization method, device, storage medium and equipment |
| CN113805955A (en)* | 2020-06-12 | 2021-12-17 | 北京小米移动软件有限公司 | Application program starting method and device |
| CN114398102A (en)* | 2022-01-18 | 2022-04-26 | 杭州米络星科技(集团)有限公司 | Application package generation method and device, compiling server and computer readable storage medium |
| CN115344860A (en)* | 2022-07-28 | 2022-11-15 | 荣耀终端有限公司 | Method for managing application program and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106022099A (en)* | 2016-05-16 | 2016-10-12 | 上海传英信息技术有限公司 | Application self-starting management apparatus and method |
| CN106874088A (en)* | 2017-01-25 | 2017-06-20 | 北京奇虎科技有限公司 | A kind of processing method of application program self-starting, device and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106022099A (en)* | 2016-05-16 | 2016-10-12 | 上海传英信息技术有限公司 | Application self-starting management apparatus and method |
| CN106874088A (en)* | 2017-01-25 | 2017-06-20 | 北京奇虎科技有限公司 | A kind of processing method of application program self-starting, device and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108549798A (en)* | 2018-04-12 | 2018-09-18 | 珠海市魅族科技有限公司 | Terminal equipment control method and device, terminal device and computer readable storage medium |
| CN108549798B (en)* | 2018-04-12 | 2023-11-07 | 珠海市魅族科技有限公司 | Terminal equipment control method and device, terminal equipment and computer readable storage medium |
| CN111797423A (en)* | 2019-04-09 | 2020-10-20 | Oppo广东移动通信有限公司 | Model training method, data authorization method, device, storage medium and equipment |
| CN110087290A (en)* | 2019-04-23 | 2019-08-02 | 努比亚技术有限公司 | Power consumption management-control method, terminal and computer readable storage medium |
| CN110087290B (en)* | 2019-04-23 | 2023-08-11 | 努比亚技术有限公司 | Power consumption management and control method, terminal and computer readable storage medium |
| CN113805955A (en)* | 2020-06-12 | 2021-12-17 | 北京小米移动软件有限公司 | Application program starting method and device |
| CN114398102A (en)* | 2022-01-18 | 2022-04-26 | 杭州米络星科技(集团)有限公司 | Application package generation method and device, compiling server and computer readable storage medium |
| CN114398102B (en)* | 2022-01-18 | 2023-08-08 | 杭州米络星科技(集团)有限公司 | Application package generation method and device, compiling server and computer readable storage medium |
| CN115344860A (en)* | 2022-07-28 | 2022-11-15 | 荣耀终端有限公司 | Method for managing application program and electronic equipment |
| CN115344860B (en)* | 2022-07-28 | 2023-10-10 | 荣耀终端有限公司 | Method for managing application program and electronic equipment |
| Publication | Publication Date | Title |
|---|---|---|
| CN107944257A (en) | Control method and device for starting application in service mode, storage medium and terminal | |
| CN107862203A (en) | Control method, device, storage medium and the terminal of application program | |
| CN107944277B (en) | Application starting control method and device, storage medium and intelligent terminal | |
| CN107944258A (en) | Control method and device for starting application in service mode, storage medium and terminal | |
| CN107861773A (en) | Management and control method, device, storage medium and mobile terminal for association activation | |
| CN107748698A (en) | Control method, device, storage medium and terminal for starting application in broadcast mode | |
| CN107844342B (en) | Application program keep alive management and control method, device and storage medium and mobile terminal | |
| CN107748685B (en) | Application program starting control method and device, terminal equipment and storage medium | |
| CN106332307A (en) | Method and mobile terminal for application program to access network | |
| CN107943650A (en) | Control method, device, storage medium and the terminal of application program | |
| CN107797841A (en) | Window control method, apparatus, terminal device and storage medium | |
| CN107026933B (en) | Multi-open application message management method and device and intelligent terminal | |
| CN107861759A (en) | Window control method and device, terminal equipment and storage medium | |
| CN108958828A (en) | Application program preloads method, apparatus, storage medium and terminal | |
| CN107957905A (en) | Method and device for limiting self-starting of application, storage medium and intelligent terminal | |
| CN107831886B (en) | Control method and device for associated starting application, storage medium and intelligent terminal | |
| CN107844341B (en) | Process starting control method and device, storage medium and mobile terminal | |
| CN107027150A (en) | WiFi control method, device and terminal equipment | |
| CN107957913A (en) | Management and control method and device for associated startup, storage medium and mobile terminal | |
| CN107678780A (en) | A kind of EMS memory management process, device, storage medium and terminal device | |
| CN108536488A (en) | Using starting guide method, apparatus, storage medium and terminal device | |
| CN107885588A (en) | Control method, device and the storage medium and mobile terminal of application service | |
| CN107748684A (en) | Realize processing method, device, storage medium and the mobile terminal of self-starting | |
| CN107943270A (en) | Control method, device and the storage medium and mobile terminal of application service | |
| CN106056001A (en) | Private data protection method and apparatus based on mobile terminal and mobile terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20180330 |