CN106775845A - A kind of method of software installation upgrading - Google Patents

A kind of method of software installation upgrading Download PDF

Info

Publication number
CN106775845A
CN106775845A CN201611084766.8A CN201611084766A CN106775845A CN 106775845 A CN106775845 A CN 106775845A CN 201611084766 A CN201611084766 A CN 201611084766A CN 106775845 A CN106775845 A CN 106775845A
Authority
CN
China
Prior art keywords
installation
application
equipment
software
component
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
CN201611084766.8A
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.)
You Pu Information Technology Co Ltd Of Ufsoft
Original Assignee
You Pu Information Technology Co Ltd Of Ufsoft
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 You Pu Information Technology Co Ltd Of Ufsoft filed Critical You Pu Information Technology Co Ltd Of Ufsoft
Priority to CN201611084766.8A priority Critical patent/CN106775845A/en
Publication of CN106775845A publication Critical patent/CN106775845A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method of software installation upgrading, due to mainly including:The application message installed on collecting device, server calculates AKU according to the application inventory installed in equipment, and application to be installed, merges installation/AKU according to existing application in difference installation kit and equipment, finally installs upgrade application;Such that it is able to overcome flow interaction in the prior art limited, it is impossible to save flow when software is installed first and take, installed first and network traffics during software upgrading so as to greatly reduce software.

Description

A kind of method of software installation upgrading
Technical field
The present invention relates to wireless communication technique field, in particular it relates to a kind of method of software installation upgrading.
Background technology
The various softwares that Android intelligent equipment is installed, are to be downloaded by the assistant on application shop, browser or PC, installed 's.Most previous realization, either the new clothes of software still upgrade, software installation bag must be downloaded completely.This mode is to mobile phone Flow consumption is larger, server network bandwidth resources is taken also larger.
Current generally existing increment upgrading means.Such as 103095838 B of A, CN of CN 102707977.These means exist During software upgrading, it is only necessary to download the difference section between new edition and old edition.After Android device receives discrepancy data, according to these Old installation kit in variance data and equipment can merge new edition installation kit.Greatly reduce traffic fee during software upgrading With.
Existing software delta upgrading mode, due to only make use of the information of the previous version of software, without using in equipment The other software information of installation.Flow interaction is limited, it is impossible to saves flow when software is installed first and takes.
CN 102707977A, CN103095838B, CN105740016A, CN104991791A and CN 105657191 with The present invention is compared, and the present invention utilizes other software inner assembly information, further reduces software delta AKU size.
The content of the invention
It is an object of the present invention to regarding to the issue above, a kind of method of software installation upgrading be proposed, to realize subtracting significantly Few software install first and network traffics during software upgrading advantage.
To achieve the above object, the technical solution adopted by the present invention is:A kind of method of software installation upgrading, mainly includes Following steps:
Step 1:When:Equipment needs to install or during upgrade application, installs or ROMPaq is not directly to server request application The application inventory installed on installation kit, first collecting device, and calculate the SHA1 values of each application;
Step 2:After the completion of collection, install or ROMPaq sends to server and installs or upgrade request;
Step 3:After server receives installation or upgrade request, according to the application inventory installed in equipment, and to install Or the application of upgrading, calculate increment installation kit or AKU;
Step 4:Merge installation kit or AKU according to existing application in difference installation kit and equipment, obtain full dose installation kit;
Step 5:The full dose installation kit that installation finally gives.
Further, in step 2, request content includes all applications installed in operating system version, equipment Inventory, the SHA1 values and needs installation or the application message upgraded of each application.
Further, specifically, after server receives installation/upgrade request, being wrapped using the application in server in step 3 The component version database information for containing, calculates increment installation kit, specifically includes,
When all in equipment of a certain mounting assembly installed using it is interior do not exist or a certain mounting assembly in equipment The application memory of installation exists, but its SHA1 values have installed different using the SHA1 values of interior component of the same name from all, then do not repair Change corresponding component description information in MAINFEST.MF files, also do not reject module information from final installation kit;
When a certain mounting assembly, mounted application memory exists in equipment, and SHA1 values also identical component, from installation kit The component is rejected, and changes MAINFEST.MF file contents, will there is the group in addition equipment before the routing information of correspondence component The Apply Names of part.
Further, after step 4 is specifically, equipment receives increment installation/upgrade installation package, analysis MAINFEST.MF texts Content in part, when finding to carry application message on component path, extraction assembly content in the application installed in slave unit, And this section of content is combined into increment installation/AKU, when all of mounting assembly is all in equipment in mounted application In the presence of, and it is also identical to find SHA1 values, then all extract and be combined into installation/AKU, finally gives correspondence software Full dose installation kit.
The method of a kind of software installation upgrading of various embodiments of the present invention, due to mainly including:Pacify on collecting device The application message of dress, server calculates AKU according to the application inventory installed in equipment, and application to be installed, Merge installation/AKU according to existing application in difference installation kit and equipment, upgrade application is finally installed;Such that it is able to overcome Flow interaction is limited in the prior art, it is impossible to saves flow when software is installed first and takes, so as to greatly reduce software Network traffics when installation first and software upgrading.
Other features and advantages of the present invention will be illustrated in the following description, also, the partly change from specification Obtain it is clear that or being understood by implementing the present invention.
Below by drawings and Examples, technical scheme is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, with reality of the invention Applying example is used to explain the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram of the software installation upgrading described in the embodiment of the present invention;
Fig. 2 is the component composition structure chart of each application of Android device;
Fig. 3 is that non-existent component is downloaded originally in equipment, and other assemblies are carried from other application when installing new opplication in equipment The schematic diagram for taking;
Fig. 4 is the application upgrade schematic diagram in equipment.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Android device generally will not only install an application.As Fig. 2 Android devices are often mounted with multiple applications, each should Constituted with by multiple components, generally, it can install multiple applications.And each application will not generally only have a component, absolutely mostly Number situations each application be made up of multiple components.Android device, can all have the version information of itself respectively using, component.Phase It is identical with the same application version under device version, the content of same components version.
Different application has different version expressions, such as some applications use " ver 1.2.3 ", and other applications make With vocabulary such as " anniversary ceremony versions ".For the ease for the treatment of, the version information that ROMPaq is not marked using software oneself, and make With the SHA1 values of software as its version information.SHAl algorithms are Secure Hash Algorithm (Secure Hash Algorithm). For the input message of random length, SHAl can produce the eap-message digest of 160.Any minor variations of initial data are all Can allow the output valve significant change of SHA1.Although it should be noted that using SHA1 algorithms as software version in the present invention Indicia meanses, use the essence that SHA2, MD5 scheduling algorithm similar with SHA1 has no effect on this upgrade method instead.
The extracting method of software installation bag inner assembly and complement version information is:The installation kit is decompressed, is read in installation kit The SHA1 summary infos of each component described in MANIFEST.MF files under META-INF catalogues.
With reference to figure, 1, upgrade step is installed:
Step 1:When Android device needs one application of installation or upgrading one is applied.Install ROMPaq and not directly to Server asks for application installation package.And the application inventory installed first on collecting device, and calculate the SHA1 values of each application.
Step 2:After the completion of collection, ROMPaq sends upgrade request to server, and request content is included:
Operating system version
The inventory of all applications installed in equipment, the SHA1 values of each application.
Need the application installed or upgrade.
Step 3:After server receives installation/upgrade request.Using the application in server comprising component version data Storehouse information.Calculate increment installation kit.The component of the application software of mounted/upgrading is needed, must be within following three situation
The all installation of A, a certain mounting assembly in equipment does not exist using interior;
B, a certain the mounting assembly mounted application memory in equipment exist, but its SHA1 values have been installed using interior same with all The SHA1 values of name component are different.
C, a certain the mounting assembly mounted application memory in equipment exist, and can find SHA1 values also identical group Part.
If the situation of component is A or B, corresponding component description information in MAINFEST.MF files is not changed, Module information is not rejected from final installation kit.It is the component of C for situation, the component is rejected from installation kit, and change , will there is the Apply Names of the component in addition equipment before the routing information of correspondence component in MAINFEST.MF file contents.
Increment installation/upgrade installation package can obtain by step 3.
Step 4:After Android device receives increment installation/upgrade installation package, the content in analysis MAINFEST.MF files. It was found that when carrying application message on component path, then extraction assembly content in the application installed in slave unit.And by this section Content is combined into increment installation/AKU.When all of situation for the component of C is all extracted and is combined into installation/AKU Afterwards.Then obtain the full dose installation kit of correspondence software.
Step 5:The full dose installation kit that installation finally gives.Installation/the upgrading of software can be completed.
In Fig. 3, when installing new opplication in equipment, non-existent component is downloaded originally only in equipment.Other assemblies from Other application is extracted;
In Fig. 4, the application upgrade in equipment is also only that non-existent component is downloaded in equipment, remaining component from the machine other Using acquisition.Commonly used previous release has most Reusable Components.
Following beneficial effect can at least be reached:
1:The Android application issue of enterprises, because same enterprise often uses identical technical pattern and application program frame Frame.So the component repetitive rate between different application is very high.The present invention can greatly reduce network when the multiple applications of enterprise are issued Bandwidth occupancy.
2:Android application shop, because the ecosystem of Android application reaches its maturity, different Android applications gradually start together Matter, overwhelming majority application uses the outstanding component of identical.Such as PhoneGap, Unity3D, WebKit, jQuery, Xamaria these components almost cover all Android applications.Can greatly reduce network across the means of application fetches repetitive component Flow.
Finally it should be noted that:The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, Although being described in detail to the present invention with reference to the foregoing embodiments, for a person skilled in the art, it still may be used Modified with to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic. All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., should be included in of the invention Within protection domain.

Claims (4)

1. a kind of method that software installation is upgraded, it is characterised in that comprise the following steps:
Step 1:When equipment needs installation or upgrade application, install or ROMPaq is installed not directly to server request application Bag, the application inventory installed first on collecting device, and calculate the SHA1 values of each application;
Step 2:After the completion of collection, install or ROMPaq sends to server and installs or upgrade request;
Step 3:After server receives installation or upgrade request, according to the application inventory installed in equipment, and to install Or the application of upgrading, calculate increment installation kit or AKU;
Step 4:Merge installation kit or AKU according to existing application in difference installation kit and equipment, obtain full dose installation kit;
Step 5:The full dose installation kit that installation finally gives.
2. the method that software installation according to claim 1 is upgraded, it is characterised in that in step 2, request content includes behaviour Make the inventory of all applications installed in system version, equipment, SHA1 values of each application and needing are installed or upgrading Application message.
3. the method that software installation according to claim 2 is upgraded, it is characterised in that specifically, server is received in step 3 To after installation/upgrade request, using the application in server comprising component version database information, calculate increment installation kit, Specifically include,
When all in equipment of a certain mounting assembly installed using it is interior do not exist or a certain mounting assembly in equipment The application memory of installation exists, but its SHA1 values have installed different using the SHA1 values of interior component of the same name from all, then do not repair Change corresponding component description information in MAINFEST.MF files, also do not reject module information from final installation kit;
When a certain mounting assembly, mounted application memory exists in equipment, and SHA1 values also identical component, from installation kit The component is rejected, and changes MAINFEST.MF file contents, will there is the group in addition equipment before the routing information of correspondence component The Apply Names of part.
4. the method that software installation according to claim 3 is upgraded, it is characterised in that step 4 is specifically, equipment receives increasing After amount installation/upgrade installation package, the content in analysis MAINFEST.MF files, when finding to carry application message on component path, Extraction assembly content in the application installed in slave unit, and this section of content is combined into increment installation/AKU, work as institute Some mounting assemblies mounted application memory all in equipment exists, and it is also identical to find SHA1 values, then all extract and close And enter installation/AKU, finally give the full dose installation kit of correspondence software.
CN201611084766.8A 2016-11-30 2016-11-30 A kind of method of software installation upgrading Pending CN106775845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611084766.8A CN106775845A (en) 2016-11-30 2016-11-30 A kind of method of software installation upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611084766.8A CN106775845A (en) 2016-11-30 2016-11-30 A kind of method of software installation upgrading

Publications (1)

Publication Number Publication Date
CN106775845A true CN106775845A (en) 2017-05-31

Family

ID=58914752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611084766.8A Pending CN106775845A (en) 2016-11-30 2016-11-30 A kind of method of software installation upgrading

Country Status (1)

Country Link
CN (1) CN106775845A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170465A (en) * 2018-01-04 2018-06-15 武汉斗鱼网络科技有限公司 A kind of version information management method, electronic equipment and readable storage medium storing program for executing
CN110673875A (en) * 2019-09-19 2020-01-10 杭州安恒信息技术股份有限公司 Safe software full-scale packaging and installing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071839A1 (en) * 2003-09-25 2005-03-31 Curitel Communications, Inc. Communication terminal and communication network for partially updating software, software update method, and software creation device and method therefor
CN102707977A (en) * 2012-05-17 2012-10-03 江苏中科梦兰电子科技有限公司 Increment upgrading method based on Android application software
CN103095838A (en) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 Method for upgrading Android smartphone software through downloading incremental upgrade package
CN104426924A (en) * 2013-08-21 2015-03-18 腾讯科技(深圳)有限公司 Method, apparatus, client, server and system for updating application software
CN104539676A (en) * 2014-12-18 2015-04-22 深圳市腾讯计算机***有限公司 Method, device and system for providing and obtaining application installation packets

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071839A1 (en) * 2003-09-25 2005-03-31 Curitel Communications, Inc. Communication terminal and communication network for partially updating software, software update method, and software creation device and method therefor
CN102707977A (en) * 2012-05-17 2012-10-03 江苏中科梦兰电子科技有限公司 Increment upgrading method based on Android application software
CN103095838A (en) * 2013-01-16 2013-05-08 福州博远无线网络科技有限公司 Method for upgrading Android smartphone software through downloading incremental upgrade package
CN104426924A (en) * 2013-08-21 2015-03-18 腾讯科技(深圳)有限公司 Method, apparatus, client, server and system for updating application software
CN104539676A (en) * 2014-12-18 2015-04-22 深圳市腾讯计算机***有限公司 Method, device and system for providing and obtaining application installation packets

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170465A (en) * 2018-01-04 2018-06-15 武汉斗鱼网络科技有限公司 A kind of version information management method, electronic equipment and readable storage medium storing program for executing
CN110673875A (en) * 2019-09-19 2020-01-10 杭州安恒信息技术股份有限公司 Safe software full-scale packaging and installing method

Similar Documents

Publication Publication Date Title
CN102622241B (en) A kind of method for upgrading software and device
CN103095838B (en) A kind of method of Android smartphone software of being upgraded by download increment AKU
CN104615466B (en) A kind of cloud platform dispositions method and system
CN107729352A (en) page resource loading method and terminal device
CN100421072C (en) Method for realizing software updating
CN106484453B (en) Method and device for realizing system upgrading
CN105573790A (en) Vehicle-mounted system software upgrade method, vehicle-mounted system and software server
KR101198583B1 (en) Apparatus of multimedia middle ware using metadata and management method and storing medium thereof
CN104346167A (en) Method and device for generating application channel package
CN108491236A (en) A kind of plug-in loading method, device and computer readable storage medium
CN106201577B (en) A kind of method and device updating Lua file
CN101657793B (en) Method, system and computer program for configuring firewalls
CN105763626A (en) SDK initialization method suitable for application client end payment
CN104699511B (en) Plug-in unit upgrade method and device
CN102622550B (en) Safe online patch check system facing terminal computers
CN106210827B (en) A kind of method and system of the more CA of dynamic configuration set-top box
CN106547576A (en) The acquisition methods and device of configuration file
CN105391763A (en) Method and server for reinforcing a plurality of apk files
US20170262263A1 (en) Process and system for the generation of an operating program in the form of a mobile application that is capable of operating on a mobile device
CN106682491A (en) Application downloading method and device
CN106557348A (en) View methods of exhibiting and device
CN112256989A (en) Page loading method and device based on offline package, terminal equipment and storage medium
CN106775845A (en) A kind of method of software installation upgrading
CN106250548A (en) A kind of code update method
CN106502685A (en) A kind of upgrade method of data base and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication