CN106294025B - Method and device for downloading terminal software - Google Patents

Method and device for downloading terminal software Download PDF

Info

Publication number
CN106294025B
CN106294025B CN201610670541.4A CN201610670541A CN106294025B CN 106294025 B CN106294025 B CN 106294025B CN 201610670541 A CN201610670541 A CN 201610670541A CN 106294025 B CN106294025 B CN 106294025B
Authority
CN
China
Prior art keywords
terminal
software
partition
backup file
current software
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.)
Expired - Fee Related
Application number
CN201610670541.4A
Other languages
Chinese (zh)
Other versions
CN106294025A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610670541.4A priority Critical patent/CN106294025B/en
Publication of CN106294025A publication Critical patent/CN106294025A/en
Application granted granted Critical
Publication of CN106294025B publication Critical patent/CN106294025B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying

Abstract

The embodiment of the invention discloses a method and a device for downloading terminal software. The method comprises the following steps: when detecting that the terminal software downloading event is triggered, judging whether the current software of the terminal meets the set backup condition; if yes, generating a backup file of the current software, and determining the name of the backup file according to the identification information of the terminal; and when the software is downloaded to the terminal, the backup file is obtained according to the name of the backup file and is downloaded to the terminal. According to the technical scheme provided by the embodiment of the invention, before the software is downloaded to the terminal, the name of the backup file is determined according to the identification information capable of uniquely identifying the terminal, so that when the software is downloaded to the terminal, the backup file can be obtained according to the name of the backup file and downloaded to the terminal, thus the multi-port parallel backup and downloading can be realized, the existing downloading technology of the terminal software is optimized, and the downloading efficiency and accuracy of the terminal software are improved.

Description

Method and device for downloading terminal software
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for downloading terminal software.
Background
In the development and production process of a terminal, such as a mobile phone, software of the mobile phone needs to be downloaded into a memory of the mobile phone. The software of the mobile phone can be understood as a system file of the mobile phone, and the software generally comprises a partition table and a mirror image of each partition, wherein the partition table is a data structure containing information such as the size, the address and the like of a plurality of partitions. In the starting process of the mobile phone, the data of each partition is obtained according to the size and the data storage address of each partition in the partition table by reading the partition table.
However, in mobile phone development or production, a situation of changing the partition table is often encountered, for example, the change of the number of partitions or the change of the size of the partitions may cause the change of the partition table. The partition table is changed, and the data in the partition must be affected, so the data in the partition must be backed up when downloading software to the mobile phone. Generally, a terminal software downloading device on a mobile phone production line is provided with a plurality of ports, each port can be connected with a mobile phone, the terminal software downloading device can download software or backup data to a single mobile phone through one port every time, and the downloading efficiency of the single backup downloading is low; or the port number can be associated with the mobile phone to use a plurality of ports to download and backup data to a plurality of mobile phones at the same time, but when the port number is changed, the backup data backed up in the mobile phone can be in other mobile phones, so that the accuracy of acquiring the backup data is reduced.
Disclosure of Invention
The embodiment of the invention provides a method and a device for downloading terminal software, which aim to optimize the existing downloading technology of the terminal software and improve the downloading efficiency and accuracy of the terminal software.
In a first aspect, an embodiment of the present invention provides a method for downloading a terminal software, including:
when detecting that the terminal software downloading event is triggered, judging whether the current software of the terminal meets the set backup condition;
if yes, generating a backup file of the current software, and determining the name of the backup file according to the identification information of the terminal;
and when the software is downloaded to the terminal, the backup file is obtained according to the name of the backup file and is downloaded to the terminal.
In a second aspect, an embodiment of the present invention provides an apparatus for downloading terminal software, including:
the set backup condition judging module is used for judging whether the current software of the terminal meets the set backup condition or not when the fact that the terminal software downloading event is triggered is detected;
the backup file generation module is used for generating the backup file of the current software if the software meets the requirement and determining the name of the backup file according to the identification information of the terminal;
and the backup file downloading module is used for acquiring the backup file according to the name of the backup file and downloading the backup file to the terminal when downloading the software to the terminal.
The embodiment of the invention determines the name of the backup file according to the identification information which can uniquely identify the terminal before downloading the software to the terminal, so that the backup file can be obtained according to the name of the backup file and downloaded to the terminal when the software is downloaded to the terminal, thereby realizing multi-port parallel backup and downloading, optimizing the existing downloading technology of the terminal software and improving the downloading efficiency and accuracy of the terminal software.
Drawings
Fig. 1 is a flowchart of a method for downloading terminal software according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for downloading terminal software according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for downloading terminal software according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal software downloading apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal software downloading device according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in further detail below with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a method for downloading terminal software according to an embodiment of the present invention, where the method of this embodiment may be executed by a terminal software downloading device, which may be implemented by hardware and/or software, and the device may be disposed inside a terminal software downloading device as a part of the terminal software downloading device.
As shown in fig. 1, the method for downloading terminal software provided in this embodiment specifically includes the following steps:
step 101, when detecting that the terminal software downloading event is triggered, judging whether the current software of the terminal meets the set backup condition, if so, executing step 102, otherwise, executing step 104.
Illustratively, after the terminal is connected with the terminal software downloading device, the terminal software downloading device triggers a terminal software downloading event when receiving a software downloading request of the terminal, or the terminal software downloading device actively triggers the terminal software downloading event. The terminal software downloading device includes but is not limited to a desktop computer, a notebook computer, etc., and the terminal includes but is not limited to a mobile phone, a tablet computer, etc.
In this step, the software of the terminal may be downloaded for the first time or the nth time (N is greater than 1), which is not limited in this embodiment.
102, generating the backup file of the current software, and determining the name of the backup file according to the identification information of the terminal.
And if the current software of the terminal meets the backup condition, generating a backup file of the current software.
The identification information of the terminal is information capable of uniquely identifying the terminal.
The determining the name of the backup file according to the identification information of the terminal may specifically include: determining the name of the backup file according to the hardware identification information of the terminal and the name of the partition to be backed up, wherein the hardware identification information comprises a serial number of an Embedded memory (EMMC) and/or a serial number of a Central Processing Unit (CPU).
Illustratively, when the serial number of the embedded memory acquired to the terminal is 485dd30c and the name of the partition to be backed up is dynamic _ nvbk.bin, the name of the backup file can be determined to be 485dd30c _ dynamic _ nvbk.bin. Further, for the security of the terminal information, the terminal hardware information may not be directly displayed, but the name of the backup file may be further converted, for example, 485dd30c _ dynamic _ nvbk.bin may generate a unique backup file name 0ABD773064EAA17DC1383F345E78E9AD through a Message-Digest Algorithm (MD 5) Algorithm.
The backup file is matched with the current terminal only by determining the name of the backup file according to the identification information of the terminal, and the backup file is in one-to-one correspondence with the terminal, so that the backup file matched with the terminal can be found and downloaded to the terminal according to the name of the backup file when software is downloaded to the terminal subsequently, the problem that backup data backed up to a mobile phone can be backup files of other mobile phones when port numbers are changed when a plurality of ports are used for simultaneously downloading and backing up data to a plurality of mobile phones by associating the mobile phones through the port numbers in the prior art is solved, multi-port parallel backup and downloading of terminal software are truly realized, and the acquisition accuracy of terminal software backup data and the efficiency and accuracy of terminal software downloading are improved.
And 103, when downloading the software to the terminal, acquiring the backup file according to the name of the backup file and downloading the backup file to the terminal.
When the terminal software downloading equipment downloads the software to the terminal, the backup file of the terminal software is obtained from at least one terminal backup file backed up by the terminal software downloading equipment according to the name of the backup file, and the terminal software is downloaded to the terminal.
When downloading the software to the terminal, the obtained backup file may be downloaded to the terminal when downloading the part of the backup partition, or the backup file may be downloaded to the terminal first when downloading the software, or the backup file may be downloaded to the terminal when downloading the other part of the terminal software is completed.
And step 104, directly downloading the terminal software to the terminal.
If the current software of the terminal does not meet the set backup condition, the terminal software to be downloaded is directly downloaded to the terminal without backing up the partition table and the partition data in the current software.
In the method for downloading terminal software provided in this embodiment, before downloading software to a terminal, the name of a backup file is determined according to identification information capable of uniquely identifying the terminal, so that when downloading software to the terminal, the backup file can be obtained according to the name of the backup file and downloaded to the terminal, thereby enabling multi-port parallel backup and downloading to be achieved, optimizing the existing downloading technology of terminal software, and improving the downloading efficiency and accuracy of terminal software.
Example two
Fig. 2 is a flowchart of a method for downloading terminal software according to a second embodiment of the present invention. The present embodiment is optimized based on the first embodiment. In this embodiment, the step of determining whether the current software of the terminal satisfies the set backup condition when the terminal software download event is triggered is specifically optimized as follows: when the terminal software downloading event is triggered, judging whether the information of the set key partition in the set key partition table in the current software of the terminal is changed; if the software is changed, the current software is determined to meet the set backup condition.
Correspondingly, as shown in fig. 2, the method provided by the embodiment includes the following steps:
step 201, when detecting that the terminal software downloading event is triggered, judging whether the information of the set key partition in the set key partition table in the current software of the terminal is changed, if so, executing step 202, otherwise, executing step 204.
The set key partition table is a preset key partition table, and specifically may be a partition table containing information of the set key partition, the set key partition includes partitions for storing system calibration parameters, and the information of the set key partition includes information such as addresses and sizes of the set key partition. The system calibration parameters include some calibration parameters of hardware in the terminal, such as modem calibration parameters, bluetooth module calibration parameters, rotating camera calibration parameters, sensor calibration parameters, and the like.
Step 202, generating the backup file of the current software, and determining the name of the backup file according to the identification information of the terminal.
If the information of the set key partition in the set key partition table in the current software of the terminal changes, the current software meets the backup condition, and a backup file of the current software is generated.
The generating the backup file of the current software may specifically include: and generating a backup file by using the set key partition table of the current software and the data of the set key partition.
Because the set key partition is stored with system calibration parameters, the data are generated through production line calibration, if the set key partition information (including address and size) in the set key partition table is changed, there are two processing methods: one is that the new software with the changed information of the set key subarea is downloaded to the terminal according to the previous production mode and then is calibrated; and secondly, the data of the set key partition is backed up, and when the terminal software is downloaded, the backed-up data of the set key partition is burned to the changed address. This step is preferably the second treatment.
Step 203, when downloading software to the terminal, obtaining the backup file according to the name of the backup file and downloading the backup file to the terminal.
Step 204, directly downloading the terminal software to the terminal.
If the information of the set key partition in the set key partition table in the current software of the terminal is not changed, the terminal software to be downloaded is directly downloaded to the terminal without backing up the partition table and the partition data in the current software.
In the method provided by this embodiment, before downloading the software to the terminal, if it is detected that the information of the set key partition in the set key partition table in the current software of the terminal changes, the backup file of the current software is generated, and the name of the backup file is determined according to the identification information capable of uniquely identifying the terminal, so that when downloading the software to the terminal, the backup file can be obtained according to the name of the backup file and downloaded to the terminal, thereby implementing multi-port parallel backup and download, optimizing the existing download technology of the terminal software, and improving the download efficiency and accuracy of the terminal software.
EXAMPLE III
Fig. 3 is a flowchart of a method for downloading terminal software according to a third embodiment of the present invention. The present embodiment is optimized based on the first embodiment, and the detailed optimization is that "when detecting that the terminal software downloading event is triggered, determining whether the current software of the terminal meets the set backup condition" includes: when detecting that a terminal software downloading event is triggered, reading partition table information of the current software of the terminal; if the partition table of the current software is empty, determining that the current software does not meet the set backup condition; if the partition table of the current software is not empty and the number of the partition tables is less than a set value, determining that the current software does not meet the set backup condition; if the partition table of the current software is not empty and the number of the partition tables is greater than or equal to a set value, judging whether the information of the set key partition in the set key partition table in the current software of the terminal changes or not when the number of the partition tables in the current software is different from the number of the partition tables in the software to be downloaded to the terminal or the number of the partition tables in the current software is the same as the number of the partition tables in the software to be downloaded to the terminal but the contents of the partition tables are different, and if the information of the set key partition in the set key partition table in the current software of the terminal changes, determining that the current software meets the set backup condition.
Correspondingly, as shown in fig. 3, the method provided by the embodiment includes the following steps:
step 301, reading the partition table information of the current software of the terminal when detecting that the terminal software downloading event is triggered.
Step 302, determining whether the partition table of the current software is empty, if yes, executing step 303, otherwise, executing step 304.
If the partition table of the current software is empty, the terminal disk bearing the terminal software is considered to be in an initial state, and the software is not downloaded, the partition table in the current software does not need to be backed up, namely the current software does not meet the set backup condition.
Step 303, determining that the current software does not satisfy the set backup condition.
Step 304, determining whether the number of the partition tables is less than a set value, if so, executing step 303, otherwise, executing step 305.
The value range of the set value can be 5-10, if the number of the partition tables is less than the set value, it indicates that the current terminal may have downloaded software before, but the downloading is not complete, and the current terminal is still considered to be in the initial state, that is, the current software does not meet the set backup condition.
Step 305, when the number of the partition tables in the current software is different from the number of the partition tables in the software to be downloaded to the terminal, or the number of the partition tables in the current software is the same as the number of the partition tables in the software to be downloaded to the terminal but the contents of the partition tables are different, judging whether the information of the set key partitions in the set key partition table in the current software of the terminal is changed, if so, executing step 306, otherwise, executing step 303.
Step 306, determining that the current software satisfies the set backup condition.
307, generating a backup file of the current software, and determining the name of the backup file according to the identification information of the terminal.
And 308, when downloading the software to the terminal, acquiring the backup file according to the name of the backup file and downloading the backup file to the terminal.
Example four
Fig. 4 is a block diagram of a terminal software downloading apparatus according to a fourth embodiment of the present invention, which can be implemented by software and/or hardware, and is generally integrated in a terminal software downloading device, and can download and backup terminal software by executing a terminal software downloading method. As shown in fig. 4, the apparatus includes a set backup condition judgment module 41, a backup file generation module 42, and a backup file download module 43.
The set backup condition determining module 41 is configured to determine whether the current software of the terminal meets the set backup condition when detecting that the terminal software downloading event is triggered;
a backup file generating module 42, configured to generate a backup file of the current software if the request is met, and determine a name of the backup file according to the identifier information of the terminal;
and a backup file downloading module 43, configured to, when downloading software to the terminal, obtain the backup file according to the name of the backup file and download the backup file to the terminal.
According to the technical scheme provided by the embodiment, before the software is downloaded to the terminal, the name of the backup file is determined according to the identification information capable of uniquely identifying the terminal, so that when the software is downloaded to the terminal, the backup file can be obtained according to the name of the backup file and downloaded to the terminal, multi-port parallel backup and downloading can be realized, the existing downloading technology of the terminal software is optimized, and the downloading efficiency and accuracy of the terminal software are improved.
On the basis of the foregoing embodiments, the set backup condition determining module is specifically configured to:
when the terminal software downloading event is triggered, judging whether the information of the set key partition in the set key partition table in the current software of the terminal is changed;
if the software is changed, the current software is determined to meet the set backup condition.
On the basis of the foregoing embodiments, the generating of the backup file of the current software by the backup file generating module specifically includes:
and generating a backup file by using the set key partition table of the current software and the data of the set key partition.
On the basis of the foregoing embodiments, the backup file generating module determines, according to the identification information of the terminal, that the name of the backup file is specifically:
and determining the name of the backup file according to the hardware identification information of the terminal and the name of the partition to be backed up, wherein the hardware identification information comprises the serial number of the embedded memory and/or the serial number of the central processing unit.
On the basis of the above embodiments, the setting of the critical partition includes a partition for storing a system calibration parameter.
On the basis of the foregoing embodiments, the set backup condition determining module is specifically configured to:
when detecting that a terminal software downloading event is triggered, reading partition table information of the current software of the terminal;
if the partition table of the current software is empty, determining that the current software does not meet the set backup condition;
if the partition table of the current software is not empty and the number of the partition tables is less than a set value, determining that the current software does not meet the set backup condition;
if the partition table of the current software is not empty and the number of the partition tables is greater than or equal to a set value, judging whether the information of the set key partition in the set key partition table in the current software of the terminal changes or not when the number of the partition tables in the current software is different from the number of the partition tables in the software to be downloaded to the terminal or the number of the partition tables in the current software is the same as the number of the partition tables in the software to be downloaded to the terminal but the contents of the partition tables are different, and if the information of the set key partition in the set key partition table in the current software of the terminal changes, determining that the current software meets the set backup condition.
The terminal software downloading device provided by the embodiment of the invention can execute the terminal software downloading method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a terminal software downloading device according to a fifth embodiment of the present invention, where the terminal software downloading device includes a downloading apparatus of a terminal software according to a fourth embodiment. In one implementation, the terminal software downloading device may be a desktop computer, a notebook computer, or the like. The terminal software downloading device 5 may include components such as a communication unit 51, a memory 52 including at least one computer-readable storage medium, an input unit 53, a display unit 54, a sensor 55, an audio circuit 56, a WIFI (Wireless Fidelity) module 57, a processor 58 including at least one processing core, and a power supply 59. It will be understood by those skilled in the art that the terminal software download device architecture shown in the figures does not constitute a limitation of the terminal software download device and may include more or fewer components than shown, or some components in combination, or a different arrangement of components. Specifically, the method comprises the following steps:
the communication unit 51 may be used for receiving and transmitting signals during information transmission and reception or during a call, and the communication unit 51 may be an RF (Radio Frequency) circuit, a router, a modem, or other network communication devices. In particular, when the communication unit 51 is an RF circuit, the downlink information of the base station is received and then processed by one or more processors 58; in addition, data relating to uplink is transmitted to the base station. Generally, the RF circuit as a communication unit includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. Further, the communication unit 51 can also communicate with a network and other devices by wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General packet radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long term evolution), e-mail, SMS (Short Messaging Service), etc. The memory 52 may be used to store software programs and modules, and the processor 58 executes various functional applications and data processing by executing the software programs and modules stored in the memory 52. The memory 52 may mainly include a program storage area and a data storage area, wherein the program storage 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) created according to the use of the terminal software download device, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 52 may also include a memory controller to provide the processor 58 and the input unit 53 with access to the memory 52.
The input unit 53 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Preferably, the input unit 53 may include a touch-sensitive surface 531 and other input devices 532. The touch sensitive surface 531, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch sensitive surface 531 (e.g. operations by a user on or near the touch sensitive surface 531 using a finger, a stylus, or any other suitable object or attachment) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 531 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, sends it to the processor 58, and can receive and execute commands from the processor 58. In addition, the touch sensitive surface 531 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 53 may comprise other input devices 532 in addition to the touch sensitive surface 531. Preferably, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 54 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the terminal software download device, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 54 may include a display panel 541, and optionally, the display panel 541 may be configured in the form of an LCD (Liquid crystal display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 531 may overlay the display panel 541, and when a touch operation is detected on or near the touch-sensitive surface 531, the touch operation is transmitted to the processor 58 to determine the type of touch event, and the processor 58 then provides a corresponding visual output on the display panel 541 in accordance with the type of touch event. Although in FIG. 5 the touch sensitive surface 531 and the display panel 541 are shown as two separate components to implement input and output functions, in some embodiments the touch sensitive surface 531 and the display panel 541 may be integrated to implement input and output functions.
The terminal software download device may also include at least one sensor 55, such as a light sensor, motion sensor, and other sensors. The light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of ambient light; the terminal software downloading device can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like, which are not described in detail herein.
The audio circuit 56, speaker 561, microphone 562 may provide an audio interface between the user and the terminal software download device. The audio circuit 56 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 56 and converted into audio data, which is then processed by the audio data output processor 58 and sent to, for example, another terminal software download device via the RF circuit 51, or the audio data is output to the memory 52 for further processing. The audio circuit 56 may also include an ear-bud jack to provide communication of a peripheral headset with the terminal software download device.
In order to realize wireless communication, a wireless communication unit 57 may be configured on the first terminal software downloading device, and the wireless communication unit 57 may be a WIFI module. WIFI belongs to short-distance wireless transmission technology, and the terminal software downloading equipment can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the wireless communication unit 57, and provides wireless broadband internet access for the user.
The processor 58 may interface with various portions of the overall handset using various interfaces and lines to perform various functions of the terminal software download device and process data by running or executing software programs and/or modules stored in the memory 52 and invoking data stored in the memory 52 to thereby provide overall monitoring of the terminal software download device. Alternatively, processor 58 may include one or more processing cores; preferably, the processor 58 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 58.
The terminal software download device also includes a power supply 59 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 58 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 59 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
It should be noted that the terminal software downloading device may further include a camera, a bluetooth module, and the like, which is not described herein again.
In the present embodiment, the processor 58 has the following functions:
when detecting that the terminal software downloading event is triggered, judging whether the current software of the terminal meets the set backup condition;
if yes, generating a backup file of the current software, and determining the name of the backup file according to the identification information of the terminal;
and when the software is downloaded to the terminal, the backup file is obtained according to the name of the backup file and is downloaded to the terminal.
The terminal software downloading equipment can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For details of the terminal software, reference may be made to the method for downloading the terminal software according to any embodiment of the present invention.
The foregoing is considered as illustrative of the preferred embodiments of the invention and technical principles employed. The present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in more detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the claims.

Claims (8)

1. A method for downloading terminal software, comprising:
when detecting that the terminal software downloading event is triggered, judging whether the current software of the terminal meets the set backup condition;
if yes, generating the backup file of the current software, determining the name of the backup file according to the identification information of the terminal, and further converting the name of the backup file through a message digest algorithm to generate a unique name of the backup file;
when downloading software to a terminal, acquiring the backup file according to the name of the backup file and downloading the backup file to the terminal;
when detecting that the terminal software downloading event is triggered, judging whether the current software of the terminal meets the set backup condition comprises the following steps:
when a terminal software downloading event is triggered, judging whether information of a set key partition in a set key partition table in current software of a terminal is changed or not, wherein the information of the set key partition comprises an address and a size, and the set key partition comprises a partition for storing system calibration parameters, wherein the system calibration parameters are generated through production line calibration and comprise calibration parameters of hardware in the terminal;
if the software is changed, determining that the current software meets the set backup condition;
the method further comprises the following steps:
and burning the backup file of the set key partition of the calibration parameter of the storage system to the changed address.
2. The method of claim 1, wherein generating the backup file of the current software comprises:
and generating a backup file by using the set key partition table of the current software and the data of the set key partition.
3. The method of claim 1, wherein the determining the name of the backup file according to the identification information of the terminal comprises:
and determining the name of the backup file according to the hardware identification information of the terminal and the name of the partition to be backed up, wherein the hardware identification information comprises the serial number of the embedded memory and/or the serial number of the central processing unit.
4. The method of claim 1, wherein determining whether the current software of the terminal satisfies the set backup condition when detecting that the terminal software download event is triggered comprises:
when detecting that a terminal software downloading event is triggered, reading partition table information of the current software of the terminal;
if the partition table of the current software is empty, determining that the current software does not meet the set backup condition;
if the partition table of the current software is not empty and the number of the partition tables is less than a set value, determining that the current software does not meet the set backup condition;
if the partition table of the current software is not empty and the number of the partition tables is greater than or equal to a set value, judging whether the information of the set key partition in the set key partition table in the current software of the terminal changes or not when the number of the partition tables in the current software is different from the number of the partition tables in the software to be downloaded to the terminal or the number of the partition tables in the current software is the same as the number of the partition tables in the software to be downloaded to the terminal but the contents of the partition tables are different, and if the information of the set key partition in the set key partition table in the current software of the terminal changes, determining that the current software meets the set backup condition.
5. An apparatus for downloading terminal software, comprising:
the set backup condition judging module is used for judging whether the current software of the terminal meets the set backup condition or not when the fact that the terminal software downloading event is triggered is detected;
the backup file generation module is used for generating the backup file of the current software if the software meets the requirement, determining the name of the backup file according to the identification information of the terminal, and further converting the name of the backup file through a message digest algorithm to generate the only name of the backup file;
the backup file downloading module is used for acquiring the backup file according to the name of the backup file and downloading the backup file to the terminal when software is downloaded to the terminal;
the set backup condition judgment module is specifically configured to:
when a terminal software downloading event is triggered, judging whether information of a set key partition in a set key partition table in current software of a terminal is changed or not, wherein the information of the set key partition comprises an address and a size, and the set key partition comprises a partition for storing system calibration parameters, wherein the system calibration parameters are generated through production line calibration and comprise calibration parameters of hardware in the terminal;
if the software is changed, determining that the current software meets the set backup condition;
the device is also used for burning the backup file of the set key partition of the calibration parameter of the storage system to the changed address.
6. The apparatus of claim 5, wherein the backup file generation module generates the backup file of the current software by:
and generating a backup file by using the set key partition table of the current software and the data of the set key partition.
7. The apparatus according to claim 5, wherein the backup file generating module determines, according to the identification information of the terminal, that the name of the backup file is specifically:
and determining the name of the backup file according to the hardware identification information of the terminal and the name of the partition to be backed up, wherein the hardware identification information comprises the serial number of the embedded memory and/or the serial number of the central processing unit.
8. The apparatus of claim 5, wherein the set backup condition determining module is specifically configured to:
when detecting that a terminal software downloading event is triggered, reading partition table information of the current software of the terminal;
if the partition table of the current software is empty, determining that the current software does not meet the set backup condition;
if the partition table of the current software is not empty and the number of the partition tables is less than a set value, determining that the current software does not meet the set backup condition;
if the partition table of the current software is not empty and the number of the partition tables is greater than or equal to a set value, judging whether the information of the set key partition in the set key partition table in the current software of the terminal changes or not when the number of the partition tables in the current software is different from the number of the partition tables in the software to be downloaded to the terminal or the number of the partition tables in the current software is the same as the number of the partition tables in the software to be downloaded to the terminal but the contents of the partition tables are different, and if the information of the set key partition in the set key partition table in the current software of the terminal changes, determining that the current software meets the set backup condition.
CN201610670541.4A 2016-08-15 2016-08-15 Method and device for downloading terminal software Expired - Fee Related CN106294025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610670541.4A CN106294025B (en) 2016-08-15 2016-08-15 Method and device for downloading terminal software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610670541.4A CN106294025B (en) 2016-08-15 2016-08-15 Method and device for downloading terminal software

Publications (2)

Publication Number Publication Date
CN106294025A CN106294025A (en) 2017-01-04
CN106294025B true CN106294025B (en) 2020-01-14

Family

ID=57671346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610670541.4A Expired - Fee Related CN106294025B (en) 2016-08-15 2016-08-15 Method and device for downloading terminal software

Country Status (1)

Country Link
CN (1) CN106294025B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737718A (en) * 2018-07-18 2020-01-31 杭州海康威视***技术有限公司 Data backup method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176824A (en) * 2013-03-15 2013-06-26 青岛海信移动通信技术股份有限公司 System upgrade method and system upgrade device
CN104714811A (en) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 Method and device for manufacturing difference upgrade package and system difference upgrade method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7594219B2 (en) * 2003-07-24 2009-09-22 International Business Machines Corporation Method and apparatus for monitoring compatibility of software combinations
CN1315048C (en) * 2004-07-06 2007-05-09 天津百维软件科技有限公司 A memory-space saving multi-computer system sharing backup method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176824A (en) * 2013-03-15 2013-06-26 青岛海信移动通信技术股份有限公司 System upgrade method and system upgrade device
CN104714811A (en) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 Method and device for manufacturing difference upgrade package and system difference upgrade method and device

Also Published As

Publication number Publication date
CN106294025A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN104518953B (en) Method for deleting message, instant communication terminal and system
CN109101318B (en) Virtual machine migration control method and device
WO2015090248A1 (en) Server overload protection method and device
CN106502703B (en) Function calling method and device
CN106775833B (en) Device driver loading method, terminal and system
CN105278937A (en) Method and device for displaying pop-up box messages
CN104142868A (en) Connection establishment method and device
CN103473092A (en) Method and device for processing downloaded applications and terminal equipment
CN106953898B (en) Method and device for acquiring software package
CN110830127B (en) Radio frequency parameter processing method and device, mobile terminal and storage medium
CN106470234B (en) Equipment discovery method and device
US20160314036A1 (en) Method and Apparatus for Repairing Dynamic Link Library File
CN106294025B (en) Method and device for downloading terminal software
WO2020010995A1 (en) Icon arrangement method and apparatus, and readable storage medium and mobile terminal
CN104954231B (en) Method and device for sending and displaying recommendation information
CN105528220B (en) Method and device for loading dynamic shared object
CN106933626B (en) Application association method and device
CN106775745B (en) Method and device for merging program codes
CN108234275B (en) Method and device for releasing communication information
CN106155733B (en) Method and device for running application program
CN111308303B (en) Method and device for detecting radio frequency power amplifier of mobile terminal
WO2023123614A1 (en) Data processing method and apparatus, terminal, and storage medium
CN112732548B (en) Interface testing method and device
CN106681845B (en) Method and device for managing communication messages
CN108280798B (en) Method and device for rendering and displaying browser kernel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200114