CN105302711B - Application restoration method and device and terminal - Google Patents

Application restoration method and device and terminal Download PDF

Info

Publication number
CN105302711B
CN105302711B CN201410325422.6A CN201410325422A CN105302711B CN 105302711 B CN105302711 B CN 105302711B CN 201410325422 A CN201410325422 A CN 201410325422A CN 105302711 B CN105302711 B CN 105302711B
Authority
CN
China
Prior art keywords
information
terminal
application
plug
repair
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
CN201410325422.6A
Other languages
Chinese (zh)
Other versions
CN105302711A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410325422.6A priority Critical patent/CN105302711B/en
Publication of CN105302711A publication Critical patent/CN105302711A/en
Application granted granted Critical
Publication of CN105302711B publication Critical patent/CN105302711B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides an application repair method, an application repair device and a terminal, wherein the method comprises the following steps: when the application of the terminal runs abnormally, positioning a plug-in which generates the abnormality in the application; acquiring the feature information of the plug-in and the feature information of the terminal; downloading repair information matched with the feature information of the plug-in and the feature information of the terminal; and loading the repair information in the terminal to repair the application. The method and the device can repair the application with abnormal operation, and effectively improve the performance of the application.

Description

Application restoration method and device and terminal
Technical Field
The invention relates to the technical field of internet, in particular to the technical field of application processing, and particularly relates to an application repairing method, device and terminal.
Background
The application of the terminal refers to a program installed in the terminal and operable in the terminal to implement corresponding functions, including but not limited to: an instant messaging application, an SNS (Social Networking Services) application, and the like. The program for implementing basic functions in an application is called a main program of the application, and includes: a program for implementing an instant messaging function in an instant messaging application; a program for implementing additional functions in an application, called a plug-in of the application; specifically, a plug-in refers to a program that provides an additional function beyond the basic function for an application, depending on the environment of the main program of the application; for example: and the instant messaging application is used for realizing the expression management function in the instant messaging process. When a certain plug-in of an application and a terminal where the application is located have an adaptation compatibility problem, the operation of the plug-in will be abnormal, so that the operation of the whole application is directly affected, and even the application may be crashed.
Disclosure of Invention
The embodiment of the invention provides an application repairing method, an application repairing device and an application repairing terminal, which can repair an application which is abnormally operated and effectively improve the performance of the application.
A first aspect of an embodiment of the present invention provides an application repair method, which may include:
when the application of the terminal runs abnormally, positioning a plug-in which generates the abnormality in the application;
acquiring the feature information of the plug-in and the feature information of the terminal;
downloading repair information matched with the feature information of the plug-in and the feature information of the terminal;
and loading the repair information in the terminal to repair the application.
A second aspect of an embodiment of the present invention provides an application repair apparatus, which may include:
the positioning module is used for positioning the plug-in which the abnormality occurs in the application when the application of the terminal runs abnormally;
the characteristic acquisition module is used for acquiring the characteristic information of the plug-in and the characteristic information of the terminal;
the download module is used for downloading the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal;
and the repairing module is used for loading the repairing information in the terminal so as to repair the application.
A third aspect of an embodiment of the present invention provides a terminal, which may include the application repair apparatus according to the second aspect.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when the plug-in of the application and the terminal where the application is positioned have the problem of adaptation compatibility and generate abnormity, the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal can be downloaded, and the repair information is loaded to realize the repair of the application, so that the compatibility of the plug-in and the terminal is dynamically adapted, the normal operation of the application is ensured in time, and the performance of the application is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an application repair method according to an embodiment of the present invention;
fig. 2 is a flowchart of another application repair method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an application repair apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another application repair apparatus provided in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a feature obtaining module according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a download module according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a repair module according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The application repair method provided by the embodiment of the invention will be described in detail below with reference to fig. 1-2.
Fig. 1 is a flowchart of an application repair method according to an embodiment of the present invention; the method may comprise the following steps S101-S104.
S101, when the application of the terminal runs abnormally, the plug-in which generates the abnormality in the application is positioned.
The application of the terminal refers to a program installed in the terminal and operable in the terminal to implement corresponding functions, including but not limited to: an instant messaging application, an SNS application, a browser application, a desktop application, an image processing application, and the like. The program for implementing basic functions in an application is called a main program of the application, and includes: a program for implementing an instant messaging function in an instant messaging application, a program for implementing an SNS function in an SNS application, a program for implementing an image processing function in an image processing application, or the like. A program for implementing additional functions in an application, called a plug-in of the application; specifically, a plug-in refers to a program that provides an additional function beyond the basic function for an application, depending on the environment of the main program of the application; for example: the instant messaging application comprises a program for realizing an expression management function in the instant messaging process, a program for performing a voice input function in the SNS process in the SNS application, a program for performing a picture beautifying function in the image processing process in the image processing application and the like. One application contains a main program and one application contains at least one plug-in. When a certain plug-in of an application and a terminal where the application is located have an adaptation compatibility problem, the operation of the plug-in generates an exception and directly affects the operation of the whole application.
In this step, when the application of the terminal runs abnormally, the plug-in generating the abnormality in the application is located, for example: when the instant messaging application is closed due to the fact that abnormality occurs when the expression input is carried out, the plug-in which the abnormality occurs can be positioned as the expression management plug-in the instant messaging application according to the expression input function used when the abnormality occurs.
S102, acquiring the feature information of the plug-in and the feature information of the terminal.
The feature information of the plug-in may include, but is not limited to: the identification information of the plug-in and the running abnormal information of the plug-in. The characteristic information of the terminal may include, but is not limited to: the identification information of the terminal and the model information of the terminal. Wherein the identification information of the plug-in may include: name information of the plug-in and/or version information of the plug-in. The model information of the terminal comprises: any one or more of model information of the terminal, Rom (Firmware, solidified software, or Firmware) information of the terminal, manufacturer information of the terminal, and kernel information of the terminal.
S103, downloading the repair information matched with the feature information of the plug-in and the feature information of the terminal.
The repair information includes: the method can solve the problem of adaptation compatibility of the plug-in and the terminal, and can enable the plug-in to normally run in the terminal to repair adaptation data of the whole application. In this step, repair information adapted to the feature information of the plug-in and the feature information of the terminal may be downloaded from a server.
S104, the repairing information is loaded in the terminal to repair the application.
In this step, loading the repair information enables the application to use the adaptation data included in the repair information, solves the problem of adaptation compatibility between the plug-in and the terminal, and enables the plug-in to normally operate in the terminal, thereby achieving the purpose of repairing the application.
In the embodiment of the invention, when the plug-in of the application and the terminal where the application is positioned have the problem of adaptation compatibility and generate abnormity, the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal can be downloaded, and the repair information is loaded to realize the repair of the application, so that the compatibility of the plug-in and the terminal is dynamically adapted, the normal operation of the application is ensured in time, and the performance of the application is effectively improved.
Please refer to fig. 2, which is a flowchart illustrating another application repairing method according to an embodiment of the present invention; the method may include the following steps S201 to S209.
S201, detecting whether the application runs abnormally according to the user feedback information and/or the running state information of the application.
The user feedback information refers to the use condition information fed back by the user aiming at the application. In a possible implementation manner of the present invention, the application may provide a human-computer interaction interface, a use result option that may occur when the application is used is provided in the human-computer interaction interface for the user to select, and the use condition information corresponding to the use result option selected by the user is determined as the user feedback information. In another possible implementation manner of the present invention, the application may provide a function simulation interface, a situation interface that may occur during the use of each function of the application is simulated in the function simulation interface is confirmed by the user, and the use situation information corresponding to the situation interface confirmed by the user is determined as the user feedback information.
The running state information refers to information which is recorded in the running process of the application and represents the running state. Wherein the operating state information includes: normal operation state information or abnormal operation state information. The abnormal operation state information may include: the type of exception (e.g., shutdown, restart, stop, etc.), the exception event (e.g., an exception generated by what function of the application is used), and the exception time (e.g., when the application is started, 5 minutes after the application is started, etc.). In this step, whether the application runs abnormally may be detected by analyzing the user feedback information and/or the running state information of the application.
S202, when the application of the terminal runs abnormally, the plug-in which generates the abnormality in the application is positioned.
Step S202 of this embodiment can refer to step S101 of the embodiment shown in fig. 1, which is not described herein again.
S203, reading the feature information of the plug-in from the configuration file of the application.
The configuration file of the application records the characteristic information of at least one plug-in contained by the application. In this step, the feature information of the located plug-in generating the abnormality may be read from the configuration file of the application, and the feature information of the plug-in may include but is not limited to: the identification information of the plug-in and the running abnormal information of the plug-in. Wherein the identification information of the plug-in may include: name information of the plug-in and/or version information of the plug-in.
And S204, calling a terminal system interface to read the system configuration file of the terminal.
The system of the terminal refers to an operating system of the terminal, and may include but is not limited to: android (an Android, a mobile operating system) system, saiban system, windows system, and the like. In the step, a system interface of the terminal can be called, and the system configuration file is read from an operating system of the terminal.
S205, extracting the characteristic information of the terminal from the system configuration file of the terminal.
The system configuration file of the terminal records the characteristic information of the terminal. The characteristic information of the terminal may include, but is not limited to: the identification information of the terminal and the model information of the terminal. The model information of the terminal comprises: any one or more of model information of the terminal, Rom information of the terminal, vendor information of the terminal, and kernel information of the terminal.
Steps S203 to S205 of the present embodiment may be specific refinements of step S102 of the embodiment shown in fig. 1.
S206, reporting the identification information of the application, the feature information of the plug-in and the feature information of the terminal to a server, enabling the server to search the feature information of the plug-in and the feature information adaptation data of the terminal from a preset adaptation database, obtaining the signature of the application according to the identification information of the application, and packaging the adaptation data into the repair information in an executable format by adopting the signature of the application.
The preset adaptation database records the corresponding relation among plug-ins, terminals and adaptation data, and the corresponding relation comprises the following steps: a combination of a plug-in and a terminal corresponds to an adaptation data; for example: an expression management plug-in of instant messaging application and an XX type mobile phone with an identification number of 0000 correspond to adaptation data; or the emotion management plug-in of the instant messaging application and the XXX type tablet computer with the identification number of 1111 correspond to another adapting data, and the like. The executable format refers to a format in which installation can be performed, for example: for the Android system, the executable format refers to an APK (Android Package) format; alternatively, for a Windows system, the executable format refers to the EXE (EXE File, executable) format, and so on. In this step, the server encapsulates the adaptation data into the repair information in an executable format by using the signature of the application, which not only can effectively ensure that the repair information can be successfully loaded, but also can effectively improve the transmission security of the repair information.
S207, the repair information in the executable format is downloaded from the server.
In this step, a communication connection may be established with the server, and the repair information in the executable format may be downloaded from the server.
Step S206-step S207 of the present embodiment may be a specific refinement step of step S103 of the embodiment shown in fig. 1.
And S208, installing the repair information in the executable format in the terminal.
According to the example in this embodiment, if the repair information in the executable format is the repair information in the APK format, this step may install the repair information in the APK format, and it can be understood that, according to the permission of the Android terminal, the repair information in the APK format may be installed in a silent installation manner or in a manner confirmed by the user.
S209, after the installation of the repair information in the executable format is successful, loading the adaptation data to the application to repair the application.
After the repair information in the executable format is successfully installed, the adaptation data contained in the repair information is loaded to the application, so that the application can use the adaptation data, the problem of adaptation compatibility between the plug-in and the terminal is solved, the plug-in can normally run in the terminal, and the purpose of repairing the application is achieved.
Steps S208 to S209 of the present embodiment may be specific refinements of step S104 of the embodiment shown in fig. 1.
In the embodiment of the invention, when the plug-in of the application and the terminal where the application is positioned have the problem of adaptation compatibility and generate abnormity, the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal can be downloaded, and the repair information is loaded to realize the repair of the application, so that the compatibility of the plug-in and the terminal is dynamically adapted, the normal operation of the application is ensured in time, and the performance of the application is effectively improved.
An applied prosthetic device according to an embodiment of the present invention will be described in detail with reference to fig. 3 to 7. It should be noted that the application repair device described in fig. 3-7 can be applied to perform the method described above with reference to fig. 1-2. In practical applications, the application repairing apparatus may be the application itself, i.e. a main program of the application.
Fig. 3 is a schematic structural diagram of an application repair apparatus according to an embodiment of the present invention; the apparatus may include: a positioning module 101, a feature acquisition module 102, a download module 103, and a repair module 104.
The positioning module 101 is configured to, when an application of the terminal runs abnormally, position a plug-in that generates the abnormality in the application.
The application of the terminal refers to a program installed in the terminal and operable in the terminal to implement corresponding functions, including but not limited to: an instant messaging application, an SNS application, a browser application, a desktop application, an image processing application, and the like. The program for implementing basic functions in an application is called a main program of the application, and includes: a program for implementing an instant messaging function in an instant messaging application, a program for implementing an SNS function in an SNS application, a program for implementing an image processing function in an image processing application, or the like. A program for implementing additional functions in an application, called a plug-in of the application; specifically, a plug-in refers to a program that provides an additional function beyond the basic function for an application, depending on the environment of the main program of the application; for example: the instant messaging application comprises a program for realizing an expression management function in the instant messaging process, a program for performing a voice input function in the SNS process in the SNS application, a program for performing a picture beautifying function in the image processing process in the image processing application and the like. One application contains a main program and one application contains at least one plug-in. When a certain plug-in of an application and a terminal where the application is located have an adaptation compatibility problem, the operation of the plug-in generates an exception and directly affects the operation of the whole application.
When the application of the terminal runs abnormally, the positioning module 101 positions the plug-in generating the abnormality in the application, for example: when the instant messaging application is closed due to an abnormality in the expression input, the positioning module 101 may position the plug-in generating the abnormality as an expression management plug-in the instant messaging application according to an expression input function used when the abnormality occurs.
A feature obtaining module 102, configured to obtain feature information of the plug-in and feature information of the terminal.
The feature information of the plug-in may include, but is not limited to: the identification information of the plug-in and the running abnormal information of the plug-in. The characteristic information of the terminal may include, but is not limited to: the identification information of the terminal and the model information of the terminal. Wherein the identification information of the plug-in may include: name information of the plug-in and/or version information of the plug-in. The model information of the terminal comprises: any one or more of model information of the terminal, Rom information of the terminal, vendor information of the terminal, and kernel information of the terminal.
And the downloading module 103 is configured to download the repair information adapted to the feature information of the plug-in and the feature information of the terminal.
The repair information includes: the method can solve the problem of adaptation compatibility of the plug-in and the terminal, and can enable the plug-in to normally run in the terminal to repair adaptation data of the whole application. The download module 103 may download the repair information adapted to the feature information of the plug-in and the feature information of the terminal from a server.
A repairing module 104, configured to load the repairing information in the terminal to repair the application.
The repair module 104 loads the repair information so that the application can use the adaptation data included in the repair information, solve the problem of adaptation compatibility between the plug-in and the terminal, and enable the plug-in to normally operate in the terminal, thereby achieving the purpose of repairing the application.
In the embodiment of the invention, when the plug-in of the application and the terminal where the application is positioned have the problem of adaptation compatibility and generate abnormity, the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal can be downloaded, and the repair information is loaded to realize the repair of the application, so that the compatibility of the plug-in and the terminal is dynamically adapted, the normal operation of the application is ensured in time, and the performance of the application is effectively improved.
Fig. 4 is a schematic structural diagram of another application repair apparatus according to an embodiment of the present invention; the apparatus may include: a positioning module 101, a feature acquisition module 102, a download module 103, a repair module 104, and a detection module 105. The structures and functions of the positioning module 101, the feature obtaining module 102, the downloading module 103, and the repairing module 104 can refer to the related description of the embodiment shown in fig. 3, and are not described herein again.
The detecting module 105 is configured to detect whether the application runs abnormally according to the user feedback information and/or the running state information of the application.
The user feedback information refers to the use condition information fed back by the user aiming at the application. In a possible implementation manner of the present invention, the application may provide a human-computer interaction interface, a use result option that may occur when the application is used is provided in the human-computer interaction interface for the user to select, and the use condition information corresponding to the use result option selected by the user is determined as the user feedback information. In another possible implementation manner of the present invention, the application may provide a function simulation interface, a situation interface that may occur during the use of each function of the application is simulated in the function simulation interface is confirmed by the user, and the use situation information corresponding to the situation interface confirmed by the user is determined as the user feedback information.
The running state information refers to information which is recorded in the running process of the application and represents the running state. Wherein the operating state information includes: normal operation state information or abnormal operation state information. The abnormal operation state information may include: the type of exception (e.g., shutdown, restart, stop, etc.), the exception event (e.g., an exception generated by what function of the application is used), and the exception time (e.g., when the application is started, 5 minutes after the application is started, etc.). The detection module 105 may detect whether the application runs abnormally by analyzing the user feedback information and/or the running state information of the application.
In the embodiment of the invention, when the plug-in of the application and the terminal where the application is positioned have the problem of adaptation compatibility and generate abnormity, the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal can be downloaded, and the repair information is loaded to realize the repair of the application, so that the compatibility of the plug-in and the terminal is dynamically adapted, the normal operation of the application is ensured in time, and the performance of the application is effectively improved.
Fig. 5 is a schematic structural diagram of a feature obtaining module according to an embodiment of the present invention; the feature acquisition module 102 may include: a reading unit 1201, an interface calling unit 1202, and an extracting unit 1203.
A reading unit 1201, configured to read feature information of the plug-in from a configuration file of the application.
The configuration file of the application records the characteristic information of at least one plug-in contained by the application. The reading unit 1201 may read feature information of the located plug-in generating the exception from the configuration file of the application, where the feature information of the plug-in may include, but is not limited to: the identification information of the plug-in and the running abnormal information of the plug-in. Wherein the identification information of the plug-in may include: name information of the plug-in and/or version information of the plug-in.
An interface calling unit 1202, configured to call a terminal system interface to read a system configuration file of the terminal.
The system of the terminal refers to an operating system of the terminal, and may include but is not limited to: android systems, saiblon systems, windows systems, and the like. The interface calling unit 1202 may call a system interface of the terminal, and read a system configuration file from an operating system of the terminal.
An extracting unit 1203 is configured to extract feature information of the terminal from a system configuration file of the terminal.
The system configuration file of the terminal records the characteristic information of the terminal. The characteristic information of the terminal may include, but is not limited to: the identification information of the terminal and the model information of the terminal. The model information of the terminal comprises: any one or more of model information of the terminal, Rom information of the terminal, vendor information of the terminal, and kernel information of the terminal.
In the embodiment of the invention, when the plug-in of the application and the terminal where the application is positioned have the problem of adaptation compatibility and generate abnormity, the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal can be downloaded, and the repair information is loaded to realize the repair of the application, so that the compatibility of the plug-in and the terminal is dynamically adapted, the normal operation of the application is ensured in time, and the performance of the application is effectively improved.
Fig. 6 is a schematic structural diagram of a download module according to an embodiment of the present invention; the download module 103 may include: a reporting unit 1301 and a downloading unit 1302.
A reporting unit 1301, configured to report the identification information of the application, the feature information of the plug-in, and the feature information of the terminal to a server, so that the server searches for adaptation data corresponding to the feature information of the plug-in and the feature information of the terminal from a preset adaptation database, obtains a signature of the application according to the identification information of the application, and encapsulates the adaptation data into repair information in an executable format by using the signature of the application.
The preset adaptation database records the corresponding relation among plug-ins, terminals and adaptation data, and the corresponding relation comprises the following steps: a combination of a plug-in and a terminal corresponds to an adaptation data; for example: an expression management plug-in of instant messaging application and an XX type mobile phone with an identification number of 0000 correspond to adaptation data; or the emotion management plug-in of the instant messaging application and the XXX type tablet computer with the identification number of 1111 correspond to another adapting data, and the like. The executable format refers to a format in which installation can be performed, for example: for an Android system, the executable format refers to an APK format; alternatively, for a Windows system, the executable format refers to the exe format, and so on. The server adopts the signature of the application to package the adaptive data into the repair information in an executable format, so that the successful loading of the repair information can be effectively ensured, and the transmission safety of the repair information can be effectively improved.
A downloading unit 1302, configured to download the repair information in the executable format from the server.
The download unit 1302 may establish a communication connection with the server, and download the repair information in the executable format from the server.
In the embodiment of the invention, when the plug-in of the application and the terminal where the application is positioned have the problem of adaptation compatibility and generate abnormity, the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal can be downloaded, and the repair information is loaded to realize the repair of the application, so that the compatibility of the plug-in and the terminal is dynamically adapted, the normal operation of the application is ensured in time, and the performance of the application is effectively improved.
Fig. 7 is a schematic structural diagram of a repair module according to an embodiment of the present invention; the repair module 104 may include: a mounting unit 1401 and a loading unit 1402.
An installation unit 1401, configured to install the repair information in the executable format in the terminal.
For example: if the repair information in the executable format is the repair information in the APK format, the installation unit 1401 may install the repair information in the APK format, and it can be understood that the repair information in the APK format may be installed in a silent installation manner or in a manner confirmed by a user according to the permission of the Android terminal.
A loading unit 1402, configured to load the adaptation data to the application to repair the application after the repair information in the executable format is successfully installed.
After the repair information in the executable format is successfully installed, the loading unit 1402 loads the adaptation data included in the repair information to the application, so that the application can use the adaptation data, the problem of adaptation and compatibility between the plug-in and the terminal is solved, and the plug-in can normally run in the terminal, thereby achieving the purpose of repairing the application.
In the embodiment of the invention, when the plug-in of the application and the terminal where the application is positioned have the problem of adaptation compatibility and generate abnormity, the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal can be downloaded, and the repair information is loaded to realize the repair of the application, so that the compatibility of the plug-in and the terminal is dynamically adapted, the normal operation of the application is ensured in time, and the performance of the application is effectively improved.
The embodiment of the invention also discloses a terminal, which can include but is not limited to: a PC (personal computer), a mobile phone, a smart phone, a PAD (tablet), a smart wearable device, etc., wherein the terminal may include an application repair device, and the structure and function of the device may be described in the embodiments shown in fig. 3 to fig. 7, which are not repeated herein.
In the embodiment of the invention, when the plug-in of the application and the terminal where the application is positioned have the problem of adaptation compatibility and generate abnormity, the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal can be downloaded, and the repair information is loaded to realize the repair of the application, so that the compatibility of the plug-in and the terminal is dynamically adapted, the normal operation of the application is ensured in time, and the performance of the application is effectively improved.
Please refer to fig. 8, which is a schematic structural diagram of a terminal according to an embodiment of the present invention; the terminal of the embodiment of the invention comprises: at least one processor 201, e.g., a CPU, at least one communication bus 202, at least one network interface 203, memory 204. Wherein a communication bus 202 is used to enable the connection communication between these components. The network interface 203 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). The memory 204 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 204 may optionally be at least one storage device located remotely from the processor 201. As shown in fig. 8, the memory 204, which is a kind of computer storage medium, stores an operating system, a network communication module, and a program for performing application repair and other programs.
In a possible implementation, the processor 201 may be configured to call a program stored in the memory 204 for application repair, and perform the following steps:
when the application of the terminal runs abnormally, positioning a plug-in which generates the abnormality in the application;
acquiring the feature information of the plug-in and the feature information of the terminal;
downloading repair information matched with the feature information of the plug-in and the feature information of the terminal;
and loading the repair information in the terminal to repair the application.
Further, before the step of locating the plug-in generating the abnormality in the application when the application of the terminal runs abnormally, the processor 201 further performs the following steps:
and detecting whether the application runs abnormally according to the user feedback information and/or the running state information of the application.
Further, the feature information of the plug-in includes: the identification information of the plug-in and the abnormal operation information of the plug-in; the characteristic information of the terminal comprises: the identification information of the terminal and the model information of the terminal; wherein the identification information of the plug-in includes: name information of the plug-in and/or version information of the plug-in; the model information of the terminal comprises: any one or more of model information of the terminal, Rom information of the terminal, vendor information of the terminal, and kernel information of the terminal.
Further, when the processor 201 executes the step of acquiring the feature information of the plug-in and the feature information of the terminal, the following steps are specifically executed:
reading feature information of the plug-in from a configuration file of the application;
and calling a terminal system interface to read the system configuration file of the terminal, and extracting the characteristic information of the terminal from the system configuration file of the terminal.
Further, when the step of downloading the repair information adapted to the feature information of the plug-in and the feature information of the terminal is executed, the processor 201 specifically executes the following steps:
reporting the identification information of the application, the feature information of the plug-in and the feature information of the terminal to a server, enabling the server to search adaptation data corresponding to the feature information of the plug-in and the feature information of the terminal from a preset adaptation database, acquiring a signature of the application according to the identification information of the application, and packaging the adaptation data into repair information in an executable format by adopting the signature of the application;
and downloading the repair information in the executable format from the server.
Further, when the processor 201 executes the step of loading the repair information in the terminal to repair the application, the following steps are specifically executed:
installing the repair information in the executable format in the terminal;
and when the repair information in the executable format is successfully installed, loading the adaptation data to the application to repair the application.
In the embodiment of the invention, when the plug-in of the application and the terminal where the application is positioned have the problem of adaptation compatibility and generate abnormity, the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal can be downloaded, and the repair information is loaded to realize the repair of the application, so that the compatibility of the plug-in and the terminal is dynamically adapted, the normal operation of the application is ensured in time, and the performance of the application is effectively improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (9)

1. An application repair method, comprising:
providing a function simulation interface, simulating a situation interface appearing in the use process of each function of the application in the function simulation interface, confirming the situation interface by a user, determining the use condition information corresponding to the situation interface confirmed by the user as user feedback information, or detecting running state information which embodies the running state of the application and is recorded in the running process of the application;
detecting whether the application runs abnormally according to the user feedback information and/or the running state information of the application;
when the application of the terminal runs abnormally, positioning a plug-in which generates the abnormality in the application;
acquiring the feature information of the plug-in and the feature information of the terminal;
reporting the identification information of the application, the feature information of the plug-in and the feature information of the terminal to a server, enabling the server to search adaptation data corresponding to the feature information of the plug-in and the feature information of the terminal from a preset adaptation database, acquiring a signature of the application according to the identification information of the application, and packaging the adaptation data into repair information in an executable format by adopting the signature of the application; the preset adaptation database records the corresponding relation among plug-ins, terminals and adaptation data, and the corresponding relation comprises: a combination of a plug-in and a terminal corresponds to an adaptation data; the executable format is a format which can be installed in an operating system used by the terminal;
downloading repair information in the executable format from the server;
installing the repair information in the executable format in the terminal;
and when the repair information in the executable format is successfully installed, loading the adaptation data to the application to repair the application.
2. The method of claim 1, wherein the feature information of the plug-in comprises: the identification information of the plug-in and the abnormal operation information of the plug-in;
the characteristic information of the terminal comprises: the identification information of the terminal and the model information of the terminal;
wherein the identification information of the plug-in includes: name information of the plug-in and/or version information of the plug-in;
the model information of the terminal comprises: any one or more of model information of the terminal, firmware Rom information of the terminal, vendor information of the terminal, and kernel information of the terminal.
3. The method of claim 2, wherein the obtaining the feature information of the plug-in and the feature information of the terminal comprises:
reading feature information of the plug-in from a configuration file of the application;
and calling a terminal system interface to read the system configuration file of the terminal, and extracting the characteristic information of the terminal from the system configuration file of the terminal.
4. An application repair device, comprising:
the detection module is used for providing a function simulation interface, simulating a situation interface appearing in the use process of each function of the application in the function simulation interface, confirming the situation interface by a user, determining the use condition information corresponding to the situation interface confirmed by the user as user feedback information, or detecting the running state information which reflects the running state of the application and is recorded in the running process of the application; detecting whether the application runs abnormally according to the user feedback information and/or the running state information of the application;
the positioning module is used for positioning the plug-in which the abnormality occurs in the application when the application of the terminal runs abnormally;
the characteristic acquisition module is used for acquiring the characteristic information of the plug-in and the characteristic information of the terminal;
the download module is used for downloading the repair information matched with the characteristic information of the plug-in and the characteristic information of the terminal;
the download module comprises:
a reporting unit, configured to report the identification information of the application, the feature information of the plug-in, and the feature information of the terminal to a server, so that the server searches for adaptation data corresponding to the feature information of the plug-in and the feature information of the terminal from a preset adaptation database, obtains a signature of the application according to the identification information of the application, and encapsulates the adaptation data into repair information in an executable format by using the signature of the application; the preset adaptation database records the corresponding relation among plug-ins, terminals and adaptation data, and the corresponding relation comprises: a combination of a plug-in and a terminal corresponds to an adaptation data; the executable format is a format which can be installed in an operating system used by the terminal;
a downloading unit configured to download the repair information in the executable format from the server;
a restoration module, configured to load the restoration information in the terminal to restore the application;
the repair module includes:
an installation unit, configured to install the repair information in the executable format in the terminal;
and the loading unit is used for loading the adaptive data to the application to repair the application after the repair information in the executable format is successfully installed.
5. The apparatus of claim 4, wherein the feature information of the plug-in comprises: the identification information of the plug-in and the abnormal operation information of the plug-in;
the characteristic information of the terminal comprises: the identification information of the terminal and the model information of the terminal;
wherein the identification information of the plug-in includes: name information of the plug-in and/or version information of the plug-in;
the model information of the terminal comprises: any one or more of model information of the terminal, Rom information of the terminal, vendor information of the terminal, and kernel information of the terminal.
6. The apparatus of claim 5, wherein the feature acquisition module comprises:
the reading unit is used for reading the feature information of the plug-in from the configuration file of the application;
the interface calling unit is used for calling a terminal system interface to read a system configuration file of the terminal;
and the extraction unit is used for extracting the characteristic information of the terminal from the system configuration file of the terminal.
7. A terminal, characterized in that it comprises an application repair device according to any of claims 4-6.
8. A terminal comprising a processor and a memory for storing one or more programs configured for execution by the processor, the programs comprising instructions for performing the method of any of claims 1-3.
9. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program which, when executed, is adapted to carry out the method of any one of claims 1-3.
CN201410325422.6A 2014-07-09 2014-07-09 Application restoration method and device and terminal Active CN105302711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410325422.6A CN105302711B (en) 2014-07-09 2014-07-09 Application restoration method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410325422.6A CN105302711B (en) 2014-07-09 2014-07-09 Application restoration method and device and terminal

Publications (2)

Publication Number Publication Date
CN105302711A CN105302711A (en) 2016-02-03
CN105302711B true CN105302711B (en) 2020-08-25

Family

ID=55200000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410325422.6A Active CN105302711B (en) 2014-07-09 2014-07-09 Application restoration method and device and terminal

Country Status (1)

Country Link
CN (1) CN105302711B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912466B (en) * 2016-04-07 2018-11-09 百度在线网络技术(北京)有限公司 Using the processing method and processing device of exception information
CN106357464B (en) * 2016-11-08 2019-12-31 青岛海信电器股份有限公司 Remote maintenance method for smart television, smart television and service center
CN106951280A (en) * 2017-02-28 2017-07-14 努比亚技术有限公司 Mobile terminal and apply restorative procedure
CN107239381B (en) * 2017-06-07 2021-09-07 北京奇虎科技有限公司 Method, device and system for processing crash information
CN107145375B (en) * 2017-06-12 2021-08-06 阿里巴巴(中国)有限公司 Kernel loading method, device, system, user terminal and storage medium
CN107402761A (en) * 2017-07-25 2017-11-28 青岛海信电器股份有限公司 Using restorative procedure and device
CN110399246B (en) * 2019-07-30 2022-04-22 腾讯科技(深圳)有限公司 Program repair method and device
CN110933507B (en) * 2019-11-15 2022-06-03 深圳市酷开网络科技股份有限公司 Playing method of third-party media content, intelligent terminal and storage medium
CN111782504B (en) * 2020-05-20 2023-12-01 车智互联(北京)科技有限公司 Application program abnormality diagnosis method, mobile terminal and readable storage medium
CN113467821A (en) * 2021-06-03 2021-10-01 荣耀终端有限公司 Application program repairing method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5870559A (en) * 1996-10-15 1999-02-09 Mercury Interactive Software system and associated methods for facilitating the analysis and management of web sites
CN102722439A (en) * 2012-06-01 2012-10-10 奇智软件(北京)有限公司 Method, device and system for improving running stability of FLASH assembly
CN102880488A (en) * 2012-09-12 2013-01-16 北京奇虎科技有限公司 Method, equipment and system for restoring drive program
CN102999555A (en) * 2012-10-15 2013-03-27 北京奇虎科技有限公司 Webpage exception handling method and device
CN103595708A (en) * 2013-10-22 2014-02-19 北京奇虎科技有限公司 Method and system for processing abnormal closing of browser, browser and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5870559A (en) * 1996-10-15 1999-02-09 Mercury Interactive Software system and associated methods for facilitating the analysis and management of web sites
CN102722439A (en) * 2012-06-01 2012-10-10 奇智软件(北京)有限公司 Method, device and system for improving running stability of FLASH assembly
CN102880488A (en) * 2012-09-12 2013-01-16 北京奇虎科技有限公司 Method, equipment and system for restoring drive program
CN102999555A (en) * 2012-10-15 2013-03-27 北京奇虎科技有限公司 Webpage exception handling method and device
CN103595708A (en) * 2013-10-22 2014-02-19 北京奇虎科技有限公司 Method and system for processing abnormal closing of browser, browser and server

Also Published As

Publication number Publication date
CN105302711A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN105302711B (en) Application restoration method and device and terminal
US20160063244A1 (en) Method and system for recognizing advertisement plug-ins
CN104809045B (en) Running method and device of monitoring script
CN107370804B (en) Software application processing method and device
CN104850427B (en) A kind of code upgrade method and device
CN107844306B (en) Application program repairing method and device, storage medium and terminal
CN105468395A (en) Updating method, device and system
CN113242288B (en) Internet of things equipment firmware upgrading method, system and device and storage medium
CN103793248A (en) Method and device for upgrading application program
JP2018508892A (en) Method and apparatus for assigning device fingerprints to Internet devices
CN103971056A (en) Method and device for preventing application program in operating system from being uninstalled
CN106203092B (en) Method and device for intercepting shutdown of malicious program and electronic equipment
CN113051613A (en) Privacy policy detection method and device, electronic equipment and readable storage medium
US10318731B2 (en) Detection system and detection method
CN106569907B (en) System startup file checking and compiling method
CN109766123B (en) Application program packaging method and device
CN109543409B (en) Method, device and equipment for detecting malicious application and training detection model
CN109783261B (en) Crash processing method and device for terminal application, electronic equipment and storage medium
CN113609478B (en) IOS platform application program tampering detection method and device
CN105320853B (en) Information monitoring method and device and terminal
CN112600803B (en) Web end data signature method and device and computer equipment
CN111414270B (en) Exception handling method and device
CN111382416B (en) Application program operation identification method and device, terminal equipment and storage medium
CN110262856B (en) Application program data acquisition method, device, terminal and storage medium
CN109783156B (en) Application starting control method and device

Legal Events

Date Code Title Description
C06 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