WO2016172878A1 - 一种控制终端的方法、装置及终端设备 - Google Patents

一种控制终端的方法、装置及终端设备 Download PDF

Info

Publication number
WO2016172878A1
WO2016172878A1 PCT/CN2015/077803 CN2015077803W WO2016172878A1 WO 2016172878 A1 WO2016172878 A1 WO 2016172878A1 CN 2015077803 W CN2015077803 W CN 2015077803W WO 2016172878 A1 WO2016172878 A1 WO 2016172878A1
Authority
WO
WIPO (PCT)
Prior art keywords
broadcast message
terminal
message
operating system
application software
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.)
Ceased
Application number
PCT/CN2015/077803
Other languages
English (en)
French (fr)
Inventor
郭玉华
倪元强
牛少勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to US15/570,106 priority Critical patent/US20180152893A1/en
Priority to EP15890258.5A priority patent/EP3282773B1/en
Priority to CN201580007869.1A priority patent/CN106797613B/zh
Priority to PCT/CN2015/077803 priority patent/WO2016172878A1/zh
Publication of WO2016172878A1 publication Critical patent/WO2016172878A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0238Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is an unwanted signal, e.g. interference or idle signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the embodiments of the present invention relate to the field of electronic products, and in particular, to a method, an apparatus, and a terminal device for controlling a terminal.
  • terminals such as smart phones and personal digital assistants (PDAs) have been widely used for their powerful functions.
  • PDAs personal digital assistants
  • the terminal itself pre-installs the operating system and various application software.
  • the terminal can also download rich application software according to the user's instructions. After installing the application software, the terminal itself can be more powerful and more convenient to operate.
  • the terminal includes an operating system and various application software
  • any application software has a broadcast message (such as a software update message), or the operating system has a broadcast message (such as an operating system upgrade message)
  • the terminal needs to start the operating system. And performing corresponding operations according to the broadcast message.
  • the terminal When there are many application software installed in the terminal, or there are frequent operating system upgrades, the terminal will receive broadcast messages frequently. When the terminal receives the broadcast message, it needs to start the operating system, which causes frequent startup of the terminal operating system and high power consumption of the terminal.
  • the embodiments of the present invention provide a method, a device, and a terminal device for controlling a terminal, which are used to solve the problem that the current operating system frequently starts the operating system, resulting in high energy consumption.
  • the first aspect provides a method for controlling a terminal, including: detecting, by a terminal, a message received from an external device; and when detecting that the message is a broadcast message, determining whether the broadcast message is a useless broadcast message; When the broadcast message is a useless broadcast message, if the terminal is in a sleep state, the operating system of the terminal is prohibited from being started.
  • the detecting, by the terminal, the message received by the terminal includes:
  • Obtaining a user identifier included in the message if the user identifier corresponds to any application software included in the terminal, or the user identifier corresponds to an operating system of the terminal, determining that the message is Broadcast message; or
  • the determining whether the broadcast message is a useless broadcast message includes: starting a preset prohibiting operating system In the user identifier list, the user identifier included in the broadcast message is searched; when the preset user-inhibited operating system startup user identifier list includes the user identifier, the broadcast message is determined to be a useless broadcast message.
  • the method further includes:
  • the operating system of the terminal in the dormant state is activated; if the broadcast message includes the user identifier Corresponding to any application software installed in the terminal, the operating system of the terminal in the sleep state is started, and any one of the application software is started.
  • the fifth possible implementation manner further includes:
  • the application software is started;
  • the message is a useless broadcast message, and the user identifier included in the broadcast message has a corresponding relationship with any one of the application software installed in the terminal, the application software is prohibited from being started.
  • an apparatus for controlling a terminal including:
  • a detecting unit configured to detect a message received by the terminal from the outside
  • a determining unit configured to receive a detection result sent by the detecting unit, and when the detection result is that the message is a broadcast message, determine whether the broadcast message is a useless broadcast message;
  • the initiating unit is configured to receive the judgment result sent by the judging unit.
  • the judgment result is that the broadcast message is a useless broadcast message
  • the terminal is in a dormant state, the operating system of the terminal is prohibited from being activated.
  • the detecting unit is specifically configured to:
  • Obtaining a user identifier included in the message if the user identifier corresponds to any application software included in the terminal, or the user identifier corresponds to an operating system of the terminal, determining that the message is Broadcast message; or
  • the determining unit when the determining unit is configured to determine whether the broadcast message is a useless broadcast message, specifically: Determining the operating system to start the user identification list, and searching for the user identifier included in the broadcast message; when the preset forbidden operating system startup user identifier list includes the user identifier, determining that the broadcast message is Useless broadcast messages.
  • the forbidden activation unit is specifically configured to: obtain a process corresponding to the user identifier included in the broadcast message; and acquiring an application software or an operating system corresponding to the process; obtaining state information corresponding to the application software or the operating system from a state list saved in the terminal, The state list is used to save state information of whether each application software or operating system installed in the terminal is activated; when the state information corresponding to the application software or the operating system is in a sleep state, Deleting the recipient identifier corresponding to the broadcast message in the receiver identifier list saved in the terminal, to prohibit starting the operating system of the terminal in the dormant state; wherein the receiver identifier list is used to save the terminal a recipient identifier corresponding to the externally received message, the recipient identifier being soft with the application Or the corresponding operating system; or clear the user identification included in the broadcast message stored in the recipient's
  • the device further includes a starting unit, When the broadcast message is determined to be a useful broadcast message, if the user identifier included in the broadcast message has a corresponding relationship with the operating system, the operating system of the terminal in the dormant state is started; if the broadcast message includes The user identifier has a corresponding relationship with any application software installed in the terminal, and the terminal in the sleep state starts the operating system, and starts any one of the application software.
  • the apparatus further includes processing a unit, configured to: if the terminal is in an activated state, when the message is a useful broadcast message, and the user identifier included in the message has a corresponding relationship with any application software installed in the terminal, Any one of the application software; when the message is a useless broadcast message, and the user identifier included in the broadcast message has a corresponding relationship with any one of the application software installed in the terminal, prohibiting starting the any application software .
  • a terminal device including:
  • a radio frequency RF circuit for receiving a message from the outside and transmitting the received message to the processor
  • a memory for storing software programs and modules
  • a processor configured to run a software program and a module stored in the memory, to perform the following operations: the message received by the RF circuit is detected; when the message is detected as a broadcast message, determining whether the broadcast message is When it is determined that the broadcast message is a useless broadcast message, if the terminal device is in a sleep state, the operating system of the terminal device is prohibited from being activated.
  • the detecting, by the terminal, the message received by the terminal includes:
  • the message is a broadcast message
  • the processor when the processor is configured to determine whether the broadcast message is a useless broadcast message, specifically:
  • the operating system startup user identification list is configured to search for the user identifier included in the broadcast message.
  • the preset user system identification list is disabled, the user identifier is determined to be useless. Broadcast message.
  • the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect in a third possible implementation manner, when the broadcast message is a useless broadcast message If the terminal is in a dormant state, the operating system of the terminal is prohibited from being activated.
  • the method includes: acquiring a process corresponding to the user identifier included in the broadcast message; and acquiring an application software or an operating system corresponding to the process; acquiring, from the state list saved by the memory, a state corresponding to the application software or the operating system And deleting the recipient identifier corresponding to the broadcast message in the receiver identifier list to prohibit starting the operating system of the terminal device in the sleep state when the application software or the state information corresponding to the operating system is in the dormant state; Or deleting the user identifier included in the broadcast message in the recipient identifier list saved by the terminal to prohibit starting the operating system of the terminal in the sleep state.
  • the processor is further used Performing the following operations: when the broadcast message is determined to be a useful broadcast message, if the user identifier included in the broadcast message has a corresponding relationship with the operating system, the operating system of the terminal device in the dormant state is activated; If the user identifier of the message is associated with any application software installed in the terminal device, the terminal device in the sleep state starts the operating system, and starts any one of the application software.
  • the processor is further used The following operations are performed: when the terminal device is in the activated state, when the message is a useful broadcast message, and the user identifier included in the message has a corresponding relationship with any application software installed in the terminal device, And starting the any one of the application software; when the message is a useless broadcast message, and the user identifier included in the broadcast message has a corresponding relationship with any one of the application software installed in the terminal device, prohibiting starting any one of the application.
  • the terminal detects the message received from the outside; when determining that the message is a broadcast message, determining whether to start the operating system according to whether the broadcast message is a useful broadcast message.
  • the terminal determines whether the received broadcast message is a useful broadcast message.
  • the broadcast message is a useless broadcast message and the operating system of the terminal is in a dormant state, the operating system is prohibited from being started, thereby avoiding the broadcast message. For a long time, the process of starting the operating system frequently; and the operating system is not frequently awakened, which can effectively reduce the power consumption of the terminal.
  • FIG. 1 is a flowchart of controlling a terminal according to an embodiment of the present invention
  • FIG. 2 is a flowchart 1 of a control terminal in a specific application scenario according to an embodiment of the present invention
  • FIG. 3 is a flowchart 2 of a control terminal in a specific application scenario according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for controlling a terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • a method for a terminal to control an operating system startup includes:
  • Step 100 Detect a message received by the terminal from the outside.
  • the terminal may receive multiple types of messages from the outside, such as short messages sent by other terminals, short messages sent by the operator, messages sent by the base station, and messages sent by the application software service provider, and the operating system. Messages sent by the service provider, etc.
  • the message sent by the application software service provider and the message sent by the operating system service provider may be used as the broadcast message.
  • the terminal Since the message received by the terminal includes the multiple types, when the terminal receives the message, the received message should be detected, and according to the detection result, it is determined whether to perform a startup operation on the operating system.
  • Step 110 When it is detected that the message is a broadcast message, determine whether the broadcast message is a useless broadcast message.
  • the terminal pre-establishes an operating system control application program locally, and the operating system control application determines whether the received message is a broadcast message, and determines that the received message is a broadcast message. Whether the broadcast message is a useless broadcast message and whether the operating system performs a boot operation.
  • the method for the terminal to determine, by the operating system control application, whether the received message is a broadcast message includes: the message received by the terminal includes a field describing the user identifier, The terminal obtains the user identifier included in the message by using the field that is included in the message, and the user identifier is associated with the application software or the operating system installed in the terminal. Therefore, the terminal according to the obtained user identifier.
  • the receiver of the message may be determined, and the receiver is any application software or operating system installed in the terminal; the terminal saves the identifier of the receiver to a local recipient identifier list, and the terminal receives the When the receiver identifier corresponding to the message is located in the receiver identifier list, the terminal sends the received message to the receiver corresponding to the message; when determining that the user identifier is associated with any application software installed in the terminal Correspondingly, when the user identifier corresponds to the operating system of the terminal, the message is determined to be a broadcast message. For example, when the terminal has a correspondence between the user identifier and the WeChat application software included in the message, the terminal installs the application locally.
  • the message received by the terminal includes a field describing the message type, and the terminal acquires the message type included in the message.
  • the message type is a broadcast message type
  • the message is determined to be a broadcast message.
  • the message when the message is the specific broadcast message, the message may be determined to be a broadcast message corresponding to the operating system.
  • the terminal controls the application through the operating system, and determines whether the received message is a broadcast message according to a corresponding field included in the message received by the terminal, and the determining process is convenient and fast, and the determination result is highly accurate.
  • Step 120 When the broadcast message is a useless broadcast message, if the terminal is in a sleep state, the operating system of the terminal is prohibited from being started.
  • the terminal determines whether the message is a useless broadcast message by using an operating system control application, and if so, prohibits the operating system from being started; otherwise, the operating system is started.
  • the terminal can determine, by the operating system control application, whether the broadcast message is a useless broadcast message, including: searching for a user identifier included in the broadcast message in a preset forbidden operating system startup user identifier list
  • the prohibition operating system startup user identifier list includes one or more prohibited startup user identifiers, and the prohibition startup user identifier is preset The user ID of the application system that is not allowed to start the operating system, or the user ID that is forbidden to be activated as the application software or the operating system corresponding to the operating system, or the user identifier corresponding to the application software that is forbidden to automatically exit the user.
  • the user identifier corresponding to the application software whose application identifier is the latest installation of the terminal and is not confirmed to allow the operating system to start setting is prohibited; and the user included in the broadcast message is included in the preset prohibited operating system startup user identification list.
  • marking it is determined that the broadcast message is a useless broadcast message.
  • the method for disabling the startup of the operating system when the broadcast message is determined to be a useless broadcast message includes: acquiring, by the terminal, a process corresponding to the user identifier included in the broadcast message; and performing, according to the acquired process Searching for the application software or the operating system corresponding to the process; obtaining the state information corresponding to the application software or the operating system from the locally saved state list, where the state list includes each application software or operating system Corresponding state information; when the state information corresponding to the application software or the operating system is dormant, clearing the receiver identifier included in the receiver identifier list, so that the broadcast message is not sent to the user identifier Application software or operating system to prevent the startup of operating systems and applications.
  • the receiver identifier list includes a user identifier corresponding to the message received by the terminal from the outside, and the terminal determines, by the user identifier, that the broadcast message is a message corresponding to the application software, or the broadcast message corresponds to the operating system. Message.
  • the application software or the operating system when the status information corresponding to the application software or the operating system is the startup state, the application software or the operating system that has been started is not processed.
  • the terminal determines, by the operating system control application, that the broadcast message is a useful broadcast message
  • the operating system is started;
  • the user identifier of the broadcast message has a corresponding relationship with any application software, and the operating system is in a dormant state, the operating system is started, and any one of the application software is started; wherein the any application software is installed in the terminal. application.
  • the message is a useful broadcast message, and the user identifier included in the message has a corresponding relationship with any locally installed application software. Initiating the arbitrary application software; when the message is a useless broadcast message, and the user identifier included in the broadcast message has a corresponding relationship with any application software installed in the terminal, prohibiting starting the arbitrary An application software.
  • the terminal clears the receiver identifier or the user identifier included in the receiver identifier list through the operating system application, so that the useless broadcast message cannot be sent to the corresponding receiver, and the interception of the useless broadcast message is reached.
  • the purpose of starting the operating system is to reduce the number of times the terminal wakes up during the sleep process, which can effectively reduce power consumption and increase the standby time of the terminal.
  • the following describes the method for prohibiting the operating system from being started by using the terminal in a sleep state as an example:
  • Step 200 The terminal receives the message.
  • Step 210 The terminal determines whether the message is a broadcast message, and if yes, performs step 220; otherwise, returns to step 200.
  • Step 220 The terminal determines whether the user ID list included in the message is not included in the locally-disabled operating system startup user identifier list. If yes, go to step 240; otherwise, go to step 230.
  • the prohibiting the operating system startup user identifier list includes one or more forbidden activation user identifiers
  • the prohibition startup user identifier is a preset user identifier that is not allowed to start the operating system, or the prohibition is started.
  • the user identifier is the application identifier corresponding to the application software or the operating system that is forcibly cleared, or the user identifier corresponding to the application software that is forbidden to automatically exit the user ID, or the application identifier is forbidden to be the latest installation of the terminal and is not confirmed. Whether the operating system starts to set the user identifier corresponding to the set application software; when the preset prohibiting the operating system startup user identifier list includes the user identifier included in the broadcast message, determining that the broadcast message is a useless broadcast message.
  • Step 230 The terminal acquires the user identifier included in the broadcast message; if the user identifier of the broadcast message has a corresponding relationship with the operating system, the operating system is started; if the user identifier of the broadcast message corresponds to any application software, Relationship, start the operating system, and start the appointment I mean an application software.
  • Step 240 The terminal locally acquires a process corresponding to the user identifier included in the broadcast message, and acquires an application software or an operating system corresponding to the process. Then, step 250 is performed.
  • Step 250 The terminal obtains the state information corresponding to the application software or the operating system from the locally saved state list, and determines whether the state information corresponding to the application software or the operating system is the startup state. If yes, go to step 260; otherwise, Go to step 270.
  • Step 260 The terminal does not process the started process.
  • Step 270 The terminal clears the application identifier corresponding to the application software or the operating system included in the receiver identifier list, so that the broadcast message cannot be sent to the application software or the operating system, and the broadcast message is prevented from being triggered.
  • the operating system The operating system.
  • the terminal determines whether the received broadcast message is a useful broadcast message.
  • the broadcast message is a useless broadcast message and the operating system of the terminal is in a dormant state, the operating system is prohibited from being started, thereby avoiding a large number of broadcast messages.
  • the process of frequently starting the operating system; and, the operating system is not frequently awakened, and the power consumption of the terminal can be effectively reduced.
  • the following describes the method for the terminal to wake up the application software by taking the terminal in the activated state as an example:
  • Step 300 The terminal receives the message.
  • Step 310 The terminal determines whether the message is a broadcast message, and if yes, performs step 320; otherwise, returns to step 300.
  • Step 320 The terminal determines whether the locally saved user-initiated user identification list contains the user identifier included in the message, and if yes, step 340 is performed; otherwise, step 330 is performed.
  • Step 330 The terminal acquires the user identifier included in the broadcast message. If the user identifier included in the broadcast message has a corresponding relationship with any application software, the application software is started.
  • Step 340 The terminal locally acquires the process corresponding to the user identifier included in the broadcast message, and acquires the application software corresponding to the process; and then performs step 350.
  • Step 350 The terminal obtains the state information corresponding to the application software from the locally saved state list, and determines whether the state information corresponding to the application software is the startup state. If yes, step 360 is performed; otherwise, step 370 is performed.
  • Step 360 The terminal does not process the started process.
  • Step 370 The terminal clears the receiver identifier corresponding to the application software included in the receiver identifier list, so that the broadcast message cannot be sent to the application software, and the broadcast message is prevented from triggering the application software.
  • the terminal determines whether the received broadcast message is a useful broadcast message.
  • the application software corresponding to the wake-up broadcast message is prohibited from being awake, thereby avoiding
  • the process of frequently waking up the application software; and, the application software is not frequently awake can effectively reduce the power consumption of the terminal.
  • an embodiment of the present invention further provides an apparatus for controlling a terminal, including a detecting unit 40, a determining unit 41, and a prohibiting starting unit 42, wherein:
  • the detecting unit 40 is configured to detect a message received by the terminal from the outside;
  • the determining unit 41 is configured to receive the detection result sent by the detecting unit 40, and when the detection result is that the message is a broadcast message, determine whether the broadcast message is a useless broadcast message;
  • the initiating unit 42 is configured to receive the determination result sent by the determining unit 41.
  • the result of the determination is that the broadcast message is a useless broadcast message, if the terminal is in a dormant state, the operating system of the terminal is prohibited from being activated.
  • the detecting unit 40 is specifically configured to: obtain a user identifier included in the message; if the user identifier corresponds to any application software included in the terminal, or the user identifier and the identifier If the operating system of the terminal is corresponding, the message is determined to be a broadcast message; or the message type included in the message is obtained.
  • the message type is a broadcast message type
  • the message is determined to be a broadcast message.
  • the determining unit 41 is configured to: when determining whether the broadcast message is a useless broadcast message, specifically: searching for a user identifier included in the broadcast message in a preset forbidden operating system startup user identifier list ; when the preset prohibits the operating system to start the user identification list contains When the user identifier is described, the broadcast message is determined to be a useless broadcast message.
  • the forbidden initiating unit 42 is configured to: obtain a process corresponding to the user identifier included in the broadcast message; and acquire an application software or an operating system corresponding to the process; and save the state from the terminal In the list, the state information corresponding to the application software or the operating system is obtained, where the state list is used to save state information of whether each application software installed in the terminal or the operating system has been activated; When the application software or the status information corresponding to the operating system is in the dormant state, the recipient identifier corresponding to the broadcast message is cleared in the recipient identifier list saved in the terminal, so as to prohibit the startup of the operating system of the terminal in the dormant state.
  • the recipient identification list is configured to save a recipient identifier corresponding to the message received by the terminal from the outside, the recipient identifier corresponding to the application software or an operating system; or, at the terminal Clearing the user ID contained in the broadcast message in the saved recipient ID list to prohibit the user ID Starting an operating system of the terminal in a dormant state.
  • the initiating unit 43 is configured to: when determining that the broadcast message is a useful broadcast message, if the user identifier included in the broadcast message has a corresponding relationship with the operating system, start the terminal in the dormant state.
  • An operating system if the user identifier included in the broadcast message has a corresponding relationship with any application software installed in the terminal, the terminal in the sleep state starts an operating system, and starts any one of the application software.
  • processing unit 44 is further configured to: when the terminal is in an activated state, when the message is a useful broadcast message, and the user identifier included in the message is any one of the applications installed in the terminal When the software has a corresponding relationship, the application software is started; when the message is a useless broadcast message, and the user identifier included in the broadcast message has a corresponding relationship with any application software installed in the terminal, the prohibition is prohibited. Start any of the application software.
  • FIG. 5 a schematic structural diagram of a terminal device according to an embodiment of the present invention is provided.
  • the terminal device provided by the embodiment of the present invention may be used to implement the foregoing
  • Only the parts related to the embodiments of the present invention are shown.
  • the mobile terminal can be a terminal device such as a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant), and the like.
  • the mobile phone is taken as an example for explanation.
  • FIG. 5 is a block diagram showing a part of the structure of the mobile phone 500 related to each embodiment of the present invention.
  • the mobile phone 500 includes components such as an RF (radio frequency) circuit 520, a memory 530, an input unit 550, a display unit 550, a detecting unit 560, an audio circuit 570, a processor 580, and a power source 590.
  • RF radio frequency
  • the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
  • the components of the mobile phone 500 will be specifically described below with reference to FIG. 5:
  • the RF circuit 520 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, the processing is processed by the processor 580. In addition, the uplink data is sent to the base station.
  • RF circuit 520 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (low noise amplifier), a duplexer, and the like. In addition, RF circuitry 520 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (global system of mobile communication), GPRS (general packet radio service), CDMA (code division multiple access) , code division multiple access), WCDMA (wideband code division multiple access), LTE (long term evolution), e-mail, SMS (short messaging service), and the like.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • LTE long term evolution
  • e-mail short messaging service
  • the memory 530 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone 500 by running software programs and modules stored in the memory 530.
  • the memory 530 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of mobile phone 500 (than Such as audio data, image data, phone book, etc.).
  • the memory 530 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 540 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset 500.
  • input unit 540 can include touch screen 541 and other input devices 542.
  • a touch screen 541, also referred to as a touch panel, can collect touch operations on or near the user (such as the user's operation on or near the touch screen 541 using any suitable object or accessory such as a finger, stylus, etc.), and The corresponding connecting device is driven according to a preset program.
  • the touch screen 541 may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 580 is provided and can receive commands from the processor 580 and execute them.
  • the touch screen 541 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 540 can also include other input devices 542.
  • other input devices 542 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, power switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 550 can be used to display information input by the user or information provided to the user and various menus of the mobile phone 500.
  • the display unit 550 can include a display panel 551.
  • the display panel 551 can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch screen 541 can cover the display panel 551. When the touch screen 541 detects a touch operation on or near it, the touch screen 541 transmits to the processor 580 to determine the type of the touch event, and then the processor 580 displays the panel according to the type of the touch event. A corresponding visual output is provided on the 551.
  • the touch screen 541 and the display panel 551 are two separate components to implement the input and output functions of the mobile phone 500, in some embodiments, the touch screen 541 can be integrated with the display panel 551 to implement the mobile phone 500. Input and output functions.
  • the detecting unit 560 can be used to identify the touch object, and detect that the touch object points to a position of the mobile phone in the direction of the touch screen 541, and acquire a distance between the touch object and the touch screen of the mobile phone.
  • the detecting unit 560 may include installing a plurality of cameras on the two mutually perpendicular vertical and horizontal borders of the terminal screen on the edge of the touch screen to collect an image above the touch screen, thereby acquiring a position of the touch object pointing to the touch screen and the touch object and the touch screen.
  • the detecting unit 560 may further include an infrared sensor mounted on the two mutually perpendicular vertical and horizontal borders of the terminal screen on the edge of the touch screen to obtain a position where the touch object points to the touch screen and between the touch object and the touch screen.
  • the detecting unit 560 may further include a plurality of capacitor plates mounted under the touch screen, and when the touch object approaches the touch screen, the capacitor plate can obtain a corresponding capacitance value, and when the touch object is located above the touch screen At the same time, the capacitance plate of the capacitance value is different.
  • the capacitance value of the capacitor plate changes. By detecting the change of the capacitance value, the touch object and the touch screen are acquired. Distance between them;
  • the detection unit 560 may also be measured by means for inductive or magnetic field strength, magnetic field changes by the change of inductance or obtaining the touch object point distance between the position of the touch screen and a touch object with the touch screen.
  • the handset 500 can also include various other sensors, such as light sensors and gravity sensors.
  • the light sensor can include an ambient light sensor and a proximity light sensor.
  • the ambient light sensor can adjust the brightness of the display panel 551 according to the brightness of the ambient light; the proximity light sensor can detect whether an object approaches or contacts the mobile phone, and can close the display panel 551 and/or the backlight when the mobile phone 500 moves to the ear.
  • Gravity sensor can detect the acceleration of the mobile phone in all directions (usually three axes). When it is still, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
  • the mobile phone 500 can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and will not be described herein.
  • Audio circuitry 570, speaker 571, microphone 572 can provide an audio interface between the user and handset 500.
  • the audio circuit 570 can transmit the converted electrical data of the received audio data to the speaker 571 for conversion to the sound signal output by the speaker 571; on the other hand, the microphone 572 will collect the collected signal.
  • the sound signal is converted into an electrical signal, which is received by the audio circuit 570 and converted to audio data, which is then output to the RF circuit 520 for transmission to, for example, another handset, or the audio data is output to the memory 530 for further processing.
  • Processor 580 is the control center of handset 500, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 530, and recalling data stored in memory 530, The various functions and processing data of the mobile phone 500 are performed to perform overall monitoring of the mobile phone.
  • the processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the modem processor may also not be integrated into the processor 580.
  • the handset 500 also includes a power source 590 (such as a battery) that supplies power to the various components.
  • a power source 590 such as a battery
  • the power source can be logically coupled to the processor 580 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone 500 may further include a WiFi (wireless fidelity) module, a Bluetooth module, and the like, and details are not described herein again.
  • WiFi wireless fidelity
  • Bluetooth wireless fidelity
  • the RF circuit 520 is configured to receive a message from the outside and send the received message to the processor 580.
  • the processor 580 is configured to detect a message received by the RF circuit 520; when detecting that the message is a broadcast message, determine whether the broadcast message is a useless broadcast message; when the broadcast message is useless When the message is broadcast, if the terminal device is in a sleep state, the operating system of the terminal device is prohibited from being activated.
  • the processor 580 is configured to: when the terminal receives the message received from the external device, obtain the user identifier included in the message; if the user identifier and any Corresponding to an application software, or the user identifier corresponding to the operating system of the terminal device, determining that the message is a broadcast message; or acquiring a message type included in the message, when the message type is a broadcast message When the type is determined, the message is determined to be a broadcast message.
  • the memory 530 is further configured to store, by using an operating system, a list of user identifiers to be disabled.
  • the prohibition of the operating system startup user identifier list includes a user identifier that is not allowed to trigger the startup of the operating system.
  • the processor 580 is configured to: when determining whether the broadcast message is a useless broadcast message, specifically: searching for a user included in the broadcast message in a preset forbidden operating system startup user identifier list And determining, when the preset user-inhibited operating system startup user identifier list includes the user identifier, determining that the broadcast message is a useless broadcast message.
  • the memory 530 is further configured to store a status list, where the status list is used to save status information of each application software or operating system.
  • the memory 530 is further configured to store a status list, where the status list is used to save status information of whether each application software installed in the terminal device or the operating system is activated; and storing the receiver And a identifier list, where the receiver identifier list is used to save a receiver identifier corresponding to the message received by the terminal device, where the receiver identifier corresponds to the application software or an operating system.
  • the processor 580 is configured to disable the operating system of the terminal when the broadcast message is a useless broadcast message, and the terminal is in a sleep state, where the processor 580 acquires the broadcast message.
  • the receiver identifier corresponding to the broadcast message is cleared in the receiver identifier list to prohibit the startup of the operating system of the terminal device in the dormant state; or
  • the user identifier included in the broadcast message is cleared in the recipient identifier list saved by the terminal to prohibit the startup of the operating system of the terminal in the sleep state.
  • the processor 580 is further configured to: when determining that the broadcast message is a useful broadcast message, if the user identifier included in the broadcast message has a corresponding relationship with the operating system, start the terminal in a dormant state An operating system of the device; if the user identifier included in the broadcast message has a corresponding relationship with any application software installed in the terminal device, the terminal device in the sleep state starts an operating system, and starts any one of the application software .
  • the processor 580 is further configured to: when the terminal device is in an activated state, when the message is a useful broadcast message, and the user identifier included in the message is installed in the terminal device When any one of the application softwares has a corresponding relationship, the application software is started; when the message is a useless broadcast message, and the user identifier included in the broadcast message corresponds to any application software installed in the terminal device When the relationship is related, it is forbidden to start any of the application software.
  • the terminal when the terminal determines that the currently received message is a broadcast message, it determines whether the broadcast message is a useless broadcast message according to the user identifier included in the broadcast message; When the broadcast message is useless, the receiver identifier corresponding to the useless broadcast message is reversely searched, and the receiver identifier is cleared in the receiver identifier list, so that the receiver no longer receives the useless broadcast message, and the application software or operating system is avoided. After receiving the useless broadcast message, the operating system is triggered to start, thereby avoiding the problem of large system power consumption caused by frequent startup of the operating system, reducing system power consumption, and prolonging the terminal usage time.
  • embodiments of the present invention can be provided as a method, an operating system, or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the computer readable memory is stored in the computer readable memory.
  • the instructions in the production result include an article of manufacture of the instruction device that implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种操作系统启动方法及装置,方法为,当终端确定当前接收到的消息为广播消息时,根据该广播消息中包含的用户标识,判断该广播消息是否为无用广播消息;当判断该广播消息为无用广播消息时,逆向搜索该无用广播消息对应的接收者标识,并在接收者标识列表中清除上述接收者标识,使该接收者不再接收到上述无用广播消息,避免了应用软件或者操作系统接收到上述无用广播消息后,触发操作系统启动,从而避免了操作系统频繁启动所导致的系统功耗大的问题,降低了系统功耗,延长了终端使用时长。

Description

一种控制终端的方法、装置及终端设备 技术领域
本发明实施例涉及电子产品领域,尤其涉及一种控制终端的方法、装置及终端设备。
背景技术
随着电子技术的飞速发展,智能手机、个人数字助理(Personal Digital Assistant,简称PDA)等终端以其强大的功能得到了广泛的应用。
终端本身预安装操作系统和多种应用软件,除此之外,终端还可以根据用户的指令下载丰富的应用软件,对这些应用软件进行安装后可以使终端自身功能更加强大,操作更加方便。
由于终端中包含操作系统和各种应用软件,当任意一款应用软件存在广播消息(如软件更新消息),或者操作系统存在广播消息(如操作系统升级消息)时,终端均需要启动操作系统,并根据该广播消息执行相应的操作。
当终端中安装的应用软件较多,或者存在频繁的操作系统升级时,终端将会频繁接收到广播消息。当终端接收到广播消息时,均需要启动操作系统,从而造成终端操作系统启动频繁,以及终端能耗高的问题。
发明内容
本发明实施例提供一种控制终端的方法、装置及终端设备,用于解决目前终端存在的频繁启动操作系统导致能耗较高的问题。
本发明实施例提供的具体技术方案如下:
第一方面,提供一种控制终端的方法,包括:对终端从外部接收到的消息进行检测;当检测到所述消息为广播消息时,判断所述广播消息是否为无用广播消息;当所述广播消息为无用广播消息时,若所述终端处于休眠状态,则禁止启动所述终端的操作系统。
结合第一方面,在第一种可能的实现方式中,所述对终端从外部接收到的消息进行检测,包括:
获取所述消息中包含的用户标识;若所述用户标识与所述终端中包含的任意一应用软件相对应,或者所述用户标识与所述终端的操作系统相对应,则确定所述消息为广播消息;或者
获取所述消息中包含的消息类型,当所述消息类型为广播消息类型时,确定所述消息为广播消息。
结合第一方面,或者第一方面第一种可能的实现方式,在第二种可能的实现方式中,所述判断所述广播消息是否为无用广播消息,包括:在预设的禁止操作系统启动用户标识列表中,查找所述广播消息中包含的用户标识;当所述预设的禁止操作系统启动用户标识列表中包含所述用户标识时,确定所述广播消息为无用广播消息。
结合第一方面,第一方面第一种可能的实现方式,或者第一方面第二种可能的实现方式,在第三种可能的实现方式中,所述当所述广播消息为无用广播消息时,若所述终端处于休眠状态,则禁止启动所述终端的操作系统,包括:
获取所述广播消息中包含的用户标识对应的进程;以及获取所述进程对应的应用软件或者操作系统;从所述终端中保存的状态列表中,获取所述应用软件或者操作系统对应的状态信息;其中,所述状态列表用于保存所述终端中安装的每一个应用软件或者操作系统对应的是否已经启动的状态信息;当所述应用软件或者操作系统对应的状态信息处于休眠状态时,在所述终端中保存的接收者标识列表中清除所述广播消息对应的接收者标识,以禁止启动处于休眠状态的所述终端的操作系统;其中,所述接收者标识列表用于保存所述终端从外部接收到的消息所对应的接收者标识,所述接收者标识与所述终端中安装的应用软件或者操作系统相对应;或者,在所述终端保存的接收者标识列表中清除所述广播消息包含的用户标识,以禁止启动处于休眠状态的所述终端的操作系统。
结合第一方面,第一方面第一种可能的实现方式至第一方面第三种可能的实现方式中的任意一项,在第四种可能的实现方式中,还包括:
当判定所述广播消息为有用广播消息时,若所述广播消息包含的用户标识与所述操作系统存在对应关系,则启动处于休眠状态的终端的操作系统;若所述广播消息包含的用户标识与所述终端中安装的任意一应用软件存在对应关系,则启动处于休眠状态的终端的操作系统,并启动所述任意一应用软件。
结合第一方面,第一方面第一种可能的实现方式至第一方面第四种可能的实现方式中的任意一项,在第五种可能的实现方式中,还包括:
若所述终端处于已启动状态,则当所述消息为有用广播消息,且所述消息中包含的用户标识与本地安装的任意一应用软件存在对应关系时,启动所述任意一应用软件;当所述消息为无用广播消息,且所述广播消息中包含的用户标识与所述终端中安装的任意一应用软件存在对应关系时,禁止启动所述任意一应用软件。
第二方面,提供一种控制终端的装置,包括:
检测单元,用于对终端从外部接收到的消息进行检测;
判断单元,用于接收所述检测单元发送的检测结果,当检测结果为所述消息为广播消息时,判断所述广播消息是否为无用广播消息;
禁止启动单元,用于接收所述判断单元发送的判断结果,当判断结果为所述广播消息为无用广播消息时,若所述终端处于休眠状态,则禁止启动所述终端的操作系统。
结合第二方面,在第一种可能的实现方式中,所述检测单元,具体用于:
获取所述消息中包含的用户标识;若所述用户标识与所述终端中包含的任意一应用软件相对应,或者所述用户标识与所述终端的操作系统相对应,则确定所述消息为广播消息;或者
获取所述消息中包含的消息类型,当所述消息类型为广播消息类型时,确定所述消息为广播消息。
结合第二方面,或者第二方面第一种可能的实现方式,在第二种可能的实现方式中,所述判断单元用于判断所述广播消息是否为无用广播消息时,具体用于:在预设的禁止操作系统启动用户标识列表中,查找所述广播消息中包含的用户标识;当所述预设的禁止操作系统启动用户标识列表中包含所述用户标识时,确定所述广播消息为无用广播消息。
结合第二方面,第二方面第一种可能的的实现方式,或者第二方面第二种可能的实现方式,在第三种可能的实现方式中,所述禁止启动单元,具体用于:获取所述广播消息中包含的用户标识对应的进程;以及获取所述进程对应的应用软件或者操作系统;从所述终端中保存的状态列表中,获取所述应用软件或者操作系统对应的状态信息,其中,所述状态列表用于保存所述终端中安装的每一个应用软件或者操作系统对应的是否已经启动的状态信息;当所述应用软件或者操作系统对应的状态信息处于休眠状态时,在所述终端中保存的接收者标识列表中清除所述广播消息对应的接收者标识,以禁止启动处于休眠状态的所述终端的操作系统;其中,所述接收者标识列表用于保存所述终端从外部接收到的消息所对应的接收者标识,所述接收者标识与所述应用软件或者操作系统相对应;或者,在所述终端保存的接收者标识列表中清除所述广播消息包含的用户标识,以禁止启动处于休眠状态的所述终端的操作系统。
结合第二方面,第二方面第一种可能的实现方式至第二方面第三种可能的实现方式中的任一项,在第四种可能的实现方式中,所述装置还包括启动单元,用于:当判定所述广播消息为有用广播消息时,若所述广播消息包含的用户标识与所述操作系统存在对应关系,则启动处于休眠状态的终端的操作系统;若所述广播消息包含的用户标识与所述终端中安装的任意一应用软件存在对应关系,则处于休眠状态的终端的启动操作系统,并启动所述任意一应用软件。
结合第二方面,第二方面第一种可能的实现方式至第二方面第四种可能的实现方式中的任一项,在第五种可能的实现方式中,所述装置还包括处理 单元,用于:若所述终端处于已启动状态,则当所述消息为有用广播消息,且所述消息中包含的用户标识与所述终端中安装的任意一应用软件存在对应关系时,启动所述任意一应用软件;当所述消息为无用广播消息,且所述广播消息中包含的用户标识与所述终端中安装的任意一应用软件存在对应关系时,禁止启动所述任意一应用软件。
第三方面,提供一种终端设备,包括:
射频RF电路,用于从外部接收消息,并将接收到的消息发送至处理器;
存储器,用于存储软件程序以及模块;
处理器,用于运行存储在所述存储器的软件程序及模块,执行如下操作:所述RF电路接收到的消息进行检测;当检测到所述消息为广播消息时,判断所述广播消息是否为无用广播消息;当判定所述广播消息为无用广播消息时,若所述终端设备处于休眠状态,则禁止启动所述终端设备的操作系统。
结合第三方面,在第一种可能的实现方式中,所述对终端从外部接收到的消息进行检测,包括:
获取所述消息中包含的用户标识;若所述用户标识与所述终端设备中包含的任意一应用软件相对应,或者所述用户标识与所述终端设备的操作系统相对应,则确定所述消息为广播消息;或者
获取所述消息中包含的消息类型,当所述消息类型为广播消息类型时,确定所述消息为广播消息。
结合第三方面,或者第三方面第一种可能的实现方式,在第二种可能的实现方式中,所述处理器用于判断所述广播消息是否为无用广播消息时,具体用于:在预设的禁止操作系统启动用户标识列表中,查找所述广播消息中包含的用户标识;当所述预设的禁止操作系统启动用户标识列表中包含所述用户标识时,确定所述广播消息为无用广播消息。
结合第三方面,第三方面第一种可能的的实现方式,或者第三方面第二种可能的实现方式,在第三种可能的实现方式中,所述当所述广播消息为无用广播消息时,若所述终端处于休眠状态,则禁止启动所述终端的操作系统, 包括:获取所述广播消息中包含的用户标识对应的进程;以及获取所述进程对应的应用软件或者操作系统;从所述存储器保存的状态列表中,获取所述应用软件或者操作系统对应的状态信息;当所述应用软件或者操作系统对应的状态信息处于休眠状态时,在接收者标识列表中清除所述广播消息对应的接收者标识,以禁止启动处于休眠状态的所述终端设备的操作系统;或者,在所述终端保存的接收者标识列表中清除所述广播消息包含的用户标识,以禁止启动处于休眠状态的所述终端的操作系统。
结合第三方面,第三方面第一种可能的实现方式至第三方面第三种可能的实现方式中的任一项,在第四种可能的实现方式中,所述处理器,还用于执行以下操作:当判定所述广播消息为有用广播消息时,若所述广播消息包含的用户标识与所述操作系统存在对应关系,则启动处于休眠状态的终端设备的操作系统;若所述广播消息包含的用户标识与所述终端设备中安装的任意一应用软件存在对应关系,则处于休眠状态的终端设备的启动操作系统,并启动所述任意一应用软件。
结合第三方面,第三方面第一种可能的实现方式至第三方面第四种可能的实现方式中的任一项,在第五种可能的实现方式中,所述处理器,还用于执行以下操作:若所述终端设备处于已启动状态,则当所述消息为有用广播消息,且所述消息中包含的用户标识与所述终端设备中安装的任意一应用软件存在对应关系时,启动所述任意一应用软件;当所述消息为无用广播消息,且所述广播消息中包含的用户标识与所述终端设备中安装的任意一应用软件存在对应关系时,禁止启动所述任意一应用软件。
本发明实施例中,终端对从外部接收到的消息进行检测;当判定该消息为广播消息时,根据该广播消息是否为有用广播消息,确定是否对操作系统进行启动。采用本发明技术方案,终端判断接收到的广播消息是否为有用广播消息,当该广播消息为无用广播消息,且终端的操作系统为休眠状态时,将禁止启动操作系统,从而避免了广播消息较多时,频繁启动操作系统的过程;并且,操作系统不被频繁唤醒,能够有效降低终端的能耗。
附图说明
图1为本发明实施例中控制终端的流程图;
图2为本发明实施例中具体应用场景下控制终端的流程图一;
图3为本发明实施例中具体应用场景下控制终端的流程图二;
图4为本发明实施例中控制终端的装置结构示意图;
图5为本发明实施例中终端设备结构示意图。
具体实施方式
下面结合说明书附图,对本发明实施例作进一步详细描述。
参阅图1所示,本发明实施例中,终端控制操作系统启动的方法,包括:
步骤100:对终端从外部接收到的消息进行检测。
本发明实施例中,终端可以从外部接收到多种类型的消息,如其他终端发送的短消息,运营商发送的短消息,基站等发送的消息,以及应用软件服务商发送的消息,操作系统服务商发送的消息等。本发明实施例中可以将应用软件服务商发送的消息,操作系统服务商发送的消息作为广播消息。
由于终端接收到的消息包含所述多种类型,因此,当终端接收到消息时,应当对接收到的消息进行检测,并根据检测结果来确定是否对操作系统执行启动操作。
步骤110:当检测到所述消息为广播消息时,判断该广播消息是否为无用广播消息。
本发明实施例中,终端在本地预先建立操作系统控制应用程序,通过该操作系统控制应用程序判断接收到的消息进行是否为广播消息,并当判定接收到的消息为广播消息时,判断所述广播消息是否为无用广播消息,以及控制操作系统是否执行启动操作。
可选的,终端通过所述操作系统控制应用程序判定接收到的消息是否为广播消息的方法,包括:所述终端接收到的消息中包含描述用户标识的字段, 终端通过所述消息中包含的描述用户标识的字段,获取所述消息中包含的用户标识;由于用户标识和终端中安装的应用软件或者操作系统存在对应关系,因此,终端根据获取的用户标识,即可确定所述消息的接收者,该接收者即为终端中安装的任意一应用软件或者操作系统;终端将所述接收者的标识保存至本地的接收者标识列表中,当终端接收到的消息对应的接收者标识位于所述接收者标识列表中时,终端才会将接收到的消息发送至所述消息对应的接收者;当确定所述用户标识与终端中安装的任意一应用软件相对应,或者所述用户标识与终端的操作系统相对应时,确定该消息为广播消息,例如,当终端根据消息中包含的用户标识与微信应用软件存在对应关系时,终端从本地安装的应用程序中查找该微信应用软件,当终端本地包含该微信应用软件时,确定所述消息为广播消息。或者,终端接收到的消息中包含描述消息类型的字段,终端获取该消息中包含的消息类型,当该消息类型为广播消息类型时,确定该消息为广播消息。
进一步的,由于操作系统对应于固定数量的特定广播消息,因此,当所述消息为所述特定广播消息时,即可确定所述消息为操作系统对应的广播消息。
采用所述技术方案,终端通过操作系统控制应用程序,根据终端接收到的消息中包含的相应字段,确定该接收到的消息是否为广播消息,判断过程方便快捷,且判定结果准确性高。
步骤120:当所述广播消息为无用广播消息时,若所述终端处于休眠状态,则禁止启动所述终端的操作系统。
本发明实施例中,终端通过操作系统控制应用程序判断所述消息是否为无用广播消息,若是,则禁止操作系统启动;否则,启动操作系统。
可选的,终端能通过操作系统控制应用程序判断所述广播消息是否为无用广播消息的方法,包括:在预设的禁止操作系统启动用户标识列表中,查找所述广播消息中包含的用户标识,其中,该禁止操作系统启动用户标识列表中包含一个或多个禁止启动用户标识,且该禁止启动用户标识为预先设置 的不被允许启动操作系统的用户标识,或者该禁止启动用户标识为被强制清除的应用软件或者操作系统对应的用户标识,或者该禁止启动用户标识为出现异常自动退出的应用软件对应的用户标识,或者该禁止启动应用标识为终端最新安装且未经确认是否允许操作系统启动设置的应用软件对应的用户标识;当预设的禁止操作系统启动用户标识列表中包含所述广播消息中包含的用户标识时,确定该广播消息为无用广播消息。
可选的,当判定所述广播消息为无用广播消息时,禁止操作系统启动的方法,具体包括:在终端本地获取所述广播消息中包含的用户标识对应的进程;以及根据获取到的进程进行逆向搜索,获取所述进程所对应的应用软件或者操作系统;从本地保存的状态列表中,获取所述应用软件或者操作系统对应的状态信息,其中,该状态列表中包含各个应用软件或者操作系统对应的状态信息;当该应用软件或者操作系统对应的状态信息为休眠时,清除所述接收者标识列表中包含的所述接收者标识,使所述广播消息不会发送至所述用户标识对应的应用软件或者操作系统,从而阻止操作系统和应用软件的启动。可选的,上述接收者标识列表中包含终端从外部接收到的消息所对应的用户标识,终端通过该用户标识确定广播消息为对应于应用软件的消息,或者所述广播消息为对应于操作系统的消息。
进一步的,当该应用软件或者操作系统对应的状态信息为启动状态时,则不对所述已经启动的应用软件或者操作系统进行处理。
进一步的,当终端通过操作系统控制应用程序判定所述广播消息为有用广播消息时,若该广播消息包含的用户标识与操作系统存在对应关系,且操作系统处于休眠状态,则启动操作系统;若所述广播消息包含的用户标识与任意一应用软件存在对应关系,且操作系统处于休眠状态,则启动操作系统,并启动所述任意一应用软件;其中,该任意一应用软件为终端中安装的应用软件。
进一步的,若所述终端处于已启动状态,则当所述消息为有用广播消息,且所述消息中包含的用户标识与本地安装的任意一应用软件存在对应关系 时,启动所述任意一应用软件;当所述消息为无用广播消息,且所述广播消息中包含的用户标识与所述终端中安装的任意一应用软件存在对应关系时,禁止启动所述任意一应用软件。
采用本发明实施例的技术方案,终端通过操作系统应用程序清除接收者标识列表中包含的接收者标识或者用户标识,使无用广播消息无法发送至相应的接收者,达到了拦截无用广播消息,禁止启动操作系统的目的,从而降低了终端在休眠过程中操作系统被唤醒的次数,能够有效降低功耗,增加终端的待机时长。
应用场景一
基于所述技术方案,参阅图2所示,下面结合具体应用场景,以终端处于休眠状态为例,详细描述终端禁止操作系统启动的方法:
步骤200:终端接收消息。
步骤210:终端判断所述消息是否为广播消息,若是,执行步骤220;否则,返回步骤200。
步骤220:终端判断本地保存的禁止操作系统启动用户标识列表中是否包含所述消息中包含的用户标识,若是,执行步骤240;否则,执行步骤230。
本发明实施例中,所述禁止操作系统启动用户标识列表中包含一个或多个禁止启动用户标识,且该禁止启动用户标识为预先设置的不被允许启动操作系统的用户标识,或者该禁止启动用户标识为被强制清除的应用软件或者操作系统对应的用户标识,或者该禁止启动用户标识为出现异常自动退出的应用软件对应的用户标识,或者该禁止启动应用标识为终端最新安装且未经确认是否允许操作系统启动设置的应用软件对应的用户标识;当预设的禁止操作系统启动用户标识列表中包含所述广播消息中包含的用户标识时,确定该广播消息为无用广播消息。
步骤230:终端获取所述广播消息包含的用户标识;若该广播消息包含的用户标识与操作系统存在对应关系,则启动操作系统;若所述广播消息包含的用户标识与任意一应用软件存在对应关系,则启动操作系统,并启动该任 意一应用软件。
步骤240:终端在本地获取所述广播消息中包含的用户标识对应的进程,并获取所述进程所对应的应用软件或者操作系统;然后执行步骤250。
步骤250:终端从本地保存的状态列表中,获取所述应用软件或者操作系统对应的状态信息,并判断该应用软件或者操作系统对应的状态信息是否为启动状态,若是,执行步骤260;否则,执行步骤270。
步骤260:终端不对所述已经启动的进程进行处理。
步骤270:终端清除所述接收者标识列表中包含的所述应用软件或者操作系统对应的接收者标识,使所述广播消息无法发送至所述应用软件或者操作系统,防止所述广播消息触发所述操作系统。
采用上述技术方案,终端判断接收到的广播消息是否为有用广播消息,当该广播消息为无用广播消息,且终端的操作系统为休眠状态时,将禁止启动操作系统,从而避免了广播消息较多时,频繁启动操作系统的过程;并且,操作系统不被频繁唤醒,能够有效降低终端的能耗。
应用场景二
基于所述技术方案,参阅图3所示,下面结合具体应用场景,以终端处于已启动状态为例,详细描述终端唤醒应用软件的方法:
步骤300:终端接收消息。
步骤310:终端判断所述消息是否为广播消息,若是,执行步骤320;否则,返回步骤300。
步骤320:终端判断本地保存的禁止操作系统启动用户标识列表中是否包含所述消息中包含的用户标识,若是,执行步骤340;否则,执行步骤330。
步骤330:终端获取所述广播消息包含的用户标识;若所述广播消息包含的用户标识与任意一应用软件存在对应关系,则启动该任意一应用软件。
步骤340:终端在本地获取所述广播消息中包含的用户标识对应的进程,并获取所述进程所对应的应用软件;然后执行步骤350。
步骤350:终端从本地保存的状态列表中,获取所述应用软件对应的状态信息,并判断该应用软件对应的状态信息是否为启动状态,若是,执行步骤360;否则,执行步骤370。
步骤360:终端不对所述已经启动的进程进行处理。
步骤370:终端清除所述接收者标识列表中包含的所述应用软件对应的接收者标识,使所述广播消息无法发送至所述应用软件,防止所述广播消息触发所述应用软件。
采用上述技术方案,终端判断接收到的广播消息是否为有用广播消息,当该广播消息为无用广播消息,且终端的操作系统为已经启动状态时,将禁止唤醒广播消息对应的应用软件,从而避免了广播消息较多时,频繁唤醒应用软件的过程;并且,应用软件不被频繁唤醒,能够有效降低终端的能耗。
基于所述技术方案,参阅图4所示,本发明实施例中还提供一种控制终端的装置,包括检测单元40,判断单元41,以及禁止启动单元42,其中:
检测单元40,用于对终端从外部接收到的消息进行检测;
判断单元41,用于接收所述检测单元40发送的检测结果,当检测结果为所述消息为广播消息时,判断所述广播消息是否为无用广播消息;
禁止启动单元42,用于接收所述判断单元41发送的判断结果,当判断结果为所述广播消息为无用广播消息时,若所述终端处于休眠状态,则禁止启动所述终端的操作系统。
可选的,所述检测单元40,具体用于:获取所述消息中包含的用户标识;若所述用户标识与所述终端中包含的任意一应用软件相对应,或者所述用户标识与所述终端的操作系统相对应,则确定所述消息为广播消息;或者获取所述消息中包含的消息类型,当所述消息类型为广播消息类型时,确定所述消息为广播消息。
可选的,所述判断单元41用于判断所述广播消息是否为无用广播消息时,具体用于:在预设的禁止操作系统启动用户标识列表中,查找所述广播消息中包含的用户标识;当所述预设的禁止操作系统启动用户标识列表中包含所 述用户标识时,确定所述广播消息为无用广播消息。
可选的,所述禁止启动单元42,具体用于:获取所述广播消息中包含的用户标识对应的进程;以及获取所述进程对应的应用软件或者操作系统;从所述终端中保存的状态列表中,获取所述应用软件或者操作系统对应的状态信息,其中,所述状态列表用于保存所述终端中安装的每一个应用软件或者操作系统对应的是否已经启动的状态信息;当所述应用软件或者操作系统对应的状态信息处于休眠状态时,在所述终端中保存的接收者标识列表中清除所述广播消息对应的接收者标识,以禁止启动处于休眠状态的所述终端的操作系统;其中,所述接收者标识列表用于保存所述终端从外部接收到的消息所对应的接收者标识,所述接收者标识与所述应用软件或者操作系统相对应;或者,在所述终端保存的接收者标识列表中清除所述广播消息包含的用户标识,以禁止启动处于休眠状态的所述终端的操作系统。
进一步的,还包括启动单元43,用于:当判定所述广播消息为有用广播消息时,若所述广播消息包含的用户标识与所述操作系统存在对应关系,则启动处于休眠状态的终端的操作系统;若所述广播消息包含的用户标识与所述终端中安装的任意一应用软件存在对应关系,则处于休眠状态的终端的启动操作系统,并启动所述任意一应用软件。
进一步的,还包括处理单元44,用于:若所述终端处于已启动状态,则当所述消息为有用广播消息,且所述消息中包含的用户标识与所述终端中安装的任意一应用软件存在对应关系时,启动所述任意一应用软件;当所述消息为无用广播消息,且所述广播消息中包含的用户标识与所述终端中安装的任意一应用软件存在对应关系时,禁止启动所述任意一应用软件。
基于所述技术方案,参阅图5所示,为本发明实施例提供的一种终端设备的结构示意图,本发明实施例提供的终端设备可以用于实施所述图1-图3所示的本发明各实施例实现的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照图1-图3所示的本发明各实施例。
该移动终端可以为手机、平板电脑、笔记本电脑、UMPC(Ultra-mobile Personal Computer,超级移动个人计算机)、上网本、PDA(Personal Digital Assistant,个人数字助理)等终端设备,本发明实施例以移动终端为手机为例进行说明,图5示出的是与本发明各实施例相关的手机500的部分结构的框图。
如图5所示,手机500包括:RF(radio frequency,射频)电路520、存储器530、输入单元550、显示单元550、检测单元560、音频电路570、处理器580、以及电源590等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图5对手机500的各个构成部件进行具体的介绍:
RF电路520可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器580处理;另外,将上行的数据发送给基站。通常,RF电路520包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(low noise amplifier,低噪声放大器)、双工器等。此外,RF电路520还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(global system of mobile communication,全球移动通讯系统)、GPRS(general packet radio service,通用分组无线服务)、CDMA(code division multiple access,码分多址)、WCDMA(wideband code division multiple access,宽带码分多址)、LTE(long term evolution,长期演进)、电子邮件、SMS(short messaging service,短消息服务)等。
存储器530可用于存储软件程序以及模块,处理器580通过运行存储在存储器530的软件程序以及模块,从而执行手机500的各种功能应用以及数据处理。存储器530可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机500的使用所创建的数据(比 如音频数据、图像数据、电话本等)等。此外,存储器530可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元540可用于接收输入的数字或字符信息,以及产生与手机500的用户设置以及功能控制有关的键信号输入。具体地,输入单元540可包括触摸屏541以及其他输入设备542。触摸屏541,也称为触控面板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触摸屏541上或在触摸屏541附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触摸屏541可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏541。除了触摸屏541,输入单元540还可以包括其他输入设备542。具体地,其他输入设备542可以包括但不限于物理键盘、功能键(比如音量控制按键、电源开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元550可用于显示由用户输入的信息或提供给用户的信息以及手机500的各种菜单。显示单元550可包括显示面板551,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板551。进一步的,触摸屏541可覆盖显示面板551,当触摸屏541检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板551上提供相应的视觉输出。虽然在图5中,触摸屏541与显示面板551是作为两个独立的部件来实现手机500的输入和输出功能,但是在某些实施例中,可以将触摸屏541与显示面板551集成而实现手机500的输入和输出功能。
检测单元560,可以用于识别触摸物体,并检测触摸物体指向手机在触摸屏541方向上方的位置,以及获取触摸物体与手机触摸屏之间的距离。其中,该检测单元560可以包括在终端屏幕在触摸屏边缘的两条互相垂直的纵横边框上分别安装若干摄像头,以采集触摸屏幕上方的图像,进而获取触摸物体指向触摸屏的位置以及与触摸物体与触摸屏之间的距离;所述检测单元560还可以包括在终端屏幕在触摸屏边缘的两条互相垂直的纵横边框上安装的红外传感器,以获取触摸物体指向触摸屏的位置以及与触摸物体与触摸屏之间的距离;此外,所述检测单元560还可以包括在触摸屏的下方安装的若干电容极板,当触摸物体接近触摸屏时,该电容极板能够得到对应的电容值,且当触摸物体位于触摸屏上方的位置不同时,检测到电容值的电容极板不同,当触摸物体位于触摸屏上方的距离改变时,所述电容极板对应的电容值就会发生变化,通过检测电容值的变化,获取触摸物体与触摸屏之间的距离;除此之外,所述检测单元560还可以通过用以测量电感或者磁场强度的部件,通过电感变化或者磁场变化,获取触摸物体指向触摸屏的位置以及与触摸物体与触摸屏之间的距离。
手机500还可以包括其他各种传感器,比如光传感器和重力传感器。具体地,光传感器可包括环境光传感器及接近光传感器。其中,环境光传感器可根据环境光线的明暗来调节显示面板551的亮度;接近光传感器可以检测是否有物体靠近或接触手机,可在手机500移动到耳边时,关闭显示面板551和/或背光;重力传感器(gravity sensor),可以检测手机在各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。手机500还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路570、扬声器571、麦克风572可提供用户与手机500之间的音频接口。音频电路570可将接收到的音频数据转换后的电信号,传输到扬声器571,由扬声器571转换为声音信号输出;另一方面,麦克风572将收集的 声音信号转换为电信号,由音频电路570接收后转换为音频数据,再将音频数据输出至RF电路520以发送给比如另一手机,或者将音频数据输出至存储器530以便进一步处理。
处理器580是手机500的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器530内的软件程序和/或模块,以及调用存储在存储器530内的数据,执行手机500的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器580可包括一个或多个处理单元;优选的,处理器580可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,所述调制解调处理器也可以不集成到处理器580中。
手机500还包括给各个部件供电的电源590(比如电池),优选的,电源可以通过电源管理系统与处理器580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机500还可以包括WiFi(wireless fidelity,无线保真)模块、蓝牙模块等,在此不再赘述。
在本发明实施例中,所述RF电路520,用于从外部接收消息,并将接收到的消息发送至处理器580。
所述处理器580,用于对所述RF电路520接收到的消息进行检测;当检测到所述消息为广播消息时,判断所述广播消息是否为无用广播消息;当所述广播消息为无用广播消息时,若所述终端设备处于休眠状态,则禁止启动所述终端设备的操作系统。
可选的,所述处理器580在对终端从外部接收到的消息进行检测时,具体用于:获取所述消息中包含的用户标识;若所述用户标识与所述终端设备中包含的任意一应用软件相对应,或者所述用户标识与所述终端设备的操作系统相对应,则确定所述消息为广播消息;或者获取所述消息中包含的消息类型,当所述消息类型为广播消息类型时,确定所述消息为广播消息。
可选的,所述存储器530,还用于存储禁止操作系统启动用户标识列表, 所述禁止操作系统启动用户标识列表中包含不允许触发操作系统启动的用户标识。
可选的,所述处理器580,用于判断所述广播消息是否为无用广播消息时,具体用于:在预设的禁止操作系统启动用户标识列表中,查找所述广播消息中包含的用户标识;当所述预设的禁止操作系统启动用户标识列表中包含所述用户标识时,确定所述广播消息为无用广播消息。
可选的,所述存储器530,还用于存储状态列表,所述状态列表用于保存每一个应用软件或者操作系统的状态信息。
可选的,所述存储器530,还用于存储状态列表,所述状态列表用于保存所述终端设备中安装的每一个应用软件或者操作系统对应的是否已经启动的状态信息;以及存储接收者标识列表,所述接收者标识列表用于保存所述终端设备接收到的消息所对应的接收者标识,所述接收者标识与所述应用软件或者操作系统相对应。
可选的,所述处理器580在所述广播消息为无用广播消息,且所述终端处于休眠状态时,禁止启动所述终端的操作系统,具体为:所述处理器580获取所述广播消息中包含的用户标识对应的进程;以及获取所述进程对应的应用软件或者操作系统;从所述存储器530保存的状态列表中,获取所述应用软件或者操作系统对应的状态信息;当所述应用软件或者操作系统对应的状态信息处于休眠状态时,在接收者标识列表中清除所述广播消息对应的接收者标识,以禁止启动处于休眠状态的所述终端设备的操作系统;或者,在所述终端保存的接收者标识列表中清除所述广播消息包含的用户标识,以禁止启动处于休眠状态的所述终端的操作系统。
进一步的,所述处理器580,还用于:当判定所述广播消息为有用广播消息时,若所述广播消息包含的用户标识与所述操作系统存在对应关系,则启动处于休眠状态的终端设备的操作系统;若所述广播消息包含的用户标识与所述终端设备中安装的任意一应用软件存在对应关系,则处于休眠状态的终端设备的启动操作系统,并启动所述任意一应用软件。
进一步的,所述处理器580,还用于:若所述终端设备处于已启动状态,则当所述消息为有用广播消息,且所述消息中包含的用户标识与所述终端设备中安装的任意一应用软件存在对应关系时,启动所述任意一应用软件;当所述消息为无用广播消息,且所述广播消息中包含的用户标识与所述终端设备中安装的任意一应用软件存在对应关系时,禁止启动所述任意一应用软件。
综上所述,本发明实施例中,当终端确定当前接收到的消息为广播消息时,根据该广播消息中包含的用户标识,判断该广播消息是否为无用广播消息;当判断该广播消息为无用广播消息时,逆向搜索该无用广播消息对应的接收者标识,并在接收者标识列表中清除上述接收者标识,使该接收者不再接收到上述无用广播消息,避免了应用软件或者操作系统接收到上述无用广播消息后,触发操作系统启动,从而避免了操作系统频繁启动所导致的系统功耗大的问题,降低了系统功耗,延长了终端使用时长。
本领域内的技术人员应明白,本发明的实施例可提供为方法、操作系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(操作系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器 中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (18)

  1. 一种控制终端的方法,其特征在于,包括:
    对终端从外部接收到的消息进行检测;
    当检测到所述消息为广播消息时,判断所述广播消息是否为无用广播消息;
    当所述广播消息为无用广播消息时,若所述终端处于休眠状态,则禁止启动所述终端的操作系统。
  2. 如权利要求1所述的方法,其特征在于,所述对终端从外部接收到的消息进行检测,包括:
    获取所述消息中包含的用户标识;若所述用户标识与所述终端中包含的任意一应用软件相对应,或者所述用户标识与所述终端的操作系统相对应,则确定所述消息为广播消息;或者
    获取所述消息中包含的消息类型,当所述消息类型为广播消息类型时,确定所述消息为广播消息。
  3. 如权利要求1或2所述的方法,其特征在于,所述判断所述广播消息是否为无用广播消息,包括:
    在预设的禁止操作系统启动用户标识列表中,查找所述广播消息中包含的用户标识;
    当所述预设的禁止操作系统启动用户标识列表中包含所述用户标识时,确定所述广播消息为无用广播消息。
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述当所述广播消息为无用广播消息时,若所述终端处于休眠状态,则禁止启动所述终端的操作系统,包括:
    获取所述广播消息中包含的用户标识对应的进程;以及
    获取所述进程对应的应用软件或者操作系统;
    从所述终端中保存的状态列表中,获取所述应用软件或者操作系统对应 的状态信息;其中,所述状态列表用于保存所述终端中安装的每一个应用软件或者操作系统对应的是否已经启动的状态信息;
    当所述应用软件或者操作系统对应的状态信息处于休眠状态时,在所述终端中保存的接收者标识列表中清除所述广播消息对应的接收者标识,以禁止启动处于休眠状态的所述终端的操作系统;其中,所述接收者标识列表用于保存所述终端从外部接收到的消息所对应的接收者标识,所述接收者标识与所述终端中安装的应用软件或者操作系统相对应;或者,在所述终端保存的接收者标识列表中清除所述广播消息包含的用户标识,以禁止启动处于休眠状态的所述终端的操作系统。
  5. 如权利要求1-4任一项所述的方法,其特征在于,还包括:
    当判定所述广播消息为有用广播消息时,若所述广播消息包含的用户标识与所述操作系统存在对应关系,则启动处于休眠状态的终端的操作系统;若所述广播消息包含的用户标识与所述终端中安装的任意一应用软件存在对应关系,则启动处于休眠状态的终端的操作系统,并启动所述任意一应用软件。
  6. 如权利要求1-5任一项所述的方法,其特征在于,还包括:
    若所述终端处于已启动状态,则当所述消息为有用广播消息,且所述消息中包含的用户标识与本地安装的任意一应用软件存在对应关系时,启动所述任意一应用软件;当所述消息为无用广播消息,且所述广播消息中包含的用户标识与所述终端中安装的任意一应用软件存在对应关系时,禁止启动所述任意一应用软件。
  7. 一种控制终端的装置,其特征在于,包括:
    检测单元,用于对终端从外部接收到的消息进行检测;
    判断单元,用于接收所述检测单元发送的检测结果,当检测结果为所述消息为广播消息时,判断所述广播消息是否为无用广播消息;
    禁止启动单元,用于接收所述判断单元发送的判断结果,当判断结果为所述广播消息为无用广播消息时,若所述终端处于休眠状态,则禁止启动所 述终端的操作系统。
  8. 如权利要求7所述的装置,其特征在于,所述检测单元,具体用于:
    获取所述消息中包含的用户标识;若所述用户标识与所述终端中包含的任意一应用软件相对应,或者所述用户标识与所述终端的操作系统相对应,则确定所述消息为广播消息;或者
    获取所述消息中包含的消息类型,当所述消息类型为广播消息类型时,确定所述消息为广播消息。
  9. 如权利要求7或8所述的装置,其特征在于,所述判断单元用于判断所述广播消息是否为无用广播消息时,具体用于:
    在预设的禁止操作系统启动用户标识列表中,查找所述广播消息中包含的用户标识;当所述预设的禁止操作系统启动用户标识列表中包含所述用户标识时,确定所述广播消息为无用广播消息。
  10. 如权利要求7-9任一项所述的装置,其特征在于,所述禁止启动单元,具体用于:
    获取所述广播消息中包含的用户标识对应的进程;以及
    获取所述进程对应的应用软件或者操作系统;
    从所述终端中保存的状态列表中,获取所述应用软件或者操作系统对应的状态信息,其中,所述状态列表用于保存所述终端中安装的每一个应用软件或者操作系统对应的是否已经启动的状态信息;
    当所述应用软件或者操作系统对应的状态信息处于休眠状态时,在所述终端中保存的接收者标识列表中清除所述广播消息对应的接收者标识,以禁止启动处于休眠状态的所述终端的操作系统;其中,所述接收者标识列表用于保存所述终端从外部接收到的消息所对应的接收者标识,所述接收者标识与所述应用软件或者操作系统相对应;或者,在所述终端保存的接收者标识列表中清除所述广播消息包含的用户标识,以禁止启动处于休眠状态的所述终端的操作系统。
  11. 如权利要求7-10任一项所述的装置,其特征在于,还包括启动单元, 用于:
    当判定所述广播消息为有用广播消息时,若所述广播消息包含的用户标识与所述操作系统存在对应关系,则启动处于休眠状态的终端的操作系统;若所述广播消息包含的用户标识与所述终端中安装的任意一应用软件存在对应关系,则处于休眠状态的终端的启动操作系统,并启动所述任意一应用软件。
  12. 如权利要求7-11任一项所述的装置,其特征在于,还包括处理单元,用于:
    若所述终端处于已启动状态,则当所述消息为有用广播消息,且所述消息中包含的用户标识与所述终端中安装的任意一应用软件存在对应关系时,启动所述任意一应用软件;当所述消息为无用广播消息,且所述广播消息中包含的用户标识与所述终端中安装的任意一应用软件存在对应关系时,禁止启动所述任意一应用软件。
  13. 一种终端设备,其特征在于,包括:
    射频RF电路,用于从外部接收消息,并将接收到的消息发送至处理器;
    存储器,用于存储软件程序以及模块;
    处理器,用于运行存储在所述存储器的软件程序及模块,执行如下操作:
    对所述RF电路接收到的消息进行检测;当检测到所述消息为广播消息时,判断所述广播消息是否为无用广播消息;当所述广播消息为无用广播消息时,若所述终端设备处于休眠状态,则禁止启动所述终端设备的操作系统。
  14. 如权利要求13所述的终端设备,其特征在于,所述对终端从外部接收到的消息进行检测,包括:
    获取所述消息中包含的用户标识;若所述用户标识与所述终端设备中包含的任意一应用软件相对应,或者所述用户标识与所述终端设备的操作系统相对应,则确定所述消息为广播消息;或者
    获取所述消息中包含的消息类型,当所述消息类型为广播消息类型时,确定所述消息为广播消息。
  15. 如权利要求13或14所述的终端设备,其特征在于,
    所述处理器用于判断所述广播消息是否为无用广播消息时,具体用于:在预设的禁止操作系统启动用户标识列表中,查找所述广播消息中包含的用户标识;当所述预设的禁止操作系统启动用户标识列表中包含所述用户标识时,确定所述广播消息为无用广播消息。
  16. 如权利要求13-15任一项所述的终端设备,其特征在于,所述当所述广播消息为无用广播消息时,若所述终端处于休眠状态,则禁止启动所述终端的操作系统,包括:
    获取所述广播消息中包含的用户标识对应的进程;以及获取所述进程对应的应用软件或者操作系统;从所述存储器保存的状态列表中,获取所述应用软件或者操作系统对应的状态信息;当所述应用软件或者操作系统对应的状态信息处于休眠状态时,在接收者标识列表中清除所述广播消息对应的接收者标识,以禁止启动处于休眠状态的所述终端设备的操作系统;或者,在所述终端保存的接收者标识列表中清除所述广播消息包含的用户标识,以禁止启动处于休眠状态的所述终端的操作系统。
  17. 如权利要求13-16任一项所述的终端设备,其特征在于,所述处理器,还用于执行以下操作:
    当判定所述广播消息为有用广播消息时,若所述广播消息包含的用户标识与所述操作系统存在对应关系,则启动处于休眠状态的终端设备的操作系统;若所述广播消息包含的用户标识与所述终端设备中安装的任意一应用软件存在对应关系,则处于休眠状态的终端设备的启动操作系统,并启动所述任意一应用软件。
  18. 如权利要求13-17任一项所述的终端设备,其特征在于,所述处理器,还用于执行以下操作:
    若所述终端设备处于已启动状态,则当所述消息为有用广播消息,且所述消息中包含的用户标识与所述终端设备中安装的任意一应用软件存在对应关系时,启动所述任意一应用软件;当所述消息为无用广播消息,且所述广 播消息中包含的用户标识与所述终端设备中安装的任意一应用软件存在对应关系时,禁止启动所述任意一应用软件。
PCT/CN2015/077803 2015-04-29 2015-04-29 一种控制终端的方法、装置及终端设备 Ceased WO2016172878A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US15/570,106 US20180152893A1 (en) 2015-04-29 2015-04-29 Terminal control method and apparatus and terminal device
EP15890258.5A EP3282773B1 (en) 2015-04-29 2015-04-29 Terminal control method and apparatus, and terminal device
CN201580007869.1A CN106797613B (zh) 2015-04-29 2015-04-29 一种控制终端的方法、装置及终端设备
PCT/CN2015/077803 WO2016172878A1 (zh) 2015-04-29 2015-04-29 一种控制终端的方法、装置及终端设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/077803 WO2016172878A1 (zh) 2015-04-29 2015-04-29 一种控制终端的方法、装置及终端设备

Publications (1)

Publication Number Publication Date
WO2016172878A1 true WO2016172878A1 (zh) 2016-11-03

Family

ID=57198935

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077803 Ceased WO2016172878A1 (zh) 2015-04-29 2015-04-29 一种控制终端的方法、装置及终端设备

Country Status (4)

Country Link
US (1) US20180152893A1 (zh)
EP (1) EP3282773B1 (zh)
CN (1) CN106797613B (zh)
WO (1) WO2016172878A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797825A (zh) * 2017-10-24 2018-03-13 努比亚技术有限公司 一种数据发送方法、终端及计算机可读存储介质
CN109829268A (zh) * 2018-11-23 2019-05-31 北京云测信息技术有限公司 一种确定不同应用的所属终端关联性的方法及装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6491326B2 (ja) * 2014-09-19 2019-03-27 華為技術有限公司Huawei Technologies Co.,Ltd. アプリケーションプログラムを実行するための方法および装置
CN108196960B (zh) * 2017-08-31 2023-08-04 中兴通讯股份有限公司 一种应用的管控方法、终端及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1323495A (zh) * 1998-08-14 2001-11-21 艾利森电话股份有限公司 在建立了连接的移动终端中节省电的方法和装置
CN1988698A (zh) * 2005-12-19 2007-06-27 大唐移动通信设备有限公司 移动终端及其省电的方法
CN101998597A (zh) * 2009-08-14 2011-03-30 华为技术有限公司 广播消息发送指示方法、接收方法及装置和系统

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100781705B1 (ko) * 2006-10-24 2007-12-03 삼성전자주식회사 이동통신 단말기에서 모드 제어 장치 및 방법
US8135392B2 (en) * 2008-06-06 2012-03-13 Apple Inc. Managing notification service connections and displaying icon badges
JP2010245778A (ja) * 2009-04-03 2010-10-28 Olympus Corp 無線通信端末
KR101627162B1 (ko) * 2010-02-08 2016-06-03 삼성전자주식회사 휴대용 단말기에서 패킷 필터링을 통해 전력 소모를 줄이기 위한 장치 및 방법
US8761064B2 (en) * 2010-04-14 2014-06-24 Qualcomm Incorporated Power savings through cooperative operation of multiradio devices
US8824346B2 (en) * 2011-02-23 2014-09-02 Lg Electronics Inc. Remote wakeup of application processor of mobile device
US8897762B2 (en) * 2012-02-28 2014-11-25 Qualcomm Incorporated Optimizing signaling load overhead and battery consumption for background applications
CN102999355B (zh) * 2012-11-16 2016-04-20 福建联迪商用设备有限公司 一种由终端管理系统管理的客户端应用软件系统
CN104375851B (zh) * 2013-08-15 2019-05-31 腾讯科技(深圳)有限公司 一种智能终端的节能方法及智能终端
WO2015040092A2 (en) * 2013-09-18 2015-03-26 Telefonaktiebolaget L M Ericsson (Publ) Methods, devices, and computer program products for facilitating device-to-device communication among wireless communication devices
US20150105053A1 (en) * 2013-10-11 2015-04-16 Somasundaram Ramkumar Facility for blocking unwanted communication service
US10111172B2 (en) * 2015-03-20 2018-10-23 Google Llc Systems and methods for localized device wakeup using bluetooth low energy communications

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1323495A (zh) * 1998-08-14 2001-11-21 艾利森电话股份有限公司 在建立了连接的移动终端中节省电的方法和装置
CN1988698A (zh) * 2005-12-19 2007-06-27 大唐移动通信设备有限公司 移动终端及其省电的方法
CN101998597A (zh) * 2009-08-14 2011-03-30 华为技术有限公司 广播消息发送指示方法、接收方法及装置和系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797825A (zh) * 2017-10-24 2018-03-13 努比亚技术有限公司 一种数据发送方法、终端及计算机可读存储介质
CN109829268A (zh) * 2018-11-23 2019-05-31 北京云测信息技术有限公司 一种确定不同应用的所属终端关联性的方法及装置

Also Published As

Publication number Publication date
EP3282773A4 (en) 2018-04-11
US20180152893A1 (en) 2018-05-31
EP3282773A1 (en) 2018-02-14
CN106797613A (zh) 2017-05-31
EP3282773B1 (en) 2019-09-25
CN106797613B (zh) 2020-01-31

Similar Documents

Publication Publication Date Title
CN110300970B (zh) 解锁控制方法及相关产品
CN106293308B (zh) 一种屏幕解锁方法及装置
CN103389863B (zh) 一种显示控制方法和装置
CN107025399B (zh) 解锁控制方法及相关产品
CN107015703B (zh) 解锁控制方法及相关产品
CN107122649B (zh) 解锁控制方法、移动终端及计算机可读存储介质
CN107103223A (zh) 解锁控制方法及相关产品
HK1204373A1 (zh) 应用程序的启动控制方法及装置
CN106155788A (zh) 一种应用程序冻结方法及终端设备
CN107193473B (zh) 解锁控制方法及相关产品
CN107103222B (zh) 解锁控制方法及相关产品
WO2016172878A1 (zh) 一种控制终端的方法、装置及终端设备
CN106598563A (zh) 智能终端的重启方法、装置及智能终端
WO2018195923A1 (zh) 解锁控制方法及相关产品
CN107153782A (zh) 解锁控制方法及相关产品
CN107194226B (zh) 解锁控制方法及相关产品
CN111880988B (zh) 一种声纹唤醒日志收集方法及装置
CN108712281B (zh) 触发检测管理应用更新的方法、装置、存储介质和终端
CN104461273A (zh) 一种信息显示方法和终端设备
WO2016191968A1 (zh) 一种左右手模式的确定方法、装置及终端设备
CN106775641A (zh) 软件更新方法及智能设备
CN107197086B (zh) 解锁控制方法及相关产品
CN106201536A (zh) 一种应用图标的更换方法及终端设备
CN106714149B (zh) 无线网络接入方法、装置与终端设备
CN111966206B (zh) 一种指纹感应器的省电控制方法、装置及移动终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15890258

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15570106

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE