CN106126201B - Terminal charging method and device - Google Patents

Terminal charging method and device Download PDF

Info

Publication number
CN106126201B
CN106126201B CN201610416148.2A CN201610416148A CN106126201B CN 106126201 B CN106126201 B CN 106126201B CN 201610416148 A CN201610416148 A CN 201610416148A CN 106126201 B CN106126201 B CN 106126201B
Authority
CN
China
Prior art keywords
terminal
starting
charging
flight mode
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610416148.2A
Other languages
Chinese (zh)
Other versions
CN106126201A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610416148.2A priority Critical patent/CN106126201B/en
Publication of CN106126201A publication Critical patent/CN106126201A/en
Application granted granted Critical
Publication of CN106126201B publication Critical patent/CN106126201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method and a device for charging a terminal, and belongs to the technical field of computers. The method comprises the following steps: the terminal detects that the terminal is connected with a charging power supply in a shutdown state; the terminal starts an operating system, starts a flight mode and enters a dormant state; and when a starting-up instruction is received, the terminal exits the dormant state and closes the flight mode. By adopting the invention, the starting time in the process of shutdown charging can be shortened.

Description

Terminal charging method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for charging a terminal.
Background
With the development of computer technology, terminals such as mobile phones and the like become essential products of modern people, and play an increasingly important role in daily life of people.
In the prior art, when a terminal is in a shutdown state, a user wants to charge the terminal, the terminal can be connected with a power supply, when the terminal detects that the terminal is connected with the power supply, a startup operation (kernel startup, init (initialization) process background startup and no system application program is started) is performed, then a shutdown charging service application program is started, and a charging icon is displayed. At the moment, the terminal is charged in a power-off state, when a user wants to start the terminal, the user can press a power key for a long time, the terminal can detect a start instruction, at the moment, the power-off operation is firstly carried out, and then the normal power-on operation is carried out.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the terminal is charged in a shutdown state, when a user starts the terminal, the terminal needs to be started only by performing shutdown operation and normal startup operation, and therefore the time for starting the terminal is long.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for charging a terminal. The technical scheme is as follows:
in a first aspect, a method for charging a terminal is provided, where the method includes:
the terminal detects that the terminal is connected with a charging power supply in a shutdown state;
the terminal starts an operating system, starts a flight mode and enters a dormant state;
and when a starting-up instruction is received, the terminal exits the dormant state and closes the flight mode.
Optionally, after the terminal starts an operating system, starts a flight mode, and enters a sleep state, the method further includes:
and displaying an interface of a shutdown charging icon on a screen of the terminal.
Optionally, when receiving the power-on instruction, the terminal exits the sleep state, and after closing the flight mode, the method further includes:
and the screen of the terminal is switched to a desktop main interface by displaying the shutdown charging icon.
Optionally, when receiving a power-on instruction, the terminal exits the sleep state and closes the flight mode, including:
and when a starting-up instruction triggered by long-time pressing of a power key is received, the terminal exits from the dormant state and closes the flight mode.
Optionally, when receiving the power-on instruction, the terminal exits the sleep state, and after closing the flight mode, the method further includes:
the terminal displays a power-on charging icon.
In a second aspect, an apparatus for charging a terminal is provided, the apparatus comprising:
the detection module is used for detecting the connection with the charging power supply in a shutdown state;
the starting module is used for starting the operating system, starting the flight mode and entering a dormant state;
and the closing module is used for exiting the dormant state and closing the flight mode when receiving the starting instruction.
Optionally, the apparatus further comprises:
and the display module is used for displaying an interface of a shutdown charging icon on a screen of the terminal.
Optionally, the display module is further configured to:
and the screen of the terminal is switched to a desktop main interface by displaying the shutdown charging icon.
Optionally, the starting module is configured to:
and when a starting-up instruction triggered by long-time pressing of a power key is received, the terminal exits from the dormant state and closes the flight mode.
Optionally, the display module is further configured to:
and displaying a startup charging icon.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the terminal detects the connection with the charging power supply in the shutdown state, starts the operating system, starts the flight mode and enters the dormant state, and when receiving the startup instruction, the terminal exits the dormant state and closes the flight mode. Therefore, when the terminal receives the starting-up instruction, the operating system can be directly quitted from the dormant state, the flight mode is closed, the terminal can reach the state after normal starting-up, and the terminal does not need to be powered off firstly and then powered on again, so that the starting-up time of the terminal during shutdown and charging can be saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for charging a terminal according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a system for charging a terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a shutdown charging icon according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a power-on charging icon according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a power-on charging icon according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal charging device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal charging device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for charging a terminal. The terminal can be a mobile phone, a tablet computer and the like. The terminal may have a processor, memory, transceiver, screen, etc. disposed therein. The processor may be used for processing in the terminal charging process, the memory may be used for storing data to be stored in the terminal charging process, the transceiver may be used for transmitting and receiving messages, the screen may be used for displaying charging icons and the like, and the screen may be a touch screen. In this embodiment, a terminal is taken as an example of a mobile phone, and a detailed description of the scheme is performed, and other situations are similar to the above, and the detailed description is omitted in this embodiment.
As shown in fig. 1, the processing flow of the method may include the following steps:
in step 101, the terminal detects connection with the charging power supply in the power-off state.
In implementation, as shown in fig. 2, after the user turns off the mobile phone, the user wants to charge the mobile phone, one end of the mobile phone charger may be connected to the mobile phone, and then the other end of the mobile phone charger is connected to the power supply, and the terminal may detect that the terminal is connected to the charging power supply in the power-off state.
In step 102, the terminal starts an operating system, starts a flight mode, and enters a sleep state.
In implementation, when the mobile phone detects that the mobile phone is connected with a charging power supply in a shutdown state, a bootloader is started, hardware equipment is initialized, a mapping map of a memory space is established, a Linux kernel is started, various software and hardware environments are initialized, a driver is loaded, a root file system is mounted, an init process (initialization process) is executed, and various local service programs of an android operating system are started by the init process. Then the mobile phone starts the flight mode, and the mobile phone can not be connected to the network in the flight mode, and can not receive and transmit data (can not be connected to the wireless network, can not receive and dial a call, can not receive and transmit short messages, etc.). Then, the operating system is switched to a sleep state, and when the operating system of the mobile phone is in the sleep state, a Central Processing Unit (CPU) also sleeps, and most programs in the mobile phone stop running (most of the system programs and the application programs installed in the mobile phone are dormant). Therefore, the mobile phone can not receive and send data in the flight mode, and each application program can not receive the data, so that the dormant application program can not be awakened, and the power consumption of the mobile phone can be saved.
Optionally, the terminal starts the operating system, starts the flight mode, and enters a sleep state, and then an interface of a shutdown charging icon may be displayed on the screen of the terminal.
In implementation, as shown in fig. 3, after the operating system of the mobile phone enters the sleep state, the mobile phone may further obtain a pre-stored shutdown charging icon, and then display an interface of the shutdown charging icon on the screen, where the user cannot interact with the mobile phone while displaying the interface of the shutdown charging icon, so as to save power consumption of the mobile phone.
In addition, if the mobile phone is provided with the breathing lamp, the lighting color of the breathing lamp can be adjusted to the lighting color corresponding to charging, and in addition, the lighting color of the breathing lamp can be set according to the electric quantity of the battery, for example, when the electric quantity of the battery is less than 20%, the lighting color of the breathing lamp is red; the battery power is within 20% -90%, the lighting color of the breathing lamp is yellow, and when the battery power is greater than 90%, the lighting color of the breathing lamp is green. The mobile phone can acquire the battery power at the moment when displaying the shutdown charging icon, acquire the light-emitting color of the breathing lamp corresponding to the battery power, and then adjust the light-emitting color of the breathing lamp to the acquired light-emitting color.
In step 103, when the power-on command is received, the terminal exits the sleep state and the flight mode is turned off.
In implementation, a user can click a power-on button, the mobile phone receives a power-on instruction, when the mobile phone receives the power-on instruction, the operating system exits the sleep mode and closes the flight mode, and at this time, the mobile phone can reach a normal use state (the mobile phone can be connected to a network, the mobile phone can receive and send data, and the like), that is, the user can interact with the mobile phone (the user can use the mobile phone to dial a call, send a short message, use an application program installed in the mobile phone, and the like).
Optionally, when the power-on instruction is received, the terminal exits from the sleep state, and after the flight mode is closed, the screen of the terminal may be switched to the desktop main interface by displaying a power-off charging icon.
In implementation, after the flight mode of the mobile phone is closed, the desktop of the mobile phone can be acquired, then the shutdown charging icon displayed in the screen is switched to the desktop main interface of the mobile phone, at the moment, the desktop main interface is displayed in the screen of the mobile phone, and a user can interact with the mobile phone.
Optionally, the user power-on method may be long-time pressing of a power key, and the processing of step 103 may be as follows: and when a starting-up instruction triggered by long-time pressing of the power key is received, the terminal exits from the dormant state and closes the flight mode.
The power key is a starting key and is arranged on the side surface of the mobile phone and used for a user to start the mobile phone for a long time.
In implementation, when the power key is the power key, the user may press the power key for a long time, and when the mobile phone detects that the long press time of the power key exceeds the preset threshold, the mobile phone may receive the power instruction, the operating system of the mobile phone exits the sleep mode, and the mobile phone closes the flight mode, so that the mobile phone may reach a normal use state (the mobile phone may be connected to a network, the mobile phone may receive and send data, etc.), that is, the user may interact with the mobile phone.
Optionally, when the power-on instruction is received, the terminal exits from the sleep state, and after the flight mode is turned off, the mobile phone may further display a power-on charging icon.
In implementation, a user can click a power-on button, the mobile phone receives a power-on instruction, and when the mobile phone receives the power-on instruction, the operating system exits the sleep mode and closes the flight mode. The mobile phone can detect whether the battery is fully charged at the moment, and if the battery is not fully charged, a startup charging icon can be displayed. At the moment, the mobile phone can also acquire the electric quantity of the mobile phone battery and display the electric quantity of the mobile phone battery at the moment. For example, as shown in fig. 4, a power-on charge icon may be displayed at the power display icon position, and the battery power at that time (75%) may be displayed next to the battery power display icon.
In addition, as shown in fig. 5, if the mobile phone detects that the battery is fully charged at this time, a charge completion icon may be displayed, for example, 100% displayed next to the charge display icon.
In the embodiment of the invention, the terminal detects the connection with the charging power supply in the shutdown state, starts the operating system, starts the flight mode and enters the dormant state, and when receiving the startup instruction, the terminal exits the dormant state and closes the flight mode. Therefore, when the terminal receives the starting-up instruction, the operating system can be directly quitted from the dormant state, the flight mode is closed, the terminal can reach the state after normal starting-up, and the terminal does not need to be powered off firstly and then powered on again, so that the starting-up time of the terminal during shutdown and charging can be saved.
Based on the same technical concept, an embodiment of the present invention further provides a terminal charging apparatus, as shown in fig. 6, the apparatus includes:
a detecting module 610, configured to detect connection with a charging power source in a shutdown state;
a starting module 620, configured to start an operating system, start a flight mode, and enter a sleep state;
a closing module 630, configured to, when a power-on instruction is received, exit the sleep state and close the flight mode.
Optionally, as shown in fig. 7, the apparatus further includes:
and the display module 640 is used for displaying an interface of a shutdown charging icon on a screen of the terminal.
Optionally, the display module 640 is further configured to:
and the screen of the terminal is switched to a desktop main interface by displaying the shutdown charging icon.
Optionally, the starting module 620 is configured to:
and when a starting-up instruction triggered by long-time pressing of a power key is received, the terminal exits from the dormant state and closes the flight mode.
Optionally, the display module 640 is further configured to:
and displaying a startup charging icon.
In the embodiment of the invention, the terminal detects the connection with the charging power supply in the shutdown state, starts the operating system, starts the flight mode and enters the dormant state, and when receiving the startup instruction, the terminal exits the dormant state and closes the flight mode. Therefore, when the terminal receives the starting-up instruction, the operating system can be directly quitted from the dormant state, the flight mode is closed, the terminal can reach the state after normal starting-up, and the terminal does not need to be powered off firstly and then powered on again, so that the starting-up time of the terminal during shutdown and charging can be saved.
It should be noted that: in the terminal charging device provided in the above embodiment, only the division of the above functional modules is used for illustration during charging, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the terminal charging device is divided into different functional modules to complete all or part of the above described functions. In addition, the terminal charging device and the terminal charging method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Referring to fig. 8, a schematic structural diagram of a terminal according to an embodiment of the present invention is shown, where the terminal may be used to implement the method for charging the terminal provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the terminal 800 may include RF (Radio Frequency) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a WiFi (wireless fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 800, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 800, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 8, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 800 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or a backlight when the terminal 800 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the terminal 800, further description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 800. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal 800.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 800 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 8 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 800, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 800, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 800 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal 800 further includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 800 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal 800 is a touch screen display, the terminal 800 further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
the terminal detects that the terminal is connected with a charging power supply in a shutdown state;
the terminal starts an operating system, starts a flight mode and enters a dormant state;
and when a starting-up instruction is received, the terminal exits the dormant state and closes the flight mode.
Optionally, after the terminal starts an operating system, starts a flight mode, and enters a sleep state, the method further includes:
and displaying an interface of a shutdown charging icon on a screen of the terminal.
Optionally, when receiving the power-on instruction, the terminal exits the sleep state, and after closing the flight mode, the method further includes:
and the screen of the terminal is switched to a desktop main interface by displaying the shutdown charging icon.
Optionally, when receiving a power-on instruction, the terminal exits the sleep state and closes the flight mode, including:
and when a starting-up instruction triggered by long-time pressing of a power key is received, the terminal exits from the dormant state and closes the flight mode.
Optionally, when receiving the power-on instruction, the terminal exits the sleep state, and after closing the flight mode, the method further includes:
the terminal displays a power-on charging icon.
In the embodiment of the invention, the terminal detects the connection with the charging power supply in the shutdown state, starts the operating system, starts the flight mode and enters the dormant state, and when receiving the startup instruction, the terminal exits the dormant state and closes the flight mode. Therefore, when the terminal receives the starting-up instruction, the operating system can be directly quitted from the dormant state, the flight mode is closed, the terminal can reach the state after normal starting-up, and the terminal does not need to be powered off firstly and then powered on again, so that the starting-up time of the terminal during shutdown and charging can be saved.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent replacements, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for charging a terminal, the method comprising:
the method comprises the steps that the terminal detects that the terminal is connected with a charging power supply in a shutdown state, wherein the shutdown state is a state that the terminal is shut down;
the terminal starts an operating system, starts a flight mode and enters a dormant state;
when a starting-up instruction is received, the terminal exits from a dormant state and closes the flight mode;
the terminal starts an operating system, and the method comprises the following steps:
starting a starting loader, initializing hardware equipment and establishing a mapping chart of a memory space;
starting a Linux kernel, initializing a software and hardware environment, loading a driver, mounting a root file system and executing an initialization process;
and starting a local service program of the operating system through the initialization process.
2. The method of claim 1, wherein after the terminal starts an operating system, starts an airplane mode, and enters a sleep state, the method further comprises:
and displaying an interface of a shutdown charging icon on a screen of the terminal.
3. The method according to claim 2, wherein after the terminal exits the sleep state and turns off the flight mode when receiving the power-on command, the method further comprises:
and the screen of the terminal is switched to a desktop main interface by displaying the shutdown charging icon.
4. The method according to claim 1, wherein the terminal exiting the sleep state and turning off the flight mode when receiving a power-on command comprises:
and when a starting-up instruction triggered by long-time pressing of a power key is received, the terminal exits from the dormant state and closes the flight mode.
5. The method according to claim 1, wherein after the terminal exits the sleep state and turns off the flight mode when receiving the power-on command, the method further comprises:
the terminal displays a power-on charging icon.
6. An apparatus for charging a terminal, the apparatus comprising:
the detection module is used for detecting connection with a charging power supply in a shutdown state, wherein the shutdown state is a state that the terminal is shut down;
the starting module is used for starting the operating system, starting the flight mode and entering a dormant state;
the closing module is used for exiting the dormant state and closing the flight mode when receiving a starting instruction;
the opening module is used for:
starting a starting loader, initializing hardware equipment and establishing a mapping chart of a memory space;
starting a Linux kernel, initializing a software and hardware environment, loading a driver, mounting a root file system and executing an initialization process;
and starting a local service program of the operating system through the initialization process.
7. The apparatus of claim 6, further comprising:
and the display module is used for displaying an interface of a shutdown charging icon on a screen of the terminal.
8. The apparatus of claim 7, wherein the display module is further configured to:
and the screen of the terminal is switched to a desktop main interface by displaying the shutdown charging icon.
9. The apparatus of claim 6, wherein the opening module is configured to:
and when a starting-up instruction triggered by long-time pressing of a power key is received, the terminal exits from the dormant state and closes the flight mode.
10. The apparatus of claim 6, further comprising:
and the display module is used for displaying a startup charging icon.
CN201610416148.2A 2016-06-14 2016-06-14 Terminal charging method and device Active CN106126201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610416148.2A CN106126201B (en) 2016-06-14 2016-06-14 Terminal charging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610416148.2A CN106126201B (en) 2016-06-14 2016-06-14 Terminal charging method and device

Publications (2)

Publication Number Publication Date
CN106126201A CN106126201A (en) 2016-11-16
CN106126201B true CN106126201B (en) 2020-01-21

Family

ID=57270618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610416148.2A Active CN106126201B (en) 2016-06-14 2016-06-14 Terminal charging method and device

Country Status (1)

Country Link
CN (1) CN106126201B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826740A (en) * 2010-02-02 2010-09-08 华为终端有限公司 Method for reducing power consumption when terminal is charged and terminal
US8358108B2 (en) * 2007-09-05 2013-01-22 Black & Decker Inc. System and method for re-initiating charge cycle for battery pack left in a charger
CN103260224A (en) * 2012-02-17 2013-08-21 中兴通讯股份有限公司 Mobile terminal and method for achieving refreshing of charging animation during charging
CN103944224A (en) * 2014-04-11 2014-07-23 深圳市哈里通实业有限公司 Automatic identification terminal charging and self-adaptive terminal OTG system for portable power source
CN102622079B (en) * 2012-02-25 2015-02-04 华为终端有限公司 Sleep method, wakening method and mobile terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8358108B2 (en) * 2007-09-05 2013-01-22 Black & Decker Inc. System and method for re-initiating charge cycle for battery pack left in a charger
CN101826740A (en) * 2010-02-02 2010-09-08 华为终端有限公司 Method for reducing power consumption when terminal is charged and terminal
CN103260224A (en) * 2012-02-17 2013-08-21 中兴通讯股份有限公司 Mobile terminal and method for achieving refreshing of charging animation during charging
CN102622079B (en) * 2012-02-25 2015-02-04 华为终端有限公司 Sleep method, wakening method and mobile terminal device
CN103944224A (en) * 2014-04-11 2014-07-23 深圳市哈里通实业有限公司 Automatic identification terminal charging and self-adaptive terminal OTG system for portable power source

Also Published As

Publication number Publication date
CN106126201A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
WO2016150331A1 (en) Method and device for operating game client
WO2018032581A1 (en) Method and apparatus for application program control
CN106293308B (en) Screen unlocking method and device
CN106775833B (en) Device driver loading method, terminal and system
CN107786424B (en) Audio and video communication method, terminal and server
US11381100B2 (en) Method for controlling multi-mode charging, mobile terminal, and storage medium
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
CN106532876B (en) Power supply control method and device and computer equipment
WO2014166307A1 (en) Method for determining performance of process of application and computer system
WO2017206860A1 (en) Processing method of mobile terminal and mobile terminal
CN108200635B (en) Operation control method of application program and mobile terminal
CN108089935B (en) Application program management method and mobile terminal
CN107341032B (en) Data loading method, mobile terminal and computer readable storage medium
CN106454953B (en) Flow control method, device and terminal
CN111372003A (en) Camera switching method and device and terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN111308303B (en) Method and device for detecting radio frequency power amplifier of mobile terminal
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN106155733B (en) Method and device for running application program
CN108681467B (en) System awakening method and terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN106126201B (en) Terminal charging method and device
CN109672242B (en) Terminal charging control method and device and storage medium
CN108280798B (en) Method and device for rendering and displaying browser kernel

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.