CN111124753A - Application program control method, electronic equipment and server - Google Patents

Application program control method, electronic equipment and server Download PDF

Info

Publication number
CN111124753A
CN111124753A CN201911134367.1A CN201911134367A CN111124753A CN 111124753 A CN111124753 A CN 111124753A CN 201911134367 A CN201911134367 A CN 201911134367A CN 111124753 A CN111124753 A CN 111124753A
Authority
CN
China
Prior art keywords
version
application program
identifier corresponding
target application
user data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911134367.1A
Other languages
Chinese (zh)
Inventor
吴佳颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201911134367.1A priority Critical patent/CN111124753A/en
Publication of CN111124753A publication Critical patent/CN111124753A/en
Priority to PCT/CN2020/115647 priority patent/WO2021098360A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1487Generic software techniques for error detection or fault masking using N-version programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level

Landscapes

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

Abstract

The invention discloses an application program control method, electronic equipment and a server, wherein the application program control method comprises the following steps: installing target application programs of a first version and a second version, and displaying a mark corresponding to the first version at a target position of a desktop, wherein the first version is higher than the second version; when the first version meets a preset condition, replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version; receiving a first input of a user to the identifier corresponding to the second version; in response to the first input, launching the second version of the target application. According to the embodiment of the invention, the same application program with different versions is installed at different positions of the electronic equipment, the stable version is replaced when the current online version has a bug, a user can be instantly and seamlessly switched to the application program with the stable version, the version rollback of the application program can be realized without downloading, installing and other processes, and the user experience is improved.

Description

Application program control method, electronic equipment and server
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an application control method, an electronic device, and a server.
Background
At present, the number of apps (Application programs) in the mobile phone market is more and more, the iterative updating speed of App versions is faster and faster, and internet companies tend to be more prone to version sending speed when the version sending speed and the version sending quality are balanced, although each version passes through a corresponding test flow, some online bugs inevitably occur, and especially when the apps have serious problems to be solved quickly, the versions of the apps may need to be backed; however, due to the inflexibility of client versions, application version rollback tends to be inconvenient.
Disclosure of Invention
The invention provides an application program control method, electronic equipment and a server, and aims to solve the problem that an application program version is inconvenient to rollback.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an application control method, which is applied to an electronic device, and the method includes:
installing a target application program of a first version and a second version, and displaying an identifier corresponding to the first version at a target position of a desktop, wherein the first version is higher than the second version;
when the first version meets a preset condition, replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version;
receiving a first input of a user to the identifier corresponding to the second version;
in response to the first input, launching the second version of the target application.
In a second aspect, an embodiment of the present invention further provides an application program control method, which is applied to a server, and the method includes:
acquiring a version rollback request message for a first version of a target application program;
according to the request message, sending version rollback indication information and key user data information to the electronic equipment;
the key user data information comprises a key user data file name and a file path.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
the program installation module is used for installing target application programs of a first version and a second version and displaying an identifier corresponding to the first version at a target position of a desktop, wherein the first version is higher than the second version;
the replacing module is used for replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version when the first version meets the preset condition;
the first receiving module is used for receiving first input of the identifier corresponding to the second version by a user;
a first response module to launch the second version of the target application in response to the first input.
In a fourth aspect, an embodiment of the present invention further provides a server, including:
the first acquisition module is used for acquiring a version rollback request message of a target application program of a first version;
the first sending module is used for sending first version rollback indication information and key user data information to the electronic equipment according to the request message;
the key user data information comprises a key user data file name and a file path.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the application control method applied to the electronic device.
In a sixth aspect, an embodiment of the present invention further provides a server, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the application control method applied to the server.
In a seventh aspect, 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 being executed by a processor, the computer program implements the steps of the application control method described above.
In the embodiment of the invention, the same application programs with two different versions are installed at different positions of the electronic equipment, when the application program with the current online version has a bug in the using process, the electronic equipment replaces the version with the bug with another stable version according to the indication information, a user can instantly and seamlessly switch to the application program with the stable version, the version rollback of the application program can be realized without downloading, installing and other processes, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of an application control method according to an embodiment of the present invention;
FIG. 2 is a second flowchart of an application control method according to an embodiment of the present invention;
FIG. 3 is a third flowchart illustrating an application control method according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart illustrating an application control method according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
FIG. 6 is a schematic diagram of a server according to an embodiment of the present invention;
fig. 7 is a schematic diagram showing a hardware configuration of an electronic device 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.
As shown in fig. 1, an embodiment of the present invention provides an application control method applied to an electronic device, including:
step 101, installing a target application program of a first version and a target application program of a second version, and displaying an identifier corresponding to the first version at a target position of a desktop, wherein the first version is higher than the second version;
in this embodiment, when a user installs the target application program on the electronic device, the electronic device obtains an installation package of the target application program and can obtain installation packages of different versions of the same target application program, optionally, the installation package of the target application program of the first version is an online version installation package, and then the target application program of the first version is an online version selected by the user and may be a current latest version of the target application program; and if the installation package of the target application program of the second version is a stable version installation package, the target application program of the second version is a stable version selected by the user.
After the electronic device obtains the installation packages of the target application programs of the two versions, the two versions are installed at different installation positions, the target application program of the first version can be installed in a default installation path of the electronic device, and the target application program of the second version can be installed in a sandbox of the electronic device.
After the target application program of the first version is installed, displaying an identifier corresponding to the first version at a target position of a desktop of the electronic equipment; and the target position does not display the identifier corresponding to the second version.
Taking the target application program of the first version as the online version selected by the user and the target application program of the second version as the stable version selected by the user as an example, it should be noted that when the user upgrades the online version of the target application program through the application store, the electronic device updates the stable version of the target application program installed at the second location at the same time.
Step 102, when the first version meets a preset condition, replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version;
when the first version meets a preset condition, the running of the application program of the first version is indicated to have a problem, or a developer or a user of the target application program has a version rollback requirement, wherein the preset condition is a trigger condition for triggering the version rollback of the target application program. And when the first version meets the preset condition, replacing the currently displayed identifier corresponding to the first version with the identifier corresponding to the second version, so that the user can operate the target application program by operating the identifier corresponding to the second version.
It should be noted that, when replacing the identifier of the target application program, if the identifier corresponding to the first version is the same as the identifier corresponding to the second version, only the application program link corresponding to the identifier needs to be replaced, and the display content of the identifier does not need to be modified; if the identifier corresponding to the first version is different from the identifier corresponding to the second version, the display content of the identifier and the corresponding application program link are required to be replaced completely, so that the target application program of the second version is started when the user clicks the replaced identifier.
When the identifier corresponding to the first version is the same as the identifier corresponding to the second version, because the display content of the identifier is the same, the version of the target application program corresponding to the identifier needs to be determined according to the version of the target application program started after the identifier is clicked by the user, that is, when the identifier is clicked by the user, the started target application program is the first version, and the previously clicked identifier is regarded as the identifier of the first version; when the user clicks the identifier, the target application program of the second version is started, and the previously clicked identifier is regarded as the identifier of the second version.
103, receiving a first input of the identifier corresponding to the second version by the user;
the first input may be a touch operation of a user on the identifier corresponding to the second version. And after the identifier displayed at the target position is replaced by the identifier corresponding to the second version, the target application program of the first version cannot be operated, and then the user can operate the identifier of the second version to realize the operation on the target application program.
And 104, responding to the first input, and starting the target application program of the second version.
And after the electronic equipment acquires the first input of the identifier corresponding to the second version by the user, and the electronic equipment starts the target application program of the second version for the user to operate if the user needs to open the target application program.
It should be noted that, after replacing the identifier corresponding to the first version with the identifier corresponding to the second version, the target application program of the first version may be uninstalled, or may not be uninstalled, but only the identifier corresponding to the first version is hidden, so that the user cannot perform corresponding operations. And if the target application program of the first version is uninstalled, the first installation package may or may not be deleted. In this way, the identifier of the target application of the second version replaces the identifier of the target application of the first version that is displayed originally, and the user can use the target application by operating the identifier of the second version.
In the embodiment, the same application programs of two different versions are installed at different positions of the electronic equipment, when a bug occurs in the application program using process of the current online version, the electronic equipment replaces the version with another stable version according to the indication information, a user can instantly and seamlessly switch to the application program with the stable version, the version of the application program can be rolled back without downloading, installing and other processes, and user experience is improved.
Optionally, when the user installs the target application on the electronic device, the electronic device needs to first obtain an installation package of the target application, for example: when a user enters an application store, selects a target application program to be downloaded or updated, and clicks an installation button, the electronic device detects whether a network environment where the electronic device is currently located and a storage space of the electronic device meet application program installation requirements, for example: the electronic equipment is currently located in a wifi network, the storage space of the electronic equipment is sufficient, and the electronic equipment is considered to meet the installation requirement. And under the condition that the installation requirement is met, sending an application program package acquisition request to a background server of the application store, namely requesting to download the selected installation package of the target application program, wherein the installation package of the target application program comprises a first version of installation package of the target application program and a second version of installation package of the target application program. And the server sends the installation package to the electronic equipment according to the acquisition request so that the electronic equipment installs the target application program.
In this embodiment, when receiving the installation package acquisition request of the electronic device, the server directly sends an installation package of a target application program including two different versions to the electronic device, where one of the two installation packages is used as an online version of the application program and displayed on a target location of the electronic device, such as a desktop, for a user to use, and the other installation package is used as a standby stable version, and the identifier of the other installation package is not displayed for the user to use when the online version has a bug, so that the user can instantly and seamlessly switch to the application program of the stable version, and user experience is improved.
Optionally, the first version meets a preset condition, and specifically includes:
and the target application program of the first version receives version rollback indication information and key user data information sent by a server, wherein the key user data information comprises a key user data file name and a file path.
In this embodiment, after receiving the version rollback instruction information sent by the server, the electronic device completes replacement of the identifier corresponding to the first version and the identifier corresponding to the second version according to the instruction information. The server sends key user data information while sending the version rollback instruction information, wherein the version rollback instruction information is used for instructing the electronic equipment to actively perform version rollback; the key user data information provides a directory and a storage path of user key data for the electronic equipment, so that the electronic equipment can back up the key data.
Further, before the target application of the first version receives the version rollback indication information and the key user data information sent by the server, the method may further include:
receiving a second input of the user; in response to the second input, sending a first request message to a server; the version rollback indication information and the key user data information are sent to the electronic equipment by the server in response to the first request message.
In this embodiment, the second input may be an operation of a corresponding button representing a version rollback function when the user intends to rollback a version of an application. For example: setting a 'version rollback' button similar to an 'installation' button under an application program icon of an application store, and when a user clicks the 'version rollback' button, sending a first request message to a background server of the application store by the electronic equipment to request the application program version to rollback; and after receiving the first request message, the server confirms whether the request is approved or not, and if so, the server sends the version rollback indication information and the key user data information to the electronic equipment.
It should be noted that, in this embodiment, the user actively applies for the version rollback to the server through the electronic device, the version rollback of the application program may also be applied to the server for a developer of the application program, and then the server sends the version rollback instruction information and the key user data information to the electronic device.
Optionally, the first version meets a preset condition, and specifically includes: a target function of the first version of the target application is running incorrectly.
In this embodiment, when an error (for example, a program crash) occurs in the operation of the target application program of the first version, or when an operation problem occurs in a certain target function, it may also be considered that the target application program of the first version needs to be version rolled back, and then the identifier corresponding to the first version displayed in the target position is replaced with the identifier corresponding to the second version, so that when an operation problem occurs in the target application program, the version with a bug is replaced with another stable version, and a user may instantly and seamlessly switch to the application program of the stable version, and the version rolling back of the application program may be implemented without downloading, installing, and the like, thereby improving user experience.
Optionally, the step 102 may include:
when the first version meets a preset condition, backing up user data of the target application program of the first version;
when the target application program of the first version meets the preset condition, the electronic device receives version rollback indication information and key user data information sent by the server, backups key data (such as account names, passwords, search records, download records and the like) in the key user data information according to the key user data information, and stores the backed up key data in the installation directory of the target application program of the second version, so that when a user uses the target application program of the second version, the use of the target application program of the second version cannot be influenced by data loss.
And unloading the target application program of the first version, and replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version.
And after the electronic equipment completes the backup of the user data, the target application program of the first version is unloaded, the identification of the target position displayed on the electronic equipment is replaced by the identification of the target application program of the second version, and then the user can continue to normally use the target application program.
Because the target application program of the first version and the target application program of the second version are the same application program of different versions, when a bug occurs in the first version, the electronic equipment unloads the first version according to the indication information, and replaces the identifier corresponding to the first version displayed in the target position with the identifier corresponding to the second version, so that a user can instantly and seamlessly switch to the application program of the stable version, the version rollback of the application program can be realized without downloading, installing and other processes, and the user experience is improved.
As shown in fig. 2, an embodiment of the present invention further provides an application program control method, which is applied to a server, and the method includes:
step 201, a version rollback request message for the target application program of the first version is obtained.
The version rollback request message may be sent by the user through the electronic device or requested by the developer of the application program. When the version rollback request message is sent by the user through the electronic device, the user may apply for the version rollback function by operating a corresponding button on the electronic device, for example: a "rollback" button, similar to the "install" button, is provided under the application icon of the application store, and the user clicks the "rollback" button, the electronic device sends a rollback request message to the server.
When the version rollback request is the request of the developer of the application program, the developer of the application program applies for the rollback of the version of the client side of the application program on the electronic equipment to the server when finding that the current online version application program has a bug.
When the target application program is installed on the electronic equipment by the user, the server sends the application program installation package containing two different versions to the electronic equipment so that the user can install the target application program. Optionally, the installation package of the target application program of the first version is an online version installation package, and the target application program of the first version is an online version selected by a user, and may be a current latest version of the target application program; and if the installation package of the target application program of the second version is a stable version installation package, the target application program of the second version is a stable version selected by the user.
Optionally, the version rollback function of the application requires that a developer of the application applies for the application to the server, and after the server agrees, the operation buttons of the corresponding functions may be displayed on the client of the application. And uploading the installation packages of the application programs of different versions to the server by the developers of the application programs.
Step 202, sending version rollback instruction information and key user data information to the electronic equipment according to the request message; the key user data information comprises a key user data file name and a file path.
And after the server acquires the version rollback request message, if the server agrees to the version rollback of the application program, sending version rollback indication information and key user data information to the electronic equipment. The version rollback instruction information is used for instructing the electronic equipment to perform installation switching of the application programs, so that the electronic equipment unloads the currently installed target application program of the first version, and displays the identifier of the target application program of the second version at the target position of the electronic equipment for normal use by a user.
According to the embodiment of the invention, because the target application program of the first version and the target application program of the second version are the same application program of different versions, when the first version is vulnerable, the server sends the indication information to the electronic equipment, so that the electronic equipment unloads the application program of the first version, replaces the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version, and enables a user to switch to the application program of the stable version instantly and seamlessly without downloading, installing and other processes, the version rollback of the application program can be realized, and the user experience is improved.
Further, the step 201 may include:
acquiring a first request message sent by the electronic equipment; or acquiring a second request message sent by the application program developer.
The first request message is a request message for a user to apply for version rollback from the server through electronic equipment, and the second request message is a request message for an application developer to apply for version rollback from the server.
It should be noted that, when the version rollback request message is a first request message sent by the electronic device, the server sends the version rollback instruction information and the key user data information to the electronic device, only the electronic device performs the version rollback operation of the application program, and other electronic devices installed with the application program do not perform the version rollback; and when the version rollback request message is a second request message sent by an application program developer, the server sends the version rollback instruction information and the key user data information to all the electronic equipment provided with the application program, and all the electronic equipment provided with the application program performs version rollback operation.
Specifically, the key user data information includes a key user data file name and a file path. The version rollback indication information is used for indicating the electronic equipment to actively perform version rollback; the key user data information provides a directory and a storage path of user key data for the electronic equipment, so that the electronic equipment can back up the key data. And the key user data information is set for the developer of the application program and uploaded to the server, and when the developer updates the application program installation packages of different versions, the key user data information required by version rollback is updated simultaneously.
The following describes specific steps of the application control method when the version rollback request message is sent by a user through an electronic device and sent by an application developer through specific embodiments, with reference to the accompanying drawings.
As shown in fig. 3, taking the target application program of the first version as an online version and the target application program of the second version as a stable version as an example, at the electronic device end, if the user downloads or updates the application program through an application store, the electronic device detects whether the network and the storage space meet the conditions; at a server side, a developer applies for a version rollback function, issues a first installation package and a second installation package of different versions, and sets key user data information; when a user requests to download or update a target application program, the first installation package and the second installation package are issued; when the condition is met, the electronic equipment side installs the target application program of the first version at a default first position and installs the target application program of the second version at a second position (such as a sandbox); the method comprises the steps that a user applies for version rollback through electronic equipment, a server receives a version rollback request message sent by the electronic equipment, and sends version rollback indication information and key user data information; the electronic equipment receives the version rollback indication information and backups key user data; the electronic equipment unloads the target application program of the first version, replaces the identifier corresponding to the first version with the identifier corresponding to the second version, and then recovers key user data, so that the user can normally use the target application program of the second version; and resetting the key user data information when the developer of the application program updates the first installation package and the second installation package. The embodiment is an implementation process of the application control method when the user applies for the rollback of the version through the electronic device.
As shown in fig. 4, at the electronic device, if the user downloads or updates the application program through the application program store, the electronic device detects whether the network and the storage space satisfy the condition; at a server side, a developer applies for a version rollback function, issues a first installation package and a second installation package of different versions, and sets key user data information; when a user requests to download or update an application program, the first installation package and the second installation package are issued; when the condition is met, the electronic equipment side installs the target application program of the first version at a default first position and installs the target application program of the second version at a second position (such as a sandbox); the method comprises the steps that a developer of an application program applies for version rollback to a server, the server receives a version rollback request message of the developer and sends version rollback indication information and key user data information; the electronic equipment receives the version rollback indication information and backups key user data; the electronic equipment unloads the target application program of the first version, replaces the identifier corresponding to the first version with the identifier corresponding to the second version, and then recovers key user data, so that the user can normally use the target application program of the second version; and resetting the key user data information when the developer of the application program updates the first installation package and the second installation package. The embodiment is an implementation process of the application control method when the application developer applies for the rollback of the version.
According to the embodiment of the invention, because the target application program of the first version and the target application program of the second version are the same application program of different versions, when the first version is vulnerable, the server sends the indication information to the electronic equipment, so that the electronic equipment unloads the first version, and replaces the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version, so that a user can instantly and seamlessly switch to the application program of the stable version, and the version rollback of the application program can be realized without downloading, installing and other processes, and the user experience is improved.
As shown in fig. 5, an embodiment of the present invention further provides an electronic device 500, including:
a program installation module 501, configured to install a first version and a second version of a target application program, and display an identifier corresponding to the first version at a target location of a desktop, where the first version is higher than the second version;
a replacing module 502, configured to replace, when the first version meets a preset condition, an identifier corresponding to the first version displayed at the target location with an identifier corresponding to the second version;
a first receiving module 503, configured to receive a first input of an identifier corresponding to the second version by a user;
a first response module 504, configured to launch the second version of the target application in response to the first input.
Optionally, the first version meets a preset condition, and specifically includes:
and the target application program of the first version receives version rollback indication information and key user data information sent by a server, wherein the key user data information comprises a key user data file name and a file path.
Optionally, the electronic device further comprises:
the second receiving module is used for receiving a second input of the user;
a second response module for sending a first request message to the server in response to the second input;
the version rollback indication information and the key user data information are sent to the electronic equipment by the server in response to the first request message.
Optionally, the first version meets a preset condition, and specifically includes:
a target function of the first version of the target application is running incorrectly.
Optionally, the replacing module 502 includes:
the data backup unit is used for backing up the user data of the target application program of the first version when the first version meets a preset condition;
and the first processing unit is used for unloading the application program of the first version and replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
According to the embodiment of the invention, the same application programs with two different versions are installed at different positions of the electronic equipment, when a bug occurs in the using process of the application program of the current online version, the electronic equipment replaces the version with the other stable version according to the indication information, a user can instantly and seamlessly switch to the application program of the stable version, the version rollback of the application program can be realized without downloading, installing and other processes, and the user experience is improved.
As shown in fig. 6, an embodiment of the present invention further provides a server 600, including:
a first obtaining module 601, configured to obtain a version rollback request message for a first version of a target application;
a first sending module 602, configured to send, according to the request message, first version rollback instruction information and key user data information to an electronic device;
the key user data information comprises a key user data file name and a file path.
Optionally, the first obtaining module 601 includes:
the first acquiring unit is used for acquiring a first request message sent by the electronic equipment;
or
And acquiring a second request message sent by the application program developer.
The server provided by the embodiment of the present invention can implement each process implemented by the server in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
According to the embodiment of the invention, because the target application program of the first version and the target application program of the second version are the same application program of different versions, when the first version is vulnerable, the server sends the indication information to the electronic equipment, so that the electronic equipment unloads the first version, and replaces the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version, so that a user can instantly and seamlessly switch to the application program of the stable version, and the version rollback of the application program can be realized without downloading, installing and other processes, and the user experience is improved.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 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, a power supply 711, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The processor 710 is configured to install a first version and a second version of a target application, and display an identifier corresponding to the first version at a target location of a desktop, where the first version is higher than the second version; when the first version meets a preset condition, replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version;
the radio frequency unit 701 is configured to receive a first input of an identifier corresponding to the second version from a user; the processor 710 launches the second version of the target application in response to the first input.
In the embodiment of the invention, the same application programs with two different versions are installed at different positions of the electronic equipment, when the application program with the current online version has a bug in the using process, the electronic equipment replaces the version with the bug with another stable version according to the indication information, a user can instantly and seamlessly switch to the application program with the stable version, the version rollback of the application program can be realized without downloading, installing and other processes, and the user experience is improved.
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 frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing 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 electronic apparatus 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) 7041 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 706. 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 electronic device 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 electronic device 700 is moved to the ear. As one type of motion sensor, an 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 an electronic device (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 electronic device. 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 7061 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 electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the electronic apparatus 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 an external device and transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit data between the electronic apparatus 700 and the external device.
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 electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby monitoring the whole electronic device. 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 electronic device 700 may also include a power supply 711 (e.g., a battery) for providing power to the various components, and preferably, the power supply 711 may be logically coupled to the processor 710 via a power management system, such that functions of managing charging, discharging, and power consumption may be performed via the power management system.
In addition, the electronic device 700 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements each process of the embodiment of the application program control method applied to the electronic device, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
Preferably, an embodiment of the present invention further provides a server, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above-mentioned application program control method applied to the server, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
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 control 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 an electronic device (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 (17)

1. An application control method applied to an electronic device, the method comprising:
installing a target application program of a first version and a second version, and displaying an identifier corresponding to the first version at a target position of a desktop, wherein the first version is higher than the second version;
when the first version meets a preset condition, replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version;
receiving a first input of a user to the identifier corresponding to the second version;
in response to the first input, launching the second version of the target application.
2. The method according to claim 1, wherein the first version satisfies a predetermined condition, and specifically includes:
and the target application program of the first version receives version rollback indication information and key user data information sent by a server, wherein the key user data information comprises a key user data file name and a file path.
3. The method of claim 2, wherein before the target application of the first version receives the server-sent version rollback indication information and the key user data information, the method further comprises:
receiving a second input of the user;
in response to the second input, sending a first request message to a server;
the version rollback indication information and the key user data information are sent to the electronic equipment by the server in response to the first request message.
4. The method according to claim 1, wherein the first version satisfies a predetermined condition, and specifically includes:
a target function of the first version of the target application is running incorrectly.
5. The method for controlling an application program according to claim 1, wherein when the first version meets a preset condition, replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version specifically includes:
when the first version meets a preset condition, backing up user data of the target application program of the first version;
and unloading the target application program of the first version, and replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version.
6. An application control method applied to a server, the method comprising:
acquiring a version rollback request message for a first version of a target application program;
according to the request message, sending version rollback indication information and key user data information to the electronic equipment;
the key user data information comprises a key user data file name and a file path.
7. The method of claim 6, wherein obtaining a version rollback request message for a first version of a target application comprises:
acquiring a first request message sent by the electronic equipment;
or
And acquiring a second request message sent by the application program developer.
8. An electronic device, comprising:
the program installation module is used for installing target application programs of a first version and a second version and displaying an identifier corresponding to the first version at a target position of a desktop, wherein the first version is higher than the second version;
the replacing module is used for replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version when the first version meets the preset condition;
the first receiving module is used for receiving first input of the identifier corresponding to the second version by a user;
a first response module to launch the second version of the target application in response to the first input.
9. The electronic device according to claim 8, wherein the first version satisfies a preset condition, and specifically includes:
and the target application program of the first version receives version rollback indication information and key user data information sent by a server, wherein the key user data information comprises a key user data file name and a file path.
10. The electronic device of claim 9, further comprising:
the second receiving module is used for receiving a second input of the user;
a second response module for sending a first request message to the server in response to the second input;
the version rollback indication information and the key user data information are sent to the electronic equipment by the server in response to the first request message.
11. The electronic device according to claim 8, wherein the first version satisfies a preset condition, and specifically includes:
a target function of the first version of the target application is running incorrectly.
12. The electronic device of claim 8, wherein the replacement module comprises:
the data backup unit is used for backing up the user data of the target application program of the first version when the first version meets a preset condition;
and the first processing unit is used for unloading the application program of the first version and replacing the identifier corresponding to the first version displayed at the target position with the identifier corresponding to the second version.
13. A server, comprising:
the first acquisition module is used for acquiring a version rollback request message of a target application program of a first version;
the first sending module is used for sending first version rollback indication information and key user data information to the electronic equipment according to the request message;
the key user data information comprises a key user data file name and a file path.
14. The server according to claim 13, wherein the first obtaining module comprises:
the first acquiring unit is used for acquiring a first request message sent by the electronic equipment;
or
And acquiring a second request message sent by the application program developer.
15. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the application control method according to any one of claims 1 to 5.
16. A server, characterized by comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the application control method according to any one of claims 6 to 7.
17. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the application control method according to one of the claims 1 to 5 or of the application control method according to one of the claims 6 to 7.
CN201911134367.1A 2019-11-19 2019-11-19 Application program control method, electronic equipment and server Pending CN111124753A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911134367.1A CN111124753A (en) 2019-11-19 2019-11-19 Application program control method, electronic equipment and server
PCT/CN2020/115647 WO2021098360A1 (en) 2019-11-19 2020-09-16 Application control method, electronic device, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911134367.1A CN111124753A (en) 2019-11-19 2019-11-19 Application program control method, electronic equipment and server

Publications (1)

Publication Number Publication Date
CN111124753A true CN111124753A (en) 2020-05-08

Family

ID=70495808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911134367.1A Pending CN111124753A (en) 2019-11-19 2019-11-19 Application program control method, electronic equipment and server

Country Status (2)

Country Link
CN (1) CN111124753A (en)
WO (1) WO2021098360A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112379897A (en) * 2020-12-01 2021-02-19 北京致远互联软件股份有限公司 Method for releasing gray scale and restrictively installing client installation program
CN112613915A (en) * 2020-12-29 2021-04-06 上海触乐信息科技有限公司 Method and device for supporting switching of double-version advertisement plug-in and electronic equipment
WO2021098360A1 (en) * 2019-11-19 2021-05-27 维沃移动通信有限公司 Application control method, electronic device, and server
CN113138786A (en) * 2021-04-25 2021-07-20 维沃移动通信有限公司 Application updating method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544033A (en) * 2013-09-30 2014-01-29 小米科技有限责任公司 Method, device and associated equipment for rolling back application program
CN104461595A (en) * 2013-09-23 2015-03-25 联想(北京)有限公司 Application software upgrading roll-back method and device and electronic equipment
CN105511854A (en) * 2015-11-26 2016-04-20 深圳市金立通信设备有限公司 Application fallback method and terminal equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10185626B2 (en) * 2016-09-07 2019-01-22 Microsoft Technology Licensing, Llc Automatic application error detection and rollback
CN106775841B (en) * 2016-11-29 2021-02-19 深圳广电银通金融电子科技有限公司 Method, system and device for upgrading plug-in
CN111124753A (en) * 2019-11-19 2020-05-08 维沃移动通信有限公司 Application program control method, electronic equipment and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461595A (en) * 2013-09-23 2015-03-25 联想(北京)有限公司 Application software upgrading roll-back method and device and electronic equipment
CN103544033A (en) * 2013-09-30 2014-01-29 小米科技有限责任公司 Method, device and associated equipment for rolling back application program
CN105511854A (en) * 2015-11-26 2016-04-20 深圳市金立通信设备有限公司 Application fallback method and terminal equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021098360A1 (en) * 2019-11-19 2021-05-27 维沃移动通信有限公司 Application control method, electronic device, and server
CN112379897A (en) * 2020-12-01 2021-02-19 北京致远互联软件股份有限公司 Method for releasing gray scale and restrictively installing client installation program
CN112379897B (en) * 2020-12-01 2024-03-15 北京致远互联软件股份有限公司 Gray release and restrictive method for installing client installation program
CN112613915A (en) * 2020-12-29 2021-04-06 上海触乐信息科技有限公司 Method and device for supporting switching of double-version advertisement plug-in and electronic equipment
CN112613915B (en) * 2020-12-29 2022-11-22 上海触乐信息科技有限公司 Method and device for supporting switching of double-version advertisement plug-in and electronic equipment
CN113138786A (en) * 2021-04-25 2021-07-20 维沃移动通信有限公司 Application updating method and device

Also Published As

Publication number Publication date
WO2021098360A1 (en) 2021-05-27

Similar Documents

Publication Publication Date Title
CN111124753A (en) Application program control method, electronic equipment and server
CN107967153B (en) Application program management method and mobile terminal
CN108270870B (en) Prompt message pushing method and device
CN109857297B (en) Information processing method and terminal equipment
CN110308834B (en) Setting method of application icon display mode and terminal
CN108491148B (en) Application sharing method and terminal
CN111475070B (en) Display method of application interface and electronic equipment
US20220043564A1 (en) Method for inputting content and terminal device
CN109521920B (en) Application icon control method and terminal equipment
CN110780940A (en) Application program loading method, electronic device and storage medium
CN111522575B (en) Application program upgrading method and electronic equipment
CN111143002A (en) Application sharing method, electronic equipment and computer readable storage medium
CN108804151B (en) Method and terminal for restarting application program
CN109284146B (en) Light application starting method and mobile terminal
CN111562959A (en) Icon management method and electronic equipment
CN111309390A (en) Method for acquiring configuration information and electronic equipment
CN110825474A (en) Interface display method and device and electronic equipment
CN107704287B (en) Installation-free method for program application, mobile terminal and computer-readable storage medium
CN108491125B (en) Operation control method of application store and mobile terminal
CN111596875B (en) Screen expansion method and electronic equipment
CN111130995B (en) Image control method, electronic device, and storage medium
CN111399715B (en) Interface display method and electronic equipment
CN110471682B (en) Application program updating method and mobile terminal
CN111966373A (en) APN resetting method, terminal equipment and storage medium
CN111273961A (en) Advertisement display method and device and electronic equipment

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