CN105791582B - Terminal starting method and device - Google Patents

Terminal starting method and device Download PDF

Info

Publication number
CN105791582B
CN105791582B CN201610201051.XA CN201610201051A CN105791582B CN 105791582 B CN105791582 B CN 105791582B CN 201610201051 A CN201610201051 A CN 201610201051A CN 105791582 B CN105791582 B CN 105791582B
Authority
CN
China
Prior art keywords
terminal
mode
communication function
configuration file
airplane
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
Application number
CN201610201051.XA
Other languages
Chinese (zh)
Other versions
CN105791582A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610201051.XA priority Critical patent/CN105791582B/en
Publication of CN105791582A publication Critical patent/CN105791582A/en
Application granted granted Critical
Publication of CN105791582B publication Critical patent/CN105791582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location

Abstract

The disclosure relates to a terminal starting method and device. The method comprises the following steps: acquiring a mode configuration file before communication connection is not established; determining a target communication function mode of the terminal according to the mode configuration file, wherein the target communication function mode refers to a communication function mode which the terminal should be in after being started; and when the target communication function mode is determined to be the flight mode, closing the communication function of the terminal. According to the technical scheme, the influence of the network connection of the terminal which is turned on after the user shuts down the airplane in the airplane taking process on the airplane flight is avoided, the safety of the airplane flight is improved, and the experience degree of the user using the terminal is also improved.

Description

Terminal starting method and device
Technical Field
The disclosure relates to the technical field of terminal operating systems, and in particular to a terminal booting method and device.
Background
At present, when a user takes an airplane, in order to avoid the influence of the emission and the reception of mobile phone signals on the flight of the airplane, the power supply of the mobile phone is turned off in the take-off and landing processes of the airplane, and the flight mode can be turned on in the air flight process, namely, the signal transceiver of the SIM card is turned off. After the flight mode is opened, the user can use other functions of the mobile phone, such as checking a phone book, appreciating articles and films on the mobile phone, playing games and the like.
Disclosure of Invention
The embodiment of the disclosure provides a terminal starting method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a terminal booting method is provided, which is applied to a terminal booting process, and includes:
acquiring a mode configuration file before communication connection is not established;
determining a target communication function mode of the terminal according to the mode configuration file, wherein the target communication function mode refers to a communication function mode which the terminal should be in after being started;
and when the target communication function mode is determined to be the flight mode, closing the communication function of the terminal.
Optionally, the method further includes:
acquiring a selected operation instruction of a preset option, wherein the preset option is used for indicating that the terminal is in a flight mode after being started;
and generating the mode configuration file according to the selected operation instruction.
Optionally, the method further includes:
and displaying the preset option on a shutdown interface of the terminal.
Optionally, before the displaying the preset option on the shutdown interface of the terminal, the method further includes:
detecting whether the terminal is in an airplane cabin;
and if so, displaying the preset option on a shutdown interface of the terminal.
Optionally, the detecting whether the terminal is located in an aircraft cabin includes:
collecting voice information around the terminal;
determining whether the terminal is in an airplane cabin or not according to the voice information;
or, the detecting whether the terminal is in the aircraft cabin includes:
acquiring height information of the terminal;
and determining whether the terminal is in the aircraft cabin according to the altitude information.
According to a second aspect of the embodiments of the present disclosure, there is provided a terminal booting apparatus, which is applied to a booting process of a terminal, and includes:
the first acquisition module is used for acquiring the mode configuration file before the communication connection is not established;
the determining module is used for determining a target communication function mode of the terminal according to the mode configuration file acquired by the first acquiring module, wherein the target communication function mode refers to a communication function mode which the terminal should be in after starting up;
and the closing module is used for closing the communication function of the terminal when the determining module determines that the target communication function mode is the flight mode.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring a selected operation instruction of a preset option, wherein the preset option is used for indicating that the terminal is in a flight mode after being started;
and the generating module is used for generating the mode configuration file according to the selected operation instruction acquired by the second acquiring module.
Optionally, the apparatus further comprises:
and the display module is used for displaying the preset option on a shutdown interface of the terminal.
Optionally, the apparatus further comprises: a detection module for detecting the position of the optical fiber,
the detection module is used for detecting whether the terminal is in an airplane cabin or not before the preset option is displayed on a shutdown interface of the terminal by the display module;
the display module is used for displaying the preset option on a shutdown interface of the terminal if the detection module detects that the terminal is in an airplane cabin.
Optionally, the detection module includes: an acquisition sub-module and a first determination sub-module,
the acquisition submodule is used for acquiring voice information around the terminal;
the first determining submodule is used for determining whether the terminal is in an airplane cabin according to the voice information acquired by the acquisition submodule;
alternatively, the detection module comprises: an acquisition sub-module and a second determination sub-module,
the obtaining submodule is used for obtaining the height information of the terminal;
and the second determining submodule is used for determining whether the terminal is in the aircraft cabin according to the altitude information acquired by the acquiring submodule.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal booting apparatus, which is applied to a booting process of a terminal, and includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a mode configuration file before communication connection is not established;
determining a target communication function mode of the terminal according to the mode configuration file, wherein the target communication function mode refers to a communication function mode which the terminal should be in after being started;
and when the target communication function mode is determined to be the flight mode, closing the communication function of the terminal. The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in this embodiment, before the terminal does not establish a communication connection, a pre-stored mode configuration file is automatically checked, whether the terminal needs to directly enter the flight mode is determined according to a terminal communication function mode stored in the mode configuration file, and if so, the terminal closes its own communication function, does not send or receive a communication signal, and enters the flight mode. Therefore, the influence of the network connection of the terminal after the user shuts down and restarts the airplane in the airplane taking process on the airplane flight is avoided, the safety of the airplane flight is improved, and the experience degree of the user in using the terminal is also improved.
In another embodiment, setting options are provided for a user, so that the user can set that the terminal directly enters a flight mode after being started up according to needs, the influence on the flight of the airplane caused by the fact that the user shuts down the terminal and then starts up the terminal for networking in the process of taking the airplane is avoided, the safety of the flight of the airplane is improved, and the experience of the user in using the terminal is also improved.
In another embodiment, a setting option is provided for a user when the terminal is turned off, so that the user can conveniently set the terminal to directly enter a flight mode after the terminal is turned on according to needs, the influence on the flight of the airplane caused by the fact that the user turns off the terminal and then turns on the terminal in the airplane taking process is avoided, the flight safety of the airplane is improved, and the experience degree of the user in using the terminal is also improved.
In another embodiment, whether a setting option for entering the flight mode after starting up is displayed on a shutdown interface is automatically determined according to whether the terminal is in an airplane cabin or not, when the terminal is detected to be in the airplane cabin, the setting option for entering the flight mode after starting up is displayed on the shutdown interface, and when the terminal is detected not to be in the airplane cabin, the terminal can be directly shut down without displaying the setting option. Therefore, the terminal can be set to directly enter the flight mode after the terminal is started up according to needs by a user, the influence on the flight of the airplane caused by the fact that the user shuts down the terminal and then starts up the terminal for networking in the process of taking the airplane is avoided, and the safety of the flight of the airplane is improved. In addition, when the user is not in the airplane, the airplane can be directly powered off, and setting options are not displayed on a power-off interface, so that the experience of the user in using the terminal is better.
In another embodiment, whether the terminal is in the cabin is determined by acquiring voice or detecting altitude, so that whether a setting option for entering a flight mode after starting up is displayed for a user on a shutdown interface can be more accurately determined, the user can conveniently set the terminal to directly enter the flight mode after starting up according to needs, the influence on the flight of the airplane caused by the fact that the user shuts down and then starts up the terminal network in the airplane taking process is avoided, and the safety of the airplane flight is improved. Meanwhile, the setting option is prevented from being displayed on a shutdown interface when the user does not need the setting option, and the user experience of the terminal is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a terminal booting method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a terminal power-on method according to another exemplary embodiment.
Fig. 3 is a schematic diagram illustrating a terminal setup interface according to an example embodiment.
Fig. 4 is a schematic diagram illustrating a terminal shutdown interface according to an example embodiment.
Fig. 5 is a flowchart illustrating a terminal power-on method according to another exemplary embodiment.
Fig. 6 is a flowchart illustrating a terminal power-on method according to another exemplary embodiment.
Fig. 7 is a flowchart illustrating a terminal power-on method according to another exemplary embodiment.
Fig. 8 is a block diagram illustrating a terminal power-on device according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating a terminal power-on apparatus according to another exemplary embodiment.
Fig. 10 is a block diagram illustrating a terminal power-on apparatus according to another exemplary embodiment.
Fig. 11 is a block diagram illustrating a terminal power-on apparatus according to another exemplary embodiment.
FIG. 12 is a block diagram illustrating a detection module according to an example embodiment.
FIG. 13 is a block diagram illustrating a detection module according to another exemplary embodiment.
Fig. 14 is a block diagram illustrating an apparatus for terminal power-on according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme provided by the embodiment of the disclosure relates to a terminal, and a user can set the terminal to enter a flight mode when the terminal is powered on again after being powered off. Therefore, the user closes the terminal before the airplane takes off, and when the airplane is started again in the flying process, the terminal directly enters the flying mode, and the flying of the airplane cannot be influenced by terminal networking.
The terminal can be any device with a communication function, such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a personal digital assistant and the like.
Fig. 1 is a flowchart illustrating a terminal booting method according to an exemplary embodiment, where as shown in fig. 1, the terminal booting method is used in a terminal, and includes the following steps S11-S13:
in step S11, before the communication connection is not established, a mode profile is acquired;
in step S12, determining a target communication function mode of the terminal according to the mode configuration file, where the target communication function mode is a communication function mode that the terminal should be in after being powered on;
in step S13, when the target communication function mode is determined to be the flight mode, the communication function of the terminal is turned off.
In this embodiment, before the communication connection is not established, a pre-stored mode configuration file is automatically checked, whether the terminal needs to directly enter the flight mode is determined according to a target communication function mode of the terminal stored in the mode configuration file, and if so, the terminal closes its own communication function, does not send or receive a communication signal any more, and enters the flight mode. Therefore, the influence of the network connection of the terminal after the user shuts down and restarts the airplane in the airplane taking process on the airplane flight is avoided, the safety of the airplane flight is improved, and the experience degree of the user in using the terminal is also improved.
In another embodiment, the method further comprises: and when the communication function mode is determined to be the normal mode, starting the communication function of the terminal, and enabling the terminal to enter the normal mode.
In this embodiment, if it is determined that the terminal does not need to enter the flight mode according to the terminal communication function mode stored in the mode configuration file, the terminal is normally powered on, the communication function is started, and normal use of the terminal by a user is ensured.
In another embodiment, fig. 2 is a flowchart illustrating a terminal booting method according to another exemplary embodiment, as shown in fig. 2, the method further includes:
in step S21, a selected operation instruction for a preset option is obtained, where the preset option is used to indicate that the terminal should be in a flight mode after being started up;
in step S22, a mode profile is generated according to the selected operation instruction.
For example, fig. 3 is a schematic diagram of a terminal setting interface according to an exemplary embodiment, as shown in fig. 3, an option 31 "directly enter the flight mode when the terminal is powered on next time" is provided on the setting interface 30 of the terminal, and if the option switch 32 is turned on by a user, the mode configuration file generated by the terminal includes that the communication function mode after the terminal is powered on is the flight mode. Thus, when the terminal is powered on again after being powered off, the terminal directly enters the flight mode.
In the embodiment, setting options are provided for a user, so that the user can set the terminal to directly enter a flight mode after the terminal is started up according to needs, the influence on the flight of the airplane caused by the fact that the user shuts down the terminal and then starts up the terminal for networking in the process of taking the airplane is avoided, the safety of the flight of the airplane is improved, and the experience of the user in using the terminal is also improved.
In another embodiment, the method further comprises: and when the selected operation instruction is not acquired, generating a second mode configuration file, wherein the second mode configuration file comprises an instruction that the terminal is in a normal mode after being started.
In this embodiment, if the user selects the setting option, the default terminal enters the normal mode after being powered on, and the generated mode configuration file includes that the communication function mode after the terminal is powered on is the normal mode.
In another embodiment, the method further comprises:
and displaying preset options on a shutdown interface of the terminal.
For example, fig. 4 is a schematic diagram of a terminal shutdown interface according to an exemplary embodiment, as shown in fig. 4, a dialog box 41 "directly enter the flight mode when the terminal is powered on next time" is provided on the terminal shutdown interface 40, and if the user selects "yes", the mode configuration file generated by the terminal includes that the communication function mode after the terminal is powered on is the flight mode. Thus, when the terminal is powered on again after being powered off, the terminal directly enters the flight mode.
In the embodiment, the setting options are provided for the user when the terminal is turned off, the user can conveniently set the terminal to directly enter the flight mode after the terminal is turned on according to needs, the influence on the flight of the airplane caused by the fact that the user turns off and then turns on the terminal in the airplane taking process is avoided, the safety of the flight of the airplane is improved, and the experience degree of the user in using the terminal is also improved.
In another embodiment, fig. 5 is a flowchart illustrating a terminal power-on method according to another exemplary embodiment, where as shown in fig. 5, before a power-off interface of the terminal displays preset options, the method further includes:
in step S51, it is detected whether the terminal is in the aircraft cabin;
in step S52, if yes, a preset option is displayed on the shutdown interface of the terminal.
In this embodiment, it is automatically determined whether to display a setting option for entering the flight mode after the terminal is turned on the shutdown interface for the user according to whether the terminal is in the aircraft cabin, the setting option for entering the flight mode after the terminal is turned on is displayed on the shutdown interface when it is detected that the terminal is in the aircraft cabin, and the terminal is directly turned off without displaying the setting option when it is detected that the terminal is not in the aircraft cabin. Therefore, the terminal can be set to directly enter the flight mode after the terminal is started up according to needs by a user, the influence on the flight of the airplane caused by the fact that the user shuts down the terminal and then starts up the terminal for networking in the process of taking the airplane is avoided, and the safety of the flight of the airplane is improved. In addition, when the user is not in the airplane, the airplane can be directly powered off, and setting options are not displayed on a power-off interface, so that the experience of the user in using the terminal is better.
In another embodiment, detecting whether the terminal is in the aircraft cabin may include the following two ways:
mode one, determining through voice information
Fig. 6 is a flowchart illustrating a terminal booting method according to another exemplary embodiment, and as shown in fig. 6, detecting whether the terminal is located in the cabin of the aircraft includes the following steps:
in step S61, voice information around the terminal is collected;
in step S62, it is determined whether the terminal is in the cabin of the airplane based on the voice information.
For example, when the voice information collected by the terminal includes "welcome to take a123 airliner of international airlines in china", this airliner is driven by beijing to shanghai … … ", it can be determined that the terminal is currently in the cabin of the airplane.
Mode two, determining through height information
Fig. 7 is a flowchart illustrating a terminal booting method according to another exemplary embodiment, and as shown in fig. 7, detecting whether the terminal is located in the cabin of the aircraft includes the following steps:
in step S71, height information of the terminal is acquired;
in step S72, it is determined whether the terminal is in the aircraft cabin based on the altitude information.
For example, detecting the current altitude information of the terminal, and if the current altitude of the terminal is 1000 meters, determining that the terminal is in an airplane cabin; or when the terminal detects that the current height exceeds 600 meters, the terminal can be determined to be in the airplane cabin.
In the embodiment, whether the terminal is in the cabin is determined by acquiring voice or detecting the altitude, so that whether a setting option for entering the flight mode after starting up is displayed for a user on a shutdown interface can be more accurately determined, the user can conveniently set the terminal to directly enter the flight mode after starting up according to needs, the influence on the flight of the airplane caused by the fact that the user shuts down and then starts up the terminal network in the airplane taking process is avoided, and the safety of the airplane flight is improved. Meanwhile, the setting option is prevented from being displayed on a shutdown interface when the user does not need the setting option, and the user experience of the terminal is improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 8 is a block diagram illustrating a terminal power-on apparatus, which may be implemented as part or all of an electronic device through software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 8, the terminal booting apparatus, applied to a booting process of a terminal, includes:
a first obtaining module 81 configured to obtain a mode configuration file before a communication connection is not established;
a determining module 82, configured to determine a target communication function mode of the terminal according to the mode configuration file acquired by the first acquiring module 81, where the target communication function mode refers to a communication function mode that the terminal should be in after being powered on;
a closing module 83 configured to close the communication function of the terminal when the target communication function mode determined by the determination module 82 is the flight mode.
In this embodiment, when the terminal is powered on, the terminal automatically checks a pre-stored mode configuration file, and determines whether the terminal needs to directly enter the flight mode according to a terminal communication function mode stored in the mode configuration file, and if so, the terminal closes its own communication function, does not send or receive a communication signal, and enters the flight mode. Therefore, the influence of the network connection of the terminal after the user shuts down and restarts the airplane in the airplane taking process on the airplane flight is avoided, the safety of the airplane flight is improved, and the experience degree of the user in using the terminal is also improved.
Fig. 9 is a block diagram illustrating a terminal power-on apparatus according to another exemplary embodiment, as shown in fig. 9, in another embodiment, the apparatus further includes:
a second obtaining module 84, configured to obtain a selected operation instruction for a preset option, where the preset option is used to indicate that the terminal should be in a flight mode after being started up;
a generating module 85 configured to generate the mode configuration file according to the selected operation instruction acquired by the second acquiring module 84.
For example, fig. 3 is a schematic diagram of a terminal setting interface according to an exemplary embodiment, as shown in fig. 3, an option 31 "directly enter the flight mode when the terminal is powered on next time" is provided on the setting interface 30 of the terminal, and if the option switch 32 is turned on by a user, the mode configuration file generated by the terminal includes that the communication function mode after the terminal is powered on is the flight mode. Thus, when the terminal is powered on again after being powered off, the terminal directly enters the flight mode.
In the embodiment, setting options are provided for a user, so that the user can set the terminal to directly enter a flight mode after the terminal is started up according to needs, the influence on the flight of the airplane caused by the fact that the user shuts down the terminal and then starts up the terminal for networking in the process of taking the airplane is avoided, the safety of the flight of the airplane is improved, and the experience of the user in using the terminal is also improved.
Fig. 10 is a block diagram illustrating a terminal power-on apparatus according to another exemplary embodiment, as shown in fig. 10, in another embodiment, the apparatus further includes:
and the display module 86 is configured to display preset options on a shutdown interface of the terminal.
For example, fig. 4 is a schematic diagram of a terminal shutdown interface according to an exemplary embodiment, as shown in fig. 4, a dialog box 41 "directly enter the flight mode when the terminal is powered on next time" is provided on the terminal shutdown interface 40, and if the user selects "yes", the mode configuration file generated by the terminal includes that the communication function mode after the terminal is powered on is the flight mode. Thus, when the terminal is powered on again after being powered off, the terminal directly enters the flight mode.
In the embodiment, the setting options are provided for the user when the terminal is turned off, the user can conveniently set the terminal to directly enter the flight mode after the terminal is turned on according to needs, the influence on the flight of the airplane caused by the fact that the user turns off and then turns on the terminal in the airplane taking process is avoided, the safety of the flight of the airplane is improved, and the experience degree of the user in using the terminal is also improved.
Fig. 11 is a block diagram illustrating a terminal power-on apparatus according to another exemplary embodiment, as shown in fig. 11, in another embodiment, the apparatus further includes: the detection module (87) is provided with a detection module,
the detection module 87 is configured to detect whether the terminal is in the airplane cabin or not before the display module 86 displays the preset option on the shutdown interface of the terminal;
the display module 86 is configured to display a preset option on a shutdown interface of the terminal if the detection module 87 detects that the terminal is in the aircraft cabin.
In this embodiment, the display module determines whether to display a setting option for entering the flight mode after the terminal is turned on the shutdown interface for the user according to whether the terminal detected by the detection module is in the aircraft cabin, displays the setting option for entering the flight mode after the terminal is turned on the shutdown interface when the terminal detected to be in the aircraft cabin, and directly shuts down the terminal without displaying the setting option when the terminal detected not to be in the aircraft cabin. Therefore, the terminal can be set to directly enter the flight mode after the terminal is started up according to needs by a user, the influence on the flight of the airplane caused by the fact that the user shuts down the terminal and then starts up the terminal for networking in the process of taking the airplane is avoided, and the safety of the flight of the airplane is improved. In addition, when the user is not in the airplane, the airplane can be directly powered off, and setting options are not displayed on a power-off interface, so that the experience of the user in using the terminal is better.
In another embodiment, the detection module may detect whether the terminal is in the aircraft cabin in the following two ways.
First, fig. 12 is a block diagram of a detection module according to an exemplary embodiment, and as shown in fig. 12, the detection module 87 includes: an acquisition sub-module 121 and a first determination sub-module 122.
The acquisition submodule 121 is configured to acquire voice information around the terminal;
a first determining submodule 122 configured to determine whether the terminal is in the cabin of the airplane according to the voice information collected by the collecting submodule 121.
For example, when the voice information collected by the terminal includes "welcome to take a123 airliner of international airlines in china", this airliner is driven by beijing to shanghai … … ", it can be determined that the terminal is currently in the cabin of the airplane.
Mode two, fig. 13 is a block diagram illustrating a detection module according to another exemplary embodiment, and as shown in fig. 13, the detection module 87 includes: an acquisition submodule 131 and a second determination submodule 132.
An acquisition submodule 131 configured to acquire height information of the terminal;
a second determining submodule 132 configured to determine whether the terminal is in the cabin of the aircraft, based on the altitude information acquired by the acquiring submodule 131.
For example, detecting the current altitude information of the terminal, and if the current altitude of the terminal is 1000 meters, determining that the terminal is in an airplane cabin; or when the terminal detects that the current height exceeds 600 meters, the terminal can be determined to be in the airplane cabin.
In the embodiment, the detection module determines whether the terminal is in the cabin by acquiring voice or detecting altitude, so that whether a setting option for entering the flight mode after starting up is displayed for a user on a shutdown interface can be more accurately determined, the user can conveniently set the terminal to directly enter the flight mode after starting up according to needs, the influence on the flight of the airplane caused by the fact that the user shuts down and then starts up the terminal network in the airplane taking process is avoided, and the safety of the airplane flight is improved. Meanwhile, the setting option is prevented from being displayed on a shutdown interface when the user does not need the setting option, and the user experience of the terminal is improved.
The present disclosure further provides a terminal booting device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a mode configuration file before communication connection is not established;
determining a target communication function mode of the terminal according to the mode configuration file, wherein the target communication function mode refers to a communication function mode which the terminal should be in after being started;
and when the target communication function mode is determined to be the flight mode, closing the communication function of the terminal.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 14 is a block diagram illustrating an apparatus for terminal power-on, which is suitable for a terminal device, according to an example embodiment. For example, the apparatus 1700 may be a video camera, a sound recording device, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Apparatus 1700 may include one or more of the following components: processing component 1702, memory 1704, power component 1706, multimedia component 1708, audio component 1710, input/output (I/O) interface 1712, sensor component 1714, and communications component 1716.
The processing component 1702 generally controls the overall operation of the apparatus 1700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1702 may include one or more processors 1720 to execute instructions to perform all or a portion of the steps of the above-described method. Further, processing component 1702 may include one or more modules that facilitate interaction between processing component 1702 and other components. For example, processing component 1702 may include a multimedia module to facilitate interaction between multimedia component 1708 and processing component 1702.
The memory 1704 is configured to store various types of data to support operations at the apparatus 1700. Examples of such data include instructions for any application or method operating on the apparatus 1700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1706 provides power to the various components of the device 1700. The power components 1706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 1700.
The multimedia component 1708 includes a screen providing an output interface between the device 1700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1710 is configured to output and/or input audio signals. For example, audio component 1710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1700 is in an operating mode, such as a call mode, a record mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1704 or transmitted via the communication component 1716. In some embodiments, audio component 1710 also includes a speaker for outputting audio signals.
The I/O interface 1712 provides an interface between the processing component 1702 and peripheral interface modules, such as a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1714 includes one or more sensors for providing various aspects of state assessment for the apparatus 1700. For example, sensor assembly 1714 may detect an open/closed state of apparatus 1700, the relative positioning of components, such as a display and keypad of apparatus 1700, the change in position of apparatus 1700 or a component of apparatus 1700, the presence or absence of user contact with apparatus 1700, the orientation or acceleration/deceleration of apparatus 1700, and the change in temperature of apparatus 1700. The sensor assembly 1714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1716 is configured to facilitate communications between the apparatus 1700 and other devices in a wired or wireless manner. The apparatus 1700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1704 comprising instructions, executable by the processor 1720 of the apparatus 1700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of an apparatus 1700, enable the apparatus 1700 to perform the method for powering on the terminal, the method comprising:
acquiring a mode configuration file before communication connection is not established;
determining a target communication function mode of the terminal according to the mode configuration file, wherein the target communication function mode refers to a communication function mode which the terminal should be in after being started;
and when the target communication function mode is determined to be the flight mode, closing the communication function of the terminal.
Optionally, the method further includes:
acquiring a selected operation instruction of a preset option, wherein the preset option is used for indicating that the terminal is in a flight mode after being started;
and generating the mode configuration file according to the selected operation instruction.
Optionally, the method further includes:
and displaying the preset option on a shutdown interface of the terminal.
Optionally, before the displaying the preset option on the shutdown interface of the terminal, the method further includes:
detecting whether the terminal is in an airplane cabin;
and if so, displaying the preset option on a shutdown interface of the terminal.
Optionally, the detecting whether the terminal is located in an aircraft cabin includes:
collecting voice information around the terminal;
determining whether the terminal is in an airplane cabin or not according to the voice information;
or, the detecting whether the terminal is in the aircraft cabin includes:
acquiring height information of the terminal;
and determining whether the terminal is in the aircraft cabin according to the altitude information.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (6)

1. A terminal starting method is characterized by comprising the following steps:
when the airplane is shut down, detecting whether the terminal is in an airplane cabin;
if not, the preset option is not displayed, and the computer is directly powered off; if yes, displaying a preset option on a shutdown interface of the terminal;
acquiring a selected operation instruction of the preset option, wherein the preset option is used for indicating that the terminal is in a flight mode after being started;
generating a mode configuration file according to the selected operation instruction;
when starting up, before the communication connection is not established, acquiring the mode configuration file;
determining a target communication function mode of the terminal according to the mode configuration file, wherein the target communication function mode refers to a communication function mode which the terminal should be in after being started;
when the target communication function mode is determined to be the flight mode, closing the communication function of the terminal;
when the selected operation instruction of the preset option is not acquired, generating a second mode configuration file, wherein the second mode configuration file comprises an instruction that the terminal is in a normal mode after being started; and when the terminal is powered on again after being powered off, the communication function is normally started.
2. The method of claim 1, wherein the detecting whether the terminal is within an aircraft cabin comprises:
collecting voice information around the terminal;
determining whether the terminal is in an airplane cabin or not according to the voice information;
or, the detecting whether the terminal is in the aircraft cabin includes:
acquiring height information of the terminal;
and determining whether the terminal is in the aircraft cabin according to the altitude information.
3. A terminal booting apparatus, comprising:
the detection module is used for detecting whether the terminal is in an airplane cabin or not when the terminal is turned off;
the display module is used for directly shutting down the terminal without displaying preset options when the detection module detects that the terminal is not in the airplane cabin; when the detection module detects that the terminal is in an airplane cabin, displaying a preset option on a shutdown interface of the terminal;
the second acquisition module is used for acquiring a selected operation instruction of the preset option, wherein the preset option is used for indicating that the terminal is in a flight mode after being started;
the generating module is used for generating a mode configuration file according to the selected operation instruction acquired by the second acquiring module;
the first acquisition module is used for acquiring the mode configuration file when the computer is started and before the communication connection is not established;
the determining module is used for determining a target communication function mode of the terminal according to the mode configuration file acquired by the first acquiring module, wherein the target communication function mode refers to a communication function mode which the terminal should be in after starting up;
a closing module, configured to close the communication function of the terminal when the determining module determines that the target communication function mode is a flight mode;
when the selected operation instruction of the preset option is not acquired, generating a second mode configuration file, wherein the second mode configuration file comprises an instruction that the terminal is in a normal mode after being started; and when the terminal is powered on again after being powered off, the communication function is normally started.
4. The apparatus of claim 3, wherein the detection module comprises: an acquisition sub-module and a first determination sub-module,
the acquisition submodule is used for acquiring voice information around the terminal;
the first determining submodule is used for determining whether the terminal is in an airplane cabin according to the voice information acquired by the acquisition submodule;
alternatively, the detection module comprises: an acquisition sub-module and a second determination sub-module,
the obtaining submodule is used for obtaining the height information of the terminal;
and the second determining submodule is used for determining whether the terminal is in the aircraft cabin according to the altitude information acquired by the acquiring submodule.
5. A terminal booting apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the airplane is shut down, detecting whether the terminal is in an airplane cabin;
if not, the preset option is not displayed, and the computer is directly powered off; if yes, displaying a preset option on a shutdown interface of the terminal;
acquiring a selected operation instruction of the preset option, wherein the preset option is used for indicating that the terminal is in a flight mode after being started;
generating a mode configuration file according to the selected operation instruction;
when starting up, before the communication connection is not established, acquiring the mode configuration file;
determining a target communication function mode of the terminal according to the mode configuration file, wherein the target communication function mode refers to a communication function mode which the terminal should be in after being started;
when the target communication function mode is determined to be the flight mode, closing the communication function of the terminal;
when the selected operation instruction of the preset option is not acquired, generating a second mode configuration file, wherein the second mode configuration file comprises an instruction that the terminal is in a normal mode after being started; and when the terminal is powered on again after being powered off, the communication function is normally started.
6. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of claim 1 or 2.
CN201610201051.XA 2016-03-31 2016-03-31 Terminal starting method and device Active CN105791582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610201051.XA CN105791582B (en) 2016-03-31 2016-03-31 Terminal starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610201051.XA CN105791582B (en) 2016-03-31 2016-03-31 Terminal starting method and device

Publications (2)

Publication Number Publication Date
CN105791582A CN105791582A (en) 2016-07-20
CN105791582B true CN105791582B (en) 2020-01-14

Family

ID=56394603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610201051.XA Active CN105791582B (en) 2016-03-31 2016-03-31 Terminal starting method and device

Country Status (1)

Country Link
CN (1) CN105791582B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109788122B (en) * 2017-11-14 2021-02-26 华为终端有限公司 Method for starting flight mode and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2075996A1 (en) * 2007-12-31 2009-07-01 High Tech Computer, Corp. Method for providing a quick list using an end key of a mobile communication device
CN103136023A (en) * 2012-12-27 2013-06-05 天津三星通信技术研究有限公司 Embedded type terminal
CN104536552A (en) * 2014-12-03 2015-04-22 惠州Tcl移动通信有限公司 Starting method and system for mobile terminal under airplane mode
CN104902081A (en) * 2015-04-30 2015-09-09 广东欧珀移动通信有限公司 Control method of flight mode and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1188009C (en) * 2003-01-28 2005-02-02 中电赛龙通信研究中心有限责任公司 Method of preventing mobile phone interference
CN102651783A (en) * 2011-02-28 2012-08-29 中兴通讯股份有限公司 Method and device for automatically control flying mode, and mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2075996A1 (en) * 2007-12-31 2009-07-01 High Tech Computer, Corp. Method for providing a quick list using an end key of a mobile communication device
CN103136023A (en) * 2012-12-27 2013-06-05 天津三星通信技术研究有限公司 Embedded type terminal
CN104536552A (en) * 2014-12-03 2015-04-22 惠州Tcl移动通信有限公司 Starting method and system for mobile terminal under airplane mode
CN104902081A (en) * 2015-04-30 2015-09-09 广东欧珀移动通信有限公司 Control method of flight mode and mobile terminal

Also Published As

Publication number Publication date
CN105791582A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
US10706173B2 (en) Method and device for displaying notification information
US10610152B2 (en) Sleep state detection method, apparatus and system
US10292004B2 (en) Method, device and medium for acquiring location information
US9667774B2 (en) Methods and devices for sending virtual information card
US10116781B2 (en) Method, device and computer-readable medium for controlling a device
US10133957B2 (en) Method and device for recognizing object
US20170178289A1 (en) Method, device and computer-readable storage medium for video display
EP3136793A1 (en) Method and apparatus for awakening electronic device
CN109557999B (en) Bright screen control method and device and storage medium
US20170064182A1 (en) Method and device for acquiring image file
US9491371B2 (en) Method and device for configuring photographing parameters
US9749454B2 (en) Method and device for controlling smart device
EP3136699A1 (en) Method and device for connecting external equipment
US10045163B2 (en) Methods and apparatuses for controlling a wireless access point
US11361586B2 (en) Method for sending warning information, storage medium and terminal
US10439660B2 (en) Method and device for adjusting frequencies of intercom apparatuses
CN105868709B (en) Method and device for closing fingerprint identification function
US10334097B2 (en) Method and apparatus for disabling alarm in device, and storage medium
US10705729B2 (en) Touch control method and apparatus for function key, and storage medium
EP3322227A1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
US10111026B2 (en) Detecting method and apparatus, and storage medium
US9897439B2 (en) Method and terminal for measuring angle
EP3099023A1 (en) Method and device for sending message
EP3104282A1 (en) Search method and search apparatus
US20160139770A1 (en) Method for presenting prompt on mobile terminal and the same mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant