CN106648723A - Upgrading method and device of iOS system application program and system - Google Patents
Upgrading method and device of iOS system application program and system Download PDFInfo
- Publication number
- CN106648723A CN106648723A CN201610362991.7A CN201610362991A CN106648723A CN 106648723 A CN106648723 A CN 106648723A CN 201610362991 A CN201610362991 A CN 201610362991A CN 106648723 A CN106648723 A CN 106648723A
- Authority
- CN
- China
- Prior art keywords
- file
- installation kit
- legacy version
- listed files
- application
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44573—Execute-in-place [XIP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses an upgrading method and device of an iOS system application program and a system, and relates to the technical field of information. The network resource consumed when an application version in an iOS system is upgraded is reduced, and the efficiency of the application version upgrade is improved. According to the main technical scheme, when the application version needs to be upgraded, firstly each file corresponding to an installation package with the latest version is obtained; afterwards whether file information corresponding to each file is equal to the file information of the installation package with the old version or not is detected in sequence; then the file different from file information of the installation package with the old version is extracted from each file; finally the installation package corresponding to the application with the latest version is generated according to the extracted file so as to make the client-side conduct application program upgrade according to the installation package corresponding to the application with the latest version. The upgrading method and device of the iOS system application program and the system are mainly used for upgrading the application version in the iOS system.
Description
Technical field
The present invention relates to areas of information technology, more particularly to a kind of update method of iOS system application program, device and it is
System.
Background technology
With the continuous development of information technology, all types of software applications of user's different demands are met in iOS system
More and more, people the various activities such as can be done shopping, be chatted, being learnt by application.Each application vendor is in order to preferably be
User group provides service, constantly can correct leak present in current application by updating application version.
At present, because iOS system is more closed, application file obtains authority and limits more, therefore server is entering
When row application version is issued, all files needed for configuration is this time installed generally in the installation kit of latest edition application such as should
With intrinsic CONFIG.SYS, newly-increased file etc., cause the file amount of the installation kit of existing latest edition application larger, carrying out
When application version updates, network resource consumption can be caused larger.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of update method, the apparatus and system of iOS system application program, main
Syllabus be solve carry out in iOS system application version update when, the larger problem of network resource consumption, improve application version
Update efficiency.
To reach above-mentioned purpose, the present invention provides following technical scheme:
On the one hand, the present invention provides a kind of update method of iOS system application program, including:
When detecting application program and there is redaction, corresponding each file of the latest edition installation kit is obtained;
Detect that respectively corresponding fileinfo is described each file with the fileinfo of the legacy version installation kit successively
It is no identical;
Extract from described each file and there are different files from the fileinfo of the legacy version installation kit;
The corresponding installation kit of latest edition application according to the file generated for extracting, so that client is according to institute
Stating the corresponding installation kit of latest edition application carries out application program update.
On the other hand, the present invention provides the update method of another kind of iOS system application program, including:
Detection application program whether there is redaction;
If existing, the corresponding installation kit of the latest edition application is obtained from server, preserved in the installation kit
There are different files from fileinfo in legacy version installation kit;
There are different files according to from fileinfo in legacy version installation kit, local application is updated.
Another further aspect, the present invention provides a kind of server, including:
Acquiring unit, for when detecting application program and there is redaction, obtaining the latest edition installation kit correspondence
Each file;
Detector unit, for detecting that described each file distinguishes corresponding fileinfo and the legacy version installation kit successively
Fileinfo it is whether identical;
Extraction unit, for extract from described each file exist from the fileinfo of the legacy version installation kit it is different
File;
Signal generating unit, for the corresponding installation kit of latest edition application according to the file generated for extracting, so that
Obtain client carries out application program update according to the corresponding installation kit of the latest edition application.
Another aspect, the present invention provides a kind of client, including:
Detector unit, for detecting that application program whether there is redaction;
Acquiring unit, if for existing, from server the corresponding installation kit of the latest edition application, the peace are obtained
Preserve in dress bag and there are different files from fileinfo in legacy version installation kit;
, there are different files from fileinfo in legacy version installation kit for basis, to locally applied journey in updating block
Sequence is updated.
Another aspect, the present invention provides a kind of server, including:
Processor, is configured to:
When detecting application program and there is redaction, corresponding each file of the latest edition installation kit is obtained;
Detect that respectively corresponding fileinfo is described each file with the fileinfo of the legacy version installation kit successively
It is no identical;
Extract from described each file and there are different files from the fileinfo of the legacy version installation kit;
The corresponding installation kit of latest edition application according to the file generated for extracting, so that client is according to institute
Stating the corresponding installation kit of latest edition application carries out application program update;
Memory, is configured to store the executable instruction of the processor;
Bus, is configured to couple the processor and the memory.
Another aspect, the present invention provides a kind of client, including:
Processor, is configured to:
Detection application program whether there is redaction;
If existing, the corresponding installation kit of the latest edition application is obtained from server, preserved in the installation kit
There are different files from fileinfo in legacy version installation kit;
There are different files according to from fileinfo in legacy version installation kit, local application is updated;
Memory, is configured to store the executable instruction of the processor;
Bus, is configured to couple the processor and the memory.
Another aspect, the present invention provides a kind of more new system of iOS system application program, including:Server and client side;
The server, for when detecting application program and there is redaction, obtaining the latest edition installation kit pair
Each file answered, then detects successively that described each file distinguishes the text of corresponding fileinfo and the legacy version installation kit
Whether part information is identical, then extract from described each file and there are different texts from the fileinfo of the legacy version installation kit
Part, finally according to the corresponding installation kit of latest edition application described in the file generated for extracting;
The client, for obtaining the corresponding installation kit of the latest edition application from server, in the installation kit
Preserve and there are different files from fileinfo in legacy version installation kit, according to existing with fileinfo in legacy version installation kit
Different files, is updated to local application.
By above-mentioned technical proposal, technical scheme provided in an embodiment of the present invention at least has following advantages:
A kind of update method, the apparatus and system of iOS system application program provided in an embodiment of the present invention, should when detecting
When there is redaction with program, corresponding each file of the latest edition installation kit is obtained first, then detect described successively
Whether each corresponding fileinfo of file difference is identical with the fileinfo of the legacy version installation kit, then from described each text
Extract in part and there are different files from the fileinfo of the legacy version installation kit, finally according to the file generated for extracting
The corresponding installation kit of the latest edition application, so that client is carried out according to the corresponding installation kit of the latest edition application
Application program update.With current server when application version issue is carried out, because iOS system is more closed, application program text
Part obtains authority and limits more, therefore all files phase needed for this time installing can be configured in the installation kit of latest edition application
Than the present invention only needs to configure the difference between latest edition and legacy version in the installation kit of latest edition application due to server
Different article part, reduces the file amount of installation kit, so as to reduce iOS system in application version Internet resources for consuming when updating,
Improve the efficiency of application version renewal.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred embodiment, and is not considered as to the present invention
Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the update method of iOS system application program provided in an embodiment of the present invention;
Fig. 2 shows the flow chart of the update method of another kind of iOS system application program provided in an embodiment of the present invention;
Fig. 3 shows a kind of structural representation of server provided in an embodiment of the present invention;
Fig. 4 shows a kind of structural representation of client provided in an embodiment of the present invention;
Fig. 5 shows the structural representation of another kind of server provided in an embodiment of the present invention;
Fig. 6 shows the structural representation of another kind of client provided in an embodiment of the present invention;
Fig. 7 shows a kind of renewal system schematic of iOS system application program provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here
Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
The update method of a kind of iOS system application program provided in an embodiment of the present invention, as shown in figure 1, methods described bag
Include:
101st, when detecting application program and there is redaction, corresponding each text of the latest edition installation kit is obtained
Part.
Wherein, the application program is the application program in iOS system.The file is specially this version and installs required
System file, function file, configuration file for wanting etc., in real time example is not limited the present invention.For example, the initial version of some application
This is 6.3.12, when application version 6.3.13 is detected the presence of, illustrates there is more recent application version, now obtains application version
6.3.13 the corresponding system file of installation kit, function file, configuration file etc..
102nd, detect that described each file is distinguished corresponding fileinfo and believed with the file of the legacy version installation kit successively
Whether breath is identical.
Wherein, the fileinfo can be for file identification information, file feature information, file binary message etc., this
Invent real-time example not limit.For example, file identification information can be file name information, and file feature information can be file
Size, file CRC (Cyclic Redundancy Check, CRC) etc. can reflect the information of file characteristic.
For the embodiment of the present invention, step 102 specifically can include:Detect that described each file distinguishes corresponding text successively
Part identification information whether there is in the listed files of the legacy version installation kit, preserve legacy version in the listed files each
Individual file distinguishes corresponding file identification information.For example, the file identification letter of corresponding some file of latest edition installation kit
Cease for file 1, then whether preserve file 1 in the listed files for detecting legacy version installation kit, the like, until latest edition
Corresponding each the file detection of installation kit is completed.
103rd, extract from described each file and there are different files from the fileinfo of the legacy version installation kit.
Wherein, the fileinfo difference is specifically as follows different file identification information, file feature information difference, file
Binary message is not equal, and the different mode of above-mentioned judgement may be used singly or in combin, and the embodiment of the present invention is not done
Limit.
For the embodiment of the present invention, step 103 specifically can include:The old edition intrinsic safety is extracted from described each file
Non-existent file in the listed files of dress bag.For example, the file identification information for preserving in the listed files of legacy version installation kit
For file 1, file 2, file 3, the file identification information of corresponding each file of latest edition installation kit be file 2, file 3,
File 4, then by detecting successively, can extract from corresponding each file of latest edition installation kit file 4 as with institute
There are different files in the fileinfo for stating legacy version installation kit.
Further, it is non-existent in the listed files that the legacy version installation kit is extracted from described each file
Can also include before file:Text present in the listed files of the legacy version installation kit is extracted from described each file
Part, detects that the corresponding file feature information of the file is with the file feature information of respective file in the legacy version installation kit
It is no identical.Now, step 103 specifically can include:The file row of the legacy version installation kit are extracted from described each file
Exist in non-existent file and the listed files in table and file that file feature information is differed.Need explanation
It is further to detect whether identical between file identification information identical file by file feature information, can further carries
The detection accuracy of high file, and then improve the accuracy that application version updates.
For example, the file identification information of the corresponding file of the latest edition installation kit is file 1, legacy version installation kit
The file that file identification information is file 1 is preserved in listed files, now further detects file 1 in latest edition installation kit
File size be 2.5M, the file size in legacy version installation kit be 2M, now confirm file 1 in latest edition installation kit
In it is different from legacy version installation kit, extracted.
Further, it is non-existent in the listed files that the legacy version installation kit is extracted from described each file
Can also include before the file that presence and file feature information are differed in file and the listed files:From described each
Extract in individual file in the listed files of the legacy version installation kit and exist and file feature information identical file;Detection institute
State the corresponding binary message of file whether identical with the binary message of respective file in the legacy version installation kit.Now,
Step 103 specifically can include:Extract non-existent in the listed files of the legacy version installation kit from described each file
Exist in file, the listed files and exist simultaneously in the file that differs of file feature information and the listed files
And the file that file feature information is identical and binary message is different.It should be noted that passing through the corresponding binary system of file
Information further detects that file identification information is identical and whether identical between file feature information identical file, can enter one
Step improves the detection accuracy of file, and then improves the accuracy that application version updates.
For example, the file identification information of the corresponding file of the latest edition installation kit is file 3, legacy version installation kit
The file that file identification information is file 3 is preserved in listed files, now further detects file 3 in latest edition installation kit
File size be 2M, the file size in legacy version installation kit is 2M, and file feature information is also identical, now further examines
The file binary message that file 3 is surveyed in latest edition installation kit is 0100, the file binary system letter in legacy version installation kit
Cease for 0101, confirm that file 3 is different from legacy version installation kit in latest edition installation kit, extracted.
104th, the corresponding installation kit of latest edition application according to the file generated for extracting.
Further, so that client carries out application program more according to the corresponding installation kit of the latest edition application
Newly.Because iOS system is more closed, application file obtains authority and limits more, and system is more closed, existing application
Update mode is full dose renewal, i.e., all files needed for this time installing can be configured in the installation kit of latest edition application, and
For the embodiment of the present invention, due to only including between latest edition and legacy version in the corresponding installation kit of latest edition application
Differential file, reduces the file amount of installation kit, so as to the Internet resources consumed when reducing client downloads installation kit, improves
Application version updates efficiency.
For the embodiment of the present invention, can also include before step 104:Obtain the corresponding text of the latest edition installation kit
Part list, the listed files preserves in the latest edition each file and distinguishes corresponding file identification information, from described
Non-existent files-designated in the corresponding listed files of the latest edition installation kit is extracted in the listed files of legacy version installation kit
Knowledge information simultaneously generates listed files to be deleted.Now, step 104 specifically can include:According to the file and described for extracting
Listed files to be deleted generates the corresponding installation kit of the latest edition application, so that client should according to the latest edition
Application version renewal is carried out with corresponding installation kit and old edition presents is deleted.It should be noted that by latest edition
Using listed files to be deleted is further configured in corresponding installation kit, client can be caused to carry out local discarded record clearly
Remove, and then further improve the renewal precision of application version.
For example, file 1, file 2, file 3, file 4, latest edition intrinsic safety are preserved in the listed files of legacy version installation kit
File 2, file 3, file 5 are preserved in the corresponding listed files of dress bag, now, is carried from the listed files of legacy version installation kit
Take file 1, file 4 and generate listed files to be deleted.
A kind of update method of iOS system application program provided in an embodiment of the present invention, exists when application program is detected
During redaction, corresponding each file of the latest edition installation kit is obtained first, described each file point is then detected successively
Whether not corresponding fileinfo identical with the fileinfo of the legacy version installation kit, then from described each file extract with
There are different files in the fileinfo of the legacy version installation kit, finally according to latest edition described in the file generated for extracting
The corresponding installation kit of this application, so that client carries out application program more according to the corresponding installation kit of the latest edition application
Newly.With current server when application version issue is carried out, because iOS system is more closed, application file obtains authority
Limit more, therefore all files that can be configured in the installation kit of latest edition application needed for this time installing are compared, the present invention
Because server only needs to configure the differential file between latest edition and legacy version in the installation kit of latest edition application, subtract
Lacked the file amount of installation kit, so as to reduce iOS system in application version Internet resources for consuming when updating, improve application
The efficiency of version updating.
Further, the embodiment of the present invention provides the update method of another kind of iOS system application program, as shown in Fig. 2 institute
The method of stating includes:
201st, detect that application program whether there is redaction.
Wherein, specifically more recent application version can be whether there is by client active detecting, or work as server
When more recent application version is issued in side, application version update notification is sent to client, the embodiment of the present invention is not limited.For example,
The initial version of some application is 6.3.10, when application version 6.3.11 is detected the presence of, illustrates there is more recent application version
This, now obtains the corresponding system file of application version 6.3.11 installation kits, function file, configuration file etc..
If the 202, there is latest edition application, from server the corresponding installation kit of the latest edition application is obtained.
Wherein, preserve in the installation kit and there are different files from fileinfo in legacy version installation kit.The text
Part information can be file identification information, file feature information, file binary message etc., and in real time example is not limited the present invention.
For example, file identification information can be file name information, and file feature information can be file size, file CRC (Cyclic
Redundancy Check, CRC) etc. can reflect the information of file characteristic.
203rd, according to there are different files from fileinfo in legacy version installation kit, local application is carried out more
Newly.
Because iOS system is more closed, application file obtains authority and limits more, and system is more closed, existing to answer
It is that full dose updates with program update mode, i.e., all texts needed for this time installing can be configured in the installation kit of latest edition application
Part, and for the embodiment of the present invention, due to only including latest edition and legacy version in the corresponding installation kit of latest edition application
Between differential file, reduce the file amount of installation kit, so as to consume when reducing client downloads installation kit network money
Source, improves application version and updates efficiency.
For the embodiment of the present invention, listed files to be deleted, the file row to be deleted are also preserved in the installation kit
Preserve in table and exist in the listed files of legacy version installation kit and non-existent in the listed files of latest edition installation kit
File identification information, now can also include after step 203:Will it is local it is preserving with the listed files to be deleted in each
File identification information is distinguished corresponding file and is deleted.
Further, can also include after step 203:Whether detection incremental update is successful, if it is not, then obtaining from server
Taking full dose installation kit carries out application version renewal, wherein, the whole before differential file screening is preserved in the full dose installation kit
File.When whether successful by detection incremental update, it is ensured that the success rate that application version updates.
The update method of another kind of iOS system application program provided in an embodiment of the present invention, when needing to enter to application version
When row updates, obtain the corresponding installation kit of the latest edition application from server first, preserve in the installation kit with it is old
In version installation kit there are different files in fileinfo, then different according to existing from fileinfo in legacy version installation kit
File, to locally applied application version renewal is carried out.With current server when application version issue is carried out, due to iOS system
More close, application file obtains authority and limits more, therefore can configure this in the installation kit of latest edition application
All files needed for installing are compared, and the present invention only needs to configure newest in the installation kit of latest edition application due to server
Differential file between version and legacy version, reduces the file amount of installation kit, so as to reduce iOS system in application version more
The Internet resources consumed when new, improve the efficiency of application version renewal.
Further, implementing as method shown in Fig. 1, the embodiment of the present invention provides a kind of server, such as Fig. 3 institutes
Show, the server can include:Acquiring unit 31, detector unit 32, extraction unit 33, signal generating unit 34.
Acquiring unit 31, for when detecting application program and there is redaction, obtaining the latest edition installation kit pair
Each file answered;
Detector unit 32, installs for detecting that described each file distinguishes corresponding fileinfo successively with the legacy version
Whether the fileinfo of bag is identical;
Extraction unit 33, exists not for extracting from described each file with the fileinfo of the legacy version installation kit
Same file;
Signal generating unit 34, for according to extract the file generated described in the corresponding installation kit of latest edition application, with
So that client carries out application program update according to the corresponding installation kit of the latest edition application.
Further, the detector unit 32, specifically for detecting that described each file distinguishes corresponding files-designated successively
Knowledge information whether there is in the listed files of the legacy version installation kit, and legacy version is preserved in the listed files, and each is literary
Part distinguishes corresponding file identification information;
The extraction unit 33, the listed files specifically for extracting the legacy version installation kit from described each file
In non-existent file.
Further, the extraction unit 33, is additionally operable to from described each file extract the legacy version installation kit
File present in listed files;
The detector unit 32, is additionally operable to detect the corresponding file feature information of the file with the legacy version installation kit
Whether the file feature information of middle respective file is identical;
The extraction unit 33, is specifically additionally operable to from described each file extract the file row of the legacy version installation kit
Exist in non-existent file and the listed files in table and file that file feature information is differed.
Further, the extraction unit 33, is additionally operable to from described each file extract the legacy version installation kit
Exist and file feature information identical file in listed files;
The detector unit 32, in being additionally operable to detect the corresponding binary message of the file and the legacy version installation kit
Whether the binary message of respective file is identical;
The extraction unit 33, is specifically additionally operable to from described each file extract the file row of the legacy version installation kit
Presence and file feature information are differed in non-existent file, the listed files in table file and the file
Exist and file feature information is identical and binary message is different file in list.
Further, the acquiring unit 31, is additionally operable to obtain the corresponding listed files of the latest edition installation kit, institute
State listed files and preserve each corresponding file identification information of file difference in the latest edition;
The extraction unit 33, is additionally operable to from the listed files of the legacy version installation kit extract the latest edition intrinsic safety
Non-existent file identification information in the corresponding listed files of dress bag;
The signal generating unit 34, is additionally operable to generate listed files to be deleted;
The signal generating unit 34, is additionally operable to according to the file for extracting and the listed files to be deleted are generated most
The corresponding installation kit of redaction application, so that client carries out applying version according to the corresponding installation kit of the latest edition application
This renewal and old edition presents are deleted.
It should be noted that the device embodiment is corresponding with preceding method embodiment, and for ease of reading, this device embodiment
No longer the detail content in preceding method embodiment is repeated one by one, it should be understood that the device in the present embodiment can
Correspondence realizes the full content in preceding method embodiment.
For the embodiment of the present invention, the entity apparatus of above-mentioned server can with as shown in figure 5, including:Processor 51, is matched somebody with somebody
It is set to:
When detecting application program and there is redaction, corresponding each file of the latest edition installation kit is obtained;According to
Whether each file described in secondary detection distinguishes corresponding fileinfo identical with the fileinfo of the legacy version installation kit;From institute
State to be extracted in each file and there are different files from the fileinfo of the legacy version installation kit;According to the file for extracting
The corresponding installation kit of the latest edition application is generated, so that client is according to the corresponding installation kit of the latest edition application
Carry out application program update;
Memory 52, is configured to store the executable instruction of the processor;
Bus 53, is configured to couple the processor 51 and the memory 52.
Further, the processor 51 is additionally configured to:
Detect that described each file is distinguished corresponding file identification information and be whether there is in the legacy version installation kit successively
Listed files in, legacy version each file is preserved in the listed files and distinguishes corresponding file identification information;
Non-existent file in the listed files of the legacy version installation kit is extracted from described each file.
Further, the processor 51 is additionally configured to:
File present in the listed files of the legacy version installation kit is extracted from described each file;
Detect the file characteristic of the corresponding file feature information of the file and respective file in the legacy version installation kit
Whether information is identical;
Non-existent file and described is extracted in the listed files of the legacy version installation kit from described each file
The file that presence and file feature information are differed in listed files.
Further, the processor 51 is additionally configured to:
Extract from described each file in the listed files of the legacy version installation kit and exist and file feature information
Identical file;
Detect the binary message of the corresponding binary message of the file and respective file in the legacy version installation kit
It is whether identical;
Non-existent file, the file in the listed files of the legacy version installation kit are extracted from described each file
Exist in list and exist and file feature information in the file that differs of file feature information and the listed files
The different file of identical and binary message.
Further, the processor 51 is additionally configured to:
The corresponding listed files of the latest edition installation kit is obtained, the listed files is preserved in the latest edition
Each file distinguishes corresponding file identification information;
During the corresponding listed files of the latest edition installation kit is extracted from the listed files of the legacy version installation kit
Non-existent file identification information;
Generate listed files to be deleted;
The corresponding installation of the latest edition application is generated according to the file for extracting and the listed files to be deleted
Bag, so that client carries out application version renewal and old edition presents according to the corresponding installation kit of the latest edition application
Delete.
Server provided in an embodiment of the present invention, when needing to be updated application version, obtains first described newest
Corresponding each file of version installation kit, then detects successively that described each file distinguishes corresponding fileinfo and the old edition
Whether the fileinfo of this installation kit is identical, then the fileinfo with the legacy version installation kit is extracted from described each file
There are different files, finally according to the corresponding installation kit of latest edition application described in the file generated for extracting, so that
Client carries out application version renewal according to the corresponding installation kit of the latest edition application.Applied with current server
When version is issued, because iOS system is more closed, application file obtains authority and limits more, therefore can be in latest edition
Using installation kit in configuration this time install needed for all files compare, the present invention is only needed in latest edition due to server
Using installation kit in configure differential file between latest edition and legacy version, the file amount of installation kit is reduced, so as to drop
The Internet resources consumed when application version updates in low iOS system, improve the efficiency of application version renewal.
Further, implementing as method shown in Fig. 2, the embodiment of the present invention provides a kind of client, such as Fig. 4 institutes
Show, described device can include:Detector unit 41, acquiring unit 42, updating block 43.
Detector unit 41, for detecting that application program whether there is redaction;
Acquiring unit 42, it is described if for existing, from server the corresponding installation kit of the latest edition application is obtained
Preserve in installation kit and there are different files from fileinfo in legacy version installation kit;
, there are different files from fileinfo in legacy version installation kit for basis, to locally applied in updating block 43
Program is updated.
Further, listed files to be deleted is also preserved in the installation kit, is preserved in the listed files to be deleted
Have in the listed files of legacy version installation kit and exist and non-existent file identification in the listed files of latest edition installation kit
Information, described device also includes:
Unit 44 is deleted, for each file identification information in locally the preserve and listed files to be deleted to be distinguished
Corresponding file is deleted.
It should be noted that the device embodiment is corresponding with preceding method embodiment, and for ease of reading, this device embodiment
No longer the detail content in preceding method embodiment is repeated one by one, it should be understood that the device in the present embodiment can
Correspondence realizes the full content in preceding method embodiment.
For the embodiment of the present invention, the entity apparatus of above-mentioned client can with as shown in fig. 6, including:
Processor 61, is configured to:Detection application program whether there is redaction;
Transceiver 62, if being configured to exist, from server the corresponding installation kit of the latest edition application, institute is obtained
State to be preserved in installation kit and there are different files from fileinfo in legacy version installation kit;
Processor 61, is additionally configured to according to there are different files from fileinfo in legacy version installation kit, to local
Application program is updated;
Memory 63, is configured to store the executable instruction of the processor;
Bus 64, is configured to couple the processor 61 and the memory 63.
Further, the processor 61 is additionally configured to:
The local file corresponding with each file identification information difference in the listed files to be deleted for preserving is deleted.
Client provided in an embodiment of the present invention, when needing to be updated application version, obtains first from server
The corresponding installation kit of the latest edition application, preserves in the installation kit and exists not with fileinfo in legacy version installation kit
Same file, then according to there are different files from fileinfo in legacy version installation kit, carries out applying version to locally applied
This renewal.With current server when application version issue is carried out, because iOS system is more closed, application file is obtained
Authority limits more, therefore all files that can be configured in the installation kit of latest edition application needed for this time installing are compared, this
Invention only needs to configure the difference text between latest edition and legacy version in the installation kit of latest edition application due to server
Part, reduces the file amount of installation kit, so as to reduce iOS system in application version Internet resources for consuming when updating, improve
The efficiency that application version updates.
Further, implementing as method shown in Fig. 1 or Fig. 2, the embodiment of the present invention provides a kind of iOS system
The more new system of application program, as shown in fig. 7, the system can include:Server 71, client 72.
The server 71, for when detecting application program and there is redaction, obtaining the latest edition installation kit
Corresponding each file, then detects successively that described each file distinguishes corresponding fileinfo and the legacy version installation kit
Whether fileinfo identical, then extract from described each file exist from the fileinfo of the legacy version installation kit it is different
File, finally according to the corresponding installation kit of latest edition application described in the file generated for extracting;
The client 72, for obtaining the corresponding installation kit of the latest edition application, the installation kit from server
In preserve and there are different files from fileinfo in legacy version installation kit, according to depositing with fileinfo in legacy version installation kit
In different files, local application is updated.
It should be noted that the device embodiment is corresponding with preceding method embodiment, and for ease of reading, this device embodiment
No longer the detail content in preceding method embodiment is repeated one by one, it should be understood that the system in the present embodiment can
Correspondence realizes the full content in preceding method embodiment.
The more new system of a kind of iOS system application program provided in an embodiment of the present invention, when needing to carry out to application version
During renewal, corresponding each file of the latest edition installation kit is obtained first, described each file difference is then detected successively
Whether corresponding fileinfo is identical with the fileinfo of the legacy version installation kit, then extracts and institute from described each file
There are different files in the fileinfo for stating legacy version installation kit, finally according to latest edition described in the file generated for extracting
Using corresponding installation kit, so that client carries out application version more according to the corresponding installation kit of the latest edition application
Newly.With current server when application version issue is carried out, because iOS system is more closed, application file obtains authority
Limit more, therefore all files that can be configured in the installation kit of latest edition application needed for this time installing are compared, the present invention
Because server only needs to configure the differential file between latest edition and legacy version in the installation kit of latest edition application, subtract
Lacked the file amount of installation kit, so as to reduce iOS system in application version Internet resources for consuming when updating, improve application
The efficiency of version updating.
The server includes processor and memory, above-mentioned acquiring unit, detector unit, extraction unit, signal generating unit
Deng storing in memory as program unit, realized by computing device storage said procedure unit in memory
Corresponding function.
Kernel is included in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can arrange one
Or more, solved by adjusting kernel parameter when application version renewal is carried out, the larger problem of network resource consumption.
Memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/
Or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory, memory is deposited including at least one
Storage chip.
Present invention also provides a kind of computer program, when performing on data processing equipment, is adapted for carrying out just
The program code of beginningization there are as below methods step:When there is latest edition application, the latest edition installation kit correspondence is obtained
Each file;Detect that described each file distinguishes the fileinfo of corresponding fileinfo and the legacy version installation kit successively
It is whether identical;Extract from described each file and there are different files from the fileinfo of the legacy version installation kit;According to
The corresponding installation kit of latest edition application described in the file generated for extracting, so that client should according to the latest edition
Application version renewal is carried out with corresponding installation kit.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can be using complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware
Apply the form of example.And, the application can be adopted and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) is produced
The form of product.
The application is with reference to the update method according to the iOS system application program of the embodiment of the present application, device, system and meter
The flow chart and/or block diagram of calculation machine program product is describing.It should be understood that can by computer program instructions flowchart and/
Or the combination of each flow process in block diagram and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.Can
These computer program instructions are provided at all-purpose computer, special-purpose computer, Embedded Processor or other programmable datas
The processor of reason equipment is producing a machine so that held by the processor of computer or other programmable data processing devices
Capable instruction is produced for realizing in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames
The device of the function of specifying.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to
Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or
The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one
The step of function of specifying in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/
Or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory.Memory is that computer-readable is situated between
The example of matter.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by any method
Or technology is realizing information Store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.Define according to herein, calculate
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), the such as data-signal and carrier wave of modulation.
Embodiments herein is these are only, the application is not limited to.To those skilled in the art,
The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent,
Improve etc., within the scope of should be included in claims hereof.
Claims (15)
1. a kind of update method of iOS system application program, it is characterised in that include:
When detecting application program and there is redaction, corresponding each file of the latest edition installation kit is obtained;
Detect whether described each file distinguishes corresponding fileinfo identical with the fileinfo of legacy version installation kit successively;
Extract from described each file and there are different files from the fileinfo of the legacy version installation kit;
According to extract the file generated described in the corresponding installation kit of latest edition application so that client according to most
The corresponding installation kit of redaction application carries out application program update.
2. the update method of iOS system application program according to claim 1, it is characterised in that described to detect institute successively
State each file distinguish corresponding fileinfo it is whether identical with the fileinfo of the legacy version installation kit including:
Detect that described each file is distinguished corresponding file identification information and be whether there is in the text of the legacy version installation kit successively
In part list, legacy version each file is preserved in the listed files and distinguishes corresponding file identification information;
There are different files from the fileinfo of the legacy version installation kit and include in described extraction from described each file:
Non-existent file in the listed files of the legacy version installation kit is extracted from described each file.
3. the update method of iOS system application program according to claim 2, it is characterised in that it is described from it is described each
Extract in file in the listed files of the legacy version installation kit before non-existent file, methods described also includes:
File present in the listed files of the legacy version installation kit is extracted from described each file;
Detect the file feature information of the corresponding file feature information of the file and respective file in the legacy version installation kit
It is whether identical;
There are different fileinfo bags from the fileinfo of the legacy version installation kit in described extraction from described each file
Include:
Non-existent file and the file in the listed files of the legacy version installation kit are extracted from described each file
The file that presence and file feature information are differed in list.
4. the update method of iOS system application program according to claim 3, it is characterised in that it is described from it is described each
Extract in file in the listed files of the legacy version installation kit exist in non-existent file and the listed files and
Before the file that file feature information is differed, methods described also includes:
Extract from described each file in the listed files of the legacy version installation kit exist and file feature information is identical
File;
Whether detect the binary message of the corresponding binary message of the file and respective file in the legacy version installation kit
It is identical;
The fileinfo that the legacy version installation kit is extracted from described each file has different fileinfos to be included:
Non-existent file, the listed files in the listed files of the legacy version installation kit are extracted from described each file
Exist in middle presence and the file that differs of file feature information and the listed files and file feature information is identical
And the different file of binary message.
5. the update method of iOS system application program according to claim 2, it is characterised in that described according to extracting
Before the corresponding installation kit of latest edition application described in the file generated, methods described also includes:
Obtain the corresponding listed files of the latest edition installation kit, the listed files preserves in the latest edition each
File distinguishes corresponding file identification information;
Extract from the listed files of the legacy version installation kit and do not deposited in the corresponding listed files of the latest edition installation kit
File identification information and generate listed files to be deleted;
The corresponding installation kit of latest edition application according to the file generated for extracting includes:
The corresponding installation kit of the latest edition application is generated according to the file for extracting and the listed files to be deleted, with
So that client carries out application version renewal according to the corresponding installation kit of the latest edition application and old edition presents is deleted.
6. a kind of update method of iOS system application program, it is characterised in that include:
Detection application program whether there is redaction;
If existing, from server the corresponding installation kit of the latest edition application is obtained, preserve in the installation kit with it is old
In version installation kit there are different files in fileinfo;
There are different files according to from fileinfo in legacy version installation kit, local application is updated.
7. the update method of iOS system application program according to claim 6, it is characterised in that in the installation kit also
Listed files to be deleted is preserved, is existed simultaneously in the listed files that legacy version installation kit is preserved in the listed files to be deleted
And non-existent file identification information in the listed files of latest edition installation kit, the basis and file in legacy version installation kit
There are different files in information, after being updated to local application, methods described also includes:
The local file corresponding with each file identification information difference in the listed files to be deleted for preserving is deleted.
8. a kind of server, it is characterised in that include:
Acquiring unit, it is corresponding each for when detecting application program and there is redaction, obtaining the latest edition installation kit
Individual file;
Detector unit, for detecting that described each file distinguishes the text of corresponding fileinfo and the legacy version installation kit successively
Whether part information is identical;
, there are different texts from the fileinfo of the legacy version installation kit for extracting from described each file in extraction unit
Part;
Signal generating unit, for the corresponding installation kit of latest edition application according to the file generated for extracting, so that objective
Family end carries out application program update according to the corresponding installation kit of the latest edition application.
9. server according to claim 8, it is characterised in that
The detector unit, specifically for detect successively described each file distinguish corresponding file identification information whether there is in
In the listed files of the legacy version installation kit, legacy version each file is preserved in the listed files and distinguishes corresponding file
Identification information;
The extraction unit, specifically for not depositing in the listed files that the legacy version installation kit is extracted from described each file
File.
10. server according to claim 9, it is characterised in that
The extraction unit, is additionally operable to from described each file to extract present in the listed files of the legacy version installation kit
File;
The detector unit, is additionally operable to detect that the corresponding file feature information of the file is corresponding with the legacy version installation kit
Whether the file feature information of file is identical;
The extraction unit, is specifically additionally operable to from described each file in the listed files for extract the legacy version installation kit not
The file that presence and file feature information are differed in the file of presence and the listed files.
11. servers according to claim 10, it is characterised in that
The extraction unit, is additionally operable to from described each file to exist simultaneously in the listed files for extract the legacy version installation kit
And file feature information identical file;
The detector unit, is additionally operable to detect the corresponding binary message of file text corresponding with the legacy version installation kit
Whether the binary message of part is identical;
The extraction unit, is specifically additionally operable to from described each file in the listed files for extract the legacy version installation kit not
Exist in the file of presence, the listed files and in the file that differs of file feature information and the listed files
Presence and the file that file feature information is identical and binary message is different.
12. server according to claim 9, it is characterised in that
The acquiring unit, is additionally operable to obtain the corresponding listed files of the latest edition installation kit, and the listed files is preserved
There is each file in the latest edition to distinguish corresponding file identification information;
The extraction unit, is additionally operable to from the listed files of the legacy version installation kit extract the latest edition installation kit pair
Non-existent file identification information in the listed files answered;
The signal generating unit, is additionally operable to generate listed files to be deleted;
The signal generating unit, is additionally operable to generate the latest edition according to the file for extracting and the listed files to be deleted
Using corresponding installation kit, so that client carries out application version renewal according to the corresponding installation kit of the latest edition application
And old edition presents is deleted.
13. a kind of clients, it is characterised in that include:
Detector unit, for detecting that application program whether there is redaction;
Acquiring unit, if for existing, from server the corresponding installation kit of the latest edition application, the installation kit are obtained
In preserve and there are different files from fileinfo in legacy version installation kit;
, there are different files in updating block, local application is entered for basis from fileinfo in legacy version installation kit
Row updates.
14. a kind of servers, it is characterised in that include:
Processor, is configured to:
When detecting application program and there is redaction, corresponding each file of the latest edition installation kit is obtained;
Detect that described each file distinguishes the fileinfo of corresponding fileinfo and the legacy version installation kit whether phase successively
Together;
Extract from described each file and there are different files from the fileinfo of the legacy version installation kit;
According to extract the file generated described in the corresponding installation kit of latest edition application so that client according to most
The corresponding installation kit of redaction application carries out application program update;
Memory, is configured to store the executable instruction of the processor;
Bus, is configured to couple the processor and the memory.
15. a kind of clients, it is characterised in that include:
Processor, is configured to:
Detection application program whether there is redaction;
If existing, from server the corresponding installation kit of the latest edition application is obtained, preserve in the installation kit with it is old
In version installation kit there are different files in fileinfo;
There are different files according to from fileinfo in legacy version installation kit, local application is updated;
Memory, is configured to store the executable instruction of the processor;
Bus, is configured to couple the processor and the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610362991.7A CN106648723A (en) | 2016-05-26 | 2016-05-26 | Upgrading method and device of iOS system application program and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610362991.7A CN106648723A (en) | 2016-05-26 | 2016-05-26 | Upgrading method and device of iOS system application program and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106648723A true CN106648723A (en) | 2017-05-10 |
Family
ID=58848707
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610362991.7A Pending CN106648723A (en) | 2016-05-26 | 2016-05-26 | Upgrading method and device of iOS system application program and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648723A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908419A (en) * | 2017-10-27 | 2018-04-13 | 珠海金山网络游戏科技有限公司 | A kind of AssetBundle update methods and device based on difference |
CN108153537A (en) * | 2017-12-25 | 2018-06-12 | 北京车联天下信息技术有限公司 | Mobile application update method and device |
CN108804314A (en) * | 2018-05-23 | 2018-11-13 | 北京五八信息技术有限公司 | Installation kit test method, device, equipment and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103136013A (en) * | 2011-12-01 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and system of software upgrade |
CN103713928A (en) * | 2013-12-31 | 2014-04-09 | 优视科技有限公司 | Incremental file generating method, and application program installing file updating method and device |
CN105068848A (en) * | 2015-08-28 | 2015-11-18 | 小米科技有限责任公司 | System upgrading method and apparatus |
-
2016
- 2016-05-26 CN CN201610362991.7A patent/CN106648723A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103136013A (en) * | 2011-12-01 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and system of software upgrade |
CN103713928A (en) * | 2013-12-31 | 2014-04-09 | 优视科技有限公司 | Incremental file generating method, and application program installing file updating method and device |
CN105068848A (en) * | 2015-08-28 | 2015-11-18 | 小米科技有限责任公司 | System upgrading method and apparatus |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908419A (en) * | 2017-10-27 | 2018-04-13 | 珠海金山网络游戏科技有限公司 | A kind of AssetBundle update methods and device based on difference |
CN108153537A (en) * | 2017-12-25 | 2018-06-12 | 北京车联天下信息技术有限公司 | Mobile application update method and device |
CN108804314A (en) * | 2018-05-23 | 2018-11-13 | 北京五八信息技术有限公司 | Installation kit test method, device, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8806628B2 (en) | Tuning of data loss prevention signature effectiveness | |
CN110543946B (en) | Method and apparatus for training a model | |
US20200004762A1 (en) | Data processing systems and methods for automatically detecting and documenting privacy-related aspects of computer software | |
US11178022B2 (en) | Evidence mining for compliance management | |
CN111651347B (en) | Jump verification method, device, equipment and storage medium of test system | |
CN106648723A (en) | Upgrading method and device of iOS system application program and system | |
CN106933823A (en) | Method of data synchronization and device | |
US20160093117A1 (en) | Generating Estimates of Failure Risk for a Vehicular Component | |
CN110414989A (en) | Method for detecting abnormality and device, electronic equipment and computer readable storage medium | |
CN105117499A (en) | File display method and device based on cloud disk | |
US10936336B1 (en) | Configuration change tracking with multiple manifests | |
CN108089870A (en) | For repairing the method and apparatus of application | |
EP4014461A1 (en) | Methods and apparatus for malware detection using jar file decompilation | |
CN108228193A (en) | Data capture method and device | |
US11061905B2 (en) | Job management in data processing system | |
US11539730B2 (en) | Method, device, and computer program product for abnormality detection | |
CN105224880B (en) | Information collecting method and device | |
CN106649108A (en) | Generation method and device of test data | |
US20230409710A1 (en) | Allow list of container images based on deployment configuration at a container orchestration service | |
US10572838B2 (en) | Operational data rationalization | |
US20210288823A1 (en) | Secure and accountable execution of robotic process automation | |
CN114066603A (en) | Post-loan risk early warning method and device, electronic equipment and computer readable medium | |
CN115082179A (en) | Data processing method, device, equipment and storage medium | |
US20220138688A1 (en) | Systems and methods for distributed ledger-based management of metadata and chain of custody of documents | |
US11500985B1 (en) | Static and dynamic correlation of software development pipeline events |
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: 20170510 |
|
RJ01 | Rejection of invention patent application after publication |