CN104679554B - Operating system update method - Google Patents

Operating system update method Download PDF

Info

Publication number
CN104679554B
CN104679554B CN201410828384.6A CN201410828384A CN104679554B CN 104679554 B CN104679554 B CN 104679554B CN 201410828384 A CN201410828384 A CN 201410828384A CN 104679554 B CN104679554 B CN 104679554B
Authority
CN
China
Prior art keywords
shelves
operating
inspection
check
meet
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.)
Expired - Fee Related
Application number
CN201410828384.6A
Other languages
Chinese (zh)
Other versions
CN104679554A (en
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.)
Qisda Suzhou Co Ltd
Qisda Corp
Original Assignee
Qisda Suzhou Co Ltd
Qisda Corp
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 Qisda Suzhou Co Ltd, Qisda Corp filed Critical Qisda Suzhou Co Ltd
Priority to CN201410828384.6A priority Critical patent/CN104679554B/en
Publication of CN104679554A publication Critical patent/CN104679554A/en
Application granted granted Critical
Publication of CN104679554B publication Critical patent/CN104679554B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of update method of operating system, comprises the steps of:Device Connection Service device, checks whether the server has the second operating system;If the server has second operating system, downloaded from the server and check table to the device;Check that the current of the device replys whether image shelves meet the inspection table;If the current reply image shelves do not meet the inspection table, spare reply image shelves are substituted into the current reply image shelves;Check whether the system system shelves of the device meet the inspection table;If system system shelves do not meet the inspection table, the complete bag archives that update corresponding to second operating system are downloaded to the device from the server;And second operating system is installed to the device with the spare reply image shelves and the complete renewal bag archives, to replace the first operating system of the device.

Description

Operating system update method
Technical field
Update method of the present invention on operating system, espespecially using the operating system update method for checking table.
Background technology
Has method of the device with after server foundation connection, automatically updating operating system, such as firmware broadcast at present (firmware over-the-air;FOTA) technology is usually used in automatically updating the operating system of running gear (such as mobile phone).Fig. 1 For the flow chart of operating system update method 100 in prior art.(example after device and server such as step 110, which are established, to be connected Such as, when mobile phone connects Wi-Fi networks and can be connected with server), it can check on server whether there is new edition in step 120 Operating system.If having new edition operating system, in step 130 download renewal bag archives, then at step 140 with download more One group of system file and reply image shelves (recovery image file) installation (install) inside new bag archives, device New edition operating system is in device.However, if user had previously carried out software transformation (such as the brush machine journey being commonly called as of device Sequence), the system file inside device and reply image shelves have been changed, then the renewal of above-mentioned operating system may be caused to lose Lose, increase the inconvenience of user, also cause user's experience bad.
The content of the invention
It is an object of the invention to provide a kind of communication system and the means of communication, to confirm reliable broadcaster.
Compare with the prior art, communication system of the present invention and the means of communication, can very easily pick out reliable wide Broadcasting device and insecure broadcaster so that whole communication process is safer.
More preferably understand to have to the above-mentioned and other aspect of the present invention, preferred embodiment cited below particularly, and coordinate institute Accompanying drawings, are described in detail below:
Brief description of the drawings
Fig. 1 is the flow chart of operating system update method in prior art.
Fig. 2 is the flow chart of the update method of operating system in the embodiment of the present invention.
Fig. 3 is the connection of device and server and the schematic diagram of associated profiles in the embodiment of the present invention.
Fig. 4 is the connection of device and server and the schematic diagram of associated profiles in another embodiment of the present invention.
Fig. 5 is the connection of device and server and the schematic diagram of associated profiles in another embodiment of the present invention.
Fig. 6 is the connection of device and server and the schematic diagram of associated profiles in another embodiment of the present invention.
Fig. 7 is the schematic diagram that table is checked in the embodiment of the present invention..
Embodiment
Fig. 2 is the flow chart of the update method 200 of operating system in the embodiment of the present invention.Fig. 3 to Fig. 6 is implemented for the present invention Device D1 and the connection of server S 1 and the schematic diagram of associated profiles in example.
Device D1 has been provided with the first operating system OS1, update method 200 to automatic renewing device D1 operation system System, it comprises the following steps:
Step 210:As device D1 Connection Service device S1, check whether server S 1 has the second operating system OS2If It is to enter step 220;If it is not, return to step 210;
Step 220:Downloaded from server S 1 and check that table chklist to device S1, enters step 230;
Step 230:Whether reply image shelves image current device D1 meets inspection table chklistIf so, enter step Rapid 250;If it is not, enter step 240;
Step 240:Image shelves image is replied with spare reply image shelves imageBackup substitutions;Enter step 260;
Step 250:Whether the system system shelves SysFiles of device D1 meets inspection table chklistIf so, enter step 252;If it is not, enter step 256;
Step 252:Download renewal bag archives DiffPkg to device D1;
Step 253:Made with replying image shelves image, renewal bag archives DiffPkg and system shelves SysFiles installations second Industry system OS2 to device D1, with the first operating system OS1 of displacement apparatus D1.
Step 256:Download complete renewal bag archives FullPkg to device D1;
Step 257:The second operating system OS2 is installed extremely to reply image shelves image and complete renewal bag archives FullPkg Device D1, with the first operating system OS1 of displacement apparatus D1.
Step 260:Whether the system system shelves SysFiles of device D1 meets inspection table chklistIf so, enter step 262;If it is not, enter step 266;
Step 262:Download renewal bag archives DiffPkg to device D1;
Step 263:With spare reply image shelves imageBackup, renewal bag archives DiffPkg and system shelves SysFiles Second operating system OS2 to device D1 is installed, with the first operating system OS1 of displacement apparatus D1.
Step 266:Download complete renewal bag archives FullPkg to device D1;
Step 267:Made with spare reply image shelves imageBackup and complete renewal bag archives FullPkg installations second Industry system OS2 to device D1, with the first operating system OS1 of displacement apparatus D1.
Above-mentioned device D1 can be the devices such as mobile phone, tablet computer, home computer or intelligent household appliances.Described in step 210 Device D1 Connection Service device S1, for example, when mobile phone connects Wi-Fi network, 3G networks or LTE networks, mobile phone (device D1) is logical Cross network to be connected with far-end server (server S 1), after connection is established, can check whether server S 1 has for renewal automatically The second operating system OS2, for example, if the first operating system OS1 that device D1 was originally installed is Android 4.4 editions (Android 4.4-KitKat), then can check whether there is the Android of the version for renewal when device D1 Connection Service device S1 Operating system.If server S 1 has the second operating system OS2 of the version for renewal, such as than Android 4.4 editions closer to version Android 5.0 editions (Android 5.0-Lollipop), then in step 220 download check table chklist, if but step 210 inspection The fruit that comes to an end is no, then can return to step 210 and continue checking for, its frequency checked can be set in the virtual device end in device D1 Server, such as the firmware broadcasting server (FOTA server) of interior of mobile phone is set in, its frequency may be, for example, daily check Once, or when next device D1 is connected to server S 1 inspection of step 210 is carried out again.
, can be according to inspection table chklist check devices D1 after inspection table chklist to device D1 to be downloaded in step 230 Whether the storage location and archive content of interior current reply image shelves (recovery image file) image be correct, if It is that can then continue to use current reply image shelves image, enters step 250;If it is not, then entering step 240, reflected with spare reply As the incorrect reply image shelves image of shelves imageBackup substitutions.Wherein, spare reply image shelves imageBackup can be pre- First it is stored in device D1, downloads or be stored in storage area in memory external card (such as SD card) from server S 1, outside note Recall the slot of card insertable device D1.Replying the function of image shelves will be described in hereinafter.
Step 250 is with step 260, being whether the system system shelves SysFiles of check device D1 meets inspection table Chklist, inspection item may be, for example, storage path and archive content.By taking Android operating system as an example, when updating operating system, Multiple system files (it may be, for example, the archives of apk forms) under system information kits must perform when updating operating system System file, if the inspection result of step 250 or step 260 represents that the system system shelves SysFiles of device D1 can to meet Used when subsequent installation the second operating system OS2, therefore 252 or step 262 can be entered step, it is only necessary to it is less more to download size New bag archives DiffPkg.However, if the inspection result of step 250 or step 260 represents being somebody's turn to do for device D1 not meet System system shelves SysFiles may have the situation that loss, damage or archives are misplaced, can not be in the second operating system of subsequent installation OS2 When use, therefore 256 or step 266 need to be entered step, download that size is larger but the complete renewal bag archives of content intact FullPkg, for being used during subsequent installation the second operating system OS2.
The step 252 of Fig. 2 to step 253 may correspond to Fig. 3, step 256 to step 257 may correspond to Fig. 4, step 262 To step 263 may correspond to Fig. 5, step 266 to step 267 may correspond to Fig. 6.
By taking step 252 to step 253 and Fig. 3 as an example, because of device D1 current reply image shelves image and system shelves SysFiles all meets inspection table chklist, thus can in step 253, with:
(1) reply image shelves image,
(2) update bag archives DiffPkg and
(3) system shelves SysFiles
Second operating system OS2 to device D1 is installed, with the first operating system OS1 of displacement apparatus D1.Its implementation detail Can be as described below:Treat that step 252 downloads renewal bag archives DiffPkg to device D1, will be filled with replying the setting of image shelves image Put D1 boots (reboot) and enter reply pattern (recovery mode), and in reply pattern, perform renewal bag archives The formula of DiffPkg and system shelves SysFiles are to install the second operating system OS2 to device D1.If by taking Android system as an example, User can see that the rotation of Android little Lv robots updates picture when step 253 installs the second operating system OS2, to be installed After the completion of second operating system OS2, device D1 boots will enter normal mode again, you can begin to use the second operating system OS2。
Again by taking step 266 to step 267 and Fig. 6 as an example, because in step 230, the reply image shelves image of device D1 is not inconsistent Close and check table chklist, therefore image shelves image is replied with spare reply image shelves imageBackup substitutions in step 240.Again In step 260, system shelves SysFiles does not meet inspection table chklist, therefore downloads larger-size downloaded in step 266 Whole renewal bag archives FullPkg to device D1.Therefore, can in step 267 with:
(1) spare reply image shelves imageBackup and
(2) bag archives FullPkg is completely updated
Second operating system OS2 to device D1 is installed, its implementation detail also can be as above-mentioned, first with spare reply image shelves Device D1 boots is entered reply pattern by imageBackup, and complete renewal bag archives FullPkg is performed in reply pattern Formula (its can be multiple apk forms formula shelves) installation second operating system OS2.
The principle of Fig. 4 (correspond to step 256 to 257) and Fig. 5 (corresponding to step 262 to 263) be same as it is above-mentioned, also even If reply image shelves image do not meet inspection table chklist then with spare reply image shelves imageBackup substitute it, system Shelves SysFiles does not meet inspection table and then downloads complete renewal bag archives FullPkg, and so it will not be repeated.The first above-mentioned operation system System OS1 and the version system of the second operating system OS2, the second operating system OS installed after renewal allow for newly in, be same as Or the version older than the first operating system OS1.In addition, the renewal of operating system is carried out every time, can be in server S 1 with daily record The operation of shelves (log file) record renewal, as having access to or except wrong (debug) is used in the future.
It is the reply image shelves image and system shelves SysFiles of default device D1 when prior art updates operating system Quantity, storage path and archive content it is intact, therefore prior art be directly download renewal bag archives DiffPkg, with Use the operating system replied image shelves image, system shelves SysFiles with update bag archives DiffPkg installation new editions.However, More and more user's hobbies attempt transformation operating system with brush machine (rooting) behavior, if brush machine process causes to reply image Shelves image and/or system shelves SysFiles damage or lose, then prior art automatically update will failure, cause user without Method updates the puzzlement of operating system.There is the high practice of a probalility of success, be whenever device D1 is connected and checks with server S 1 When there is the second operating system OS2 to server S 1, above-mentioned complete renewal bag archives FullPkg is just downloaded to device D1 to pacify The second operating system OS2 is filled, however, because the archives size for updating bag archives DiffPkg can be solely ten millions of bits (megabyte, calls MB in the following text), and the archives for completely updating bag archives FullPkg may size up to hundreds of MB, its archives size Ratio great disparity, if therefore always download complete renewal bag archives FullPkg, when can cause to take substantial amounts of network bandwidth with downloading Between.Therefore, this case the embodiment described is the reply image shelves image with the leading check device D1 of inspection table chklist with being Unite shelves SysFiles, further according to inspection result, decides whether to reply image shelves with spare reply image shelves imageBackup displacements Image and decision will download renewal bag archives DiffPkg or complete renewal bag archives FullPkg.
Step 256 described above is with step 266, downloading before completely updating bag archives FullPkg, because of complete renewal bag The archives size of archives FullPkg is larger (such as up to hundreds of MB), therefore can first put question to message to ask whether to agree to from service Device S1 downloads complete renewal bag archives FullPkg to device D1, if user agrees to, just downloads complete renewal bag from server S 1 Archives FullPkg to device D1.
Fig. 7 is the schematic diagram that table chklist is checked in the embodiment of the present invention.According to embodiments of the present invention, it can be file Archives, record storage path and the check code of archives, and for the inspection table chklist shown in Fig. 5, its first row is to examine Look into and reply image shelves image, follow-up multirow is then used to check system system shelves SysFiles.It is contained with the second behavior example, path a "/system/app/Browser.apk " be system shelves SysFiles in an archives Browser.apk its correctly store Path, and check code b is the correct check code corresponding to archives Browser.apk.The form of check code b can be (but unlimited In) Secure Hash code form (sha1format).When an inspection is performed, can be by examined archives (such as Browser.apk) One Secure Hash code (sha1code) is calculated with Secure Hash algorithm (Secure Hash Algorithm), reexamine with Whether the Secure Hash code that Browser.apk is tried to achieve meets the check code b of inspection table chklist records, if the shelves in device D1 The storage path of case Browser.apk meets path a, and corresponding Secure Hash code symbol closes check code b, then understands system shelves The second row that archives Browser.apk among SysFiles meets inspection table chklist is errorless.Similarly, also according to inspection table Chklist, checks and replys whether image shelves image is placed in the correct image shelves path of device D1 and checks reply image shelves Whether the corresponding check codes of image are correct;According to check table chklist, check device D1 a system system information kit in whether With corresponding system system shelves SysFiles and check each system shelves corresponding one in system system shelves SysFiles Whether check code is correct.Step 230, step 250 and step 260 shown in Fig. 2 is for replying image shelves image or system shelves The inspection of SysFiles, such as it is above-mentioned with check table chklist check its store path and archive content it is whether correct.
Through the update method using the operating system described in the embodiment of the present invention, can help it is increased carry out brush machine after Cause to reply image shelves and/or system shelves are lost or damage and then can not be successfully the use of the operating system of automatic renewing device Person, can also take into account the renewal wish of user with saving bandwidth resources, even if because system shelves damage, can not meet inspection table and need Complete renewal bag archives are downloaded, user can only feel that download time is slightly longer, but not such as prior art, meet with renewal failure Mistake.It is real helpful therefore this case is please for solving the problems, such as this area prior art, and the experience of improvement user.
In conclusion although the present invention is disclosed above with preferred embodiment, so it is not limited to the present invention.This hair Bright those of ordinary skill in the art, without departing from the spirit and scope of the present invention, when various changes can be made With retouching.Therefore, protection scope of the present invention is when subject to as defined in claim.

Claims (11)

  1. A kind of 1. update method of operating system, to the first operating system of displacement apparatus, it is characterised in that the update method Comprising:
    The device Connection Service device, checks whether the server has the second operating system;
    If the server has second operating system, downloaded from the server and check table to the device;
    Check that the current of the device replys whether image shelves meet the inspection table;
    If the current reply image shelves do not meet the inspection table, spare reply image shelves are substituted into the current reply image shelves;
    Check whether the system system shelves of the device meet the inspection table;
    If system system shelves meet the inspection table, renewal bag archives are downloaded to the device, wherein the renewal bag shelves from the server Case corresponds to the part more new archive of second operating system;And
    Second operating system is installed to the device with the spare reply image shelves, the renewal bag archives and system system shelves, with Replace first operating system of the device.
  2. 2. update method as claimed in claim 1, it is characterised in that check whether the current reply image shelves of the device accord with The inspection table is closed, is:
    According to the inspection table, check whether the current reply image shelves are placed in the image shelves path of the device;And
    According to the inspection table, check whether the corresponding check code of the current reply image shelves is correct.
  3. 3. update method as claimed in claim 1, it is characterised in that the spare reply image shelves are placed in the device, the clothes The storage area being engaged in device or memory external card, the memory external card can be inserted into the slot of the device.
  4. 4. update method as claimed in claim 1, it is characterised in that check whether the system system shelves of the device meet the inspection Table look-up, be:
    Whether according to the inspection table, checking has corresponding system system shelves in the system system information kit of the device;And
    According to the inspection table, check whether each corresponding check code of system shelves is correct in system system shelves.
  5. 5. update method as claimed in claim 1, it is characterised in that the version of second operating system newly in or be same as or Older than the version of first operating system.
  6. 6. a kind of update method of operating system, to the first operating system of displacement apparatus, which includes:
    The device Connection Service device, checks whether the server has the second operating system;
    If the server has second operating system, downloaded from the server and check table to the device;
    Check that the current of the device replys whether image shelves meet the inspection table;
    If the current reply image shelves meet the inspection table, check whether the system system shelves of the device meet the inspection table;
    If system system shelves meet the inspection table, renewal bag archives are downloaded to the device, wherein the renewal bag shelves from the server Case corresponds to the part more new archive of second operating system;And
    Second operating system is installed to the device with the current reply image shelves, the renewal bag archives and the system system shelves, with Replace first operating system of the device.
  7. 7. update method as claimed in claim 6, it is characterised in that check whether the system system shelves of the device meet the inspection Table look-up, be:
    Whether according to the inspection table, checking has corresponding system system shelves in the system system information kit of the device;And
    According to the inspection table, check whether each corresponding check code of system shelves is correct in system system shelves.
  8. A kind of 8. update method of operating system, to the first operating system of displacement apparatus, it is characterised in that the update method Comprising:
    The device Connection Service device, checks whether the server has the second operating system;
    If the server has second operating system, downloaded from the server and check table to the device;
    Check that the current of the device replys whether image shelves meet the inspection table;
    If the current reply image shelves do not meet the inspection table, spare reply image shelves are substituted into the current reply image shelves;
    Check whether the system system shelves of the device meet the inspection table;
    If system system shelves do not meet the inspection table, it is complete to the device, wherein this to download completely renewal bag archives from the server Whole renewal bag archives system corresponds to second operating system;And
    Second operating system is installed to the device with the spare reply image shelves and the complete renewal bag archives, to replace the dress First operating system put.
  9. 9. update method as claimed in claim 8, it is characterised in that check whether the system system shelves of the device meet the inspection Table look-up, be:
    Whether according to the inspection table, checking has corresponding system system shelves in the system system information kit of the device;And
    According to the inspection table, check whether each corresponding check code of system shelves is correct in system system shelves.
  10. A kind of 10. update method of operating system, to the first operating system of displacement apparatus, it is characterised in that the renewal side Method includes:
    The device Connection Service device, checks whether the server has the second operating system;
    If the server has second operating system, downloaded from the server and check table to the device;
    Check that the current of the device replys whether image shelves meet the inspection table;
    If the current reply image shelves meet the inspection table, check whether the system system shelves of the device meet the inspection table;
    If system system shelves do not meet the inspection table, it is complete to the device, wherein this to download completely renewal bag archives from the server Whole renewal bag archives system corresponds to second operating system;And
    Second operating system is installed to the device with the current reply image shelves and the complete renewal bag archives, to replace the dress First operating system put.
  11. 11. update method as claimed in claim 10, it is characterised in that check whether the system system shelves of the device meet this Check table, be:
    Whether according to the inspection table, checking has corresponding system system shelves in the system system information kit of the device;And
    According to the inspection table, check whether each corresponding check code of system shelves is correct in system system shelves.
CN201410828384.6A 2014-12-26 2014-12-26 Operating system update method Expired - Fee Related CN104679554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410828384.6A CN104679554B (en) 2014-12-26 2014-12-26 Operating system update method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410828384.6A CN104679554B (en) 2014-12-26 2014-12-26 Operating system update method

Publications (2)

Publication Number Publication Date
CN104679554A CN104679554A (en) 2015-06-03
CN104679554B true CN104679554B (en) 2018-04-17

Family

ID=53314651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410828384.6A Expired - Fee Related CN104679554B (en) 2014-12-26 2014-12-26 Operating system update method

Country Status (1)

Country Link
CN (1) CN104679554B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639795A (en) * 2008-07-31 2010-02-03 富士通株式会社 Software updating device and software updating method
CN102799499A (en) * 2012-06-15 2012-11-28 深圳乐投卡尔科技有限公司 Vehicular Android equipment system recovery method and vehicular Android equipment
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN103514065A (en) * 2012-06-29 2014-01-15 国基电子(上海)有限公司 Electronic device with automatic detection and recovery function and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639795A (en) * 2008-07-31 2010-02-03 富士通株式会社 Software updating device and software updating method
CN102799499A (en) * 2012-06-15 2012-11-28 深圳乐投卡尔科技有限公司 Vehicular Android equipment system recovery method and vehicular Android equipment
CN103514065A (en) * 2012-06-29 2014-01-15 国基电子(上海)有限公司 Electronic device with automatic detection and recovery function and method
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment

Also Published As

Publication number Publication date
CN104679554A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
US7991988B2 (en) Communication device and firmware update method thereof
CN104166565B (en) A kind of intelligent display terminal firmware upgrade method
TWI533216B (en) Operating system updating method
CN104166564B (en) A kind of display terminal method for updating program
CN103970566B (en) A kind of method and apparatus of router firmware upgrading
US20120117557A1 (en) Method and system for upgrading wireless data card
US8572399B2 (en) Method and system for two-stage security code reprogramming
US9244758B2 (en) Systems and methods for repairing system files with remotely determined repair strategy
US7634258B2 (en) System and method for over-the-air update of wireless communication devices
CN106843957A (en) System firmware upgrade method and device
US10268845B2 (en) Securing of the loading of data into a nonvolatile memory of a secure element
CN105468395A (en) Updating method, device and system
CN104052818A (en) Version upgrade method and device for mobile terminal
CN106331862A (en) Set-top box software upgrading method and set-top box
CN105045640A (en) Software upgrading method and apparatus and intelligent device
CN106303709B (en) A kind of set-top box and its application program updating method, system
CN106897166A (en) A kind of mobile terminal and its restorative procedure
CN103559065A (en) Method and system for OTA (Over-the-Air Technology) upgrade
CN106210877A (en) The method for upgrading system of intelligent television and device
CN104918114B (en) A kind of operating system update method and device
CN104679554B (en) Operating system update method
CN107911218A (en) A kind of firmware signature device, system and method
CN111104173A (en) Protection design method of bootstrap program
US20170185311A1 (en) Data Processing Method and Smart Device
CN106161532A (en) A kind of orientation method for cleaning based on cloud service and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180417

Termination date: 20191226