CN104133699B - Device system software upgrade method and system - Google Patents
Device system software upgrade method and system Download PDFInfo
- Publication number
- CN104133699B CN104133699B CN201410364455.1A CN201410364455A CN104133699B CN 104133699 B CN104133699 B CN 104133699B CN 201410364455 A CN201410364455 A CN 201410364455A CN 104133699 B CN104133699 B CN 104133699B
- Authority
- CN
- China
- Prior art keywords
- packet
- software
- identification information
- delta package
- update
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of device system software upgrade method and system, according to the attribute of equipment, distribution system software identity identification information, later according to this system software identity identification information, the corresponding compiling system script of the software is chosen to be compiled, generate the initial version system packet and difference resource packet of the equipment, when equipment updates, further according to system software identity identification information, it is compiled, it obtains equipment more new version system packet and updates difference resource packet, difference processing is carried out to update difference resource packet and initial differential resource packet, it obtains and updates delta package, device downloads update delta package upgrading.In whole process, it does not need to carry out complicated data processing and downloading, device upgrade only needs the lesser delta package of downloading data amount that can accurately realize software upgrading, since the acquisition of delta package is to carry out difference processing acquisition according to difference resource packet, ensure delta package obtain it is accurate, thus efficiently, accurately realize equipment software upgrading.
Description
Technical field
The present invention relates to software upgrading technical fields, more particularly to device system software upgrade method and system.
Background technique
Now with two ways, one kind is full packet upgrading for device systems upgrading, and another kind is that increment upgrades.Due to increment liter
Grade reduces the byte number that user needs to download, so being widely used in current long-range update.Increase if you need to generation system
Amount packet, then the system packet generated when the compiling of each version before needing developer to find the system, by hand to each version into
Row difference operation generates delta package.
But difference operation is carried out to each version manually, it generates delta package and is easy to cause input instruction errors, when compiling
Between need to be thirty minutes long above, and need skilled device systems compiled knowledge that could complete, technical staff is required it is high,
It can not be widely used.
So existing equipment system software upgrading method has that upgrading low efficiency, accuracy are low, can not
It meets the needs of users.
Summary of the invention
Based on this, it is necessary to upgrade low efficiency and the low problem of accuracy for existing equipment system software upgrading method,
It provides and a kind of upgrades high-efficient and high accuracy device system software upgrade method and system.
A kind of device system software upgrade method, including step:
Device attribute is identified, according to the device attribute distribution system software identity identification information;
It according to the system software identity identification information, chooses corresponding compiling system script and is compiled, obtain equipment
Initial version system packet and initial differential resource packet;
When the device systems need to update, according to the system software identity identification information, selecting system is corresponding
Compiling system script is compiled, and is obtained equipment more new version system packet and is updated difference resource packet;
Difference processing is carried out to the update difference resource packet and the initial differential resource packet, obtains and updates delta package;
According to the update delta package, the device system software is upgraded.
A kind of device system software upgrade-system, including:
Software identity identification information distribution module, device attribute, soft according to the device attribute distribution system for identification
Part identity identification information;
Initial processing module, for choosing corresponding compiling system script according to the system software identity identification information
It is compiled, obtains equipment initial version system packet and initial differential resource packet;
Processing module is updated, for being believed according to the system software identification when the device systems need to update
Breath, the corresponding compiling system script of selecting system are compiled, and are obtained equipment more new version system packet and are updated difference resource packet;
Delta package obtains module, for carrying out at difference to the update difference resource packet and the initial differential resource packet
Reason obtains and updates delta package;
Upgraded module, for upgrading to the device system software according to the update delta package.
Present device system software upgrading method and system, when being initially accessed equipment, according to the attribute of equipment,
A system software identity identification information is distributed, phase is selected in software matrix according to this system software identity identification information later
The software answered, and choose the corresponding compiling system script of the software and be compiled, generate the equipment initial version system packet and
Difference resource packet, when equipment at a time needs to update, further according to system software identity identification information, selecting system is corresponding
Compiling system script be compiled, obtain equipment more new version system packet and update difference resource packet, to update difference resource
Packet and initial differential resource packet carry out difference processing, obtain and update delta package, and device downloads, which update delta package, can be realized this
Upgrading.In whole process, do not need to carry out complicated data processing and downloading, device upgrade only needs the lesser increasing of downloading data amount
Amount packet can accurately realize software upgrading, since the acquisition of delta package is to carry out difference processing acquisition according to difference resource packet,
Ensure delta package obtain it is accurate, thus efficiently, accurately realize equipment software upgrading.
Detailed description of the invention
Fig. 1 is the flow diagram of present device system software upgrading method one embodiment;
Fig. 2 is the flow diagram of second embodiment of present device system software upgrading method;
Fig. 3 is the structural schematic diagram of present device system software upgrading system one embodiment;
Fig. 4 is the structural schematic diagram of second embodiment of present device system software upgrading system.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, right below according to accompanying drawings and embodiments
The present invention is further elaborated.It should be appreciated that specific implementation described herein is only used to explain the present invention, not
Limit the present invention.
As shown in Figure 1, a kind of device system software upgrade method, including step:
S100:Device attribute is identified, according to the device attribute distribution system software identity identification information.
The equipment of access is there are many attribute type, such as the equipment of Android, the computer etc. of Windows system, herein
Need first to identify the attribute of equipment, and according to industry guideline, distribution system software identity identification information, so as in subsequent processing
It is programmed according to system software identity identification information, generates the system for being suitable for the equipment.Software identity identification information is to use
In the identification information of difference software identity, such as can be software I D etc..
S200:It according to the system software identity identification information, chooses corresponding compiling system script and is compiled, obtain
Equipment initial version system packet and initial differential resource packet.
After generating system software identity identification information according to industry guideline, need to be chosen according to this identity identification information
Its corresponding compiling system script is compiled, if such as system software identity identification information characterization current device system be
The equipment of Android type, then the volume for carrying out Android system suitable for the system script of Android system compiling will be chosen here
It translates, obtains the initial version system packet and initial differential resource packet of equipment.
S300:When the device systems need to update, according to the system software identity identification information, selecting system phase
The compiling system script answered is compiled, and is obtained equipment more new version system packet and is updated difference resource packet.
When a certain moment, when equipment needs to increase or update some function, it is necessary to be updated to device systems, at this time
It needs according to update needs, and according to system software identity identification information, chooses compiling system corresponding with system and be compiled,
Generate the system packet of more new version and the difference resource packet of update.
S400:Difference processing is carried out to the update difference resource packet and the initial differential resource packet, is obtained more newly-increased
Amount packet.
S500:According to the update delta package, the device system software is upgraded.
Have to more further explain in detail technical solution and its bring of present device system software upgrading method
Beneficial effect will be explained by taking certain type device as an example below.
Certain type device method for upgrading software includes step:
Step 1:The basic data (including software identity identification information) of typing type in systems.
Step 2:The system version 1 of certain type is compiled in this system, generates the system packet 1 and difference resource of system version 1
Packet 1, and by the system packet 1 and difference resource packet 1 synchronize download on server, meanwhile, by the system packet 1 and difference resource packet
Database is inserted into 1 path.
Step 3:System version 1 is mounted on machine in advance when certain type device dispatches from the factory.
Step 4:User uses the equipment, needs to carry out upgrading update to the software of equipment after a period of time.
Step 5:Compiling system version 2 and generate the system packet 2 and difference resource packet of system version 2 in the present system
2, the path of the system packet and difference resource packet is stored in database.Detect that the type has early version system version in system
This 1 presence, then call difference packet to generate script data, generate system delta package (the difference resource packet 2- for corresponding to system version 1
Difference resource packet 1).
Step 6:User downloads the delta package and carries out the upgrading of system increment.
Step 7:The step of subsequent software need to upgrade again, then execute step 5 and step 6 again.
Present device system software upgrading method, when being initially accessed equipment, according to the attribute of equipment, distribution one
A system software identity identification information is corresponding soft in software matrix selection according to this system software identity identification information later
Part, and choose the corresponding compiling system script of the software and be compiled, generate the initial version system packet and difference money of the equipment
Source packet, when equipment at a time needs to update, further according to system software identity identification information, selecting system compiles accordingly
System script is compiled, and is obtained equipment more new version system packet and is updated difference resource packet, to update difference resource packet and just
Beginning difference resource packet carries out difference processing, obtains and updates delta package, and device downloads, which update delta package, can be realized this upgrading.It is whole
During a, do not need to carry out complicated data processing and downloading, device upgrade only needs the lesser delta package of downloading data amount i.e.
Software upgrading can be accurately realized, since the acquisition of delta package is to carry out difference processing acquisition according to difference resource packet, it is ensured that
Delta package obtain it is accurate, thus efficiently, accurately realize equipment software upgrading.
It is described when the device systems need to update in one of the embodiments, according to the system software identity
Identification information is chosen corresponding compiling system script and is compiled, and obtains equipment more new version system packet and updates difference resource
Packet specifically includes step:
When the device systems need to update, according to the system software identity identification information, corresponding compiling is chosen
System script is compiled, and obtains equipment more new version system packet;
Search whether that there are the associated version system packets of the equipment more new version system packet;
When there is the associated version system packet of the more new version system packet, the more new version system packet and institute are generated
The difference resource packet for stating associated version system packet, it is raw when there is no the associated version system packet of the more new version system packet
At the difference resource packet of the more new version system packet and each old version system;
The difference resource packet is defined to update difference resource packet.
During generating difference resource packet, search whether there is system packet associated with more new version system packet,
When there is associated system packet, since there are certain associated data with more new system packet for associated system, between the two
There are certain relevances, so need to only generate the differential data of more new version system packet Yu associated version system packet, in this way may be used
To reduce the treating capacity of data, the data volume of the differential data packet of generation is reduced, efficiently to be updated by device downloads.When not having
When finding associated system packet, in order to ensure the safety of data and complete, and meet a variety of demands of user, it is necessary to raw
At the difference resource packet of more new system packet and each old version system.
As shown in Fig. 2, the S500 specifically includes step in one of the embodiments,:
S520:The update delta package is verified, when verification is without mistaking, by the update delta package outgoing;
S540:According to the update delta package of outgoing, the device system software is upgraded.
Updating delta package, there may be certain unnecessary or secrecy data, or there are certain errors, by its
It when being dealt into user equipment outside, needs to verify it, when verifying without mistaking, delta package outgoing will be updated, user equipment can
To update delta package according to this, the upgrading to device system software is completed.
As shown in Fig. 2, there are also steps after the step S200 in one of the embodiments,:
S220:The equipment initial version system packet and the initial differential resource packet are stored, and records and deposits accordingly
Store up path.
In order to ensure data safety, data is avoided to lose because of various problems, is obtaining initial system packet and initial money
It after the packet of source, needs to store these data, in addition, in order to find these data in subsequent operation, it is also necessary to by it
Store path stores together.
As shown in figure 3, a kind of device system software upgrade-system, including:
Software identity identification information distribution module 100, device attribute for identification, according to the device attribute distribution system
Software identity identification information;
Initial processing module 200, for choosing corresponding compiling system foot according to the system software identity identification information
Originally it is compiled, obtains equipment initial version system packet and initial differential resource packet;
Processing module 300 is updated, for when the device systems need to update, according to the system software identification
Information, the corresponding compiling system script of selecting system are compiled, and are obtained equipment more new version system packet and are updated difference resource
Packet;
Delta package obtains module 400, poor for carrying out to the update difference resource packet and the initial differential resource packet
Divide processing, obtains and update delta package;
Upgraded module 500, for upgrading to the device system software according to the update delta package.
Present device system software upgrading system, software identity identification information distribution module 100 are being initially accessed equipment
When, according to the attribute of equipment, a system software identity identification information is distributed, initial processing module 200 is according to this
Software identity identification information of uniting selects corresponding software in software matrix, and chooses the corresponding compiling system script of the software and carry out
Compiling, generates the initial version system packet and difference resource packet of the equipment, when equipment at a time needs to update, at update
Module 300 is managed according to system software identity identification information, the corresponding compiling system script of selecting system is compiled, and obtains equipment
More new version system packet and update difference resource packet, delta package obtain 400 pairs of update difference resource packets of module and initial differential money
Source packet carries out difference processing, obtains and updates delta package, and the downloading of upgraded module 500, which updates delta package, can be realized this upgrading.It is whole
During a, do not need to carry out complicated data processing and downloading, device upgrade only needs the lesser delta package of downloading data amount i.e.
Software upgrading can be accurately realized, since the acquisition of delta package is to carry out difference processing acquisition according to difference resource packet, it is ensured that
Delta package obtain it is accurate, thus efficiently, accurately realize equipment software upgrading.
The update processing module specifically includes in one of the embodiments,:
System packet updates processing unit, for when the device systems need to update, according to the system software identity
Identification information is chosen corresponding compiling system script and is compiled, and equipment more new version system packet is obtained;
Searching unit, for searching whether that there are the associated version system packets of the equipment more new version system packet;
Processing unit, for generating the update when there is the associated version system packet of the more new version system packet
The difference resource packet of edition system packet and the associated version system packet, when there is no the association versions of the more new version system packet
When this system packet, the difference resource packet of the more new version system packet and each old version system is generated;
Definition unit updates difference resource packet for defining the difference resource packet.
As shown in figure 4, the upgraded module 500 specifically includes in one of the embodiments,:
Verification unit 520, for verifying the update delta package, when verification is without mistaking, by the update delta package outgoing;
Upgrade unit 540 upgrades the device system software for the update delta package according to outgoing.
The device system software upgrade-system in one of the embodiments, further includes:
Memory module 600 for storing the equipment initial version system packet and the initial differential resource packet, and is remembered
Record corresponding store path.
In order to further explain in detail the technical solution and its band of present device system software upgrading method and system
Below entire software upgrade process will be described in detail using another specific implementation in the beneficial effect come.
Step 1:Initialization
User increases type newly after logging in data management library, and when type is inserted into database, each type will be obtained
Unique system software ID.
Step 2:User selects type, typing version number in data management module after logging in, compilation time is associated with version
The information such as this call automatic collector compiling system new version after clicking compiling system, and automatic collector calls compiling clothes
The script being engaged on device, produces difference resource packet and system is wrapped entirely.After generation, by data (system software ID, system version
Number, difference resource packet size, path, md5 value, the full packet size of system, path, md5 value, compilation time, associated version) insert number
According to library.
Step 3:Delta package is generated according to user setting
After step 2 row, the parameters such as system software ID and version number are transmitted.According to system software ID and version
It number is inquired in the system software in the database, the whether relevant version of the version, if onrelevant version, inquires database
In the system software each version version number and place path, and using production delta package method be directed to each system version
It carries out difference and produces delta package.If the relevant version of the version, difference is carried out just for associated version and produces delta package.Step
Four:By data (delta package path) insertion system after compiling delta package program generating system delta package, audits and survey for administrative staff
Examination, automatic synchronization, is externally issued after the approval.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (6)
1. a kind of device system software upgrade method, which is characterized in that including step:
Identify device attribute, according to the device attribute distribution system software identity identification information, the software identity identification letter
Breath is the identification information for distinguishing software identity, and software identity identification information includes software I D;
It according to the system software identity identification information, chooses corresponding compiling system script and is compiled, it is initial to obtain equipment
Edition system packet and initial differential resource packet;
When the device systems need to update, according to the system software identity identification information, selecting system compiles accordingly
System script is compiled, and is obtained equipment more new version system packet and is updated difference resource packet;
Difference processing is carried out to the update difference resource packet and the initial differential resource packet, obtains and updates delta package;
According to the update delta package, the device system software is upgraded.
2. device system software upgrade method according to claim 1, which is characterized in that the more new increment according to
Packet carries out upgrading to the device system software and specifically includes step:
The update delta package is verified, when verification is without mistaking, by the update delta package outgoing;
According to the update delta package of outgoing, the device system software is upgraded.
3. device system software upgrade method according to claim 1 or 2, which is characterized in that described according to the system
Software identity identification information, the corresponding compiling system script of selecting system are compiled, obtain equipment initial version system packet and
There are also steps after initial differential resource packet:
The equipment initial version system packet and the initial differential resource packet are stored, and record corresponding store path.
4. a kind of device system software upgrade-system, which is characterized in that including:
Software identity identification information distribution module, device attribute for identification, according to the device attribute distribution system software body
Part identification information, the software identity identification information are the identification information for distinguishing software identity, software identity identification information
Including software I D;
Initial processing module, for choosing corresponding compiling system script and carrying out according to the system software identity identification information
Compiling obtains equipment initial version system packet and initial differential resource packet;
Processing module is updated, for according to the system software identity identification information, selecting when the device systems need to update
It takes the corresponding compiling system script of system to be compiled, obtain equipment more new version system packet and updates difference resource packet;
Delta package obtains module, for carrying out difference processing to the update difference resource packet and the initial differential resource packet,
It obtains and updates delta package;
Upgraded module, for upgrading to the device system software according to the update delta package.
5. device system software upgrade-system according to claim 4, which is characterized in that the upgraded module specifically wraps
It includes:
Verification unit, for verifying the update delta package, when verification is without mistaking, by the update delta package outgoing;
Upgrade unit upgrades the device system software for the update delta package according to outgoing.
6. device system software upgrade-system according to claim 4 or 5, which is characterized in that further include:
Memory module for storing the equipment initial version system packet and the initial differential resource packet, and records corresponding
Store path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410364455.1A CN104133699B (en) | 2014-07-28 | 2014-07-28 | Device system software upgrade method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410364455.1A CN104133699B (en) | 2014-07-28 | 2014-07-28 | Device system software upgrade method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104133699A CN104133699A (en) | 2014-11-05 |
CN104133699B true CN104133699B (en) | 2018-11-27 |
Family
ID=51806385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410364455.1A Active CN104133699B (en) | 2014-07-28 | 2014-07-28 | Device system software upgrade method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104133699B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951335B (en) * | 2015-05-22 | 2019-01-04 | 小米科技有限责任公司 | The processing method and processing device of application program installation kit |
CN105867922A (en) * | 2016-03-29 | 2016-08-17 | 乐视控股(北京)有限公司 | Differential upgrade method and system |
CN109871227B (en) * | 2017-12-05 | 2022-10-18 | 卓望数码技术(深圳)有限公司 | Software upgrading method and device based on second-order differential increment |
CN108449377A (en) * | 2018-02-02 | 2018-08-24 | 珠海金山网络游戏科技有限公司 | A kind of update method and resource packing and issuing system and method for game version |
EP3764224B1 (en) * | 2018-03-27 | 2023-08-30 | Huawei Technologies Co., Ltd. | Resource permission processing method and apparatus, and storage medium and chip |
CN109144557A (en) * | 2018-08-23 | 2019-01-04 | 携程旅游信息技术(上海)有限公司 | The dynamic increment upgrade method and system of APP |
CN110837392A (en) * | 2019-11-06 | 2020-02-25 | 四川天邑康和通信股份有限公司 | Method and system for self-adaptive differential upgrading of IPTV (Internet protocol television) or convergence gateway |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081536A (en) * | 2010-12-30 | 2011-06-01 | 华为终端有限公司 | Method for updating increment, and server |
CN103259936A (en) * | 2013-05-21 | 2013-08-21 | 东莞宇龙通信科技有限公司 | Operating system upgrade method for mobile terminal and operating system upgrade device of operating system upgrade method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7509636B2 (en) * | 2003-12-15 | 2009-03-24 | Microsoft Corporation | System and method for updating files utilizing delta compression patching |
US8225303B2 (en) * | 2007-11-30 | 2012-07-17 | Sap Ag | System and method for providing software upgrades |
-
2014
- 2014-07-28 CN CN201410364455.1A patent/CN104133699B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081536A (en) * | 2010-12-30 | 2011-06-01 | 华为终端有限公司 | Method for updating increment, and server |
CN103259936A (en) * | 2013-05-21 | 2013-08-21 | 东莞宇龙通信科技有限公司 | Operating system upgrade method for mobile terminal and operating system upgrade device of operating system upgrade method |
Also Published As
Publication number | Publication date |
---|---|
CN104133699A (en) | 2014-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104133699B (en) | Device system software upgrade method and system | |
CN106775723B (en) | Android platform-based system firmware customization method and Android device | |
US9483284B2 (en) | Version compatibility determination | |
CN108196878B (en) | Method and device for generating application program installation package, electronic equipment and storage medium | |
CN107506219A (en) | A kind of general version upgrade method based on android system | |
CN106610853A (en) | Application deployment method and device | |
CN104699511B (en) | Plug-in unit upgrade method and device | |
CN110096424B (en) | Test processing method and device, electronic equipment and storage medium | |
EP2696531A1 (en) | Initialization of embedded secure elements | |
US11169792B2 (en) | Method and apparatus for generating patch | |
US10203943B2 (en) | Static analysis and reconstruction of deep link handling in compiled applications | |
CN107025108B (en) | Exporting hierarchical data from a Source Code Management (SCM) system to a Product Lifecycle Management (PLM) system | |
CN107193607A (en) | Method and apparatus, storage medium, processor and terminal for updating code file | |
CN109739526A (en) | Code update method and device | |
CN109032631A (en) | Application program service packs acquisition methods, device, computer equipment and storage medium | |
CN107632901A (en) | A kind of self-repair method and device of application program operation exception | |
CN110764839A (en) | Business processing flow configuration method, business request processing method and device | |
CN107797819A (en) | Delta package generation method, computer-readable recording medium and server | |
CN113330419A (en) | Equipment application installation method and device | |
CN110716786B (en) | Page display method, system and storage medium | |
CN110851151B (en) | Method, device, terminal, server and storage medium for pre-installing application | |
CN114942933A (en) | Method for automatically updating database and related device | |
CN109753767B (en) | Software distribution and updating method and device based on block chain, server and client | |
CN104407897A (en) | Intelligent upgrading method and system for program | |
CN106648441A (en) | Method and device for transferring equipment partition information |
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 |