CN105930197A - Software upgrading method and electronic equipment - Google Patents

Software upgrading method and electronic equipment Download PDF

Info

Publication number
CN105930197A
CN105930197A CN201610495276.0A CN201610495276A CN105930197A CN 105930197 A CN105930197 A CN 105930197A CN 201610495276 A CN201610495276 A CN 201610495276A CN 105930197 A CN105930197 A CN 105930197A
Authority
CN
China
Prior art keywords
apk
upgrading
software
file
file fragment
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.)
Pending
Application number
CN201610495276.0A
Other languages
Chinese (zh)
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Leshi Zhixin Electronic Technology Tianjin Co Ltd, LeTV Holding Beijing Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201610495276.0A priority Critical patent/CN105930197A/en
Publication of CN105930197A publication Critical patent/CN105930197A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

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 embodiment of the invention provides a software upgrading method and electronic equipment, aiming at solving the technical problem that the software upgrading efficiency is lower. The method comprises the following steps: receiving software upgrading request information sent by terminal equipment, wherein the software upgrading request information is used for requiring to upgrade a first application program installed in the terminal equipment, and the software upgrading request information indicates that the first application program is presently installed by the terminal equipment according to a software version which is a first APK; according to the software upgrading request information, determining a second APK with a software version higher than the first APK from a plurality of APKs corresponding to the first application program; dividing the first APK into M first file segments and dividing the second APK into N second file segments, wherein M and N are integers greater than or equal to 2; obtaining an upgrading incremental package according to the M first file segments and the N second file segments; sending the upgrading incremental package to the terminal equipment so as to upgrade the terminal equipment according to the upgrading incremental package.

Description

A kind of method of software upgrading and electronic equipment
Technical field
The present embodiments relate to communication technical field, particularly relate to method and the electronics of a kind of software upgrading Equipment.
Background technology
Along with the fast development of terminal unit technology, the application program that developer provides gets more and more, and uses Multiple application program can be installed to realize different functions at terminal unit in family, such as can be by regarding Frequency application viewing video, is entertained by game application, etc..
During using application program, it is sometimes desirable to application program is updated upgrading, passes through Update the application program after upgrading and can use more function.In order to application program is quickly risen Level, user can only download the upgrading for showing magnitude of deviation between current software version and redaction and increase Amount bag is installed, and without downloading complete installation kit, owing to the data volume of upgrading delta package is general Less, such as general only several crossed joints (KB) or several million (M), it is possible to shorten and download Time, save flow, the speed of upgrading can also be improved simultaneously.
At present, be usually directly new edition installation kit and old edition installation kit entirety are carried out comparison in difference and then Obtain upgrading delta package, but, present inventor finds that the mode using this entirety to compare obtains Upgrading delta package in likely comprise the information without being updated, thus can increase upgrading increment The redundancy of bag, simultaneously because be that entirety compares the spent time and is likely to longer, reduces software The efficiency of upgrading.
Summary of the invention
The embodiment of the present invention provides method and the electronic equipment of a kind of software upgrading, in order to solve prior art The inefficient technical problem of middle software upgrading, it is achieved that before ensureing that upgrading delta package is accurately and effectively Put the time obtaining upgrading delta package that shortens, and then improve the beneficial effect of the efficiency of software upgrading.
The embodiment of the present invention provides a kind of method of software upgrading, including:
The software upgrading solicited message that receiving terminal apparatus sends;Wherein, described software upgrading solicited message Upgrading, for request, the first application program installed in described terminal unit, described software upgrading please Ask information show described terminal unit be currently according to software version be the oneth APK install described first should Use program;
According to described software upgrading solicited message, from the multiple APKs corresponding with described first application program Determine that software version is higher than the 2nd APK of a described APK;
A described APK is divided into M the first file fragment, and described 2nd APK is divided For N number of second file fragment, M and N is the integer more than or equal to 2;
According to described M the first file fragment and described N number of second file fragment, it is thus achieved that upgrading delta package;
Described upgrading delta package is sent to described terminal unit, so that described terminal unit is according to described increasing Amount AKU is upgraded.
The embodiment of the present invention provides a kind of electronic equipment, including:
Receiver module, the software upgrading solicited message sent for receiving terminal apparatus;Wherein, described soft The first application program installed in described terminal unit is upgraded by part upgrading request for request, Described software upgrading solicited message show described terminal unit be currently according to software version be first Android peace Dress bag APK installs described first application program;
Determine module, for according to described software upgrading solicited message, from described first application program pair The multiple APK answered determining, software version is higher than the 2nd APK of a described APK;
Divide module, for a described APK being divided into M the first file fragment, and by institute Stating the 2nd APK and be divided into N number of second file fragment, M and N is the integer more than or equal to 2;
Obtain module, be used for according to described M the first file fragment and described N number of second file fragment, Obtain upgrading delta package;
Sending module, for described upgrading delta package is sent to described terminal unit, so that described end End equipment is upgraded according to described increment AKU.
The method of the software upgrading that the embodiment of the present invention provides and electronic equipment, send out receiving terminal unit After the software upgrading solicited message sent, it may be determined that terminal unit needs to rise the first application program Level, and may determine that the first application program used in terminal unit is by the first Android installation kit (Android Package, APK) installs, in order to meet the upgrade requirement of terminal unit, Ke Yicong The multiple APKs corresponding with the first application program determine that software version is higher than the APK of an APK, Such as determine the 2nd APK, quickly upgrade for the ease of terminal unit, it may be determined that the 2nd APK with Magnitude of deviation between oneth APK is to obtain upgrading delta package, owing to the software version of the 2nd APK is higher than The software version of the oneth APK, so when i.e. realizing first after installing terminal equipment upgrading delta package Application program carries out the purpose upgraded.
In embodiments of the present invention, when obtaining upgrading delta package, first an APK can be divided into M Individual first file fragment, and the 2nd APK is divided into N number of second file fragment, further according to M First file fragment and N number of second file fragment determine the magnitude of deviation between the 2nd APK and an APK To obtain upgrading delta package, say, that be that first APK to high lowest version carries out file section, so APK can be divided into multiple file fragment from entirety, compare by between file fragment the most again To obtain magnitude of deviation, owing to the unit mutually compared is less, the dynamics of comparing difference is bigger, The magnitude of deviation being achieved in that is the most accurate, and it is poor to avoid also serving as the redundancy of repetition as far as possible A part for different amount, the effectiveness compared with lifting, also ensure that the accurate of upgrading delta package, say, that Ensureing can reduce on the premise of upgrading delta package is accurately the data volume of upgrading delta package as far as possible, so may be used Think the flow that terminal unit saving is downloaded, shorten the download time of terminal unit, improve software upgrading Efficiency.And also the file fragment that multiple data volumes are less can be compared parallel, so can shorten and obtain The time of delta package of must upgrading, further improve the efficiency of software upgrading.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under, Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of the method for software upgrading in the embodiment of the present invention;
Fig. 2 is the structured flowchart of electronic equipment in the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise The every other embodiment obtained, broadly falls into the scope of protection of the invention.
The method of the software upgrading that the embodiment of the present invention provides and electronic equipment, send out receiving terminal unit After the software upgrading solicited message sent, it may be determined that terminal unit needs to rise the first application program Level, and may determine that the first application program used in terminal unit is by the first Android installation kit (Android Package, APK) installs, in order to meet the upgrade requirement of terminal unit, Ke Yicong The multiple APKs corresponding with the first application program determine that software version is higher than the APK of an APK, Such as determine the 2nd APK, quickly upgrade for the ease of terminal unit, it may be determined that the 2nd APK with Magnitude of deviation between oneth APK is to obtain upgrading delta package, owing to the software version of the 2nd APK is higher than The software version of the oneth APK, so when i.e. realizing first after installing terminal equipment upgrading delta package Application program carries out the purpose upgraded.
In embodiments of the present invention, when obtaining upgrading delta package, first an APK can be divided into M Individual first file fragment, and the 2nd APK is divided into N number of second file fragment, further according to M First file fragment and N number of second file fragment determine the magnitude of deviation between the 2nd APK and an APK To obtain upgrading delta package, say, that be that first APK to high lowest version carries out file section, so APK can be divided into multiple file fragment from entirety, compare by between file fragment the most again To obtain magnitude of deviation, owing to the unit mutually compared is less, the dynamics of comparing difference is bigger, The magnitude of deviation being achieved in that is the most accurate, and it is poor to avoid also serving as the redundancy of repetition as far as possible A part for different amount, the effectiveness compared with lifting, also ensure that the accurate of upgrading delta package, say, that Ensureing can reduce on the premise of upgrading delta package is accurately the data volume of upgrading delta package as far as possible, so may be used Think the flow that terminal unit saving is downloaded, shorten the download time of terminal unit, improve software upgrading Efficiency.And also the file fragment that multiple data volumes are less can be compared parallel, so can shorten and obtain The time of delta package of must upgrading, further improve the efficiency of software upgrading.
The embodiment of the present invention provides a kind of method of software upgrading, and the method can apply to software upgrading clothes In the method for the software upgrading provided in business device, the i.e. embodiment of the present invention, the executive agent of each step can be Software update service device.Software update service device storage has the developer of application program or developer to upload To should the APK of different editions of application program, such as can according to the time order and function of APK exploitation, APK the most backward is referred to as the APK of higher software, and the APK of highest version is relative to lowest version For APK, usually carry out some improvement functionally, optimized or increased some function newly, with As a example by one game application, the APK installing relatively lowest version only has 50 outposts of the tax office, and installs higher-version APK then can have 150 outposts of the tax office, be the equal of to add some new functions, so more in order to use New function, then exist upgrading software needs.Schematically illustrate, such as yy_1.0.APK, Yy_1.1.APK, yy_1.2.APK are the APK of three versions from low to high respectively.
Referring to Fig. 1, the flow process of the method for the software upgrading in the embodiment of the present invention is described as follows.
Step 101: the software upgrading solicited message that receiving terminal apparatus sends;Wherein, software upgrading please Asking information to upgrade, for request, the first application program installed in terminal unit, software upgrading is asked It is that an APK installs the first application program according to software version that information shows that terminal unit is currently.
When user needs to carry out software upgrading, can be by terminal unit be operated with triggering terminal Equipment sends software upgrading solicited message, such as user to software update service device can be by clicking on terminal The upgrade button of display or triggering terminal equipment transmission software upgrading by the way of phonetic entry on equipment Solicited message, or terminal unit can also independently trigger and carry out software upgrading, such as at terminal unit Automatic software updating then can be triggered time under WI-FI network, etc..
By software upgrading solicited message, software update service device may determine that terminal unit needs which Individual application program is updated, such as, determine the first application program needed having installed in terminal unit Carry out upgrading to update, simultaneously can it may also be determined that terminal unit currently used be which software version, Such as determine be being currently used be software version be an APK.
Step 102: according to software upgrading solicited message, from the multiple APKs corresponding with the first application program Middle the 2nd APK determining that software version is higher than an APK.
Owing to software update service device can store the APK of the first application program different times, the most permissible Title according to application program determines which is the APK relevant to the first application program, or, permissible Directly all APKs relevant to the first application are stored in precalculated position.
Wherein, the software version of the 2nd APK be higher than an APK, such as can an APK high one Version, or can three versions higher than an APK, either ratio the oneth high several versions of APK, The purpose of software upgrading can be reached after the APK of more highest version is installed.
Optionally, so that the version obtained after this updating operation is up-to-date version, it it is i.e. exploitation The version that business or developer's recent development go out, can using APK the highest for software in multiple APK as 2nd APK, specifically, can be using the APK of storage shortest time as the 2nd APK, because depositing Storage shortest time is shown to be developer or developer finally uploads, and i.e. shows to be probably finally to develop Latest edition, or, APK maximum for data volume can be defined as the 2nd APK, because exploitation Business generally is directed to function and adds or optimize the optimization carrying out software, so along with the rising of version, its Including data volume be likely to increasing.
Step 103 a: APK is divided into M the first file fragment, and the 2nd APK is drawn It is divided into N number of second file fragment.
Wherein, M and N is the integer more than or equal to 2, i.e. can be the most all by an APK and the Two APK are divided into multiple file fragment, and the value of M with N can be identical or can also be different.
In specific implementation process, such as, can divide by the way of file is cut into slices.
Due to the APK of the different editions for same application, its included kind of document is usually Identical, it is possible to according to file type, APK is divided in multiple file fragment, such as APK File including 5 types, then this APK can be divided into 5 file fragments, etc., and Owing to being usually identical for the quantity of documents included by multiple APK of same application, so can So that an APK and the 2nd APK is divided into the file fragment that quantity is equal, so can be so that will be with The file fragment of type carries out correspondence and compares, due to the magnitude of deviation one between same type of file fragment As will not be big especially, can be effectively improved, so adopting, the efficiency compared in this way.
Further, different is probably in same type file included information, and between APK Magnitude of deviation mainly may be by what different information included in the file of same type was determined, So when carrying out section and dividing, can divide for certain types of file, for example, it is possible to point The file of the first kind in an APK and the 2nd APK is not divided into the file fragment that quantity is equal, Wherein, the file of the first kind can be to show the file that software function increases and/or updates, because software Optimize and mainly function increase or change, so the number such as grade carried out for the file of the first kind The division of amount can be tried one's best and be obtained the magnitude of deviation between two APK quickly and accurately.
Further, for conventional APK, wherein generally comprise the file of classes.dex, can This classes.dex file to be regarded as the file of the above-mentioned first kind, so in specific implementation process In, the file of the entitled dex of suffix in an APK and the 2nd APK all can be divided into quantity phase Deng class file, and then to determine first quickly and accurately by the way of comparing class file Magnitude of deviation between APK and the 2nd APK, and then obtain upgrading delta package.
Step 104: according to M the first file fragment and N number of second file fragment, determine the 2nd APK With the magnitude of deviation of an APK to obtain upgrading delta package.
Obtain M the first file fragment for an APK and for the 2nd APK N number of the After two file fragments, can be by corresponding two-by-two with N number of second file fragment for M the first file fragment Between compare to carry out differentiation calculating, in order to ensure the specific aim compared, can be by M first Belong in file fragment and in N number of second file fragment the file fragment of same type between any two than Relatively, because the magnitude of deviation belonged between the file fragment of same type is relatively small, difference so can be improved The efficiency of different calculating, after carrying out comparison in difference respectively, can be using all of magnitude of deviation sum as Magnitude of deviation between two APK and an APK, so can according to a 2nd APK and APK it Between magnitude of deviation obtain the 2nd APK and be equivalent to the upgrading delta package of an APK.
Step 105: upgrading delta package is sent to terminal unit, so that terminal is entered according to increment AKU Row upgrading.
After acquisition the 2nd APK is equivalent to the upgrading delta package of an APK, the liter that can obtain Level delta package is sent to terminal unit, and terminal unit can obtain upgrading delta package, Jin Erke by downloading With by installing upgrading delta package to complete the renewal upgrading of software.
The method of the software upgrading that the embodiment of the present invention provides, is receiving the software liter that terminal unit sends After level solicited message, it may be determined that terminal unit needs to upgrade the first application program, and can It is by the first Android installation kit (Android to determine the first application program used in terminal unit Package, APK) install, in order to meet the upgrade requirement of terminal unit, can apply from first Multiple APK that program is corresponding determine that software version is higher than the APK of an APK, such as, determines 2nd APK, quickly upgrades for the ease of terminal unit, it may be determined that a 2nd APK and APK it Between magnitude of deviation to obtain upgrading delta package, owing to the software version of the 2nd APK is higher than an APK Software version, so when i.e. realizing the first application program is entered after installing terminal equipment upgrading delta package The purpose of row upgrading.
In embodiments of the present invention, when obtaining upgrading delta package, first an APK can be divided into M Individual first file fragment, and the 2nd APK is divided into N number of second file fragment, further according to M First file fragment and N number of second file fragment determine the magnitude of deviation between the 2nd APK and an APK To obtain upgrading delta package, say, that be that first APK to high lowest version carries out file section, so APK can be divided into multiple file fragment from entirety, compare by between file fragment the most again To obtain magnitude of deviation, owing to the unit mutually compared is less, the dynamics of comparing difference is bigger, The magnitude of deviation being achieved in that is the most accurate, and it is poor to avoid also serving as the redundancy of repetition as far as possible A part for different amount, the effectiveness compared with lifting, also ensure that the accurate of upgrading delta package, say, that Ensureing can reduce on the premise of upgrading delta package is accurately the data volume of upgrading delta package as far as possible, so may be used Think the flow that terminal unit saving is downloaded, shorten the download time of terminal unit, improve software upgrading Efficiency.And also the file fragment that multiple data volumes are less can be compared parallel, so can shorten and obtain The time of delta package of must upgrading, further improve the efficiency of software upgrading.
Based on same inventive concept, referring to Fig. 2, the embodiment of the present invention provides a kind of electronic equipment, should Electronic equipment can be aforesaid software update service device, and this electronic equipment includes: receiver module 201, Determine module 202, divide module 203, acquisition module 204 and sending module 205, and the present invention is real Execute the receiver module 201 in example, determine module 202, division module 203, acquisition module 204 and send Module 205 can realize correlation function by hardware processor.Wherein:
Receiver module 201, the software upgrading solicited message sent for receiving terminal apparatus;Wherein, soft The first application program installed in terminal unit is upgraded by part upgrading request for request, software Upgrading request show terminal unit be currently according to software version be the oneth APK install first application Program;
Determine module 202, for according to software upgrading solicited message, from corresponding with the first application program Multiple APK determining, software version is higher than the 2nd APK of an APK;
Divide module 203, for an APK being divided into M the first file fragment, and by second APK is divided into N number of second file fragment, M and N is the integer more than or equal to 2;
Obtain module 204, for according to M the first file fragment and N number of second file fragment, determining The magnitude of deviation of a 2nd APK and APK is to obtain upgrading delta package;
Sending module 205, for upgrading delta package is sent to terminal unit so that terminal unit according to Increment AKU is upgraded.
Optionally, the quantity of M the first file fragment and N number of second file fragment is equal.
Optionally, divide module 203 to be used for:
Respectively the first kind file that an APK neutralizes in the 2nd APK is divided into the literary composition that quantity is equal Pieces section;Wherein, first kind file is to show the file that software function increases and/or updates.
Optionally, divide module 203 to be used for:
The file of the entitled dex of suffix in the oneth APK neutralization the 2nd APK is divided into quantity equal Class file.
Optionally, determine module 202 for:
According to software upgrading solicited message, from multiple APK, determine the APK conduct that software version is the highest 2nd APK;Wherein, the APK that software version is the highest is the APK of storage shortest time, or, software The APK that version is the highest is the APK that data volume is maximum
The electronic equipment that the embodiment of the present invention provides, is receiving the software upgrading request that terminal unit sends After information, it may be determined that terminal unit needs to upgrade the first application program, and may determine that In terminal unit use the first application program be by the first Android installation kit (Android Package, APK) install, in order to meet the upgrade requirement of terminal unit, can be from corresponding with the first application program Multiple APK in determine that software version is higher than the APK of an APK, such as determine the 2nd APK, Quickly upgrade for the ease of terminal unit, it may be determined that the magnitude of deviation between the 2nd APK and an APK To obtain upgrading delta package, owing to the software version of the 2nd APK is higher than the software version of an APK, So when the mesh that i.e. can realize the first application program is upgraded after installing terminal equipment upgrading delta package 's.
In embodiments of the present invention, when obtaining upgrading delta package, first an APK can be divided into M Individual first file fragment, and the 2nd APK is divided into N number of second file fragment, further according to M First file fragment and N number of second file fragment determine the magnitude of deviation between the 2nd APK and an APK To obtain upgrading delta package, say, that be that first APK to high lowest version carries out file section, so APK can be divided into multiple file fragment from entirety, compare by between file fragment the most again To obtain magnitude of deviation, owing to the unit mutually compared is less, the dynamics of comparing difference is bigger, The magnitude of deviation being achieved in that is the most accurate, and it is poor to avoid also serving as the redundancy of repetition as far as possible A part for different amount, the effectiveness compared with lifting, also ensure that the accurate of upgrading delta package, say, that Ensureing can reduce on the premise of upgrading delta package is accurately the data volume of upgrading delta package as far as possible, so may be used Think the flow that terminal unit saving is downloaded, shorten the download time of terminal unit, improve software upgrading Efficiency.And also the file fragment that multiple data volumes are less can be compared parallel, so can shorten and obtain The time of delta package of must upgrading, further improve the efficiency of software upgrading.
Device embodiment described above is only schematically, wherein said illustrates as separating component Unit can be or may not be physically separate, the parts shown as unit can be or Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words Dividing and can embody with the form of software product, this computer software product can be stored in computer can Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. the method for a software upgrading, it is characterised in that including:
The software upgrading solicited message that receiving terminal apparatus sends;Wherein, described software upgrading solicited message Upgrading, for request, the first application program installed in described terminal unit, described software upgrading please Ask information show described terminal unit be currently according to software version be first Android installation kit APK install institute State the first application program;
According to described software upgrading solicited message, from the multiple APKs corresponding with described first application program Determine that software version is higher than the 2nd APK of a described APK;
A described APK is divided into M the first file fragment, and described 2nd APK is divided For N number of second file fragment, M and N is the integer more than or equal to 2;
According to described M the first file fragment and described N number of second file fragment, determine the 2nd APK with The magnitude of deviation of the oneth APK is to obtain upgrading delta package;
Described upgrading delta package is sent to described terminal unit, so that described terminal unit is according to described increasing Amount AKU is upgraded.
Method the most according to claim 1, it is characterised in that described M the first file fragment and The quantity of described N number of second file fragment is equal.
Method the most according to claim 2, it is characterised in that a described APK is divided into M Individual first file fragment, and described 2nd APK is divided into N number of second file fragment, including:
Respectively the first kind file in a described APK and in described 2nd APK is divided into quantity phase Deng file fragment;Wherein, described first kind file is to show the literary composition that software function increases and/or updates Part.
Method the most according to claim 3, it is characterised in that respectively a described APK is neutralized First kind file in described 2nd APK is divided into the file fragment that quantity is equal, including:
The file of the entitled dex of suffix in a described APK and in described 2nd APK is divided into quantity Equal class class file.
5. according to the method described in any claim in claim 1-4, it is characterised in that according to institute State software upgrading solicited message, from the multiple APKs corresponding with described first application program, determine software version This is higher than the 2nd APK of a described APK, including:
According to described software upgrading solicited message, from the plurality of APK, determine that software version is the highest APK is as described 2nd APK;Wherein, the APK that described software version is the highest is storage shortest time APK, or, the APK that described software version is the highest is the APK that data volume is maximum.
6. an electronic equipment, it is characterised in that including:
Receiver module, the software upgrading solicited message sent for receiving terminal apparatus;Wherein, described soft The first application program installed in described terminal unit is upgraded by part upgrading request for request, Described software upgrading solicited message show described terminal unit be currently according to software version be first Android peace Dress bag APK installs described first application program;
Determine module, for according to described software upgrading solicited message, from described first application program pair The multiple APK answered determining, software version is higher than the 2nd APK of a described APK;
Divide module, for a described APK being divided into M the first file fragment, and by described 2nd APK is divided into N number of second file fragment, M and N is the integer more than or equal to 2;
Obtain module, be used for according to described M the first file fragment and described N number of second file fragment, Determine that the magnitude of deviation of a 2nd APK and APK is to obtain upgrading delta package;
Sending module, for described upgrading delta package is sent to described terminal unit, so that described terminal Equipment is upgraded according to described increment AKU.
Electronic equipment the most according to claim 6, it is characterised in that described M the first file sheet The quantity of section and described N number of second file fragment is equal.
Electronic equipment the most according to claim 7, it is characterised in that described division module is used for:
Respectively the first kind file in a described APK and in described 2nd APK is divided into quantity phase Deng file fragment;Wherein, described first kind file is to show the literary composition that software function increases and/or updates Part.
Electronic equipment the most according to claim 8, it is characterised in that described division module is used for:
The file of the entitled dex of suffix in a described APK and in described 2nd APK is divided into quantity Equal class file.
10. according to the electronic equipment described in any claim in claim 6-9, it is characterised in that institute State determine module for:
According to described software upgrading solicited message, from the plurality of APK, determine that software version is the highest APK is as described 2nd APK;Wherein, the APK that described software version is the highest is storage shortest time APK, or, the APK that described software version is the highest is the APK that data volume is maximum.
CN201610495276.0A 2016-06-28 2016-06-28 Software upgrading method and electronic equipment Pending CN105930197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610495276.0A CN105930197A (en) 2016-06-28 2016-06-28 Software upgrading method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610495276.0A CN105930197A (en) 2016-06-28 2016-06-28 Software upgrading method and electronic equipment

Publications (1)

Publication Number Publication Date
CN105930197A true CN105930197A (en) 2016-09-07

Family

ID=56828342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610495276.0A Pending CN105930197A (en) 2016-06-28 2016-06-28 Software upgrading method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105930197A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502725A (en) * 2016-09-30 2017-03-15 歌尔科技有限公司 The upgrade method of application program, equipment and electronic equipment
CN106598608A (en) * 2016-12-19 2017-04-26 深圳天珑无线科技有限公司 Application version changing method and apparatus, and related terminals
CN107168733A (en) * 2017-04-25 2017-09-15 北京五八信息技术有限公司 The generation of differential file bag and the update method of application program, device and system
WO2018126769A1 (en) * 2017-01-03 2018-07-12 中兴通讯股份有限公司 Information processing method and device
CN108491220A (en) * 2018-03-15 2018-09-04 苏州思必驰信息科技有限公司 Method of skill training and system
CN109309725A (en) * 2018-10-25 2019-02-05 深圳市腾讯信息技术有限公司 Using downloading and update method, device, computer equipment and storage medium
CN110502256A (en) * 2018-05-18 2019-11-26 佛山市顺德区美的电热电器制造有限公司 A kind of method for upgrading software, terminal and storage medium
CN110597190A (en) * 2018-06-13 2019-12-20 三菱重工业株式会社 Information relay device, remote service system, information relay method, and recording medium
WO2020108183A1 (en) * 2018-11-30 2020-06-04 中兴通讯股份有限公司 Method, apparatus and device for generating differential upgrade package
CN111708567A (en) * 2020-05-06 2020-09-25 北京五八信息技术有限公司 Application processing method and device
CN112732318A (en) * 2021-01-12 2021-04-30 武汉光庭信息技术股份有限公司 Singlechip firmware upgrading method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799445A (en) * 2012-05-03 2012-11-28 陈昊 Application upgrading method based on Android platform and system
CN103699408A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Software updating method and equipment
CN105205118A (en) * 2015-09-10 2015-12-30 邯郸职业技术学院 Image file synchronization method based on file partition
CN105404521A (en) * 2014-05-30 2016-03-16 广州市动景计算机科技有限公司 Incremental upgrading method and relevant device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799445A (en) * 2012-05-03 2012-11-28 陈昊 Application upgrading method based on Android platform and system
CN103699408A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Software updating method and equipment
CN105404521A (en) * 2014-05-30 2016-03-16 广州市动景计算机科技有限公司 Incremental upgrading method and relevant device
CN105205118A (en) * 2015-09-10 2015-12-30 邯郸职业技术学院 Image file synchronization method based on file partition

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502725A (en) * 2016-09-30 2017-03-15 歌尔科技有限公司 The upgrade method of application program, equipment and electronic equipment
CN106502725B (en) * 2016-09-30 2019-08-20 歌尔科技有限公司 Upgrade method, equipment and the electronic equipment of application program
CN106598608A (en) * 2016-12-19 2017-04-26 深圳天珑无线科技有限公司 Application version changing method and apparatus, and related terminals
WO2018126769A1 (en) * 2017-01-03 2018-07-12 中兴通讯股份有限公司 Information processing method and device
CN107168733A (en) * 2017-04-25 2017-09-15 北京五八信息技术有限公司 The generation of differential file bag and the update method of application program, device and system
CN107168733B (en) * 2017-04-25 2020-07-17 北京五八信息技术有限公司 Method, device and system for generating differential file package and updating application program
CN108491220A (en) * 2018-03-15 2018-09-04 苏州思必驰信息科技有限公司 Method of skill training and system
CN110502256A (en) * 2018-05-18 2019-11-26 佛山市顺德区美的电热电器制造有限公司 A kind of method for upgrading software, terminal and storage medium
CN110597190A (en) * 2018-06-13 2019-12-20 三菱重工业株式会社 Information relay device, remote service system, information relay method, and recording medium
CN109309725A (en) * 2018-10-25 2019-02-05 深圳市腾讯信息技术有限公司 Using downloading and update method, device, computer equipment and storage medium
CN109309725B (en) * 2018-10-25 2021-10-08 深圳市腾讯信息技术有限公司 Application downloading and updating method and device, computer equipment and storage medium
WO2020108183A1 (en) * 2018-11-30 2020-06-04 中兴通讯股份有限公司 Method, apparatus and device for generating differential upgrade package
CN111708567A (en) * 2020-05-06 2020-09-25 北京五八信息技术有限公司 Application processing method and device
CN112732318A (en) * 2021-01-12 2021-04-30 武汉光庭信息技术股份有限公司 Singlechip firmware upgrading method

Similar Documents

Publication Publication Date Title
CN105930197A (en) Software upgrading method and electronic equipment
US10348804B2 (en) System to automatically process components on a device
CN106415494B (en) Enhanced updating of digital content
US9591428B2 (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
KR100663415B1 (en) System and method for updating dataset versions resident on a wireless device
CN105573780B (en) A kind of mobile terminal operating system upgrade method and device based on container
CN100492292C (en) Automatic backup storage for firmware upgrading
CN104066077A (en) OTA downloading and upgrading method and device thereof
CN109445827B (en) Game updating method and device, electronic equipment and storage medium
CN106572372A (en) Set-top box upgrading method and set-top box
CN104918114B (en) A kind of operating system update method and device
CN102833350A (en) Processing method and processing device of WebApp updating
CN109857423A (en) Program version update method, device, server and readable storage medium storing program for executing
CN105530130A (en) Method and device for upgrading Over-The-Air downloading technology
US8893116B2 (en) Installation engine and package format for parallelizable, reliable installations
CN105049514A (en) File downloading method and file downloading device
CN105704241A (en) Client terminal program updating method and system and a service platform
CN110597545A (en) Hot patch intelligent upgrading method and system based on OTA component
CN108469960B (en) Version management method and device
CN107463390B (en) Software upgrading method and upgrading server
EP3260981B1 (en) Information processing apparatus, information processing system, and information processing method for updating firmware
CN105204914B (en) Application software method for down loading and device
EP3346642A1 (en) Method and device for managing network element model
CN112882733B (en) Application updating method and device, electronic equipment and storage medium
EP2680135A1 (en) Methods for updating applications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160907