CN104915235A - Terminal device application program upgrading method and terminal device application program upgrading system - Google Patents

Terminal device application program upgrading method and terminal device application program upgrading system Download PDF

Info

Publication number
CN104915235A
CN104915235A CN201510330902.6A CN201510330902A CN104915235A CN 104915235 A CN104915235 A CN 104915235A CN 201510330902 A CN201510330902 A CN 201510330902A CN 104915235 A CN104915235 A CN 104915235A
Authority
CN
China
Prior art keywords
terminal device
rompaq
application program
external memory
memory equipment
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
CN201510330902.6A
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.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance 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 Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201510330902.6A priority Critical patent/CN104915235A/en
Publication of CN104915235A publication Critical patent/CN104915235A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a terminal device application program upgrading method and a terminal device application program upgrading system. The method includes performing separation of an upgrading Boot program from an upgrading program on an application program, and storing the upgrading program in an external storage device; when the application program of a terminal device needs to be upgraded, using the Boot program on the terminal device for verifying the upgrading program in the external storage device, and if verification passes, using the upgrading program in the external storage device for upgrading the application program. The terminal device application program upgrading method and the terminal device application program upgrading system have the advantages that since the upgrading program is stored in the external storage device, the upgrading program on the terminal device can be protected from being damaged or destroyed effectively, the terminal device can be upgraded normally, upgrade and update of the corresponding application program are guaranteed and the terminal device can be used normally.

Description

Terminal device application program updating method and system
Technical field
The present invention relates to the communications field, particularly relate to a kind of terminal device application program updating method and system.
Background technology
Along with the development of technology, the terminal device of various intelligence, such as mobile phone, PAD or Intelligent set top box etc., be widely used, bring great facility.
Terminal device is all provided with application program, and application program can irregularly upgrade.When application program upgrades, basic boot (comprising Boot program and the ROMPaq) application programs in terminal device is carried out upgrading and is upgraded.At present, Boot program and ROMPaq are all stored in terminal device by terminal device, but ROMPaq is easily because accident or external attack, and damage or destroyed, cause application programs to carry out upgrading renewal, terminal device can not normally use.Be generally and prevent this situation from occurring, terminal device is all back up ROMPaq, and backup upgrading program will increase the storage of terminal device, strengthens hardware cost.
Summary of the invention
In view of this, be necessary easily damage for above-mentioned updating terminal device program or destroy, cause terminal device application program cannot upgrade upgrade problem, a kind of terminal device application program updating method and system are provided.
The invention provides a kind of terminal device application program updating method, comprise the steps:
S10: Boot program is separated with ROMPaq, ROMPaq is stored in External memory equipment;
S20: when terminal device application program needs upgrading, External memory equipment is connected with terminal device, by the Boot program on terminal device, ROMPaq in External memory equipment is verified, if be verified, adopt the ROMPaq application programs in External memory equipment to upgrade.
Further, described step S10 is specially: Boot program be separated with ROMPaq, is obtained the sequence number of terminal device master chip, and produces one group of random number and sequence number combination producing key, be inserted among ROMPaq by Boot program.
Further, described step S10 is specially: the write once protection zone Boot program after separation being saved in terminal device internal preset.
Further, described step S20 is specially: by ROMPaq in External memory equipment, key is sent to Boot program, Boot process accepts key deciphering of marching into the arena, if can successful decryption and obtain master chip sequence number identical with present terminal equipment master chip sequence number, then be verified, otherwise checking is not passed through.
Further, described step S20 is specially: after being verified, and among by Boot program ROMPaq in External memory equipment being copied to terminal device buffer memory, application programs is upgraded, and empties the ROMPaq in buffer memory after having upgraded.
The present invention also provides a kind of terminal device application program updating system, comprising:
Separative element, is separated Boot program with ROMPaq, ROMPaq is stored in External memory equipment;
Upgrade unit, when terminal device application program needs upgrading, External memory equipment is connected with terminal device, by the Boot program on terminal device, ROMPaq in External memory equipment is verified, if be verified, adopt the ROMPaq application programs in External memory equipment to upgrade.
Further, Boot program is separated with ROMPaq by described separative element, is obtained the sequence number of terminal device master chip, and produces one group of random number and sequence number combination producing key, be inserted among ROMPaq by Boot program.
Further, the Boot program after separation is saved in the write once protection zone of terminal device internal preset by described separative element.
Further, described upgrade unit controls, by ROMPaq in External memory equipment, key is sent to Boot program, Boot process accepts key deciphering of marching into the arena, if can successful decryption and obtain master chip sequence number identical with present terminal equipment master chip sequence number, then be verified, otherwise checking is not passed through.
Further, described upgrade unit is after being verified, and among by Boot program ROMPaq in External memory equipment being copied to terminal device buffer memory, application programs is upgraded, and empties the ROMPaq in buffer memory after having upgraded.
Terminal device application program updating method and system of the present invention, application programs is carried out upgrading Boot program to be separated with ROMPaq, ROMPaq is stored in External memory equipment, when terminal device application program needs upgrading, by the Boot program on terminal device, ROMPaq in External memory equipment is verified, if be verified, the ROMPaq application programs in External memory equipment is adopted to upgrade, such ROMPaq is kept in External memory equipment, can effectively to avoid terminal device is upgraded program corruption or destroyed, also can upgrade normally to terminal device, thus ensure that the upgrading of application programs upgrades, terminal device is normally used.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the terminal device application program updating method in an embodiment;
Fig. 2 is the structural drawing of the terminal device application program updating system in an embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 is the process flow diagram of the terminal device application program updating method in an embodiment, and as shown in Figure 1, the method comprises the steps:
S10: Boot program is separated with ROMPaq, ROMPaq is stored in External memory equipment.
Because the Boot program of current terminal device and ROMPaq all store on the terminal device, easily there is ROMPaq damage in terminal device or destroyed situation causes terminal device can not carry out the upgrading of application program, therefore in this embodiment, the Boot program of terminal device is separated with ROMPaq, isolated ROMPaq is stored on External memory equipment, like this by being separated and being stored in the mode on External memory equipment, terminal device is avoided to damage or destroyed situation.
For ensureing the security being separated rear ROMPaq, in further embodiment, this step is specially: Boot program be separated with ROMPaq, the sequence number of terminal device master chip is obtained by Boot program, and produce one group of random number and sequence number combination producing key, be inserted among ROMPaq.Like this, by the uniqueness of master chip sequence number, then form key with random number combined ciphering the ROMPaq separated protected, thus ensure that be separated after the security of ROMPaq.
Further, for protection is separated the security of rear Boot program, this step also comprises: write once protection (OTP, the One Time Programable) region Boot program after separation being saved in terminal device internal preset.The very big like this security that ensure that the rear Boot program of separation.
S20: when terminal device application program needs upgrading, External memory equipment is connected with terminal device, by the Boot program on terminal device, ROMPaq in External memory equipment is verified, if be verified, adopt the ROMPaq application programs in External memory equipment to upgrade.
ROMPaq to be separated and after being saved in External memory equipment, if now terminal device needs application programs to upgrade, External memory equipment and terminal device is then needed to connect, by Boot program, authentication is carried out to the ROMPaq in External memory equipment upon connection, if be verified, the ROMPaq application programs in External memory equipment is adopted to upgrade, so both ensure that the security of ROMPaq, also guarantee normally to upgrade to terminal device application program.
In further embodiment, this step is specially: by ROMPaq in External memory equipment, key is sent to Boot program, Boot process accepts key deciphering of marching into the arena, if can successful decryption and obtain master chip sequence number identical with present terminal equipment master chip sequence number, then be verified, otherwise checking is not passed through.Like this, guaranteed the legitimacy of ROMPaq by checking, protect the security of terminal device.
Further, for ensureing the stability of ROMPaq, this step also comprises: after being verified, and among by Boot program ROMPaq in External memory equipment being copied to terminal device buffer memory, application programs is upgraded, and empties the ROMPaq in buffer memory after having upgraded.Can effectively avoid ROMPaq in External memory equipment damaged or go to pot like this.
This terminal device application program updating method, application programs is carried out upgrading Boot program to be separated with ROMPaq, ROMPaq is stored in External memory equipment, when terminal device application program needs upgrading, by the Boot program on terminal device, ROMPaq in External memory equipment is verified, if be verified, the ROMPaq application programs in External memory equipment is adopted to upgrade, such ROMPaq is kept in External memory equipment, can effectively to avoid terminal device is upgraded program corruption or destroyed, also can upgrade normally to terminal device, thus ensure that the upgrading of application programs upgrades, terminal device is normally used.
Meanwhile, the present invention also provides a kind of terminal device application program updating system, and as shown in Figure 2, this system comprises:
Separative element 100, is separated Boot program with ROMPaq, ROMPaq is stored in External memory equipment.
Because the Boot program of current terminal device and ROMPaq all store on the terminal device, easily there is ROMPaq damage in terminal device or destroyed situation causes terminal device can not carry out the upgrading of application program, therefore in this embodiment, the Boot program of terminal device is separated with ROMPaq by separative element 100, isolated ROMPaq is stored on External memory equipment, like this by being separated and being stored in the mode on External memory equipment, terminal device is avoided to damage or destroyed situation.
For ensureing the security being separated rear ROMPaq, in further embodiment, Boot program is separated with ROMPaq by separative element 100, the sequence number of terminal device master chip is obtained by Boot program, and produce one group of random number and sequence number combination producing key, be inserted among ROMPaq.Like this, by the uniqueness of master chip sequence number, then form key with random number combined ciphering the ROMPaq separated protected, thus ensure that be separated after the security of ROMPaq.
Further, for protection is separated the security of rear Boot program, the Boot program after separation is saved in write once protection (OTP, One Time Programable) region of terminal device internal preset by separative element 100.The very big like this security that ensure that the rear Boot program of separation.
Upgrade unit 200, when terminal device application program needs upgrading, External memory equipment is connected with terminal device, by the Boot program on terminal device, ROMPaq in External memory equipment is verified, if be verified, adopt the ROMPaq application programs in External memory equipment to upgrade.
ROMPaq to be separated and after being saved in External memory equipment, if now terminal device needs application programs to upgrade, then upgrade unit 200 needs External memory equipment and terminal device to connect, by Boot program, authentication is carried out to the ROMPaq in External memory equipment upon connection, if be verified, the ROMPaq application programs in External memory equipment is adopted to upgrade, so both ensure that the security of ROMPaq, also guarantee normally to upgrade to terminal device application program.
In further embodiment, upgrade unit 200 controls, by ROMPaq in External memory equipment, key is sent to Boot program, Boot process accepts key deciphering of marching into the arena, if can successful decryption and obtain master chip sequence number identical with present terminal equipment master chip sequence number, then be verified, otherwise checking is not passed through.Like this, guaranteed the legitimacy of ROMPaq by checking, protect the security of terminal device.
Further, for ensureing the stability of ROMPaq, upgrade unit 200 is after being verified, and among by Boot program ROMPaq in External memory equipment being copied to terminal device buffer memory, application programs is upgraded, and empties the ROMPaq in buffer memory after having upgraded.Can effectively avoid ROMPaq in External memory equipment damaged or go to pot like this.
This terminal device application program updating system, application programs is carried out upgrading Boot program to be separated with ROMPaq, ROMPaq is stored in External memory equipment, when terminal device application program needs upgrading, by the Boot program on terminal device, ROMPaq in External memory equipment is verified, if be verified, the ROMPaq application programs in External memory equipment is adopted to upgrade, such ROMPaq is kept in External memory equipment, can effectively to avoid terminal device is upgraded program corruption or destroyed, also can upgrade normally to terminal device, thus ensure that the upgrading of application programs upgrades, terminal device is normally used.
Terminal device application program updating method and system of the present invention, application programs is carried out upgrading Boot program to be separated with ROMPaq, ROMPaq is stored in External memory equipment, when terminal device application program needs upgrading, by the Boot program on terminal device, ROMPaq in External memory equipment is verified, if be verified, the ROMPaq application programs in External memory equipment is adopted to upgrade, such ROMPaq is kept in External memory equipment, can effectively to avoid terminal device is upgraded program corruption or destroyed, also can upgrade normally to terminal device, thus ensure that the upgrading of application programs upgrades, terminal device is normally used.
These are only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a terminal device application program updating method, is characterized in that, comprises the steps:
S10: Boot program is separated with ROMPaq, ROMPaq is stored in External memory equipment;
S20: when terminal device application program needs upgrading, External memory equipment is connected with terminal device, by the Boot program on terminal device, ROMPaq in External memory equipment is verified, if be verified, adopt the ROMPaq application programs in External memory equipment to upgrade.
2. terminal device application program updating method according to claim 1, it is characterized in that, described step S10 is specially: Boot program be separated with ROMPaq, the sequence number of terminal device master chip is obtained by Boot program, and produce one group of random number and sequence number combination producing key, be inserted among ROMPaq.
3. terminal device application program updating method according to claim 1, it is characterized in that, described step S10 is specially: the write once protection zone Boot program after separation being saved in terminal device internal preset.
4. terminal device application program updating method according to claim 2, it is characterized in that, described step S20 is specially: by ROMPaq in External memory equipment, key is sent to Boot program, Boot process accepts key deciphering of marching into the arena, if can successful decryption and obtain master chip sequence number identical with present terminal equipment master chip sequence number, then be verified, otherwise checking is not passed through.
5. terminal device application program updating method according to claim 2, it is characterized in that, described step S20 is specially: after being verified, among by Boot program ROMPaq in External memory equipment being copied to terminal device buffer memory, application programs is upgraded, and empties the ROMPaq in buffer memory after having upgraded.
6. a terminal device application program updating system, is characterized in that, comprising:
Separative element, is separated Boot program with ROMPaq, ROMPaq is stored in External memory equipment;
Upgrade unit, when terminal device application program needs upgrading, External memory equipment is connected with terminal device, by the Boot program on terminal device, ROMPaq in External memory equipment is verified, if be verified, adopt the ROMPaq application programs in External memory equipment to upgrade.
7. terminal device application program updating system according to claim 6, it is characterized in that, Boot program is separated with ROMPaq by described separative element, the sequence number of terminal device master chip is obtained by Boot program, and produce one group of random number and sequence number combination producing key, be inserted among ROMPaq.
8. terminal device application program updating system according to claim 6, is characterized in that, the Boot program after separation is saved in the write once protection zone of terminal device internal preset by described separative element.
9. terminal device application program updating system according to claim 7, it is characterized in that, described upgrade unit controls, by ROMPaq in External memory equipment, key is sent to Boot program, Boot process accepts key deciphering of marching into the arena, if can successful decryption and obtain master chip sequence number identical with present terminal equipment master chip sequence number, then be verified, otherwise checking is not passed through.
10. terminal device application program updating system according to claim 7, it is characterized in that, described upgrade unit is after being verified, among by Boot program ROMPaq in External memory equipment being copied to terminal device buffer memory, application programs is upgraded, and empties the ROMPaq in buffer memory after having upgraded.
CN201510330902.6A 2015-06-15 2015-06-15 Terminal device application program upgrading method and terminal device application program upgrading system Pending CN104915235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510330902.6A CN104915235A (en) 2015-06-15 2015-06-15 Terminal device application program upgrading method and terminal device application program upgrading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510330902.6A CN104915235A (en) 2015-06-15 2015-06-15 Terminal device application program upgrading method and terminal device application program upgrading system

Publications (1)

Publication Number Publication Date
CN104915235A true CN104915235A (en) 2015-09-16

Family

ID=54084317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510330902.6A Pending CN104915235A (en) 2015-06-15 2015-06-15 Terminal device application program upgrading method and terminal device application program upgrading system

Country Status (1)

Country Link
CN (1) CN104915235A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804801A (en) * 2005-12-30 2006-07-19 四川长虹电器股份有限公司 Memory data updating method and system
CN101409778A (en) * 2008-11-07 2009-04-15 深圳创维数字技术股份有限公司 Method and apparatus for upgrading set-top box software
CN101419557A (en) * 2008-07-29 2009-04-29 航天信息股份有限公司 Program downloading control method
CN102004657A (en) * 2010-12-15 2011-04-06 周佳 Electronic equipment and updating method thereof
CN102063317A (en) * 2010-12-22 2011-05-18 Tcl集团股份有限公司 Method and system for renewedly burning application program by embedded equipment
CN102646046A (en) * 2012-04-13 2012-08-22 深圳市同洲电子股份有限公司 Upgrading method and terminal
CN102841802A (en) * 2012-07-27 2012-12-26 锐迪科科技有限公司 Software upgrading method for mobile terminal
CN103164659A (en) * 2011-12-13 2013-06-19 联想(北京)有限公司 Method for realizing data storage safety and electronic device
CN103207800A (en) * 2013-04-24 2013-07-17 厦门亿联网络技术股份有限公司 Method for safely and flexibly upgrading firmware
US20150033030A1 (en) * 2007-01-07 2015-01-29 Apple Inc. Securely recovering a computing device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804801A (en) * 2005-12-30 2006-07-19 四川长虹电器股份有限公司 Memory data updating method and system
US20150033030A1 (en) * 2007-01-07 2015-01-29 Apple Inc. Securely recovering a computing device
CN101419557A (en) * 2008-07-29 2009-04-29 航天信息股份有限公司 Program downloading control method
CN101409778A (en) * 2008-11-07 2009-04-15 深圳创维数字技术股份有限公司 Method and apparatus for upgrading set-top box software
CN102004657A (en) * 2010-12-15 2011-04-06 周佳 Electronic equipment and updating method thereof
CN102063317A (en) * 2010-12-22 2011-05-18 Tcl集团股份有限公司 Method and system for renewedly burning application program by embedded equipment
CN103164659A (en) * 2011-12-13 2013-06-19 联想(北京)有限公司 Method for realizing data storage safety and electronic device
CN102646046A (en) * 2012-04-13 2012-08-22 深圳市同洲电子股份有限公司 Upgrading method and terminal
CN102841802A (en) * 2012-07-27 2012-12-26 锐迪科科技有限公司 Software upgrading method for mobile terminal
CN103207800A (en) * 2013-04-24 2013-07-17 厦门亿联网络技术股份有限公司 Method for safely and flexibly upgrading firmware

Similar Documents

Publication Publication Date Title
AU2013270195B2 (en) Mobile terminal detection method and mobile terminal
EP2746982B1 (en) Method and apparatus for supporting dynamic change of authentication means for secure booting
CN102075910B (en) Method and device for locking terminal
US20090193211A1 (en) Software authentication for computer systems
US8972591B2 (en) Method for downloading software
US11182469B2 (en) Application security authentication method, terminal and storage medium
CN108229144B (en) Verification method of application program, terminal equipment and storage medium
CN104636171A (en) Upgrading method and device and mobile device
CN104217175A (en) Data read-write method and device
CN107430658A (en) Fail-safe software certification and checking
CN107466455B (en) POS machine security verification method and device
CN106415585A (en) Key extraction during secure boot
US10412079B2 (en) NFC device, software installation method, software uninstallation method, computer program and article of manufacture
CN107124279B (en) Method and device for erasing terminal data
CN101630265A (en) Upgrading device, terminal device, method and system for updating software
CN102930184A (en) Functional component loading method and device
CN105511920A (en) Container based mobile terminal operating system upgrading method and device
KR101642267B1 (en) System for preventing forgery of application and method therefor
US20150220456A1 (en) Method for protecting a program code, corresponding system and processor
CN110781478A (en) Method and device for realizing debugging by temporarily authorizing Root
CN112231709B (en) System safety design method with remote upgrading function
EP3193262A1 (en) Database operation method and device
CN107995230B (en) A kind of method for down loading and terminal
US20180145992A1 (en) Data verification method
KR102365254B1 (en) Management system and method for data security for storage device using security 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20150916

RJ01 Rejection of invention patent application after publication