CN104915269B - A kind of mobile terminal time and date information setting method, device and mobile terminal - Google Patents
A kind of mobile terminal time and date information setting method, device and mobile terminal Download PDFInfo
- Publication number
- CN104915269B CN104915269B CN201510402644.8A CN201510402644A CN104915269B CN 104915269 B CN104915269 B CN 104915269B CN 201510402644 A CN201510402644 A CN 201510402644A CN 104915269 B CN104915269 B CN 104915269B
- Authority
- CN
- China
- Prior art keywords
- time
- date information
- mobile terminal
- designated position
- internal memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of mobile terminal time and date information setting method, device and mobile terminal, this method to include:The time and date information of mobile terminal is periodically stored in the designated position of internal memory;When detecting that the mobile terminal starts, judge whether the time and date information of the mobile terminal loses;If losing, according to the time and date information for the designated position for being stored in the internal memory, the time and date information of the mobile terminal is set.Since the present invention is periodically in the designated position holding time of internal memory and date information, compared to the prior art, the present invention can on the basis of not increasing hardware costs, effectively prevent the loss of the time and date information of mobile terminal caused by removing battery or abnormal shutdown.
Description
Technical field
The invention belongs to technical field of mobile terminals more particularly to a kind of mobile terminal time and date information setting sides
Method, device and mobile terminal.
Background technology
With the development of mobile terminal technology and universal, the mobile terminals such as smart mobile phone, tablet computer increasingly become people
Live in an indispensable part.The time and date display function of mobile terminal largely instead of clock and watch,
So that people can understand current time and date anywhere or anytime, provided a great convenience for people’s lives.However, it moves
The clock circuit of dynamic terminal needs to maintain normal operation by the electric power that internal battery provides, when mobile terminal is being replaced or reset
During battery, clock circuit due to not having electric power support to be unable to operate normally, inevitably lose by time and date information.Time and date
Information is once lose, and mobile terminal will be according to default setting reset time and date information, the time and date letter after resetting
Breath has large error with user's current real time and date information, this will bring great puzzlement to user.
In the prior art, the time and date information to avoid mobile terminal is lost when replacing or resetting battery, usually
Using following 3 kinds of modes:
Mode 1 adds button cell on circuit board of mobile phone, powers for clock circuit, in this way after battery of mobile phone is removed,
Because there is button cell power supply, the time and date information in clock circuit will not lose;
Mode 2 adds capacitance in clock circuit, is filled after battery of mobile phone is removed for clock circuit using the capacitance of addition
Electricity.
Mode 3, when carrying out power-off operation, system is automatically saved in current time data to memory.
However, aforesaid way 1 increases circuit module due to needing, cost and difficult design degree be consequently increased, at present with
Be eliminated use.Aforesaid way 2 is only suitable for the short time and preserves (generally tens seconds), once to remove battery time long by user,
The data then preserved disappear, and mobile phone time still can restore factory-said value after booting.Aforesaid way 3 is in mobile phone crash, exception extremely
It shuts down and does not shut down and just pull out under the abnormal conditions such as battery, due to having little time holding time data, mobile phone is just stopped,
After mobile phone power-on, time and date information can still lose.
Therefore, how on the basis of cost is not increased, the time and date information of mobile phone is effectively prevent because of abnormal shutdown
And lose, it is one of current problem to be solved.
Invention content
The present invention provides a kind of mobile terminal time and date information setting method, device and mobile terminal, will periodically move
The time and date information of dynamic terminal is stored in the designated position of internal memory, therefore can be on the basis for not increasing hardware cost
On, it effectively prevent the loss of the time and date information of mobile terminal caused by removing battery or abnormal shutdown.
First aspect present invention provides a kind of mobile terminal time and date information setting method, including:
The time and date information of mobile terminal is periodically stored in the designated position of internal memory;
When detecting that the mobile terminal starts, judge whether the time and date information of the mobile terminal loses;
If losing, according to the time and date information for the designated position for being stored in the internal memory, described in setting
The time and date information of mobile terminal.
With reference to first aspect, it is described periodically by mobile terminal in the first possible realization method of first aspect
Time and date information is stored in the designated position of internal memory, including:
The covering of the time and date information of the mobile terminal is periodically stored in the designated position of the internal memory.
The possible realization method of with reference to first aspect the first, in second of possible realization method of first aspect
In, the time and date information according to the designated position for being stored in the internal memory sets the mobile terminal
Time and date information, including:
Whether the time and date information of the mobile terminal is preserved in the designated position for detecting the internal memory;
If the time and date information of the mobile terminal is preserved in the designated position of the internal memory, according to guarantor
There are the time and date information of the designated position of the internal memory, and the time and date of the mobile terminal is set to believe
Breath;
If the designated position of the internal memory does not preserve the time and date information of the mobile terminal, export
Time sets prompt message, to prompt the time and date information of mobile terminal described in user's manual setting.
The possible realization method of with reference to first aspect the first, in the third possible realization method of first aspect
In, the method further includes:Periodically by the time and date information back-up of the mobile terminal in SIM card, if the then institute
The designated position for stating internal memory does not preserve the time and date information of the mobile terminal, then output time setting prompting
Information, including:
If the designated position of the internal memory does not preserve the time and date information of the mobile terminal, detect
Whether the time and date information of the mobile terminal is backed up in the SIM card;
If backup has the time and date information of the mobile terminal in the SIM card, according to being backed up in the SIM card
Time and date information, the time and date information of the mobile terminal is set;
If being not backed up the time and date information of the mobile terminal in the SIM card, the time setting is exported
Prompt message.
The possible realization method of with reference to first aspect the first, in the 4th kind of possible realization method of first aspect
In, the method further includes:
The time and date information of the mobile terminal for the designated position for being stored in the internal memory is set as
Only designated program is allowed to read and write.
Second aspect of the present invention provides a kind of mobile terminal time and date information setting device, including:
Preserving module, for the time and date information of mobile terminal periodically to be stored in the specific bit of internal memory
It puts;
Detection module, for when detecting that the mobile terminal starts, judging the time and date of the mobile terminal
Whether information loses;
Temporal information setup module, if for the detection module testing result be the mobile terminal time and day
Phase information is lost, then according to the time and date information for the designated position for being stored in the internal memory, sets the movement
The time and date information of terminal.
With reference to second aspect, in the first possible realization method of second aspect, the preserving module, it is fixed to be additionally operable to
The time and date information covering of the mobile terminal is stored in the designated position of the internal memory by the phase.
With reference to the first possible realization method of second aspect, in second of possible realization method of second aspect
In, the temporal information setup module includes:
Detection sub-module, for working as the time and date information that the judging result of the detection module is the mobile terminal
During loss, whether the designated position for detecting the internal memory preserves the time and date information of the mobile terminal;
Submodule is set, if the testing result for the detection sub-module is protected for the designated position of the internal memory
Have the time and date information of the mobile terminal, then according to the time for the designated position for being stored in the internal memory and
Date information sets the time and date information of the mobile terminal;
Described device further includes:
Nformation alert module, if for the detection sub-module testing result be the internal memory designated position
The time and date information of the mobile terminal is not preserved, then output time setting prompt message, user to be prompted to set manually
Put the time and date information of the mobile terminal.
With reference to the first possible realization method of second aspect, in the third possible realization method of second aspect
In, the preserving module is additionally operable to periodically by the time and date information back-up of the mobile terminal in SIM card;
The detection sub-module, if the designated position for being additionally operable to the internal memory does not preserve the mobile terminal
Time and date information then detects the time and date information that the mobile terminal whether is backed up in the SIM card;
The setting submodule, if being additionally operable to the testing result of the detection sub-module to be backed up in the SIM card
The time and date information of mobile terminal is stated, then according to the time and date information backed up in the SIM card, the movement is set
The time and date information of terminal;
Described information reminding module, if being additionally operable to the testing result of the detection sub-module to be not backed up in the SIM card
There is the time and date information of the mobile terminal, then export the time setting prompt message.
With reference to the first possible realization method of second aspect, in the 4th kind of possible realization method of second aspect
In, described device further includes:
Setup module, for the time and day of the mobile terminal of the designated position of the internal memory will to be stored in
Phase information is set to only permit designated program to read and write.
Third aspect present invention provides a kind of mobile terminal, sets and fills including above-mentioned mobile terminal time and date information
It puts.
From the embodiments of the present invention it is found that the time and date information of mobile terminal by being periodically stored in by the present invention
The designated position of internal memory when detecting that time and date information is lost after mobile terminal-opening, will be stored in built-in
Time and date information in memory is set as the time and date information of the mobile terminal, compared with the prior art, a side
Due to not needing to increase additional hardware module, but existing internal memory is utilized as storage medium in face, therefore this
Invention will not increase hardware cost, on the other hand, due to being periodically to preserve, even encounter and remove battery for a long time, either
Abnormal crash, exception, which shut down and do not shut down, just pulls out the abnormal conditions such as battery, is stored in the designated position of internal memory
Time and date information will not lose, therefore the present invention can effectively prevent the movement caused by removing battery or abnormal shutdown eventually
The loss of the time and date information at end.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other attached drawings according to these attached drawings.
Fig. 1 is the realization flow signal for the mobile terminal time and date information setting method that one embodiment of the invention provides
Figure;
Fig. 2 is the tool of step S13 in the mobile terminal time and date information setting method that one embodiment of the invention provides
Body realizes flow diagram;
Fig. 3 is the tool of step S133 in the mobile terminal time and date information setting method that one embodiment of the invention provides
Body realizes flow diagram;
Fig. 4 is the structure diagram of mobile terminal time and date information setting device that one embodiment of the invention provides;
Fig. 5 is the structural representation of mobile terminal time and date information setting device that further embodiment of this invention provides
Figure.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing in embodiment, it is clear that described reality
It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, the common skill in this field
Art personnel all other embodiments obtained without making creative work belong to the model that the present invention protects
It encloses.
Mobile terminal in mobile terminal time and date information setting method provided in an embodiment of the present invention can with but not
It is limited to include:It needs battery powered and mobile phone, notebook, tablet computer, the wearing of time and date information display function is provided
Smart machine etc..For ease of description, following mobile terminal is by taking mobile phone as an example.
Attached drawing 1 is please referred to, attached drawing 1 is the mobile terminal time and date information setting method that one embodiment of the invention provides
Realization flow diagram, mainly include the following steps that S11 to step S13:
S11, the time and date information of mobile terminal is periodically stored in the designated position of internal memory.
Specifically, every preset time period, such as every 5 minutes, the time and date information of mobile phone, i.e. cell phone clock electricity are obtained
Time and date information in road, and using the time and date information of acquisition as a NV (Non-Volatile, it is non-volatile
Property) item, it is saved in the designated position of the internal memory of mobile phone.Wherein, temporal information includes:When, minute, second, date information packet
It includes:Year, month, day.The internal memory can be, but not limited to include:ROM (Read-Only Memory, read-only memory) or
Flash (flash memory).The preset time period can be by default settings or by User Defined.Using time and date information as NV
The purpose of storage is so that the time data preserved will not be lost due to power-off.It is to be appreciated that reduce memory space, it can
Using the preserving type of new data covering legacy data, the time and date information is preserved.After mobile phone power-on, automatically into meter
When, at the end of countdown, the designated position that obtains the time and date information of mobile phone and be stored in flash as NV, if
The designated position does not store data, then the time and date information is stored directly in the designated position, if the designated position is
Data are stored, then time and date information covering are stored in the designated position, subsequently into next round countdown.
In order to ensure the time and date information of the mobile phone preserved in internal memory not because virus or user accidentally delete wait outside
Power reason is lost, and is improved the safety of time data storage, further, as one embodiment of the invention, will be stored in this
The time and date information of the mobile terminal of the designated position of internal memory is set to only permit designated program to read and write.Or
Person the time and date information of the mobile terminal of acquisition is encrypted according to preset encryption rule before preservation, then
Encrypted time and date information is stored in the designated position of the internal memory.
S12, when detect the mobile terminal start when, judge whether the time and date information of the mobile terminal loses.
When detecting that mobile phone starts (booting), judge whether the time and date information in cell phone clock circuit loses,
If losing, judge that the time and date information of mobile phone is lost.
If it is to be appreciated that not losing, the time and date information of the mobile terminal is not reset.Due to internal memory
There are slight error between the time and date information of middle scheduled store, with practical time and date information, by mobile phone
Judge whether the time and date information in cell phone clock circuit loses during startup, the time and date information in mobile phone can be avoided
When not losing, according to the time and date information of time and date information resetting mobile phone stored in internal memory, so as to lead
The accuracy of the time and date information of mobile phone is caused to be damaged.
If S13, losing, according to the time and date information for the designated position for being stored in the internal memory, setting should
The time and date information of mobile terminal.
If after mobile phone power-on, the time and date information of mobile phone is lost, then the day in deposit flash is read by master chip
The NV of phase and temporal information items, the default value as mobile phone current setting date and time information.
Further, as one embodiment of the invention, as shown in Fig. 2, the specific further comprising the steps of S131 of step S13
To S133:
If S131, lose, detect the internal memory designated position whether preserve the mobile terminal time and
Date information.
If the time and date information of mobile phone is lost, whether the designated position for detecting the internal memory of mobile phone preserves
The time and date information of the mobile phone if preserving the time and date information of the mobile phone, performs step S132, otherwise, holds
Row step S133.
S132, the time and date information according to the designated position for being stored in the internal memory, set the mobile terminal
Time and date information;
If the time and date information of mobile phone is preserved in the designated position of the internal memory, by the time and day of preservation
Phase information is set as the time and date information of the mobile phone.It is to be appreciated that when battery removes overlong time, internal memory
The time and date information of preservation might have slightly error with the real time after mobile phone power-on and date information, then according to
The time and date information of the designated position of the internal memory is stored in, after the time and date information of mobile phone is set, when
When detecting access internet, time and date information is obtained, and according to the time of acquisition from time server by internet
The time and date information of mobile phone is calibrated with date information.
S133, output time setting prompt message, the time and date of user's manual setting mobile terminal to be prompted to believe
Breath.
When mobile phone is first booting or internal memory is replaced in Cellphone Repairs, the specific bit of internal memory
The time and date information of mobile phone may not be preserved by putting.If the designated position of the internal memory of the mobile phone does not preserve the shifting
The time and date information of terminal is moved, then output time setting prompt message, to prompt user's manual setting mobile terminal
Time and date information.Alternatively, the time then can be exported again first according to the time and date information of factory-said value setting mobile phone
Prompt message is set.
Further, as one embodiment of the invention, as shown in figure 3, the further comprising the steps of S11 ' of this method:
S11 ', periodically by the time and date information back-up of the mobile terminal in SIM card.
Specifically, while the time and date information of mobile phone periodically is stored in the designated position of internal memory,
Periodically by the time and date information back-up of the mobile phone, in SIM, (Subscriber Identity Module, client identify mould
Block) card in, in this way when user more renews machine, can pass through SIM card restore mobile phone time and date information.It is to be appreciated that
For save memory space, can by new data cover legacy data in a manner of in SIM card backup mobile phone time and date information.
The specific further comprising the steps of S1331 to S1333 of step S133:
S1331, the time and date information that the mobile terminal whether is backed up in the SIM card is detected.
If the designated position of the internal memory of mobile phone does not preserve the time and date information of the mobile phone, mobile phone is detected
SIM card in whether back up the time and date information of the mobile phone, if backup has the time and date information of the mobile phone, hold
Otherwise row step S1332, performs step S1333.
S1332, according to the time and date information backed up in the SIM card, the time and date of the mobile terminal is set to believe
Breath.
If backup has the time and date information of the mobile terminal in the SIM card, according to the time backed up in the SIM card
And date information, the time and date information of mobile phone is set.
S1333, time setting prompt message is exported.
If being not backed up the time and date information of the mobile terminal in the SIM card, time setting prompting letter is exported
Breath, to prompt the time and date information of user's manual setting mobile phone.
A kind of mobile terminal time and date information setting method provided in this embodiment, by periodically by mobile terminal
Time and date information is stored in the designated position of internal memory, and time and date information is detected after mobile terminal-opening
During loss, the time and date information being stored in internal memory is set as to the time and date information of the mobile terminal,
Compared with the prior art, on the one hand, due to not needing to increase additional hardware module, but existing internal memory is utilized
As storage medium, therefore the present invention will not increase hardware cost, on the other hand, due to being periodically to preserve, even encounter length
Time, which removes battery or abnormal crash, abnormal shutdown and do not shut down, just pulls out the abnormal conditions such as battery, is stored in built-in
The time and date information of the designated position of memory will not lose, therefore the present invention can be effectively prevent because removing battery or different
The often loss of the time and date information of mobile terminal caused by shutdown.
Attached drawing 4 is please referred to, attached drawing 4 is the mobile terminal time and date information setting device that one embodiment of the invention provides
Structure diagram, for convenience of description, illustrate only and the relevant part of the embodiment of the present invention.Attached drawing 4 is exemplary mobile whole
End time and date information setting device can be the mobile terminal time and date information setting method that previous embodiment provides
Executive agent, can be mobile terminal or one of function module.4 exemplary mobile terminal time of attached drawing and day
Phase information sets device, mainly includes:Preserving module 21, detection module 22 and temporal information setup module 23, each function mould
Detailed description are as follows for block:
Wherein, preserving module 21, for the time and date information of mobile terminal periodically to be stored in internal memory
Designated position.
Specifically, preserving module 21 such as every 5 minutes, obtains the time and date information of mobile phone every preset time period, and
Using the time and date information of acquisition as a NV (Non-Volatile, non-volatile) item, it is saved in the built-in of mobile phone and deposits
The designated position of reservoir.The internal memory can be, but not limited to include:ROM (Read-Only Memory, read-only memory) or
Flash (flash memory).The preset time period can be by default settings or by User Defined.Using time and date information as NV
The purpose of storage is so that the time data preserved will not be lost due to power-off.
Detection module 22, for when detecting that the mobile terminal starts, judging the time and date letter of the mobile terminal
Whether breath is lost.
Detection module 22 judges whether the time and date information in cell phone clock circuit loses when detecting that mobile phone starts
It loses, if losing, judges that the time and date information of mobile phone is lost.
Temporal information setup module 23, if for detection module 22 testing result be the mobile terminal time and date
Information is lost, then according to the time and date information for the designated position for being stored in the internal memory, sets the mobile terminal
Time and date information.
If after mobile phone power-on, the time and date information of mobile phone is lost, then temporal information setup module 23 passes through master chip
Read the NV items of the date and time information in deposit flash, the default value as mobile phone current setting date and time information.
It should be noted that the embodiment of 4 exemplary mobile terminal time and date information of the figures above setting device
In, the division of each function module is merely illustrative of, can be as needed in practical application, such as the configuration requirement of corresponding hardware
Or the convenient of the realization of software considers, and above-mentioned function distribution is completed by different function modules, i.e., it will be described mobile whole
The internal structure of end time and date information setting device is divided into different function modules, with complete it is described above whole or
Person's partial function.Moreover, in practical application, the corresponding function module in the present embodiment can be by corresponding hardware realization,
Corresponding software can also be performed by corresponding hardware to complete;Each embodiment that this specification provides can all apply foregoing description
Principle.
Device is set from above-mentioned 4 exemplary mobile terminal time and date information of attached drawing it is found that the present invention will be by periodically will
The time and date information of mobile terminal is stored in the designated position of internal memory, and the time is detected after mobile terminal-opening
When being lost with date information, by the time and date information being stored in internal memory be set as the mobile terminal time and
Date information, compared with the prior art, on the one hand, due to not needing to increase additional hardware module, but be utilized existing
Internal memory is as storage medium, therefore the present invention will not increase hardware cost, on the other hand, due to being periodically to preserve, i.e.,
It is to encounter to remove battery or abnormal crash, abnormal shutdown for a long time and do not shut down just to pull out the abnormal conditions such as battery,
Being stored in the time and date information of the designated position of internal memory will not lose, therefore the present invention can be effectively prevent because taking
The loss of the time and date information of mobile terminal caused by lower battery or abnormal shutdown.
Attached drawing 5 is please referred to, attached drawing 5 is the mobile terminal time and date information setting dress that further embodiment of this invention provides
The structure diagram put.For convenience of description, it illustrates only and the relevant part of the embodiment of the present invention.5 exemplary movement of attached drawing
Terminal time and date information setting device can be the mobile terminal time and date information setting sides that previous embodiment provides
The executive agent of method can be mobile terminal or one of function module.The 5 exemplary mobile terminal time of attached drawing and
Date information sets device, mainly includes:Preserving module 31, detection module 32, temporal information setup module 33, information alert mould
Block 34 and setup module 35, wherein temporal information setup module 33 further comprise:Detection sub-module 331 and setting submodule
332.Detailed description are as follows for each function module:
Wherein, preserving module 31, for the time and date information of mobile terminal periodically to be stored in internal memory
Designated position.
Further, preserving module 31 are additionally operable to periodically be stored in the covering of the time and date information of the mobile terminal
The designated position of the internal memory.
Specifically, preserving module 31 such as every 5 minutes, obtains the time and date information of mobile phone every preset time period, and
Using the time and date information of acquisition as a NV (Non-Volatile, non-volatile) item, it is saved in the built-in of mobile phone and deposits
The designated position of reservoir.The internal memory can be, but not limited to include:ROM (Read-Only Memory, read-only memory) or
Flash (flash memory).It is using time and date information as the purpose of NV storages so that the time data preserved will not be because disconnected
Electricity and lose.It is to be appreciated that reduce memory space, the preservation side of new data covering legacy data can be used in preserving module 31
Formula preserves the time and date information.After mobile phone power-on, preserving module 31 at the end of countdown, is obtained automatically into countdown
The designated position for taking the time and date information of mobile phone and being stored in flash as NV, if the designated position does not store data,
The time and date information is then stored directly in the designated position, if the designated position has stored data, by the time and
Date information covering is stored in the designated position, subsequently into next round countdown.
Detection module 32, for when detecting that the mobile terminal starts, judging the time and date letter of the mobile terminal
Whether breath is lost.
Detection module 32 judges whether the time and date information in cell phone clock circuit loses when detecting that mobile phone starts
It loses, if losing, judges that the time and date information of mobile phone is lost.
Temporal information setup module 33, if for detection module 32 testing result be the mobile terminal time and date
Information is lost, then according to the time and date information for the designated position for being stored in the internal memory, sets the mobile terminal
Time and date information.
If after mobile phone power-on, the time and date information of mobile phone is lost, then temporal information setup module 33 passes through master chip
Read the NV items of the date and time information in deposit flash, the default value as mobile phone current setting date and time information.
Detection sub-module 331, if for detection module 32 judging result be the mobile terminal time and date information
Whether lose, then whether the designated position for detecting the internal memory preserves the time and date information of the mobile terminal.
If the testing result of detection module 32 is lost for the time and date information of mobile phone, detection sub-module 331 detects
Whether the time and date information of the mobile phone is preserved in the designated position of the internal memory of mobile phone.
Submodule 332 is set, if the testing result for detection sub-module 331 is protected for the designated position of the internal memory
There is the time and date information of the mobile terminal, then according to the time and date for the designated position for being stored in the internal memory
Information sets the time and date information of the mobile terminal.
If the testing result of detection sub-module 331 preserves the time and day of mobile phone for the designated position of the internal memory
Phase information then sets submodule 332 that the time and date information of preservation is set as to the time and date information of the mobile phone.It can be with
Understand ground, when battery removes overlong time, time and date information and the reality after mobile phone power-on that internal memory preserves
Time and date information might have slightly error, then sets submodule 332 according to being stored in the specified of the internal memory
The time and date information of position, after setting the time and date information of mobile phone, when detecting access internet, by mutual
Networking obtains time and date information from time server, and according to the time and date information of acquisition to the time and day of mobile phone
Phase information is calibrated.
Nformation alert module 34, if for detection sub-module 331 testing result be the internal memory designated position
The time and date information of the mobile terminal is not preserved, then output time setting prompt message, to prompt user's manual setting
The time and date information of the mobile terminal.
When mobile phone is first booting or internal memory is replaced in Cellphone Repairs, the specific bit of internal memory
The time and date information of mobile phone may not be preserved by putting.If the testing result of detection sub-module 331 is deposited for the built-in of the mobile phone
The designated position of reservoir does not preserve the time and date information of the mobile terminal, then 34 output time of nformation alert module is set
Prompt message, to prompt the time and date information of user's manual setting mobile terminal.Alternatively, nformation alert module 34 can be with
Time and date information of the setting submodule 332 according to factory-said value setting mobile phone is first passed through, time setting is then exported again and carries
Show information.
Preserving module 31 is additionally operable to periodically by the time and date information back-up of the mobile terminal in SIM card.
Specifically, the time and date information of mobile phone is stored in the specific bit of internal memory by preserving module 31 periodically
While putting, periodically by the time and date information back-up of the mobile phone in SIM card, in this way when user more renews machine, it can lead to
Cross the time and date information that SIM card restores mobile phone.It is to be appreciated that save memory space, can old number be covered with new data
According to mode backup mobile phone in SIM card time and date information.
Detection sub-module 331, if the designated position for being additionally operable to the internal memory does not preserve the time of the mobile terminal
And date information, then detect the time and date information that the mobile terminal whether is backed up in the SIM card.
Submodule 332 is set, if the testing result for being additionally operable to detection sub-module 331 has the movement for backup in the SIM card
The time and date information of terminal then according to the time and date information backed up in the SIM card, sets the time of the mobile terminal
And date information.
Nformation alert module 34, if being additionally operable to the testing result of detection sub-module 331 to be not backed up the shifting in the SIM card
The time and date information of dynamic terminal then exports time setting prompt message.
Setup module 35, for the time and date of the mobile terminal of the designated position of the internal memory will to be stored in
Information is set to only permit designated program to read and write.
In order to ensure the time and date information of the mobile phone preserved in internal memory not because virus or user accidentally delete wait outside
Power reason is lost, and improves the safety of time data storage, the designated position that setup module 35 will be stored in the internal memory
The time and date information of the mobile terminal designated program is set to only permit to read and write.Alternatively, acquisition is somebody's turn to do before preservation
The time and date information of mobile terminal is encrypted according to preset encryption rule, then believes encrypted time and date
Breath is stored in the designated position of the internal memory.
Device is set from above-mentioned 5 exemplary mobile terminal time and date information of attached drawing it is found that the present invention will be by periodically will
The time and date information of mobile terminal is stored in the designated position of internal memory, and the time is detected after mobile terminal-opening
When being lost with date information, by the time and date information being stored in internal memory be set as the mobile terminal time and
Date information, compared with the prior art, on the one hand, due to not needing to increase additional hardware module, but be utilized existing
Internal memory is as storage medium, therefore the present invention will not increase hardware cost, on the other hand, due to being periodically to preserve, i.e.,
It is to encounter to remove battery or abnormal crash, abnormal shutdown for a long time and do not shut down just to pull out the abnormal conditions such as battery,
Being stored in the time and date information of the designated position of internal memory will not lose, therefore the present invention can be effectively prevent because taking
The loss of the time and date information of mobile terminal caused by lower battery or abnormal shutdown.
The embodiment of the present invention also provides a kind of mobile terminal, which includes the mobile end that attached drawing 4 or attached drawing 5 provide
Hold time and date information setting device.
It should be noted that the contents such as information exchange, implementation procedure between each module/unit of above device, due to
The method of the present invention embodiment is based on same design, and the technique effect brought is identical with the method for the present invention embodiment, particular content
The narration in the method for the present invention embodiment is can be found in, details are not described herein again.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only
Only a kind of division of logic function can have other dividing mode in actual implementation, such as multiple module or components can be tied
It closes or is desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or module
Letter connection can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separate, be shown as module
The component shown may or may not be physical module, you can be located at a place or can also be distributed to multiple
On network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, it can also
That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and is independent product sale or uses
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention
Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
It should be noted that for aforementioned each method embodiment, describe, therefore it is all expressed as a series of for simplicity
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs
Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
It is whole to a kind of mobile terminal time and date information setting method provided by the present invention, device and movement above
The description at end, for the thought of those of ordinary skill in the art, according to the present invention embodiment, in specific embodiment and application
There will be changes in range, to sum up, the content of the present specification should not be construed as limiting the invention.
Claims (5)
1. a kind of mobile terminal time and date information setting method, which is characterized in that the method includes:
The time and date information of mobile terminal is periodically stored in the designated position of internal memory, to acquisition before preservation
The time and date information of the mobile terminal is encrypted according to preset encryption rule,
The designated position that the time and date information of mobile terminal is periodically stored in internal memory includes:
If the designated position does not store data, the time and date information is stored directly in the designated position, if
The designated position has stored data, then time and date information covering is stored in the designated position;
When detecting that the mobile terminal starts, judge whether the time and date information of the mobile terminal loses;
If losing, according to the time and date information for the designated position for being stored in the internal memory, the movement is set
The time and date information of terminal, including:
Whether the time and date information of the mobile terminal is preserved in the designated position for detecting the internal memory;
If the time and date information of the mobile terminal is preserved in the designated position of the internal memory, according to being stored in
The time and date information of the designated position of the internal memory sets the time and date information of the mobile terminal;
If the designated position of the internal memory does not preserve the time and date information of the mobile terminal, output time
Prompt message is set, to prompt the time and date information of mobile terminal described in user's manual setting;
The method further includes:Periodically by the time and date information back-up of the mobile terminal in SIM card, if the then institute
The designated position for stating internal memory does not preserve the time and date information of the mobile terminal, then output time setting prompting
Information, including:
If the designated position of the internal memory does not preserve the time and date information of the mobile terminal, described in detection
Whether the time and date information of the mobile terminal is backed up in SIM card;
If backup has the time and date information of the mobile terminal in the SIM card, according to backed up in the SIM card when
Between and date information, the time and date information of the mobile terminal is set;
If being not backed up the time and date information of the mobile terminal in the SIM card, the time setting prompting is exported
Information.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
The time and date information of the mobile terminal for the designated position for being stored in the internal memory is set as only permitting
Perhaps designated program is read and write.
3. a kind of mobile terminal time and date information sets device, which is characterized in that described device includes:
Preserving module, for the time and date information of mobile terminal periodically to be stored in the designated position of internal memory,
The time and date information of the mobile terminal of acquisition is encrypted according to preset encryption rule before preserving;
The designated position that the time and date information of mobile terminal is periodically stored in internal memory includes:
If the designated position does not store data, the time and date information is stored directly in the designated position, if
The designated position has stored data, then time and date information covering is stored in the designated position;
Detection module, for when detecting that the mobile terminal starts, judging the time and date information of the mobile terminal
Whether lose;
Temporal information setup module, if the testing result for the detection module is believed for the time and date of the mobile terminal
Breath is lost, then according to the time and date information for the designated position for being stored in the internal memory, sets the mobile terminal
Time and date information;
The temporal information setup module includes:
Detection sub-module is lost for working as the time and date information that the judging result of the detection module is the mobile terminal
When, whether the designated position for detecting the internal memory preserves the time and date information of the mobile terminal;
Submodule is set, if the testing result for the detection sub-module is preserved for the designated position of the internal memory
The time and date information of the mobile terminal, then according to the time and date for the designated position for being stored in the internal memory
Information sets the time and date information of the mobile terminal;
Described device further includes:
Nformation alert module, if the testing result for the detection sub-module is not protected for the designated position of the internal memory
There is the time and date information of the mobile terminal, then output time setting prompt message, to prompt user's manual setting institute
State the time and date information of mobile terminal;
The preserving module is additionally operable to periodically by the time and date information back-up of the mobile terminal in SIM card;
The detection sub-module, if the designated position for being additionally operable to the internal memory does not preserve the time of the mobile terminal
And date information, then detect the time and date information that the mobile terminal whether is backed up in the SIM card;
The setting submodule, if the testing result for being additionally operable to the detection sub-module has the shifting for backup in the SIM card
The time and date information of dynamic terminal, then according to the time and date information backed up in the SIM card, set the mobile terminal
Time and date information;
Described information reminding module, if being additionally operable to the testing result of the detection sub-module to be not backed up in the SIM card
The time and date information of mobile terminal is stated, then exports the time setting prompt message.
4. device according to claim 3, which is characterized in that described device further includes:
Setup module, for the time and date of the mobile terminal of the designated position of internal memory letter will to be stored in
Breath is set to only permit designated program to read and write.
5. a kind of mobile terminal, which is characterized in that the mobile terminal includes the movement described in claim 3 to 4 any one
Terminal time and date information setting device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510402644.8A CN104915269B (en) | 2015-07-09 | 2015-07-09 | A kind of mobile terminal time and date information setting method, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510402644.8A CN104915269B (en) | 2015-07-09 | 2015-07-09 | A kind of mobile terminal time and date information setting method, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104915269A CN104915269A (en) | 2015-09-16 |
CN104915269B true CN104915269B (en) | 2018-07-03 |
Family
ID=54084350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510402644.8A Active CN104915269B (en) | 2015-07-09 | 2015-07-09 | A kind of mobile terminal time and date information setting method, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104915269B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109003373A (en) * | 2018-08-22 | 2018-12-14 | 高新兴科技集团股份有限公司 | Intelligent entrance guard card right management method, device, computer storage medium and equipment |
CN111007916B (en) * | 2019-11-29 | 2021-07-06 | Tcl移动通信科技(宁波)有限公司 | Terminal device time setting method and system, storage medium and terminal device |
CN113110697B (en) * | 2021-04-16 | 2024-06-18 | 深圳市富视康智能股份有限公司 | Time calibration method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101355744A (en) * | 2007-07-24 | 2009-01-28 | 上海晨兴电子科技有限公司 | Method for preserving clock record content unit for short time current failure of mobile phone |
CN102609348A (en) * | 2012-02-02 | 2012-07-25 | 深圳市中兴移动通信有限公司 | Method and system for displaying capacity remaining time of Bluetooth device based on Bluetooth terminal |
CN103051778A (en) * | 2012-12-04 | 2013-04-17 | 东莞宇龙通信科技有限公司 | Mobile terminal and method for setting time of mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6829724B2 (en) * | 2002-09-18 | 2004-12-07 | Sun Microsystems, Inc. | Method for monitoring the condition of a battery in a high temperature high current environment |
-
2015
- 2015-07-09 CN CN201510402644.8A patent/CN104915269B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101355744A (en) * | 2007-07-24 | 2009-01-28 | 上海晨兴电子科技有限公司 | Method for preserving clock record content unit for short time current failure of mobile phone |
CN102609348A (en) * | 2012-02-02 | 2012-07-25 | 深圳市中兴移动通信有限公司 | Method and system for displaying capacity remaining time of Bluetooth device based on Bluetooth terminal |
CN103051778A (en) * | 2012-12-04 | 2013-04-17 | 东莞宇龙通信科技有限公司 | Mobile terminal and method for setting time of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104915269A (en) | 2015-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103458123B (en) | Preserve, share method and the mobile terminal thereof of chat record | |
CN104915269B (en) | A kind of mobile terminal time and date information setting method, device and mobile terminal | |
US10955482B2 (en) | Method and device for acquiring battery power level and electronic device | |
US9729205B2 (en) | Battery management scheme for NFC | |
US20150141081A1 (en) | Method of detection and display of charging information of power bank | |
CN107704339A (en) | A kind of method, apparatus and user equipment of media file backup | |
CN108629660A (en) | A kind of shared charger baby based on mobile terminal electricity leases configuration method, device and its system | |
CN103135735B (en) | Power down protection control method and system | |
CN109257249A (en) | A kind of network interface card stability test method, apparatus, terminal and storage medium | |
EP3683682B1 (en) | Bus monitoring system, method and apparatus | |
CN113434915A (en) | Case intrusion state detection device and method and edge server | |
CN103533563A (en) | Restoring method and terminal for wireless local area network account number | |
CN105957275A (en) | POS system power failure protection system and on-site recovery method | |
CN109815091B (en) | AEP high-temperature alarm sensitivity testing method, device, terminal and storage medium | |
CN112214384A (en) | Hard disk serial number management method, system, terminal and storage medium | |
CN106201930B (en) | A kind of device port determining device, terminal and method | |
CN110175096B (en) | GPU (graphics processing Unit) pressurization test method, system, terminal and storage medium | |
CN105354491A (en) | Standby state detection method and device of intelligent terminal | |
CN107995675A (en) | Communication means, device, terminal and the storage medium of mobile POS machine | |
CN106293796B (en) | A kind of information processing method and electronic equipment | |
CN111552655A (en) | Method and equipment compatible with PogoPin, Y-cable and USB | |
CN109783272A (en) | Disk snapshot processing method, device and equipment | |
CN104765655A (en) | System abnormality repair method and device and terminal | |
CN116093885B (en) | Low-voltage protection method and device applied to model airplane electronic speed regulator | |
CN114816023B (en) | Method, system, terminal and storage medium for optimizing standby power function of server |
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 | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CP03 | Change of name, title or address |