CN104504326A - Method for examining integrity of system flies - Google Patents

Method for examining integrity of system flies Download PDF

Info

Publication number
CN104504326A
CN104504326A CN201410737653.8A CN201410737653A CN104504326A CN 104504326 A CN104504326 A CN 104504326A CN 201410737653 A CN201410737653 A CN 201410737653A CN 104504326 A CN104504326 A CN 104504326A
Authority
CN
China
Prior art keywords
file
detection
upgraded
check
inconsistent
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
CN201410737653.8A
Other languages
Chinese (zh)
Inventor
常健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tian Long Electronic Science And Technology Co Ltd Of Jiangsu Province
Shenzhen Tinno Wireless Technology Co Ltd
Original Assignee
Tian Long Electronic Science And Technology Co Ltd Of Jiangsu Province
Shenzhen Tinno Wireless 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 Tian Long Electronic Science And Technology Co Ltd Of Jiangsu Province, Shenzhen Tinno Wireless Technology Co Ltd filed Critical Tian Long Electronic Science And Technology Co Ltd Of Jiangsu Province
Priority to CN201410737653.8A priority Critical patent/CN104504326A/en
Publication of CN104504326A publication Critical patent/CN104504326A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The invention discloses a method for examining integrity of system flies. The method comprises the following steps: starting examining integrity of the system files; reading detection tables of the original system files; examining the system files according to the detection tables; judging incompletion of the system files when system files to be upgraded are examined to be inconsistent with the detection tables, and displaying the content that the system files are inconsistent with the original system files. By the adoption of the manner, the method can improve users' experience.

Description

A kind of method of check system file integrality
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of method of check system file integrality.
Background technology
At present, user uses in the process of mobile phone and understands by taking ROOT mobile phone to carry out customization operation.Wherein user can delete or revise the partial software of cell phone system voluntarily, and then destroys the stability of mobile phone system software.When manufacturer upgrades the AKU of cell phone system, mobile phone is upgraded to cell phone system according to AKU, causes cell phone system to be upgraded and makes mistakes, have impact on the experience effect of user.
Summary of the invention
Embodiments provide a kind of method of check system file integrality, the experience effect of user can be improved.
The invention provides a kind of method of check system file integrality, it comprises: the integrality of start-up check system file; Read the detection table of original system file, and according to detection table look-up system file; If be checked through system file to be upgraded and detection table is inconsistent, then system file is imperfect, and the content inconsistent with original system file that show system files.
Wherein, the integrality of start-up check system file comprises: when system file is upgraded, the integrality of start-up check system file.
Wherein, if be checked through system file to be upgraded and detection table is inconsistent, system file stops upgrading.
Wherein, detection table comprises size and the modification time of the All Files of original system file.
Wherein, comprise according to detecting table look-up system file: whether the size of each file of check system file is consistent with the size of the file detecting table correspondence; If not, then system file to be upgraded is shown inconsistent with detection; If so, then whether the modification time of the file that the modification time of each file of check system file is corresponding with detecting table is consistent; If not, then system file to be upgraded is shown inconsistent with detection.
Wherein, method also comprises: if it is consistent with detection table to be checked through system file to be upgraded, then system file is complete, and system file is upgraded.
Wherein, system file carries out upgrading and comprises: obtain space download technology OTA AKU; Enter system upgrade pattern, according to OTA AKU, system file is upgraded.
Wherein, OTA AKU is difference bag.
By such scheme, the invention has the beneficial effects as follows: the present invention passes through to read the detection table of original system file, and according to detection table look-up system file; If be checked through system file to be upgraded and detection table is inconsistent, then system file is imperfect, and the content inconsistent with original system file that show system files, the experience effect of user can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, 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 prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.Wherein:
Fig. 1 is the process flow diagram of the upgrade method of the system file of first embodiment of the invention;
Fig. 2 is the process flow diagram of the method for the check system file integrality of first embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under performing creative labour prerequisite, belong to the scope of protection of the invention.
The method of disclosed check system file integrality is based on mobile terminal, and mobile terminal is preferably the mobile device such as mobile phone or panel computer.As shown in Figure 1, the upgrade method of the system file of mobile terminal, the method comprises:
S101: mobile terminal receives AKU and pushes, and points out customer upgrade information;
S102: user determines whether carry out system upgrade according to upgrade information;
S103: if so, then mobile terminal downloads AKU;
S104: the system reboot of mobile terminal also switches to Recovery pattern and upgrades;
S105: system file is upgraded according to AKU.
Wherein, Recovery pattern is engineering mode, and in this mode, user can brush into new Android system file, or backs up system file or upgrade, or factory reset.
When system file is upgraded, the integrality of mobile terminal start-up check system file, as shown in Figure 2, the method for the check system file integrality that the present embodiment discloses comprises:
S201: the integrality of start-up check system file;
S202: the detection table reading original system file, and according to detection table look-up system file;
S203: if be checked through system file to be upgraded and detection table is inconsistent, then system file is imperfect, and the content inconsistent with original system file that show system files.
In S201, when system file is upgraded, the integrality of mobile terminal start-up check system file.Namely all can the integrality of start-up check system file in any one step in S101-S103.
In S202, detection table comprises size and the modification time of the All Files of original system file.Wherein, original system file is the system file that mobile terminal is arranged when dispatching from the factory, and look-up table is arranged in original system file.
Wherein, comprise according to detecting table look-up system file: whether the size of each file of this file of detection system is consistent with the size of the file detecting table correspondence;
If not, show inconsistent at system file to be upgraded and detection, enter S203;
If so, then whether the modification time of the file that the modification time of each file of detection system file is corresponding with detecting table is consistent;
If not, then system file to be upgraded is shown inconsistent with detection, enters S203.
In S203, if be checked through system file to be upgraded and detection table is inconsistent, system file stops upgrading, and to be showed system files the content inconsistent with original system file by the display screen of mobile terminal.
If be checked through system file to be upgraded consistent with detection table time, system file is complete, then system file is upgraded.Specifically comprise:
In S103, mobile terminal downloads AKU, obtains OTA (Over the AirTechnology, space download technology) AKU.The wherein software upgrade package that provides for Android system of OTA AKU, can lossless upgrade system file by OTA AKU, downloads OTA AKU, also can download OTA AKU to SD card upgrade system file mainly through wireless network.OTA AKU is generally a few M to tens M, without the need to Backup Data, and can very fast completion system document upgrading.
Preferably, OTA AKU is difference bag.The i.e. original system FileVersion A of mobile terminal when dispatching from the factory, the size of version A is 300-600M; The software of producer to original system file is revised, and the size to the system file version B that user provides to upgrade, version B is 300-600M.Such as, A file is 1234567890abcdefghijklmnopqrst, B file is 1234abc890123defg, and original system FileVersion A is by numerous A combination of files, and original system FileVersion B is by numerous B combination of files.Version B and version A only have changed the fraction content of system file, and difference bag is 5_abc_10_123_18__, and represent that the 5th byte starts to change abc into, the tenth byte starts to change 123 into, and the 18th file that byte is later is all deleted.
Enter system upgrade pattern, according to OTA AKU, system file is upgraded.I.e. S104-S105, enters Recovery pattern, upgrades to system file according to difference bag.
By the way, user knew that whether system file was complete before download OTA AKU, if system file is complete, then user downloads OTA AKU and upgrades to system file; If system file is imperfect, then system file stops upgrading; And then the experience effect of user can be improved.
In other embodiments, those of ordinary skill in the art can also to the integrality of carrying out MD5 (Message Digest Algorithm MD5, Message Digest Algorithm 5) or SHA (data encryption algorithm) check system file in whole system.
In sum, the present invention passes through the detection table reading original system file, and according to detection table look-up system file; If be checked through system file to be upgraded and detection table is inconsistent, then system file is imperfect, and the content inconsistent with original system file that show system files, the experience effect of user can be improved.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (8)

1. a method for check system file integrality, is characterized in that, described method comprises:
The integrality of start-up check system file;
Read the detection table of original system file, and according to described detection table look-up system file;
If be checked through described system file to be upgraded and described detection table is inconsistent, then described system file is imperfect, and shows described system file and the inconsistent content of described original system file.
2. method according to claim 1, is characterized in that, the integrality of described start-up check system file comprises:
When described system file is upgraded, the integrality of system file described in start-up check.
3. method according to claim 2, is characterized in that, if be checked through described system file to be upgraded and described detection table is inconsistent, described system file stops upgrading.
4. method according to claim 1 and 2, is characterized in that, described detection table comprises size and the modification time of the All Files of described original system file.
5. method according to claim 4, is characterized in that, described according to described detection table look-up system file comprise:
Check that whether the size of the file that the size of each file of described system file is corresponding with described detection table is consistent;
If not, then described system file to be upgraded and described detect show inconsistent;
If so, then check that whether the modification time of the file that the modification time of each file of described system file is corresponding with described detection table is consistent;
If not, then described system file to be upgraded and described detect show inconsistent.
6. method according to claim 2, is characterized in that, described method also comprises:
If it is consistent with described detection table to be checked through described system file to be upgraded, then described system file is complete, and described system file is upgraded.
7. method according to claim 6, is characterized in that, described system file carries out upgrading and comprises:
Obtain space download technology OTA AKU;
Enter system upgrade pattern, according to described OTA AKU, described system file is upgraded.
8. method according to claim 7, is characterized in that, described OTA AKU is difference bag.
CN201410737653.8A 2014-12-05 2014-12-05 Method for examining integrity of system flies Pending CN104504326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410737653.8A CN104504326A (en) 2014-12-05 2014-12-05 Method for examining integrity of system flies

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410737653.8A CN104504326A (en) 2014-12-05 2014-12-05 Method for examining integrity of system flies

Publications (1)

Publication Number Publication Date
CN104504326A true CN104504326A (en) 2015-04-08

Family

ID=52945722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410737653.8A Pending CN104504326A (en) 2014-12-05 2014-12-05 Method for examining integrity of system flies

Country Status (1)

Country Link
CN (1) CN104504326A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389507A (en) * 2015-11-13 2016-03-09 小米科技有限责任公司 Method and apparatus for monitoring files of system partition
CN105446768A (en) * 2015-11-05 2016-03-30 小米科技有限责任公司 System upgrading method and apparatus
CN105827413A (en) * 2016-03-15 2016-08-03 乐视移动智能信息技术(北京)有限公司 Electronic terminal, and system safety verification device and method thereof
CN108228215A (en) * 2018-01-02 2018-06-29 青岛海信移动通信技术股份有限公司 The method for pushing and device of the OTA upgrade package of terminal device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6779117B1 (en) * 1999-07-23 2004-08-17 Cybersoft, Inc. Authentication program for a computer operating system
CN101076168A (en) * 2007-06-20 2007-11-21 华为技术有限公司 Method for managing intelligent interminal system and intelligent terminal
CN102436388A (en) * 2011-12-22 2012-05-02 华为技术有限公司 Method and device for upgrading software of embedded system
CN103309768A (en) * 2012-03-16 2013-09-18 腾讯科技(深圳)有限公司 Method and device for repairing system files
CN103729597A (en) * 2014-01-16 2014-04-16 宇龙计算机通信科技(深圳)有限公司 System starting verifying method and device and terminal
US8806617B1 (en) * 2002-10-14 2014-08-12 Cimcor, Inc. System and method for maintaining server data integrity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6779117B1 (en) * 1999-07-23 2004-08-17 Cybersoft, Inc. Authentication program for a computer operating system
US8806617B1 (en) * 2002-10-14 2014-08-12 Cimcor, Inc. System and method for maintaining server data integrity
CN101076168A (en) * 2007-06-20 2007-11-21 华为技术有限公司 Method for managing intelligent interminal system and intelligent terminal
CN102436388A (en) * 2011-12-22 2012-05-02 华为技术有限公司 Method and device for upgrading software of embedded system
CN103309768A (en) * 2012-03-16 2013-09-18 腾讯科技(深圳)有限公司 Method and device for repairing system files
CN103729597A (en) * 2014-01-16 2014-04-16 宇龙计算机通信科技(深圳)有限公司 System starting verifying method and device and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
U04564380: "《http://bbs.coloros.com/forum.php?mod=viewthread&tid=22125,20140208》", 8 February 2014 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446768A (en) * 2015-11-05 2016-03-30 小米科技有限责任公司 System upgrading method and apparatus
CN105446768B (en) * 2015-11-05 2019-07-05 小米科技有限责任公司 Method for upgrading system and device
CN105389507A (en) * 2015-11-13 2016-03-09 小米科技有限责任公司 Method and apparatus for monitoring files of system partition
CN105827413A (en) * 2016-03-15 2016-08-03 乐视移动智能信息技术(北京)有限公司 Electronic terminal, and system safety verification device and method thereof
CN108228215A (en) * 2018-01-02 2018-06-29 青岛海信移动通信技术股份有限公司 The method for pushing and device of the OTA upgrade package of terminal device
CN108228215B (en) * 2018-01-02 2021-06-01 青岛海信移动通信技术股份有限公司 OTA upgrade package pushing method and device for terminal equipment

Similar Documents

Publication Publication Date Title
CN104504326A (en) Method for examining integrity of system flies
CN102722386B (en) Generate the method and apparatus of radio firmware AKU
CN103279372B (en) Method for updating set-top box software and set top box
CN103123588A (en) Method and system for obtaining difference upgrade patch
CN104199706A (en) Firmware upgrade method and device for eMMC
CN105511911B (en) The generation method and device of system firmware upgrade package
EP2076834A1 (en) Program upgrade system and method for ota-capable mobile terminal
CN106658475B (en) Method and device for upgrading over-the-air technology
CN106815370B (en) Method, device and system for updating resource file
US20160170735A1 (en) Operating system updating method by using a checklist
CN104317840A (en) File cleaning method, device and terminal
CN102004657B (en) A kind of electronic equipment and upgrade method thereof
CN103761329A (en) Method and device for flashing mobile device
CN104699515A (en) Android operating system based upgrading method and intelligent terminal
CN102346673A (en) Method and device for upgrading mobile phone system
CN103533434A (en) Method for customizing boot animation
CN105530130A (en) Method and device for upgrading Over-The-Air downloading technology
CN102810077A (en) Abnormal hardware detecting method and device
CN102946600A (en) Method and system for updating mobile terminal parameters by firmware
US8473504B2 (en) Stabilized binary differencing
CN103995696A (en) Custom-built system and method of software package of mobile terminal
CN105094916A (en) Method and device for wireless firmware upgrading expansion based on module
CN102713845A (en) A radio handheld device and method for starting the radio handheld device
CN103761126A (en) Method and device for upgrading application program
CN105391763A (en) Method and server for reinforcing a plurality of apk files

Legal Events

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

Application publication date: 20150408

RJ01 Rejection of invention patent application after publication