CN105446769A - Mirror image file update processing method and apparatus and terminal device - Google Patents

Mirror image file update processing method and apparatus and terminal device Download PDF

Info

Publication number
CN105446769A
CN105446769A CN201510747070.8A CN201510747070A CN105446769A CN 105446769 A CN105446769 A CN 105446769A CN 201510747070 A CN201510747070 A CN 201510747070A CN 105446769 A CN105446769 A CN 105446769A
Authority
CN
China
Prior art keywords
image file
function
terminal
attribute information
subregion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510747070.8A
Other languages
Chinese (zh)
Other versions
CN105446769B (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 CN201510747070.8A priority Critical patent/CN105446769B/en
Publication of CN105446769A publication Critical patent/CN105446769A/en
Application granted granted Critical
Publication of CN105446769B publication Critical patent/CN105446769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The present application proposes a mirror image file update processing method and apparatus and a terminal device. The method comprises: acquiring a partition mirror image file upgrade package of the terminal device; in a process of parsing the mirror image file upgrade package, calling a first preset interface function to acquire attribute information of the terminal device; and calling a second preset interface function to carry out matching of a branch function corresponding to the attribute information, wherein the branch function comprises a partition position and a patch path. According to the mirror image file update processing method and apparatus and the terminal device, which are provided by the present application, adaptive update processing of the terminal device on mirror image files in the different partitions according to application requirements is achieved so as to improve processing efficiency and accuracy and saving development cost.

Description

Image file upgrade processing method, device and terminal device
Technical field
The application relates to communication technical field, particularly relates to a kind of image file upgrade processing method, device and terminal device.
Background technology
The image file of the function division in terminal device is upgraded, terminal function can be improved and repair leak.There is in terminal device different function divisions, to deposit the modem subregion of communication protocol stack associated documents, explain the upgrade method illustrated to subregion image file in prior art, specific as follows:
Because same terminal device may relate to different application regions, or different operators, different operators or region can adopt different radio frequency bands, developer is by according to different application demands, it generates and compiles the modem subregion image file of multiple version, and leave in different partition tables respectively, terminal device obtains the image file corresponding with self application scenarios from corresponding partition table, to carry out upgrading according to this image file.
As can be seen here, current image file upgrading needs a large amount of exploitation repeated to adapt to the image file of different application scene in early stage, and due to version numerous, easily obscure in the process downloading coupling, cause and upgrade unsuccessfully, thus reduce treatment effeciency.
Summary of the invention
The application is intended to solve one of technical matters in correlation technique at least to a certain extent.
For this reason, first object of the application is to propose a kind of image file upgrade processing method, the method achieve terminal device to need to carry out self-adaptation upgrading processing to the image file of different subregion according to application, improve treatment effeciency and accuracy, saved cost of development.
Second object of the application is to propose a kind of image file upgrading processing device.
3rd object of the application is to propose a kind of terminal device.
For reaching above-mentioned purpose, the application's first aspect embodiment proposes a kind of image file upgrade processing method, comprising: the subregion image file AKU obtaining terminal device; In the process of resolving described image file AKU, call the attribute information that default first interface function obtains terminal device; Call the branch function that the second default interface function coupling is corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.
The image file upgrade processing method of the embodiment of the present application, first obtains the subregion image file AKU of terminal device; In the process of resolving described image file AKU, call the attribute information that default first interface function obtains terminal device; Call the branch function that the second default interface function coupling is corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.Thus, achieving terminal device needs to carry out self-adaptation upgrading processing to the image file of different subregion according to application, improves treatment effeciency and accuracy, has saved cost of development.
For reaching above-mentioned purpose, the application's second aspect embodiment proposes a kind of image file upgrading processing device, comprising: acquisition module, for obtaining the subregion image file AKU of terminal device; First calling module, in the process of resolving described image file AKU, calls the attribute information that default first interface function obtains terminal device; Second calling module, for calling the second default interface function coupling branch function corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.
The image file upgrading processing device of the embodiment of the present application, obtains the subregion image file AKU of terminal device by acquisition module; In the process of resolving described image file AKU, call by the first calling module the attribute information that default first interface function obtains terminal device; Call the second default interface function coupling branch function corresponding with described attribute information by the second calling module, wherein, described branch function comprises: district location and patch path.Thus, achieving terminal device needs to carry out self-adaptation upgrading processing to the image file of different subregion according to application, improves treatment effeciency and accuracy, has saved cost of development.
For reaching above-mentioned purpose, the application's third aspect embodiment proposes a kind of terminal device, comprising: function division and image file upgrading processing device as above.
The terminal device of the embodiment of the present application, first obtains the subregion image file AKU of terminal device by image file upgrading processing device; In the process of resolving described image file AKU, call the attribute information that default first interface function obtains terminal device; Call the branch function that the second default interface function coupling is corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.Thus, achieving terminal device needs to carry out self-adaptation upgrading processing to the image file of different subregion according to application, improves treatment effeciency and accuracy, has saved cost of development.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein:
Fig. 1 is the process flow diagram of the image file upgrade processing method of the application's embodiment;
Fig. 2 is the process flow diagram of the image file upgrade processing method of another embodiment of the application;
Fig. 3 is the structural representation of the image file upgrading processing device of the application's embodiment;
Fig. 4 is the structural representation of the image file upgrading processing device of another embodiment of the application;
Fig. 5 is the structural representation of the terminal device of the application's embodiment.
Embodiment
Be described below in detail the embodiment of the application, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the application, and the restriction to the application can not be interpreted as.
Below with reference to the accompanying drawings the image file upgrade processing method of the embodiment of the present application, device and terminal device are described.
Fig. 1 is the process flow diagram of the image file upgrade processing method of the application's embodiment.
As shown in Figure 1, this image file upgrade processing method comprises:
Step 101, obtains the subregion image file AKU of terminal device.
Specifically, the image file upgrade processing method that the present embodiment provides is configured in terminal device, for carrying out image file upgrading processing to function divisions different in terminal device.Wherein, terminal function subregion comprises a lot, such as: store the logo subregion of start up graphic, the modem subregion of storing communication protocol stack or, the boot subregion of storing driver file, system subregion of storage system file etc., can according to application need in image file AKU, develop subregion image file.
In prior art, when developing the image file being used for subregion upgrading, for different operators, different regions or different versions, all need the image file that stand-alone development is corresponding, for the logo subregion of mobile phone, height for mobile phone type configures, and motion picture resolution is different, and the logo.bin image file therefore developed is also just different.
In order to promote development efficiency, the subregion image file AKU of each subregion image file upgrade application scene that exploitation is in advance compatible, the terminal device of all pending subregion image file upgradings all obtains this image file AKU.Compared with prior art, each terminal device no longer obtains different image files according to application scenarios, such as: when upgrading to logo subregion, the mobile phone of highest version obtains image file from logo1 subregion, the mobile phone of lowest version obtains image file from logo2 subregion, or, when carrying out image file upgrading to modem subregion, the mobile phone of operator of UNICOM obtains image file from modem1 subregion, and the mobile phone of mobile operator obtains image file from modem2 subregion.
Step 102, in the process of resolving described image file AKU, calls the attribute information that default first interface function obtains terminal device.
Particularly, in image file AKU, exploitation has analysis program and upgrade script in advance, and terminal device enters reforestation practices and resolves upgrade script by analysis program after obtaining this image file AKU.First interface function is pre-set in image file AKU, be used to indicate the property parameters type that terminal device needs to obtain, thus terminal device is in the process of resolving this image file AKU, calls default first interface function and obtain corresponding terminal device attribute information.Because the property parameters type of different zoning requirements is different, therefore, the terminal device attribute information obtained is also different, illustrates as follows:
First interface function for logo subregion needs the property parameters type obtained to be version information, therefore, in the process calling first interface function, obtains the version information of terminal device from the attribute information of operating system; Or, need the property parameters type obtained to be area information for the first interface function of system subregion, therefore, in the process calling first interface function, from operating system, obtain the area information of terminal device; Or, need the property parameters type obtained to be operator's informaiton for the first interface function of modem subregion, therefore, in the process calling first interface function, from client identification module, obtain the operator's informaiton of terminal device.
Step 103, call the branch function that the second default interface function coupling is corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.
Pre-set the second interface function in image file AKU, for the branch function that the terminal device attribute information mated with obtain is corresponding, the matching process that the second different interface functions is corresponding different, illustrate as follows:
If the quantity of the branch function preset is two A and B, then the second interface function is arbitration functions interface function, thus whether mated with A by the arbitration functions interface function coupling branch function corresponding with described attribute information, if mated with A, then determine that branch function is A, if do not mated with A, then determine that branch function is B.
If the quantity of described branch function is greater than two, then the second interface function is query function interface function, is mated one by one by query function interface function, thus determines the branch function corresponding with described attribute information.
Wherein, described branch function comprises: district location and patch path, district location is used to indicate and which subregion carries out image file updating operation to, patch path is used to indicate the patch file how obtaining and carry out image file upgrading, thus carries out image file upgrading processing according to district location and patch path to the subregion of terminal device.
In another embodiment, in order to improve process reliability further, described branch function also comprises: the amount of capacity corresponding with former image file and MD5 code and corresponding amount of capacity and MD5 code with target image file, wherein, MD5 code is the exclusive identification code for verification file integrality, by carrying out hash algorithm generation to file content, when file content changes, corresponding MD5 code also changes.By the amount of capacity corresponding with former image file and MD5 code and with target image file, corresponding amount of capacity and MD5 code can verify upgrading and whether occur mistake, improve the reliability of process.
The image file upgrade processing method of the embodiment of the present application, first obtains the subregion image file AKU of terminal device; In the process of resolving described image file AKU, call the attribute information that default first interface function obtains terminal device; Call the branch function that the second default interface function coupling is corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.Thus, achieving terminal device needs to carry out self-adaptation upgrading processing to the image file of different subregion according to application, improves treatment effeciency and accuracy, has saved cost of development.
Fig. 2 is the process flow diagram of the image file upgrade processing method of another embodiment of the application.
As shown in Figure 2, this image file upgrade processing method specifically comprises the following steps:
Step 201, is connected by the air interface of mobile radio communication and upgrade service equipment, and application over the air obtains described subregion image file AKU from described upgrade service equipment.
Particularly, connected by the air interface of mobile radio communication and upgrade service equipment, wherein, mobile radio communication can comprise GSM or CDMA, and air interface can adopt WAP, GPRS, CDMA1X and short message service technology.
After connecting with upgrade service equipment, application over the air obtains subregion image file AKU from upgrade service equipment.The subregion image file AKU of subregion image file AKU each subregion image file upgrade application scene that has been the compatibility developed in advance, the terminal device of all pending subregion image file upgradings all obtains this image file AKU.
Step 202, in the process of resolving described image file AKU, calls the attribute information that default first interface function obtains terminal device.
Step 203, call the branch function that the second default interface function coupling is corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.
Step 102 in the specific implementation process embodiment shown in Figure 1 of the step 202 in the present embodiment and step 203 and step 103, repeat no more herein.
Step 204, obtains the patch file corresponding with described attribute information according to described patch path, described patch file is write described district location and carries out updating operation.
Particularly, obtain the patch file corresponding with described attribute information according to the patch path in the branch function of coupling, and according to district location by subregion corresponding for the write of this patch file, thus updating operation is carried out to the image file of this subregion.
In order to description image file AKU generative process clearly, illustrate: when making AKU upgrade script, increase command statement, if only have the situation of 2 kinds of branch functions, increase the functional interface IfElseFn of ifelse; Ifelse will be ordered to associate with functional interface IfElseFn, functional interface can be compiled into an analysis program (update-binary), when analysis program runs into order ifelse when resolving upgrade script and upgrading, it is performing is functional interface IfElseFn.Manufacturing system AKU (OTA), comprises upgrade script, analysis program, patch file etc., and its structure is shown in that upgrade script update-script format sample is as follows:
Wherein, commonly used command respective operations example comprises: carry subregion mount, format subregion format, progress bar number percent show_progress is set, decompress files clips to assigned catalogue package_extract_dir, decompress files is to specified path package_extract_file, authority (the being similar to chmod) set_perm arranging file, acquisition system property getprop, patch installing apply_patch.
System upgrade bag is copied into mobile phone, runs installation order, reforestation practices can be entered and resolve upgrade script by analysis program and can complete zones of different and to upgrade the object of different mirror image.In order to illustrate that terminal device is to AKU resolving, illustrates as follows with modem subregion:
ifelse(getprop("persist.sys.oppo.region")=="MX",
(apply_patch("EMMC:/dev/block/platform/msm_sdcc.1/by-name/modem:58459648:b81e2f93c04848550213f92161fbcdabe7490ff0:58492416:6f501494ab87aaf16d3549c2f06a00e92297448e",
"-",6f501494ab87aaf16d3549c2f06a00e92297448e,58492416,
b81e2f93c04848550213f92161fbcdabe7490ff0,
package_extract_file("patch/NON-HLOS_MX.bin.p"));),
If be judged as MX region, perform apply_patch branch function and complete modem image upgrade, branch function comprises: district location, former mirror image size, former mirror image MD5 code, target mirror is as size, and target mirror as MD5 code, and is the patch path of extracting modem patch file from patch file AKU.Obtain the patch file corresponding with described MX region according to described patch path, described patch file write modem district location is carried out updating operation.
The image file upgrade processing method of the embodiment of the present application, connected by the air interface of mobile radio communication and upgrade service equipment, application over the air obtains described subregion image file AKU from described upgrade service equipment, in the process of resolving described image file AKU, call the attribute information that default first interface function obtains terminal device, and call the second default interface function coupling branch function corresponding with described attribute information, wherein, described branch function comprises: district location and patch path, and then obtain the patch file corresponding with described attribute information according to described patch path, described patch file is write described district location and carries out updating operation.Thus, achieving terminal device needs to carry out self-adaptation upgrading processing to the image file of different subregion according to application, improves treatment effeciency and accuracy, has saved cost of development.
In order to realize above-described embodiment, the application also proposes a kind of image file upgrading processing device.
Fig. 3 is the structural representation of the image file upgrading processing device of the application's embodiment.
As shown in Figure 3, this image file upgrading processing device comprises:
Acquisition module 11, for obtaining the subregion image file AKU of terminal device;
First calling module 12, in the process of resolving described image file AKU, calls the attribute information that default first interface function obtains terminal device;
Second calling module 13, for calling the second default interface function coupling branch function corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.
Described first calling module 12, specifically for:
The operator's informaiton of terminal device is obtained from client identification module; Or,
The area information of terminal device is obtained from operating system application; Or,
The version information of terminal device is obtained from the attribute information of operating system.
Described second calling module 13, specifically for:
If the quantity of described branch function is two, then mate the branch function corresponding with described attribute information by arbitration functions interface function; Or,
If the quantity of described branch function is greater than two, then mate the branch function corresponding with described attribute information by query function interface function.
It should be noted that, the aforementioned explanation to image file upgrade processing method embodiment illustrates the image file upgrading processing device being also applicable to this embodiment, repeats no more herein.
The image file upgrading processing device of the embodiment of the present application, first obtains the subregion image file AKU of terminal device; In the process of resolving described image file AKU, call the attribute information that default first interface function obtains terminal device; Call the branch function that the second default interface function coupling is corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.Thus, achieving terminal device needs to carry out self-adaptation upgrading processing to the image file of different subregion according to application, improves treatment effeciency and accuracy, has saved cost of development.
Fig. 4 is the structural representation of the image file upgrading processing device of another embodiment of the application, and as shown in Figure 4, based on embodiment illustrated in fig. 3, described acquisition module 11, comprising:
Set up unit 111, for being connected by the air interface of mobile radio communication and upgrade service equipment;
Download unit 112, obtains described subregion image file AKU for applying over the air from described upgrade service equipment.
Described device also comprises: processing module 14, for obtaining the patch file corresponding with described attribute information according to described patch path, described patch file being write described district location and carries out updating operation.
It should be noted that, the aforementioned explanation to image file upgrade processing method embodiment illustrates the image file upgrading processing device being also applicable to this embodiment, repeats no more herein.
The image file upgrading processing device of the embodiment of the present application, connected by the air interface of mobile radio communication and upgrade service equipment, application over the air obtains described subregion image file AKU from described upgrade service equipment, in the process of resolving described image file AKU, call the attribute information that default first interface function obtains terminal device, and call the second default interface function coupling branch function corresponding with described attribute information, wherein, described branch function comprises: district location and patch path, and then obtain the patch file corresponding with described attribute information according to described patch path, described patch file is write described district location and carries out updating operation.Thus, achieving terminal device needs to carry out self-adaptation upgrading processing to the image file of different subregion according to application, improves treatment effeciency and accuracy, has saved cost of development.
In order to realize above-described embodiment, the application also proposes a kind of terminal device.
Fig. 5 is the structural representation of the terminal device of the application's embodiment.
As shown in Figure 5, this terminal device comprises: function division 1 and image file upgrading processing device 2.Wherein, function division 1 can for the function division related in the various embodiments described above, and image file upgrading processing device 2 can for the image file upgrading processing device provided in the various embodiments described above.
The terminal device of the embodiment of the present application, first obtains the subregion image file AKU of terminal device by image file upgrading processing device; In the process of resolving described image file AKU, call the attribute information that default first interface function obtains terminal device; Call the branch function that the second default interface function coupling is corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.Thus, achieving terminal device needs to carry out self-adaptation upgrading processing to the image file of different subregion according to application, improves treatment effeciency and accuracy, has saved cost of development.
In the description of this instructions, at least one embodiment that specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained in the application or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In the description of the application, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred implementation of the application comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by the embodiment person of ordinary skill in the field of the application.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the application can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the application can be integrated in first processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and described the embodiment of the application above, be understandable that, above-described embodiment is exemplary, can not be interpreted as the restriction to the application, and those of ordinary skill in the art can change above-described embodiment, revises, replace and modification in the scope of the application.

Claims (14)

1. an image file upgrade processing method, is characterized in that, comprises the following steps:
Obtain the subregion image file AKU of terminal device;
In the process of resolving described image file AKU, call the attribute information that default first interface function obtains terminal device;
Call the branch function that the second default interface function coupling is corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.
2. image file upgrade processing method as claimed in claim 1, it is characterized in that, the subregion image file AKU of described acquisition terminal device, comprising:
Connected by the air interface of mobile radio communication and upgrade service equipment;
Application over the air obtains described subregion image file AKU from described upgrade service equipment.
3. image file upgrade processing method as claimed in claim 1, is characterized in that, described in call the attribute information that default first interface function obtains terminal device, comprising:
The operator's informaiton of terminal device is obtained from client identification module; Or,
The area information of terminal device is obtained from operating system; Or,
The version information of terminal device is obtained from the attribute information of operating system.
4. image file upgrade processing method as claimed in claim 1, is characterized in that, described in call the second default interface function coupling branch function corresponding with described attribute information, comprising:
If the quantity of described branch function is two, then mate the branch function corresponding with described attribute information by arbitration functions interface function; Or,
If the quantity of described branch function is greater than two, then mate the branch function corresponding with described attribute information by query function interface function.
5. image file upgrade processing method as claimed in claim 1, it is characterized in that, described branch function also comprises:
The amount of capacity corresponding with former image file and MD5 code and corresponding amount of capacity and MD5 code with target image file.
6. the image file upgrade processing method as described in as arbitrary in claim 1-5, is characterized in that, after the branch function that described coupling is corresponding with described attribute information, also comprise:
The patch file corresponding with described attribute information is obtained according to described patch path;
Described patch file is write described district location and carries out updating operation.
7. the image file upgrade processing method as described in as arbitrary in claim 1-5, is characterized in that, described function division comprise following one of at least:
Store the logo subregion of start up graphic, the modem subregion of storing communication protocol stack or, the boot subregion of storing driver file.
8. an image file upgrading processing device, is characterized in that, comprising:
Acquisition module, for obtaining the subregion image file AKU of terminal device;
First calling module, in the process of resolving described image file AKU, calls the attribute information that default first interface function obtains terminal device;
Second calling module, for calling the second default interface function coupling branch function corresponding with described attribute information, wherein, described branch function comprises: district location and patch path.
9. image file upgrading processing device as claimed in claim 8, it is characterized in that, described acquisition module, comprising:
Set up unit, for being connected by the air interface of mobile radio communication and upgrade service equipment;
Download unit, obtains described subregion image file AKU for applying over the air from described upgrade service equipment.
10. image file upgrading processing device as claimed in claim 8, is characterized in that, described first calling module, specifically for:
The operator's informaiton of terminal device is obtained from client identification module; Or,
The area information of terminal device is obtained from operating system application; Or,
The version information of terminal device is obtained from the attribute information of operating system.
11. image file upgrading processing devices as claimed in claim 8, is characterized in that, described second calling module, specifically for:
If the quantity of described branch function is two, then mate the branch function corresponding with described attribute information by arbitration functions interface function; Or,
If the quantity of described branch function is greater than two, then mate the branch function corresponding with described attribute information by query function interface function.
12. as arbitrary in claim 8-11 as described in image file upgrading processing device, it is characterized in that, also comprise:
Processing module, for obtaining the patch file corresponding with described attribute information according to described patch path, writing described district location by described patch file and carrying out updating operation.
13. 1 kinds of terminal devices, is characterized in that, comprising: function division and as arbitrary in claim 8-12 as described in image file upgrading processing device.
14. terminal devices as claimed in claim 13, it is characterized in that, described function division comprises:
Store the logo subregion of start up graphic, the modem subregion of storing communication protocol stack or, the boot subregion of storing driver file.
CN201510747070.8A 2015-11-03 2015-11-03 Image file upgrade processing method, device and terminal device Active CN105446769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510747070.8A CN105446769B (en) 2015-11-03 2015-11-03 Image file upgrade processing method, device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510747070.8A CN105446769B (en) 2015-11-03 2015-11-03 Image file upgrade processing method, device and terminal device

Publications (2)

Publication Number Publication Date
CN105446769A true CN105446769A (en) 2016-03-30
CN105446769B CN105446769B (en) 2018-03-30

Family

ID=55557012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510747070.8A Active CN105446769B (en) 2015-11-03 2015-11-03 Image file upgrade processing method, device and terminal device

Country Status (1)

Country Link
CN (1) CN105446769B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227571A (en) * 2016-08-25 2016-12-14 维沃移动通信有限公司 Method for upgrading system and mobile terminal thereof
WO2017185253A1 (en) * 2016-04-27 2017-11-02 华为技术有限公司 Patch upgrade-based file processing method and device, terminal, and storage medium
CN107861748A (en) * 2017-12-04 2018-03-30 山东浪潮通软信息科技有限公司 A kind of patch generation method and device
CN107908416A (en) * 2017-12-28 2018-04-13 惠州Tcl家电集团有限公司 Microcontroller firmware upgrade method, device and computer-readable recording medium
CN108121556A (en) * 2017-12-26 2018-06-05 深圳Tcl新技术有限公司 EMMC compatibilities upgrade method, intelligent terminal and readable storage medium storing program for executing
CN108874405A (en) * 2018-06-20 2018-11-23 郑州云海信息技术有限公司 A kind of OpenStack environment upgrade method
CN109117158A (en) * 2018-08-02 2019-01-01 郑州云海信息技术有限公司 Firmware update and device
CN109460187A (en) * 2018-11-09 2019-03-12 郑州云海信息技术有限公司 A kind of qcow2 file data consistency verification method and verifying terminal
CN111052075A (en) * 2017-08-30 2020-04-21 华为技术有限公司 Method for improving in-place firmware updating robustness

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102300200A (en) * 2011-09-08 2011-12-28 中兴通讯股份有限公司 Software version upgrading method, version publishing equipment and mobile terminal
CN102609326A (en) * 2012-01-17 2012-07-25 大唐移动通信设备有限公司 Data downloading processing method and data downloading processing device
CN102662700A (en) * 2012-03-28 2012-09-12 广东欧珀移动通信有限公司 Method for releasing and upgrading embedded software edition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102300200A (en) * 2011-09-08 2011-12-28 中兴通讯股份有限公司 Software version upgrading method, version publishing equipment and mobile terminal
CN102609326A (en) * 2012-01-17 2012-07-25 大唐移动通信设备有限公司 Data downloading processing method and data downloading processing device
CN102662700A (en) * 2012-03-28 2012-09-12 广东欧珀移动通信有限公司 Method for releasing and upgrading embedded software edition

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017185253A1 (en) * 2016-04-27 2017-11-02 华为技术有限公司 Patch upgrade-based file processing method and device, terminal, and storage medium
US10949191B2 (en) 2016-04-27 2021-03-16 Huawei Technologies Co., Ltd. Patch-upgrade-based file processing method and apparatus, terminal, and storage medium
CN106227571A (en) * 2016-08-25 2016-12-14 维沃移动通信有限公司 Method for upgrading system and mobile terminal thereof
CN111052075A (en) * 2017-08-30 2020-04-21 华为技术有限公司 Method for improving in-place firmware updating robustness
CN111052075B (en) * 2017-08-30 2021-10-01 华为技术有限公司 Method and device for improving in-place firmware updating robustness
CN107861748A (en) * 2017-12-04 2018-03-30 山东浪潮通软信息科技有限公司 A kind of patch generation method and device
CN108121556A (en) * 2017-12-26 2018-06-05 深圳Tcl新技术有限公司 EMMC compatibilities upgrade method, intelligent terminal and readable storage medium storing program for executing
CN107908416A (en) * 2017-12-28 2018-04-13 惠州Tcl家电集团有限公司 Microcontroller firmware upgrade method, device and computer-readable recording medium
CN108874405A (en) * 2018-06-20 2018-11-23 郑州云海信息技术有限公司 A kind of OpenStack environment upgrade method
CN109117158A (en) * 2018-08-02 2019-01-01 郑州云海信息技术有限公司 Firmware update and device
CN109460187A (en) * 2018-11-09 2019-03-12 郑州云海信息技术有限公司 A kind of qcow2 file data consistency verification method and verifying terminal

Also Published As

Publication number Publication date
CN105446769B (en) 2018-03-30

Similar Documents

Publication Publication Date Title
CN105446769A (en) Mirror image file update processing method and apparatus and terminal device
US8719810B2 (en) Program upgrade system and method for over the air-capable mobile terminal
CN104066077A (en) OTA downloading and upgrading method and device thereof
US20070294685A1 (en) Program upgrade system and method for ota-capable portable device
JP2004537895A (en) System and method for peer-to-peer handset communication
CN105335181A (en) OTA upgrade realization method and terminal
US9720678B2 (en) Network switching method, version upgrade method, and terminal device
CN104216719A (en) Method and device for updating android system
CN105786542A (en) Intelligent device and system update method of the intelligent device
CN105511911A (en) System firmware upgrade package generation method and device
CN107506219A (en) A kind of general version upgrade method based on android system
CN105786549A (en) Smart device and upgrading method thereof
CN105391763A (en) Method and server for reinforcing a plurality of apk files
CN103559065A (en) Method and system for OTA (Over-the-Air Technology) upgrade
US9854429B2 (en) Mobile terminal configuration method and system
CN105700918A (en) System upgrading method and device
CN105468420B (en) Operating system update method and apparatus
CN104461621A (en) Attribute information updating method and device
CN105760183A (en) File processing method, device, and communication system
CN106293849B (en) application updating method and terminal
CN111538523A (en) Differential upgrading method, device and storage medium
CN106330561A (en) Dynamic UI setting method and apparatus
CN110309000B (en) Application update prompting method and terminal equipment
CN106843956B (en) Method and device for generating system firmware package
US9930521B2 (en) Method for updating preferred roaming list of UIM card

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

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

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

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

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CP03 Change of name, title or address