CN115080149B - Terminal device control method and terminal device - Google Patents
Terminal device control method and terminal device Download PDFInfo
- Publication number
- CN115080149B CN115080149B CN202210850114.XA CN202210850114A CN115080149B CN 115080149 B CN115080149 B CN 115080149B CN 202210850114 A CN202210850114 A CN 202210850114A CN 115080149 B CN115080149 B CN 115080149B
- Authority
- CN
- China
- Prior art keywords
- terminal device
- service
- command file
- service mode
- operation command
- 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.)
- Active
Links
Images
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
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0659—Command handling arrangements, e.g. command buffers, queues, command scheduling
-
- 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/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
本申请提供一种终端设备的控制方法和终端设备。本申请提供的终端设备的控制方法包括:接收第一指令,第一指令用于启动终端设备的系统初始化进程;根据第一指令启动系统初始化进程;在系统初始化进程中加载第一运行命令文件,第一运行命令文件用于启动终端设备在第一服务模式应提供的应用程序的系统服务,第一服务模式为终端设备当前设置的服务模式。这相比于加载所有服务模式相关联的运行命令文件,可以使得终端设备仅启动当前设置的服务模式下的应用程序的系统服务而不启动其他服务模式下的应用程序的系统服务,从而降低终端设备在当前设置的服务模式工作时的功耗。
The present application provides a terminal device control method and the terminal device. The terminal device control method provided by the present application includes: receiving a first instruction, the first instruction is used to start a system initialization process of the terminal device; starting the system initialization process according to the first instruction; loading the first running command file during the system initialization process, The first running command file is used to start the system service of the application program that the terminal device should provide in the first service mode, and the first service mode is the service mode currently set by the terminal device. Compared with loading the running command files associated with all service modes, this can make the terminal device only start the system service of the application program in the currently set service mode and not start the system service of the application program in other service modes, thereby reducing the terminal The power consumption of the device when it is working in the currently set service mode.
Description
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种终端设备的控制方法和终端设备。The present application relates to the field of terminal technology, and in particular, to a terminal device control method and the terminal device.
背景技术Background technique
终端设备中可以配置有多种服务模式,终端设备工作于每种服务模式时通常仅提供该服务模式下相应的应用程序的使用权限。例如,终端设备中可以配置有老人模式、简易模式、青少年模式或省电模式等。Multiple service modes can be configured in the terminal device, and when the terminal device works in each service mode, it usually only provides the usage permission of the corresponding application program in the service mode. For example, the terminal device may be configured with an elderly mode, a simple mode, a youth mode, or a power saving mode.
在配置有多种服务模式的终端设备的使用过程中发现如下问题:终端设备功耗过大。During the use of terminal equipment configured with multiple service modes, the following problems are found: the terminal equipment consumes too much power.
发明内容Contents of the invention
本申请提供一种终端设备的控制方法和终端设备,可以降低终端设备工作于指定服务模式时的功耗。The present application provides a terminal device control method and the terminal device, which can reduce the power consumption of the terminal device when it works in a designated service mode.
第一方面,本申请提供了一种终端设备的控制方法,包括:接收第一指令,第一指In a first aspect, the present application provides a terminal device control method, including: receiving a first instruction, the first instruction
令用于启动终端设备的系统初始化进程;根据第一指令启动系统初始化进程;在系统初始化进程中加载第一运行命令文件,第一运行命令文件用于启动终端设备在第一服务模式应提供的应用程序的系统服务,第一服务模式为终端设备当前设置的服务模式。The command is used to start the system initialization process of the terminal device; the system initialization process is started according to the first instruction; the first running command file is loaded in the system initialization process, and the first running command file is used to start the terminal device that should be provided in the first service mode For the system service of the application program, the first service mode is the service mode currently set by the terminal device.
本实施例中,终端设备在系统初始化进程中仅加载了用于启动第一服务模式下的应用程序的系统服务的运行命令文件,即终端设备在系统初始化进程中没有加载用于启动其他服务模式下的应用程序的系统服务的运行命令文件,使得终端设备可以仅启动第一服务模式下的应用程序的系统服务而不启动其他服务模式下的应用程序的系统服务。也就是说,本实施例中的终端设备工作于第一服务模式时可以不运行其他服务模式下的应用程序的系统服务,因此,降低了工作于第一服务模式时的终端设备的功耗。In this embodiment, the terminal device only loads the running command file used to start the system service of the application program in the first service mode during the system initialization process, that is, the terminal device does not load the command file used to start other service modes during the system initialization process. The running command file of the system service of the application program in the first service mode enables the terminal device to only start the system service of the application program in the first service mode without starting the system service of the application program in other service modes. That is to say, when the terminal device in this embodiment works in the first service mode, it may not run the system services of the application programs in other service modes, thus reducing the power consumption of the terminal device in the first service mode.
结合第一方面,在一种可能的实现方式中,启动终端设备在第一服务模式应提供的应用程序的系统服务后,所述方法还包括:显示与第一服务模式关联的应用程序的图标。With reference to the first aspect, in a possible implementation manner, after starting the system service of the application program that the terminal device should provide in the first service mode, the method further includes: displaying the icon of the application program associated with the first service mode .
本实施例中,由于终端设备仅显示了与第一服务模式关联的应用程序的图标,即没有显示与第一服务模式不关联的应用程序的图标,因此可以进一步地降低终端设备工作于第一服务模式时的终端设备的功耗。In this embodiment, since the terminal device only displays the icons of the application programs associated with the first service mode, that is, the icons of the application programs not associated with the first service mode are not displayed, so it can further reduce the need for the terminal device to work in the first service mode. Power consumption of the end device in service mode.
结合第一方面,在一种可能的实现方式中,终端设备中包含N个运行命令文件组,N个运行命令文件组与终端设备中的N个服务模式一一对应,N个运行命令文件组中每个运行命令文件组中的运行命令文件用于启动对应的服务模式应提供的应用程序的系统服务,N为正整数;其中,在系统初始化进程中加载第一运行命令文件之前,所述方法还包括:获取终端设备当前设置的服务模式,终端设备当前设置的服务模式为第一服务模式;In combination with the first aspect, in a possible implementation, the terminal device includes N running command file groups, the N running command file groups correspond to the N service modes in the terminal device, and the N running command file groups The running command file in each running command file group is used to start the system service of the application program that the corresponding service mode should provide, and N is a positive integer; wherein, before the first running command file is loaded in the system initialization process, the described The method also includes: acquiring the service mode currently set by the terminal device, where the service mode currently set by the terminal device is the first service mode;
将N个运行命令文件组中与第一服务模式对应的运行命令文件组中的运行命令文件确定为第一运行命令文件。The running command file in the running command file group corresponding to the first service mode among the N running command file groups is determined as the first running command file.
本实施例中,可以预先将终端设备中的所有运行命令文件进行分组(本申请中将每个组称为运行命令文件组),然后不同的运行命令文件组与不同的服务模式一一对应,每个运行命令文件组中包括的所有运行命令文件都用于启动对应的服务模式应提供的应用程序的系统服务,即不用于启动不对应的服务模式应提供的应用程序的系统服务。In this embodiment, all the running command files in the terminal device can be grouped in advance (each group is called a running command file group in this application), and then different running command file groups correspond to different service modes one by one, All the running command files included in each running command file group are used to start the system service of the application program provided by the corresponding service mode, that is, not used to start the system service of the application program not provided by the corresponding service mode.
可以理解的是,在该方案中,当终端设备获取到当前的服务模式为第一服务模式时,那么终端设备就可以基于不同的运行命令文件组与不同的服务模式之间的对应关系,来实现确定出N个运行命令文件组中与第一服务模式对应的运行命令文件组中的运行命令文件即为第一运行命令文件。It can be understood that, in this solution, when the terminal device acquires that the current service mode is the first service mode, then the terminal device can base on the correspondence between different operation command file groups and different service modes to It is determined that the operation command file in the operation command file group corresponding to the first service mode among the N operation command file groups is the first operation command file.
结合第一方面,在一种可能的实现方式中,终端设备中包含公用运行命令文件组和N个运行命令文件组,公用运行命令文件组中的运行命令文件用于启动N个服务模式均应提供的应用程序的系统服务,N个运行命令文件组与终端设备中的N个服务模式一一对应,N个运行命令文件组中每个运行命令文件组中的运行命令文件用于启动对应的服务模式下应提供的且不同于其他服务模式提供的应用程序的系统服务,N为正整数;其中,在系统初始化进程中加载第一运行命令文件之前,所述方法还包括:获取终端设备当前设置的服务模式,终端设备当前设置的服务模式为第一服务模式;将公用运行命令文件组中的运行命令文件和N个运行命令文件组中与第一服务模式对应的运行命令文件组中的运行命令文件确定为第一运行命令文件。In combination with the first aspect, in a possible implementation, the terminal device includes a public run command file group and N run command file groups, and the run command files in the public run command file group are used to start the N service modes. The system service of the application program provided, the N running command file groups are in one-to-one correspondence with the N service modes in the terminal device, and the running command file in each running command file group in the N running command file groups is used to start the corresponding The system service that should be provided in the service mode and is different from the application programs provided by other service modes, N is a positive integer; wherein, before loading the first running command file in the system initialization process, the method also includes: obtaining the current The service mode set, the service mode currently set by the terminal device is the first service mode; the operation command file in the public operation command file group and the operation command file group corresponding to the first service mode in the N operation command file groups The running command file is determined as the first running command file.
本实施例中,可以预先将终端设备中的所有运行命令文件分成N+1个组,其中的N个组(也称为运行命令文件组)与N个服务模式一一对应,且每个运行命令文件组中的运行命令文件仅用于启动对应的服务模式下应提供的且不同于其他服务模式提供的应用程序的系统服务,而对于剩下的一个组(也称为公用运行命令文件组),该公用运行命令文件组中包括的运行命令文件用于启动N个服务模式均应提供的应用程序的系统服务。换句话说,公用运行命令文件组用于启动不同服务模式都需要的系统服务,而N个运行命令文件组中的每个运行命令文件组仅用于启动对应的服务模式下独自需要的系统服务。In this embodiment, all the running command files in the terminal device can be divided into N+1 groups in advance, and the N groups (also called running command file groups) correspond to the N service modes one by one, and each running The running command file in the command file group is only used to start the system service that should be provided in the corresponding service mode and is different from the application program provided by other service modes, and for the remaining group (also known as the public running command file group) ), the running command file included in the common running command file group is used to start the system service of the application program that should be provided by all the N service modes. In other words, the common run command file group is used to start the system services required by different service modes, and each run command file group in the N run command file groups is only used to start the system services independently required in the corresponding service mode .
可以理解的是,在该方案中,当终端设备获取到当前的服务模式为第一服务模式时,那么终端设备就可以基于不同的运行命令文件组与不同的服务模式之间的对应关系,来实现确定出N个运行命令文件组中与第一服务模式对应的运行命令文件组中的运行命令文件以及公用运行命令文件组中的运行命令文件为需要加载的第一运行命令文件。It can be understood that, in this solution, when the terminal device acquires that the current service mode is the first service mode, then the terminal device can base on the correspondence between different operation command file groups and different service modes to Realize that the operation command file in the operation command file group corresponding to the first service mode and the operation command file in the public operation command file group among the N operation command file groups are determined as the first operation command file to be loaded.
还可以理解的是,将用于启动不同服务模式都需要的系统服务的运行命令文件放到一个组,就不需要再将用于启动不同服务模式都需要的系统服务的运行命令文件分别放到N个运行命令文件组中,因此还可以节省用于存储所有运行命令文件的存储空间。It is also understandable that if you put the running command files used to start the system services required by different service modes into one group, you don’t need to put the running command files used to start the system services required by different service modes into the group. N running command file groups, so the storage space for storing all running command files can also be saved.
结合第一方面,在一种可能的实现方式中,第一指令为用户在终端设备上的系统重启按键或系统重启按钮上输入的指令。With reference to the first aspect, in a possible implementation manner, the first instruction is an instruction entered by a user on a system restart button or a system restart button on the terminal device.
该实现方式中,可以实现当用户在终端上的系统重启按键或系统重启按钮上输入的指令时,触发终端设备启动系统初始化进程。In this implementation manner, when the user inputs an instruction on the system restart button or the system restart button on the terminal, the terminal device is triggered to start the system initialization process.
结合第一方面,在一种可能的实现方式中,第一指令为用户输入的确定将终端设备当前的服务模式设置为第一服务模式的指令。With reference to the first aspect, in a possible implementation manner, the first instruction is an instruction input by a user to determine to set the current service mode of the terminal device to the first service mode.
例如,在第一指令的接收时刻之后的目标时刻触发终端设备启动系统初始化进程,目标时刻为预设时刻,或目标时刻与接收时刻之间的时长为预设时长。可选地,该预设时长信息或目标时刻信息可以通过用户输入。For example, the terminal device is triggered to start the system initialization process at a target time after the receiving time of the first instruction, and the target time is a preset time, or the time length between the target time and the receiving time is a preset time length. Optionally, the preset duration information or target time information may be input by the user.
该实现方式中,当用户将当前的服务模式设置为第一服务模式的第一指令时,触发终端设备启动系统初始化进程,从而实现在系统初始化进程中加载与第一服务模式对应的第一运行命令文件,以使得终端设备工作于第一服务模式。In this implementation, when the user sets the current service mode as the first instruction of the first service mode, the terminal device is triggered to start the system initialization process, so that the first running program corresponding to the first service mode is loaded in the system initialization process. The command file is used to make the terminal device work in the first service mode.
第二方面,本申请提供一种终端设备的控制方法,包括:接收模块,用于接收第一指In a second aspect, the present application provides a method for controlling a terminal device, including: a receiving module, configured to receive a first instruction
令,第一指令用于启动终端设备的系统初始化进程;处理模块,用于根据第一指令启动系统初始化进程以及在系统初始化进程中加载第一运行命令文件,第一运行命令文件用于启动终端设备在第一服务模式应提供的应用程序的系统服务,第一服务模式为终端设备当前设置的服务模式。command, the first instruction is used to start the system initialization process of the terminal device; the processing module is used to start the system initialization process according to the first instruction and load the first running command file in the system initialization process, the first running command file is used to start the terminal The system service of the application program that the device should provide in the first service mode, where the first service mode is the service mode currently set by the terminal device.
结合第二方面,在一种可能的实现方式中,启动终端设备在第一服务模式应提供的应用程序的系统服务后,所述处理模块还用于:显示与第一服务模式关联的应用程序的图标。With reference to the second aspect, in a possible implementation manner, after starting the system service of the application program that the terminal device should provide in the first service mode, the processing module is further configured to: display the application program associated with the first service mode icon.
结合第二方面,在一种可能的实现方式中,所述终端设备中包含N个运行命令文件组,所述N个运行命令文件组与终端设备中的N个服务模式一一对应,N个运行命令文件组中每个运行命令文件组中的运行命令文件用于启动对应的服务模式应提供的应用程序的系统服务,N为正整数;其中,所述接收模块还用于:获取终端设备当前设置的服务模式,终端设备当前设置的服务模式为第一服务模式;所述处理模块还用于:将N个运行命令文件组中与第一服务模式对应的运行命令文件组中的运行命令文件确定为第一运行命令文件。With reference to the second aspect, in a possible implementation manner, the terminal device includes N running command file groups, and the N running command file groups correspond to the N service modes in the terminal device one by one, and N The running command file in each running command file group in the running command file group is used to start the system service of the application program that the corresponding service mode should provide, and N is a positive integer; wherein, the receiving module is also used to: acquire the terminal device The service mode currently set, the service mode currently set by the terminal device is the first service mode; the processing module is also used to: convert the running commands in the running command file group corresponding to the first service mode in the N running command file groups The file is determined to be the first run command file.
结合第二方面,在一种可能的实现方式中,终端设备中包含公用运行命令文件组和N个运行命令文件组,公用运行命令文件组中的运行命令文件用于启动N个服务模式均应提供的应用程序的系统服务,N个运行命令文件组与终端设备中的N个服务模式一一对应,N个运行命令文件组中每个运行命令文件组中的运行命令文件用于启动对应的服务模式下应提供的且不同于其他服务模式提供的应用程序的系统服务,N为正整数;其中,所述接收模块还用于:获取终端设备当前设置的服务模式,终端设备当前设置的服务模式为第一服务模式;所述处理模块还用于:将公用运行命令文件组中的运行命令文件和N个运行命令文件组中与第一服务模式对应的运行命令文件组中的运行命令文件确定为第一运行命令文件。In combination with the second aspect, in a possible implementation, the terminal device includes a public run command file group and N run command file groups, and the run command files in the public run command file group are used to start the N service modes. The system service of the application program provided, the N running command file groups are in one-to-one correspondence with the N service modes in the terminal device, and the running command file in each running command file group in the N running command file groups is used to start the corresponding The system services that should be provided in the service mode and are different from the application programs provided by other service modes, N is a positive integer; wherein, the receiving module is also used to: acquire the service mode currently set by the terminal device, the service mode currently set by the terminal device The mode is the first service mode; the processing module is also used to: combine the running command files in the common running command file group and the running command files in the running command file group corresponding to the first service mode in the N running command file groups Make sure to run the command file first.
结合第二方面,在一种可能的实现方式中,第一指令为用户在终端设备上的系统重启按键或系统重启按钮上输入的指令。With reference to the second aspect, in a possible implementation manner, the first instruction is an instruction entered by a user on a system restart button or a system restart button on the terminal device.
结合第二方面,在一种可能的实现方式中,第一指令为用户输入的确定将终端设备当前的服务模式设置为第一服务模式的指令。With reference to the second aspect, in a possible implementation manner, the first instruction is an instruction input by the user to determine to set the current service mode of the terminal device to the first service mode.
结合第二方面,在一种可能的实现方式中,所述处理模块还用于:在第一指令的接收时刻之后的目标时刻启动系统初始化进程,目标时刻为预设时刻,或目标时刻与接收时刻之间的时长为预设时长。With reference to the second aspect, in a possible implementation manner, the processing module is further configured to: start the system initialization process at a target time after the receiving time of the first instruction, where the target time is a preset time, or the target time is the same as receiving The duration between moments is a preset duration.
结合第二方面,在一种可能的实现方式中,所述接收模块还用于:接收用户输入的时长信息,所述时长信息用于设置预设时长或所述目标时刻。With reference to the second aspect, in a possible implementation manner, the receiving module is further configured to: receive duration information input by a user, where the duration information is used to set a preset duration or the target time.
第三方面,本申请提供了一种终端设备,包括处理器,该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第一方面中任一种可能实现方式中的方法。In a third aspect, the present application provides a terminal device, including a processor, the processor is coupled to a memory, and can be used to execute instructions in the memory, so as to implement the method in any possible implementation manner of the foregoing first aspect.
可选地,该终端设备还包括存储器。Optionally, the terminal device further includes a memory.
可选地,该终端设备还包括收发器,处理器与收发器耦合。Optionally, the terminal device further includes a transceiver, and the processor is coupled to the transceiver.
第四方面,本申请提供了一种处理装置,包括处理器和存储器。该处理器用于读取存储器中存储的指令,并可通过接收器接收信号,通过发射器发射信号,以执行上述第一方面中任一种可能实现方式中的方法。In a fourth aspect, the present application provides a processing device, including a processor and a memory. The processor is used to read instructions stored in the memory, and may receive signals through the receiver and transmit signals through the transmitter, so as to execute the method in any possible implementation manner of the first aspect above.
可选地,处理器为一个或多个,存储器为一个或多个。Optionally, there are one or more processors, and one or more memories.
可选地,存储器可以与处理器集成在一起,或者存储器与处理器分离设置。Optionally, the memory may be integrated with the processor, or the memory may be separated from the processor.
在具体实现过程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型以及存储器与处理器的设置方式不做限定。In the specific implementation process, the memory can be a non-transitory (non-transitory) memory, such as a read-only memory (read only memory, ROM), which can be integrated with the processor on the same chip, or can be set in different On the chip, the application does not limit the type of the memory and the arrangement of the memory and the processor.
应理解,相关的数据交互过程例如发送指示信息可以为从处理器输出指示信息的过程,接收能力信息可以为处理器接收输入能力信息的过程。具体地,处理输出的数据可以输出给发射器,处理器接收的输入数据可以来自接收器。其中,发射器和接收器可以统称为收发器。It should be understood that a related data interaction process such as sending indication information may be a process of outputting indication information from a processor, and receiving capability information may be a process of receiving input capability information from a processor. In particular, processed output data may be output to the transmitter, and input data received by the processor may be from the receiver. Wherein, the transmitter and the receiver may be collectively referred to as a transceiver.
上述第四方面中的处理装置可以是一个芯片,该处理器可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器可以集成在处理器中,可以位于该处理器之外,独立存在。The processing device in the fourth aspect above can be a chip, and the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; When implemented, the processor may be a general-purpose processor, which is realized by reading the software code stored in the memory, and the memory may be integrated in the processor, or it may be located outside the processor and exist independently.
第五方面,本申请提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program (also referred to as code, or instruction) which, when run on a computer, causes the computer to perform the above-mentioned first A method in any one of the possible implementations of the aspect.
第六方面,本申请提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。In a sixth aspect, the present application provides a computer program product. The computer program product includes: a computer program (also referred to as code, or instruction), which, when the computer program is executed, causes the computer to perform any one of the above-mentioned first aspects. Methods in Possible Implementations.
附图说明Description of drawings
图1是实施例提供的一种终端设备的结构示意图;FIG. 1 is a schematic structural diagram of a terminal device provided in an embodiment;
图2是本申请实施例的提供的一种设置服务模式的界面示意图;FIG. 2 is a schematic diagram of an interface for setting a service mode provided by an embodiment of the present application;
图3是本申请实施例的提供的终端设备的控制方法的流程示意图;FIG. 3 is a schematic flowchart of a method for controlling a terminal device provided in an embodiment of the present application;
图4是本申请一个实施例的提供的输入第一指令的过程示意图;FIG. 4 is a schematic diagram of a process of inputting a first instruction provided by an embodiment of the present application;
图5是本申请另一个实施例的提供的输入第一指令的过程示意图;Fig. 5 is a schematic diagram of the process of inputting the first instruction provided by another embodiment of the present application;
图6为本申请实施例提供的启动初始化进程的示意图;FIG. 6 is a schematic diagram of the startup initialization process provided by the embodiment of the present application;
图7为本申请实施例提供的另一个启动初始化进程的示意图;FIG. 7 is a schematic diagram of another startup initialization process provided by the embodiment of the present application;
图8为本申请一个实施例提供的终端设备的结构性示意图;FIG. 8 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
图9为本申请另一个实施例提供的终端设备的结构性示意图。FIG. 9 is a schematic structural diagram of a terminal device provided by another embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一芯片和第二芯片仅仅是为了区分不同的芯片,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first chip and the second chip are only used to distinguish different chips, and their sequence is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or descriptions. Any embodiment or design described herein as "exemplary" or "for example" is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
本申请实施例提供的终端设备的控制方法,可以应用于终端设备中。终端设备也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。终端设备可以是手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对终端设备所采用的具体技术和具体设备形态不做限定。The method for controlling a terminal device provided in the embodiment of the present application may be applied to a terminal device. The terminal device may also be called a terminal (terminal), user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), and so on. The terminal device can be mobile phone, smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (virtual reality, VR) terminal device, augmented reality (augmented reality, AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc. The embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.
为了能够更好地理解本申请实施例,下面对本申请实施例的终端设备的硬件结构进行介绍。示例性地,图1为本申请实施例提供的一种终端设备的结构示意图。In order to better understand the embodiment of the present application, the hardware structure of the terminal device in the embodiment of the present application is introduced below. Exemplarily, FIG. 1 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
图1示出了终端设备的结构示意图。如图1所示,终端设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,传感器模块180,按键190,指示器192,摄像头193,以及显示屏194等。FIG. 1 shows a schematic structural diagram of a terminal device. As shown in FIG. 1, the terminal device may include a
可选地,上述传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Optionally, the above-mentioned sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an
可以理解的是,本申请实施例示意的结构并不构成对终端设备的具体限定。在本申请另一些实施例中,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器110中还可以设置存储器,用于存储指令和数据。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备充电,也可以用于终端设备与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the terminal device, and can also be used to transmit data between the terminal device and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other terminal devices, such as AR devices.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块141用于连接充电管理模块140与处理器110。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. The
终端设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device can be realized by the
天线1和天线2用于发射和接收电磁波信号。终端设备中的天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。
移动通信模块150可以提供应用在终端设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The
无线通信模块160可以提供应用在终端设备上的包括无线局域网(wirelesslocalarea networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequencymodulation,FM)等无线通信的解决方案。The
终端设备通过GPU,显示屏194以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。The terminal device realizes the display function through the GPU, the display screen 194 and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏194用于显示图像,视频等。显示屏194包括显示面板、背光、偏压电路以及PD。在一些实施例中,终端设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel, a backlight, a bias circuit, and a PD. In some embodiments, the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
终端设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
摄像头193用于捕获静态图像或视频。在一些实施例中,终端设备可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. In some embodiments, the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data.
终端设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device can implement audio functions through the
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备可以通过扬声器170A收听音乐,或收听免提通话。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。The
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。陀螺仪传感器180B可以用于确定终端设备的运动姿态。气压传感器180C用于测量气压。磁传感器180D包括霍尔传感器。加速度传感器180E可检测终端设备在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。环境光传感器180L用于感知环境光亮度。指纹传感器180H用于采集指纹。温度传感器180J用于检测温度。触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。骨传导传感器180M可以获取振动信号。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . The gyroscope sensor 180B can be used to determine the motion posture of the terminal device. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备可以接收按键输入,产生与终端设备的用户设置以及功能控制有关的键信号输入。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device. The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
对于图1所示的终端设备,在开机完成后,用户便可以对终端设备进行操作。通常,用户在使用终端设备的过程中,可以设置需要的服务模式。其中,该服务模式例如可以是老人模式、简易模式、青少年模式或省电模式等。For the terminal device shown in FIG. 1 , after the booting is completed, the user can operate the terminal device. Usually, a user can set a required service mode during the use of the terminal device. Wherein, the service mode may be, for example, an elderly mode, a simple mode, a youth mode, or a power saving mode.
在一种实施方案中,终端设备可以为用户提供如图2所示的用户界面a,例如,终端设备200可以在“设置”功能列表中为用户提供如图2所示的用户界面a。如图2所示,户界面a中显示各个服务模式以及控制各个服务模式的设置开关。In one embodiment, the terminal device may provide the user with a user interface a as shown in FIG. 2 , for example, the
可选地,设置开关中的开关(即圆形图形)位于不同方向时,表示服务模式的不同设置,例如,设置开关201中的开关位于左边时表示没有被设置成老人模式,设置开关201中的开关位于右边时表示被设置成老人模式;设置开关202中的开关位于左边时表示没有被设置成青少年模式,设置开关202中的开关位于右边时表示被设置成青少年模式;设置开关203中的开关位于左边时表示没有被设置成简易模式,设置开关203中的开关位于右边时表示被设置成简易模式;设置开关204中的开关位于左边时表示没有被设置成省电模式,设置开关204中的开关位于右边时表示被设置成省电模式。Optionally, when the switch in the setting switch (that is, the circular figure) is located in different directions, it indicates different settings of the service mode. When the switch in the setting switch 202 is on the right, it means that it is set to the elderly mode; when the switch in the setting switch 202 is on the left, it means that it is not set to the youth mode, and when the switch in the setting switch 202 is on the right, it means that it is set to the youth mode; When the switch is on the left, it means that it is not set to the simple mode. When the switch in the setting switch 203 is on the right, it means that it is set to the simple mode; When the switch is on the right, it means that it is set to power saving mode.
可选地,设置开关中的开关位于右边时表示没有被设置成服务模式,设置开关中的开关位于左边时表示设置成服务模式。例如,设置开关201中的开关位于右边时表示没有被设置成老人模式,设置开关201中的开关位于左边时表示被设置成老人模式;设置开关202中的开关位于右边时表示没有被设置成青少年模式,设置开关202中的开关位于左边时表示被设置成青少年模式;设置开关203中的开关位于右边时表示没有被设置成简易模式,设置开关203中的开关位于左边时表示被设置成简易模式;设置开关204中的开关位于右边时表示没有被设置成省电模式,设置开关204中的开关位于左边时表示被设置成省电模式。Optionally, when the switch in the setting switch is on the right, it means that it is not set to the service mode, and when the switch in the setting switch is on the left, it means that it is set to the service mode. For example, when the switch in the setting switch 201 is on the right, it means that it is not set to the elderly mode; when the switch in the setting switch 201 is on the left, it means that it is set to the old man mode; Mode, when the switch in the setting switch 202 is on the left, it means that it is set to the youth mode; when the switch in the setting switch 203 is on the right, it means that it is not set to the simple mode; When the switch in the setting switch 204 is on the right, it means that it is not set to the power saving mode, and when the switch in the setting switch 204 is on the left, it means that it is set to the power saving mode.
用户可以通过点击需要的服务模式的设置开关来更改设置开关中的开关的方向,以实现设置服务模式或取消服务模式的目的。以设置开关201中的开关位于左边时表示没有被设置成老人模式,设置开关201中的开关位于右边时表示设置成老人模式为例,用户点击用户界面a中的设置开关201之后,终端设备可以显示图2所示的用户界面b。用户界面b中,设置开关201中的开关移动到右边,表示终端设备被设置成老人模式。The user can change the direction of the switch in the setting switch by clicking the setting switch of the desired service mode, so as to realize the purpose of setting the service mode or canceling the service mode. For example, when the switch in the setting switch 201 is on the left, it means that it is not set to the elderly mode, and when the switch in the setting switch 201 is on the right, it means that it is set to the elderly mode. The user interface b shown in FIG. 2 is displayed. In the user interface b, the switch in the setting switch 201 is moved to the right, indicating that the terminal device is set to the elderly mode.
之后,当用户设置完成需要的服务模式后,终端设备便响应于该服务模式,仅提供该服务模式下相应地应用程序的使用权限。Afterwards, after the user sets the required service mode, the terminal device responds to the service mode and only provides the usage permission of the corresponding application program in the service mode.
示例性地,当用户设置的服务模式为老人模式后,终端设备仅向用户提供老人模式下的相应的应用程序的使用权限。而当用户设置的服务模式为青少年模式后,终端设备仅向用户提供青少年模式下的相应的应用程序的使用权限。Exemplarily, when the service mode set by the user is the elderly mode, the terminal device only provides the user with the right to use the corresponding application program in the elderly mode. However, when the service mode set by the user is the youth mode, the terminal device only provides the user with the right to use the corresponding application program in the youth mode.
目前,终端设备仅提供对应服务模式下相应的应用程序的使用权限的方法是:终端设备显示对应服务模式下的各个应用程序的图标,因此用户仅能操作这些应用程序,从而实现终端设备工作于对应服务模式的目的。At present, the method that the terminal device only provides the corresponding application program in the corresponding service mode is: the terminal device displays the icons of each application program in the corresponding service mode, so the user can only operate these application programs, so that the terminal device can work in the Corresponds to the purpose of the service model.
但是,在对应服务模式的终端设备的使用过程中发现终端设备存在功耗过大的问题。However, during the use of the terminal equipment corresponding to the service mode, it is found that the terminal equipment has a problem of excessive power consumption.
鉴于此,本申请实施例提供一种终端设备的控制方法,以降低对应服务模式的终端设备的使用过程中的终端设备功耗过大的问题。In view of this, an embodiment of the present application provides a method for controlling a terminal device, so as to reduce the problem of excessive power consumption of the terminal device during use of the terminal device corresponding to the service mode.
图3为本申请一个实施例提供的终端设备的控制方法的流程性示意图。如图3所示,本申请的方法包括:S301,S302和S303。该方法可以由图1所示的终端设备执行。例如,该终端设备为手机。FIG. 3 is a schematic flowchart of a method for controlling a terminal device provided by an embodiment of the present application. As shown in Fig. 3, the method of the present application includes: S301, S302 and S303. This method can be executed by the terminal device shown in FIG. 1 . For example, the terminal device is a mobile phone.
S301,接收第一指令,第一指令用于启动终端设备的系统初始化进程。S301. Receive a first instruction, where the first instruction is used to start a system initialization process of a terminal device.
首先,说明的是,本实施例中用于启动终端设备的系统初始化进程指的是用户在终端设备上设置了想要的服务模式(本申请中也称为第一服务模式)的情况下,终端设备启动系统初始化进程。First of all, it is explained that the system initialization process used to start the terminal device in this embodiment refers to the case where the user sets the desired service mode (also referred to as the first service mode in this application) on the terminal device, The terminal device starts the system initialization process.
例如,服务模式可以是老人模式、青少年模式、简易模式和省电模式,其中,当终端设备工作于某个服务模式时,通常仅提供该服务模式下相应的应用程序的使用权限。在此说明的是,本申请实施例中上述所述的老人模式、青少年模式、简易模式和省电模式仅是一种示例,不构成本申请的限制,另外,上述名称也仅为一种示例,也可以称为其他服务模式。For example, the service modes may be elderly mode, youth mode, simple mode and power saving mode, wherein, when the terminal device is working in a certain service mode, usually only the use authority of the corresponding application program in the service mode is provided. It should be noted here that the elderly mode, youth mode, simple mode and power saving mode mentioned above in the embodiments of the present application are just examples and do not constitute a limitation of the present application. In addition, the above names are also just examples , which can also be called other service modes.
在一种实施方案中,第一指令为用户在终端设备上的系统重启按键或系统重启按钮上输入的指令。In one embodiment, the first instruction is an instruction entered by a user on a system restart button or a system restart button on the terminal device.
例如,图4为本申请提供的一种用户输入第一指令的过程示意图。如图4所示,终端设备400上包括重启按键,终端设备400可以向用户提供显示界面c,该显示界面c包括服务模式1和设置服务模式1的设置开关401、服务模式2和设置服务模式2的设置开关402、服务模式3和设置服务模式3的设置开关403、服务模式4和设置服务模式4的设置开关404。当用户设置了想要的第一服务模式(例如该示例中,第一服务模式为服务模式1)后,用户长按该重启按键,终端设备400响应于用户长按重启按键的操作,可以显示显示界面d,之后,若用户将中间的按钮(显示界面d中的圆形图形)上滑至上滑重启按钮,则相当于向终端设备400输入了第一指令,以指示终端设备400启动系统初始化进程。For example, FIG. 4 is a schematic diagram of a process for a user to input a first instruction provided in this application. As shown in Figure 4, the
又例如,图5为本申请提供的另一种用户输入第一指令的过程示意图。如图5所示,终端设备500上包括重启按键,当用户基于终端设备500提供的显示界面e,可以点击显示界面e中的下拉列表按键,终端设备500响应于用户点击下拉列表按键的操作,显示显示界面f,如出现服务模式1、服务模式2、服务模式3和服务模式4;之后,用户从终端设备500配置的服务模式中设置自己想要的第一服务模式,例如用户可以点击显示界面f中的服务模式4,终端设备500响应于用户服务模式4,显示显示界面g;之后,用户长按重启按键,终端设备500响应于用户长按重启按键的操作,可以显示显示界面h,之后,若用户将中间的按钮(显示界面h中的圆形图形)上滑至上滑重启按钮,则相当于向终端设备500输入了第一指令,以指示终端设备500启动系统初始化进程。As another example, FIG. 5 is a schematic diagram of another process for a user to input a first instruction provided in this application. As shown in FIG. 5 , the
在另一种实施方案中,第一指令为用户输入的确定将终端设备当前的服务模式设置为第一服务模式的指令。In another embodiment, the first instruction is an instruction input by the user to determine to set the current service mode of the terminal device to the first service mode.
该实施方案中,若用户在终端设备上将终端设备当前的服务模式设置为了第一服务模式,那么终端设备可以触发重启功能,从而启动终端设备的系统初始化进程。In this embodiment, if the user sets the current service mode of the terminal device to the first service mode on the terminal device, the terminal device may trigger a restart function, thereby starting the system initialization process of the terminal device.
可选地,在该另一种实施方案中,终端设备根据第一指令启动系统初始化进程,包括:终端设备在第一指令的接收时刻之后的目标时刻启动系统初始化进程,所述目标时刻为预设时刻,或目标时刻与接收时刻之间的时长为预设时长。在此说明的是,本申请对目标时刻的具体数值不做限制。例如,可以是在第一指令的接收时刻之后的1秒内启动系统初始化进程。Optionally, in another embodiment, the terminal device starts the system initialization process according to the first instruction, including: the terminal device starts the system initialization process at a target time after the first instruction is received, and the target time is the preset Set the time, or the time between the target time and the receiving time as the preset time. It is noted here that the present application does not limit the specific value of the target time. For example, the system initialization process may be started within 1 second after the moment of receiving the first instruction.
可选地,该预设时长或所述目标时刻可以是用户输入的时长信息。换句话说,终端设备可以接收用户输入的时长信息,该时长信息用于设置预设时长或目标时刻。Optionally, the preset duration or the target moment may be duration information input by the user. In other words, the terminal device may receive duration information input by the user, and the duration information is used to set a preset duration or a target time.
S302,根据第一指令启动系统初始化进程。S302. Start a system initialization process according to the first instruction.
本实施例中,终端设备接收到第一指令后,便响应于该第一指令,启动系统初始化进程。In this embodiment, after receiving the first instruction, the terminal device starts a system initialization process in response to the first instruction.
其中,系统初始化进程也称为init进程。Wherein, the system initialization process is also referred to as the init process.
为便于理解,结合图6说明终端设备启动init进程的过程。如图6所示,终端设备在启动开机键时,会先开启一个引导程序(也叫做bootloader),这个引导程序执行后会把终端设备的操作系统拉起来,即会启动操作系统,当操作系统启动后,就会启动初始化(init)进程。在init进程中,终端设备会先启动第一服务(例如该第一服务也称为“early_mount”)以挂载各种文件系统,在启动early_mount的过程中会将第二服务(例如该第二服务也称为“selinux”)拉起来,即启动“selinux”,进一步地,在启动“selinux”的过程中,又会拉起第三服务(例如该第三服务也称为“propertyService”),即启动“propertyService”,然后再启动“propertyService”的过程中终端设备会加载运行命令(run command,rc)文件并进行解析,以用于启动终端设备中的一个或多个系统服务。其中,有关启动early_mount、之后再启动“early_mount”,再启动“propertyService”,然后再加载rc文件并进行解析的详细实现过程可以参考相关技术中的详细描述,此处不再赘述。For ease of understanding, the process of starting the init process by the terminal device will be described with reference to FIG. 6 . As shown in Figure 6, when the terminal device activates the power button, it will first start a boot program (also called bootloader). After the boot program is executed, the operating system of the terminal device will be pulled up, and the operating system will be started. After booting, the initialization (init) process is started. In the init process, the terminal device will first start the first service (for example, the first service is also called "early_mount") to mount various file systems, and the second service (for example, the second Service is also called "selinux") to start "selinux", and further, in the process of starting "selinux", it will pull up a third service (for example, the third service is also called "propertyService"), That is to start "propertyService", and then in the process of starting "propertyService", the terminal device will load and parse the run command (run command, rc) file, so as to start one or more system services in the terminal device. Among them, the detailed implementation process of starting early_mount, then starting "early_mount", then starting "propertyService", and then loading and parsing the rc file can refer to the detailed description in related technologies, and will not be repeated here.
S303,在系统初始化进程中加载第一运行命令文件,第一运行命令文件用于启动终端设备在第一服务模式应提供的应用程序的系统服务,所述第一服务模式为终端设备当前设置的服务模式。S303, load the first running command file in the system initialization process, the first running command file is used to start the system service of the application program that the terminal device should provide in the first service mode, and the first service mode is currently set by the terminal device service mode.
本实施例中,当终端设备根据第一指令启动系统初始化进程时,终端设备在init进程中加载rc文件时,仅加载用于启动终端设备在第一服务模式应提供的应用程序的系统服务的rc文件(本申请中也称为第一运行命令文件)。换句话说,本实施例中,终端设备在init进程中不加载用于启动其他服务模式下的应用程序的系统服务的rc文件。In this embodiment, when the terminal device starts the system initialization process according to the first instruction, when the terminal device loads the rc file in the init process, only the system service for starting the application program that the terminal device should provide in the first service mode is loaded. rc file (also referred to as the first run command file in this application). In other words, in this embodiment, the terminal device does not load the rc file of the system service used to start the application program in other service modes in the init process.
在第一种实施方案中,可以根据终端设备配置的多种服务模式(本申请中将终端设备可配置的多种服务模式的个数记为N,N为正整数),预先将init进程包括的所有的rc文件基于N个服务模式划分为N个运行命令文件组,该N个运行命令文件组与终端设备中的N个服务模式一一对应,其中,N个运行命令文件组中每个运行命令文件组中的rc文件用于启动对应的服务模式应提供的应用程序的系统服务。在这种情况下,终端设备在接收到用于启动系统初始化进程的第一指令后,便将N个运行命令文件组中与第一服务模式对应的命令文件组中的所有rc文件确定为要加载的第一运行命令文件,然后加载该第一运行命令文件。In the first embodiment, according to the multiple service modes configured by the terminal device (in this application, the number of multiple service modes configurable by the terminal device is denoted as N, where N is a positive integer), the init process includes All the rc files of the system are divided into N operation command file groups based on N service modes, and the N operation command file groups correspond to the N service modes in the terminal device one by one, wherein each of the N operation command file groups The rc file in the running command file group is used to start the system service of the application program that should be provided by the corresponding service mode. In this case, after the terminal device receives the first instruction for starting the system initialization process, it determines all the rc files in the command file group corresponding to the first service mode among the N running command file groups as load the first run command file, and then load the first run command file.
在第二种实施方案中,可以根据终端设备配置的多种服务模式(本申请中将终端设备可配置的多种服务模式的个数记为N,N为正整数),预先将init进程包括的所有的rc文件基于N个服务模式划分为一个公用运行命令文件组和N个运行命令文件组。其中,公用运行命令文件组中的运行命令文件用于启动N个服务模式均应提供的应用程序的系统服务,N个运行命令文件组中每个运行命令文件组中的运行命令文件用于启动对应的服务模式下应提供的且不同于其他服务模式提供的应用程序的系统服务。换句话说,公用运行命令文件组用于启动不同服务模式都需要的系统服务,而N个运行命令文件组中的每个运行命令文件组仅用于启动对应的服务模式下独自需要的系统服务。在这种情况下,终端设备在接收到用于启动系统初始化进程的第一指令后,便将N个运行命令文件组中与第一服务模式对应的命令文件组中的所有rc文件以及公用运行命令文件组中的所有rc文件确定为要加载的第一运行命令文件,然后加载该第一运行命令文件。In the second embodiment, according to the multiple service modes configured by the terminal device (in this application, the number of multiple service modes configurable by the terminal device is denoted as N, where N is a positive integer), the init process includes All the rc files of .com are divided into a common run command file group and N run command file groups based on N service modes. Wherein, the running command file in the public running command file group is used to start the system service of the application program that should be provided by the N service modes, and the running command file in each running command file group in the N running command file groups is used to start The system services that should be provided in the corresponding service mode and are different from the application programs provided by other service modes. In other words, the common run command file group is used to start the system services required by different service modes, and each run command file group in the N run command file groups is only used to start the system services independently required in the corresponding service mode . In this case, after the terminal device receives the first instruction for starting the system initialization process, it executes all the rc files in the command file group corresponding to the first service mode among the N running command file groups and the common All rc files in the command file group are determined as the first running command file to be loaded, and then the first running command file is loaded.
应理解第二种实施方案与第一种实施方案相比,将用于启动不同服务模式都需要的系统服务的运行命令文件放到了一个组中,就不需要再将用于启动不同服务模式都需要的系统服务的运行命令文件分别放到N个运行命令文件组中,因此还可以节省用于存储所有运行命令文件的存储空间。It should be understood that the second embodiment, compared with the first embodiment, puts the running command files used to start the system services required by different service modes into one group, so that there is no need to use the system services used to start different service modes. The running command files of the required system services are respectively put into N running command file groups, so the storage space for storing all the running command files can also be saved.
当终端设备仅加载用于启动终端设备在第一服务模式应提供的应用程序的系统服务的rc文件,而不加载用于启动其他服务模式下的应用程序的系统服务的rc文件时,终端设备便仅会启动第一服务模式应提供的应用程序的系统服务,而不启动其他服务模式下的应用程序的系统服务,进一步地,终端设备便仅会向提供第一服务模式下相应的应用程序的使用权限,而不提供第一服务模式下相应的应用程序的使用权限,从而使得所述终端设备工作于第一服务模式。When the terminal device only loads the rc file used to start the system service of the application program that the terminal device should provide in the first service mode, and does not load the rc file used to start the system service of the application program in other service modes, the terminal device It will only start the system service of the application program that should be provided by the first service mode, and will not start the system service of the application program in other service modes, and further, the terminal device will only provide the corresponding application program in the first service mode The use right of the corresponding application program in the first service mode is not provided, so that the terminal device works in the first service mode.
本实施例中,终端设备在系统初始化进程中仅启动了第一服务模式下的应用程序的系统服务,即终端设备在系统初始化进程中没有启动其他服务模式下的应用程序的系统服务,因此,使得终端设备在工作于第一服务模式时而不运行其他服务模式下的应用程序的系统服务,从而降低了工作于第一服务模式时的终端设备的功耗。In this embodiment, the terminal device only starts the system service of the application program in the first service mode during the system initialization process, that is, the terminal device does not start the system service of the application program in other service modes during the system initialization process. Therefore, When the terminal device works in the first service mode, it does not run system services of application programs in other service modes, thereby reducing the power consumption of the terminal device in the first service mode.
可选地,当启动终端设备在第一服务模式应提供的应用程序的系统服务后,所述方法还包括:显示与第一服务模式关联的应用程序的图标。该实施例中,由于终端设备仅显示了与第一服务模式关联的应用程序的图标,即没有显示与第一服务模式不提供的应用程序的图标,因此可以进一步地降低终端工作于第一服务模式时的终端设备的功耗。Optionally, after starting the system service of the application program that the terminal device should provide in the first service mode, the method further includes: displaying an icon of the application program associated with the first service mode. In this embodiment, since the terminal device only displays the icons of the application programs associated with the first service mode, that is, the icons of the application programs not provided by the first service mode are not displayed, so it can further reduce the number of terminals working in the first service mode. The power consumption of the terminal equipment in the mode.
为便于理解,结合图7说明本申请提供的一种终端设备的控制方法的详细实施例。如图7所示,该方法包括:For ease of understanding, a detailed embodiment of a method for controlling a terminal device provided in this application is described with reference to FIG. 7 . As shown in Figure 7, the method includes:
S701,用户在终端设备上设置第一服务模式。S701. A user sets a first service mode on a terminal device.
例如,用户可以通过图4所示的方法在终端设备显示界面上设置想要设置的服务模式(即为第一服务模式)。For example, the user may set the desired service mode (ie, the first service mode) on the display interface of the terminal device through the method shown in FIG. 4 .
又例如,用户可以通过图5所示的方法在终端设备显示界面上设置想要设置的服务模式(即为第一服务模式)。For another example, the user may set the desired service mode (ie, the first service mode) on the display interface of the terminal device through the method shown in FIG. 5 .
S702,重启手机。S702, restart the mobile phone.
其中,重启手机的操作就可以认为是用户向终端设备发送第一指令,以指示终端设备启动init进程。Wherein, the operation of restarting the mobile phone can be regarded as the user sending the first instruction to the terminal device to instruct the terminal device to start the init process.
S703,终端设备启动init进程,进入到设置的第一服务模式。S703, the terminal device starts the init process, and enters the set first service mode.
具体地,如图7所示,终端设备启动init进程包括:终端设备会先开启引导程序(也叫做bootloader),这个引导程序执行后会把终端设备的操作系统拉起来,即会启动操作系统,当操作系统启动后,再启动初始化(init)进程。在终端设备启动init进程中,终端设备会先启动第一服务、第二服务和第三服务,然后终端设备进行rc文件的加载。其中,关于第一服务、第二服务和第三服务可以参考图3所示实施例中的描述,此处不再赘述。Specifically, as shown in Figure 7, starting the init process of the terminal device includes: the terminal device will first start the bootloader (also called bootloader), and after the bootloader is executed, the operating system of the terminal device will be pulled up, that is, the operating system will be started, When the operating system starts, it starts the initialization (init) process. When the terminal device starts the init process, the terminal device will first start the first service, the second service and the third service, and then the terminal device will load the rc file. Wherein, for the first service, the second service and the third service, reference may be made to the description in the embodiment shown in FIG. 3 , and details are not repeated here.
具体地,如图7所示,本实施例中,当终端设备在进行rc文件的加载时,会确定每个服务模式应提供的应用程序的系统服务,然后基于不同模式对应的不同系统服务,将所有的rc文件进行分组整理。例如,假设有N个服务模式,则可以将所有的rc文件分成N组,N个rc文件组中每个rc文件组中的rc文件用于启动对应的服务模式应提供的应用程序的系统服务,又或者,可以将所有的rc文件分成公用rc件组和N个运行命令文件组,N个rc文件组与终端设备中的N个服务模式一一对应,所述N个rc文件组中每个rc文件组中的运行命令文件用于启动对应的服务模式下应提供的且不同于其他服务模式提供的应用程序的系统服务。最后,仅加载与第一服务模式对应的所有运行命令文件组中的所有rc文件,从而以实现启动与第一服务模式对应的应用程序的系统服务。Specifically, as shown in FIG. 7, in this embodiment, when the terminal device is loading the rc file, it will determine the system service of the application program that each service mode should provide, and then based on the different system services corresponding to different modes, Organize all rc files in groups. For example, assuming that there are N service modes, all rc files can be divided into N groups, and the rc files in each rc file group in the N rc file groups are used to start the system service of the application program that the corresponding service mode should provide , or, all rc files can be divided into common rc file groups and N running command file groups, N rc file groups correspond to N service modes in the terminal device one by one, and each of the N rc file groups The running command file in each rc file group is used to start the system service that should be provided in the corresponding service mode and is different from the application program provided by other service modes. Finally, only all the rc files in all the running command file groups corresponding to the first service mode are loaded, so as to realize the system service of starting the application program corresponding to the first service mode.
上文中结合图1至图7,详细描述了本申请实施例提供的方法,下面将结合图8和图9,详细描述本申请实施例提供的终端设备。The method provided by the embodiment of the present application is described in detail above with reference to FIG. 1 to FIG. 7 , and the terminal device provided by the embodiment of the present application will be described in detail below in conjunction with FIG. 8 and FIG. 9 .
图8示出了本申请实施例提供的一种终端设备800的结构性示意图。如图8所示,该终端设备800包括:接收模块801和处理模块802。装置800可以用于实现前述任意方法实施例中的方法。FIG. 8 shows a schematic structural diagram of a
作为一个示例,接收模块801可以用于实现S301,处理模块802可以用于实现S302。As an example, the receiving module 801 may be used to implement S301, and the processing module 802 may be used to implement S302.
应理解,这里的终端设备800以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选的例子中,本领域技术人员可以理解,终端设备800可以具体为上述方法实施例中的终端设备,或者,上述方法实施例中终端设备的功能可以集成在终端设备800中,终端设备800可以用于执行上述方法实施例中与终端设备对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be understood that the
上述终端设备800具有实现上述方法实施例中终端设备执行的相应步骤的功能;上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。The above-mentioned
在本申请的实施例中,图8中的终端设备800也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。In the embodiment of the present application, the
图9是本申请实施例提供的另一种终端设备900的示意性框图。该终端设备900包括处理器910、收发器920和存储器930。其中,处理器910、收发器920和存储器930通过内部连接通路互相通信,该存储器930用于存储指令,该处理器920用于执行该存储器930存储的指令,以控制该收发器920发送信号和/或接收信号。FIG. 9 is a schematic block diagram of another terminal device 900 provided by an embodiment of the present application. The terminal device 900 includes a processor 910 , a transceiver 920 and a memory 930 . Wherein, the processor 910, the transceiver 920 and the memory 930 communicate with each other through an internal connection path, the memory 930 is used to store instructions, and the processor 920 is used to execute the instructions stored in the memory 930 to control the transceiver 920 to send signals and /or to receive a signal.
应理解,终端设备900可以具体为上述方法实施例中的终端设备,或者,上述方法实施例中终端设备的功能可以集成在终端设备900中,终端设备900可以用于执行上述方法实施例中与终端设备对应的各个步骤和/或流程。可选地,该存储器930可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器910可以用于执行存储器中存储的指令,并且该处理器执行该指令时,该处理器可以执行上述方法实施例中与终端设备对应的各个步骤和/或流程。It should be understood that the terminal device 900 may specifically be the terminal device in the foregoing method embodiments, or, the functions of the terminal device in the foregoing method embodiments may be integrated into the terminal device 900, and the terminal device 900 may be used to perform the above-mentioned method embodiments related to Each step and/or process corresponding to the terminal device. Optionally, the memory 930 may include read-only memory and random-access memory, and provides instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor 910 may be configured to execute instructions stored in the memory, and when the processor executes the instructions, the processor may execute various steps and/or processes corresponding to the terminal device in the foregoing method embodiments.
应理解,在本申请实施例中,该处理器910可以是中央处理单元(centralprocessing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, the processor 910 may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC ), field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor executes the instructions in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, no detailed description is given here.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质用于存储计算机程序,该计算机程序用于实现上述方法实施例中终端设备对应的方法。The present application also provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is used to implement the method corresponding to the terminal device in the foregoing method embodiments.
本申请还提供了一种芯片系统,该芯片系统用于支持上述方法实施例中终端设备实现本申请实施例所示的功能。The present application also provides a chip system, which is used to support the terminal device in the foregoing method embodiment to realize the functions shown in the embodiment of the present application.
本申请还提供了一种计算机程序产品,该计算机程序产品包括计算机程序(也可以称为代码,或指令),当该计算机程序在计算机上运行时,该计算机可以执行上述方法实施例所示的终端设备对应的方法。The present application also provides a computer program product. The computer program product includes a computer program (also called code, or instruction). When the computer program is run on a computer, the computer can execute the above-mentioned methods shown in the above method embodiments. The method corresponding to the terminal device.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the modules and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device, and module can refer to the corresponding process in the foregoing method embodiment, and details are not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, and various media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应所述以权利要求的保护范围为准。The above is only the specific implementation of the application, but the protection scope of the embodiment of the application is not limited thereto, and any skilled person familiar with the technical field can easily think of changes within the technical scope disclosed in the embodiment of the application Or replacement, should be covered within the scope of protection of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application should be based on the scope of protection of the claims.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210850114.XA CN115080149B (en) | 2022-07-20 | 2022-07-20 | Terminal device control method and terminal device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210850114.XA CN115080149B (en) | 2022-07-20 | 2022-07-20 | Terminal device control method and terminal device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115080149A CN115080149A (en) | 2022-09-20 |
| CN115080149B true CN115080149B (en) | 2023-06-27 |
Family
ID=83259312
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210850114.XA Active CN115080149B (en) | 2022-07-20 | 2022-07-20 | Terminal device control method and terminal device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115080149B (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101873385A (en) * | 2010-06-04 | 2010-10-27 | 北京播思软件技术有限公司 | Device and method for entering power-saving mode of hand-held terminal rapidly |
| CN105335178A (en) * | 2014-07-28 | 2016-02-17 | 重庆重邮信科通信技术有限公司 | Startup control method and apparatus |
| CN108986814A (en) * | 2018-09-04 | 2018-12-11 | 出门问问信息科技有限公司 | A kind of method and device waking up application service |
| CN110856196A (en) * | 2019-11-18 | 2020-02-28 | 展讯通信(上海)有限公司 | WLAN service optimization method, terminal device and storage medium |
| CN111752581A (en) * | 2020-05-22 | 2020-10-09 | 中国邮政储蓄银行股份有限公司 | Distributed system upgrading method and device and computer system |
| CN112035172A (en) * | 2020-09-03 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Operating system starting method, device, server and storage medium |
| CN112527403A (en) * | 2019-09-19 | 2021-03-19 | 华为技术有限公司 | Application starting method and electronic equipment |
| CN113204353A (en) * | 2021-04-27 | 2021-08-03 | 新华三大数据技术有限公司 | Big data platform assembly deployment method and device |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010500667A (en) * | 2006-08-07 | 2010-01-07 | ベア・システムズ・インコーポレイテッド | System and method for providing hardware virtualization in a virtual machine environment |
| CN106468943A (en) * | 2016-09-29 | 2017-03-01 | 北京金山安全软件有限公司 | Application control method and device and terminal |
| CN109144596B (en) * | 2017-06-16 | 2020-09-18 | 腾讯科技(深圳)有限公司 | Quick starting method, device, terminal, server and system |
| ES2989818T3 (en) * | 2018-08-06 | 2024-11-27 | Sicpa Holding Sa | Anti-counterfeiting protection of digital files |
| CN113643800A (en) * | 2021-08-12 | 2021-11-12 | 细胞谷(南京)生物科技有限公司 | Remote monitoring system based on community medical mode |
-
2022
- 2022-07-20 CN CN202210850114.XA patent/CN115080149B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101873385A (en) * | 2010-06-04 | 2010-10-27 | 北京播思软件技术有限公司 | Device and method for entering power-saving mode of hand-held terminal rapidly |
| CN105335178A (en) * | 2014-07-28 | 2016-02-17 | 重庆重邮信科通信技术有限公司 | Startup control method and apparatus |
| CN108986814A (en) * | 2018-09-04 | 2018-12-11 | 出门问问信息科技有限公司 | A kind of method and device waking up application service |
| CN112527403A (en) * | 2019-09-19 | 2021-03-19 | 华为技术有限公司 | Application starting method and electronic equipment |
| CN110856196A (en) * | 2019-11-18 | 2020-02-28 | 展讯通信(上海)有限公司 | WLAN service optimization method, terminal device and storage medium |
| CN111752581A (en) * | 2020-05-22 | 2020-10-09 | 中国邮政储蓄银行股份有限公司 | Distributed system upgrading method and device and computer system |
| CN112035172A (en) * | 2020-09-03 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Operating system starting method, device, server and storage medium |
| CN113204353A (en) * | 2021-04-27 | 2021-08-03 | 新华三大数据技术有限公司 | Big data platform assembly deployment method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115080149A (en) | 2022-09-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR102221023B1 (en) | Electronic device and method for processing image | |
| US9749730B2 (en) | Method for processing data and electronic device therefor | |
| CN110837378B (en) | Calling method and device for software development kit SDK function | |
| EP2955907B1 (en) | Wearable electronic device, system and control method | |
| CN114880251B (en) | Storage unit access method, access device and terminal equipment | |
| JP2023546870A (en) | Interface display method and electronic device | |
| CN112966130B (en) | Multimedia resource display method, device, terminal and storage medium | |
| US20250175208A1 (en) | Wireless Communication Circuit, Bluetooth Communication Switching Method, and Electronic Device | |
| CN117215990A (en) | Inter-core communication method and device of multi-core chip and multi-core chip | |
| CN114879894B (en) | Function starting method, user interface and electronic equipment | |
| CN110086814B (en) | Data acquisition method and device and storage medium | |
| CN108401194B (en) | Time stamp determination method, apparatus and computer-readable storage medium | |
| WO2022228065A1 (en) | Function skipping method and electronic device | |
| CN111726848B (en) | Equipment binding method, target starting device, fixed terminal and storage medium | |
| CN115080149B (en) | Terminal device control method and terminal device | |
| EP4447424A1 (en) | Wallpaper setting method and electronic device | |
| CN116700826A (en) | Widget starting method, device, equipment and computer readable storage medium | |
| CN110941458B (en) | Method, device, equipment and storage medium for starting application program | |
| CN110598156B (en) | Drawing data processing method, drawing data processing device, terminal, server and storage medium | |
| CN111464829A (en) | Method, device and equipment for switching media data and storage medium | |
| CN116088726B (en) | Application icon display method and terminal equipment | |
| CN113986572B (en) | Degradation method, device and system for token generation service | |
| CN111275561B (en) | Method, device, computer equipment and storage medium for acquiring association relation | |
| CN114173315B (en) | Bluetooth connection method and terminal device | |
| CN111414563B (en) | Webpage interaction method, device, computer equipment and storage medium |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |