CN106095065A - A kind of mode switching method and device - Google Patents

A kind of mode switching method and device Download PDF

Info

Publication number
CN106095065A
CN106095065A CN201610555067.0A CN201610555067A CN106095065A CN 106095065 A CN106095065 A CN 106095065A CN 201610555067 A CN201610555067 A CN 201610555067A CN 106095065 A CN106095065 A CN 106095065A
Authority
CN
China
Prior art keywords
terminal
state
image file
operating system
information
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.)
Granted
Application number
CN201610555067.0A
Other languages
Chinese (zh)
Other versions
CN106095065B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610555067.0A priority Critical patent/CN106095065B/en
Publication of CN106095065A publication Critical patent/CN106095065A/en
Priority to PCT/CN2017/092114 priority patent/WO2018010596A1/en
Application granted granted Critical
Publication of CN106095065B publication Critical patent/CN106095065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Power Sources (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present invention provides a kind of mode switching method and device, relates to field of terminal technology.The method is applied to terminal, terminal is provided with the first operating system and the second operating system, when terminal is in battery saving mode, second operating system is in running status, when terminal is in normal mode, the first operating system is in running status, including: when terminal is in battery saving mode, if terminal receives the first switching command, terminal detects whether to there is image file;First switching command is for being switched to normal mode by terminal by battery saving mode;Image file includes internal storage state information when terminal is in the first operating system;If there is image file, terminal terminates the operation of the second operating system;According to internal storage state information, state when being run by the recovering state of terminal to the first operating system, to be switched to normal mode by terminal by battery saving mode.

Description

A kind of mode switching method and device
Technical field
The present invention relates to field of terminal technology, particularly relate to a kind of mode switching method and device.
Background technology
Along with the fast development of terminal technology, occur in that increasing terminal, such as, intelligent watch, mobile phone, online Basis, notebook computer, computer etc., these terminals may be generally present two kinds of mode of operations, i.e. normal mode and power saving mould Formula, these terminals can switch between two mode of operations.
At present, when terminal is in normal mode, the repertoire of terminal all can open use, when terminal is in power saving During pattern, in order to reduce the power consumption of terminal, the partial function of terminal is limited use, such as, when intelligent watch is in power saving mould During formula, the display interface of intelligent watch only can show the time, and such as GPS location, music cannot be opened, take pictures etc. it His function.If user needs by battery saving mode, terminal is switched to normal mode, user can by triggering specified button etc., So that terminal is according to the method for normal boot-strap, re-start starting up's process, so that terminal is switched to normal mode.
But, owing to the time needed during terminal normal boot-strap is longer, as a example by intelligent watch, intelligent watch is started shooting about Need the 20-30 second, thus the time expended when terminal is switched to normal mode according to the method for normal boot-strap by battery saving mode is relatively Long, cause Consumer's Experience the best.
Summary of the invention
Embodiments of the invention provide a kind of mode switching method and device, solve in prior art terminal by power saving mould It is long that formula switches to expend the time during normal mode, the problem that Consumer's Experience is the best.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
First aspect, it is provided that a kind of mode switching method, the method is applied to terminal, is provided with the first operation in this terminal System and the second operating system, when this terminal is in battery saving mode, the second operating system is in running status, when this end When normal mode, the first operating system is in running status, and the method includes: when this terminal is in battery saving mode, if should Terminal receives the first switching command, and this terminal detects whether to there is image file;Wherein, the first switching command is for by this eventually End is switched to normal mode by battery saving mode;Image file includes that internal storage state when this terminal is in the first operating system is believed Breath;If there is image file, this terminal terminates the operation of the second operating system;This terminal is according to internal storage state information, by this eventually The state when recovering state of end to the first operating system is run, to be switched to normal mode by this terminal by battery saving mode.
Second aspect, it is provided that a kind of mode-changeover device, is provided with the first operating system and the second operation system in this device System, when this device is in battery saving mode, the second operating system is in running status, when this device is in normal mode, the One operating system is in running status, and this device includes: detector unit, is used for when mode-changeover device is in battery saving mode, If receiving the first switching command, detect whether to there is image file;Wherein, the first switching command is for by mode-changeover device Normal mode is switched to by battery saving mode;Image file includes internal storage state when mode-changeover device is in the first operating system Information;Terminate unit, if for there is image file, terminating the operation of the second operating system;Recovery unit, for according to internal memory Status information, state when being run by the recovering state of mode-changeover device to the first operating system, with by mode-changeover device Normal mode is switched to by battery saving mode.
In technique scheme, this terminal, when being switched to normal mode by battery saving mode, can detect whether to there is mirror As file, and when there is image file, rapidly according to image file, by the recovering state of this terminal to the first operating system The state indicated by internal storage state information during operation, thus shorten this terminal and switch to the time of normal mode, improve Consumer's Experience.
Optionally, based on first aspect, this terminal includes primary processor and microprocessor, and primary processor is used for operation first Operating system, microprocessor is used for running described second operating system.
Corresponding, optionally, based on first aspect, when this terminal is in battery saving mode, if this terminal receives first Before switching command, the method also includes: when this terminal receives the start-up command of normal mode, this terminal detects whether to deposit At image file;If there is image file, this terminal is according to internal storage state information, by the recovering state of this terminal to the first operation State when system is run.
Optionally, based on second aspect, detector unit, it is additionally operable to when mode-changeover device receives the start of normal mode During instruction, detect whether to there is image file;Recovery unit, if being additionally operable to there is image file, according to internal storage state information, will The state when recovering state of mode-changeover device to the first operating system is run.
In above-mentioned optional technical scheme, this terminal, by when receiving the start-up command of normal mode, detects whether There is image file, and when there is image file, rapidly according to image file, after the recovering state of this terminal to start State, thus substantially reduce the available machine time of this terminal, improve Consumer's Experience.
Optionally, based on first aspect, image file is the first state or second that this terminal is under normal mode Image file during state;Wherein, the first state is the original state after arbitrary the start before this is started shooting of this terminal, Second state is the final state before arbitrary the shutdown before this is started shooting of this terminal.
Optionally, based on second aspect, image file be the first state of being under normal mode of mode-changeover device or Image file during person's the second state;Wherein, the first state is the mode-changeover device arbitrary start before this is started shooting After original state, the final state before arbitrary the shutdown that the second state was mode-changeover device before this is started shooting.
In above-mentioned optional technical scheme, it is provided that the image file of two kinds of different enantiomorphisms, thus according to different mirrors As the image file of form, can quickly this terminal be recovered to the first state or the second state.
Optionally, based on first aspect, the recovering state of this terminal to first, according to internal storage state information, is made by this terminal Before state when industry system is run, the method also includes: the enantiomorphism of this terminal judges image file, and enantiomorphism includes First state and the second state;If the enantiomorphism of image file is the first state, internal storage state information includes about at least one The hardware status information of individual hardware and the application state information applied about at least one;Accordingly, this terminal is according to internal memory Status information, the state when recovering state of this terminal to the first operating system is run, including: this terminal is according to internal storage state Information, by least one hardware recovery to the state indicated by hardware status information, and by least one application recovery to answering By the state indicated by status information.
Corresponding, optionally, based on first aspect, by least one hardware recovery to the shape indicated by hardware status information State, and by after at least one application recovery to the state indicated by application state information, the method also includes: this terminal root Use information according to user during the first operating system, recover the User Status of this terminal to user to use the shape indicated by information State.
Corresponding, optionally, based on first aspect, after the enantiomorphism of this terminal judges image file, the method is also Including: if the enantiomorphism of image file is the second state, internal storage state information includes the hardware shape about at least one hardware State information, the application state information and the user that apply about at least one use information;Accordingly, this terminal is according to internal memory Status information, the state when recovering state of this terminal to the first operating system is run, including: this terminal is according to internal storage state Information, by least one hardware recovery to the state indicated by hardware status information, by least one application recovery to applying shape State indicated by state information and recover the User Status of this terminal to user to use the state indicated by information.
Optionally, based on second aspect, this device also includes: judging unit, for judging the enantiomorphism of image file, Enantiomorphism includes the first state and the second state;If the enantiomorphism of image file is the first state, internal storage state information bag Include the hardware status information about at least one hardware and the application state information applied about at least one;Accordingly, extensive Multiple unit specifically for: according to internal storage state information, by least one hardware recovery to the state indicated by hardware status information, And by least one application recovery to the state indicated by application state information.
Corresponding, optionally, based on second aspect, recovery unit also particularly useful for: according to use during the first operating system Family uses information, recovers the User Status of mode-changeover device to user to use the state indicated by information.
Corresponding, optionally, based on second aspect, if the enantiomorphism of image file is the second state, internal storage state is believed Breath includes the hardware status information about at least one hardware, the application state information applied about at least one and user Use information;Accordingly, recovery unit specifically for: according to image file, at least one hardware recovery to hardware state is believed State indicated by breath, by least one application recovery to the state indicated by application state information and by pattern switching dress The User Status put is recovered to user to use the state indicated by information.
In above-mentioned optional technical scheme, this terminal can be according to internal storage state information by the recovering state of this terminal to One state or the second state, and when by the recovering state of this terminal to the first state, in order to recover User Status further, This terminal can also use information according to user, recovers User Status so that the state of this terminal after Hui Fuing with State when user uses is identical, thus further increases Consumer's Experience.
Optionally, based on first aspect, the method also includes: when this terminal is in normal mode, if receiving second Switching command, this terminal detects whether to there is image file;Wherein, the second switching command is for being cut this terminal by normal mode Shift to battery saving mode;If there is described image file, this terminal terminates the operation of described first operating system;This terminal operating Two operating systems, to be switched to battery saving mode by this terminal by normal mode.
Optionally, based on second aspect, this device also includes: detector unit, is additionally operable to when mode-changeover device is just in During norm formula, if receiving the second switching command, detect whether to there is image file;Wherein, the second switching command is for by mould Formula switching device is switched to battery saving mode by normal mode;Terminating unit, if being additionally operable to there is image file, terminating the first operation The operation of system;Running unit, for running the second operating system, so that mode-changeover device is switched to battery saving mode.
In above-mentioned optional technical scheme, this terminal, when switching to battery saving mode, detects whether to exist image file, and When there is image file, directly this terminal being switched to battery saving mode, thus ensure that this terminal is just once switching to upper Norm formula can be rapidly performed by switching according to image file.
Optionally, based on first aspect, this terminal operating second operating system, with this terminal is switched to battery saving mode it Before, the method also includes: if there is not image file, and this terminal is to this terminal internal storage state information under the first operating system Carry out mirror image, obtain image file.
Optionally, based on second aspect, this device also includes: mirror image unit, if for there is not image file, to pattern Switching device internal storage state information in the normal mode carries out mirror image, obtains image file.
In above-mentioned optional technical scheme, this terminal, when switching to battery saving mode, detects whether to there is image file, When there is not image file, this terminal carries out mirror image to internal memory status information, obtains image file, thus ensure that this terminal exists Switch to normal mode next time and can be rapidly performed by switching according to image file.
Optionally, based on first aspect, this terminal internal storage state information under the first operating system is carried out mirror image, To image file, including: this terminal remove in the internal storage state information being under the first operating system about predetermined hardware hard Part status information, and/or the application state information about default application;This terminal carries out mirror to the internal storage state information after removing Picture, obtains image file.
Optionally, based on second aspect, mirror image unit specifically for: remove in internal storage state information about predetermined hardware Hardware status information, and/or the application state information about default application;Internal storage state information after removing is carried out mirror image, Obtain image file.
In above-mentioned optional technical scheme, this terminal, when internal memory status information is carried out mirror image, removes some unnecessary Hardware or the state of application, such that it is able to obtain less image file, save memory space, reduce the most further simultaneously This terminal switches to the switching time of normal mode.
Optionally, based on first aspect, the method also includes: presetting update condition if meeting, this terminal is to image file It is updated;Wherein, default update condition include following at least one: system version upgrading, image file imperfect or wrong, Image file meets the update cycle.
Optionally, based on second aspect, this device also includes: updating block, if presetting update condition for meeting, to mirror As file is updated;Wherein, default update condition include following at least one: system version upgrading, described image file not Image file complete or wrong, described meets the update cycle.
In above-mentioned optional technical scheme, this terminal meets in detection presets update condition, is updated image file, Thereby may be ensured that freshness and the integrity of image file, and then the state of this terminal is after user uses after ensureing to recover Last state.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be in embodiment or description of the prior art The required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only some realities of the present invention Execute example, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to these accompanying drawings Obtain other accompanying drawing.
The hardware architecture diagram of a kind of terminal that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the first mode switching method that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the second mode switching method that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the third mode switching method that Fig. 4 provides for the embodiment of the present invention;
The schematic flow sheet of the 4th kind of mode switching method that Fig. 5 provides for the embodiment of the present invention;
A kind of schematic diagram switching to normal mode that Fig. 6 provides for the embodiment of the present invention;
The schematic flow sheet of the 5th kind of mode switching method that Fig. 7 provides for the embodiment of the present invention;
A kind of schematic diagram switching to battery saving mode that Fig. 8 provides for the embodiment of the present invention;
The schematic flow sheet of a kind of fast starting method that Fig. 9 provides for the embodiment of the present invention;
The schematic flow sheet of another fast starting method that Figure 10 provides for the embodiment of the present invention;
The structural representation of a kind of mode-changeover device that Figure 11 provides for the embodiment of the present invention;
The structural representation of the another kind of mode-changeover device that Figure 12 provides for the embodiment of the present invention;
The structural representation of another mode-changeover device that Figure 13 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise Embodiment, broadly falls into the scope of protection of the invention.
The structural representation of a kind of terminal that Fig. 1 provides for the embodiment of the present invention, this terminal can be mobile phone, flat board electricity Brain, notebook computer, UMPC (Ultra-mobile Personal Computer, Ultra-Mobile PC), net book, The terminal units such as PDA (Personal Digital Assistant, personal digital assistant), computer, intelligent watch, the present invention Embodiment illustrates as a example by terminal is as intelligent watch, and Fig. 1 is illustrated that the portion of the terminal relevant to various embodiments of the present invention The block diagram of separation structure.
It will appreciated by the skilled person that the structure shown in Fig. 1 is only signal, its not knot to intelligent watch It is configured to limit.Such as, this intelligent watch may also include the assembly more or more less than shown in Fig. 1, or has and Fig. 1 Shown different configuration.
As it is shown in figure 1, this terminal includes: memorizer 101, processor 102, multimedia groupware 103, power supply module 104, defeated Enter output interface 105.Below in conjunction with Fig. 1 each component parts of terminal carried out concrete introduction:
Memorizer 101 can be used for storing data, software program and module, and memorizer 101 mainly includes storing program area With storage data field.Wherein, storage program area can store the application program needed for operating system, at least one function, such as sound Sound playing function, image player function etc.;Storage data field can store the data that the use according to terminal is created, such as audio frequency Data, view data, phone directory etc..Additionally, memorizer 101 can include high-speed random access memory, it is also possible to include non- Volatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 102 is the control centre of terminal, utilizes various interface and the various piece of the whole terminal of connection, logical Cross operation or perform to be stored in the software program in memorizer 101 and/or module, and calling and be stored in memorizer 101 Data, perform the various functions of terminal and process data, thus terminal is carried out integral monitoring.Optionally, processor 102 can wrap Include multiple processing unit, such as, including application processor, or include application processor and microprocessor;Preferably, processor 102 can integrated application processor and modem processor, wherein, application processor mainly processes operating system, user interface With application program etc., modem processor mainly processes radio communication.It is understood that above-mentioned modem processor is also Can not be integrated in processor 102.
The screen of the multimedia groupware 103 one output interface of offer between terminal and user, this screen can be to touch Touch panel, and when this screen is touch panel, screen may be implemented as touch screen, to receive the input letter from user Number.Touch panel includes that one or more touch sensor is with the gesture on sensing touch, slip and touch panel.Described touch Sensor can not only sense touch or the border of sliding action, but also detects hold relevant to described touch or slide Continuous time and pressure.
Power supply module 104 provides power supply for each assembly for terminal, and power supply module 105 can include power management system System, one or more power supplys, and other generations with terminal, manage and distribute the assembly that electric power is associated.
Input output interface 105 be between processor 102 and peripheral interface module provide interface, such as, peripheral interface mould Block can include but not limited to physical keyboard, function key (such as volume control button, power switch button etc.), trace ball, Mus One or more in mark, action bars etc..
Although not shown, terminal can also include sensor, audio-frequency assembly and communications component etc., such as, audio-frequency assembly bag Including mike, communications component includes WiFi (wireless fidelity, Wireless Fidelity) module, bluetooth module etc., and the present invention is real Execute example not repeat them here.
The schematic flow sheet of a kind of mode switching method that Fig. 2 provides for the embodiment of the present invention, the method is applied to terminal, This terminal is provided with the first operating system and the second operating system, when this terminal is in battery saving mode, the second operating system Being in running status, when this terminal is in normal mode, the first operating system is in running status, sees Fig. 2, the method bag Include following step.
Step 201: when this terminal is in battery saving mode, if receiving the first switching command, detects whether to there is mirror image File;Wherein, the first switching command is for being switched to normal mode by this terminal by battery saving mode;Image file includes this terminal It is in internal storage state information during the first operating system.
Wherein, the first operating system and the second operating system are different two operating systems, and the power saving mould of this terminal Formula operates in the second operating system, and the normal mode of this terminal operates in the first operating system.This operating system is management Terminal hardware resource, controls the set that the systems soft ware at interactive operation interface was run and provided the user to other programs, is responsible for pipe Manage and configure internal memory, the order of priority of decision systems resource supply and demand, control input and outut device, operation network and management file The basic tasks such as system.The kind of operating system is a lot, and the operating system that various terminals are installed can be from simple to complexity.At present, Popular modern operating system mainly has Android, BSD, iOS, Linux, Mac OS X, Windows, Windows Phone With z/OS etc..
This terminal is in battery saving mode and refers to that the partial function of this terminal is limited use, that is to say, this terminal is in province During power mode, the part of functions of this terminal can use, and the confined function of another part then cannot use.
It should be noted that this terminal when being in battery saving mode confined partial function can be configured by user, Default setting can also be carried out by terminal.Optionally, by terminal, some are to be limited use than minor function setting Function, and retain some important functions and can use in a power-save mode.
Such as, as a example by intelligent watch, the important function of intelligent watch can include time showing, converse, sends With reception short message etc., audio and video playing, GPS location, bluetooth connection etc., therefore, system can be included than minor function Can be by function setting such as audio and video playing, GPS location, bluetooth connections for be limited when default setting is limited the function of use The function used.
It addition, the first switching command can be triggered by user, it is also possible to triggered by terminal.When the first switching command is by user During triggering, user can be triggered by the first assigned operation, the first assigned operation can be pressing operation, clicking operation, Slide etc., such as, user can press appointment physical button and trigger, or by clicking on or slip normal mode Switch area is triggered;When the first switching command is triggered by terminal, terminal can be entered when battery electric quantity is less than predetermined threshold value Row triggers, it is also possible to triggers when the time is in appointment time range, that is to say, when terminal meets the first default triggering During condition, terminal can trigger the first switching command.
Furthermore, this image file can be mirror when the first state of being under normal mode of this terminal or the second state As file, the first state is the original state after arbitrary the start before this is started shooting of this terminal, and the second state is this end Hold the final state before arbitrary shutdown before this is started shooting.
Such as, as a example by the last startup and shutdown before this is started shooting, the first state can be that this terminal is at this The original state after last start before start, this original state refers to that this terminal completes start process, and user does not opens Begin state when using;Second state can be the final state before the upper once shutdown before this is started shooting of this terminal, should Final state refers to that user uses and terminates, and this terminal will perform the state before shutdown process.
Step 202: if there is image file, this terminal terminates the operation of the second operating system.
In order to rapidly this terminal be switched to normal mode by battery saving mode, this terminal can detect whether to there is mirror image File, and in the case of there is image file, rapidly this terminal can be switched to normal mode directly according to image file Formula, thus without re-executing a start process according to prior art, shorten switching time, and then improve user's body Test.
Concrete, when this terminal detect and determine there is image file time, this terminal can terminate the second operating system Run, that is to say, the application in the second operating system out of service of this terminal and the hardware relevant to the second operating system, The process of terminal self, third-party application that this application includes operating in the second operating system etc..
Step 203: this terminal is according to internal storage state information during the first operating system, by the recovering state of this terminal to State when one operating system is run.
Wherein, this terminal is after determining and there is image file, in order to ensure that some devices in this terminal are in this terminal Recovering state after can normally use, after some devices in this terminal can also first be initialized by this terminal, Further according to internal storage state information during the first operating system, the shape when recovering state of this terminal to the first operating system is run State, to be switched to normal mode by this terminal by battery saving mode.
Device in this terminal can include following at least one: bluetooth module, wifi module, multimedia groupware, sensing Device, touch panel, GPS positioning chip etc..Default device can be configured in advance, and default device can be in this terminal Including device at least one, this is not especially limited by the embodiment of the present invention.
It should be noted that when the detection of this terminal does not exists image file, this terminal can according to prior art again Perform a start process, this terminal is switched to normal mode.
Further, before step 203, the method also includes step 204.
Step 204: the enantiomorphism of this this image file of terminal judges, this enantiomorphism includes the first state and the second shape State.
Owing to the enantiomorphism of this image file can include the first state and the second state, and when the mirror of this image file When being the first state or the second state as form, can be different when this terminal recovers the state of this terminal according to step 203, Therefore, for the enantiomorphism that this image file is different, it is illustrated respectively.
The first situation, when the enantiomorphism of this image file is the first state, this internal storage state information include about The hardware status information of at least one hardware and the application state information applied about at least one.
Wherein, this at least one hardware refers to, when this terminal is in the first state, be in the hardware of opening;Hardware shape State information refers to the state parameter that at least one hardware is concrete when this terminal is in the first state.At least one application refers to this When terminal is in the first state, being in the application of opening, this application is possible not only to include the application of terminal system self, also The application installed in this terminal can be included.Application state information refers to that at least one is applied when this terminal is in the first state Concrete state parameter.
Optionally, the hardware status information of at least one hardware can be the hardware identifier of at least one hardware, Yi Jiyu The state parameter that each hardware identifier is corresponding;In like manner, the application state information of at least one application can be at least one application Application identities, and the state parameter corresponding with each application identities.
Such as, as a example by intelligent watch, when intelligent watch is in the first state, at hardware aspect, if bluetooth module is opened Open, and be connected with bluetooth BT-A0, then at least one hardware includes bluetooth module, when when being designated ID1 of bluetooth module, bluetooth The hardware status information of module can be: ID1 opens, and connects BT-A0;In application aspect, if mailbox is opened, and it is in addressee The case page, then at least one application includes mailbox, and when when being designated ID2 of mailbox, the application state information of mailbox can be: ID2 opens, and is in the inbox page.
Accordingly, in step 203, this terminal is according to internal storage state information during the first operating system, by the shape of this terminal State is recovered to the state indicated by internal storage state information, specially step 203a: this terminal, will at least according to internal storage state information One hardware recovery is to the state indicated by hardware status information, and by least one application recovery to application state information institute The state of instruction.
That is to say, the internal storage state information that this terminal includes according to image file, by least one hardware of this terminal and At least one application, recovers to this terminal at least one hardware and at least one application state in which when the first state.
Further, seeing Fig. 3, after step 203a, the method also includes: step 205.
Step 205: this terminal uses information according to user during the first operating system, recovers the User Status of this terminal The state indicated by information is used to user.
When the enantiomorphism of this image file is the first state, owing to the first state is that this terminal is before this is started shooting Arbitrary time start after original state, that is to say, this terminal completes start process, and the state that user has not been used, so Internal storage state information does not include use information about the user of User Status, therefore, in this terminal according to above-mentioned steps After 203a recovers, in order to the User Status in this terminal is recovered state when using before user, this terminal can root Use information according to user during the first operating system, recover the User Status of this terminal to user to use the shape indicated by information State.
Wherein, user uses information can be stored in terminal the information about user, such as, can be stored in terminal Memorizer in, and user use information can include the set information of user's counterpart terminal, user open or use application Information, and User Profile information etc..Such as, user to set information can include that user is to the display background of terminal, application Picture mark position, switching on and shutting down time, contextual model etc.;User open or use the information of application to include user opens should Application information being in which kind of state with information and unlatching etc.;User Profile information can include user account, close Code, fingerprint, image etc..
As a example by intelligent watch, if user uses information to include: unused time 6:00, mailbox are opened and be in inbox page Face, user account 123456, password abc, then primary processor uses information according to above-mentioned user, is set the unused time of this terminal It is set to 6:00, mailbox is opened and shows at the inbox page, and record user account is 123456 in files on each of customers, password For abc.
The second situation, when the enantiomorphism of this image file is the second state, this internal storage state information include about The hardware status information of at least one hardware, application state information and the user applied about at least one use information.
Accordingly, in step 203, this terminal is according to internal storage state information during the first operating system, by the shape of this terminal State is recovered to state during the first operating system, specially step 203b: this terminal is according to internal storage state information, by least one Hardware recovery is to the state indicated by hardware status information, by least one application recovery to the shape indicated by application state information State and recover the User Status of this terminal to user to use the state indicated by information.
It should be noted that the hardware status information of at least one hardware in the second situation, at least one application Application state information and user use information, with the hardware status information of at least one hardware in the first situation above-mentioned, The application state information of at least one application, user use information consistent, and referring specifically to foregoing description, the embodiment of the present invention is at this Repeat no more.
Further, seeing Fig. 4, the method also includes: step 206-step 209.
Step 206: when this terminal is in normal mode, if receiving the second switching command, this terminal detects whether to deposit At image file;Wherein, the second switching command is for being switched to battery saving mode by this terminal by normal mode.
Wherein, the second switching command can be triggered by user, it is also possible to is triggered by terminal.When the second switching command is by user During triggering, user can be triggered by the second assigned operation, and the second assigned operation and the first assigned operation are different, and second Assigned operation can be pressing operation, clicking operation, slide etc., and such as, user can press appointment physical button and enter Row triggers, or is triggered by click or slip battery saving mode switch area;When the, switching command is triggered by terminal, eventually End can trigger when the electricity of battery charging is optionally greater than predetermined threshold value, it is also possible to is in appointment time range in the time Shi Jinhang triggers, and that is to say, when terminal meets the second default trigger condition, terminal can trigger the second switching command.
Step 207: if there is this image file, this terminal terminates the operation of the first operating system.
When the detection of this terminal exists image file, this terminal is without making image file, i.e. without to the first operation system Internal storage state information under Tong carries out mirror image, can directly terminate the operation of the first operating system, that is to say, this terminal stops fortune Row application in the first operating system and the hardware relevant to the first operating system, this application includes operating in the first operation The process of the terminal in system self, third-party application etc..
Step 208: if there is not this image file, is carried out this terminal internal storage state information under the first operating system Mirror image, obtains image file, and terminates the operation of the first operating system.
In order to ensure this terminal upper once switched to normal mode by battery saving mode time, can be according to image file, soon Switch over fastly, therefore, if this terminal detection there is not this image file, this terminal can switch to battery saving mode it Before, this terminal internal storage state information under the first operating system is carried out mirror image, obtains image file, afterwards, then terminate The operation of one operating system.
Wherein, this terminal internal storage state information under the first operating system is carried out mirror image, obtains image file, permissible Including: this terminal removes the hardware status information in internal storage state information about predetermined hardware, and/or answering about default application Use status information;Internal storage state information after removing is carried out mirror image, obtains image file.
That is to say, this terminal make image file time, can first by some unnecessary predetermined hardware and/or preset should Status information be purged so that predetermined hardware and/or the status information of presetting application corresponding are in idle state, thus Only retain this terminal and be in minimum internal storage state information required during normal mode, to reduce the amount of capacity of image file.
Further, before this terminal carries out mirror image to this terminal internal storage state information under the first operating system, for Reduce the power consumption of this terminal, it is also possible to the display of this terminal is adjusted to dark screen state, thus to internal memory under dark screen state Status information carries out mirror image, obtains image file.
Optionally, after obtaining image file, image file can also be compressed by this terminal, to save storage sky Between;Accordingly, image file, when needing to reply the state of this terminal according to image file, can be entered by this terminal again Row decompresses.
Step 209: this terminal operating second operating system, to be switched to battery saving mode by this terminal by normal mode.
Wherein, when this terminal is switched to battery saving mode, this terminal can be closed when this terminal is in battery saving mode and be limited The function that system uses, and the function that can normally use when being responsible for being in battery saving mode.
It should be noted that the switching that process that this terminal switches to battery saving mode is consistent with prior art, concrete Journey is referred to correlation technique, and this is not elaborated by the embodiment of the present invention.
It should be noted that above-mentioned steps 206-step 209 and step 201-step 205 order, this terminal in no particular order According to above-mentioned steps 201-step 205, this terminal can be switched to normal mode by battery saving mode;Or, this terminal according to Above-mentioned steps 206-step 209, is switched to battery saving mode by this terminal by normal mode.
Further, during above-mentioned steps 201-step 209, presetting update condition if meeting, this terminal is to this Image file is updated;Wherein, default update condition include following at least one: system version upgrading, image file the completeest Whole or wrong, image file meets the update cycle.
In order to ensure that this terminal can be in the first operation to this terminal in time according to fresh and complete image file State under system is recovered, and this terminal can detect whether image file meets default update condition, and at image file When meeting default update condition, image file is updated timely.
Wherein, when whether this terminal detection image file meets system version upgrading, the operation of this terminal can be detected Whether system has carried out edition upgrading, however, it is determined that this terminal has carried out system upgrade, then update image file.
It addition, when this terminal detection image file is the most imperfect or wrong, this terminal can pass through random rotation school Test CRC code to detect, and/or the shelves head of detection image file and shelves tail are the most completely, and/or detection image file is in compression The most correct with encryption when decompressing and deciphering, and/or the detection length of image file, segmentation, total capacity size are the most just Really, and/or the version of detection image file is the most correct etc..
It should be noted that the version of image file is similar with the version of software in prior art, version number can be passed through Being identified, or be identified etc. by the mirror image time, this is not especially limited by the embodiment of the present invention.
Furthermore, when whether this terminal detection image file meets the update cycle, refer to that this terminal can be the most right Image file is updated, and every a update cycle, once updates image file, and this update cycle can enter in advance Row is arranged.
In the embodiment of the mode switching method shown in above-mentioned Fig. 2-Fig. 4, this terminal can only include a processor, should Processor device can be application processor, and this terminal can be realized between battery saving mode and normal mode by this application processor Switching.
The mode switching method that the embodiment of the present invention provides, by when receiving the first switching command, detects whether to exist Image file, and when there is image file, according to image file by during the recovering state of this terminal to the first operating system State indicated by internal storage state information, thus this terminal is switched to normal mode by battery saving mode rapidly, reduce and cut Change the time, and improve Consumer's Experience.
The schematic flow sheet of a kind of mode switching method that Fig. 5 provides for the embodiment of the present invention, is provided with master in this terminal Processor and microprocessor.When this terminal is in battery saving mode, microprocessor is in running status, that is to say, the second operation System is in running status;When this terminal is in normal mode, primary processor is in running status, that is to say, the first operation System is in running status, sees Fig. 5, and the method includes following step.
Step 301: when this terminal is in battery saving mode, if microprocessor receives the first switching command, microprocessor Send first to primary processor and wake up instruction up;Wherein, the first switching command is for being switched to this terminal normally by battery saving mode Pattern.
Concrete, it is electrically connected with between primary processor and the microprocessor of this terminal, such as, microprocessor is by general defeated Enter to export GPIO to be connected with the control power supply of primary processor, when microprocessor wakes up instruction up to primary processor transmission first, micro- Processor, by the way of controlling the power supply signal of primary processor, sends first to primary processor and wakes up instruction up to open main process The power supply of device.
Step 302: based on the first triggering waking up instruction up, primary processor performs to power on flow process.
When microprocessor is after primary processor transmission first wakes up instruction up, based on the first triggering waking up instruction up, main place Reason device performs to power on flow process, that is to say, based on the first triggering waking up instruction up, is powered for primary processor, makes primary processor Carry out startup and be in running status.
Step 303: primary processor detects whether to there is image file, this image file includes that this terminal is in the first operation Internal storage state information during system.
Step 304: if there is image file, primary processor is according to internal storage state information, by the recovering state of this terminal extremely State when first operating system is run.
Concrete, after primary processor powers on, in order to rapidly this terminal be switched to normal mode by battery saving mode, Primary processor can detect whether to there is image file, and in the case of there is image file, primary processor can direct basis The internal storage state information that image file includes, switches to normal mode rapidly by this terminal, thus without according to prior art Re-execute a start process, shorten switching time, and then improve Consumer's Experience.
Further, before step 304, the method also includes step 305.
Step 305: primary processor judges the enantiomorphism of this image file, this enantiomorphism includes the first state and second State.
Owing to the enantiomorphism of this image file can include the first state and the second state, and when the mirror of this image file When being the first state or the second state as form, can the most not when primary processor recovers the state of this terminal according to step 304 With, therefore, for the enantiomorphism that this image file is different, it is illustrated respectively.
The first situation, when the enantiomorphism of this image file is the first state, step, in 304 primary processor according to This image file, by the recovering state of this terminal to the state indicated by internal storage state information, specially step 304a: main process Device is according to this image file, by least one hardware recovery to the state indicated by hardware status information, and by least one Application recovery is to the state indicated by application state information.
Further, after step 304a, the method also includes: step 306.
Step 306: primary processor uses information according to the user under the first operating system, by extensive for the User Status of this terminal Multiple use the state indicated by information to user.
The second situation, when the enantiomorphism of this image file is the second state, in step 304, primary processor is according to interior Deposit status information, the state when recovering state of this terminal to the first operating system is run, specially step 304b: main process Device is according to internal storage state information, by least one hardware recovery to the state indicated by hardware status information, and should by least one With recovering to the state indicated by application state information and recovering the User Status of this terminal to user to use information indication The state shown.
It should be noted that the internal storage state information in the embodiment shown in Fig. 5 and the embodiment shown in above-mentioned Fig. 2-Fig. 4 In internal storage state information consistent, referring specifically to foregoing description, the embodiment of the present invention does not repeats them here.
Concrete, as a example by intelligent watch, if primary processor is ACPU, microprocessor is MCU, and intelligent watch is by power saving mould Formula switches to the process of normal mode as shown in Figure 6, and the kernel in figure is ACPU kernel, the MCU link that figure includes, interior nuclear ring Joint, operating system link are according to the mode turned back in prior art, are switched to normally by battery saving mode by intelligent watch Pattern.The present invention is, after the kernel-driven in kernel link initializes, i.e. to start to detect image file, then according to mirror image File carries out hardware recovery, application recovery, and uses information that User Status is carried out fast quick-recovery according to user.
Further, seeing Fig. 7, the method also includes: step 307-step 311.
Step 307: when this terminal is in normal mode, if primary processor receives the second switching command, primary processor Send second to microprocessor and wake up instruction up;Wherein, the second switching command is for being switched to power saving by this terminal by normal mode Pattern.
It should be noted that when primary processor wakes up instruction up to microprocessor transmission second, micro-with above-mentioned steps 301 Processor sends the first method waking up instruction up to primary processor and is similar to, referring specifically to the description in above-mentioned steps 301, the present invention Embodiment does not repeats them here.
Step 308: primary processor detects whether to there is image file.
Step 309: if there is this image file, primary processor performs lower electric current journey.
When primary processor detection exists image file, primary processor, without making image file, that is to say, it is not necessary to internally Depositing status information and carry out mirror image, primary processor can directly perform lower electric current journey.Concrete, when primary processor performs lower electric current journey Time, primary processor first default device to this terminal can carry out lower electricity, afterwards, under self and internal memory are carried out by primary processor Electricity.
Step 310: if there is not this image file, primary processor is to this terminal internal storage state information in the normal mode Carrying out mirror image, obtain image file, primary processor performs lower electric current journey.
In order to ensure this terminal upper once switched to normal mode by battery saving mode time, can be according to image file, soon Switching over, therefore, if primary processor detection does not exist this image file, primary processor can switch to battery saving mode fastly Before, this terminal internal storage state information in the normal mode being carried out mirror image, obtains image file, afterwards, primary processor is held The lower electric current journey of row.
Wherein, primary processor carries out mirror image to this terminal internal storage state information in the normal mode, obtains image file, May include that primary processor removes the hardware status information in internal storage state information about predetermined hardware, and/or should about presetting Application state information;Primary processor carries out mirror image to the internal storage state information after removing, and obtains image file.
Further, before primary processor carries out mirror image to this terminal internal storage state information in the normal mode, main place The display of this terminal can also be adjusted to dark screen state by reason device, thus under dark screen state, internal memory status information is carried out mirror Picture, obtains image file.
Optionally, after obtaining image file, image file can also be compressed by primary processor, to save storage Space;Accordingly, primary processor, can be again to mirror image literary composition when needing to reply the state of this terminal according to image file Part decompresses.
Step 311: based on the second triggering waking up instruction up, this terminal is switched to battery saving mode by microprocessor.
When primary processor wake up up second instruction be sent to microprocessor time, based on the second triggering waking up instruction up, micro-place Reason device brings into operation, and this terminal is switched to battery saving mode.Wherein, when this terminal is switched to battery saving mode by microprocessor, Microprocessor can cut out and be limited the function of use when this terminal is in battery saving mode, and when being responsible for being in battery saving mode The function that can normally use.
As a example by intelligent watch, when intelligent watch is switched to battery saving mode by microprocessor, microprocessor cuts out intelligence The functions such as the GPS location of wrist-watch, bluetooth connection, and it is responsible for time display function and the call etc. of intelligent watch, it is concrete, Intelligent watch is switched to battery saving mode process by normal mode and is referred to shown in Fig. 8.
It should be noted that the process that this terminal is switched to battery saving mode by microprocessor is consistent with prior art, specifically Handoff procedure be referred to correlation technique, this is not elaborated by the embodiment of the present invention.
It should be noted that above-mentioned steps 307-step 311 and step 301-step 306 order, this terminal in no particular order According to above-mentioned steps 301-step 306, this terminal can be switched to normal mode by battery saving mode;Or, this terminal according to Above-mentioned steps 307-step 311, is switched to battery saving mode by this terminal by normal mode.
Further, during above-mentioned steps 301-step 311, preset update condition, primary processor pair if meeting This image file is updated;Wherein, default update condition include following at least one: system version upgrading, image file not Complete or wrong, image file meets the update cycle.
It should be noted that default update condition when this image file is updated by primary processor is with above-mentioned terminal not Include simultaneously primary processor with during microprocessor described in default update condition consistent, referring specifically to foregoing description, the present invention is real Execute example not repeat them here.
The mode switching method that the embodiment of the present invention provides, receives the first switching command by microprocessor, and to main place Reason device sends and first wakes up instruction up so that primary processor performs to power on flow process, afterwards, main place based on the first triggering waking up instruction up Reason device detects whether to exist image file, and when there is image file, according to image file by the recovering state of this terminal extremely State indicated by internal storage state information, thus this terminal is switched to normal mode by battery saving mode rapidly, reduce and cut Change the time, and improve Consumer's Experience.
The schematic flow sheet of a kind of fast starting method that Fig. 9 provides for the embodiment of the present invention, sees Fig. 9, the method bag Include following step.
Step 401: when this terminal receives the start-up command of normal mode, this terminal detects whether to there is mirror image literary composition Part, this image file includes internal storage state information when this terminal is in the first operating system.
Wherein, the start-up command of normal mode can be triggered by user, and user can be triggered by assigned operation.Ratio As, as a example by notebook computer, user can first turn on the power switch, and selects normal mode in several starting-up methods provided Formula is started shooting, so that notebook computer receives the start-up command of normal mode.
It addition, mirror when the first state that this image file can be this terminal to be under normal mode or the second state As file, the first state is the original state after arbitrary the start before this is started shooting of this terminal, and the second state is this end Hold the final state before arbitrary shutdown before this is started shooting.
Step 402: if there is this image file, this terminal, should according to internal storage state information during the first operating system The state when recovering state of terminal to the first operating system is run.
Concrete, in order to this terminal be booted up in the normal mode rapidly, this terminal can detect whether to there is mirror As file, in the case of there is image file, this terminal can be directly according to image file, rapidly by the state of this terminal Recover to normal mode, thus boot up without the start process according to prior art, such that it is able to shorten the available machine time, And then raising Consumer's Experience.
It should be noted that when the detection of this terminal does not exists image file, this terminal can perform according to prior art Start process, boots up in the normal mode by this terminal.
Further, before step 402, the method also includes: step 403.
Step 403: the enantiomorphism of this this image file of terminal judges, this enantiomorphism includes the first state and the second shape State.
Owing to the enantiomorphism of this image file can include the first state and the second state, and when the mirror of this image file When being the first state or the second state as form, can be different when this terminal recovers the state of this terminal according to step 402, Therefore, for the enantiomorphism that this image file is different, it is illustrated respectively.
I kind situation, when the enantiomorphism of this image file is the first state, this internal storage state information includes about extremely The hardware status information lacking a hardware and the application state information applied about at least one.
Wherein, this at least one hardware refers to, when this terminal is in the first state, be in the hardware of opening;Hardware shape State information refers to the state parameter that at least one hardware is concrete when this terminal is in the first state.At least one application refers to this When terminal is in the first state, being in the application of opening, this application is possible not only to include the application of terminal system self, also The application installed in this terminal can be included.Application state information refers to that at least one is applied when this terminal is in the first state Concrete state parameter.
Optionally, the hardware status information of at least one hardware can be the hardware identifier of at least one hardware, Yi Jiyu The state parameter that each hardware identifier is corresponding;In like manner, the application state information of at least one application can be at least one application Application identities, and the state parameter corresponding with each application identities.
Accordingly, in step 402, this terminal is according to internal storage state information during the first operating system, by the shape of this terminal State is recovered to state during the first operating system operation, specially step 402a: this terminal, will at least according to internal storage state information One hardware recovery is to the state indicated by hardware status information, and by least one application recovery to application state information institute The state of instruction.
That is to say, the internal storage state information that this terminal includes according to image file, by least one hardware of this terminal and At least one application, recovers to this terminal at least one hardware and at least one application state in which when the first state.
Further, seeing Figure 10, after step 402a, the method also includes: step 404.
Step 404: this terminal uses information according to user during the first operating system, recovers the User Status of this terminal The state indicated by information is used to user.
When the enantiomorphism of this image file is the first state, owing to the first state is that this terminal is before this is started shooting Arbitrary time start after original state, that is to say, this terminal completes start process, and the state that user has not been used, so Internal storage state information does not include use information about the user of User Status, therefore, in this terminal according to above-mentioned steps After 402a recovers, in order to the User Status in this terminal is recovered state when using before user, this terminal can root Use information according to user during the first operating system, recover the User Status of this terminal to user to use the shape indicated by information State.
Wherein, user uses information can be stored in terminal the information about user, such as, can be stored in terminal Memorizer in, and user use information can include the set information of user's counterpart terminal, user open or use application Information, and User Profile information etc..Such as, user to set information can include that user is to the display background of terminal, application Picture mark position, switching on and shutting down time, contextual model etc.;User open or use the information of application to include user opens should Application information being in which kind of state with information and unlatching etc.;User Profile information can include user account, close Code, fingerprint, image etc..
Ii kind situation, when the enantiomorphism of this image file is the second state, this internal storage state information include about The hardware status information of at least one hardware, application state information and the user applied about at least one use information.
Accordingly, in step 402, this terminal is according to internal storage state information during the first operating system, by the shape of this terminal State is recovered to the first operating system run time behaviour, specially step 402b: this terminal is according to internal storage state information, by least one Individual hardware recovery to the state indicated by hardware status information, by least one application recovery to indicated by application state information State and recover the User Status of this terminal to user to use the state indicated by information.
It should be noted that the hardware status information of at least one hardware in ii kind situation, at least one application Application state information and user use information, with the hardware status information of at least one hardware in above-mentioned I kind situation, The application state information of at least one application, user use information consistent, and referring specifically to foregoing description, the embodiment of the present invention is at this Repeat no more.
Further, during above-mentioned steps 401-step 404, presetting update condition if meeting, this terminal is to this Image file is updated;Wherein, default update condition include following at least one: system version upgrading, image file the completeest Whole or wrong, image file meets the update cycle.
It should be noted that whether this terminal detection image file meets the method presetting update condition, with above-mentioned enforcement Operation in a kind of mode switching method that example provides is consistent, referring specifically to the description in above-described embodiment, the embodiment of the present invention Do not repeat them here.
Optionally, this terminal includes primary processor and microprocessor, and primary processor is for running the first operating system, micro-place Reason device is used for running described second operating system.Optionally, it is electrically connected with between primary processor and the microprocessor of this terminal, than As, microprocessor is connected with primary processor by universal input output GPIO.
The fast starting method that the embodiment of the present invention provides, by when receiving the start-up command of normal mode, detects Whether there is image file, and when there is image file, according to image file by the recovering state of this terminal to internal storage state State indicated by information, thus rapidly this terminal is booted up in the normal mode, reduce the available machine time, and improve Consumer's Experience.
The structural representation of a kind of mode-changeover device that Figure 11 provides for the embodiment of the present invention, is provided with in this device One operating system and the second operating system, when this device is in battery saving mode, the second operating system is in running status, when this When device is in normal mode, the first operating system is in running status, sees Figure 11, and this device includes: detector unit 501, Terminate unit 502 and recovery unit 503.
Detector unit 501, for when mode-changeover device is in battery saving mode, if receiving the first switching command, inspection Survey and whether there is image file;Wherein, the first switching command is for being switched to normal mode by mode-changeover device by battery saving mode Formula;Image file includes internal storage state information when mode-changeover device is in the first operating system;
Terminate unit 502, if for there is image file, terminating the operation of the second operating system;
Recovery unit 503, for according to internal storage state information during the first operating system, by the state of mode-changeover device Recover to state during the first operating system operation, so that mode-changeover device is switched to normal mode by battery saving mode.
In another embodiment of the invention, detector unit 501, it is additionally operable to when mode-changeover device receives normal mode Start-up command time, detect whether to there is image file;
Recovery unit 503, if being additionally operable to there is image file, according to internal storage state information during the first operating system, will The state when recovering state of mode-changeover device to the first operating system is run.
When optionally, image file is the first state of being under normal mode of mode-changeover device or the second state Image file;Wherein, the first state is the original state after the mode-changeover device arbitrary start before this is started shooting, the Two-state is the final state before the mode-changeover device arbitrary shutdown before this is started shooting.
In another embodiment of the invention, seeing Figure 12, this device also includes: judging unit 504.
Judging unit 504, for judging the enantiomorphism of image file, enantiomorphism includes the first state and the second shape State;If the enantiomorphism of image file is the first state, internal storage state information includes the hardware state about at least one hardware Information and the application state information applied about at least one;
Accordingly, recovery unit 503 specifically for: according to internal storage state information, by least one hardware recovery to hardware State indicated by status information, and by least one application recovery to the state indicated by application state information.
Optionally, recovery unit 503 also particularly useful for: use information according to user during the first operating system, by pattern The User Status of switching device is recovered to user to use the state indicated by information.
In another embodiment of the invention, if the enantiomorphism of image file is the second state, internal storage state information bag Include the hardware status information about at least one hardware, the application state information applied about at least one and user to use Information;
Accordingly, recovery unit 503 specifically for: according to internal storage state information, by least one hardware recovery to hardware State indicated by status information, by least one application recovery to the state indicated by application state information and by pattern The User Status of switching device is recovered to user to use the state indicated by information.
In another embodiment of the invention, seeing Figure 13, this device also includes running unit 505.
Detector unit 501, is additionally operable to when mode-changeover device is in normal mode, if receiving the second switching command, Detect whether to there is image file;Wherein, the second switching command is for being switched to power saving by mode-changeover device by normal mode Pattern;
Terminating unit 502, if being additionally operable to there is image file, terminating the operation of the first operating system;
Running unit 505, for running the second operating system, so that mode-changeover device to switch to described battery saving mode.
In another embodiment of the invention, this device also includes mirror image unit., if for there is not mirror image in mirror image unit File, carries out mirror image to mode-changeover device internal storage state information in the normal mode, obtains image file.
Optionally, mirror image unit specifically for: remove the hardware status information about predetermined hardware in internal storage state information, And/or the application state information about default application;Internal storage state information after removing is carried out mirror image, obtains image file.
Optionally, this device also includes updating block.Updating block, if presetting update condition for meeting, to mirror image literary composition Part is updated;Wherein, default update condition include following at least one: system version upgrading, image file imperfect or wrong By mistake, image file meets the update cycle.
The mode-changeover device that the embodiment of the present invention provides, by when receiving the first switching command, detects whether to deposit At image file, and when there is image file, according to internal storage state information during the first operating system by mode-changeover device Recovering state to the first operating system state when running, thus mode-changeover device is switched to by battery saving mode rapidly Normal mode, reduces switching time, and improves Consumer's Experience.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although With reference to previous embodiment, the present invention is described in detail, it will be understood by those within the art that: it still may be used So that the technical scheme described in foregoing embodiments to be modified, or wherein portion of techniques feature is carried out equivalent; And these amendment or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (21)

1. a mode switching method, it is characterised in that described method is applied to terminal, is provided with the first operation in described terminal System and the second operating system, when described terminal is in battery saving mode, described second operating system is in running status, works as institute Stating terminal when being in normal mode, described first operating system is in running status, and described method includes:
When described terminal is in battery saving mode, if described terminal receives the first switching command, described terminal detects whether to deposit At image file;Wherein, described first switching command is for being switched to described normal mode by described terminal by described battery saving mode Formula;Described image file includes internal storage state information when described terminal is in described first operating system;
If there is described image file, described terminal terminates the operation of described second operating system;
Described terminal is according to described internal storage state information, when being run by the recovering state of described terminal to described first operating system State, so that described terminal is switched to described normal mode by described battery saving mode.
Method the most according to claim 1, it is characterised in that described when described terminal is in battery saving mode, if described Before terminal receives the first switching command, described method also includes:
When described terminal receives the start-up command of normal mode, described terminal detects whether to there is image file;
If there is described image file, described terminal is according to described internal storage state information, by the recovering state of described terminal to institute State state when the first operating system is run.
Method the most according to claim 1 and 2, it is characterised in that described image file is that described terminal is in normal mode Image file when the first state under formula or the second state;Wherein, described first state is that described terminal is started shooting at this The original state after arbitrary start before, described second state is arbitrary the shutdown before this is started shooting of the described terminal Front final state.
Method the most according to claim 3, it is characterised in that described terminal is according to described internal storage state information, by described Before state when the recovering state of terminal to described first operating system is run, described method also includes:
The enantiomorphism of image file described in described terminal judges, described enantiomorphism includes described first state and described second State;
If the enantiomorphism of described image file is described first state, described internal storage state information includes about at least one hard The hardware status information of part and the application state information applied about at least one;Accordingly, described terminal is according to described interior Deposit status information, the state when recovering state of described terminal to described first operating system is run, including:
Described terminal is according to described internal storage state information, by least one hardware recovery described to described hardware status information indication The state shown, and by the state indicated by least one application recovery described to described application state information.
Method the most according to claim 4, it is characterised in that described by least one hardware recovery described to described hardware State indicated by status information, and by the state indicated by least one application recovery described to described application state information Afterwards, described method also includes:
Described terminal uses information according to user during described first operating system, recovers the User Status of described terminal to institute State user and use the state indicated by information.
Method the most according to claim 4, it is characterised in that the enantiomorphism of image file described in described terminal judges it After, described method also includes:
If the enantiomorphism of described image file is described second state, described internal storage state information includes about at least one hard The hardware status information of part, application state information and the user applied about at least one use information;Accordingly, described Terminal is according to described internal storage state information, by the state during recovering state of described terminal to described first operating system operation, Including:
Described terminal is according to described internal storage state information, by least one hardware recovery described to described hardware status information indication The state shown, by the state indicated by least one application recovery described to described application state information and by described terminal User Status recover to described user to use the state indicated by information.
Method the most according to claim 1, it is characterised in that described method also includes:
When described terminal is in normal mode, if described terminal receives the second switching command, described terminal detects whether to deposit At image file;Wherein, described second switching command is for being switched to described power saving mould by described terminal by described normal mode Formula;
If there is described image file, described terminal terminates the operation of described first operating system;
Second operating system described in described terminal operating, to be switched to described power saving mould by described terminal by described normal mode Formula.
Method the most according to claim 7, it is characterised in that the second operating system described in described terminal operating, with by institute Stating before terminal switches to described battery saving mode, described method also includes:
If there is not described image file, described terminal is to described terminal internal storage state information under described first operating system Carry out mirror image, obtain image file.
Method the most according to claim 8, it is characterised in that described terminal to described terminal in described first operating system Under internal storage state information carry out mirror image, obtain image file, including:
The removing of described terminal is in the hardware state in the internal storage state information under described first operating system about predetermined hardware Information, and/or the application state information about default application;
Described terminal carries out mirror image to the internal storage state information after removing, and obtains image file.
10. according to the method described in any one of claim 1-9, it is characterised in that described method also includes:
Presetting update condition if meeting, described image file is updated by described terminal;Wherein, described default update condition bag Include following at least one: system version upgrading, described image file image file imperfect or wrong, described meet update week Phase.
11. according to the method described in any one of claim 1-10, it is characterised in that described terminal includes primary processor and Wei Chu Reason device, described primary processor is used for running described first operating system, and described microprocessor is used for running described second operation system System.
12. 1 kinds of mode-changeover devices, it is characterised in that be provided with the first operating system and the second operation system in described device System, when described device is in battery saving mode, described second operating system is in running status, when described device is in normal mode During formula, described first operating system is in running status, and described device includes:
Detector unit, for when described mode-changeover device is in battery saving mode, if receiving the first switching command, detection is No there is image file;Wherein, described first switching command is for being switched described mode-changeover device by described battery saving mode To described normal mode;Described image file includes internal memory shape when described mode-changeover device is in described first operating system State information;
Terminate unit, if for there is described image file, terminating the operation of described second operating system;
Recovery unit, for according to described internal storage state information, by the recovering state of described mode-changeover device to described first State when operating system is run, to be switched to described normal mode by described mode-changeover device by described battery saving mode.
13. devices according to claim 12, it is characterised in that
Described detector unit, is additionally operable to, when described mode-changeover device receives the start-up command of normal mode, detect whether There is image file;
Described recovery unit, if being additionally operable to there is described image file, believes according to internal storage state during described first operating system Breath, the state when recovering state of described mode-changeover device to described first operating system is run.
14. according to the device described in claim 12 or 13, it is characterised in that described image file is described mode-changeover device Image file when the first state being under normal mode or the second state;Wherein, described first state is described pattern Original state after the switching device arbitrary start before this is started shooting, described second state is described mode-changeover device The final state before arbitrary shutdown before this is started shooting.
15. devices according to claim 14, it is characterised in that described device also includes:
Judging unit, for judging the enantiomorphism of described image file, described enantiomorphism includes described first state and institute State the second state;
If the enantiomorphism of described image file is described first state, described internal storage state information includes about at least one hard The hardware status information of part and the application state information applied about at least one;Accordingly, described recovery unit, specifically For:
According to described internal storage state information, by the shape indicated by least one hardware recovery described to described hardware status information State, and by the state indicated by least one application recovery described to described application state information.
16. devices according to claim 15, it is characterised in that described recovery unit, also particularly useful for:
Use information according to user during the first operating system, the User Status of described mode-changeover device is recovered to described use State indicated by family use information.
17. devices according to claim 15, it is characterised in that
If the enantiomorphism of described image file is described second state, described internal storage state information includes about at least one hard The hardware status information of part, application state information and the user applied about at least one use information;Accordingly, described Recovery unit, specifically for:
According to described internal storage state information, by the shape indicated by least one hardware recovery described to described hardware status information State, by the state indicated by least one application recovery described to described application state information and by described pattern switching dress The User Status put is recovered to user to use the state indicated by information.
18. devices according to claim 12, it is characterised in that described device also includes:
Described detector unit, is additionally operable to when described mode-changeover device is in normal mode, if receiving the second switching command, Detect whether to there is image file;Wherein, described second switching command is used for described mode-changeover device by described normal mode Formula switches to described battery saving mode;
Described termination unit, if being additionally operable to there is described image file, terminates the operation of described first operating system;
Running unit, is used for running described second operating system, so that described mode-changeover device is switched to described battery saving mode.
19. devices according to claim 18, it is characterised in that described device also includes:
, if for there is not described image file, to described mode-changeover device internal memory shape in the normal mode in mirror image unit State information carries out mirror image, obtains image file.
20. devices according to claim 19, it is characterised in that described mirror image unit, specifically for:
Remove the hardware status information about predetermined hardware in described internal storage state information, and/or the application about default application Status information;
Internal storage state information after removing is carried out mirror image, obtains image file.
21. according to the device described in any one of claim 12-20, it is characterised in that described device also includes:
Updating block, presetting update condition if being additionally operable to meet, being updated described image file;Wherein, described preset more New Terms include following at least one: system version upgrading, described image file image file imperfect or wrong, described meet Update cycle.
CN201610555067.0A 2016-07-14 2016-07-14 One mode switching method and device Active CN106095065B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610555067.0A CN106095065B (en) 2016-07-14 2016-07-14 One mode switching method and device
PCT/CN2017/092114 WO2018010596A1 (en) 2016-07-14 2017-07-06 Mode switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610555067.0A CN106095065B (en) 2016-07-14 2016-07-14 One mode switching method and device

Publications (2)

Publication Number Publication Date
CN106095065A true CN106095065A (en) 2016-11-09
CN106095065B CN106095065B (en) 2019-04-19

Family

ID=57220318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610555067.0A Active CN106095065B (en) 2016-07-14 2016-07-14 One mode switching method and device

Country Status (2)

Country Link
CN (1) CN106095065B (en)
WO (1) WO2018010596A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018010596A1 (en) * 2016-07-14 2018-01-18 华为技术有限公司 Mode switching method and device
WO2018098901A1 (en) * 2016-11-30 2018-06-07 宇龙计算机通信科技(深圳)有限公司 Processing method and device for terminal service
CN109062678A (en) * 2018-07-25 2018-12-21 努比亚技术有限公司 A kind of Working mode switching method, wearable device and computer storage medium
CN113325737A (en) * 2020-02-28 2021-08-31 Oppo广东移动通信有限公司 Wearable device control method and device, wearable device and readable storage medium
WO2022252906A1 (en) * 2021-06-02 2022-12-08 Oppo广东移动通信有限公司 Interface display method and apparatus, terminal device, and computer readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112198953B (en) * 2020-09-27 2024-01-26 西安墨科通讯科技有限公司 Control method, control device and control equipment of terminal equipment
CN114546093A (en) * 2022-03-01 2022-05-27 联想(北京)有限公司 Control method, control device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610309A (en) * 2009-06-26 2009-12-23 宇龙计算机通信科技(深圳)有限公司 A kind of portable terminal mode switch control method, system and portable terminal
US20140281632A1 (en) * 2013-03-12 2014-09-18 Canon Kabushiki Kaisha Electronic apparatus that measures power during power saving state, method of controlling the same, and storage medium
CN104105227A (en) * 2014-04-17 2014-10-15 美的集团股份有限公司 A WIFI module work method and device based on different application scenarios
CN105204931A (en) * 2014-06-11 2015-12-30 联发科技(新加坡)私人有限公司 Low-power wearable equipment and multi-operation system switching, communication and management method thereof
CN105302663A (en) * 2015-09-19 2016-02-03 华为技术有限公司 Mirror image starting method and terminal equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095065B (en) * 2016-07-14 2019-04-19 华为技术有限公司 One mode switching method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610309A (en) * 2009-06-26 2009-12-23 宇龙计算机通信科技(深圳)有限公司 A kind of portable terminal mode switch control method, system and portable terminal
US20140281632A1 (en) * 2013-03-12 2014-09-18 Canon Kabushiki Kaisha Electronic apparatus that measures power during power saving state, method of controlling the same, and storage medium
CN104105227A (en) * 2014-04-17 2014-10-15 美的集团股份有限公司 A WIFI module work method and device based on different application scenarios
CN105204931A (en) * 2014-06-11 2015-12-30 联发科技(新加坡)私人有限公司 Low-power wearable equipment and multi-operation system switching, communication and management method thereof
CN105302663A (en) * 2015-09-19 2016-02-03 华为技术有限公司 Mirror image starting method and terminal equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018010596A1 (en) * 2016-07-14 2018-01-18 华为技术有限公司 Mode switching method and device
WO2018098901A1 (en) * 2016-11-30 2018-06-07 宇龙计算机通信科技(深圳)有限公司 Processing method and device for terminal service
CN109062678A (en) * 2018-07-25 2018-12-21 努比亚技术有限公司 A kind of Working mode switching method, wearable device and computer storage medium
CN113325737A (en) * 2020-02-28 2021-08-31 Oppo广东移动通信有限公司 Wearable device control method and device, wearable device and readable storage medium
CN113325737B (en) * 2020-02-28 2023-10-13 Oppo广东移动通信有限公司 Wearable device control method and device, wearable device and readable storage medium
WO2022252906A1 (en) * 2021-06-02 2022-12-08 Oppo广东移动通信有限公司 Interface display method and apparatus, terminal device, and computer readable storage medium

Also Published As

Publication number Publication date
WO2018010596A1 (en) 2018-01-18
CN106095065B (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN106095065A (en) A kind of mode switching method and device
CN103324549B (en) The implementation method of sleep standby and communication terminal
CN104809010B (en) A kind of brush machine method and intelligent terminal
CN107924288A (en) Electronic equipment and its method for carrying out perform function using speech recognition
CN103472906A (en) Method and device for switching double screens of terminal, and terminal equipment
CN105739786A (en) Method and device for starting application program in screen-off state
CN105843710A (en) Data backup and recovery device and method
CN103870356A (en) Information processing method and electronic equipment
CN104572186A (en) Method for executing operation instruction
CN106658753B (en) Data migration method and terminal equipment
CN109783149A (en) Start-up control method, device, mobile terminal and storage medium
CN107506666A (en) Multisystem terminal equipment control method, device and computer-readable recording medium
CN106776908B (en) Data cleaning method and device and terminal
CN107704298A (en) Terminal and its interface switching method, storage device based on fingerprint recognition
CN104572187A (en) Terminal
CN110134237A (en) Interface control method and relevant device
CN103902011A (en) Electronic device controlling method and electronic device
CN109284187A (en) A kind of application processing method, device and mobile terminal
CN108833684A (en) A kind of information cuing method and terminal device
CN108170559A (en) A kind of data back up method and terminal
CN111857497A (en) Operation prompting method and electronic equipment
CN111399874A (en) System upgrading method and device, storage medium and intelligent wearable device
CN105653304A (en) Method for switching operation mode, device for switching operation mode, and terminal
CN110602772A (en) WiFi module control method, control device, electronic device and storage medium
CN110062929A (en) A kind of method, apparatus and terminal showing data

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