CN105446769B - Image file upgrade processing method, device and terminal device - Google Patents
Image file upgrade processing method, device and terminal device Download PDFInfo
- Publication number
- CN105446769B CN105446769B CN201510747070.8A CN201510747070A CN105446769B CN 105446769 B CN105446769 B CN 105446769B CN 201510747070 A CN201510747070 A CN 201510747070A CN 105446769 B CN105446769 B CN 105446769B
- Authority
- CN
- China
- Prior art keywords
- image file
- terminal device
- function
- subregion
- aku
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application proposes a kind of image file upgrade processing method, device and terminal device, wherein, this method includes:Obtain the subregion image file AKU of terminal device;During the image file AKU is parsed, default first interface function is called to obtain the attribute information of terminal device;Default second interface function is called to match branch function corresponding with the attribute information, wherein, the branch function includes:District location and patch path.Image file upgrade processing method, device and the terminal device provided by the application, realize terminal device needs to carry out adaptive upgrading processing to the image file of different subregions according to application, improves treatment effeciency and accuracy, has saved development cost.
Description
Technical field
The application is related to communication technical field, more particularly to a kind of image file upgrade processing method, device and terminal are set
It is standby.
Background technology
The image file of function division in terminal device is upgraded, terminal function and repairing leakage can be improved
Hole.There is different function divisions in terminal device, by taking the modem subregions for depositing communication protocol stack associated documents as an example, explain
Illustrate in the prior art to the upgrade method of subregion image file, it is specific as follows:
It is different because same terminal device may be related to different application regions, or different operators
Operator or region can use different radio frequency bands, and developer is by according to different application demands, it generates and compiled
Modem subregion image files of multiple versions, and being stored in respectively in different partition tables, terminal device is from corresponding partition table
It is middle to obtain image file corresponding with itself application scenarios, to carry out being upgraded according to the image file.
As can be seen here, the exploitation that the upgrading of current image file needs largely to repeat in early stage adapts to different application scene
Image file, and because version is numerous, easily obscure during matching is downloaded, cause upgrading to fail, so as to reduce
Treatment effeciency.
The content of the invention
The application is intended to one of technical problem at least solving in correlation technique to a certain extent.
Therefore, first purpose of the application is to propose a kind of image file upgrade processing method, the method achieve
Terminal device needs to carry out adaptive upgrading processing to the image file of different subregions according to application, improves treatment effeciency and standard
True property, has saved development cost.
Second purpose of the application is to propose a kind of image file upgrading processing device.
The 3rd purpose of the application is to propose a kind of terminal device.
For the above-mentioned purpose, the application first aspect embodiment proposes a kind of image file upgrade processing method, including:
Obtain the subregion image file AKU of terminal device;During the image file AKU is parsed, call default
First interface function obtains the attribute information of terminal device;Call default second interface function matching and the attribute information pair
The branch function answered, wherein, the branch function includes:District location and patch path.
The image file upgrade processing method of the embodiment of the present application, the subregion image file upgrading of terminal device is obtained first
Bag;During the image file AKU is parsed, default first interface function is called to obtain the attribute of terminal device
Information;Default second interface function is called to match branch function corresponding with the attribute information, wherein, the branch function
Including:District location and patch path.Hereby it is achieved that terminal device needs to enter the image file of different subregions according to application
The adaptive upgrading processing of row, improves treatment effeciency and accuracy, has saved development cost.
For the above-mentioned purpose, the application second aspect embodiment proposes a kind of image file upgrading processing device, including:
Acquisition module, for obtaining the subregion image file AKU of terminal device;First calling module, for parsing the mirror image
During document upgrading bag, default first interface function is called to obtain the attribute information of terminal device;Second calling module,
For calling default second interface function to match branch function corresponding with the attribute information, wherein, the branch function
Including:District location and patch path.
The image file upgrading processing device of the embodiment of the present application, the subregion mirror image of terminal device is obtained by acquisition module
Document upgrading bag;During the image file AKU is parsed, default first is called to connect by the first calling module
Mouth function obtains the attribute information of terminal device;By the second calling module call the matching of default second interface function with it is described
Branch function corresponding to attribute information, wherein, the branch function includes:District location and patch path.Hereby it is achieved that eventually
End equipment needs to carry out adaptive upgrading processing to the image files of different subregions according to application, improves treatment effeciency and accurate
Property, save development cost.
For the above-mentioned purpose, the application third aspect embodiment proposes a kind of terminal device, including:Function division, with
And image file upgrading processing device as described above.
The terminal device of the embodiment of the present application, obtain the subregion of terminal device first by image file upgrading processing device
Image file AKU;During the image file AKU is parsed, default first interface function is called to obtain eventually
The attribute information of end equipment;Default second interface function is called to match branch function corresponding with the attribute information, wherein,
The branch function includes:District location and patch path.Hereby it is achieved that terminal device is needed to different subregions according to application
Image file carry out adaptive upgrading processing, improve treatment effeciency and accuracy, saved development cost.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow chart of the image file upgrade processing method of the application one embodiment;
Fig. 2 is the flow chart of the image file upgrade processing method of the application another embodiment;
Fig. 3 is the structural representation of the image file upgrading processing device of the application one embodiment;
Fig. 4 is the structural representation of the image file upgrading processing device of the application another embodiment;
Fig. 5 is the structural representation of the terminal device of the application one embodiment.
Embodiment
Embodiments herein is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the application, and it is not intended that limitation to the application.
Below with reference to the accompanying drawings the image file upgrade processing method, device and terminal device of the embodiment of the present application are described.
Fig. 1 is the flow chart of the image file upgrade processing method of the application one embodiment.
As shown in figure 1, the image file upgrade processing method includes:
Step 101, the subregion image file AKU of terminal device is obtained.
Specifically, the present embodiment provide image file upgrade processing method be configured in terminal device, for pair
Different function divisions carries out image file upgrading processing in terminal device.Wherein, terminal function subregion includes a lot, example
Such as:The boot of the logo subregions for storing start up graphic, the modem subregions for storing communication protocol stack or storage driving file divides
Area, the system subregions etc. of storage system file, it can be needed to develop subregion mirror in image file AKU according to application
As file.
In the prior art, when exploitation is used for the image file of subregion upgrading, for different operators, different areas
Domain or different versions, are required for image file corresponding to stand-alone development, by taking the logo subregions of mobile phone as an example, for mobile phone
The height configuration of type, motion picture resolution ratio is different, therefore the logo.bin image files developed are also just different.
In order to lift development efficiency, the compatibility subregion mirror image of each subregion image file upgrade application scene is developed in advance
Document upgrading bag, the terminal device of all pending subregion image file upgradings all obtain the image file AKU.With it is existing
Technology is compared, and each terminal device does not obtain different image files further according to application scenarios, such as:Carried out to logo subregions
During upgrading, the mobile phone of highest version obtains image file from logo1 subregions, and the mobile phone of lowest version obtains mirror image text from logo2 subregions
Part, or, when carrying out image file upgrading to modem subregions, the mobile phone of operator of UNICOM obtains mirror image from modem1 subregions
File, mobile operator mobile phone obtain image file from modem2 subregions.
Step 102, during the image file AKU is parsed, default first interface function is called to obtain eventually
The attribute information of end equipment.
Specifically, exploitation has analysis program and upgrade script in advance in image file AKU, and terminal device obtains the mirror
As after document upgrading bag, upgrade script is parsed by analysis program into reforestation practices.Set in advance in image file AKU
First interface function is put, the property parameters type for needing to obtain for instruction terminal equipment, so as to which terminal device should in parsing
During image file AKU, terminal device attribute information corresponding to default first interface function acquisition is called.Due to
The property parameters type of different zoning requirements is different, and therefore, acquired terminal device attribute information is also different, illustrates
It is as follows:
The property parameters type for needing to obtain for the first interface function of logo subregions is version information, therefore, is being adjusted
During with first interface function, the version information of terminal device is obtained from the attribute information of operating system;Or for
The property parameters type that the first interface function of system subregions needs to obtain is area information, therefore, is calling first interface
During function, the area information of terminal device is obtained from operating system;Or the first interface for modem subregions
The property parameters type that function needs to obtain is operator's informaiton, therefore, during first interface function is called, from client
The operator's informaiton of terminal device is obtained in identification module.
Step 103, default second interface function is called to match branch function corresponding with the attribute information, wherein,
The branch function includes:District location and patch path.
Second interface function is pre-set in image file AKU, for the terminal device attribute letter for matching and obtaining
Branch function corresponding to breath, different second interface function pairs are answered different matching process, are illustrated below:
If the quantity of default branch function is two A and B, second interface function is arbitration functions interface function, from
And corresponding with attribute information branch function is matched by arbitration functions interface function and whether matched with A, if with A
Match somebody with somebody, it is determined that branch function A, if mismatched with A, it is determined that branch function B.
If the quantity of the branch function is more than two, second interface function is query function interface function, by looking into
Ask functional interface function to match one by one, so that it is determined that branch function corresponding with the attribute information.
Wherein, the branch function includes:District location and patch path, district location are used to indicate to enter which subregion
Row image file updating operation, patch path is for indicate how obtain the patch file for carrying out image file upgrading, so as to root
Image file upgrading processing is carried out to the subregion of terminal device according to district location and patch path.
In another embodiment, in order to further improve processing reliability, the branch function also includes:With former mirror
Amount of capacity and MD5 codes and amount of capacity corresponding with target image file and MD5 codes as corresponding to file, wherein, MD5
Code is the exclusive identification code for verifying file integrality, is by carrying out hash algorithm generation to file content, working as file
When content changes, corresponding MD5 codes also change.By amount of capacity corresponding with former image file and MD5 codes, with
And amount of capacity corresponding with target image file and MD5 codes can verify whether upgrading mistake occurs, improve processing can
By property.
The image file upgrade processing method of the embodiment of the present application, the subregion image file upgrading of terminal device is obtained first
Bag;During the image file AKU is parsed, default first interface function is called to obtain the attribute of terminal device
Information;Default second interface function is called to match branch function corresponding with the attribute information, wherein, the branch function
Including:District location and patch path.Hereby it is achieved that terminal device needs to enter the image file of different subregions according to application
The adaptive upgrading processing of row, improves treatment effeciency and accuracy, has saved development cost.
Fig. 2 is the flow chart of the image file upgrade processing method of the application another embodiment.
As shown in Fig. 2 the image file upgrade processing method specifically includes following steps:
Step 201, established and connected with upgrade service equipment by the air interface of mobile radio communication, skill is downloaded using aerial
Art obtains the subregion image file AKU from the upgrade service equipment.
Specifically, established and connected with upgrade service equipment by the air interface of mobile radio communication, wherein, mobile radio communication
GSM or CDMA can be included, air interface can use WAP, GPRS, CDMA1X and short message service technology.
After establishing connection with upgrade service equipment, subregion mirror image is obtained from upgrade service equipment using over the air
Document upgrading bag.Subregion image file AKU is the compatible each subregion image file upgrade application scene developed in advance
Subregion image file AKU, the terminal device of all pending subregion image file upgradings all obtain image file upgrading
Bag.
Step 202, during the image file AKU is parsed, default first interface function is called to obtain eventually
The attribute information of end equipment.
Step 203, default second interface function is called to match branch function corresponding with the attribute information, wherein,
The branch function includes:District location and patch path.
Step in the specific implementation process embodiment shown in Figure 1 of step 202 and step 203 in the present embodiment
102 and step 103, here is omitted.
Step 204, patch file corresponding with the attribute information is obtained according to the patch path, by patch text
Part writes the district location and carries out updating operation.
Specifically, the patch path in the branch function of matching obtains patch text corresponding with the attribute information
Part, and the subregion according to corresponding to district location by patch file write-in, so as to carry out upgrading behaviour to the image file of the subregion
Make.
In order to more clearly describe image file AKU generating process, illustrate:Make AKU upgrade script
Shi Zengjia command statements, if the situation of only 2 kinds branch functions, increases ifelse functional interface IfElseFn;Will order
Ifelse associates with functional interface IfElseFn, and functional interface can be compiled into an analysis program (update-binary), work as solution
When analysis program runs into order ifelse when parsing upgrade script and being upgraded, it is carrying out being functional interface IfElseFn.
Manufacturing system AKU (OTA), including upgrade script, analysis program, patch file etc., its structure is shown in upgrade script update-
Script format samples are as follows:
Wherein, commonly used command respective operations example includes:Carry subregion mount, format subregion format, progress is set
Bar percentage show_progress, decompression file clip to assigned catalogue package_extract_dir, decompression file arrives
Specified path package_extract_file, authority (being similar to chmod) set_perm that file is set, obtain system property
Getprop, patch installing apply_patch.
System upgrade bag is copied into mobile phone, runs installation order, you can is parsed and risen by analysis program into reforestation practices
Level script can complete the purpose that different zones upgrade different mirror images.In order to illustrate terminal device to AKU resolving, with
Modem subregions are illustrated below:
If being judged as MX regions, perform apply_patch branch functions and complete modem image upgrades, branch function bag
Include:District location, former mirror image size, former mirror image MD5 codes, for target mirror as size, target mirror is as MD5 codes, and is from AKU
The patch path of lower patch files extraction modem patch files.Obtained according to the patch path corresponding with the MX regions
Patch file, the patch file is write into modem district locations and carries out updating operation.
The image file upgrade processing method of the embodiment of the present application, air interface and upgrade service by mobile radio communication
Equipment establishes connection, and the subregion image file AKU is obtained from the upgrade service equipment using over the air,
During the image file AKU is parsed, default first interface function is called to obtain the attribute letter of terminal device
Breath, and call default second interface function to match branch function corresponding with the attribute information, wherein, the branch function
Including:District location and patch path, and then patch file corresponding with the attribute information is obtained according to the patch path,
The patch file is write into the district location and carries out updating operation.Hereby it is achieved that terminal device is according to application needs pair
The image file of different subregions carries out adaptive upgrading processing, improves treatment effeciency and accuracy, has saved development cost.
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 one embodiment.
As shown in figure 3, the image file upgrading processing device includes:
Acquisition module 11, for obtaining the subregion image file AKU of terminal device;
First calling module 12, for during the image file AKU is parsed, calling default first to connect
Mouth function obtains the attribute information of terminal device;
Second calling module 13, for calling default second interface function to match branch corresponding with the attribute information
Function, wherein, the branch function includes:District location and patch path.
First calling module 12, is specifically used 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.
Second calling module 13, is specifically used for:
If the quantity of the branch function is two, pass through the matching of arbitration functions interface function and the attribute information pair
The branch function answered;Or
If the quantity of the branch function is more than two, pass through the matching of query function interface function and the attribute information
Corresponding branch function.
It should be noted that the foregoing explanation to image file upgrade processing method embodiment is also applied for the implementation
The image file upgrading processing device of example, here is omitted.
The image file upgrading processing device of the embodiment of the present application, the subregion image file upgrading of terminal device is obtained first
Bag;During the image file AKU is parsed, default first interface function is called to obtain the attribute of terminal device
Information;Default second interface function is called to match branch function corresponding with the attribute information, wherein, the branch function
Including:District location and patch path.Hereby it is achieved that terminal device needs to enter the image file of different subregions according to application
The adaptive upgrading processing of row, improves treatment effeciency and accuracy, has saved development cost.
Fig. 4 is the structural representation of the image file upgrading processing device of the application another embodiment, as shown in figure 4,
Based on embodiment illustrated in fig. 3, the acquisition module 11, including:
Unit 111 is established, establishes and connects for the air interface by mobile radio communication and upgrade service equipment;
Download unit 112, for obtaining the subregion mirror image from the upgrade service equipment using over the air
Document upgrading bag.
Described device also includes:Processing module 14, it is corresponding with the attribute information for being obtained according to the patch path
Patch file, the patch file is write into the district location and carries out updating operation.
It should be noted that the foregoing explanation to image file upgrade processing method embodiment is also applied for the implementation
The image file upgrading processing device of example, here is omitted.
The image file upgrading processing device of the embodiment of the present application, air interface and upgrade service by mobile radio communication
Equipment establishes connection, and the subregion image file AKU is obtained from the upgrade service equipment using over the air,
During the image file AKU is parsed, default first interface function is called to obtain the attribute letter of terminal device
Breath, and call default second interface function to match branch function corresponding with the attribute information, wherein, the branch function
Including:District location and patch path, and then patch file corresponding with the attribute information is obtained according to the patch path,
The patch file is write into the district location and carries out updating operation.Hereby it is achieved that terminal device is according to application needs pair
The image file of different subregions carries out adaptive upgrading processing, improves treatment effeciency and accuracy, has saved development cost.
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 one embodiment.
As shown in figure 5, the terminal device includes:Function division 1 and image file upgrading processing device 2.Wherein, function
Subregion 1 can be the function division being related in the various embodiments described above, and image file upgrading processing device 2 can be above-mentioned each reality
The image file upgrading processing device provided in example is provided.
The terminal device of the embodiment of the present application, obtain the subregion of terminal device first by image file upgrading processing device
Image file AKU;During the image file AKU is parsed, default first interface function is called to obtain eventually
The attribute information of end equipment;Default second interface function is called to match branch function corresponding with the attribute information, wherein,
The branch function includes:District location and patch path.Hereby it is achieved that terminal device is needed to different subregions according to application
Image file carry out adaptive upgrading processing, improve treatment effeciency and accuracy, saved development cost.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the application.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office
Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area
Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification
Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present application, " multiple " are meant that at least two, such as two, three
It is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include
Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize specific logical function or process
Point, and the scope of the preferred embodiment of the application includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be by the application
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable
Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the application can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage
Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries
Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium
In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the application can be integrated in a first processing module,
Can be that unit is individually physically present, can also two or more units be integrated in a module.It is above-mentioned integrated
Module can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated mould
If block is realized in the form of software function module and counted as independent production marketing or in use, one can also be stored in
In calculation machine read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above
Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the application
System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of application
Type.
Claims (8)
1. a kind of image file upgrade processing method, it is characterised in that comprise the following steps:
The subregion image file AKU of terminal device is obtained, wherein, the compatible terminal of the subregion image file AKU is set
The subregion image file AKU of standby each subregion image file upgrade application scene, terminal function subregion include storage
The logo subregions of start up graphic, modem subregions, the system subregions of storage system file for storing communication protocol stack;
During the image file AKU is parsed, default first interface function is called to obtain the attribute of terminal device
Information, wherein, for the logo subregions, during the first interface function is called, believe from the attribute of operating system
The version information of terminal device is obtained in breath, or, for the system subregions, calling the mistake of the first interface function
Cheng Zhong, the area information of terminal device is obtained from operating system, or, for the modem subregions, calling described first
During interface function, the operator's informaiton of terminal device is obtained from client identification module;
Default second interface function is called to match branch function corresponding with the attribute information of the terminal device, wherein, institute
Stating branch function includes:District location and patch path;
Patch file corresponding with the attribute information is obtained according to the patch path;
The patch file is write into the district location image file updating operation is carried out to the terminal device.
2. image file upgrade processing method as claimed in claim 1, it is characterised in that the subregion for obtaining terminal device
Image file AKU, including:
Established and connected with upgrade service equipment by the air interface of mobile radio communication;
The subregion image file AKU is obtained from the upgrade service equipment using over the air.
3. image file upgrade processing method as claimed in claim 1, it is characterised in that described to call default second interface
Function matches branch function corresponding with the attribute information, including:
If the quantity of the branch function is two, matched by arbitration functions interface function corresponding with the attribute information
Branch function;Or
If the quantity of the branch function is more than two, matched by query function interface function corresponding with the attribute information
Branch function.
4. image file upgrade processing method as claimed in claim 1, it is characterised in that the branch function also includes:
Amount of capacity corresponding with former image file and MD5 codes and amount of capacity corresponding with target image file and MD5
Code.
A kind of 5. image file upgrading processing device, it is characterised in that including:
Acquisition module, for obtaining the subregion image file AKU of terminal device, wherein, the subregion image file AKU
Compatible the subregion image file AKU of each subregion image file upgrade application scene, terminal function subregion include depositing
Store up the logo subregions of start up graphic, store modem subregions, the system subregions of storage system file of communication protocol stack;
First calling module, for during the image file AKU is parsed, calling default first interface function
The attribute information of terminal device is obtained, wherein, for the logo subregions, during the first interface function is called,
The version information of terminal device is obtained from the attribute information of operating system, or, for the system subregions, calling institute
During stating first interface function, the area information of terminal device is obtained from operating system, or, for the modem
Subregion, during the first interface function is called, the operator's informaiton of terminal device is obtained from client identification module;
Second calling module, for calling default second interface function matching corresponding with the attribute information of the terminal device
Branch function, wherein, the branch function includes:District location and patch path;
Processing module, for obtaining patch file corresponding with the attribute information according to the patch path, by the patch
File writes the district location and carries out image file updating operation to the terminal device.
6. image file upgrading processing device as claimed in claim 5, it is characterised in that the acquisition module, including:
Unit is established, establishes and connects for the air interface by mobile radio communication and upgrade service equipment;
Download unit, for obtaining the subregion image file upgrading from the upgrade service equipment using over the air
Bag.
7. image file upgrading processing device as claimed in claim 5, it is characterised in that second calling module, specifically
For:
If the quantity of the branch function is two, matched by arbitration functions interface function corresponding with the attribute information
Branch function;Or
If the quantity of the branch function is more than two, matched by query function interface function corresponding with the attribute information
Branch function.
A kind of 8. terminal device, it is characterised in that including:Function division and the mirror image text as described in claim 5-7 is any
Part upgrading processing device.
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 CN105446769A (en) | 2016-03-30 |
CN105446769B true 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) |
Families Citing this family (14)
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 |
CN106227571A (en) * | 2016-08-25 | 2016-12-14 | 维沃移动通信有限公司 | Method for upgrading system and mobile terminal thereof |
WO2019042546A1 (en) * | 2017-08-30 | 2019-03-07 | Huawei Technologies Co., Ltd. | Method for improving the robustness of in-place firmware update |
CN107861748A (en) * | 2017-12-04 | 2018-03-30 | 山东浪潮通软信息科技有限公司 | A kind of patch generation method and device |
CN108121556B (en) * | 2017-12-26 | 2022-01-04 | 深圳Tcl新技术有限公司 | eMMC compatible upgrading method, intelligent terminal and readable storage medium |
CN107908416A (en) * | 2017-12-28 | 2018-04-13 | 惠州Tcl家电集团有限公司 | Microcontroller firmware upgrade method, device and computer-readable recording medium |
CN108874405B (en) * | 2018-06-20 | 2021-08-06 | 郑州云海信息技术有限公司 | OpenStack environment upgrading method |
CN109117158A (en) * | 2018-08-02 | 2019-01-01 | 郑州云海信息技术有限公司 | Firmware update and device |
CN109271190A (en) * | 2018-10-15 | 2019-01-25 | 迈普通信技术股份有限公司 | A kind of device updating method and embedded device |
CN109460187B (en) * | 2018-11-09 | 2022-05-03 | 郑州云海信息技术有限公司 | Verification method and verification terminal for data consistency of qcow2 file |
CN111736858A (en) * | 2019-03-25 | 2020-10-02 | 深圳Tcl新技术有限公司 | Terminal equipment upgrading method, storage medium and terminal equipment |
CN110865837B (en) * | 2019-11-14 | 2023-08-18 | 青岛海信移动通信技术有限公司 | Method and terminal for system upgrade |
CN111221556B (en) * | 2020-01-09 | 2023-08-29 | 联陆智能交通科技(上海)有限公司 | Remote upgrade RSU mirror image method and system |
CN112463192A (en) * | 2020-11-30 | 2021-03-09 | 福州汇思博信息技术有限公司 | High-pass platform private image upgrading method and terminal |
Citations (3)
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 |
-
2015
- 2015-11-03 CN CN201510747070.8A patent/CN105446769B/en active Active
Patent Citations (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105446769A (en) | 2016-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105446769B (en) | Image file upgrade processing method, device and terminal device | |
CN106598667B (en) | Method and apparatus for repairing kernel loophole | |
US10212563B2 (en) | Updating web resources | |
CN105446772B (en) | A kind of method and apparatus of system upgrade | |
CN104052818B (en) | The version upgrading method and device of a kind of mobile terminal | |
CN106648787A (en) | Resource updating method and terminal | |
CN107506219A (en) | A kind of general version upgrade method based on android system | |
CN104699511B (en) | Plug-in unit upgrade method and device | |
CN105700918A (en) | System upgrading method and device | |
CN108416212A (en) | Method for identifying application program and device | |
CN103412767A (en) | Method and system for recognizing and upgrading application version | |
CN106547576A (en) | The acquisition methods and device of configuration file | |
CN105094913A (en) | System, base band fastener and system application upgrading method and device | |
US20170351510A1 (en) | Method for recognizing application type | |
CN105373747A (en) | File generation method, file verification method and systems for preventing system from being tampered | |
CN107632901A (en) | A kind of self-repair method and device of application program operation exception | |
CN107797823A (en) | Business Rule Management method, apparatus, storage medium and computer equipment | |
CN110851151B (en) | Method, device, terminal, server and storage medium for pre-installing application | |
CN106657361A (en) | Android installation package OTA upgrade method with mixed codes | |
CN105988943B (en) | A kind of method and device driving wireless adapter | |
CN109376072A (en) | Application development method and apparatus based on third party's Component Gallery | |
CN110764819B (en) | RF Card client method and system for communication terminal | |
CN106569865B (en) | Method and device for manufacturing system upgrade file of terminal | |
CN105700900A (en) | Method and device for optimizing wireless local area network function | |
CN107291637A (en) | The method and apparatus of compatible polytypic mobile communication module in Android system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: 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 |