CN107835297B - Information updating method, mobile terminal and computer readable storage medium - Google Patents

Information updating method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN107835297B
CN107835297B CN201710971584.0A CN201710971584A CN107835297B CN 107835297 B CN107835297 B CN 107835297B CN 201710971584 A CN201710971584 A CN 201710971584A CN 107835297 B CN107835297 B CN 107835297B
Authority
CN
China
Prior art keywords
battery
identification information
mobile terminal
updated
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710971584.0A
Other languages
Chinese (zh)
Other versions
CN107835297A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710971584.0A priority Critical patent/CN107835297B/en
Publication of CN107835297A publication Critical patent/CN107835297A/en
Application granted granted Critical
Publication of CN107835297B publication Critical patent/CN107835297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides an information updating method and a mobile terminal, and relates to the technical field of mobile terminals, wherein the method comprises the following steps: detecting whether a battery of the mobile terminal is a standard battery; when the battery is a standard battery, acquiring identification information to be updated, wherein the identification information to be updated is information acquired from a server in advance; and updating the identification information corresponding to the battery according to the identification information to be updated. By updating the identification information of the battery after the battery is confirmed to be the standard battery, the situation that the identification information of the battery is cracked due to the fact that the identification information of the battery is kept unchanged is avoided, the safety of the identification information of the battery is improved, and the safety of a user when the user uses the mobile terminal is improved.

Description

Information updating method, mobile terminal and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of mobile terminals, in particular to an information updating method and a mobile terminal.
Background
In order to improve the safety of a user when using the mobile terminal, identification information can be set in the battery of the mobile terminal, so that the mobile terminal can identify the battery according to the identification information, and whether the battery is a standard battery of the mobile terminal or not and whether potential safety hazards exist or not is determined.
In the related art, the battery may include a storage space for storing identification information of the battery. When the mobile terminal is started, the identification information can be acquired from the storage space of the battery, and the acquired identification information is compared with the identification information pre-stored by the mobile terminal to determine whether the identification information of the battery is consistent with the pre-stored identification information, so as to determine whether the battery is a standard battery of the mobile terminal.
However, in practical application, because the identification information of the battery may be cracked, the identification information of the battery with unqualified quality can be copied according to the cracked identification information, so that the mobile terminal cannot identify the copied unqualified battery, and the mobile terminal has potential safety hazard.
Disclosure of Invention
The embodiment of the invention provides an information updating method, which aims to solve the problem that a mobile terminal cannot identify unqualified batteries imitated according to cracked identification information, so that the mobile terminal has potential safety hazards.
In order to solve the technical problem, the invention is realized as follows: an information updating method, comprising:
detecting whether a battery of the mobile terminal is a standard battery;
when the battery is a standard battery, acquiring identification information to be updated, wherein the identification information to be updated is information acquired from a server in advance;
and updating the identification information corresponding to the battery according to the identification information to be updated.
An embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
the mobile terminal comprises a detection module, a detection module and a control module, wherein the detection module is used for detecting whether a battery of the mobile terminal is a standard battery;
the acquisition module is used for acquiring identification information to be updated when the battery is a standard battery, wherein the identification information to be updated is information acquired from a server in advance;
and the updating module is used for updating the identification information corresponding to the battery according to the identification information to be updated.
The embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the information updating method described in any of the above information updating methods are implemented.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the information updating method according to any one of the above information updating methods.
In the embodiment of the invention, the identification information of the battery is updated after the battery is confirmed to be the standard battery, so that the condition that the identification information of the battery is cracked as the identification information of the battery is kept unchanged is avoided, the safety of the identification information of the battery is improved, and the safety of a user when the mobile terminal is used is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of a mobile terminal according to an information updating method provided by an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of an information updating method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a method for updating information according to an embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a mobile terminal according to an information updating method shown in an exemplary embodiment, and as shown in fig. 1, the mobile terminal may include: a receiving module 110, a processing module 120, an encryption and decryption module 130, an information reading and writing module 140 and a battery 150.
The processing module 120 is connected to the receiving module 110 and the encryption and decryption module 130, and the information reading and writing module 140 is connected to the encryption and decryption module 130 and the battery 150.
Specifically, the receiving module 110 may receive the identification information to be updated and the key to be updated, which are sent by the server, when the mobile terminal is connected to the internet;
the processing module 120 may obtain the identification information stored in the battery 150 through the information reading and writing module 140 when the mobile terminal is powered on, decrypt the identification information through the encryption and decryption module 130 to obtain the initial identification information, and finally match the initial identification information obtained by decryption with the target identification information stored in advance.
When the matching is successful, the processing module 120 may detect whether the receiving module 110 receives the identification information to be updated and the key to be updated, which are sent by the server. If the receiving module 110 receives the identification information to be updated and the key to be updated, which are sent by the server, the identification information to be updated may be encrypted by the encryption and decryption module 130 according to the key to be updated, and the encrypted identification information to be updated may be stored in the battery 150 through the read/write module 140, so as to complete the update of the identification information of the battery.
Referring to fig. 2, a flowchart illustrating steps of an information updating method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201, detecting whether the battery of the mobile terminal is a standard battery.
In the process of using the mobile terminal, the mobile terminal may cause potential safety hazards due to the problems of unqualified battery quality and the like. Therefore, before the user uses the mobile terminal, for example, when the mobile terminal is started, the battery of the mobile terminal can be detected, and whether the quality of the battery is qualified or not is judged, and whether the battery is a standard battery or not is judged.
Specifically, a battery of the mobile terminal is provided with a storage space for storing relevant information of the battery, wherein identification information for identifying the battery may be included, and the identification information is used for indicating whether the battery is a standard battery. Correspondingly, the mobile terminal can acquire the identification information of the battery and match the identification information with the pre-stored identification information, so as to determine whether the battery of the mobile terminal is a standard battery.
When it is determined that the battery of the mobile terminal is a standard battery, step 202 may be performed; however, if it is detected that the battery of the mobile terminal is not the standard battery, the user may be prompted that the battery currently used is not the standard battery and needs to be replaced.
Step 202, when the battery is a standard battery, obtaining the identification information to be updated.
The identification information to be updated is information acquired from a server in advance.
In order to ensure the safety of the identification information of the battery, the server may periodically send the identification information to be updated to the mobile terminal, so as to update the identification information of the battery, thereby improving the safety of the identification information. Therefore, after the mobile terminal confirms that the current battery is the standard battery, the identification information to be updated can be acquired, so that in the subsequent step, the mobile terminal can update the identification information of the battery according to the identification information to be updated.
It should be noted that, when the to-be-updated identification information is that the mobile terminal accesses the internet, the server sends the identification information to the mobile terminal when detecting that the identification information of the battery is updated, so as to update the identification information of the battery.
And step 203, updating the identification information corresponding to the battery according to the identification information to be updated.
After the mobile terminal obtains the identification information to be updated, the identification information of the battery can be updated according to the identification information to be updated. Because the identification information of the battery is stored in the battery and not in the mobile terminal, after the mobile terminal acquires the identification information to be updated, the identification information to be updated can be stored in the storage space of the battery to replace the identification information stored before the battery.
In summary, the information updating method provided in the embodiments of the present invention detects whether the battery of the mobile terminal is a standard battery, obtains the identification information to be updated when the battery is the standard battery, and updates the identification information corresponding to the battery according to the identification information to be updated. By updating the identification information of the battery after the battery is confirmed to be the standard battery, the situation that the identification information of the battery is cracked due to the fact that the identification information of the battery is kept unchanged is avoided, the safety of the identification information of the battery is improved, and the safety of a user when the user uses the mobile terminal is improved.
Referring to fig. 3, a flowchart illustrating steps of an information updating method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 301, acquiring initial identification information of the battery.
In order to detect whether the battery of the mobile terminal is a standard battery, the mobile terminal may obtain the encrypted identification information from the storage space of the battery, and decrypt the encrypted identification information according to a pre-stored target key to obtain the initial identification information.
Optionally, the mobile terminal may obtain the encrypted identification information, obtain a target key, and finally decrypt the encrypted identification information according to the target key to obtain the initial identification information. The target key is used for decrypting the encrypted identification information, and the target key and the target identification information in the subsequent steps can be stored in the mobile terminal together.
Step 302, matching the initial identification information with the pre-stored target identification information.
The target identification information is identification information which is pre-stored by the mobile terminal and is used for identifying whether the battery is a standard battery.
After the mobile terminal obtains the initial identification information through decryption, the initial identification information can be matched with the pre-stored target identification information, and whether the initial identification information and the pre-stored target identification information are consistent or not is judged, so that whether the battery of the mobile terminal is a standard battery or not is determined.
When the initial identification information and the target identification information are successfully matched, it indicates that the initial identification information is consistent with the target identification information, and if it can be confirmed that the battery is a standard battery, the mobile terminal may execute step 303. However, when the matching between the initial identification information and the target identification information fails, it indicates that the initial identification information is not consistent with the target identification information, and it can be confirmed that the battery is not a standard battery, and it is necessary to skip step 303 and step 304 and execute step 305.
And 303, when the battery is a standard battery, acquiring the identification information to be updated.
This step 303 is similar to step 202 and will not be described herein again.
And step 304, updating the identification information corresponding to the battery according to the identification information to be updated.
After the mobile terminal acquires the identification information to be updated, the mobile terminal can also acquire a key to be updated so as to encrypt the identification information to be updated according to the key to be updated, thereby further enhancing the security of the identification information to be updated, and finally, the encrypted identification information stored in the battery is replaced by the encrypted identification information to be updated.
The key to be updated is a key which is sent to the mobile terminal by the server when the server sends the identification information to be updated, and is used for encrypting and/or decrypting the identification information to be updated.
Optionally, the mobile terminal may obtain the key to be updated, encrypt the identification information to be updated according to the key to be updated, obtain the encrypted identification information, and finally replace the identification information corresponding to the battery with the encrypted identification information.
It should be noted that, after the identification information in the battery is updated, the mobile terminal may update the target identification information and the target key that are stored in the mobile terminal in advance, and the identification information to be updated and the key to be updated are used as the new target identification information and the new target key, so that when the mobile terminal is started again, the identification information of the battery may be decrypted and matched according to the identification information to be updated and the key to be updated.
When the battery is not a standard battery, step 305, the user is prompted that the battery is not a standard battery.
When the mobile terminal determines in step 302 that the initial identification information of the battery does not match the pre-stored target identification information, it may be determined that the battery of the mobile terminal is not a standard battery, but a battery with unqualified quality and potential safety hazard. Thus, the mobile terminal may alert the user that the battery currently being used by the mobile terminal is not a standard battery.
For example, after detecting that the battery is not a standard battery, the mobile terminal may display on a screen that "the battery currently used by you is not a standard battery, which may cause a potential safety hazard and please replace the battery in time", or play the information through a voice playing function, and certainly may also use other manners to remind, which is not limited in the embodiment of the present invention.
In summary, the information updating method provided in the embodiments of the present invention detects whether the battery of the mobile terminal is a standard battery, obtains the identification information to be updated when the battery is the standard battery, and updates the identification information corresponding to the battery according to the identification information to be updated. By updating the identification information of the battery after the battery is confirmed to be the standard battery, the situation that the identification information of the battery is cracked due to the fact that the identification information of the battery is kept unchanged is avoided, the safety of the identification information of the battery is improved, and the safety of a user when the user uses the mobile terminal is improved.
Furthermore, by acquiring the key to be updated and encrypting the identification information to be updated according to the key to be updated, the encrypted identification information is used as new identification information corresponding to the battery, and the identification information is encrypted on the basis of updating the identification information, so that the safety of the identification information of the battery is improved, and the safety of using the mobile terminal is further improved.
Further, by acquiring initial identification information of the battery and matching the initial identification information with the target identification information, whether the battery is a standard battery is determined according to a matching result, if the battery is not the standard battery, a user can be reminded, and subsequent updating steps are not performed; but if the battery is a standard battery, a subsequent update step may be performed. By detecting the battery in advance, the condition that the identification information is leaked due to the fact that the updating step is executed when the battery is not the standard battery can be avoided, and the safety of updating the identification information is improved.
Referring to fig. 4, a block diagram of a mobile terminal according to an embodiment of the present invention is shown, which may specifically include:
a detection module 401, configured to detect whether a battery of the mobile terminal is a standard battery;
an obtaining module 402, configured to obtain identifier information to be updated when the battery is a standard battery, where the identifier information to be updated is information obtained from a server in advance;
an updating module 403, configured to update the identification information corresponding to the battery according to the identification information to be updated.
Optionally, the update module 403 includes:
the obtaining submodule is used for obtaining a key to be updated;
the encryption submodule is used for encrypting the identification information to be updated according to the key to be updated to obtain encrypted identification information;
and the replacing submodule is used for replacing the identification information corresponding to the battery with the encrypted identification information.
Optionally, the detecting module 401 includes:
the acquisition submodule is used for acquiring initial identification information of the battery;
the matching submodule is used for matching the initial identification information with pre-stored target identification information;
the first confirming submodule is used for confirming that the battery is a standard battery when the initial identification information is successfully matched with the target identification information;
and the second confirmation submodule is used for confirming that the battery is not a standard battery when the initial identification information and the target identification information fail to be matched.
Optionally, the obtaining sub-module includes:
a first obtaining unit configured to obtain the encrypted identification information;
a second obtaining unit configured to obtain a target key, where the target key is used to decrypt the encrypted identification information;
and the decryption unit is used for decrypting the encrypted identification information according to the target key to obtain the initial identification information.
Optionally, the mobile terminal further includes:
and the reminding module is used for reminding a user that the battery is not the standard battery when the battery is not the standard battery.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 2 to fig. 3, and is not described herein again to avoid repetition.
In summary, the mobile terminal provided in the embodiment of the present invention obtains the identifier information to be updated by detecting whether the battery of the mobile terminal is a standard battery or not, and updates the identifier information corresponding to the battery according to the identifier information to be updated. By updating the identification information of the battery after the battery is confirmed to be the standard battery, the situation that the identification information of the battery is cracked due to the fact that the identification information of the battery is kept unchanged is avoided, the safety of the identification information of the battery is improved, and the safety of a user when the user uses the mobile terminal is improved.
Fig. 5 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to detect whether a battery of the mobile terminal is a standard battery;
a processor 510, configured to, when the battery is a standard battery, obtain identifier information to be updated, where the identifier information to be updated is information obtained from a server in advance;
and a processor 510, configured to update the identification information corresponding to the battery according to the identification information to be updated.
In summary, the mobile terminal provided in the embodiment of the present invention obtains the identifier information to be updated by detecting whether the battery of the mobile terminal is a standard battery or not, and updates the identifier information corresponding to the battery according to the identifier information to be updated. By updating the identification information of the battery after the battery is confirmed to be the standard battery, the situation that the identification information of the battery is cracked due to the fact that the identification information of the battery is kept unchanged is avoided, the safety of the identification information of the battery is improved, and the safety of a user when the user uses the mobile terminal is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the information updating method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned information updating method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An information updating method applied to a mobile terminal is characterized by comprising the following steps:
detecting whether a battery of the mobile terminal is a standard battery;
when the battery is a standard battery, acquiring identification information of the battery to be updated, wherein the identification information of the battery to be updated is information acquired from a server in advance;
storing identification information of a battery to be updated into a storage space of the battery, and updating the identification information corresponding to the battery according to the identification information of the battery to be updated;
the updating the identification information corresponding to the battery according to the identification information of the battery to be updated includes:
acquiring a key to be updated;
encrypting the identification information of the battery to be updated according to the key to be updated to obtain encrypted identification information;
and replacing the identification information corresponding to the battery with the encrypted identification information.
2. The method according to claim 1, wherein the detecting whether the battery of the mobile terminal is a standard battery comprises:
acquiring initial identification information of the battery;
matching the initial identification information with pre-stored target identification information;
when the initial identification information is successfully matched with the target identification information, the battery is determined to be a standard battery;
and when the initial identification information and the target identification information are matched unsuccessfully, confirming that the battery is not a standard battery.
3. The method of claim 2, wherein the obtaining initial identification information of the battery comprises:
acquiring encrypted identification information;
acquiring a target key, wherein the target key is used for decrypting the encrypted identification information;
and decrypting the encrypted identification information according to the target key to obtain the initial identification information.
4. The method of any of claims 1 to 3, further comprising:
when the battery is not a standard battery, prompting a user that the battery is not a standard battery.
5. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises a detection module, a detection module and a control module, wherein the detection module is used for detecting whether a battery of the mobile terminal is a standard battery;
the acquisition module is used for acquiring the identification information of the battery to be updated when the battery is a standard battery, wherein the identification information of the battery to be updated is information acquired from a server in advance;
the updating module is used for storing the identification information of the battery to be updated into a storage space of the battery and updating the identification information corresponding to the battery according to the identification information of the battery to be updated;
the update module includes:
the obtaining submodule is used for obtaining a key to be updated;
the encryption submodule is used for encrypting the identification information of the battery to be updated according to the key to be updated to obtain encrypted identification information;
and the replacing submodule is used for replacing the identification information corresponding to the battery with the encrypted identification information.
6. The mobile terminal of claim 5, wherein the detection module comprises:
the acquisition submodule is used for acquiring initial identification information of the battery;
the matching submodule is used for matching the initial identification information with pre-stored target identification information;
the first confirming submodule is used for confirming that the battery is a standard battery when the initial identification information is successfully matched with the target identification information;
and the second confirmation submodule is used for confirming that the battery is not a standard battery when the initial identification information and the target identification information are failed to be matched.
7. The mobile terminal of claim 6, wherein the obtaining sub-module comprises:
a first obtaining unit configured to obtain the encrypted identification information;
a second obtaining unit, configured to obtain a target key, where the target key is used to decrypt the encrypted identification information;
and the decryption unit is used for decrypting the encrypted identification information according to the target key to obtain the initial identification information.
8. The mobile terminal according to any of claims 5 to 7, wherein the mobile terminal further comprises:
and the reminding module is used for reminding a user that the battery is not the standard battery when the battery is not the standard battery.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the information updating method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the information updating method according to any one of claims 1 to 4.
CN201710971584.0A 2017-10-18 2017-10-18 Information updating method, mobile terminal and computer readable storage medium Active CN107835297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710971584.0A CN107835297B (en) 2017-10-18 2017-10-18 Information updating method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710971584.0A CN107835297B (en) 2017-10-18 2017-10-18 Information updating method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107835297A CN107835297A (en) 2018-03-23
CN107835297B true CN107835297B (en) 2021-05-07

Family

ID=61648379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710971584.0A Active CN107835297B (en) 2017-10-18 2017-10-18 Information updating method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107835297B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871626B (en) * 2019-02-26 2023-04-07 维沃移动通信有限公司 Battery performance information acquisition method and terminal equipment
CN110955165A (en) * 2019-11-27 2020-04-03 深圳拓邦股份有限公司 Control method of cleaning equipment and cleaning equipment
JPWO2021132694A1 (en) * 2019-12-27 2021-07-01

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569864A (en) * 2016-11-14 2017-04-19 湖南小步科技有限公司 Remote online updating method and system for battery management unit
CN107135222A (en) * 2017-05-05 2017-09-05 深圳市牛牛智能设备有限公司 For the communication equipment of self-service charging, server, self-service charging device and method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100420083C (en) * 2002-12-20 2008-09-17 北京六合万通微电子技术有限公司 Anti-fogery system of chargeable battery
JP2006101617A (en) * 2004-09-29 2006-04-13 Casio Hitachi Mobile Communications Co Ltd Electronic apparatus, battery discrimination method, and battery discrimination program
KR100903187B1 (en) * 2005-06-25 2009-06-17 주식회사 엘지화학 System For Identification Of Genuine Battery Product In Mobile Device
US8633801B2 (en) * 2008-04-09 2014-01-21 Panasonic Corporation Battery authentication system, electronic device, battery, and battery charger
CN101330686B (en) * 2008-06-27 2012-03-14 潘良春 Method and system for synthesis false-proof of mobile phone battery
CN101655814A (en) * 2008-08-18 2010-02-24 联想(北京)有限公司 Method for authenticating smart battery and terminal
CN101504715B (en) * 2009-03-04 2011-11-16 深圳市众合联科技有限公司 Product identity digital identification apparatus, inspection apparatus, product and anti-fake inspection method
CN105049634A (en) * 2015-08-19 2015-11-11 Tcl移动通信科技(宁波)有限公司 Battery mobile terminal based on NFC recognition and recognition method
CN105224057B (en) * 2015-08-25 2019-02-26 Tcl移动通信科技(宁波)有限公司 A kind of Dynamic Configuration and system of battery of mobile terminal ID

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569864A (en) * 2016-11-14 2017-04-19 湖南小步科技有限公司 Remote online updating method and system for battery management unit
CN107135222A (en) * 2017-05-05 2017-09-05 深圳市牛牛智能设备有限公司 For the communication equipment of self-service charging, server, self-service charging device and method

Also Published As

Publication number Publication date
CN107835297A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN107580147B (en) Management method of notification message and mobile terminal
CN108629171B (en) Unread message processing method and terminal
CN109600740B (en) File downloading method and device and computer readable storage medium
CN111130989B (en) Information display and sending method and electronic equipment
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
US10454905B2 (en) Method and apparatus for encrypting and decrypting picture, and device
CN107682359B (en) Application registration method and mobile terminal
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN109544172B (en) Display method and terminal equipment
CN107835297B (en) Information updating method, mobile terminal and computer readable storage medium
CN110990849A (en) Encryption and decryption method for private data and terminal
CN111597540B (en) Login method of application program, electronic device and readable storage medium
CN107948278B (en) Information transmission method, terminal equipment and system
CN108196781B (en) Interface display method and mobile terminal
CN108009031B (en) Application program control method and mobile terminal
CN108021379B (en) Application program upgrading method, mobile terminal and server
CN110784394A (en) Prompting method and electronic equipment
CN108196663B (en) Face recognition method and mobile terminal
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN111125680A (en) Permission setting method and terminal equipment
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN109753776B (en) Information processing method and device and mobile terminal
CN109446794B (en) Password input method and mobile terminal thereof
CN108848270B (en) Method for processing screen shot image and mobile terminal
CN109451143B (en) Call method and mobile terminal

Legal Events

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