CN113467821A - Application program repairing method, device, equipment and readable storage medium - Google Patents
Application program repairing method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN113467821A CN113467821A CN202110621706.XA CN202110621706A CN113467821A CN 113467821 A CN113467821 A CN 113467821A CN 202110621706 A CN202110621706 A CN 202110621706A CN 113467821 A CN113467821 A CN 113467821A
- Authority
- CN
- China
- Prior art keywords
- application program
- notification message
- white list
- cloud server
- terminal device
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 114
- 238000009434 installation Methods 0.000 claims abstract description 106
- 238000004891 communication Methods 0.000 abstract description 38
- 230000006854 communication Effects 0.000 abstract description 38
- 230000006870 function Effects 0.000 description 34
- 238000012545 processing Methods 0.000 description 22
- 238000007726 management method Methods 0.000 description 21
- 239000010410 layer Substances 0.000 description 19
- 230000008569 process Effects 0.000 description 18
- 238000004590 computer program Methods 0.000 description 14
- 238000010295 mobile communication Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 230000005236 sound signal Effects 0.000 description 11
- 210000000988 bone and bone Anatomy 0.000 description 10
- 230000008439 repair process Effects 0.000 description 8
- 230000000694 effects Effects 0.000 description 6
- 230000004044 response Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000036772 blood pressure Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000002155 anti-virotic effect Effects 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 239000012792 core layer Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000010985 leather Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000010349 pulsation Effects 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 238000012430 stability testing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the application is suitable for the technical field of communication, and provides a method, a device, equipment and a readable storage medium for repairing an application. By adopting the application program repairing method provided by the embodiment of the application program, the situation that a user needs to search the installation version of the stable version of the application program by himself is avoided, and the intelligence of repairing the application program is improved. Meanwhile, the repaired application program is the application program in the white list, so that the application program repairing method provided by the embodiment of the application is used for selectively repairing the application program in the white list, the pertinence of repairing the application program is improved, and meanwhile, customized service is provided for repairing the application program.
Description
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a method, a device, equipment and a readable storage medium for repairing an application program.
Background
The terminal device usually installs a plurality of third-party applications to meet various requirements of people. At present, a terminal equipment manufacturer customizes corresponding Android (Android) systems according to different terminal equipment models, so that the number of system versions of the terminal equipment is large. Meanwhile, in order to improve competitiveness of a manufacturer who develops a third-party Application, a new version of the third-party Application is frequently released, so that the released third-party Application cannot perform stability testing on system versions of all terminal devices, and therefore the third-party Application may have a situation of program no Response (ANR) or program Crash (Crash).
Generally, when the third-party application generates the ANR or the Crash, the user replaces the generated ANR or Crash version by searching for the available third-party application version by himself to solve the ANR or Crash problem of the third-party application.
The method solves the problem that the third-party applied ANR or Crash is low in intelligence.
Disclosure of Invention
The embodiment of the application provides a method, a device and equipment for repairing an application program and a readable storage medium, and can improve the intelligence of repairing the application program.
In a first aspect, a method for repairing an application program is provided, and is applied to a system composed of a terminal device and a cloud server, and the method includes:
when an application program running on the terminal equipment breaks down, the terminal equipment sends a notification message to the cloud server; the notification message comprises version information of an operating system of the terminal equipment and identification information of the application program and is used for indicating that the application program fails;
the cloud server sends an installation file of a stable version corresponding to the application program to the terminal equipment; the application program is an application program in a white list of the terminal equipment, and the stable version is compatible with an operating system of the terminal equipment;
and installing the installation file by the terminal equipment.
By adopting the application program repairing method, when the application program running on the terminal equipment breaks down, the terminal equipment automatically sends the notification message to the cloud server, and the cloud server sends the installation file of the stable version corresponding to the application program to the terminal equipment, so that the condition that a user needs to automatically search the installation version of the stable version of the application program in the application program repairing process is avoided, and the intelligence of repairing the application program is improved. Meanwhile, the repaired application program is the application program in the white list, so that the application program repairing method provided by the embodiment of the application is used for selectively repairing the application program in the white list, the pertinence of repairing the application program is improved, and customized service is provided for repairing the application program.
In one embodiment, the terminal device stores the white list locally, and before the terminal device sends the notification message to the cloud server, the method further includes: the terminal equipment determines whether the application program is in a white list or not; the method for sending the notification message to the cloud server by the terminal device comprises the following steps: and if the terminal equipment determines that the application program is in the white list, the terminal equipment sends a notification message to the cloud server.
By adopting the application program repairing method, the white list is stored locally in the terminal equipment, and when the application program running on the terminal equipment breaks down, the terminal equipment can directly determine whether the application program needs to be repaired according to the locally stored white list, so that the condition that the white list is sent to the cloud server in the application program repairing process is avoided, the condition that the privacy information of the user is sent to the cloud server is avoided, the condition that the privacy information of the user is leaked from the cloud server is further avoided, and the safety of the user in using the terminal equipment is improved.
In one embodiment, the sending, by the terminal device, the notification message to the cloud server includes: the terminal equipment sends a version request notification message to the cloud server, wherein the version request notification message is used for acquiring the installation file, and the version request notification message comprises version information of the operating system and identification information of the application program.
In one embodiment, the version request notification message further includes version information of the application program.
By adopting the method for repairing the application program, when the version request notification message further comprises the version information of the application program, the terminal device can also send the version request notification message comprising the version information of the operating system, the identification information of the application program and the version information of the application program to the cloud server after determining that the application program is in the white list. The cloud server may again determine whether the application is in the white list according to the version request notification message. And when the application program is in the white list, sending the installation file of the stable version to the terminal equipment. That is to say, after the terminal device determines that the application program is in the white list, the cloud server determines whether the application program is in the white list again, so that the accuracy of determining the application program in the white list is improved, and the accuracy of repairing the application program is further improved.
In one embodiment, if the application is not in the white list, the sending, by the terminal device, the notification message to the cloud server includes: the terminal equipment sends a fault notification message to the cloud server, wherein the fault notification message comprises version information of an operating system, identification information of an application program and the version information of the application program.
By adopting the application program repairing method, the terminal device can also send a fault notification message comprising the operating system version, the identification information of the application program and the version information of the application program to the cloud server. And further, a terminal equipment manufacturer can forward the fault notification message to an application program manufacturer, and the application program manufacturer is promoted to solve the problem that the current version of the application program is incompatible with the system version.
In one embodiment, the cloud server stores a white list, and the sending, by the terminal device, the notification message to the cloud server includes: the terminal equipment sends a report notification message to the cloud server, wherein the report notification message comprises version information of an operating system, identification information of an application program and the version information of the application program.
In an embodiment, before the cloud server sends the installation file of the stable version corresponding to the application program to the terminal device, the method further includes: the cloud server determines whether the application is in a white list; the method for sending the installation file of the stable version corresponding to the application program to the terminal equipment by the cloud server comprises the following steps: and if the application program is in the white list, the cloud server sends an installation file to the terminal equipment.
By adopting the method for repairing the application program, in the process of repairing the application program, whether the application program is in the white list or not is judged through the cloud server instead of the terminal device, so that the number of tasks needing to be processed on the terminal device is reduced, namely the requirement on the processing capacity of the terminal device is reduced.
In one embodiment, the cloud server determines that the application is not on the white list, the method further comprising: the cloud server stores the report notification message.
By adopting the application program repairing method, the cloud server stores the report notification message, and the terminal equipment manufacturer can call the fault notification message from the cloud server and send the fault notification message to the manufacturer of the application program indicated in the fault notification message. The vendor of the application may upgrade the application based on the fault notification message so that the upgraded application is compatible with the system version of the terminal device.
In one embodiment, further comprising: and the terminal equipment sends the white list to the cloud server.
By adopting the application program repairing method, the terminal device actively sends the white list to the cloud server, so that the condition that the cloud server requests the terminal device to send the white list can be avoided, unnecessary data interaction between the cloud server and the terminal device is further avoided, and the data volume transmitted in the application program repairing process is reduced.
In one embodiment, further comprising: the cloud server sends a white list request message to the terminal equipment, wherein the white list request message is used for acquiring a white list; and if the terminal equipment stores the white list locally, the terminal equipment sends the white list to the cloud server.
By adopting the application program repairing method, the cloud server sends the white list request message to the terminal equipment, and the terminal equipment sends the white list to the cloud server in response to the white list request message, so that the cloud server can judge whether the failed application program is in the white list according to the white list sent by the terminal equipment, the condition that the terminal equipment judges whether the failed application program is in the white list is avoided, the number of tasks needing to be processed by the terminal equipment is reduced, and the requirement on the processing capacity of the terminal equipment is reduced.
In a second aspect, a method for repairing an application program is provided, including:
when an application program running on the terminal equipment breaks down, sending a notification message to a cloud server; the notification message comprises version information of an operating system of the terminal equipment and identification information of the application program, and the notification message is used for indicating that the application program fails;
receiving an installation file of a stable version of an application program sent by a cloud server; the application program is an application program in a white list of the terminal equipment, and the stable version is compatible with an operating system of the terminal equipment;
and installing the installation file.
In one embodiment, further comprising: receiving a white list setting operation of a first control on a current display interface of the terminal equipment by a user; and determining the white list in response to the white list setting operation.
In one embodiment, further comprising: and sending the white list to the cloud server.
In one embodiment, further comprising: receiving a white list request message sent by a cloud server, wherein the white list request message is used for acquiring a white list; and if the terminal equipment stores the white list locally, sending the white list to the cloud server.
In an embodiment, the terminal device locally stores a white list, and before sending the notification message to the cloud server, the method further includes: it is determined whether the application is in a white list.
In an embodiment, if the application is in the white list, the sending the notification message to the cloud server includes: and sending a version request notification message to the cloud server, wherein the version request notification message is used for acquiring the installation file and comprises version information of the operating system and identification information of the application program.
In one embodiment, the version request notification message further includes version information of the application program.
In an embodiment, if the application is not in the white list, the sending the notification message to the cloud server includes: and sending a fault notification message to the cloud server, wherein the fault notification message comprises version information of the operating system, identification information of the application program and version information of the application program.
In one embodiment, the cloud server stores a white list, and the sending the notification message to the cloud server includes: and sending a report notification message to the cloud server, wherein the report notification message comprises version information of the operating system, identification information of the application program and the version information of the application program.
In a third aspect, a method for repairing an application is provided, including:
receiving a notification message sent by the terminal device, wherein the notification message comprises version information of an operating system of the terminal device and identification information of the application program, and the notification message is used for indicating that the application program fails;
if the application program is determined to be the application program in the white list of the terminal equipment according to the notification message, acquiring an installation file of a stable version of the application program, wherein the stable version is compatible with an operating system of the terminal equipment;
and sending the installation file to the terminal equipment.
In one embodiment, the cloud server stores a white list; the notification message is a report notification message; the report notification message includes version information of the operating system, identification information of the application program, and version information of the application program; the determining that the application program is the application program in the white list of the terminal device according to the notification message includes: and determining that the application program is in the white list according to the identification information of the application program.
In one embodiment, if it is determined that the application is not in the white list, the method further includes: the report notification message is stored.
In one embodiment, the terminal device stores the white list locally; the notification message is a version request notification message, and the version request notification message comprises version information of the operating system and identification information of the application program; the version request notification message is used for acquiring an installation file; the determining that the application program is the application program in the white list of the terminal device according to the notification message includes: and if the version request notification message sent by the terminal equipment is received, determining that the application program is in the white list.
In one embodiment, the version request notification message further includes version information of the application program.
In an embodiment, the terminal device stores a white list locally, and the receiving the notification message sent by the terminal device includes: receiving a fault notification message sent by terminal equipment; the failure notification message includes version information of the operating system, identification information of the application program, and version information of the application program.
In one embodiment, further comprising: and receiving the white list sent by the terminal equipment.
In one embodiment, further comprising: sending a white list request message to the terminal equipment, wherein the white list request message is used for acquiring a white list; and the receiving terminal equipment sends the white list.
In a fourth aspect, there is provided a device for restoring an application program, including: the sending module is used for sending a notification message to the cloud server when an application program running on the terminal equipment fails; the notification message comprises version information of an operating system of the terminal equipment and identification information of the application program, and the notification message is used for indicating that the application program fails; the receiving module is used for receiving the installation file of the stable version of the application program sent by the cloud server; the application program is an application program in a white list of the terminal equipment, and the stable version is compatible with an operating system of the terminal equipment; and the installation module is used for installing the installation files.
In one embodiment, the receiving module is further configured to receive a white list setting operation of a first control on a current display interface of the terminal device by a user; the device for repairing the application program further comprises a first determining module, wherein the first determining module is used for responding to the white list setting operation and determining the white list.
In one embodiment, the sending module is further configured to send the white list to a cloud server.
In an embodiment, the receiving module is further configured to receive a white list request message sent by the cloud server, where the white list request message is used to obtain a white list; the sending module is further configured to send the white list to the cloud server if the white list is locally stored in the terminal device.
In one embodiment, the terminal device stores the white list locally, and the apparatus for repairing the application further includes a second determining module, wherein the second determining module is configured to determine whether the application is in the white list.
In an embodiment, if the application program is in the white list, the sending module is specifically configured to send a version request notification message to the cloud server, where the version request notification message is used to obtain the installation file, and the version request notification message includes version information of the operating system and identification information of the application program.
In one embodiment, the version request notification message further includes version information of the application program.
In an embodiment, if the application program is not in the white list, the sending module is specifically configured to send a failure notification message to the cloud server, where the failure notification message includes version information of the operating system, identification information of the application program, and version information of the application program.
In one embodiment, the cloud server stores a white list, and the sending module is specifically configured to send a report notification message to the cloud server, where the report notification message includes version information of the operating system, identification information of the application program, and version information of the application program.
In a fifth aspect, a device for repairing an application is provided, including: the terminal equipment comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving a notification message sent by the terminal equipment, the notification message comprises version information of an operating system of the terminal equipment and identification information of an application program, and the notification message is used for indicating that the application program fails; the acquisition module is used for acquiring an installation file of a stable version of the application program if the application program is determined to be the application program in the white list of the terminal equipment according to the notification message, wherein the stable version is compatible with an operating system of the terminal equipment; and the sending module is used for sending the installation file to the terminal equipment.
In one embodiment, the cloud server stores a white list; the notification message is a report notification message; the report notification message includes version information of the operating system, identification information of the application program, and version information of the application program; the acquisition module further comprises a determination unit, and the determination unit is used for determining that the application program is in the white list according to the identification information of the application program.
In one embodiment, if it is determined that the application is not in the white list, the apparatus for repairing the application further includes: and the storage module is used for storing the report notification message.
In one embodiment, the terminal device stores the white list locally; the notification message is a version request notification message, and the version request notification message comprises version information of the operating system and identification information of the application program; the version request notification message is used for acquiring an installation file; the determining unit is further configured to determine that the application program is in the white list if the version request notification message sent by the terminal device is received.
In one embodiment, the version request notification message further includes version information of the application program.
In one embodiment, the terminal device stores a white list locally, and the receiving module is specifically configured to receive a fault notification message sent by the terminal device; the failure notification message includes version information of the operating system, identification information of the application program, and version information of the application program.
In one embodiment, the receiving module is further configured to receive a white list sent by the terminal device.
In one embodiment, the sending module is further configured to send a white list request message to the terminal device, where the white list request message is used to obtain a white list; the receiving module is also used for receiving the white list sent by the terminal equipment.
In a sixth aspect, a terminal device is provided, where the terminal device includes a processor, and the processor is configured to couple with a memory, read instructions in the memory, and cause the terminal device to execute the method provided in the second aspect according to the instructions.
In a seventh aspect, a cloud server is provided, where the cloud server includes a processor, and the processor is configured to couple with a memory, read an instruction in the memory, and cause the cloud server to execute the method provided in the third aspect according to the instruction.
In an eighth aspect, a program is provided, which when executed by a processor is adapted to perform the method provided in the second or third aspect.
In a ninth aspect, a computer-readable storage medium is provided, in which instructions are stored, which when executed on a computer or processor, implement the method provided in the second or third aspect.
In a tenth aspect, a program product is provided, the program product comprising a computer program stored in a readable storage medium, the computer program being readable from the readable storage medium by at least one processor of a device, the at least one processor executing the computer program to cause the device to carry out the method provided by the second or third aspect.
Drawings
Fig. 1 is a schematic view of an application scenario of a method for repairing an application program according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for repairing an application according to an embodiment of the present application;
fig. 3 is a schematic view of a display interface for setting a white list in a terminal device according to an embodiment of the present application;
fig. 4 is a schematic diagram of a display interface for canceling a white list in a terminal device according to an embodiment of the present application;
fig. 5 is a schematic view of a display interface for prompting installation in a terminal device according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for repairing an application according to another embodiment of the present application;
FIG. 7 is a flowchart illustrating a method for repairing an application according to another embodiment of the present application;
fig. 8 is a schematic view of an application scenario of a method for repairing an application program according to another embodiment of the present application;
FIG. 9 is a diagram illustrating an exemplary application repair apparatus according to an embodiment of the present application;
FIG. 10 is a diagram illustrating an exemplary application repair apparatus;
fig. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 12 is a schematic software framework diagram of a terminal device according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a cloud server according to an embodiment of the present application.
Detailed Description
The following is an exemplary description of relevant matters that may be involved in embodiments of the present application.
Although most terminal device manufacturers adopt the android system as a system of the terminal device, the terminal device manufacturers usually customize the android system, resulting in different customized system versions being used on different terminal devices. In order to improve the user experience, the terminal equipment manufacturer often pushes the latest system version to the user through Over-the-Air Technology (OTA), resulting in a large number of different system versions on the market. The OTA is a technology for implementing remote management of data of a mobile terminal device and a Subscriber Identity Module (SIM) card through an air interface of mobile communication. Meanwhile, in order to improve competitiveness of third-party application program (App) manufacturers, third-party apps of new versions are frequently released.
Due to the huge number of third party apps, when a terminal device manufacturer issues a new system version, it is impossible to perform compatibility testing on all third party apps on the market. Similarly, because the number of system versions of the terminal device is huge, when the third party App issues a new version each time, it is impossible to perform compatibility testing on the system versions of all the terminal devices. When the system version of the terminal device is incompatible with the application program, the application program may have ANR or Crash.
Because the general memory space of the terminal equipment is small, the installation file of the application program can be automatically deleted after the application program is installed on the terminal equipment. When the ANR or Crash condition of an application occurs on a terminal device, a user is usually required to search for a stable version of an installation file by himself and reinstall the stable version of the installation file, so as to solve the problem. Therefore, it is necessary to provide a method for automatically repairing an application in response to this problem.
The method for repairing the application program provided by the embodiment of the application program can be applied to the scene shown in fig. 1. As shown in fig. 1, the terminal device 100 and the cloud server 200 are connected in communication. When the ANR or blast of the application occurs on the terminal device 100, the installation file of the stable version may be automatically acquired from the cloud server 200, and the ANR or blast of the application is solved by reinstalling the installation file of the stable version.
The embodiment of the present application does not limit the type of the terminal device 100. Examples of some terminal devices are, for example: mobile phones, tablet computers, notebook computers, palm computers, and the like. The embodiment of the present application does not limit the type of the cloud server 200. The cloud server 200 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
The technical solutions in the embodiments of the present application will be described in detail and clearly with reference to the accompanying drawings. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" in the text is only an association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: three cases of a alone, a and B both, and B alone exist, and in addition, "a plurality" means two or more than two in the description of the embodiments of the present application.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
Fig. 2 is a flowchart illustrating a method for repairing an application according to an embodiment of the present application, where the embodiment relates to a specific process of how to automatically obtain a stable version of an installation file from a cloud server. As shown in fig. 2, the method is applied to a system composed of a terminal device and a cloud server, and includes:
s101, when an application program running on the terminal equipment fails, the terminal equipment sends a notification message to the cloud server, wherein the notification message comprises version information of an operating system of the terminal equipment and identification information of the application program and is used for indicating that the application program fails.
The applications in the white list are applications that need to be repaired when an application fails. The application program may be all application programs in the terminal device, or may be a part of application programs, which is not limited in this embodiment of the present application. When a terminal device manufacturer releases a new system version, compatibility testing between an application program and the system version is usually performed for the application program which is mainstream in the market. The installation files of the tested application programs are installation files of stable versions of the application programs. The terminal device manufacturer may store the installation version of the tested application in the cloud server. Because the general memory space of the terminal equipment is small, the installation file of the application program can be automatically deleted after the application program is installed on the terminal equipment.
In one possible case, the white list may be determined by receiving a white list setting operation of a user on a first control on a current display interface of the terminal device and responding to the white list setting operation. For example, an interface shown in (a) in fig. 3 may be displayed on the terminal device, and when the user clicks an application on the interface shown in (a) in fig. 3, the "share", "unload", and "protect" controls are displayed on the upper right of the application, and the "protect" control is clicked to add the application to the white list. For another example, the user may also enter a white list setting interface through "settings" in the system, and the white list setting interface may be as shown in (b) of fig. 3. And displaying a list of application programs in the terminal equipment on the white list setting interface, and adding the application programs into the white list by selecting the selection control corresponding to the application programs. As shown in fig. 3 (b), wherein the video playback software, the map, the take-away, and the smart projector are white-listed applications. When the white list is determined by receiving the white list setting operation of the user on the first control on the current display interface of the terminal device and responding to the white list setting operation, that is, the white list is determined according to the user requirement, the terminal device can only repair the application program in the white list, and customized repair is provided for the application program.
The white list may also be automatically determined by the terminal device according to the frequency of use of the application, in a possible case. For example, the end-point device may add the top-10 usage frequency ranked application to the white list. When the white list is automatically determined according to the frequency of use of the application, the intelligence of determining the white list is high.
It should be noted that the corresponding application program may also be removed from the white list by receiving a white list cancellation operation of the user on the second control on the current display interface of the terminal device, and responding to the white list cancellation operation. For example, an interface shown in (a) in fig. 4 may be displayed on the terminal device, and when the user clicks on an application on the interface shown in (a) in fig. 4 and the application is already in the white list, the "share", "unload", and "unprotect" controls are displayed on the upper right of the application, and the "unprotect" control is clicked to remove the application from the white list. For another example, the user may also enter a white list setting interface through "settings" in the system, as shown in fig. 4 (b). And displaying a list of the application programs in the terminal equipment on the white list setting interface, and removing the application programs from the white list by canceling the selection control corresponding to the selected application programs. As shown in fig. 4 (b), in which the instant messenger, the screen shot application, and the map are removed from the white list. In a possible case, the white list can be automatically removed by the terminal device according to the use frequency of the application program. For example, the end device may remove from the white list the applications that are in the white list and have a frequency of use that ranks 10 after all applications.
In one possible scenario, the application may be a resource-like application, such as antivirus software.
S102, the cloud server sends the installation file of the stable version corresponding to the application program to the terminal equipment. The application program is an application program in a white list of the terminal equipment, and the stable version is compatible with an operating system of the terminal equipment.
The failure of an application is usually referred to as ANR or Crash of the application, and is usually caused by parameter mismatch between the application and a system interface, conflict between the application and the system interface, and/or conflict between the application and a resource applied by a program system. When an application program running on the terminal equipment fails, the cloud server can send the installation file of the stable version corresponding to the application program to the terminal equipment because the installation file of the stable version of the application program tested by a terminal equipment manufacturer is stored in the cloud server. The cloud server sends the installation file of the stable version to the terminal device, and may also send the download address of the installation file of the stable version to the terminal device, so that the terminal device may download the installation file of the stable version by accessing the download address, which is not limited in the embodiments of the present application.
S103, the terminal equipment installs the installation file with the stable version.
When the terminal device obtains the installation file with the stable version from the cloud server, installation prompt information can be output to the user. The installation prompt message can be a voice prompt message, a character prompt message or a vibration prompt message, and the installation prompt message is not limited in the embodiment of the application. The terminal device may immediately install the installation file of the stable version when the installation file of the stable version is obtained, may also receive a setting instruction of a user, and installs the installation file of the stable version at a time indicated by the setting instruction, which is not limited in the embodiment of the present application. For example, the time of setting the instruction indication may be 2:00 a.m. In one possible scenario, the user's setup instructions may also instruct installation of the stable version of the installation file to be deferred for a preset duration. For example, ten minutes of installation of the stable version of the installation file is deferred.
When the installation file of the stable version is obtained, the installation file of the stable version is immediately installed, and the application program can be repaired in time. The installation file of the stable version is installed at the moment indicated by the setting instruction, so that the situation that the user experience is influenced due to the fact that the installation file of the stable version is installed at the current moment occupies the memory of the terminal equipment can be avoided.
In one possible case, an interface as shown in (a) in fig. 5 may be displayed on the display interface of the terminal device. As shown in fig. 5 (a), installation prompt information is displayed below the interface displayed by the terminal device. When the user clicks "download install," a stable version of the installation file can be installed immediately. When the user clicks 'install temporarily', the installation of the installation file of the stable version is suspended. In one possible case, the terminal device may jump to an interface as shown in fig. 5 (b), and select the postponed duration by sliding the digital control up and down. Or, the terminal device may also jump to an interface as shown in fig. 5 (c), and select a time to install the installation file of the stable version by sliding the two digital controls up and down.
According to the method for repairing the application program, when the application program running on the terminal equipment breaks down, the terminal equipment sends the notification message to the cloud server, and at the moment, the cloud server sends the installation file of the stable version corresponding to the application program to the terminal equipment, so that the terminal equipment installs the installation file of the stable version. By adopting the application program repairing method provided by the embodiment of the application program, when the application program fails, the terminal device can automatically acquire the installation file of the stable version from the cloud server, so that the situation that a user needs to search the installation version of the stable version of the application program by himself in the application program repairing process is avoided, and the intelligence of repairing the application program is improved. Meanwhile, because the repaired application program is the application program in the white list, the application program repairing method provided by the embodiment of the application is used for selectively repairing the application program in the white list instead of repairing all the application programs in the terminal equipment, so that the pertinence of repairing the application program is improved, and meanwhile, customized service is provided for repairing the application program.
It can be understood that the white list may be stored in the terminal device, and may also be stored in the cloud server, which is not limited in this embodiment of the application. When the white list is stored in the terminal device, the terminal device may first determine whether the application program having the fault is in the white list before obtaining the installation file of the stable version from the cloud server, and obtain the installation file of the stable version from the cloud server only when the application program is in the white list. This is explained in more detail below by means of the embodiment shown in fig. 6.
Fig. 6 is a flowchart illustrating a method for repairing an application in another embodiment of the present application, where this embodiment relates to a specific process of how a terminal device obtains an installation file of a stable version corresponding to the application from a cloud server when the terminal device locally stores a white list. As shown in fig. 6, the method includes:
s201, when the application program running on the terminal equipment breaks down, the terminal equipment judges whether the application program is in a white list.
The white list may include identification information of the application program, for example, a name of the application program, or code indicating the application program, which is not limited in this embodiment of the application. The terminal device may compare the identification information of the failed application program with the identification information of the application program in the white list to determine whether the application program is an application program in the white list. If the application program is in the white list, the terminal device executes S202; if the application is not in the white list, the terminal device executes S205.
S202, the terminal equipment sends a version request notification message to the cloud server. The version request notification message is used for acquiring the installation file, and the version request notification message includes version information of the operating system and identification information of the application program.
The terminal device may send the version request message to the cloud server immediately after determining that the application program is in the white list, or may send the version request message to the cloud server at a preset time, which is not limited in the embodiment of the present application. Note that, after the terminal device executes S202, the cloud server executes S203.
In one possible case, the version request notification message further includes version information of the application program.
S203, the cloud server determines the installation file of the stable version of the application program according to the version request notification message.
The cloud server may find the installation file of the stable version matched with the application program based on the operating system version and the identification information of the application program included in the version request notification message.
And S204, the cloud server sends the installation file to the terminal equipment.
After receiving the version information of the application program, the cloud server may send the installation file of the stable version, which is stored in advance and matches with both the version of the operating system and the identification information of the application program, to the terminal device.
It is to be understood that, when the version request notification message further includes version information of the application program, in a possible case, on the basis that the terminal device locally stores the white list, the cloud server may also store the white list. The terminal device may further send a version request notification message including version information of the operating system, identification information of the application program, and version information of the application program to the cloud server after determining that the application program is on the white list. The cloud server may again determine whether the application is in the white list according to the version request notification message. And when the application program is in the white list, sending the installation file of the stable version to the terminal equipment. After the terminal device determines that the application program is in the white list, the cloud server determines whether the application program is in the white list again, so that the accuracy of determining the application program in the white list is improved, and the accuracy of repairing the application program is further improved.
The white list is stored locally in the terminal device, and when the application program running on the terminal device breaks down, the terminal device can directly determine whether the application program needs to be repaired according to the locally stored white list, so that the condition that the white list is sent to the cloud server in the process of repairing the application program is avoided, the condition that the privacy information of the user is sent to the cloud server is avoided, the condition that the privacy information of the user is leaked from the cloud server is further avoided, and the safety of the user in using the terminal device is improved.
S205, the terminal equipment sends a fault notification message to the cloud server. The failure notification message includes version information of the operating system, identification information of the application program, and version information of the application program.
The terminal device may send the fault notification message to the cloud server immediately after determining that the application program is not in the white list, or may send the fault notification message to the cloud server at a preset time, which is not limited in the embodiment of the present application. Note that, after the terminal device executes S205, the cloud server executes S206.
S206, the cloud server stores the fault notification message.
The cloud server may store the failure notification message in the cloud server after receiving the failure notification message. In one possible case, the terminal device manufacturer may retrieve the fault notification message from the cloud server and send the fault notification message to the manufacturer of the application indicated in the fault notification message. The vendor of the application may upgrade the application based on the fault notification message so that the upgraded application is compatible with the system version of the terminal device. Further, the manufacturer of the application program may send the installation file of the application program compatible with the system version of the terminal device to the cloud server for storage as the installation file of the stable version of the application program. And when the terminal equipment has an application program fault again, the cloud server sends the installation file of the stable version to the terminal equipment.
When the application program is not in the white list, the terminal device may further send a fault notification message including the operating system version, the identification information of the application program, and the version information of the application program to the cloud server. And further, a terminal equipment manufacturer can forward the fault notification message to an application program manufacturer, and the application program manufacturer is promoted to solve the problem that the current version of the application program is incompatible with the system version.
In a possible situation, the terminal device receives a white list setting operation of a user on a first control on a current display interface of the terminal device, and after responding to the white list determined by the white list setting operation, the terminal device can actively send the white list to the cloud server, and optionally, the terminal device sends the white list to the cloud server. It will be appreciated that the whitelist setup operation may be used to add applications to the whitelist, or may be used to remove applications from the whitelist.
The terminal device actively sends the white list to the cloud server, so that the condition that the cloud server requests the terminal device to send the white list can be avoided, unnecessary data interaction between the cloud server and the terminal device is further avoided, and the data volume transmitted in the application program repairing process is reduced.
In a possible case, the cloud server may also send a white list request message to the terminal device, so that the terminal device sends the white list to the cloud server after receiving the white list request message. Optionally, at a second preset time, a white list request message is sent to the terminal device, where the white list request message is used to request the terminal device to send a white list to the cloud server.
The cloud server sends the white list request message to the terminal device, and the terminal device sends the white list to the cloud server in response to the white list request message, so that the cloud server can judge whether the failed application program is in the white list according to the white list sent by the terminal device, the condition that the terminal device judges whether the failed application program is in the white list is avoided, the number of tasks needing to be processed by the terminal device is reduced, and the requirement on the processing capacity of the terminal device is reduced.
When the white list is stored on the cloud server, the terminal device sends a notification message to the cloud server, and whether the application program is in the white list or not is judged through the cloud server. And when the application program is in the white list, the cloud server sends the installation file of the stable version to the terminal equipment. This is explained in more detail below by means of the embodiment shown in fig. 7.
Fig. 7 is a flowchart illustrating a method for repairing an application in another embodiment of the present application, where this embodiment relates to a specific process how a terminal device obtains an installation file of a stable version corresponding to the application from a cloud server when the cloud server stores a white list, and as shown in fig. 7, the "obtaining, by the terminal device, the installation file of the stable version corresponding to the application from the cloud server" may include:
s301, the terminal device sends a notification message to the cloud server. The notification message comprises an operating system version, identification information of the application program and version information of the application program, and is used for indicating that the application program fails.
When the white list is stored on the cloud server, if an application program running on the terminal device fails, the terminal device directly sends a report notification message including the version of the operating system, the identification information of the application program and the version information of the application program to the cloud server. The terminal device need not determine itself whether the application is in the white list before sending the notification message.
It should be noted that the terminal device may send the notification message to the cloud server immediately when the application program fails, or may send the notification message to the cloud server again when a preset time arrives, which is not limited in this embodiment of the application.
In one possible case, the notification message may be a report notification message including version information of the operating system, identification information of the application program, and version information of the application program.
S302, the cloud server determines whether the application program is in a white list.
In one possible case, the cloud server may compare the identification information of the failed application with the identification information of the applications in the white list to determine whether the applications are applications in the white list.
In the repairing process of the application program, whether the application program is in the white list is judged through the cloud server instead of the terminal device, so that the number of tasks needing to be processed on the terminal device is reduced, namely the requirement on the processing capacity of the terminal device is reduced.
In a possible case, the cloud server may further determine whether the application is an application in a white list according to information carried in the received notification message. For example, the notification message sent by the terminal device is a version request notification message, and the cloud server determines that the application program is in the white list by determining that the version request notification message only carries version information of the operating system and identification information of the application program, but does not carry version information of the application program.
If the application program is in the white list, the cloud server executes S303, and if the application program is not in the white list, the cloud server executes S304.
S303, the cloud server sends the installation file of the stable version to the terminal equipment.
The cloud server can determine the installation file of the stable version matched with the application program according to the version of the operating system and the identification information of the application program when the application program is determined to be in the white list. When the installation file of the stable version matched with the application program is determined, the cloud server can immediately send the installation file of the stable version to the terminal device, and can also send the installation file of the stable version to the terminal device when the preset time arrives.
S304, the cloud server stores the report notification message.
The implementation principle and the beneficial effect of S304 are similar to those of S206, and are not described herein again.
In a possible case, the embodiment of the present application may also be applied to a scenario shown in fig. 8, as shown in fig. 8, including: the terminal device comprises a terminal device 100, a cloud server 200 and a thin terminal device 300, wherein the terminal device 100 is in communication connection with the cloud server 200 and the thin terminal device 300 respectively. When an application running on the thin terminal device 300 fails, the thin terminal device 300 may obtain a stable version of the installation file from the cloud server 200 through the terminal device 100.
The thin terminal device generally refers to an electronic device with low processing capacity, and the thin terminal device is assisted by the terminal device to repair the application program, so that the requirement on the processing capacity of the thin terminal device can be reduced. Examples of some thin terminal devices are: intelligent bracelet, intelligent glasses etc..
It should be understood that, although the respective steps in the flowcharts in the above-described embodiments are sequentially shown as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It is understood that, in order to implement the above functions, the terminal device and the cloud server respectively include hardware and/or software modules corresponding to the respective functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the terminal device may be divided into the functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation. It should be noted that the names of the modules in the embodiments of the present application are illustrative, and the names of the modules are not limited in actual implementation.
Fig. 9 is a schematic structural diagram of a device for restoring an application according to an embodiment of the present application. The apparatus for restoring an application can be applied to a terminal device, and as shown in fig. 9, the apparatus for restoring an application includes:
the sending module 101 is configured to send a notification message to the cloud server when an application running on the terminal device fails; the notification message comprises version information of an operating system of the terminal equipment and identification information of the application program, and the notification message is used for indicating that the application program fails;
the receiving module 102 is configured to receive an installation file of a stable version of an application program sent by a cloud server; the application program is an application program in a white list of the terminal equipment, and the stable version is compatible with an operating system of the terminal equipment;
and the installation module 103 is used for installing the installation files.
In an embodiment, the receiving module 102 is further configured to receive a white list setting operation of a first control on a current display interface of the terminal device by a user; the apparatus for repairing the application further includes a first determining module 104, and the first determining module 104 is configured to determine the white list in response to a white list setting operation.
In one embodiment, the sending module 101 is further configured to send the white list to a cloud server.
In an embodiment, the receiving module 102 is further configured to receive a white list request message sent by the cloud server, where the white list request message is used to obtain a white list; the sending module 101 is further configured to send the white list to the cloud server if the terminal device stores the white list locally.
In one embodiment, the terminal device stores the white list locally, and the apparatus for repairing the application further includes a second determining module 105, wherein the second determining module 105 is configured to determine whether the application is in the white list.
In an embodiment, if the application is in the white list, the sending module 101 is specifically configured to send a version request notification message to the cloud server, where the version request notification message is used to obtain the installation file, and the version request notification message includes version information of the operating system and identification information of the application.
In one embodiment, the version request notification message further includes version information of the application program.
In an embodiment, if the application is not in the white list, the sending module 101 is specifically configured to send a failure notification message to the cloud server, where the failure notification message includes version information of the operating system, identification information of the application, and version information of the application.
In an embodiment, the cloud server stores a white list, and the sending module 101 is specifically configured to send a report notification message to the cloud server, where the report notification message includes version information of the operating system, identification information of the application program, and version information of the application program.
The apparatus for repairing an application program provided in this embodiment is configured to execute operations executed by a terminal device in the foregoing method embodiments, and the technical principle and the technical effect are similar and will not be described herein again.
In the embodiment of the present application, functional modules of the cloud server may be divided according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation. It should be noted that the names of the modules in the embodiments of the present application are illustrative, and the names of the modules are not limited in actual implementation.
Fig. 10 is a schematic structural diagram of a device for restoring an application according to an embodiment of the present application. The application repair apparatus may be applied to a cloud server, and as shown in fig. 10, the application repair apparatus includes:
a receiving module 210, configured to receive a notification message sent by a terminal device, where the notification message includes version information of an operating system of the terminal device and identification information of an application program, and the notification message is used to indicate that the application program fails;
an obtaining module 220, configured to obtain an installation file of a stable version of the application program if the application program is determined to be an application program in a white list of the terminal device according to the notification message, where the stable version is compatible with an operating system of the terminal device;
a sending module 230, configured to send the installation file to the terminal device.
In one embodiment, the cloud server stores a white list; the notification message is a report notification message; the report notification message includes version information of the operating system, identification information of the application program, and version information of the application program; the obtaining module 220 is specifically configured to determine that the application program is in the white list according to the identification information of the application program.
In one embodiment, if it is determined that the application is not in the white list, the apparatus for repairing the application further includes: a storage module 240, wherein the storage module 240 is used for storing the report notification message.
In one embodiment, the terminal device stores the white list locally; the notification message is a version request notification message, and the version request notification message comprises version information of the operating system and identification information of the application program; the version request notification message is used for acquiring an installation file; the obtaining module 220 further includes a determining unit 221 and an obtaining unit 222, where the determining unit 221 is configured to determine that the application program is in the white list if a version request notification message sent by the terminal device is received; the obtaining unit 222 is configured to obtain an installation file of a stable version of an application program.
In one embodiment, the version request notification message further includes version information of the application program.
In an embodiment, the terminal device stores a white list locally, and the receiving module 210 is specifically configured to receive a fault notification message sent by the terminal device; the failure notification message includes version information of the operating system, identification information of the application program, and version information of the application program.
In one embodiment, the receiving module 210 is further configured to receive a white list sent by the terminal device.
In an embodiment, the sending module 220 is further configured to send a white list request message to the terminal device, where the white list request message is used to obtain a white list; the receiving module 210 is further configured to receive a white list sent by the terminal device.
The apparatus for repairing an application program provided in this embodiment is configured to perform operations performed by the cloud server in the foregoing method embodiments, and the technical principle and the technical effect are similar and will not be described herein again.
The embodiment of the application also provides the terminal equipment. It should be noted that the type of the terminal device involved in the embodiments of the present application may be arbitrary. Illustratively, the terminal device may be, but is not limited to, a mobile phone, a tablet computer, a smart speaker, a smart large screen (also referred to as a smart television), or a wearable device.
Exemplarily, fig. 11 shows a schematic structural diagram of the terminal device 100. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the terminal device 100. In other embodiments of the present application, terminal device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The controller may be a neural center and a command center of the terminal device 100, among others. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the terminal device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture function of terminal device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the terminal device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal device 100, and may also be used to transmit data between the terminal device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other terminal devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is only an exemplary illustration, and does not constitute a limitation on the structure of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the terminal device 100. The charging management module 140 may also supply power to the terminal device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in terminal device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied on the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the terminal device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), fifth Generation wireless communication systems (5G, the 5th Generation of wireless communication systems), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The terminal device 100 implements a display function by the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
The terminal device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the terminal device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform fourier transform or the like on the frequency point energy.
Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record video in a plurality of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can implement applications such as intelligent recognition of the terminal device 100, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, a phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The terminal device 100 may implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The terminal device 100 can listen to music through the speaker 170A, or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the terminal device 100 answers a call or voice information, it is possible to answer a voice by bringing the receiver 170B close to the human ear.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be an Open Mobile Terminal Platform (OMTP) standard interface of 3.5mm, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure from the change in the capacitance. When a touch operation is applied to the display screen 194, the terminal device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The terminal device 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the terminal device 100. In some embodiments, the angular velocity of terminal device 100 about three axes (i.e., x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the terminal device 100, calculates the distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the terminal device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates an altitude from the barometric pressure measured by the barometric pressure sensor 180C, and assists in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The terminal device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the terminal device 100 is a folder, the terminal device 100 may detect the opening and closing of the folder according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E can detect the magnitude of acceleration of the terminal device 100 in various directions (generally, three axes). The magnitude and direction of gravity can be detected when the terminal device 100 is stationary. The method can also be used for recognizing the posture of the terminal equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The terminal device 100 may measure the distance by infrared or laser. In some embodiments, shooting a scene, the terminal device 100 may range using the distance sensor 180F to achieve fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light to the outside through the light emitting diode. The terminal device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100. The terminal device 100 can utilize the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. The terminal device 100 may adaptively adjust the brightness of the display screen 194 according to the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket, in order to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The terminal device 100 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal device 100 executes a temperature processing policy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the terminal device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the terminal device 100 heats the battery 142 when the temperature is below another threshold to avoid the terminal device 100 being abnormally shut down due to low temperature. In other embodiments, when the temperature is lower than a further threshold, the terminal device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the terminal device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The terminal device 100 may receive a key input, and generate a key signal input related to user setting and function control of the terminal device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the terminal device 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The terminal device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the terminal device 100 employs eSIM, namely: an embedded SIM card. The eSIM card may be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
It should be noted that any terminal device mentioned in the embodiments of the present application may include more or less modules in the terminal device 100.
The software system of the terminal device 100 may adopt a hierarchical architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the terminal device 100.
Fig. 12 is a block diagram of a software configuration of the terminal device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom. The application layer may include a series of application packages.
As shown in fig. 12, the application package may include camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 12, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide the communication function of the terminal device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal device vibrates, an indicator light flickers, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The terminal device provided by the embodiment of the present application may include a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method in any one of the above method embodiments is implemented.
In one embodiment, a cloud server is provided, the internal structure of which may be as shown in fig. 13. The electronic device includes a processor, a memory, a network interface, and an input device connected by a system bus. Wherein the processor of the cloud server is configured to provide computing and control capabilities. The memory of the cloud server comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the cloud server is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method of application repair.
Those skilled in the art will appreciate that the structure shown in fig. 13 is a block diagram of only a portion of the structure relevant to the present application, and does not constitute a limitation on the cloud server to which the present application is applied, and a particular cloud server may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.
It should be clear that, in the embodiments of the present application, the process of executing the computer program by the processor is consistent with the process of executing the steps in the above method, and specific reference may be made to the description above.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps that can be implemented in the above method embodiments.
The embodiments of the present application provide a computer program product, which when running on an electronic device, enables the electronic device to implement the steps in the above method embodiments when executed.
Embodiments of the present application further provide a chip system, where the chip system includes a processor, the processor is coupled with a memory, and the processor executes a computer program stored in the memory to implement the methods according to the above method embodiments. The chip system can be a single chip or a chip module consisting of a plurality of chips.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment. It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance. Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise.
Finally, it should be noted that: the above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (30)
1. The method for repairing the application program is applied to a system consisting of a terminal device and a cloud server, and comprises the following steps:
when an application program running on the terminal equipment breaks down, the terminal equipment sends a notification message to the cloud server; the notification message comprises version information of an operating system of the terminal equipment and identification information of the application program and is used for indicating that the application program fails;
the cloud server sends the installation file of the stable version corresponding to the application program to the terminal equipment; the application program is an application program in a white list of the terminal equipment, and the stable version is compatible with an operating system of the terminal equipment;
and the terminal equipment installs the installation file.
2. The method of claim 1, wherein the terminal device stores the white list locally, and before the terminal device sends a notification message to the cloud server, the method further comprises:
the terminal equipment determines whether the application program is in the white list;
the terminal equipment sends a notification message to the cloud server, and the notification message comprises:
and if the terminal equipment determines that the application program is in the white list, the terminal equipment sends the notification message to the cloud server.
3. The method of claim 2, wherein the terminal device sending the notification message to the cloud server comprises:
and the terminal equipment sends a version request notification message to the cloud server, wherein the version request notification message is used for acquiring the installation file, and the version request notification message comprises the version information of the operating system and the identification information of the application program.
4. The method of claim 3, wherein the version request notification message further comprises version information of the application.
5. The method according to any one of claims 2 to 4, wherein if the application is not on the white list, the sending, by the terminal device, a notification message to the cloud server includes:
and the terminal equipment sends a fault notification message to the cloud server, wherein the fault notification message comprises version information of the operating system, identification information of the application program and version information of the application program.
6. The method according to any one of claims 1 to 5, wherein the cloud server stores the white list, and the terminal device sends a notification message to the cloud server, including:
the terminal device sends a report notification message to the cloud server, wherein the report notification message comprises version information of the operating system, identification information of the application program and version information of the application program.
7. The method according to claim 6, before the cloud server sends the installation file of the stable version corresponding to the application program to the terminal device, further comprising:
the cloud server determining whether the application is in the whitelist;
the cloud server sends the installation file of the stable version corresponding to the application program to the terminal device, and the method comprises the following steps:
and if the application program is in the white list, the cloud server sends the installation file to the terminal equipment.
8. The method of claim 7, wherein the cloud server determines that the application is not on the whitelist, the method further comprising:
the cloud server stores the report notification message.
9. The method according to any one of claims 1-8, further comprising:
and the terminal equipment sends the white list to the cloud server.
10. The method according to any one of claims 1-9, further comprising:
the cloud server sends a white list request message to the terminal device, wherein the white list request message is used for acquiring the white list;
and if the white list is locally stored by the terminal equipment, the terminal equipment sends the white list to the cloud server.
11. A method for repairing an application program, comprising:
when an application program running on the terminal equipment breaks down, sending a notification message to a cloud server; the notification message comprises version information of an operating system of the terminal equipment and identification information of the application program, and the notification message is used for indicating that the application program fails;
receiving an installation file of the stable version of the application program sent by the cloud server; the application program is an application program in a white list of the terminal equipment, and the stable version is compatible with an operating system of the terminal equipment;
and installing the installation file.
12. The method of claim 11, further comprising:
receiving a white list setting operation of a first control on a current display interface of the terminal equipment by a user;
and responding to the white list setting operation, and determining the white list.
13. The method of claim 11 or 12, further comprising:
and sending the white list to the cloud server.
14. The method according to any one of claims 11-13, further comprising:
receiving a white list request message sent by the cloud server, wherein the white list request message is used for acquiring the white list;
and if the white list is locally stored by the terminal equipment, sending the white list to the cloud server.
15. The method according to any one of claims 11-14, wherein the terminal device stores the white list locally, and before sending the notification message to the cloud server, the method further comprises:
determining whether the application is in the whitelist.
16. The method of claim 15, wherein sending a notification message to a cloud server if the application is on the whitelist comprises:
and sending a version request notification message to the cloud server, wherein the version request notification message is used for acquiring the installation file, and the version request notification message comprises version information of the operating system and identification information of the application program.
17. The method of claim 16, wherein the version request notification message further comprises version information of the application.
18. The method of claim 15, wherein sending the notification message to a cloud server if the application is not on the whitelist comprises:
sending a fault notification message to the cloud server, wherein the fault notification message includes version information of the operating system, identification information of the application program and version information of the application program.
19. The method of any of claims 11-14, wherein the cloud server stores the whitelist, and wherein sending the notification message to the cloud server comprises:
sending a report notification message to the cloud server, wherein the report notification message includes version information of the operating system, identification information of the application program, and version information of the application program.
20. A method for repairing an application program, comprising:
receiving a notification message sent by a terminal device, wherein the notification message comprises version information of an operating system of the terminal device and identification information of the application program, and the notification message is used for indicating that the application program fails;
if the application program is determined to be the application program in the white list of the terminal equipment according to the notification message, acquiring an installation file of a stable version of the application program, wherein the stable version is compatible with an operating system of the terminal equipment;
and sending the installation file to the terminal equipment.
21. The method of claim 20, wherein a cloud server stores the whitelist; the notification message is a report notification message; the report notification message includes version information of the operating system, identification information of the application program, and version information of the application program; the determining that the application program is an application program in a white list of the terminal device according to the notification message includes:
and determining that the application program is in the white list according to the identification information of the application program.
22. The method of claim 21, wherein if it is determined that the application is not on the whitelist, further comprising:
storing the report notification message.
23. The method of claim 20, wherein the terminal device stores the whitelist locally; the notification message is a version request notification message, and the version request notification message includes version information of the operating system and identification information of the application program; the version request notification message is used for acquiring the installation file;
the determining that the application program is an application program in a white list of the terminal device according to the notification message includes:
and if a version request notification message sent by the terminal equipment is received, determining that the application program is in the white list.
24. The method of claim 23, wherein the version request notification message further comprises version information of the application.
25. The method of claim 20, wherein the terminal device stores the white list locally, and wherein receiving the notification message sent by the terminal device comprises:
receiving a fault notification message sent by the terminal equipment; the failure notification message includes version information of the operating system, identification information of the application program, and version information of the application program.
26. The method of any one of claims 20-25, further comprising:
and receiving the white list sent by the terminal equipment.
27. The method of any one of claims 20-25, further comprising:
sending a white list request message to the terminal equipment, wherein the white list request message is used for acquiring the white list;
and receiving the white list sent by the terminal equipment.
28. A terminal device, comprising: one or more processors; a memory; a module installed with a plurality of applications; and one or more programs, wherein the one or more programs are stored in the memory, which when executed by the processor, cause the terminal device to perform the method of any of claims 11-19.
29. A cloud server, comprising: one or more processors; a memory; a module installed with a plurality of applications; and one or more programs, wherein the one or more programs are stored in the memory, which when executed by the processor, cause the cloud server to perform the method of any of claims 20-27.
30. A computer-readable storage medium storing computer instructions that, when executed on an electronic device, cause the terminal device to perform the method of any of claims 11-19 or cause the cloud server to perform the method of any of claims 20-27.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110621706.XA CN113467821A (en) | 2021-06-03 | 2021-06-03 | Application program repairing method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110621706.XA CN113467821A (en) | 2021-06-03 | 2021-06-03 | Application program repairing method, device, equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113467821A true CN113467821A (en) | 2021-10-01 |
Family
ID=77872197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110621706.XA Pending CN113467821A (en) | 2021-06-03 | 2021-06-03 | Application program repairing method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113467821A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114884934A (en) * | 2022-04-24 | 2022-08-09 | 广东悦伍纪网络技术有限公司 | Cloud mobile phone application fault detection and recovery system and method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103679029A (en) * | 2013-12-11 | 2014-03-26 | 北京奇虎科技有限公司 | Method and device for repairing cheap-copy application programs |
CN104793980A (en) * | 2015-05-19 | 2015-07-22 | 北京奇虎科技有限公司 | Application program update notification method and device |
CN104820801A (en) * | 2011-01-04 | 2015-08-05 | 北京奇虎科技有限公司 | Method and device for protecting specified application program |
CN105302711A (en) * | 2014-07-09 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Application repairing method and apparatus and terminal |
US20160321058A1 (en) * | 2015-04-30 | 2016-11-03 | Fujitsu Limited | Apparatus and method for creating modification application information |
CN106502665A (en) * | 2016-10-18 | 2017-03-15 | 广州视睿电子科技有限公司 | Application program repairing method and device |
CN107193597A (en) * | 2017-05-19 | 2017-09-22 | 深圳市金立通信设备有限公司 | A kind of application program update method and terminal |
CN107273139A (en) * | 2017-07-05 | 2017-10-20 | 努比亚技术有限公司 | A kind of method for updating system, equipment and computer-readable recording medium |
-
2021
- 2021-06-03 CN CN202110621706.XA patent/CN113467821A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104820801A (en) * | 2011-01-04 | 2015-08-05 | 北京奇虎科技有限公司 | Method and device for protecting specified application program |
CN103679029A (en) * | 2013-12-11 | 2014-03-26 | 北京奇虎科技有限公司 | Method and device for repairing cheap-copy application programs |
CN105302711A (en) * | 2014-07-09 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Application repairing method and apparatus and terminal |
US20160321058A1 (en) * | 2015-04-30 | 2016-11-03 | Fujitsu Limited | Apparatus and method for creating modification application information |
CN104793980A (en) * | 2015-05-19 | 2015-07-22 | 北京奇虎科技有限公司 | Application program update notification method and device |
CN106502665A (en) * | 2016-10-18 | 2017-03-15 | 广州视睿电子科技有限公司 | Application program repairing method and device |
CN107193597A (en) * | 2017-05-19 | 2017-09-22 | 深圳市金立通信设备有限公司 | A kind of application program update method and terminal |
CN107273139A (en) * | 2017-07-05 | 2017-10-20 | 努比亚技术有限公司 | A kind of method for updating system, equipment and computer-readable recording medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114884934A (en) * | 2022-04-24 | 2022-08-09 | 广东悦伍纪网络技术有限公司 | Cloud mobile phone application fault detection and recovery system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113961157B (en) | Display interaction system, display method and equipment | |
CN113704205B (en) | Log storage method, chip, electronic device and readable storage medium | |
CN114556294A (en) | Theme switching method and theme switching device | |
US12032938B2 (en) | Plug-in installation method, apparatus, and storage medium | |
CN113254409A (en) | File sharing method, system and related equipment | |
CN113641271A (en) | Application window management method, terminal device and computer readable storage medium | |
CN114995715B (en) | Control method of floating ball and related device | |
CN113438366A (en) | Information notification interaction method, electronic device and storage medium | |
CN115185652B (en) | Application optimization method and device and electronic equipment | |
CN113784331B (en) | Method and device for updating system data of user identity module card | |
CN114971107A (en) | Privacy risk feedback method and device and first terminal equipment | |
CN114650330A (en) | Method, electronic equipment and system for adding operation sequence | |
CN113467821A (en) | Application program repairing method, device, equipment and readable storage medium | |
CN115017498B (en) | Method for operating applet and electronic device | |
CN114828098B (en) | Data transmission method and electronic equipment | |
CN114003241A (en) | Interface adaptation display method and system of application program, electronic device and medium | |
CN110737916A (en) | Communication terminal and processing method | |
CN117707562B (en) | Parameter updating method and terminal equipment | |
CN116709609B (en) | Message delivery method, electronic device and storage medium | |
CN114006969B (en) | Window starting method and electronic equipment | |
CN116795476B (en) | Wallpaper deleting method and electronic equipment | |
CN117009023B (en) | Method for displaying notification information and related device | |
CN116048594B (en) | Software upgrading method and related device | |
CN118445113A (en) | Method and device for determining abnormal restarting mode, electronic equipment and storage medium | |
CN118276730A (en) | Interface display method of application program and electronic device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20211001 |