CN105718268A - Method and device for verifying OTA multi-pack upgrading - Google Patents

Method and device for verifying OTA multi-pack upgrading Download PDF

Info

Publication number
CN105718268A
CN105718268A CN201610043766.7A CN201610043766A CN105718268A CN 105718268 A CN105718268 A CN 105718268A CN 201610043766 A CN201610043766 A CN 201610043766A CN 105718268 A CN105718268 A CN 105718268A
Authority
CN
China
Prior art keywords
fingerprint information
ota
terminal
aku
system fingerprint
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
CN201610043766.7A
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610043766.7A priority Critical patent/CN105718268A/en
Publication of CN105718268A publication Critical patent/CN105718268A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a method and a device for verifying OTA multi-pack upgrading. The method comprises the following steps: storing system fingerprint information of a terminal into a system partition; when the terminal is updated from the current version to a target version through a plurality of middle versions, acquiring the system fingerprint information of the current version from the system partition of the terminal, to verify the system fingerprint information in an OTA upgrading pack read from a register; if the system fingerprint information in the OTA upgrading pack passes verification successfully, copying a patch document in the OTA upgrading pack to the system partition, so that the system fingerprint information in the system partition can be changed into the system fingerprint information of the middle versions without starting up. The terminal can continuously carry out verification of the next upgrading pack according to the system fingerprint information of the middle versions so as to complete upgrading of the next version; therefore, upgrading failure caused by quitting of multi-pack upgrading due to verification failure caused by mismatch of the system fingerprint information as the system fingerprint information in a memory cannot be changed into the system fingerprint information of the middle versions until the terminal is started in the prior art can be avoided.

Description

The method of calibration of the many bag upgradings of a kind of OTA and device
Technical field
The present invention relates to the online upgrading field of terminal, particularly relate to method of calibration and the device of the many bag upgradings of a kind of OTA.
Background technology
The terminal such as mobile phone, DTV STB adopts over the air (Over-the-AirTechnology, OTA) that software version is updated upgrading.OTA upgrading includes single bag upgrading and wraps upgrading more, wherein single bag upgrading refers to that terminal is from first edition upgrading to target version (being the currently used system version of terminal at first version), and wrapping upgrading is then that terminal is upgraded to target version from first version continuously successively through multiple intermediate releases more.
Causing that terminal cannot normally use in order to avoid brushing into other illegal versions, before the mono-bag upgrading of OTA, terminal needs OTA AKU is verified.The method of calibration of the mono-bag upgrading of existing OTA, as shown in Figure 1, verify before upgrading the system fingerprint information in tag memory whether with AKU in the system fingerprint information matches of first version or target version, as long as then thinking that verification is passed through with the system fingerprint information matches of at least one in first version and target version, perform updating operation.After entering updating operation, the patch file (patch file is the boot partition of target version and recovers subregion relative to the differential file at first version) of target version will be got to system partitioning, start starting procedure, then the patch file of system partitioning is got to recovery recovery subregion.At this moment terminal by first edition upgrading to target version, the system fingerprint information in terminal is also become the finger print information of target version from the finger print information at elder generation's version.If all not mating with the system fingerprint information at first version and target version, verifying failure, exiting upgrading, terminal is still at first version.
But, existing OTA is many, and bag is during upgrading, AKU is not verified, once the AKU by terminal different editions is obscured, will cause upgrading unsuccessfully.For problem above, verify according to existing single bag method of calibration, then due in single bag method of calibration, finger print information in internal memory just can become the finger print information of target version after having to pass through start, and in OTA many bags escalation process, there is no start process before being upgraded to target version, the verification version that so whole OTA many bags escalation process uses is always at first version.Between intermediate releases during upgrading, owing to there is no the finger print information of intermediate releases, thus occurring verifying unsuccessfully, cause that mobile terminal cannot realize the upgrading continuously of many bags, it is therefore desirable to a kind of method of calibration being applicable to many bag upgradings.
Summary of the invention
Embodiments provide method of calibration and device that the many bags of a kind of OTA are upgraded continuously, in order to solve the check problem that cannot realize that the many bags of OTA are upgraded continuously.
For reaching above-mentioned purpose, embodiments provide the method for calibration of the many bag upgradings of a kind of OTA, including:
It is read-only by the system partitioning carry of terminal, and obtains the system fingerprint information in the system partitioning being pre-stored within described terminal;
Based on the check results of system fingerprint information acquired in the system partitioning from described terminal with the system fingerprint information in the OTA AKU read from depositor, to judge whether to the many bag upgradings of OTA.
A kind of calibration equipment of the many bag upgradings of OTA, including:
Acquiring unit, it is read-only for being used for the system partitioning carry of terminal, and obtains the system fingerprint information in the system partitioning being pre-stored within described terminal;
Verification unit, for the check results based on system fingerprint information acquired from system partitioning with the system fingerprint information in the OTA AKU read from depositor, to judge whether to the many bag upgradings of OTA.
Embodiments provide method of calibration and the device of the many bag upgradings of a kind of OTA, the system fingerprint information of terminal is stored under system partitioning.When terminal is upgraded to target version by current version through some intermediate releases, the system fingerprint information of current version is obtained from the system partitioning of terminal, to verify with the system fingerprint information in the OTA AKU read from depositor, system fingerprint information in wherein said OTA AKU includes the system fingerprint information of current version and intermediate releases, if verifying successfully, then by under the patch file copy in described OTA AKU to system partitioning.System partitioning has been upgraded, now without start, system fingerprint information in system partitioning is changing to the system fingerprint information of described intermediate releases, and terminal can continue the system fingerprint information according to described intermediate releases and carry out the verification of next AKU, to complete the upgrading of next version.Therefore avoiding must start shooting in prior art could become the system fingerprint information of intermediate releases by the system fingerprint information in internal memory, verifies unsuccessfully once system fingerprint information does not mate to cause, will move out many bags and upgrade continuously and then cause whole upgrading unsuccessfully.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The method of calibration schematic flow sheet of the mono-bag upgrading of a kind of OTA that Fig. 1 provides for prior art;
The method of calibration schematic flow sheet that Fig. 2 upgrades continuously for the many bags of a kind of OTA that the embodiment of the present invention provides;
Fig. 3 is the idiographic flow schematic diagram that OTA AKU is downloaded in the detection of OTA client;
The method of calibration schematic flow sheet that Fig. 4 upgrades continuously for the many bags of another kind of OTA that the embodiment of the present invention provides;
The calibration equipment structural representation that Fig. 5 upgrades continuously for the many bags of a kind of OTA that the embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Owing to people are more and more higher to the performance requirement of terminal, the chamber of commerce of factory may make multiple version for the terminal of same model, simultaneously again in order to realize being upgraded to target version by disposable for current version, it is necessary to make each version difference AKU to target version.Such as: target version is upgraded to V5 by V4 at present, then production firm just needs at server end existing V2-V1, V3-V1, V4-V1, V3-V2, V4-V2, on the basis of V4-V3 difference AKU, increase configuration V5-V1, V5-V2, V5-V3, these four difference AKUs of V5-V4, thus the terminal use of each version can pass through to download corresponding difference AKU, it is achieved the disposable target version that is upgraded to, but this upgrade method makes production firm need to make substantial amounts of difference AKU.If target version is Vn(n is positive integer), then production firm needs to make n (n-1)/2 kind of difference bag, and development cost is big.
Therefore, for upgraded version span bigger time, the method adopting the many bags of OTA to upgrade continuously, is namely upgraded to target version from the version that present terminal is currently in use through intermediate releases continuously, and such production firm has only to make the difference AKU of the version with low one-level for each latest edition.Such as: target version is upgraded to V5 by V4 at present, production firm just needs at server end existing V2-V1, V3-V2, on the basis of V4-V3 difference AKU, increase configuration this difference AKU of V5-V4, reduce the quantity of the AKU needing making and test, reduce production cost.
For above many bags upgrade method, the present invention proposes the method for calibration that the many bags of a kind of OTA are upgraded continuously, system fingerprint information in terminal is stored under system partitioning and system subregion, so when many bags are upgraded continuously, as long as copying the patch file (patch file is that the boot subregion of target version and recovery subregion are relative to the differential file at first version) in difference bag to system subregion.At this moment system subregion has been upgraded, it is not necessary to start, the system fingerprint information in system subregion is changing to the system fingerprint information of target version.Thus can be avoided must start shooting in prior art could become the system fingerprint information of target version by the system fingerprint information in internal memory, and once system fingerprint information is not mated to cause and verified unsuccessfully, exit many bags and upgrade continuously and then cause whole upgrading unsuccessfully.
Consult the method for calibration of the many bag upgradings of a kind of OTA that Fig. 2, Fig. 2 provide for the embodiment of the present invention, as in figure 2 it is shown, described method of calibration includes:
Step 201, is read-only by the system partitioning carry of terminal, and obtains the system fingerprint information in the system partitioning being pre-stored within described terminal.
Wherein, system fingerprint information refers to the finger print information of the currently used system version of terminal, including terminal brand, implementor name, system version number, revision ID, internal control version number, release type, etc. relevant information.
Concrete, before step 201, the chamber of commerce of factory makes different difference AKUs and uploads onto the server, and server receives the AKU of the latest edition that developer makes, by whether prompting terminal carries out system upgrade.
Further, if terminal selects to carry out system upgrade, or terminal use selects to start OTA client and carries out system upgrade, as shown in Figure 3, OTA client initiates the detection of system upgrade according to the request of terminal use, the control of trigger server end returns strategy 301, and the strategy of setting is returned to OTA client 302 according to the upgrading mode arranged, facility information and present terminal version number by server.The information of multiple AKUs that OTA client returns according to server end, is shown on terminal interface by the version number of latest edition, version information, all AKU size summations 303.Judge whether 304 users select to download, if user selects to download, continue to judge that whether the memory space of 305 current phone is sufficient, if abundance, successively the whole AKUs needed for from currently used edition upgrading to target version are downloaded to terminal 306, if inadequate, prompting user's space is not enough, exits upgrading 307.
Further, after all AKUs that upgrading is required are downloaded to terminal by OTA client, upgrading mode, AKU path and many bags mark are write in cache subregion by OTA client, but recovery pattern is not necessarily capable of identify that the AKU path that upper layer transfers is got off, it is thus desirable to increase the interface of path integration at framework layer, according to the standard specified with memorizer, it is the path 308 that may identify which under recovery pattern by AKU path integration.
Further, after path integration completes, require over cache subregion and as medium AKU path passed to recovery, and the information such as upgrading mode, AKU path are write/cache/recovery/command in, perform to reboot into recovery pattern 309.
It should be noted that in whole downloading process, the only one of which progress bar that user sees, the form of many bags is completely invisible to user, and Consumer's Experience is effective.In downloading process, if occurring, the situations such as Network Abnormal cause failed download, then, when next time connects network, it is possible to carry out automatic continuous according to the download of last time and descend load, after having downloaded, prompting user upgrades.
Further, terminal obtain from currently used edition upgrading to target version needed for the method for all AKUs can also be: terminal to server sends the update request message carrying current version, server obtains the current version of terminal according to update request message, and detect target version, current version being upgraded to all AKUs needed for target version transmit to terminal, terminal receives all AKUs that server sends.Can also is that user manually downloads all AKUs being upgraded to target version from current version from server.
It is upgraded to all AKUs of target version each AKU from current version includes two versions it should be noted that download from server: in first version and redaction.Wherein, can be the AKU between adjacent two versions at first version and redaction, can also being the AKU of non-conterminous two versions, be used for indicating this AKU needs which version is upgraded at first version, redaction be then for indicating terminal staging to which version according to this AKU.What necessarily have an AKU in all AKUs downloaded is the currently used version of terminal at first version, and the redaction necessarily having an AKU is target version, and the prototype version of redaction another AKU corresponding of an AKU.
The method of calibration schematic flow sheet that Fig. 4 upgrades continuously for the many bags of another kind of OTA that the embodiment of the present invention provides, as shown in Figure 4, after entering recovery pattern, terminal resolves 401 by performing get_args (&argc, the upgrading desired parameters such as the routing information of OTA AKU that &argv) obtains, version number, it is judged that whether 402 resolve to and wrap upgrading more.
Concrete, can when making OTA AKU, original basis making the mono-bag of OTA increases many bags identification parameter in triggering script multi-ota-inc-update.sh, and increase the parsing to many bags identification parameter in performing script ota_from_target_files, so when performing OTA upgrading, due to upgrade parameter all of before upgrading all be written into/cache/recovery/command in, it is therefore desirable to whether judgement/cache/recovery/command exists many bags identification parameter.Can also increase the dissection process script in multi territory in misc subregion, so when performing OTA upgrading, by the multi territory of parsing misc subregion being single bag or wrapping more, to determine that carrying out single bag verifies or wrap verification more.
Further, if there is many bags identification parameter, then many bags checking process is entered;If being absent from many bags identification parameter, then enter single bag checking process 100, as it is shown in figure 1, from tag memory obtain system fingerprint information, and with the system fingerprint information matches in the AKU read from depositor, if coupling, then verifying successfully, entering upgrading flow process, if not mating, then verify failure, stop upgrading.
Further, 403 are obtained at the first version number i-th AKU identical with currently used version number according to the version number of currently used system version.Wherein, i represents which currently acquired AKU, it is possible to take 1,2,3 ... n, n are the number from the currently used edition upgrading of terminal to the AKU of target version.Load i-th AKU, to obtain the system fingerprint information in 404 i-th AKUs, and this system fingerprint information is stored in a register.Wherein system fingerprint information includes the finger print information of the version to upgrade in the finger print information of current version and i-th AKU.
Further, affect follow-up updating operation in order to avoid the device attribute in system subregion is easily modified, be read-only operation by system subregion carry 405.Load the build.prop file in system subregion, wherein build.prop file includes the property value of all parameters of system version, traversal build.prop file is to obtain the row at the property value place of the system fingerprint information of terminal line by line, obtain the system fingerprint information in 406 these row, for follow-up verification.
Step 202, based on the check results of system fingerprint information acquired in the system partitioning from described terminal with the system fingerprint information in the OTA AKU read from depositor, to judge whether to the many bag upgradings of OTA.
It should be noted that OTA AKU here refers to OTA difference AKU, wherein OTA difference AKU is contrasted, by the AKU according to two adjacent versions, the AKU that the difference information of gained forms.Example, difference AKU V2-V1 contains version V2 relative to the version V1 application message changed, to realize upgrading by difference AKU V2-V1, the current version of terminal is necessary for V1, and the version of rear client of having upgraded just becomes V2.
Concrete, read the system fingerprint information of i-th AKU in depositor, to judge whether 407 mate with the system fingerprint information obtained from terminal system subregion, if coupling, then verify successfully, terminal enters upgrading flow process 408, i-th AKU being upgraded, if not mating, then verifying failure, exiting upgrading 409, terminal remains as currently used version.
Further, after terminal enters the upgrading flow process 408 of i-th AKU, unload system subregion, by under the patch file copy in i-th AKU to system subregion.Wherein patch file is that the boot subregion of the redaction in i-th AKU and recovery subregion are relative to the differential file at first version in i-th AKU.At this moment system subregion has been upgraded, and the system fingerprint information in system subregion is changing to the system fingerprint information of redaction.
Further, if i-th AKU upgrades successfully, then continue to judge that whether i is less than n, wherein n is the number from the currently used edition upgrading of terminal to the AKU of target version, namely judge whether i-th AKU is last AKU, if not then continuing to obtain from acquired all AKUs in the version number of first version i+1 the AKU identical with the version number of redaction in i-th AKU, execution step 201, obtain the system fingerprint information in terminal system subregion.The finger print information of wherein acquired system partitioning is the finger print information of the redaction in i-th AKU.The system fingerprint information of the system fingerprint information in this system partitioning with i+1 the AKU read from depositor is mated.If coupling, then verify successfully, unloading system subregion, and by under the patch file copy in i+1 AKU to system subregion, wherein patch file is that the boot subregion of redaction in i+1 AKU and recovery subregion are relative to the differential file in first version (i.e. redaction in i-th AKU).At this moment system subregion has been upgraded, it is not necessary to start, the system fingerprint information in system subregion becomes the system fingerprint information of the redaction in i+1 AKU.
Further, it is judged that whether i+1 AKU is last AKU, if not then continuing to obtain next AKU, then perform step 201 and step 202 successively, this AKU is verified, until verifying to last AKU.If verifying successfully, then by under the patch file copy of redaction in last AKU to system subregion, perform finish_recovery (), upgrade status flag bit is write in cache/recovery/status, delete the AKU on memorizer, empty misc subregion, and delete/cache/recovery/command.Starting starting procedure, by the patch file copy in system subregion to recovery subregion, terminal is upgraded to the redaction in last AKU by current version.
Further, in whole upgrading flow process 408, once occur that the system fingerprint information of terminal is not mated with the system fingerprint information in AKU, then verifying failure, exiting upgrading, after starting starting procedure, terminal is simply upgraded to the redaction in previous AKU.
Example, terminal current version is V1, and target version is V4, if terminal request is upgraded to target version V4, server can for terminal configuration by all AKUs of V1 to V4, and including V2-V1, V3-V2, V4-V3, then terminal receives above-mentioned all AKUs.Obtain the first AKU V2-V1, perform step 201 and step 202, it is thus achieved that the system fingerprint information in the system subregion of terminal, to mate with the system fingerprint information of V2-V1 AKU in the depositor read, if not mating, then verify failure, exiting upgrading, terminal remains as V1 version.
Further, if coupling, then verify successfully, unload system subregion, by under the patch file copy in V2-V1 AKU to system subregion.Wherein patch file is the boot subregion of V2 version and the recovery subregion differential file relative to V1 version.At this moment system subregion has been upgraded, it is not necessary to start, the system fingerprint information in system subregion is changing to the system fingerprint information of V2 version.
Further, judge that the first AKU is not last AKU, then continue to obtain the second AKU V3-V2, perform step 201 and step 202 successively, obtain the system fingerprint information in the system partitioning of terminal, the i.e. finger print information of V2 version, mates with the system fingerprint information with V3-V2 AKU from depositor.If not mating, then verifying failure, exiting upgrading, terminal is simply upgraded to V2 version.
Further, if coupling, then verify successfully, unload system subregion, by under the patch file copy in V3-V2 AKU to system subregion.Wherein patch file is the boot subregion of V3 version and the recovery subregion differential file relative to V2 version.At this moment system subregion has been upgraded, and the system fingerprint information in system subregion is changing to the system fingerprint letter of V3 version.
Further, judge that the second AKU is not last AKU, then continue to obtain the 3rd AKU V4-V3, perform step 201 and step 202 successively, obtain the system fingerprint information in the system partitioning of terminal, the i.e. finger print information of V3 version, mates with the system fingerprint information with V4-V3 AKU from depositor.If not mating, then verifying failure, exiting upgrading, terminal is simply upgraded to V2 version.
Further, if coupling, then verify successfully, unload system subregion, by under the patch file copy in V4-V3 AKU to system subregion.Wherein patch file is the boot subregion of V4 version and the recovery subregion differential file relative to V3 version.At this moment system subregion has been upgraded, it is not necessary to start, and the system fingerprint information in system subregion is changing to the system fingerprint letter of V4 version.Judging that the 3rd AKU is as last AKU, then start starting procedure, by the patch file copy in system subregion to recovery subregion, terminal is by V1 edition upgrading to V4 version.
Embodiments provide method of calibration and the device of the many bag upgradings of a kind of OTA, the system fingerprint information of terminal is stored under system partitioning.When terminal is upgraded to target version by current version through some intermediate releases, the system fingerprint information of current version is obtained from the system partitioning of terminal, to verify with the system fingerprint information in the OTA AKU read from depositor, system fingerprint information in wherein said OTA AKU includes the system fingerprint information of current version and intermediate releases, if verifying successfully, then by under the patch file copy in described OTA AKU to system partitioning.Now system partitioning has been upgraded, without start, system fingerprint information in system partitioning is changing to the system fingerprint information of described intermediate releases, and terminal can continue the system fingerprint information according to described intermediate releases and carry out the verification of next AKU, to complete the upgrading of next version.Therefore avoiding must start shooting in prior art could become the system fingerprint information of intermediate releases by the system fingerprint information in internal memory, verifies unsuccessfully once system fingerprint information does not mate to cause, will move out many bags and upgrade continuously and then cause whole upgrading unsuccessfully.
Consult the calibration equipment that Fig. 5, Fig. 5 upgrade continuously for the many bags of a kind of OTA that the embodiment of the present invention provides, as it is shown in figure 5, described calibration equipment includes:
Acquiring unit 501, if for there is described many bags identification parameter, then carry system partitioning is read-only, and obtains finger print information from terminal system subregion;
Verification unit 502, for the finger print information obtained from terminal system subregion is verified with the finger print information from the tundish that depositor reads, upgrading continuously judging whether to the many bags of OTA, wherein, tundish is by the difference bag formed with target version at first version.
Preferably, described acquiring unit 501, also include:
Loading unit 5011, for the build.prop file in loading system subregion, described build.prop file includes the property value of all parameters of system;
Traversal Unit 5012, for traveling through described build.prop file to obtain the system fingerprint information of terminal line by line.
Preferably, described verification unit 502, specifically for:
Verify whether the system fingerprint information from the terminal of system partitioning acquisition mates with the system fingerprint information the OTA AKU read from depositor, if the system fingerprint information of terminal obtained from system partitioning and the system fingerprint information matches the OTA AKU read from depositor, then verify successfully, unload described system partitioning, enter the many bag upgrading flow processs of OTA;If not mating with the system fingerprint information the OTA AKU read from depositor from the system fingerprint information of the terminal of system partitioning acquisition, then verify failure, exit upgrading.
Preferably, described calibration equipment also includes:
Depositor 503, for storing the system fingerprint information in OTA AKU, wherein said system fingerprint information includes the finger print information of adjacent two system versions;
Download unit 504, for the whole OTA AKU of OTA client downloads, and obtains the upgrading desired parameters returned from server end;
Resolution unit 505, is used for resolving described upgrading desired parameters, to judge whether many bags identification parameter.
Preferably, described resolution unit 505 also includes:
If there is described many bags identification parameter, then according to downloaded whole OTA AKUs, it is determined that the OTA AKU identical with the version number of terminal current version, and load described OTA AKU, to obtain the system fingerprint information in described OTA AKU, it is stored in depositor, enters back into and wrap verification more;And
If being absent from described many bags identification parameter, then enter and singly wrap verification.
Embodiments provide method of calibration and the device of the many bag upgradings of a kind of OTA, the system fingerprint information of terminal is stored under system partitioning.When terminal is upgraded to target version by current version through some intermediate releases, the system fingerprint information of current version is obtained from the system partitioning of terminal, to verify with the system fingerprint information in the OTA AKU read from depositor, system fingerprint information in wherein said OTA AKU includes the system fingerprint information of current version and intermediate releases, if verifying successfully, then by under the patch file copy in described OTA AKU to system partitioning.At this moment system subregion has been upgraded, without start, system fingerprint information in system partitioning is changing to the system fingerprint information of described intermediate releases, and terminal can continue the system fingerprint information according to described intermediate releases and carry out the verification of next AKU, to complete the upgrading of next version.Therefore avoiding must start shooting in prior art could become the system fingerprint information of intermediate releases by the system fingerprint information in internal memory, verifies unsuccessfully once system fingerprint information does not mate to cause, will move out many bags and upgrade continuously and then cause whole upgrading unsuccessfully.
The application describes with reference to flow chart and/or the block diagram according to the method for the embodiment of the present application, equipment (system) and computer program.It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the application, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the application scope.Obviously, the application can be carried out various change and modification without deviating from spirit and scope by those skilled in the art.So, if these amendments of the application and modification belong within the scope of the application claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (10)

1. the method for calibration of the many bag upgradings of OTA, it is characterised in that the method includes:
The system partitioning of carry terminal is read-only, and obtains the system fingerprint information in the system partitioning being pre-stored within described terminal;
Based on the check results of system fingerprint information acquired in the system partitioning from described terminal with the system fingerprint information in the OTA AKU read from depositor, to judge whether to the many bag upgradings of OTA.
2. method of calibration according to claim 1, it is characterised in that the system partitioning in described carry terminal is read-only, and before obtaining the system fingerprint information being pre-stored within the system partitioning of described terminal, also include:
According to the whole OTA AKUs downloaded, it is determined that the OTA AKU identical with the version number of terminal current version;
Load described identical with the version number of terminal current version OTA AKU, to obtain the system fingerprint information in described identical with the version number of terminal current version OTA AKU, and be stored in depositor.
3. method of calibration according to claim 1, it is characterised in that described acquisition is pre-stored within the system fingerprint information in the system partitioning of described terminal, specifically includes:
Build.prop file in loading system subregion, described build.prop file includes the property value of all parameters of system;
Travel through described build.prop file line by line to obtain the system fingerprint information of terminal.
4. method of calibration according to claim 1, it is characterized in that, the described check results based on system fingerprint information acquired from system partitioning with the system fingerprint information in the AKU read from depositor, to judge whether to the many bag upgradings of OTA, specifically includes:
Verify whether the system fingerprint information obtained from system partitioning mates with the system fingerprint information the OTA AKU read from depositor;
If the system fingerprint information of terminal obtained from system partitioning and the system fingerprint information matches the OTA AKU read from depositor, then verify successfully, unload described system partitioning, enter the many bag upgrading flow processs of OTA.
5. method of calibration according to claim 4, it is characterised in that whether the system fingerprint information that described verification obtains from system partitioning mates with the system fingerprint information the OTA AKU read from depositor, also includes:
If not mating with the system fingerprint information the OTA AKU read from depositor from the system fingerprint information of the terminal of system partitioning acquisition, then verify failure, exit upgrading.
6. the calibration equipment of the many bag upgradings of OTA, it is characterised in that this device includes:
Acquiring unit, it is read-only for being used for system partitioning carry, and obtains system fingerprint information from terminal system subregion;
Verification unit, for the check results based on system fingerprint information acquired from system partitioning with the system fingerprint information in the OTA AKU read from depositor, to judge whether to the many bag upgradings of OTA.
7. calibration equipment according to claim 6, it is characterised in that described acquiring unit, also includes:
Loading unit, for the build.prop file in loading system subregion, described build.prop file includes the property value of all parameters of system;
Traversal Unit, for traveling through described build.prop file to obtain the system fingerprint information of terminal line by line.
8. calibration equipment according to claim 6, it is characterised in that described verification unit, specifically for:
Verify whether the system fingerprint information from the terminal of system partitioning acquisition mates with the system fingerprint information the OTA AKU read from depositor;
If the system fingerprint information of terminal obtained from system partitioning and the system fingerprint information matches the OTA AKU read from depositor, then verify successfully, unload described system partitioning, enter OTA upgrading flow process;
If not mating with the system fingerprint information the OTA AKU read from depositor from the system fingerprint information of the terminal of system partitioning acquisition, then verify failure, exit upgrading.
9. calibration equipment according to claim 6, it is characterised in that described calibration equipment also includes:
Depositor, for storing the system fingerprint information in OTA AKU, wherein said system fingerprint information includes the finger print information of adjacent two system versions;
Download unit, for the whole OTA AKU of OTA client downloads, and obtains the upgrading desired parameters returned from server end;
Resolution unit, is used for resolving described upgrading desired parameters, to judge whether many bags identification parameter.
10. calibration equipment according to claim 6, it is characterised in that described resolution unit also includes:
If there is described many bags identification parameter, then according to downloaded whole OTA AKUs, it is determined that the OTA AKU identical with the version number of terminal current version, and load described OTA AKU, to obtain the system fingerprint information in described OTA AKU, it is stored in depositor, enters back into and wrap verification more;And
If being absent from described many bags identification parameter, then enter and singly wrap verification.
CN201610043766.7A 2016-01-22 2016-01-22 Method and device for verifying OTA multi-pack upgrading Pending CN105718268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610043766.7A CN105718268A (en) 2016-01-22 2016-01-22 Method and device for verifying OTA multi-pack upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610043766.7A CN105718268A (en) 2016-01-22 2016-01-22 Method and device for verifying OTA multi-pack upgrading

Publications (1)

Publication Number Publication Date
CN105718268A true CN105718268A (en) 2016-06-29

Family

ID=56153761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610043766.7A Pending CN105718268A (en) 2016-01-22 2016-01-22 Method and device for verifying OTA multi-pack upgrading

Country Status (1)

Country Link
CN (1) CN105718268A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227665A (en) * 2016-07-25 2016-12-14 青岛海信移动通信技术股份有限公司 A kind of equipment starting method and device
CN106648784A (en) * 2016-12-27 2017-05-10 Tcl集团股份有限公司 OTA upgrading method and system based on android system and android terminal
CN107844318A (en) * 2017-12-11 2018-03-27 维沃移动通信有限公司 The upgrade method and mobile terminal and server of a kind of operating system
CN109120718A (en) * 2018-09-28 2019-01-01 慧翰微电子股份有限公司 A kind of car networking terminal and implementation method for supporting other ECU FOTA to upgrade
CN109496301A (en) * 2017-05-19 2019-03-19 深圳配天智能技术研究院有限公司 Method, embedded device and its storage medium of file are managed in embedded system
CN109964227A (en) * 2017-10-30 2019-07-02 华为技术有限公司 Update the method and terminal of SELinux security strategy
CN110298274A (en) * 2019-06-18 2019-10-01 Oppo广东移动通信有限公司 Optical finger print parameter upgrade method and Related product
CN110377307A (en) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 A kind of car body controller firmware upgrade method, terminal, system
CN110769057A (en) * 2019-10-25 2020-02-07 广东博智林机器人有限公司 Automatic upgrading method, device and system based on cascade system
CN111176671A (en) * 2018-11-09 2020-05-19 奇酷互联网络科技(深圳)有限公司 Method for automatically and continuously updating system, mobile terminal and storage medium
CN111263354A (en) * 2020-01-08 2020-06-09 苏宁智能终端有限公司 OTA differential upgrading method and device
CN111736859A (en) * 2019-03-25 2020-10-02 成都鼎桥通信技术有限公司 Version updating method of operating system, server and terminal
CN113641423A (en) * 2021-08-31 2021-11-12 青岛海信传媒网络技术有限公司 Display device and system starting method
CN113944992A (en) * 2020-07-17 2022-01-18 海信(山东)空调有限公司 Air conditioner and upgrading method
CN114443083A (en) * 2021-07-09 2022-05-06 荣耀终端有限公司 System upgrading method and device, electronic equipment and storage medium
CN114546456A (en) * 2020-11-24 2022-05-27 中移物联网有限公司 Upgrading method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880495A (en) * 2012-10-15 2013-01-16 华为终端有限公司 Mobile terminal and software upgrading method for same
CN104052818A (en) * 2014-06-27 2014-09-17 青岛海信移动通信技术股份有限公司 Version upgrade method and device for mobile terminal
CN104899066A (en) * 2015-06-19 2015-09-09 青岛海信移动通信技术股份有限公司 Method and device for continuous upgrading
US9183393B2 (en) * 2012-01-12 2015-11-10 Facebook, Inc. Multiple system images for over-the-air updates
CN105045671A (en) * 2015-08-17 2015-11-11 广东欧珀移动通信有限公司 Method and device for upgrading systems of intelligent terminals

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9183393B2 (en) * 2012-01-12 2015-11-10 Facebook, Inc. Multiple system images for over-the-air updates
CN102880495A (en) * 2012-10-15 2013-01-16 华为终端有限公司 Mobile terminal and software upgrading method for same
CN104052818A (en) * 2014-06-27 2014-09-17 青岛海信移动通信技术股份有限公司 Version upgrade method and device for mobile terminal
CN104899066A (en) * 2015-06-19 2015-09-09 青岛海信移动通信技术股份有限公司 Method and device for continuous upgrading
CN105045671A (en) * 2015-08-17 2015-11-11 广东欧珀移动通信有限公司 Method and device for upgrading systems of intelligent terminals

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
匿名: "禁止非法root的设备OTA升级", 《CSDN博客》 *

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227665A (en) * 2016-07-25 2016-12-14 青岛海信移动通信技术股份有限公司 A kind of equipment starting method and device
CN106227665B (en) * 2016-07-25 2019-06-04 青岛海信移动通信技术股份有限公司 A kind of equipment starting method and device
CN106648784A (en) * 2016-12-27 2017-05-10 Tcl集团股份有限公司 OTA upgrading method and system based on android system and android terminal
CN109496301A (en) * 2017-05-19 2019-03-19 深圳配天智能技术研究院有限公司 Method, embedded device and its storage medium of file are managed in embedded system
CN109964227B (en) * 2017-10-30 2021-08-13 华为技术有限公司 Method and terminal for updating SELinux security policy
US11222118B2 (en) 2017-10-30 2022-01-11 Huawei Technologies Co., Ltd. Method for updating selinux security policy and terminal
CN109964227A (en) * 2017-10-30 2019-07-02 华为技术有限公司 Update the method and terminal of SELinux security strategy
CN107844318B (en) * 2017-12-11 2021-08-24 维沃移动通信有限公司 Upgrading method of operating system, mobile terminal and server
CN107844318A (en) * 2017-12-11 2018-03-27 维沃移动通信有限公司 The upgrade method and mobile terminal and server of a kind of operating system
CN109120718A (en) * 2018-09-28 2019-01-01 慧翰微电子股份有限公司 A kind of car networking terminal and implementation method for supporting other ECU FOTA to upgrade
CN111176671A (en) * 2018-11-09 2020-05-19 奇酷互联网络科技(深圳)有限公司 Method for automatically and continuously updating system, mobile terminal and storage medium
CN111736859A (en) * 2019-03-25 2020-10-02 成都鼎桥通信技术有限公司 Version updating method of operating system, server and terminal
CN110298274A (en) * 2019-06-18 2019-10-01 Oppo广东移动通信有限公司 Optical finger print parameter upgrade method and Related product
CN110298274B (en) * 2019-06-18 2021-06-04 Oppo广东移动通信有限公司 Optical fingerprint parameter upgrading method and related product
CN110377307A (en) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 A kind of car body controller firmware upgrade method, terminal, system
CN110769057A (en) * 2019-10-25 2020-02-07 广东博智林机器人有限公司 Automatic upgrading method, device and system based on cascade system
CN111263354A (en) * 2020-01-08 2020-06-09 苏宁智能终端有限公司 OTA differential upgrading method and device
CN113944992A (en) * 2020-07-17 2022-01-18 海信(山东)空调有限公司 Air conditioner and upgrading method
CN114546456A (en) * 2020-11-24 2022-05-27 中移物联网有限公司 Upgrading method and device and electronic equipment
CN114546456B (en) * 2020-11-24 2024-05-24 中移物联网有限公司 Upgrading method and device and electronic equipment
CN114443083A (en) * 2021-07-09 2022-05-06 荣耀终端有限公司 System upgrading method and device, electronic equipment and storage medium
CN113641423A (en) * 2021-08-31 2021-11-12 青岛海信传媒网络技术有限公司 Display device and system starting method
CN113641423B (en) * 2021-08-31 2023-07-07 青岛海信传媒网络技术有限公司 Display device and system starting method

Similar Documents

Publication Publication Date Title
CN105718268A (en) Method and device for verifying OTA multi-pack upgrading
CN106658475B (en) Method and device for upgrading over-the-air technology
CN107193612B (en) Version upgrading method and device for mobile terminal
US20120117557A1 (en) Method and system for upgrading wireless data card
CN104699511B (en) Plug-in unit upgrade method and device
US20070294686A1 (en) Program upgrade system and method for ota-capable device
US8255361B2 (en) Method and system for validating differential computer system update
US8549165B2 (en) Processing devices and methods for transmitting and receiving data
US20150154036A1 (en) Method of disseminating updated drivers to mobile computing devices and a dissemination system therefor
CN106815049B (en) Method and device for upgrading feature library
CN106250192A (en) The method for upgrading software of host computer and system
KR20170034901A (en) Method and device for repairing application programs, and storage medium
CN107256161B (en) Client upgrading method based on electron technology
CN105988809A (en) Online loading method for game resources and micro-end engine
JP2007528534A (en) Using a loader to notify system software update services
CN110535954B (en) Door lock firmware upgrading method, upgrading system, intelligent gateway and storage medium
CN107643882A (en) The storage and restoration methods of a kind of data reliability, system and storage device
CN108874439B (en) Method and device for acquiring customized difference packet, and upgrading method and device
CN107003876A (en) Firmware updates
CN111538523A (en) Differential upgrading method, device and storage medium
CN110597545A (en) Hot patch intelligent upgrading method and system based on OTA component
CN108572848A (en) The bottom firmware on line upgrading method, apparatus and storage medium of interactive system
CN102375744A (en) Network television upgrade method
CN105045671B (en) The method for upgrading system and device of a kind of intelligent terminal
CN106708494B (en) JAR upgrading method and device

Legal Events

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

Application publication date: 20160629