CN112905222B - Method and system for repairing upgrade exception of Android terminal system - Google Patents

Method and system for repairing upgrade exception of Android terminal system Download PDF

Info

Publication number
CN112905222B
CN112905222B CN202110350068.2A CN202110350068A CN112905222B CN 112905222 B CN112905222 B CN 112905222B CN 202110350068 A CN202110350068 A CN 202110350068A CN 112905222 B CN112905222 B CN 112905222B
Authority
CN
China
Prior art keywords
upgrading
server
android terminal
file
system upgrade
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.)
Active
Application number
CN202110350068.2A
Other languages
Chinese (zh)
Other versions
CN112905222A (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.)
Readboy Education Technology Co Ltd
Original Assignee
Readboy Education 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 Readboy Education Technology Co Ltd filed Critical Readboy Education Technology Co Ltd
Priority to CN202110350068.2A priority Critical patent/CN112905222B/en
Publication of CN112905222A publication Critical patent/CN112905222A/en
Application granted granted Critical
Publication of CN112905222B publication Critical patent/CN112905222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a system for repairing abnormal upgrading of an android i d terminal system, wherein when a file with abnormal upgrading is encountered in the system upgrading process, a system upgrading abnormal list is recorded, the file is skipped for continuous upgrading, the system upgrading abnormal list is uploaded to a system upgrading server after all the upgrading is completed, the system upgrading server triggers a ROM compiling server to extract a corresponding file in a full package corresponding to a ROM of a new edition program to be upgraded and generates a repairing package, the system upgrading server provides url of the repairing package for the android i d terminal, the system upgrading program executes second system upgrading after obtaining the repairing package, and the abnormal file is directly replaced by the file in the repairing package. On the basis of traditional incremental package upgrading, the method can effectively repair upgrading failure caused by non-fatal abnormal files, and avoids the embarrassment that the android terminal cannot be upgraded in a system all the time and can only be refreshed.

Description

Method and system for repairing upgrade exception of Android terminal system
Technical Field
The invention relates to the technical field of Android terminal system upgrading, in particular to a method and a system for repairing upgrading abnormity of an Android terminal system.
Background
After the Android terminal is released to the market, the system upgrading is often required to be released for optimizing the system or solving bug, and the system upgrading is mainly based on incremental upgrading. Incremental upgrades require that the program of the previous and subsequent versions cannot be changed, otherwise the upgrade will fail. In fact, however, due to various reasons such as software and hardware, a certain file may be changed, sometimes the change is not fatal, and the terminal can still operate normally.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a method and a system for repairing the upgrade abnormity of an Android terminal system.
In order to achieve the technical purpose, the invention adopts the following technical scheme:
a method for repairing upgrading abnormity of an Android terminal system comprises the following specific processes:
s1, after the system upgrading program of the Android terminal obtains the increment package, in the process of the increment package patch, if a certain file patch is abnormal, the system upgrading program records the complete path of the file with the exception of the patch, writes the complete path into a system upgrading abnormal list, skips over the file, continues to patch the next file until the increment package upgrading is completed, and restarts the Android terminal;
s2, after the Android terminal is restarted, the system upgrading program uploads the serial number of the Android terminal and the system upgrading abnormal list to the system upgrading server;
s3, after receiving the serial number of the Android terminal and the system upgrading abnormal list, the system upgrading server sends an instruction to the ROM compiling server, after receiving the instruction from the system upgrading server, the ROM compiling server extracts a corresponding file from a full package corresponding to the ROM of the new version program to be upgraded according to the files listed in the system upgrading abnormal list, and the corresponding file and the upgrading script file are packaged together to generate a repair package, and then the repair package is uploaded to the system upgrading server;
s4, after receiving the repair package, the system upgrade server generates a system upgrade item, wherein the system upgrade item comprises the serial number of the Android terminal and the url, and the url points to the position of the repair package;
s5, after uploading the system upgrade exception list, accessing the system upgrade server and uploading the serial number of the Android terminal to the system upgrade server at a set time interval, returning the corresponding url to the system upgrade program by the system upgrade server according to the serial number, after downloading the repair package by the system upgrade program according to the url, executing the second system upgrade according to the upgrade script, and replacing the file in the repair package with the corresponding exception file.
Further, the method further includes step S6: after the second system upgrade is completed, the system upgrade program clears the system upgrade exception list generated in the step S1 and restarts the Android terminal, and the Android terminal uploads the serial number of the Android terminal and an empty system upgrade exception list to the system upgrade server after being restarted; and after receiving an empty system upgrading abnormal list, the system upgrading server clears the corresponding system upgrading item according to the serial number of the Android terminal.
The invention also provides a system for repairing the upgrade abnormity of the Android terminal system, which comprises a system upgrade server, a ROM compiling server and a system upgrade program running on the Android terminal.
The invention has the beneficial effects that: on the basis of traditional incremental package upgrading, the method and the device can effectively repair upgrading failure caused by non-fatal abnormal files, and avoid the embarrassment that the Android terminal cannot be upgraded in a system all the time and can only be refreshed.
Detailed Description
The present invention will be further described below. It should be noted that the present embodiment is premised on the technical solution, and detailed description and specific implementation are given, but the scope of protection of the present invention is not limited to the present embodiment.
The embodiment provides a method for repairing upgrade exception of an Android terminal system, which specifically comprises the following steps:
s1, after the system upgrading program of the Android terminal obtains the increment package, in the process of the increment package patch, if a certain file patch is abnormal, the system upgrading program records the complete path of the file with the exception of the patch, writes the complete path into a system upgrading abnormal list, skips over the file, continues to patch the next file until the increment package upgrading is completed, and restarts the Android terminal;
s2, after the Android terminal is restarted, the system upgrading program uploads the serial number of the Android terminal and the system upgrading abnormal list to the system upgrading server;
s3, after receiving the serial number of the Android terminal and the system upgrading abnormal list, the system upgrading server sends an instruction to the ROM compiling server, after receiving the instruction from the system upgrading server, the ROM compiling server extracts a corresponding file from a full package corresponding to the ROM of the new version program to be upgraded according to the files listed in the system upgrading abnormal list, and the corresponding file and the upgrading script file are packaged together to generate a repair package, and then the repair package is uploaded to the system upgrading server;
s4, after receiving the repair package, the system upgrade server generates a system upgrade item, wherein the system upgrade item comprises the serial number of the Android terminal and the url, and the url points to the position of the repair package;
s5, after uploading the system upgrade exception list, accessing the system upgrade server and uploading the serial number of the Android terminal to the system upgrade server at a set time interval, returning the corresponding url to the system upgrade program by the system upgrade server according to the serial number, after downloading the repair package by the system upgrade program according to the url, executing the second system upgrade according to the upgrade script, and replacing the file in the repair package with the corresponding exception file.
It should be noted that the method further includes step S6: after the second system upgrade is completed, the system upgrade program clears the system upgrade exception list generated in the step S1 and restarts the Android terminal, and the Android terminal uploads the serial number of the Android terminal and an empty system upgrade exception list to the system upgrade server after being restarted; and after receiving an empty system upgrading abnormal list, the system upgrading server clears the corresponding system upgrading item according to the serial number of the Android terminal.
Therefore, the system upgrading of the Android terminal with the abnormal condition can be carried out according to the normal upgrading flow, and the repair package cannot be repeatedly downloaded and upgraded.
Various other changes and modifications to the above-described embodiments and concepts will become apparent to those skilled in the art from the above description, and all such changes and modifications are intended to be included within the scope of the present invention as defined in the appended claims.

Claims (3)

1. A method for repairing upgrading abnormity of an Android terminal system is characterized by comprising the following specific processes:
s1, after the system upgrading program of the Android terminal obtains the increment package, in the process of the increment package patch, if a certain file patch is abnormal, the system upgrading program records the complete path of the file with the exception of the patch, writes the complete path into a system upgrading abnormal list, skips over the file, continues to patch the next file until the increment package upgrading is completed, and restarts the Android terminal;
s2, after the Android terminal is restarted, the system upgrading program uploads the serial number of the Android terminal and the system upgrading abnormal list to the system upgrading server;
s3, after receiving the serial number of the Android terminal and the system upgrading abnormal list, the system upgrading server sends an instruction to the ROM compiling server, after receiving the instruction from the system upgrading server, the ROM compiling server extracts a corresponding file from a full package corresponding to the ROM of the new version program to be upgraded according to the files listed in the system upgrading abnormal list, and the corresponding file and the upgrading script file are packaged together to generate a repair package, and then the repair package is uploaded to the system upgrading server;
s4, after receiving the repair package, the system upgrade server generates a system upgrade item, wherein the system upgrade item comprises the serial number of the Android terminal and the url, and the url points to the position of the repair package;
s5, after uploading the system upgrade exception list, accessing the system upgrade server and uploading the serial number of the Android terminal to the system upgrade server at a set time interval, returning the corresponding url to the system upgrade program by the system upgrade server according to the serial number, after downloading the repair package by the system upgrade program according to the url, executing the second system upgrade according to the upgrade script, and replacing the file in the repair package with the corresponding exception file.
2. The method according to claim 1, further comprising step S6: after the second system upgrade is completed, the system upgrade program clears the system upgrade exception list generated in the step S1 and restarts the Android terminal, and the Android terminal uploads the serial number of the Android terminal and an empty system upgrade exception list to the system upgrade server after being restarted; and after receiving an empty system upgrading abnormal list, the system upgrading server clears the corresponding system upgrading item according to the serial number of the Android terminal.
3. A system for repairing Android terminal system upgrade abnormity is characterized by comprising a system upgrade server, a ROM compiling server and a system upgrade program running on an Android terminal, wherein the system upgrade server, the ROM compiling server and the system upgrade program running on the Android terminal are used for repairing the Android terminal system upgrade abnormity according to the method of any one of claims 1-2.
CN202110350068.2A 2021-03-31 2021-03-31 Method and system for repairing upgrade exception of Android terminal system Active CN112905222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110350068.2A CN112905222B (en) 2021-03-31 2021-03-31 Method and system for repairing upgrade exception of Android terminal system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110350068.2A CN112905222B (en) 2021-03-31 2021-03-31 Method and system for repairing upgrade exception of Android terminal system

Publications (2)

Publication Number Publication Date
CN112905222A CN112905222A (en) 2021-06-04
CN112905222B true CN112905222B (en) 2022-03-11

Family

ID=76109922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110350068.2A Active CN112905222B (en) 2021-03-31 2021-03-31 Method and system for repairing upgrade exception of Android terminal system

Country Status (1)

Country Link
CN (1) CN112905222B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995715A (en) * 2014-05-06 2014-08-20 百度在线网络技术(北京)有限公司 Application program repairing method and device and server
CN104461786A (en) * 2014-12-19 2015-03-25 上海斐讯数据通信技术有限公司 Recovery method and system for Android system
CN105487980A (en) * 2015-12-04 2016-04-13 Tcl集团股份有限公司 Method and device for repairing running abnormity of application program
CN105653454A (en) * 2015-12-30 2016-06-08 浙江德景电子科技有限公司 Android system-based application program abnormity processing method and device
CN105959156A (en) * 2016-06-29 2016-09-21 深圳市智汇十方科技有限公司 Mobile terminal application exception processing method and system
CN110806884A (en) * 2018-08-06 2020-02-18 中兴通讯股份有限公司 Method and device for repairing operating system fault

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724308A (en) * 2012-06-13 2012-10-10 腾讯科技(深圳)有限公司 Software update method and software update system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995715A (en) * 2014-05-06 2014-08-20 百度在线网络技术(北京)有限公司 Application program repairing method and device and server
CN104461786A (en) * 2014-12-19 2015-03-25 上海斐讯数据通信技术有限公司 Recovery method and system for Android system
CN105487980A (en) * 2015-12-04 2016-04-13 Tcl集团股份有限公司 Method and device for repairing running abnormity of application program
CN105653454A (en) * 2015-12-30 2016-06-08 浙江德景电子科技有限公司 Android system-based application program abnormity processing method and device
CN105959156A (en) * 2016-06-29 2016-09-21 深圳市智汇十方科技有限公司 Mobile terminal application exception processing method and system
CN110806884A (en) * 2018-08-06 2020-02-18 中兴通讯股份有限公司 Method and device for repairing operating system fault

Also Published As

Publication number Publication date
CN112905222A (en) 2021-06-04

Similar Documents

Publication Publication Date Title
US9940225B2 (en) Automated error checking system for a software application and method therefor
CN107608706B (en) Automatic hot updating method for application program based on functional module
US20160253170A1 (en) Efficient deployment of thin client applications to end user
US9465717B2 (en) Native code profiler framework
US7185321B1 (en) Method and system for debugging through supervisory operating codes and self modifying codes
US10579513B2 (en) Test run control method and apparatus
CN108874437B (en) Online cloud updating method for android application program
CN110780917B (en) Method and system for automatic packaging and publishing of real Native application
CN103106083B (en) A kind of loading method of firmware and device
CN103793248A (en) Method and device for upgrading application program
WO2020029967A1 (en) Method and apparatus for repairing fault in operating system
WO2017113611A1 (en) Method and system for optimizing operation system
KR20170067826A (en) Updating of firmware
CN112905222B (en) Method and system for repairing upgrade exception of Android terminal system
US20050138605A1 (en) Method, system, and program product for checking control model and/or control program
CN105183657A (en) System and method for testing WEB interface
CN103984585A (en) Method for upgrading Linux kernel in running process of kernel module capable of being plugged in thermal mode
CN107967192B (en) System crash processing method and device for intelligent terminal
CN107220345B (en) User data protection method in database used by App
CN109828786B (en) Automated tool based on code-level support sw _64 architecture
US20060048137A1 (en) Method and apparatus for cloning an ORACLE RDBMS software
CN100359485C (en) Testing device and method for flush-bonding system
CN113127039A (en) Automatic upgrading system for micro-service architecture product
CN113342376A (en) Method and device for upgrading operating system of Internet of things equipment
CN115168175A (en) Program error solving method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant