CN109885323B - Application program upgrading method, mobile terminal and readable storage medium - Google Patents

Application program upgrading method, mobile terminal and readable storage medium Download PDF

Info

Publication number
CN109885323B
CN109885323B CN201910109036.6A CN201910109036A CN109885323B CN 109885323 B CN109885323 B CN 109885323B CN 201910109036 A CN201910109036 A CN 201910109036A CN 109885323 B CN109885323 B CN 109885323B
Authority
CN
China
Prior art keywords
information
application program
upgrading
upgrade
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910109036.6A
Other languages
Chinese (zh)
Other versions
CN109885323A (en
Inventor
王汉琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910109036.6A priority Critical patent/CN109885323B/en
Publication of CN109885323A publication Critical patent/CN109885323A/en
Application granted granted Critical
Publication of CN109885323B publication Critical patent/CN109885323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses an application program upgrading method, a mobile terminal and a readable storage medium, belonging to the technical field of software upgrading, wherein the method comprises the following steps: monitoring abnormal information of the application program; acquiring upgrading information of the application program under the condition that the abnormal information is monitored; and displaying the upgrading information in a preset interface. The embodiment of the invention can prompt the user to upgrade when the user really needs to upgrade, reduce the dislike of the user to the upgrade information, and prompt the upgrade information after the application is crashed, thereby facilitating the upgrade operation of the user based on the upgrade information, facilitating the operation of the user and improving the upgrade efficiency.

Description

Application program upgrading method, mobile terminal and readable storage medium
Technical Field
The present invention relates to the field of software upgrading technologies, and in particular, to an application program upgrading method, a mobile terminal, and a readable storage medium.
Background
With the popularization of mobile terminals, various application programs based on the mobile terminals appear, users can install the application programs into the mobile terminals according to the requirements of the users, and with the condition that the application programs need to be upgraded, such as new functions, the developers can upgrade new upgraded versions.
In the prior art, the upgrading methods of the application program of the mobile terminal include the following steps:
1. upgrading when entering the application: when a user just enters an application server end and is upgraded, the application can display a popup window to prompt the user to upgrade;
2. silent upgrade: when the user connects the network, the upgrade package is downloaded in a silent mode, and the user upgrade is provided after the download is completed.
The inventor finds that the upgrading mode has the following problems in the research process: 1. entering application upgrade and silent upgrade frequently prompts that a new version is available to a user, which easily causes the user to feel dislike, for example, the user feels that the currently used version is good and has no upgrade requirement temporarily; 2. in the above upgrading mode, when the application program is crashed, the application cannot be opened, and the upgrading cannot be prompted, so that the above upgrading actions cannot be realized.
Disclosure of Invention
The embodiment of the invention provides an application program upgrading method and device, and aims to solve the problems that frequent prompt upgrading easily causes user dislike and upgrading cannot be performed due to application program breakdown in the prior art.
According to a first aspect of an embodiment of the present invention,
an application program upgrading method is applied to a mobile terminal, and the method comprises the following steps:
monitoring abnormal information of the application program in operation;
under the condition that the abnormal information is monitored, obtaining upgrading information of the application program;
and under the condition that the upgrading is determined to be needed according to the upgrading information, displaying the upgrading information in a preset interface and prompting a user to upgrade the application program.
According to a second aspect of the embodiments of the present invention, there is provided a mobile terminal, including:
the monitoring module is used for monitoring abnormal information of the application program during running;
the obtaining module is used for obtaining the upgrading information of the application program under the condition that the abnormal information is monitored;
and the display module is used for displaying the upgrading information in a preset interface and prompting a user to upgrade the application program under the condition that the upgrading is determined to be needed according to the upgrading information.
According to a third aspect of the embodiments of the present invention, there is provided a mobile terminal, including a processor, a memory, and a computer program stored in the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the application program upgrading method according to the present invention.
According to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of an application program upgrading method according to the present invention.
The embodiment of the invention can prompt the user to upgrade when the user really needs to upgrade, reduce the dislike of the user to the upgrade information, and prompt the upgrade information after the application is crashed, thereby facilitating the upgrade operation of the user based on the upgrade information, facilitating the operation of the user and improving the upgrade efficiency.
Drawings
Fig. 1 is a flowchart illustrating steps of an application program upgrading method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another method for upgrading an application according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of another method for upgrading an application according to an embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of an application program upgrading method provided in an embodiment of the present invention is shown, and applied to a mobile terminal, the method may specifically include the following steps:
step 101, monitoring abnormal information of the application program in operation.
In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
In the embodiment of the invention, the application program of the mobile terminal may crash when being opened or in the using process, for example, the application program crashes due to application program logic problems, system resource problems and the like, and abnormal information is generated after the application program crashes based on the processing mechanism of the operating system of the mobile terminal, so that the embodiment of the invention can monitor the abnormal information of the application program. The exception information may include an exception type, stack top information, whether the exception problem was previously resolved, and so on. Of course, the exception information may also include information such as the program name of the application program and the current version information of the application program.
In the embodiment of the present invention, after receiving a trigger operation on an icon of an application program, monitoring exception information of the application program. It can be understood that the embodiment of the present invention monitors the abnormal information after the application program is started, where the abnormal information indicates that the application program is not started successfully, and a user cannot implement upgrading through operations in the application program.
And 102, acquiring the upgrading information of the application program under the condition of monitoring the abnormal information.
In the embodiment of the invention, after the application program crashes, under the condition that the abnormal information is monitored, according to the habit of the user, the condition that the user needs to upgrade can be considered, and the upgrading information of the application program can be obtained.
Of course, before obtaining the upgrade information of the application program, the timing of obtaining the upgrade information may be further determined, for example, when the mobile terminal is connected to a wireless network, such as wifi (wireless fidelity), and at this time, the upgrade information of the application program may be obtained from the server.
In the embodiment of the invention, the upgrading information of the application can be obtained in the server by sending the name of the crashed application program and the current version information of the application program to the server. The upgrade information may include information on a new version of the application program, and information on an access address of the new version.
Optionally, step 102 comprises:
under the condition that the abnormal information is monitored, acquiring the target frequency of continuous occurrence of the abnormal information; and acquiring the upgrading information of the application program under the condition that the target times are greater than a preset threshold value.
In the embodiment of the invention, the application program may not affect the next normal start after a single crash, if the application program can be normally started, the application program may not be the time of the upgrade which is most required by the user, in order to avoid the situation that the application program can be normally started after the crash, the embodiment of the invention can count the target times of the same abnormal information, and the upgrade information is obtained only when the target times is greater than the preset threshold value. For example, if the preset number of times is set to 3 times, if the same abnormal information occurs 3 times continuously, it can be determined that the application program cannot be started, which is a case that the application program needs to be upgraded.
In practical application, the order of the exception information is presented, the features of the exception information, such as at least one of the exception type, the stack top information, and whether the exception was resolved last time, can be compared, and when the features are compared, the number of times that the same exception information appears continuously is found to be greater than 3 times, the upgrade information of the application program can be obtained.
And 103, displaying the upgrading information in a preset interface and prompting a user to upgrade the application program under the condition that the upgrading is determined to be needed according to the upgrading information.
In the embodiment of the invention, after the upgrading information of the application program is acquired, the upgrading information of the application program can be displayed in a preset interface. Such as a pop-up window or a notification bar of the mobile terminal.
Preferably, after step 103, the method further comprises: receiving trigger operation of the upgrading information; and responding to the trigger operation, and acquiring an upgrading version according to the upgrading information to upgrade the application program.
In the embodiment of the invention, after the upgrade information of the application program is displayed in the notification bar or the pop-up window, a user can click the upgrade information, and after the mobile terminal receives the click operation, the mobile terminal can acquire the upgrade version of the application program from the server according to the download address corresponding to the upgrade information and then call the installation program of the mobile terminal to install the upgrade version, so that the upgrade of the application program is realized, the user can conveniently and quickly upgrade after the program is crashed, and the user operation is saved. .
In the embodiment of the invention, the abnormal information of the application program is monitored; under the condition that the abnormal information is monitored, obtaining upgrading information of the application program; the upgrading information is displayed in the preset interface, and in the embodiment of the invention, the application program is abnormal, which means that the application program really needs to be upgraded to solve the abnormality, so that the embodiment of the invention can prompt a user to upgrade when the user really needs to upgrade, reduce the dislike of the user to the upgrading information, and prompt the upgrading information after the application crashes, thereby facilitating the upgrading operation of the user based on the upgrading information, facilitating the operation of the user, improving the upgrading efficiency and improving the user experience.
Referring to fig. 2, a flowchart illustrating steps of an application program upgrading method provided in an embodiment of the present invention is shown, and applied to a mobile terminal, the method may specifically include the following steps:
step 201, calling a preset interface by a first process of the application program to acquire collapse information of the application program in the mobile terminal system; the preset interface comprises a code of a global collapse information acquisition interface of the mobile terminal system and a preset first exception handling function; .
In the embodiment of the invention, the upgrading process of the application program after the crash can be realized by the application program. Taking the android system as an example, a preset interface for the android system can be implemented in the application program to obtain crash information triggered after the mobile terminal system monitors that the application program crashes. The preset interface can be implemented by laying a class inheriting an original exception capture interface of the android system, such as thread. Such as an uncaughteexception function. After the first process of the application program crashes, the crash information can be obtained directly by calling the abnormal capturing method in the class.
Step 202, under the condition that the crash information is monitored, calling a first exception handling function through the preset interface, and acquiring the upgrading information of the application program from a server.
In the embodiment of the present invention, after the first process of the application program crashes and calls the preset interface to obtain the crash information, the operation of obtaining the upgrade information from the server may be executed by using the first exception handling function in the preset interface. In practical application, the first exception handling function may obtain an application program identifier and current version information, then send the application program identifier and the current version information to the server, and the server determines whether there is upgrade version information that is newer than the current version information according to the application program identifier and the current version information, and if so, returns the upgrade version information to the first exception handling function.
And 203, displaying the upgrading information in a popup window and prompting a user to upgrade the application program.
In the embodiment of the invention, after the mobile terminal acquires the upgrading information, the upgrading information is displayed to the user in a popup window mode and the user is prompted to upgrade the application program, and the user selects to upgrade the application program by clicking the upgrading information in the popup window.
In practical application, the display operation of the upgrade information, the click operation of receiving the user click upgrade information, and the automatic installation operation may be handled by the first exception handling function.
Of course, the upgrade information may also be displayed in the notification bar in the embodiment of the present invention.
In the embodiment of the invention, the application program can be improved, the monitoring of the abnormal information of the application program is realized, the upgrading information of the application program is obtained under the condition that the abnormal information is monitored, and the process of the upgrading information is displayed in the preset interface, so that a user can be prompted to upgrade when the user really needs upgrading, the user's dislike of the upgrading information is reduced, the upgrading information can be prompted after the application crashes, the user can conveniently perform upgrading operation based on the upgrading information, the user operation is facilitated, the upgrading efficiency is improved, and the user experience is improved.
Referring to fig. 3, a flowchart illustrating steps of an application program upgrading method provided in an embodiment of the present invention is shown, and applied to a mobile terminal, the method may specifically include the following steps:
step 301, monitoring the life cycle of each application program interface through an activity thread manager of the mobile terminal system; the lifecycle indicates that the application was not successfully launched.
In the embodiment of the invention, the operating system of the mobile terminal can be improved, for example, the logic of the active thread manager of the mobile terminal is changed, and logic for monitoring the life cycle of each application program interface is added. Taking the android system as an example, the active thread manager is activtythhread.
Taking the android system as an example, the lifecycle of the application program interface is a normal lifecycle process of Activity experience creation, operation, stop, destruction and the like under the condition that a user participates in the lifecycle.
In the embodiment of the present invention, the monitored lifecycle is a lifecycle of a main interface of an application program after the application program is started, and in actual application, the target lifecycle can be obtained to be stopped, and stopping the lifecycle indicates that the application program interface is not started successfully, which indicates that the application program is started abnormally.
It can be understood that the exception information of the application program in the embodiment of the present invention may also be a life cycle of an application program interface that is not successfully started.
Step 302, sending an upgrade prompt instruction to a target process under the condition of monitoring the life cycle; the upgrade prompt instruction comprises: program name of the application program and current version information of the application program;
then the active thread manager may send an upgrade hint instruction to the target process upon monitoring that the application program interface indicates that a successful lifecycle has not been initiated. The target process may be a system process of an operating system. The upgrade prompting instruction may include a program name of an application program and current version information of the application program. Then, after the target process receives the upgrade prompt instruction, the target process may obtain the upgrade information of the application program from the server according to the program name and the current version information in the upgrade prompt instruction.
Step 303, displaying the upgrade information in a notification bar of the system and prompting a user to upgrade the application program.
In the embodiment of the invention, a target process can display the upgrading of the application program in a notification bar of the system, and a user can upgrade the application program by clicking the upgrading information in the notification bar.
Of course, in the embodiment of the present invention, a popup may also be generated, and the upgrade information may be displayed in the popup.
In the embodiment of the invention, the improvement can be carried out from the aspect of an operating system, the monitoring of the abnormal information of the application program is realized, the upgrading information of the application program is obtained under the condition that the abnormal information is monitored, and the process of the upgrading information is displayed in the preset interface, so that a user can be prompted to upgrade when the user really needs upgrading, the countering feeling of the user to the upgrading information is reduced, the upgrading information can be prompted after the application crashes, the upgrading operation can be conveniently carried out by the user based on the upgrading information, the operation of the user is facilitated, the upgrading efficiency is improved, the user experience is improved, the application range of the crash upgrading strategy can be improved, and the crash upgrading strategy is not limited to single application.
It should be noted that for simplicity of description, the above method embodiments are described as a series of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a block diagram of a mobile terminal according to an embodiment of the present invention is shown, where the mobile terminal includes:
the monitoring module 401 is configured to monitor exception information during running of an application program;
an obtaining module 402, configured to obtain upgrade information of the application program when the abnormal information is monitored;
and a display module 403, configured to display the upgrade information in a preset interface and prompt a user to upgrade the application program when it is determined that upgrade is required according to the upgrade information.
Optionally, referring to fig. 5, the monitoring module 401 includes:
the calling submodule 4011 is configured to call a preset interface by a first process of the application program, and obtain crash information of the application program in the mobile terminal system; the preset interface comprises a code of a global collapse information acquisition interface of the mobile terminal system and a preset first exception handling function;
the obtaining module 402 includes:
the first obtaining sub-module 4021 is configured to, when the crash information is monitored, call a first exception handling function through the preset interface, and obtain the upgrade information of the application program from the server.
Alternatively, referring to fig. 5, the display module 403 includes:
and the first display submodule 4031 is used for displaying the upgrade information in a popup window.
Optionally, referring to fig. 6, the monitoring module 401 includes:
the monitoring submodule 4012 is configured to monitor a life cycle of each application program interface through an active thread manager of the mobile terminal system; the lifecycle represents that the application was not launched successfully;
optionally, referring to fig. 6, the obtaining module 402 includes:
the sending submodule 4022 is configured to send an upgrade prompt instruction to the target process when the life cycle is monitored; the upgrade prompt instruction comprises: program name of the application program and current version information of the application program;
the second obtaining sub-module 4023 is configured to obtain, by the target process, the upgrade information of the application program from the server according to the program name and the current version information in the upgrade prompt instruction.
Alternatively, referring to fig. 6, the display module 403 includes:
a second display sub-module 4032, configured to display the upgrade information in a notification bar of the system.
Optionally, the obtaining module 401 includes:
the third acquisition submodule is used for acquiring the target times of continuous occurrence of the abnormal information under the condition that the abnormal information is monitored;
and the fourth obtaining submodule is used for obtaining the upgrading information of the application program under the condition that the target times are greater than a preset threshold value.
Optionally, the mobile terminal further includes:
the receiving module is used for receiving the trigger operation of the upgrading information;
and the response module is used for responding to the trigger operation and acquiring an upgrading version according to the upgrading information to upgrade the application program.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
Figure 7 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and a power supply 711. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to monitor exception information of an application program; under the condition that the abnormal information is monitored, obtaining upgrading information of the application program and displaying the upgrading information, and under the condition that the abnormal information is monitored, obtaining upgrading information of the application program; and displaying the upgrading information in a preset interface.
In the embodiment of the invention, the abnormal information of the application program is monitored; under the condition that the abnormal information is monitored, obtaining upgrading information of the application program; the upgrading information is displayed in the preset interface, and in the embodiment of the invention, the application program is abnormal, which means that the application program really needs to be upgraded to solve the abnormality, so that the embodiment of the invention can prompt a user to upgrade when the user really needs to upgrade, reduce the dislike of the user to the upgrading information, and prompt the upgrading information after the application crashes, thereby facilitating the upgrading operation of the user based on the upgrading information, facilitating the operation of the user, improving the upgrading efficiency and improving the user experience.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio unit 701 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 1041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the mobile terminal 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 700 or may be used to transmit data between the mobile terminal 700 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the foregoing upgrade information display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned application program upgrading method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. An application program upgrading method applied to a mobile terminal is characterized by comprising the following steps:
monitoring abnormal information of an application program in operation;
acquiring upgrading information of the application program under the condition that the abnormal information is monitored;
under the condition that upgrading is needed according to the upgrading information, displaying the upgrading information in a preset interface and prompting a user to upgrade the application program;
the monitoring application program exception information comprises:
calling a preset interface by a first process of the application program to acquire collapse information of the application program in the mobile terminal system; the preset interface comprises a code of a global collapse information acquisition interface of the mobile terminal system and a preset first exception handling function; the first exception handling function is used for acquiring the crash information and executing the operation of acquiring the upgrading information from the server according to the application program identifier and the current version information;
the obtaining of the upgrade information of the application program under the condition of monitoring the abnormal information includes:
and under the condition that the crash information is monitored, calling a first exception handling function through the preset interface, and acquiring the upgrading information of the application program from the server.
2. The method of claim 1, wherein monitoring exception information during application program operation comprises:
monitoring the life cycle of each application program interface through an activity thread manager of the mobile terminal system; the life cycle represents that the application program is not started successfully;
the obtaining of the upgrade information of the application program under the condition of monitoring the abnormal information includes:
sending an upgrade prompt instruction to a target process under the condition that the life cycle is monitored; the upgrade prompt instruction comprises: program name of the application program and current version information of the application program;
and the target process acquires the upgrading information of the application program from a server according to the program name and the current version information in the upgrading prompt instruction.
3. The method according to claim 1, wherein the obtaining upgrade information of the application program in case of monitoring the exception information comprises:
under the condition that the abnormal information is monitored, acquiring the target frequency of continuous occurrence of the abnormal information;
and acquiring the upgrading information of the application program under the condition that the target times are greater than a preset threshold value.
4. A mobile terminal, characterized in that the mobile terminal comprises:
the monitoring module is used for monitoring abnormal information of the application program during running;
the obtaining module is used for obtaining the upgrading information of the application program under the condition that the abnormal information is monitored;
the display module is used for displaying the upgrading information in a preset interface and prompting a user to upgrade the application program under the condition that the upgrading is determined to be needed according to the upgrading information;
the monitoring module includes:
the calling submodule is used for calling a preset interface by a first process of the application program to acquire the crash information of the application program in the mobile terminal system; the preset interface comprises a code of a global collapse information acquisition interface of the mobile terminal system and a preset first exception handling function; the first exception handling function is used for acquiring the crash information and executing the operation of acquiring the upgrading information from the server according to the application program identifier and the current version information;
the acquisition module includes:
and the first obtaining submodule is used for calling a first exception handling function through the preset interface under the condition that the crash information is monitored, and obtaining the upgrading information of the application program from the server.
5. The mobile terminal of claim 4, wherein the monitoring module comprises:
the monitoring submodule is used for monitoring the life cycle of each application program interface through an active thread manager of the mobile terminal system; the life cycle represents that the application program is not successfully started;
the acquisition module includes:
the sending submodule is used for sending an upgrading prompt instruction to the target process under the condition of monitoring the life cycle; the upgrade prompt instruction comprises: program name of the application program and current version information of the application program;
and the second obtaining submodule is used for obtaining the upgrading information of the application program from a server by the target process according to the program name and the current version information in the upgrading prompt instruction.
6. The mobile terminal of claim 4, wherein the obtaining module comprises:
the third obtaining submodule is used for obtaining the target frequency of continuous occurrence of the abnormal information under the condition that the abnormal information is monitored;
and the fourth obtaining submodule is used for obtaining the upgrading information of the application program under the condition that the target times are greater than a preset threshold value.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of a method for application upgrade as claimed in any one of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of a method for application upgrade of one of the claims 1 to 3.
CN201910109036.6A 2019-02-03 2019-02-03 Application program upgrading method, mobile terminal and readable storage medium Active CN109885323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910109036.6A CN109885323B (en) 2019-02-03 2019-02-03 Application program upgrading method, mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910109036.6A CN109885323B (en) 2019-02-03 2019-02-03 Application program upgrading method, mobile terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN109885323A CN109885323A (en) 2019-06-14
CN109885323B true CN109885323B (en) 2022-06-24

Family

ID=66927741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910109036.6A Active CN109885323B (en) 2019-02-03 2019-02-03 Application program upgrading method, mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN109885323B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282311A (en) * 2020-02-19 2021-08-20 北京小米移动软件有限公司 System upgrading method and device and storage medium
CN113568770B (en) * 2020-04-29 2024-08-27 阿里巴巴集团控股有限公司 Emergency rescue method of real-time operating system, electronic equipment and computer storage medium
CN111901686B (en) * 2020-08-03 2022-04-08 海信视像科技股份有限公司 Method for keeping normal display of user interface stack and display equipment
CN114579389A (en) * 2020-11-30 2022-06-03 花瓣云科技有限公司 Application management method, device, equipment and storage medium
CN113434233B (en) * 2021-06-28 2023-10-24 青岛海尔科技有限公司 Interface jump method and device, storage medium and electronic device
CN117729561A (en) * 2023-06-29 2024-03-19 荣耀终端有限公司 System upgrading method, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365732A (en) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Method and system for processing application program exception and mobile terminal
KR20140069936A (en) * 2012-11-30 2014-06-10 주식회사 알투소프트 Method for upgrading hypervisor component and system thereof
CN106844074A (en) * 2015-12-03 2017-06-13 小米科技有限责任公司 The method and apparatus of more new application
CN108829416A (en) * 2018-05-30 2018-11-16 维沃移动通信有限公司 A kind of upgrading recommended method, server and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365732A (en) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Method and system for processing application program exception and mobile terminal
KR20140069936A (en) * 2012-11-30 2014-06-10 주식회사 알투소프트 Method for upgrading hypervisor component and system thereof
CN106844074A (en) * 2015-12-03 2017-06-13 小米科技有限责任公司 The method and apparatus of more new application
CN108829416A (en) * 2018-05-30 2018-11-16 维沃移动通信有限公司 A kind of upgrading recommended method, server and terminal

Also Published As

Publication number Publication date
CN109885323A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109885323B (en) Application program upgrading method, mobile terminal and readable storage medium
CN108845853B (en) Application program starting method and mobile terminal
CN107967153B (en) Application program management method and mobile terminal
CN107861730B (en) Application processing method and mobile terminal
CN108391008B (en) Message reminding method and mobile terminal
CN109560591B (en) Charging method, device and terminal
CN108111676B (en) Application program control method, mobile terminal and computer readable storage medium
CN110471559B (en) False touch prevention method and mobile terminal
CN108270870B (en) Prompt message pushing method and device
CN110308834B (en) Setting method of application icon display mode and terminal
CN110780940A (en) Application program loading method, electronic device and storage medium
CN110058836A (en) A kind of output method and terminal device of audio signal
CN108009031B (en) Application program control method and mobile terminal
CN110597437A (en) Screen capturing method and terminal equipment
CN111522575B (en) Application program upgrading method and electronic equipment
CN108388400B (en) Operation processing method and mobile terminal
CN110995924B (en) Account management method and electronic equipment
CN109408080A (en) A kind of method and terminal of application upgrade
CN111562959A (en) Icon management method and electronic equipment
CN111309390A (en) Method for acquiring configuration information and electronic equipment
CN108491125B (en) Operation control method of application store and mobile terminal
CN108089935B (en) Application program management method and mobile terminal
CN111443847B (en) Push message processing method and electronic equipment
CN111310165B (en) Account switching or registering method and electronic equipment
CN110471682B (en) Application program updating method and mobile terminal

Legal Events

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