CN116700832A - Application management method, device, terminal and storage medium - Google Patents
Application management method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN116700832A CN116700832A CN202310830418.4A CN202310830418A CN116700832A CN 116700832 A CN116700832 A CN 116700832A CN 202310830418 A CN202310830418 A CN 202310830418A CN 116700832 A CN116700832 A CN 116700832A
- Authority
- CN
- China
- Prior art keywords
- killing
- terminal
- application
- state
- system state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/0464—Convolutional networks [CNN, ConvNet]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请实施例公开了一种应用管理方法、装置、终端及存储介质,属于计算机技术领域,该方法包括:获取所述第一终端的终端运行状态和用户兴趣信息,所述终端运行状态包括所述终端的系统状态和所述终端中应用程序的应用状态,所述用户兴趣信息用于指示所述应用程序的用户使用习惯;将所述终端运行状态和所述用户兴趣信息输入查杀预测模型,得到所述至少一个应用程序分别对应的第一查杀概率;根据所述至少一个应用程序分别对应的所述第一查杀概率,对所述至少一个应用程序进行后台查杀管理。该方法可以根据用户习惯、应用状态、系统状态来自动查杀后台应用,提高应用查杀效率。
The embodiment of the present application discloses an application management method, device, terminal, and storage medium, which belong to the field of computer technology. The method includes: acquiring the terminal operating status and user interest information of the first terminal, and the terminal operating status includes all The system state of the terminal and the application state of the application program in the terminal, the user interest information is used to indicate the user usage habits of the application program; input the terminal operation state and the user interest information into the antivirus prediction model , obtaining the first killing probability respectively corresponding to the at least one application program; performing background killing management on the at least one application program according to the first killing probability respectively corresponding to the at least one application program. The method can automatically check and kill background applications according to user habits, application status, and system status, thereby improving the efficiency of checking and killing applications.
Description
技术领域technical field
本申请实施例涉及计算机技术领域,特别涉及一种应用管理方法、装置、终端及存储介质。The embodiments of the present application relate to the field of computer technology, and in particular to an application management method, device, terminal and storage medium.
背景技术Background technique
终端在使用过程中存在系统反应速度慢、耗电快、续航短等问题,这些问题与应用后台管理机制密切相关。During the use of the terminal, there are problems such as slow system response, fast power consumption, and short battery life. These problems are closely related to the application background management mechanism.
相关技术中,用户打开多个后台应用会导致终端内存占用率变大。此时,用户可以进入后台管理页面,关闭暂时不使用的后台应用,从而降低内存占用率。In the related art, opening multiple background applications by the user will lead to an increase in memory usage of the terminal. At this time, the user can enter the background management page and close the background applications that are not in use temporarily, thereby reducing the memory usage rate.
相关技术中的方法,用户需要经常进入后台管理页面,手动关闭不使用的后台应用,后台管理效率低且操作复杂。In the method in the related art, the user needs to frequently enter the background management page and manually close unused background applications, and the background management efficiency is low and the operation is complicated.
发明内容Contents of the invention
本申请实施例提供了一种应用管理方法、装置、终端及存储介质。所述技术方案如下:Embodiments of the present application provide an application management method, device, terminal, and storage medium. Described technical scheme is as follows:
根据本申请的一方面内容,提供了一种应用管理方法,所述方法应用于第一终端中,所述方法包括:According to one aspect of the present application, an application management method is provided, the method is applied in a first terminal, and the method includes:
获取所述第一终端的终端运行状态和用户兴趣信息,所述终端运行状态包括所述终端的系统状态和所述终端中应用程序的应用状态,所述用户兴趣信息用于指示所述应用程序的用户使用习惯;Acquiring the terminal running state and user interest information of the first terminal, the terminal running state includes the system state of the terminal and the application state of the application program in the terminal, and the user interest information is used to indicate that the application program user habits;
将所述终端运行状态和所述用户兴趣信息输入查杀预测模型,得到所述至少一个应用程序分别对应的第一查杀概率;Inputting the terminal operation status and the user interest information into the antivirus prediction model to obtain the first antivirus probabilities respectively corresponding to the at least one application program;
根据所述至少一个应用程序分别对应的所述第一查杀概率,对所述至少一个应用程序进行后台查杀管理。Perform background checking and killing management on the at least one application program according to the first checking and killing probability respectively corresponding to the at least one application program.
根据本申请的另一方面内容,提供了一种应用管理装置,所述装置用于实现第一终端,所述装置包括:According to another aspect of the present application, an application management device is provided, the device is used to implement a first terminal, and the device includes:
获取模块,用于获取所述第一终端的终端运行状态和用户兴趣信息,所述终端运行状态包括所述终端的系统状态和所述终端中应用程序的应用状态,所述用户兴趣信息用于指示所述应用程序的用户使用习惯;An acquisition module, configured to acquire the terminal running state and user interest information of the first terminal, the terminal running state including the system state of the terminal and the application state of the application program in the terminal, and the user interest information is used for Indicates the usage habits of users of said application;
预测模块,用于将所述终端运行状态和所述用户兴趣信息输入查杀预测模型,得到所述至少一个应用程序分别对应的第一查杀概率;A predicting module, configured to input the terminal operating status and the user interest information into a killing prediction model to obtain first killing probabilities respectively corresponding to the at least one application;
管理模块,用于根据所述至少一个应用程序分别对应的所述第一查杀概率,对所述至少一个应用程序进行后台查杀管理。The management module is configured to perform background checking and killing management on the at least one application program according to the first checking and killing probability respectively corresponding to the at least one application program.
根据本申请的另一方面内容,提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如本申请实施提供的应用管理方法。According to another aspect of the present application, a terminal is provided, the terminal includes a processor and a memory, at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the Implement the provided application management methods.
根据本申请的另一方面内容,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如本申请实施提供的应用管理方法。According to another aspect of the present application, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the application management method provided by the implementation of the present application .
本申请实施例提供的技术方案带来的有益效果可以包括:The beneficial effects brought by the technical solutions provided by the embodiments of the present application may include:
终端根据当前的运行状态和用户兴趣信息来预测用户不需要使用的应用程序,进而对这部分应用程序进行查杀管理。终端可以使用神经网络模型(查杀预测模型),自动进行应用查杀,且查杀预测结果可以贴合用户使用习惯,保证后台查杀高效准确地进行。The terminal predicts the application programs that the user does not need to use according to the current operating status and user interest information, and then performs scanning and killing management on these application programs. The terminal can use the neural network model (antivirus prediction model) to automatically perform application antivirus, and the antivirus prediction results can fit the user's usage habits, ensuring efficient and accurate background antivirus.
附图说明Description of drawings
为了更清楚地介绍本申请实施例中的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly introduce the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments of the present application will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present application , for those skilled in the art, other drawings can also be obtained based on these drawings without creative work.
图1是本申请一个示例性实施例提供的计算机系统的结构框图;Fig. 1 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;
图2是本申请一个示例性实施例提供的一种应用管理方法的流程图;Fig. 2 is a flowchart of an application management method provided by an exemplary embodiment of the present application;
图3是本申请另一个示例性实施例提供的另一种应用管理方法的流程图;Fig. 3 is a flowchart of another application management method provided by another exemplary embodiment of the present application;
图4是本申请一个示例性实施例提供的应用管理装置的结构框图;Fig. 4 is a structural block diagram of an application management device provided by an exemplary embodiment of the present application;
图5是本申请一个示例性实施例提供的终端的结构框图。Fig. 5 is a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
在本申请的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联的对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联的对象是一种“或”的关系。In the description of the present application, it should be understood that the terms "first", "second" and so on are used for descriptive purposes only, and should not be understood as indicating or implying relative importance. In the description of this application, it should be noted that, unless otherwise clearly stipulated and limited, the terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral Ground connection; it can be mechanical connection or electrical connection; it can be direct connection or indirect connection through an intermediary. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application in specific situations. In addition, in the description of the present application, unless otherwise specified, "plurality" means two or more. "And/or" describes the association relationship of the associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the objects associated before and after are in an "or" relationship.
图1示出了本申请一个示例性实施例提供的计算机系统的示意图,该计算机系统包括终端和服务器。Fig. 1 shows a schematic diagram of a computer system provided by an exemplary embodiment of the present application, where the computer system includes a terminal and a server.
示例性地,本申请实施例所示的应用管理方法,可以应用在终端中,该终端120具备显示屏且具备应用管理功能。终端可以包括手机、平板电脑、笔记本电脑、膝上型电脑、台式电脑、电脑一体机、智能机器人工作站、电视、机顶盒、智能眼镜、智能手表、数码相机、MP4播放终端、MP5播放终端、学习机、点读机、电纸书、电子词典、车载终端、虚拟现实(英文:Virtual Reality,缩写:VR)播放终端或增强现实(英文:Augmented Reality,缩写:AR)播放终端等。Exemplarily, the application management method shown in the embodiment of the present application can be applied in a terminal, and the terminal 120 has a display screen and an application management function. Terminals can include mobile phones, tablet computers, laptops, laptops, desktop computers, all-in-one computers, intelligent robot workstations, TVs, set-top boxes, smart glasses, smart watches, digital cameras, MP4 playback terminals, MP5 playback terminals, learning machines , point reader, electronic paper book, electronic dictionary, vehicle-mounted terminal, virtual reality (English: Virtual Reality, abbreviation: VR) playback terminal or augmented reality (English: Augmented Reality, abbreviation: AR) playback terminal, etc.
在一种可选的实现方式中,本申请提供的应用管理方法可以应用于终端的操作系统中。In an optional implementation manner, the application management method provided in this application may be applied to an operating system of a terminal.
示例性的,终端120上存储有应用管理算法102,当客户端需要使用社交应用管理功能时,客户端可以调用应用管理算法完成应用管理。Exemplarily, the application management algorithm 102 is stored on the terminal 120, and when the client needs to use the social application management function, the client can call the application management algorithm to complete the application management.
终端120包括第一存储器和第一处理器。第一存储器中存储有应用管理算法;上述应用管理算法被第一处理器调用执行以实现本申请提供的应用管理方法。第一存储器可以包括但不限于以下几种:随机存取存储器(Random Access Memory,RAM)、只读存储器(ReadOnly Memory,ROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM)、以及电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)。Terminal 120 includes a first memory and a first processor. An application management algorithm is stored in the first memory; the above application management algorithm is invoked and executed by the first processor to implement the application management method provided in this application. The first memory may include but not limited to the following: random access memory (Random Access Memory, RAM), read-only memory (ReadOnly Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), programmable Erasable Programmable Read-Only Memory (EPROM), and Electric Erasable Programmable Read-Only Memory (EEPROM).
第一处理器可以是一个或者多个集成电路芯片组成。可选地,第一处理器可以是通用处理器,比如,中央处理器(Central Processing Unit,CPU)或者网络处理器(NetworkProcessor,NP)。可选地,第一处理器可以通过运行程序或代码来实现本申请提供的应用管理方法。The first processor may be composed of one or more integrated circuit chips. Optionally, the first processor may be a general processor, such as a central processing unit (Central Processing Unit, CPU) or a network processor (Network Processor, NP). Optionally, the first processor may implement the application management method provided in this application by running a program or code.
终端120与服务器140之间通过有线或者无线网络相互连接。The terminal 120 and the server 140 are connected to each other through a wired or wireless network.
服务器140用于为终端120的操作系统提供后台服务。例如,服务器140可以是上述应用程序的后台服务器140。服务器140可以是一台服务器140,也可以是由多台服务器140组成的服务器140集群,或者是一个云计算服务中心。The server 140 is used to provide background services for the operating system of the terminal 120 . For example, the server 140 may be the background server 140 of the above-mentioned application program. The server 140 may be one server 140, or a server 140 cluster composed of multiple servers 140, or a cloud computing service center.
示意性的,服务器140包括处理器和存储器,存储器又包括接入模块和信息流推送模块。服务器140用于为操作系统提供后台服务。可选地,服务器140承担主要计算工作,终端120承担次要计算工作;或者,服务器140承担次要计算工作,终端120承担主要计算工作;或者,服务器140和终端120之间采用分布式计算架构进行协同计算。Schematically, the server 140 includes a processor and a memory, and the memory further includes an access module and an information flow push module. The server 140 is used to provide background services for the operating system. Optionally, the server 140 undertakes the main calculation work, and the terminal 120 undertakes the secondary calculation work; or, the server 140 undertakes the secondary calculation work, and the terminal 120 undertakes the main calculation work; or, a distributed computing architecture is adopted between the server 140 and the terminal 120 Perform collaborative computing.
服务器140包括第二存储器和第二处理器。第二存储器中存储有应用管理算法;上述应用管理算法被第二处理器调用来实现本申请提供的应用管理方法。可选地,第二存储器可以包括但不限于以下几种:RAM、ROM、PROM、EPROM、EEPROM。可选地,第二处理器可以是通用处理器,比如,CPU或者NP。Server 140 includes a second memory and a second processor. An application management algorithm is stored in the second memory; the above application management algorithm is invoked by the second processor to implement the application management method provided in this application. Optionally, the second memory may include but not limited to the following: RAM, ROM, PROM, EPROM, EEPROM. Optionally, the second processor may be a general processor, such as CPU or NP.
请参考图2,图2是本申请一个示例性实施例提供的应用管理方法的流程图。该应用管理方法可以应用在第一终端中,第一终端可以是上述图1所示的终端。Please refer to FIG. 2 , which is a flowchart of an application management method provided in an exemplary embodiment of the present application. The application management method may be applied to a first terminal, and the first terminal may be the terminal shown in FIG. 1 above.
在图2中,应用管理方法包括:In Figure 2, the application management method includes:
步骤210,获取第一终端的终端运行状态和用户兴趣信息,终端运行状态包括终端的系统状态和终端中应用程序的应用状态,用户兴趣信息用于指示应用程序的用户使用习惯。Step 210, acquire the terminal running state and user interest information of the first terminal, the terminal running state includes the terminal system state and the application state of the application program in the terminal, and the user interest information is used to indicate the user's usage habit of the application program.
可选的,该方法还包括:显示用户兴趣信息获取的授权弹窗,授权探窗用于请求用户授权获取用户兴趣信息。响应于在授权弹窗接收到授权操作,确定用户授权获取用户兴趣信息,然后再执行步骤210。Optionally, the method further includes: displaying an authorization pop-up window for obtaining the user interest information, and the authorization window is used to request the user to authorize the acquisition of the user interest information. In response to receiving an authorization operation in the authorization pop-up window, it is determined that the user authorizes acquisition of user interest information, and then step 210 is performed.
可选的,终端运行状态和用户兴趣信息可以是实时获取的。例如,第一终端周期性地采用本申请实施例提供的方法执行后台查杀管理,则第一终端在每次触发该流程时,实时获取第一终端当前的终端运行状态和用户兴趣信息。Optionally, the terminal operating status and user interest information may be acquired in real time. For example, if the first terminal periodically uses the method provided by the embodiment of the present application to perform background scanning and killing management, the first terminal will obtain the current terminal operating status and user interest information of the first terminal in real time each time the process is triggered.
终端运行状态包括操作系统的系统状态,以及,应用程序的应用状态。其中,应用程序可以是指第一终端上的全部应用程序,或者,应用程序可以包括内存占用排在前n名的应用程序。The terminal running state includes the system state of the operating system and the application state of the application program. Wherein, the application programs may refer to all the application programs on the first terminal, or the application programs may include the top n application programs in terms of memory usage.
可选的,本申请实施例中的应用状态还可以是指进程状态。进程状态包括:前台进程、可见进程、服务进程、后台进程以及空进程的运行状态。Optionally, the application state in this embodiment of the present application may also refer to a process state. Process status includes: foreground process, visible process, service process, background process and running status of empty process.
其中,系统状态包括:处理器(Central Processing Unit,CPU)状态、内存使用状态、前台状态、后台状态、网络状态、应用未响应情况、应用闪退情况、应用启动时长中的至少一种。Wherein, the system status includes: at least one of: processor (Central Processing Unit, CPU) status, memory usage status, foreground status, background status, network status, application unresponsive status, application crash status, and application startup time.
·处理器状态,可以包括以下至少一种信息:处理器的利用率、速度、进程数量、线程数量、句柄数量、正常运行时间。• Processor status, which may include at least one of the following information: processor utilization, speed, number of processes, number of threads, number of handles, uptime.
·内存使用状态,可以包括以下至少一种信息:已用内存、可用内存、已提交内存、已缓存内存、分页缓冲池大小、非分页缓冲池大小。·Memory usage status, which may include at least one of the following information: used memory, available memory, committed memory, cached memory, paged buffer pool size, and non-paged buffer pool size.
·前台状态,包括以下至少一种信息:屏幕状态(息屏或亮屏)、前台应用状态(或称为前台进程状态)。前台应用状态可以包括以下至少一种信息:前台为系统桌面、前台运行的应用程序、该应用程序在前台运行的时长、前台应用程序/前台进程的内存占用情况。·Foreground state, including at least one of the following information: screen state (screen off or on), foreground application state (or called foreground process state). The state of the foreground application may include at least one of the following information: the foreground is the system desktop, the application program running in the foreground, the duration of the application program running in the foreground, and the memory usage of the foreground application program/foreground process.
·后台状态,包括以下至少一种信息:后台应用程序标识、后台应用程序数量、后台进程标识、后台进程数量、后台应用程序在后台的运行时长、后台应用程序的运行总时长、后台应用程序/后台进程的内存占用情况。Background status, including at least one of the following information: background application identification, number of background applications, background process identification, number of background processes, running time of background applications in the background, total running time of background applications, background application/ Memory usage of background processes.
·网络状态,可以包括以下至少一种信息:发送速率、接收速率、延迟、网络类型。·Network status, which may include at least one of the following information: sending rate, receiving rate, delay, network type.
·应用未响应情况,可以包括在过去的预设时长内应用未响应发生的次数。· The application non-response situation may include the number of application non-response occurrences in the past preset time period.
·应用闪退情况,可以包括在过去的预设时长内应用闪退发生的次数。·Application flashback conditions may include the number of application flashback occurrences in the past preset time period.
·应用启动时长,可以包括每个应用程序最近一次启动的启动时长,或者,在过去的预设时长内应用程序启动的平均时长。·Application startup time may include the last startup time of each application, or the average time of application startup in the past preset time period.
应用状态包括至少一个应用程序分别对应的运行状态。一个应用程序的应用状态可以包括以下至少一种信息:应用程序标识、是否正在运行、运行在前台/后台、进程信息、已运行时间、包名、应用启动时长、内存占用情况、是否被设置了后台保护。The application status includes the running status corresponding to at least one application program. The application status of an application may include at least one of the following information: application identification, whether it is running, running in the foreground/background, process information, elapsed running time, package name, application startup time, memory usage, whether it is set background protection.
用户兴趣信息是量化用户使用应用程序的使用习惯得到的信息。例如,用户兴趣信息是基于用户使用每个应用程序的使用时长得到的信息,或者,用户兴趣信息是基于用户手动清理后台的习惯得到的信息,或者,用户兴趣信息是根据用户设置的后台保护应用得到的信息。The user interest information is the information obtained by quantifying the user's usage habits of using the application program. For example, the user interest information is based on the user's usage time of each application, or the user interest information is based on the user's habit of manually cleaning the background, or the user interest information is based on the background protection application set by the user. get the information.
例如,用户兴趣信息可以是根据过去一天内用户使用各个应用程序的使用时长,对这些使用时长进行归一化后得到的信息,用户兴趣信息包括应用标识以及应用标识对应的使用时长归一化结果。For example, the user interest information may be the information obtained by normalizing the usage time of each application program according to the usage time of the user in the past day, and the user interest information includes the application identifier and the normalized result of the usage duration corresponding to the application identifier .
再如,用户兴趣信息可以是根据用户在过去一天内手动清理后台应用的情况得到的。第一终端统计过去一天内被用户手动清理的应用程序,及其清理次数,将清理次数归一化得到清理次数的归一化结果。则用户兴趣信息可以包括应用程序标识以及应用程序标识对应的清理次数归一化结果。For another example, the user interest information may be obtained according to the situation that the user has manually cleaned up background applications in the past day. The first terminal counts the applications manually cleaned up by the user in the past day and the times of cleaning, and normalizes the times of cleaning to obtain a normalized result of the times of cleaning. The user interest information may include the application program identifier and the normalized result of cleaning times corresponding to the application program identifier.
可选的,用户兴趣信息的获取方式包括:获取n个应用程序在预设时段内分别对应的使用时长;对n个使用时长进行归一化处理,得到n个应用程序分别对应的兴趣权重;将n个兴趣权重确定为用户兴趣信息。Optionally, the method for obtaining the user interest information includes: obtaining the use durations corresponding to the n application programs within a preset period of time; performing normalization processing on the n use durations to obtain the interest weights corresponding to the n application programs respectively; Determine n interest weights as user interest information.
例如,n为10,则第一终端获取用户在过去二十四小时内用户使用10个应用程序的时长:1小时、1小时、1小时、1小时、2小时、2小时、2小时、2小时、3小时、3小时。按照平均值归一化算法,先计算总时长为:1+1+1+1+2+2+2+2+3+3=18小时。则将十个时长归一化后得到:1/18、1/18、1/18、1/18、1/9、1/9、1/9、1/9、1/6、1/6。则十个应用程序的兴趣权重分别为::1/18、1/18、1/18、1/18、1/9、1/9、1/9、1/9、1/6、1/6。当然,也可以采用其他归一化算法,例如,采用线性归一化、非线性归一化、标准化归一化等方法,根据各个应用程序的使用时长得出兴趣权重。For example, if n is 10, then the first terminal obtains the duration of the user using 10 applications in the past 24 hours: 1 hour, 1 hour, 1 hour, 1 hour, 2 hours, 2 hours, 2 hours, 2 hours Hours, 3 hours, 3 hours. According to the average value normalization algorithm, first calculate the total duration as: 1+1+1+1+2+2+2+2+3+3=18 hours. After normalizing the ten durations, we get: 1/18, 1/18, 1/18, 1/18, 1/9, 1/9, 1/9, 1/9, 1/6, 1/6 . Then the interest weights of the ten applications are: 1/18, 1/18, 1/18, 1/18, 1/9, 1/9, 1/9, 1/9, 1/6, 1/ 6. Of course, other normalization algorithms may also be used, for example, methods such as linear normalization, nonlinear normalization, and standardized normalization may be used to obtain interest weights according to the usage time of each application program.
可选的,终端运行状态的获取方式包括:获取第一终端的系统状态,系统状态包括:处理器状态、内存使用状态、前台状态、后台状态中的至少一种,前台状态包括:屏幕状态、前台应用状态中的至少一种;获取n个应用程序分别对应的应用状态,应用状态包括:进程信息、已运行时间、包名中的至少一种。Optionally, the method for obtaining the terminal running state includes: obtaining the system state of the first terminal, the system state includes: at least one of processor state, memory usage state, foreground state, and background state, and the foreground state includes: screen state, At least one of the foreground application states; obtain the application states corresponding to the n application programs respectively, and the application states include: at least one of process information, elapsed running time, and package name.
在一种可选的实施例中,如模型的输入数据如表1所示,用户感兴趣权重可以包括应用使用时长的归一化结果。终端运行状态可以包括系统状态和应用状态。系统状态包括:CPU的负载、可用内存、空闲内存、前台状态;应用状态包括:进程标识、已运行时间、应用程序的包名。In an optional embodiment, if the input data of the model is shown in Table 1, the weight of user interest may include a normalized result of application usage time. The terminal running status may include system status and application status. The system state includes: CPU load, available memory, free memory, and foreground state; the application state includes: process ID, running time, and package name of the application.
表1Table 1
步骤220,将终端运行状态和用户兴趣信息输入查杀预测模型,得到至少一个应用程序分别对应的第一查杀概率。Step 220, input terminal operation status and user interest information into the antivirus prediction model to obtain first antivirus probabilities corresponding to at least one application program respectively.
查杀预测模型是一种神经网络模型。查杀预测模型可以采用全连接神经网络、卷积神经网络、循环神经网络(Recurrent Neural Network,RNN)中的至少一种。例如,查杀预测模型包括特征提取层和全连接层,特征提取层用于对输入数据进行特征提取,全连接层用于对特征提取层输出的特征进行预测得到输出数据。特征提取层可以采用卷积层实现。The killing prediction model is a neural network model. The killing prediction model may use at least one of a fully connected neural network, a convolutional neural network, and a recurrent neural network (Recurrent Neural Network, RNN). For example, the killing prediction model includes a feature extraction layer and a fully connected layer. The feature extraction layer is used to extract features from the input data, and the fully connected layer is used to predict the features output by the feature extraction layer to obtain output data. The feature extraction layer can be implemented with a convolutional layer.
可选的,当步骤210输入的应用状态包括n个应用程序的应用状态时,步骤220输出的第一查杀概率包括n个应用程序分别对应的n个第一查杀概率。Optionally, when the application state input in step 210 includes the application states of n application programs, the first killing probability output in step 220 includes n first killing probabilities respectively corresponding to the n application programs.
可选的,将终端运行状态和用户兴趣信息输入查杀预测模型,得到至少一个应用程序分别对应的第一查杀概率以及第一系统状态。第一系统状态是按照第一查杀概率查杀后台应用后预计可以达到的系统状态。第一系统状态可以包括上述系统状态中所介绍的信息。Optionally, the terminal running status and user interest information are input into the antivirus prediction model to obtain the first antivirus probability and the first system state respectively corresponding to at least one application program. The first system state is a system state that is expected to be achieved after killing the background application according to the first killing probability. The first system status may include the information described in the above system status.
在一种可选的实施例中,模型输入数据为(n+1)*M维的数据,(n+1)包括:1组系统状态、n个应用程序对应的n组应用数据。系统状态中包括M个数据,一组应用数据中包括(M-1)个应用状态以及该应用程序对应的用户兴趣信息,n、M为正整数。In an optional embodiment, the model input data is (n+1)*M dimensional data, and (n+1) includes: 1 set of system states and n sets of application data corresponding to n application programs. The system state includes M data, and a set of application data includes (M-1) application states and user interest information corresponding to the application, where n and M are positive integers.
系统状态可以包括以下信息中的M个数据:处理器状态、内存使用状态、前台状态、后台状态、网络状态、应用未响应情况、应用闪退情况、应用启动时长。The system state may include M pieces of data in the following information: processor state, memory usage state, foreground state, background state, network state, application unresponsiveness, application flashback, and application startup time.
应用状态可以包括以下信息中的(M-1)个数据:应用程序标识、是否正在运行、运行在前台/后台、进程信息、已运行时间、包名、应用启动时长、内存占用情况、是否被设置了后台保护。The application status can include (M-1) pieces of data in the following information: application identification, whether it is running, running in the foreground/background, process information, running time, package name, application startup time, memory usage, whether it is Background protection is set.
对应地,模型输出数据包括(n+1)维的数据。(n+1)包括n个应用程序分别对应的查杀概率(第一查杀概率),以及,预计系统状态(第一系统状态)。Correspondingly, the model output data includes (n+1)-dimensional data. (n+1) includes killing probabilities corresponding to the n application programs (the first killing probability), and an expected system state (the first system state).
预计系统状态是查杀预测模型预测出的,按照第一查杀概率查杀后台应用程序后,第一终端的系统状态。预计系统状态可以包括以下信息中的一个数据:处理器状态、内存使用状态、前台状态、后台状态、网络状态、应用未响应情况、应用闪退情况、应用启动时长。The estimated system state is predicted by the antivirus prediction model, and the system state of the first terminal after the background application is detected and killed according to the first antivirus probability. The estimated system status may include one of the following information: processor status, memory usage status, foreground status, background status, network status, application unresponsive status, application crash status, and application startup time.
即,在该实施例中,模型输入数据为(n+1)*M维数据,输出数据为(n+1)维数据。That is, in this embodiment, the model input data is (n+1)*M dimensional data, and the output data is (n+1) dimensional data.
例如,如表2所示,模型输出数据包括每个应用程序对应的被查杀概率,以及系统的可用内存。For example, as shown in Table 2, the output data of the model includes the corresponding killing probability of each application program and the available memory of the system.
表2Table 2
步骤230,根据至少一个应用程序分别对应的第一查杀概率,对至少一个应用程序进行后台查杀管理。Step 230: Perform background checking and killing management on at least one application program according to the first checking and killing probability respectively corresponding to the at least one application program.
可选的,第一终端查杀第一查杀概率高于90%的应用程序的进程。或者,第一终端查杀第一查杀概率高于概率阈值,且未被设置后台保护的应用程序的进程。后台保护是由用户设置的,被设置了后台保护的应用程序不会被查杀后台进程。Optionally, the first terminal checks and kills the processes of the application programs whose first checking and killing probability is higher than 90%. Alternatively, the first terminal checks and kills the processes of the application programs whose first checking and killing probability is higher than the probability threshold and for which background protection is not set. The background protection is set by the user, and the application program with the background protection will not be checked and killed for the background process.
或者,在第一终端的内存占用率高于阈值的情况下,第一终端查杀第一查杀概率高于概率阈值,且未被设置后台保护的应用程序的进程。Alternatively, when the memory usage rate of the first terminal is higher than the threshold, the first terminal checks and kills processes of applications whose first checking probability is higher than the probability threshold and for which no background protection is set.
可选的,第一终端周期性地执行步骤210至步骤230,来进行周期性地后台查杀管理。Optionally, the first terminal periodically executes steps 210 to 230 to perform periodic background checking and killing management.
综上所述,本实施例提供的应用管理方法,终端根据当前的运行状态和用户兴趣信息来预测用户不需要使用的应用程序,进而对这部分应用程序进行查杀管理。终端可以使用神经网络模型(查杀预测模型),自动进行应用查杀,且查杀预测结果可以贴合用户使用习惯,保证后台查杀高效准确地进行。To sum up, in the application management method provided by this embodiment, the terminal predicts the application programs that the user does not need to use according to the current running status and user interest information, and then performs scanning and killing management on these application programs. The terminal can use the neural network model (antivirus prediction model) to automatically perform application antivirus, and the antivirus prediction results can fit the user's usage habits, ensuring efficient and accurate background antivirus.
示例性的,给出一种训练查杀预测模型的实施例。Exemplarily, an embodiment of training a killing prediction model is given.
请参见图3,图3是本申请另一个示例性实施例提供的应用管理方法流程图。该应用管理方法可以应用在第一终端中,第一终端可以是上述图1所示的终端。Please refer to FIG. 3 . FIG. 3 is a flowchart of an application management method provided by another exemplary embodiment of the present application. The application management method may be applied to a first terminal, and the first terminal may be the terminal shown in FIG. 1 above.
在图3中,该方法包括:In Figure 3, the method includes:
步骤310,接收服务器发送的通用查杀预测模型,通用查杀预测模型是根据从至少两个终端采集到的通用样本数据训练得到的,通用样本数据中的样本用户兴趣信息被统一设置为默认值。Step 310, receiving the general killing prediction model sent by the server. The general killing prediction model is trained according to the general sample data collected from at least two terminals, and the sample user interest information in the general sample data is uniformly set as a default value .
示例性的,第一终端中存储的查杀预测模型,可以是基于服务器提供的通用查杀预测模型进行二次训练后得到的。查杀预测模型在第一终端使用的过程中,可以不断地根据用户使用过程中的数据进行自动训练更新,最终,每个终端上所运行的查杀预测模型可以贴合不同用户的使用习惯,根据用户的使用习惯来进行应用查杀管理。Exemplarily, the killing prediction model stored in the first terminal may be obtained after secondary training based on the general killing prediction model provided by the server. During the use of the first terminal, the anti-virus prediction model can be continuously automatically trained and updated according to the data in the user's use process. Finally, the anti-virus detection model running on each terminal can fit the usage habits of different users. According to the user's usage habits, the application scanning and killing management is carried out.
第一终端可以向服务器发送模型获取请求,使服务器为第一终端下发通用查杀预测模型。通用查杀预测模型是服务器使用大规模数据训练得到的所有用户通用的查杀预测模型。The first terminal may send a model acquisition request to the server, so that the server issues a general detection and killing prediction model for the first terminal. The general killing prediction model is a common killing prediction model for all users obtained by the server using large-scale data training.
示例性的,第一终端根据第一终端的终端运行状态训练通用查杀预测模型后,得到查杀预测模型。Exemplarily, the first terminal obtains the anti-virus prediction model after training a general anti-virus detection model according to the terminal operating status of the first terminal.
在一种可选的实施例中,通用查杀预测模型可以是采用如下方法训练得到的:将通用样本数据中的样本终端运行状态、样本用户信息,输入通用查杀预测模型,得到查杀概率和系统状态;根据查杀概率与查杀概率标签的损失、以及系统状态与系统状态标签的损失,训练通用查杀预测模型直至收敛。其中,通用样本数据包括从至少两个终端采集到的样本终端运行状态、样本用户兴趣信息和第一标签数据;第一标签数据包括查杀概率标签和系统状态标签;通用样本数据是根据至少两个终端的应用查杀行为生成的数据,查杀概率标签是根据应用查杀行为查杀的应用程序确定的,系统状态标签包括执行查杀行为后的系统状态。In an optional embodiment, the general antivirus prediction model can be trained by the following method: input the sample terminal operating status and sample user information in the general sample data into the general antivirus prediction model to obtain the antivirus probability and system state; according to the killing probability and the loss of the killing probability label, as well as the loss of the system state and the system state label, train the general killing prediction model until convergence. Among them, the general sample data includes sample terminal operating status, sample user interest information and first tag data collected from at least two terminals; the first tag data includes killing probability tags and system status tags; the general sample data is based on at least two The data generated by the application killing behavior of a terminal, the killing probability label is determined according to the application program that the application killing behavior kills, and the system status label includes the system status after the killing behavior is executed.
示例性的,通用样本数据可以是通过各个终端上传的日志数据得到的。例如,各个终端的操作系统会定期向服务器商户餐日志数据,日志数据中记录了终端运行状态、终端的应用查杀行为、以及应用查杀行为后的终端运行状态。则终端运行状态可以作为样本终端运行状态,根据终端的应用查杀行为可以得到查杀概率标签(被查杀的应用程序其查杀概率标签为1,未被查杀的应用程序其查杀概率标签为0),应用查杀行为后的终端运行状态可以作为系统状态标签。如此,便可以获得通用样本数据集。Exemplarily, the general sample data may be obtained through log data uploaded by each terminal. For example, the operating system of each terminal will periodically send log data to the server merchant, and the log data records the terminal running status, the terminal application killing behavior, and the terminal running status after the application killing behavior. Then the terminal running state can be used as a sample terminal running state, and the killing probability label can be obtained according to the killing behavior of the terminal application (the killing probability label of the killed application is 1, and the killing probability of the unkilled application is 1). The label is 0), and the running status of the terminal after the killing behavior is applied can be used as the system status label. In this way, a general sample data set can be obtained.
或者,通用样本数据还可以根据用户主动反馈的日志数据得到。例如,用户舆情反馈、logkit日志工具采集的日志数据。这种日志数据是用户手动触发记录的,其内容会更加详细,而且往往是用户遇到了问题,进行售后反馈时,为了配合工程师分析问题,而抓取的日志,更加贴合用户场景,能覆盖到一些边界和极端情况。Alternatively, general sample data can also be obtained from log data actively fed back by users. For example, user public opinion feedback and log data collected by the logkit log tool. This kind of log data is manually triggered and recorded by the user, and its content will be more detailed, and often the user encounters a problem. When giving after-sales feedback, in order to cooperate with the engineer to analyze the problem, the captured log is more suitable for the user scenario and can cover to some boundaries and corner cases.
在一种可选的实施例中,通用查杀预测模型还可以是服务器根据第一终端的能力信息获取的。第一终端向服务器发送模型获取请求,模型获取请求携带有第一终端的能力信息;接收服务器发送的通用查杀预测模型,通用查杀预测模型是根据能力信息获取的。In an optional embodiment, the general scanning and killing prediction model may also be acquired by the server according to the capability information of the first terminal. The first terminal sends a model acquisition request to the server, and the model acquisition request carries capability information of the first terminal; receives a general antivirus prediction model sent by the server, and the general antivirus prediction model is obtained according to the capability information.
终端的能力信息可以包括:终端型号、处理器型号、内存大小、处理器的相关参数(核心数量、频率、缓存、架构和制作工艺等)中的至少一种。The capability information of the terminal may include: at least one of terminal model, processor model, memory size, and related parameters of the processor (number of cores, frequency, cache, architecture, manufacturing process, etc.).
示例性的,通用查杀预测模型是采用如下方法训练得到的:根据通用样本数据训练教师模型;根据能力信息确定通用查杀预测模型的模型结构;根据通用样本数据和教师模型训练通用查杀预测模型;其中,能力信息的强弱与模型结构的结构复杂度成正比。Exemplarily, the general killing prediction model is trained by the following method: training the teacher model according to the general sample data; determining the model structure of the general killing prediction model according to the capability information; training the general killing prediction according to the general sample data and the teacher model model; where the strength of capability information is proportional to the structural complexity of the model structure.
服务器可以根据终端的能力信息来确定终端的能力得分,根据能力得分来选择对应的通用查杀预测模型的模型结构。或者,服务器可以为不同终端型号、处理器型号划分不同的模型结构,以使模型结构契合终端能力。The server may determine the capability score of the terminal according to the capability information of the terminal, and select the corresponding model structure of the universal killing prediction model according to the capability score. Alternatively, the server may divide different model structures for different terminal models and processor models, so that the model structure fits the terminal capabilities.
例如,服务器中存储有能力信息和模型结构对应表,服务器按照表格来确定能力信息对应的模型结构。例如,如表3所示,服务器可以按照终端的终端型号、处理器型号,来查表确定其对应的模型结构。For example, the server stores a table corresponding to the capability information and the model structure, and the server determines the model structure corresponding to the capability information according to the table. For example, as shown in Table 3, the server may look up a table according to the terminal model and processor model of the terminal to determine its corresponding model structure.
表3table 3
对于能力较强的终端型号和处理器型号,可以采用更复杂的模型结构,来提高模型能力,提高模型的预测准确度。例如,特征提取层层数更多,或者,卷积核的维度更大,或者,全连接层的层数更多。对于能力较弱的终端型号和处理器型号,可以采用较为简单的模型结构,以降低模型运算量,降低第一终端运行模型的内存占用率。For more capable terminal models and processor models, more complex model structures can be used to improve model capabilities and improve model prediction accuracy. For example, the feature extraction layer has more layers, or the convolution kernel has a larger dimension, or the fully connected layer has more layers. For terminal models and processor models with weaker capabilities, a relatively simple model structure can be adopted to reduce the amount of model calculations and reduce the memory usage of the model running on the first terminal.
其中,通用样本数据包括从至少两个终端采集到的样本终端运行状态、样本用户兴趣信息和第一标签数据;第一标签数据包括查杀概率标签和系统状态标签;通用样本数据是根据至少两个终端的应用查杀行为生成的数据,查杀概率标签是根据应用查杀行为查杀的应用程序确定的,系统状态标签包括执行查杀行为后的系统状态。则训练教师模型的方法可以是:将通用样本数据中的样本终端运行状态、样本用户信息,输入教师模型,得到第二查杀概率和第二系统状态;根据第二查杀概率与查杀概率标签的第一损失、第二系统状态与系统状态标签的第二损失,训练教师模型直至收敛。Among them, the general sample data includes sample terminal operating status, sample user interest information and first tag data collected from at least two terminals; the first tag data includes killing probability tags and system status tags; the general sample data is based on at least two The data generated by the application killing behavior of a terminal, the killing probability label is determined according to the application program that the application killing behavior kills, and the system status label includes the system status after the killing behavior is executed. Then the method for training the teacher model can be: input the sample terminal operating status and sample user information in the general sample data into the teacher model to obtain the second killing probability and the second system state; according to the second killing probability and the killing probability The first loss for labels, the second system state and the second loss for system state labels, train the teacher model until convergence.
示例性的,服务器根据第一损失和第二损失之和,训练教师模型直至收敛。其中,计算第一损失所采用的损失函数,以及计算第二损失所采用的损失函数,可以相同也可以不同。例如,损失函数可以采用均方误差损失函数、交叉熵损失函数、L1范数损失函数等。Exemplarily, the server trains the teacher model until convergence according to the sum of the first loss and the second loss. Wherein, the loss function used to calculate the first loss and the loss function used to calculate the second loss may be the same or different. For example, the loss function may use a mean square error loss function, a cross-entropy loss function, an L1 norm loss function, and the like.
训练通用查杀预测模型的方法可以是:将通用样本数据中的样本终端运行状态、样本用户信息,输入教师模型,得到第三查杀概率和第三系统状态;将通用样本数据中的样本终端运行状态、样本用户信息,输入通用查杀预测模型,得到第四查杀概率和第四系统状态;根据第四查杀概率与查杀概率标签的第三损失、第四系统状态与系统状态标签的第四损失、第四查杀概率与第三查杀概率的第五损失、第四系统状态与第三系统状态的第六损失,训练通用查杀预测模型直至收敛。The method for training the general detection and killing prediction model can be: input the sample terminal operating status and sample user information in the general sample data into the teacher model to obtain the third detection probability and the third system state; The running status and sample user information are input into the general killing prediction model to obtain the fourth killing probability and the fourth system state; according to the fourth killing probability and killing probability label, the third loss, the fourth system state and the system state label The fourth loss of the fourth killing probability and the fifth loss of the third killing probability, the sixth loss of the fourth system state and the third system state, and train the general killing prediction model until convergence.
示例性的,服务器根据第三损失、第四损失、第五损失、第六损失之和,训练通用查杀预测模型直至收敛。其中,计算第三损失、第四损失、第五损失、第六损失的损失函数可以相同也可以不同。例如,损失函数可以采用均方误差损失函数、交叉熵损失函数、L1范数损失函数等。Exemplarily, according to the sum of the third loss, the fourth loss, the fifth loss, and the sixth loss, the server trains the universal killing prediction model until convergence. Wherein, the loss functions for calculating the third loss, the fourth loss, the fifth loss, and the sixth loss may be the same or different. For example, the loss function may use a mean square error loss function, a cross-entropy loss function, an L1 norm loss function, and the like.
示例性的,由于通用查杀预测模型是采用众多终端提供的样本数据训练得到的,通用查杀预测模型无需考虑各个用户的用户兴趣,因此,在训练通用查杀预测模型时,可以将输入数据中的用户兴趣信息设置为预设值,例如,将每个应用程序对应的用户兴趣信息设置为1。Exemplarily, since the general antivirus prediction model is trained using sample data provided by many terminals, the general antivirus prediction model does not need to consider the user interest of each user. Therefore, when training the general antivirus prediction model, the input data can be The user interest information in is set to a preset value, for example, the user interest information corresponding to each application is set to 1.
步骤320,根据用户样本数据训练通用查杀预测模型,得到查杀预测模型;用户样本数据包括从第一终端上采集到的终端运行状态、用户兴趣信息和第二标签数据。Step 320, training a general hunting prediction model according to the user sample data to obtain the hunting prediction model; the user sample data includes terminal operating status, user interest information and second tag data collected from the first terminal.
第一终端从服务器获取到通用查杀预测模型后,可以一边使用通用查杀预测模型进行后台应用管理,一边可以对通用查杀预测模型进行更新训练。After the first terminal acquires the general anti-virus detection model from the server, it can use the general anti-virus detection model for background application management and at the same time update and train the general anti-virus detection model.
示例性的,第一终端每使用通用查杀预测模型(或查杀预测模型)进一次预测后,都可以根据预测结果中输出的第一系统状态与期望系统状态的损失,来训练一次模型,以实时更新模型。Exemplarily, the first terminal can train the model once based on the loss of the first system state and the expected system state output in the prediction result after each prediction using the general antivirus prediction model (or antivirus prediction model), to update the model in real time.
示例性的,由于在用户侧进行模型更新时,无法获得查杀概率的标签,则第一终端可以根据预设的期望系统状态,来对查杀预测模型进行引导训练。Exemplarily, since the label of detection and killing probability cannot be obtained when the model is updated on the user side, the first terminal can guide and train the detection and killing prediction model according to the preset expected system state.
示例性的,在用户侧使用模型时,可以根据用户的使用习惯来确定用户兴趣信息,使查杀预测模型根据用户兴趣信息来预测应用程序的查杀概率,并训练查杀预测模型使其输出的系统状态贴近期望系统状态。Exemplarily, when the model is used on the user side, the user interest information can be determined according to the user's usage habits, the killing prediction model can predict the killing probability of the application according to the user interest information, and the killing prediction model can be trained to output The system state is close to the desired system state.
可选的,第二标签数据包括期望系统状态标签,期望系统状态标签为预设数值;则第一终端可以将终端运行状态、用户兴趣信息,输入通用查杀预测模型,得到第一查杀概率和第一系统状态;根据第一系统状态与期望系统状态标签的第七损失,训练通用查杀预测模型直至收敛,得到查杀预测模型。Optionally, the second label data includes the expected system status label, and the expected system status label is a preset value; then the first terminal can input the terminal operating status and user interest information into the general antivirus prediction model to obtain the first antivirus probability and the first system state; according to the seventh loss of the label of the first system state and the expected system state, train the general killing prediction model until convergence, and obtain the killing prediction model.
其中,期望系统状态包括:处理器状态、内存使用状态、前台状态、后台状态、网络状态、应用未响应情况、应用闪退情况、应用启动时长中的至少一种。示例性的,期望系统状态中所包含的信息与模型输出的系统状态(第一系统状态)的信息类型一致。Wherein, the desired system status includes: at least one of processor status, memory usage status, foreground status, background status, network status, application unresponsive status, application crash status, and application startup time. Exemplarily, the information contained in the expected system state is consistent with the information type of the system state (first system state) output by the model.
期望系统状态可以是由服务器提供给第一终端的。服务器可以根据各个终端每日上报的日志数据,确定下一日的期望系统状态(每个终端的期望系统状态相同),并将期望系统状态发送给第一终端。The desired system state may be provided by the server to the first terminal. The server may determine the expected system state of the next day (the expected system state of each terminal is the same) according to the daily log data reported by each terminal, and send the expected system state to the first terminal.
或者,服务器可以根据第一终端上报的日志数据,确定第一终端在下一日的期望系统状态(每个终端的期望系统状态不同),并将期望系统状态发送给第一终端。Alternatively, the server may determine the expected system status of the first terminal on the next day (the expected system status of each terminal is different) according to the log data reported by the first terminal, and send the expected system status to the first terminal.
或者,服务器可以根据第一终端的能力信息,来确定第一终端的期望系统状态,并将期望系统状态发送给第一终端。对于能力较强的终端,服务器可以设置较佳的期望系统状态,对于能力较弱的终端,服务器可以设置较差的期望系统状态。Alternatively, the server may determine the expected system state of the first terminal according to the capability information of the first terminal, and send the expected system state to the first terminal. For terminals with stronger capabilities, the server may set a better expected system state, and for terminals with weaker capabilities, the server may set a poorer expected system state.
综上所述,本实施例提供的应用管理方法,终端可以从服务器获取通用的查杀预测模型,并在模型使用过程中,根据使用数据来不断更新模型,使模型可以贴合各个终端的使用习惯,对于不同终端的使用情况有针对性地进行查杀概率预测。提高查杀预测模型查杀后台应用的准确度。To sum up, with the application management method provided in this embodiment, the terminal can obtain a general antivirus prediction model from the server, and continuously update the model according to the usage data during the use of the model, so that the model can fit the use of each terminal According to the usage of different terminals, the detection and killing probability prediction is carried out in a targeted manner. Improve the accuracy of killing background applications in the killing prediction model.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
请参考图4,图4是本申请一个示例性实施例提供的应用管理装置的结构框图。该应用管理装置可以通过软件、硬件或者两者的结合实现成为第一终端的全部或一部分。该装置包括:Please refer to FIG. 4 , which is a structural block diagram of an application management device provided by an exemplary embodiment of the present application. The application management device can be implemented as all or a part of the first terminal through software, hardware or a combination of the two. The unit includes:
获取模块401,用于获取所述第一终端的终端运行状态和用户兴趣信息,所述终端运行状态包括所述终端的系统状态和所述终端中应用程序的应用状态,所述用户兴趣信息用于指示所述应用程序的用户使用习惯;The acquiring module 401 is configured to acquire the terminal running state and user interest information of the first terminal, the terminal running state includes the system state of the terminal and the application state of the application program in the terminal, and the user interest information is used To indicate the user's usage habits of the application;
预测模块402,用于将所述终端运行状态和所述用户兴趣信息输入查杀预测模型,得到所述至少一个应用程序分别对应的第一查杀概率;A predicting module 402, configured to input the terminal operating status and the user interest information into a killing prediction model to obtain first killing probabilities respectively corresponding to the at least one application;
管理模块403,用于根据所述至少一个应用程序分别对应的所述第一查杀概率,对所述至少一个应用程序进行后台查杀管理。The management module 403 is configured to perform background checking and killing management on the at least one application program according to the first checking and killing probability respectively corresponding to the at least one application program.
在一种可选的实施例中,所述应用程序的数量为n个,n为正整数;In an optional embodiment, the number of said application programs is n, and n is a positive integer;
所述获取模块401,用于获取所述n个应用程序在预设时段内分别对应的使用时长;The obtaining module 401 is configured to obtain the usage durations corresponding to the n application programs within a preset period of time;
所述获取模块401,用于对n个所述使用时长进行归一化处理,得到所述n个应用程序分别对应的兴趣权重;The obtaining module 401 is configured to perform normalization processing on the n usage durations to obtain interest weights respectively corresponding to the n application programs;
所述获取模块401,用于将n个所述兴趣权重确定为所述用户兴趣信息。The obtaining module 401 is configured to determine n pieces of the interest weights as the user interest information.
在一种可选的实施例中,所述应用程序的数量为n个,n为正整数;In an optional embodiment, the number of said application programs is n, and n is a positive integer;
所述获取模块401,用于获取所述第一终端的系统状态,所述系统状态包括:所述终端的处理器状态、内存使用状态、前台状态、后台状态中的至少一种,所述前台状态包括:屏幕状态、前台应用状态中的至少一种;The acquisition module 401 is configured to acquire the system state of the first terminal, the system state includes: at least one of the processor state, memory usage state, foreground state, and background state of the terminal, the foreground The state includes: at least one of screen state and foreground application state;
所述获取模块401,用于获取所述n个应用程序分别对应的应用状态,所述应用状态包括:进程信息、已运行时间、包名中的至少一种。The acquiring module 401 is configured to acquire the application states respectively corresponding to the n application programs, and the application states include: at least one of process information, elapsed running time, and package name.
在一种可选的实施例中,所述装置还包括:In an optional embodiment, the device also includes:
接收模块405,用于接收服务器发送的通用查杀预测模型,所述通用查杀预测模型是根据从至少两个终端采集到的通用样本数据训练得到的,所述通用样本数据中的样本用户兴趣信息被统一设置为默认值;The receiving module 405 is configured to receive the general antivirus prediction model sent by the server, the general antivirus prediction model is trained according to the general sample data collected from at least two terminals, and the sample user interest in the general sample data is The information is uniformly set as the default value;
训练模块406,用于根据用户样本数据训练所述通用查杀预测模型,得到所述查杀预测模型;所述用户样本数据包括从所述第一终端上采集到的所述终端运行状态、所述用户兴趣信息和第二标签数据。The training module 406 is configured to train the general antivirus prediction model according to user sample data to obtain the antivirus prediction model; the user sample data includes the terminal operating status and all information collected from the first terminal. The user interest information and the second tag data.
在一种可选的实施例中,所述装置还包括:In an optional embodiment, the device also includes:
发送模块404,用于向所述服务器发送模型获取请求,所述模型获取请求携带有所述第一终端的能力信息;A sending module 404, configured to send a model acquisition request to the server, where the model acquisition request carries capability information of the first terminal;
所述接收模块405,用于接收所述服务器发送的所述通用查杀预测模型,所述通用查杀预测模型是根据所述能力信息获取的。The receiving module 405 is configured to receive the general hunting prediction model sent by the server, where the general hunting prediction model is obtained according to the capability information.
在一种可选的实施例中,所述通用查杀预测模型是采用如下方法训练得到的:In an optional embodiment, the general killing prediction model is trained by the following method:
根据所述通用样本数据训练教师模型;training a teacher model according to the general sample data;
根据所述能力信息确定所述通用查杀预测模型的模型结构;determining the model structure of the general killing prediction model according to the capability information;
根据所述通用样本数据和所述教师模型训练所述通用查杀预测模型;training the general killing prediction model according to the general sample data and the teacher model;
其中,所述能力信息的强弱与所述模型结构的结构复杂度成正比。Wherein, the strength of the capability information is directly proportional to the structural complexity of the model structure.
在一种可选的实施例中,所述通用样本数据包括从至少两个终端采集到的样本终端运行状态、样本用户兴趣信息和第一标签数据;所述第一标签数据包括查杀概率标签和系统状态标签;所述通用样本数据是根据所述至少两个终端的应用查杀行为生成的数据,所述查杀概率标签是根据所述应用查杀行为查杀的应用程序确定的,所述系统状态标签包括执行所述查杀行为后的系统状态;In an optional embodiment, the general sample data includes sample terminal operating status, sample user interest information and first tag data collected from at least two terminals; the first tag data includes killing probability tags and a system status label; the general sample data is data generated according to the application killing behavior of the at least two terminals, and the killing probability label is determined according to the killing application program of the application killing behavior, so The system status label includes the system status after executing the killing behavior;
所述根据所述通用样本数据训练教师模型,包括:The training of the teacher model according to the general sample data includes:
将所述通用样本数据中的所述样本终端运行状态、所述样本用户信息,输入所述教师模型,得到第二查杀概率和第二系统状态;Input the sample terminal operating status and the sample user information in the general sample data into the teacher model to obtain a second killing probability and a second system state;
根据所述第二查杀概率与所述查杀概率标签的第一损失、所述第二系统状态与所述系统状态标签的第二损失,训练所述教师模型直至收敛。According to the second killing probability and the first loss of the killing probability label, the second system state and the second loss of the system state label, train the teacher model until convergence.
在一种可选的实施例中,所述通用样本数据包括从至少两个终端采集到的样本终端运行状态、样本用户兴趣信息和第一标签数据;所述第一标签数据包括查杀概率标签和系统状态标签;所述通用样本数据是根据所述至少两个终端的应用查杀行为生成的数据,所述查杀概率标签是根据所述应用查杀行为查杀的应用程序确定的,所述系统状态标签包括执行所述查杀行为后的系统状态;In an optional embodiment, the general sample data includes sample terminal operating status, sample user interest information and first tag data collected from at least two terminals; the first tag data includes killing probability tags and a system status label; the general sample data is data generated according to the application killing behavior of the at least two terminals, and the killing probability label is determined according to the killing application program of the application killing behavior, so The system status label includes the system status after executing the killing behavior;
所述根据所述通用样本数据和所述教师模型训练所述通用查杀预测模型,包括:The training of the general killing prediction model according to the general sample data and the teacher model includes:
将所述通用样本数据中的所述样本终端运行状态、所述样本用户信息,输入所述教师模型,得到第三查杀概率和第三系统状态;Input the sample terminal operating state and the sample user information in the general sample data into the teacher model to obtain the third killing probability and the third system state;
将所述通用样本数据中的所述样本终端运行状态、所述样本用户信息,输入所述通用查杀预测模型,得到第四查杀概率和第四系统状态;Inputting the sample terminal operating status and the sample user information in the general sample data into the general antivirus prediction model to obtain a fourth antivirus probability and a fourth system state;
根据所述第四查杀概率与所述查杀概率标签的第三损失、所述第四系统状态与所述系统状态标签的第四损失、所述第四查杀概率与所述第三查杀概率的第五损失、所述第四系统状态与所述第三系统状态的第六损失,训练所述通用查杀预测模型直至收敛。According to the fourth detection probability and the third loss of the detection probability label, the fourth system state and the fourth loss of the system state label, the fourth detection probability and the third detection The fifth loss of killing probability and the sixth loss of the fourth system state and the third system state are used to train the general killing prediction model until convergence.
在一种可选的实施例中,所述第二标签数据包括期望系统状态标签,所述期望系统状态标签为预设数值;In an optional embodiment, the second label data includes an expected system state label, and the expected system state label is a preset value;
所述训练模块406,用于将所述终端运行状态、所述用户兴趣信息,输入所述通用查杀预测模型,得到所述第一查杀概率和第一系统状态;The training module 406 is configured to input the terminal operation state and the user interest information into the general antivirus prediction model to obtain the first antivirus probability and the first system state;
所述训练模块406,用于根据所述第一系统状态与所述期望系统状态标签的第七损失,训练所述通用查杀预测模型直至收敛,得到所述查杀预测模型。The training module 406 is configured to train the general hunting prediction model until convergence according to the seventh loss of the first system state and the expected system state label, so as to obtain the killing prediction model.
在一种可选的实施例中,所述期望系统状态包括:处理器状态、内存使用状态、前台状态、后台状态、应用未响应情况、应用闪退情况中的至少一种。In an optional embodiment, the desired system state includes: at least one of a processor state, a memory usage state, a foreground state, a background state, an application not responding, and an application crashing.
需要说明的是:上述实施例提供的应用管理装置在执行应用管理方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的应用管理装置与应用管理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the application management device provided in the above embodiment executes the application management method, the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. , which divides the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the application management device and the application management method embodiments provided in the above embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
本申请还提供了一种终端,该终端包括处理器和存储器,存储器中存储有至少一条指令,至少一条指令由处理器加载并执行以实现上述各个方法实施例提供的应用管理方法。需要说明的是,该终端可以是如图5所提供的终端。The present application also provides a terminal, the terminal includes a processor and a memory, at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the application management method provided by the above method embodiments. It should be noted that the terminal may be the terminal provided in FIG. 5 .
图5示出了本申请一个示例性实施例提供的终端500的结构框图。该终端500可以是:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio LayerIV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端500还可能被称为用户帐号设备、便携式终端、膝上型终端、台式终端等其他名称。Fig. 5 shows a structural block diagram of a terminal 500 provided by an exemplary embodiment of the present application. The terminal 500 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, moving picture experts compress standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, moving picture experts compress standard audio layer 4) Player, laptop or desktop computer. The terminal 500 may also be called a user account device, a portable terminal, a laptop terminal, a desktop terminal, and other names.
通常,终端500包括有:处理器501和存储器502。Generally, the terminal 500 includes: a processor 501 and a memory 502 .
处理器501可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器501可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器501也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器501可以在集成有GPU(Graphics Processing Unit,应用管理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器501还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 501 can adopt at least one hardware form in DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) accomplish. The processor 501 may also include a main processor and a coprocessor, the main processor is a processor for processing data in the wake-up state, and is also called a CPU (Central Processing Unit, central processing unit); the coprocessor is used to Low-power processor for processing data in standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit, application manager), and the GPU is used for rendering and drawing content that needs to be displayed on the display screen. In some embodiments, the processor 501 may further include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is configured to process computing operations related to machine learning.
存储器502可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器502还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器502中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器501所执行以实现本申请中方法实施例提供的应用管理方法。Memory 502 may include one or more computer-readable storage media, which may be non-transitory. The memory 502 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 502 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 501 to implement the application management provided by the method embodiments in this application method.
在一些实施例中,终端500还可选包括有:外围设备接口503和至少一个外围设备。处理器501、存储器502和外围设备接口503之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口503相连。具体地,外围设备包括:射频电路504、显示屏505、摄像头组件506、音频电路507、和电源509中的至少一种。In some embodiments, the terminal 500 may optionally further include: a peripheral device interface 503 and at least one peripheral device. The processor 501, the memory 502, and the peripheral device interface 503 may be connected through buses or signal lines. Each peripheral device can be connected to the peripheral device interface 503 through a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 504 , a display screen 505 , a camera assembly 506 , an audio circuit 507 , and a power supply 509 .
外围设备接口503可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器501和存储器502。在一些实施例中,处理器501、存储器502和外围设备接口503被集成在同一芯片或电路板上;在一些其他实施例中,处理器501、存储器502和外围设备接口503中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 503 may be used to connect at least one peripheral device related to I/O (Input/Output, input/output) to the processor 501 and the memory 502 . In some embodiments, the processor 501, memory 502 and peripheral device interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 501, memory 502 and peripheral device interface 503 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
射频电路504用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路504通过电磁信号与通信网络以及其他通信设备进行通信。射频电路504将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。示例性的,射频电路504包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户帐号身份模块卡等等。射频电路504可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路504还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency circuit 504 is configured to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. The radio frequency circuit 504 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Exemplarily, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user account identity module card, and the like. The radio frequency circuit 504 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: World Wide Web, Metropolitan Area Network, Intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), wireless local area network and/or WiFi (Wireless Fidelity, Wireless Fidelity) network. In some embodiments, the radio frequency circuit 504 may also include circuits related to NFC (Near Field Communication, short-range wireless communication), which is not limited in this application.
显示屏505用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏505是触摸显示屏时,显示屏505还具有采集在显示屏505的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器501进行处理。此时,显示屏505还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏505可以为一个,设置终端500的前面板;在另一些实施例中,显示屏505可以为至少两个,分别设置在终端500的不同表面或呈折叠设计;在再一些实施例中,显示屏505可以是柔性显示屏,设置在终端500的弯曲表面上或折叠面上。甚至,显示屏505还可以设置成非矩形的不规则图形,也即异形屏。显示屏505可以采用LCD(LiquidCrystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 505 is used to display a UI (User Interface, user interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to collect touch signals on or above the surface of the display screen 505 . The touch signal can be input to the processor 501 as a control signal for processing. At this time, the display screen 505 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards. In some embodiments, there may be one display screen 505, which is set on the front panel of the terminal 500; in other embodiments, there may be at least two display screens 505, which are respectively arranged on different surfaces of the terminal 500 or in a folding design; In some other embodiments, the display screen 505 may be a flexible display screen, which is arranged on a curved surface or a folded surface of the terminal 500 . Even, the display screen 505 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 505 may be made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
摄像头组件506用于采集图像或视频。示例性的,摄像头组件506包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件506还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 506 is used to capture images or videos. Exemplarily, the camera component 506 includes a front camera and a rear camera. Usually, the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of the main camera, depth-of-field camera, wide-angle camera, and telephoto camera, so as to realize the fusion of the main camera and the depth-of-field camera to realize the background blur function. Combined with the wide-angle camera to realize panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 506 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. Dual color temperature flash refers to the combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
音频电路507可以包括麦克风和扬声器。麦克风用于采集用户帐号及环境的声波,并将声波转换为电信号输入至处理器501进行处理,或者输入至射频电路504以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端500的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器501或射频电路504的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路507还可以包括耳机插孔。Audio circuitry 507 may include a microphone and speakers. The microphone is used to collect sound waves of the user account and the environment, and convert the sound waves into electrical signals and input them to the processor 501 for processing, or input them to the radio frequency circuit 504 to realize voice communication. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 500 . The microphone can also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 501 or the radio frequency circuit 504 into sound waves. The loudspeaker can be a conventional membrane loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, it is possible not only to convert electrical signals into sound waves audible to humans, but also to convert electrical signals into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 507 may also include a headphone jack.
电源509用于为终端500中的各个组件进行供电。电源509可以是交流电、直流电、一次性电池或可充电电池。当电源509包括可充电电池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。The power supply 509 is used to supply power to various components in the terminal 500 . Power source 509 may be AC, DC, disposable or rechargeable batteries. When the power source 509 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
在一些实施例中,终端500还包括有一个或多个传感器510。该一个或多个传感器510包括但不限于:加速度传感器511、陀螺仪传感器512、压力传感器513、光学传感器515以及接近传感器516。In some embodiments, the terminal 500 further includes one or more sensors 510 . The one or more sensors 510 include, but are not limited to: an acceleration sensor 511 , a gyro sensor 512 , a pressure sensor 513 , an optical sensor 515 and a proximity sensor 516 .
加速度传感器511可以检测以终端500建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器511可以用于检测重力加速度在三个坐标轴上的分量。处理器501可以根据加速度传感器511采集的重力加速度信号,控制显示屏505以横向视图或纵向视图进行用户界面的显示。加速度传感器511还可以用于游戏或者用户帐号的运动数据的采集。The acceleration sensor 511 can detect the acceleration on the three coordinate axes of the coordinate system established by the terminal 500 . For example, the acceleration sensor 511 can be used to detect the components of the acceleration of gravity on the three coordinate axes. The processor 501 may control the display screen 505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 511 . The acceleration sensor 511 can also be used for collecting motion data of games or user accounts.
陀螺仪传感器512可以检测终端500的机体方向及转动角度,陀螺仪传感器512可以与加速度传感器511协同采集用户帐号对终端500的3D动作。处理器501根据陀螺仪传感器512采集的数据,可以实现如下功能:动作感应(比如根据用户帐号的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyro sensor 512 can detect the body direction and rotation angle of the terminal 500 , and the gyro sensor 512 can cooperate with the acceleration sensor 511 to collect 3D actions of the user account on the terminal 500 . According to the data collected by the gyroscope sensor 512, the processor 501 can realize the following functions: motion sensing (such as changing the UI according to the tilt operation of the user account), image stabilization during shooting, game control and inertial navigation.
压力传感器513可以设置在终端500的侧边框和/或显示屏505的下层。当压力传感器513设置在终端500的侧边框时,可以检测用户帐号对终端500的握持信号,由处理器501根据压力传感器513采集的握持信号进行左右手识别或快捷操作。当压力传感器513设置在显示屏505的下层时,由处理器501根据用户帐号对显示屏505的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 513 may be disposed on a side frame of the terminal 500 and/or a lower layer of the display screen 505 . When the pressure sensor 513 is set on the side frame of the terminal 500 , it can detect the grip signal of the user account on the terminal 500 , and the processor 501 can perform left and right hand recognition or shortcut operations according to the grip signal collected by the pressure sensor 513 . When the pressure sensor 513 is disposed on the lower layer of the display screen 505, the processor 501 operates the pressure on the display screen 505 according to the user account to control the operable controls on the UI interface. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
光学传感器515用于采集环境光强度。在一个实施例中,处理器501可以根据光学传感器515采集的环境光强度,控制显示屏505的显示亮度。具体地,当环境光强度较高时,调高显示屏505的显示亮度;当环境光强度较低时,调低显示屏505的显示亮度。在另一个实施例中,处理器501还可以根据光学传感器515采集的环境光强度,动态调整摄像头组件506的拍摄参数。The optical sensor 515 is used to collect ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the display screen 505 according to the ambient light intensity collected by the optical sensor 515 . Specifically, when the ambient light intensity is high, the display brightness of the display screen 505 is increased; when the ambient light intensity is low, the display brightness of the display screen 505 is decreased. In another embodiment, the processor 501 may also dynamically adjust shooting parameters of the camera assembly 506 according to the ambient light intensity collected by the optical sensor 515 .
接近传感器516,也称距离传感器,通常设置在终端500的前面板。接近传感器516用于采集用户帐号与终端500的正面之间的距离。在一个实施例中,当接近传感器516检测到用户帐号与终端500的正面之间的距离逐渐变小时,由处理器501控制显示屏505从亮屏状态切换为息屏状态;当接近传感器516检测到用户帐号与终端500的正面之间的距离逐渐变大时,由处理器501控制显示屏505从息屏状态切换为亮屏状态。The proximity sensor 516 , also called a distance sensor, is usually arranged on the front panel of the terminal 500 . The proximity sensor 516 is used to collect the distance between the user account and the front of the terminal 500 . In one embodiment, when the proximity sensor 516 detects that the distance between the user account and the front of the terminal 500 gradually decreases, the processor 501 controls the display screen 505 to switch from the bright screen state to the off screen state; when the proximity sensor 516 detects When the distance between the user account and the front of the terminal 500 gradually increases, the processor 501 controls the display screen 505 to switch from the off-screen state to the on-screen state.
本领域技术人员可以理解,图5中示出的结构并不构成对终端500的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 5 does not constitute a limitation on the terminal 500, and may include more or less components than shown in the figure, or combine certain components, or adopt different component arrangements.
所述存储器还包括一个或者一个以上的程序,所述一个或者一个以上程序存储于存储器中,所述一个或者一个以上程序包含用于进行本申请实施例提供的应用管理方法。The memory further includes one or more programs, the one or more programs are stored in the memory, and the one or more programs include the application management method provided by the embodiment of the present application.
本申请还提供一种计算机设备,该计算机设备包括:处理器和存储器,该存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,该至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行以实现上述各方法实施例提供的应用管理方法。The present application also provides a computer device, which includes: a processor and a memory, at least one instruction, at least one section of program, code set or instruction set are stored in the storage medium, and the at least one instruction, at least one section of program, code set Or the instruction set is loaded and executed by the processor to implement the application management methods provided by the foregoing method embodiments.
本申请还提供一种计算机可读存储介质,该存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,该至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行以实现上述各方法实施例提供的应用管理方法。The present application also provides a computer-readable storage medium, which stores at least one instruction, at least one section of program, code set or instruction set, and the at least one instruction, at least one section of program, code set or instruction set is loaded by a processor And execute to realize the application management method provided by the above method embodiments.
本申请还提供一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述可选实现方式中提供的应用管理方法。The present application also provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the application management method provided in the above optional implementation manner.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述仅为本申请的能够实现的示例性的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only exemplary embodiments of the present application that can be realized, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the Within the protection scope of this application.
需要进行说明的是,本申请在收集用户的相关数据之前以及在收集用户的相关数据的过程中,都可以显示提示界面、弹窗或输出语音提示信息,该提示界面、弹窗或语音提示信息用于提示用户当前正在搜集其相关数据,使得本申请仅仅在获取到用户对该提示界面或者弹窗发出的确认操作后,才开始执行获取用户相关数据的相关步骤,否则(即未获取到用户对该提示界面或者弹窗发出的确认操作时),结束获取用户相关数据的相关步骤,即不获取用户的相关数据。换句话说,本申请所采集的所有用户数据都是在用户同意并授权的情况下进行采集的,且相关用户数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that before and during the process of collecting relevant user data, this application can display a prompt interface, pop-up window or output voice prompt information. The prompt interface, pop-up window or voice prompt information It is used to remind the user that the relevant data is currently being collected, so that the application only starts to execute the relevant steps of obtaining the relevant data of the user after obtaining the confirmation operation issued by the user on the prompt interface or pop-up window, otherwise (that is, the user is not obtained When confirming the prompt interface or pop-up window), the relevant steps of obtaining user-related data are completed, that is, no user-related data is obtained. In other words, all user data collected in this application is collected with the consent and authorization of the user, and the collection, use and processing of relevant user data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310830418.4A CN116700832A (en) | 2023-07-06 | 2023-07-06 | Application management method, device, terminal and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310830418.4A CN116700832A (en) | 2023-07-06 | 2023-07-06 | Application management method, device, terminal and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116700832A true CN116700832A (en) | 2023-09-05 |
Family
ID=87841159
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310830418.4A Pending CN116700832A (en) | 2023-07-06 | 2023-07-06 | Application management method, device, terminal and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116700832A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120066600A (en) * | 2023-11-21 | 2025-05-30 | 荣耀终端股份有限公司 | Application keep-alive method, device and storage medium |
-
2023
- 2023-07-06 CN CN202310830418.4A patent/CN116700832A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120066600A (en) * | 2023-11-21 | 2025-05-30 | 荣耀终端股份有限公司 | Application keep-alive method, device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108304265B (en) | Memory management method, device and storage medium | |
| CN108536411A (en) | A kind of method for controlling mobile terminal and mobile terminal | |
| WO2021057267A1 (en) | Image processing method and terminal device | |
| CN110891144A (en) | Image display method and electronic equipment | |
| CN110795310B (en) | Information reminding method and electronic equipment | |
| CN111324259A (en) | Group creation method, device and storage medium | |
| CN110881212B (en) | Method, device, electronic equipment and medium for power saving of equipment | |
| CN109857494B (en) | Message prompting method and terminal equipment | |
| CN112749590B (en) | Target detection method, device, computer equipment and computer-readable storage medium | |
| CN110189137A (en) | Method, device, equipment and storage medium for facial recognition payment | |
| CN112860046B (en) | Method, device, electronic equipment and medium for selecting operation mode | |
| CN108494665A (en) | One population message display method and mobile terminal | |
| KR102680936B1 (en) | Object display methods and electronic devices | |
| CN111444425B (en) | Information pushing method, electronic equipment and medium | |
| CN110162956A (en) | The method and apparatus for determining interlock account | |
| CN108958587A (en) | Split-screen processing method, device, storage medium and electronic equipment | |
| CN109976611A (en) | The control method and terminal device of terminal device | |
| CN111862972A (en) | Voice interactive service method, device, device and storage medium | |
| CN110852217A (en) | Method and electronic device for face recognition | |
| CN109933266A (en) | A kind of display methods and terminal device | |
| CN116700832A (en) | Application management method, device, terminal and storage medium | |
| CN111045560A (en) | Method for sending picture and electronic equipment | |
| CN108089935B (en) | Application management method and mobile terminal | |
| CN111931712B (en) | Face recognition method, device, snapshot machine and system | |
| CN109040427A (en) | Split-screen processing method, device, storage medium and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |