CN111522575A - Application program upgrading method and electronic equipment - Google Patents
Application program upgrading method and electronic equipment Download PDFInfo
- Publication number
- CN111522575A CN111522575A CN202010297409.XA CN202010297409A CN111522575A CN 111522575 A CN111522575 A CN 111522575A CN 202010297409 A CN202010297409 A CN 202010297409A CN 111522575 A CN111522575 A CN 111522575A
- Authority
- CN
- China
- Prior art keywords
- installation package
- operation data
- application program
- sandbox
- target application
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 86
- 238000009434 installation Methods 0.000 claims abstract description 164
- 244000035744 Hura crepitans Species 0.000 claims abstract description 113
- 238000012544 monitoring process Methods 0.000 claims description 9
- 238000012790 confirmation Methods 0.000 claims description 4
- 238000011084 recovery Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 13
- 238000004590 computer program Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1433—Saving, restoring, recovering or retrying at system level during software upgrading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides an application program upgrading method and electronic equipment, wherein the method comprises the following steps: under the condition that a first request instruction for the target application program is received, copying a first installation package and first operation data of the target application program from a first storage space, and moving the first installation package and the first operation data of the target application program to a sandbox; upgrading the first installation package in the sandbox to obtain a second installation package; operating a second installation package, and storing second operation data generated in the operation process into the sandbox; and under the condition that a second request instruction for a target application program is received, moving the second operation data stored in the sandbox to the first storage space, and deleting the second installation package, the second operation data and the first operation data stored in the sandbox. The application program upgrading method provided by the embodiment of the invention can be used for conveniently recovering the version of the target application program before upgrading.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an application program upgrading method and an electronic device.
Background
With the increasing dependence of users on electronic devices, the types of applications installed in the electronic devices are increasing. In order to improve the use experience of the application program, a developer of the application program may update the version of the application program at irregular time, when the version of the application program is updated, the update prompt information is sent to the electronic equipment, and a user of the electronic equipment can update the version of the application program, namely update the application program according to the requirement.
At present, application program upgrading is divided into two modes of automatic system upgrading and manual user upgrading, after the application program is upgraded by adopting the two modes, the application program version before upgrading cannot be recovered, if a user wants to use the application program before upgrading, the application program installation package of the version before upgrading needs to be downloaded again in an application store after the application program after upgrading needs to be unloaded, and user experience is poor.
Disclosure of Invention
The embodiment of the invention provides an application program upgrading method and electronic equipment, and aims to solve the problem that the version before the application program upgrading cannot be recovered in the prior art.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides an application program upgrading method applied to an electronic device, where the method includes: under the condition that a first request instruction for a target application program is received, copying a first installation package and first operation data of the target application program from a first storage space, and moving the first installation package and the first operation data of the target application program to a sandbox; upgrading the first installation package in the sandbox to obtain a second installation package; the second installation package is operated, and second operation data generated in the operation process are stored in the sandbox; and under the condition that a second request instruction for a target application program is received, moving the second operation data stored in the sandbox to the first storage space, and deleting the second installation package, the second operation data and the first operation data stored in the sandbox.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the system comprises a copying module, a sandbox and a storage module, wherein the copying module is used for copying a first installation package and first operation data of a target application program from a first storage space and moving the first installation package and the first operation data of the target application program to the sandbox under the condition of receiving a first request instruction of the target application program; the upgrading module is used for upgrading the first installation package in the sandbox to obtain a second installation package; the operation module is used for operating the second installation package and storing second operation data generated in the operation process into the sandbox; and the recovery module is used for moving the second operation data stored in the sandbox to the first storage space and deleting the second installation package, the second operation data and the first operation data stored in the sandbox under the condition of receiving a second request instruction for a target application program.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on 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 described above.
In a fourth aspect, an embodiment of the present invention 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 steps of the above application program upgrading method are implemented.
In the embodiment of the invention, under the condition of receiving a first request instruction for a target application program, copying a first installation package and first operation data of the target application program from a first storage space, and moving the first installation package and the first operation data to a sandbox; upgrading the first installation package in the sandbox to obtain a second installation package; operating the second installation package, and storing second operation data generated in the operation process into the sandbox; and in the case of receiving a second request instruction for the target application program, moving the second operation data stored in the sandbox to the first storage space. The upgraded target application program is independently operated in the sandbox, the target application program installation package before upgrading, namely the first installation package, in the first storage space is reserved, when the target application program version before upgrading needs to be restored, the second installation package and the related operation data in the sandbox are deleted, and the version before upgrading of the target application program can be conveniently restored.
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 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 a further method for upgrading an application according to an embodiment of the present invention;
FIG. 3 is an interface schematic of a first screen and a second screen of an electronic device;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure 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.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, a flowchart illustrating steps of an application program upgrading method according to an embodiment of the present invention is shown.
The application program upgrading method of the embodiment of the invention comprises the following steps:
step 101: the electronic equipment copies the first installation package and the first operation data of the target application program from the first storage space and moves the first installation package and the first operation data of the target application program to the sandbox under the condition that the first request instruction of the target application program is received.
The second request instruction is used for instructing the electronic device to execute an application experience upgrade process, which is specifically described in step 102 to step 104. The second request instruction for the target application program can be generated by triggering a preset control by a user.
The sandbox refers to a virtual technology and is mainly used for computer security technology, the principle is that through a redirection technology, when a certain program tries to play a role, security software can firstly run the program in the sandbox, and if malicious behaviors exist, the program is forbidden to further run, so that damage to a system is avoided. In the embodiment of the invention, the upgraded target application program, namely the new version target application program, is operated in the sandbox by using the characteristic of the sandbox, so that the data interaction aspect of the new version target application program is completely independent when the new version target application program is operated, and the old version target application program cannot be influenced.
Step 102: the electronic equipment upgrades the first installation package in the sandbox to obtain a second installation package.
The first installation package is an installation package of a target application program before upgrading, the second installation package is an installation package of a target application program after upgrading, and the upgrading of the target application program is the upgrading of the target application program version.
When the first installation package is upgraded, upgrading plug-ins can be completed based on the version upgraded by the target application program developer.
Step 103: and the electronic equipment runs the second installation package and stores second operation data generated in the running process into the sandbox.
The second operation data is data generated in the running process after the target application program is upgraded. And running the second installation package, namely trial running the upgraded target application program in the sandbox, wherein the user can determine whether to recover to the target application program before upgrading according to the use experience during the trial running.
Step 104: and under the condition that the electronic equipment receives a second request instruction for the target application program, moving the second operation data stored in the sandbox to the first storage space, and deleting the second installation package, the second operation data and the first operation data stored in the sandbox.
The second request instruction is used for instructing the electronic equipment to restore the application program version before upgrading.
And moving the second operation data in the sandbox to the first storage space, so that the data generated during the running of the upgraded target application program can be prevented from being lost.
And after deleting the second installation package, the second operation data and the first operation data stored in the sandbox, and when receiving a target application program starting instruction, starting the first installation package in the first storage space and recovering to the application program before upgrading.
In the application program upgrading method, a first installation package and first operation data of a target application program are copied from a first storage space under the condition that a first request instruction for the target application program is received, and the first installation package and the first operation data are moved to a sandbox; upgrading the first installation package in the sandbox to obtain a second installation package; operating the second installation package, and storing second operation data generated in the operation process into the sandbox; and in the case of receiving a second request instruction for the target application program, moving the second operation data stored in the sandbox to the first storage space. By independently operating the upgraded application program in the sandbox, the application program installation package before upgrading, namely the first installation package, in the first storage space is reserved, when the version of the application program before upgrading needs to be restored, the second installation package and the related operation data in the sandbox are deleted, and the version of the application program before upgrading can be conveniently restored.
Referring to fig. 2, a flowchart illustrating steps of an application program upgrading method according to an embodiment of the present invention is shown.
The application program upgrading method provided by the embodiment of the invention is applied to electronic equipment and comprises the following steps:
step 201: and when the electronic equipment monitors that the target application program has the version to be updated, outputting an upgrading prompt box.
The upgrade prompt box may include, but is not limited to: experience upgrade options and direct upgrade options.
Step 202: the electronic equipment determines that a first request instruction for the target application program is received when the selected operation of the experience upgrading option is received.
When the electronic device receives the selected operation of the direct upgrade option, the application program can be upgraded according to the prior related art. The selected operation may include, but is not limited to: single click operation, double click operation, long press operation, or the like.
Step 203: the electronic equipment copies the first installation package and the first operation data of the target application program from the first storage space and moves the first installation package and the first operation data of the target application program to the sandbox under the condition that the first request instruction of the target application program is received.
The first operation data is history data corresponding to the target application program before upgrading. And copying the first installation package and the first operation data into the sandbox, and operating the upgraded second installation package in the sandbox by using the first operation data as basic data.
Step 204: the electronic equipment upgrades the first installation package in the sandbox to obtain a second installation package.
The second installation package is the installation package corresponding to the upgraded target application program.
Step 205: the electronic equipment runs the first installation package and the second installation package simultaneously.
The second installation package is arranged in the sandbox, the processor of the electronic equipment runs the first installation package and the second installation package simultaneously, the data interaction aspect is completely independent operation namely non-interaction between data when the first installation package and the second installation package run simultaneously, and disorder of data generated by version interleaving can be effectively avoided, so that the stability of version upgrading or version recovery of the target application program is improved.
Step 206: the electronic equipment stores first operation data generated in the running process of the first installation package into a first storage space, and displays an application program interface generated in the running process of the first installation package in a first screen.
The electronic equipment in the embodiment of the invention comprises a first screen and a second screen.
Step 207: and the electronic equipment stores the second operation data generated in the running process of the second installation package into the sandbox, and displays the application program interface generated in the running process of the second installation package in the second screen.
As shown in the interface schematic diagrams of the first screen and the second screen of the electronic device in fig. 3, the interfaces of the target application before and after the upgrade are respectively displayed in the first screen 301 and the second screen 302, and a user can visually compare the detail difference of the two versions on the same function through the interfaces displayed on the two screens, so that the user can conveniently select the version suitable for the user.
Step 208: and under the condition that the electronic equipment monitors that the target application program upgrading determining condition is met, determining to adopt the upgraded target application program version.
When the upgraded target application program version is adopted, the electronic device can replace the first installation package and the first operation data stored in the first storage space by adopting the second operation data, the first operation data and the second installation package stored in the sandbox.
One optional mode is that after the second operation data, the first operation data and the second installation package stored in the sandbox are adopted to replace the first installation package and the first operation data stored in the first storage space, the second installation package, the first operation data and the second operation data in the sandbox are deleted, and the second installation package in the sandbox is prevented from being started when the target application program is restarted.
Satisfying the target application upgrade determination condition may include, but is not limited to: determining that the target application program meets an upgrading determination condition under the condition that a target application program upgrading confirmation instruction is received; or monitoring whether a deleting instruction of the second installation package, the first operation data and the second operation data stored in the sandbox is received within a preset time length; if not, determining that the target application program meets the upgrading determination condition.
The specific value of the preset time period may be set by a person skilled in the art according to actual requirements, and is not particularly limited in the embodiment of the present invention. For example: the preset time period may be set to 10 days, 15 days, 30 days, or the like.
Step 209: and under the condition that the electronic equipment receives a second request instruction for the target application program, restoring the target application program version before upgrading.
The second request instruction is used for instructing the electronic equipment to restore the application program version before upgrading.
After experiencing the upgraded target application program, if the upgraded target application program is not satisfactory, the user can trigger the electronic device to restore the target application program before upgrading by executing the second request instruction on the target application program. And under the condition that a second request order for the target application program is received, the electronic equipment moves the second operation data stored in the sandbox to the first storage space, deletes the second installation package, the second operation data and the first operation data stored in the sandbox, and finally restores the target application program to the version before upgrading.
The second operation data in the sandbox is moved to the first storage space, so that the operation data generated in the operation of the second installation package can be ensured to be synchronized to the operation data corresponding to the first installation package, and data loss is avoided.
In the application program upgrading method, a first installation package and first operation data of a target application program are copied from a first storage space under the condition that a first request instruction for the target application program is received, and the first installation package and the first operation data are moved to a sandbox; upgrading the first installation package in the sandbox to obtain a second installation package; operating the second installation package, and storing second operation data generated in the operation process into the sandbox; and in the case of receiving a second request instruction for the target application program, moving the second operation data stored in the sandbox to the first storage space. By independently operating the upgraded application program in the sandbox, the application program installation package before upgrading, namely the first installation package, in the first storage space is reserved, when the version of the application program before upgrading needs to be restored, the second installation package and the related operation data in the sandbox are deleted, and the version of the application program before upgrading can be conveniently restored. Under the condition that the target application program upgrading determination condition is met is monitored, the application related data before upgrading is covered by the upgraded application program related data, and manual intervention of a user is not needed.
Referring to fig. 4, a block diagram of an electronic device according to an embodiment of the present invention is shown.
The electronic device 400 of the embodiment of the present invention includes: the copying module 401 is configured to copy a first installation package and first operation data of a target application program from a first storage space and move the first installation package and the first operation data of the target application program into a sandbox when a first request instruction for the target application program is received; an upgrading module 402, configured to upgrade the first installation package in the sandbox to obtain a second installation package; an operation module 403, configured to operate the second installation package, and store second operation data generated in an operation process in the sandbox; a restoring module 404, configured to, when a second request instruction for a target application is received, move the second operation data stored in the sandbox to the first storage space, and delete the second installation package, the second operation data, and the first operation data stored in the sandbox.
Optionally, the electronic device further comprises: and the replacing module is used for replacing the first installation package and the first operation data stored in the first storage space by adopting the second operation data, the first operation data and the second installation package stored in the sandbox under the condition that the situation that a target application program upgrading determination condition is met after the second installation package is operated by the operation module and the second operation data generated in the operation process is stored in the sandbox is monitored.
Optionally, the electronic device further comprises:
the receiving module is configured to determine that the target application program meets an upgrade determination condition under a condition that the replacing module monitors that the upgrade determination condition of the target application program is met, before replacing the first installation package and the first operation data stored in the first storage space with the second operation data, the first operation data and the second installation package stored in the sandbox, and receiving an upgrade confirmation instruction of the target application program.
The electronic device further includes:
the monitoring module is used for monitoring whether a deleting instruction of the second installation package, the first operation data and the second operation data stored in the sandbox is received within a preset time period before the replacing module replaces the first installation package and the first operation data stored in the first storage space by adopting the second operation data, the first operation data and the second installation package stored in the sandbox under the condition that the replacing module monitors that a target application program upgrading determining condition is met;
and the result determining module is used for determining that the target application program meets the upgrading determining condition if the target application program does not meet the upgrading determining condition.
Optionally, the operation module includes:
the first submodule is used for simultaneously operating the first installation package and the second installation package;
the second submodule is used for storing first operation data generated in the running process of the first installation package into the first storage space and displaying an application program interface generated in the running process of the first installation package in a first screen;
the third sub-module is used for storing second operation data generated in the running process of the second installation package into the sandbox and displaying an application program interface generated in the running process of the second installation package in a second screen; the electronic equipment comprises a first screen and a second screen.
Optionally, the electronic device further comprises:
an output module, configured to, when it is monitored that a version to be updated exists in a target application program, output an upgrade prompt box before copying a first installation package and first operation data of the target application program from a first storage space to a sandbox when the copy module receives a first request instruction for the target application program, where the upgrade prompt box includes: experience upgrade options and direct upgrade options;
and the instruction determining module is used for determining that a first request instruction for the target application program is received when the selected operation for the experience upgrading option is received.
The electronic device of the embodiment of the invention can realize each process of the application program upgrading method in each method embodiment, and is not described again to avoid repetition.
In the electronic device of the embodiment of the invention, the first installation package and the first operation data of the target application program are copied from the first storage space under the condition of receiving the first request instruction of the target application program, and the first installation package and the first operation data of the target application program are moved to the sandbox; upgrading the first installation package in the sandbox to obtain a second installation package; operating the second installation package, and storing second operation data generated in the operation process into the sandbox; and in the case of receiving a second request instruction for the target application program, moving the second operation data stored in the sandbox to the first storage space. By independently operating the upgraded application program in the sandbox, the application program installation package before upgrading, namely the first installation package, in the first storage space is reserved, when the version of the application program before upgrading needs to be restored, the second installation package and the related operation data in the sandbox are deleted, and the version of the application program before upgrading can be conveniently restored.
Referring to fig. 5, a block diagram of an electronic device according to an embodiment of the present invention is shown.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device 500 for implementing various embodiments of the present invention, where the electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 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 terminal, a wearable device, a pedometer, and the like. The electronic equipment provided by the embodiment of the invention is used as first electronic equipment to interact with each second electronic equipment, and processes the image.
The processor 510 may be configured to, in a case that a first request instruction for a target application program is received, copy a first installation package and first operation data of the target application program from a first storage space, and move the first installation package and the first operation data of the target application program into a sandbox; upgrading the first installation package in the sandbox to obtain a second installation package; the second installation package is operated, and second operation data generated in the operation process are stored in the sandbox; and under the condition that a second request instruction for a target application program is received, moving the second operation data stored in the sandbox to the first storage space, and deleting the second installation package, the second operation data and the first operation data stored in the sandbox.
In the electronic device of the embodiment of the invention, the first installation package and the first operation data of the target application program are copied from the first storage space under the condition of receiving the first request instruction of the target application program, and the first installation package and the first operation data of the target application program are moved to the sandbox; upgrading the first installation package in the sandbox to obtain a second installation package; operating the second installation package, and storing second operation data generated in the operation process into the sandbox; and in the case of receiving a second request instruction for the target application program, moving the second operation data stored in the sandbox to the first storage space. By independently operating the upgraded application program in the sandbox, the application program installation package before upgrading, namely the first installation package, in the first storage space is reserved, when the version of the application program before upgrading needs to be restored, the second installation package and the related operation data in the sandbox are deleted, and the version of the application program before upgrading can be conveniently restored.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 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 501 can 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 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 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 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 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 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. Display panel 501 is a flexible display screen, and the flexible display screen includes a screen base, a liftable module array and a flexible screen that are stacked in sequence. 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 505 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 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 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 507 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 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 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 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. 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 508 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 electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 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 509 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 510 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 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 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 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 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 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the foregoing application program upgrade method embodiment are implemented, and the same technical effect can be achieved, 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 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 (10)
1. An application program upgrading method applied to electronic equipment is characterized by comprising the following steps:
under the condition that a first request instruction for a target application program is received, copying a first installation package and first operation data of the target application program from a first storage space, and moving the first installation package and the first operation data of the target application program to a sandbox;
upgrading the first installation package in the sandbox to obtain a second installation package;
the second installation package is operated, and second operation data generated in the operation process are stored in the sandbox;
and under the condition that a second request instruction for a target application program is received, moving the second operation data stored in the sandbox to the first storage space, and deleting the second installation package, the second operation data and the first operation data stored in the sandbox.
2. The method of claim 1, wherein after the step of running the second installation package and storing second operation data generated during the running process in the sandbox, the method further comprises:
and under the condition that the upgrading determination condition of the target application program is met, replacing the first installation package and the first operation data stored in the first storage space by adopting the second operation data, the first operation data and the second installation package stored in the sandbox.
3. The method of claim 2, wherein in a case where the monitoring meets a target application upgrade determination condition, before the step of replacing the first installation package and the first operation data stored in the first storage space with the second operation data, the first operation data, and the second installation package stored in the sandbox, the method further comprises:
and under the condition that a target application program upgrading confirmation instruction is received, determining that the target application program meets upgrading determination conditions.
4. The method of claim 2, wherein in a case where the monitoring meets a target application upgrade determination condition, before the step of replacing the first installation package and the first operation data stored in the first storage space with the second operation data, the first operation data, and the second installation package stored in the sandbox, the method further comprises:
monitoring whether a deleting instruction for the second installation package, the first operation data and the second operation data stored in the sandbox is received within a preset time;
if not, determining that the target application program meets the upgrading determination condition.
5. The method according to claim 1, wherein the step of executing the second installation package and storing second operation data generated in the process of executing into the sandbox comprises:
simultaneously running the first installation package and the second installation package;
storing first operation data generated in the running process of the first installation package into the first storage space, and displaying an application program interface generated in the running process of the first installation package in a first screen;
storing second operation data generated in the running process of the second installation package into the sandbox, and displaying an application program interface generated in the running process of the second installation package in a second screen; the electronic equipment comprises a first screen and a second screen.
6. An electronic device, characterized in that the electronic device comprises:
the system comprises a copying module, a sandbox and a storage module, wherein the copying module is used for copying a first installation package and first operation data of a target application program from a first storage space and moving the first installation package and the first operation data of the target application program to the sandbox under the condition of receiving a first request instruction of the target application program;
the upgrading module is used for upgrading the first installation package in the sandbox to obtain a second installation package;
the operation module is used for operating the second installation package and storing second operation data generated in the operation process into the sandbox;
and the recovery module is used for moving the second operation data stored in the sandbox to the first storage space and deleting the second installation package, the second operation data and the first operation data stored in the sandbox under the condition of receiving a second request instruction for a target application program.
7. The electronic device of claim 6, further comprising:
and the replacing module is used for replacing the first installation package and the first operation data stored in the first storage space by adopting the second operation data, the first operation data and the second installation package stored in the sandbox under the condition that the situation that a target application program upgrading determination condition is met after the second installation package is operated by the operation module and the second operation data generated in the operation process is stored in the sandbox is monitored.
8. The electronic device of claim 7, further comprising:
the receiving module is configured to determine that the target application program meets an upgrade determination condition under a condition that the replacing module monitors that the upgrade determination condition of the target application program is met, before replacing the first installation package and the first operation data stored in the first storage space with the second operation data, the first operation data and the second installation package stored in the sandbox, and receiving an upgrade confirmation instruction of the target application program.
9. The electronic device of claim 7, further comprising:
the monitoring module is used for monitoring whether a deleting instruction of the second installation package, the first operation data and the second operation data stored in the sandbox is received within a preset time period before the replacing module replaces the first installation package and the first operation data stored in the first storage space by adopting the second operation data, the first operation data and the second installation package stored in the sandbox under the condition that the replacing module monitors that a target application program upgrading determining condition is met;
and the result determining module is used for determining that the target application program meets the upgrading determining condition if the target application program does not meet the upgrading determining condition.
10. The electronic device of claim 6, wherein the execution module comprises:
the first submodule is used for simultaneously operating the first installation package and the second installation package;
the second submodule is used for storing first operation data generated in the running process of the first installation package into the first storage space and displaying an application program interface generated in the running process of the first installation package in a first screen;
the third sub-module is used for storing second operation data generated in the running process of the second installation package into the sandbox and displaying an application program interface generated in the running process of the second installation package in a second screen; the electronic equipment comprises a first screen and a second screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010297409.XA CN111522575B (en) | 2020-04-15 | 2020-04-15 | Application program upgrading method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010297409.XA CN111522575B (en) | 2020-04-15 | 2020-04-15 | Application program upgrading method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111522575A true CN111522575A (en) | 2020-08-11 |
CN111522575B CN111522575B (en) | 2023-11-24 |
Family
ID=71903758
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010297409.XA Active CN111522575B (en) | 2020-04-15 | 2020-04-15 | Application program upgrading method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111522575B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113110864A (en) * | 2021-03-19 | 2021-07-13 | 深圳市腾讯网络信息技术有限公司 | Application program updating method and device and storage medium |
CN113656269A (en) * | 2021-07-30 | 2021-11-16 | 深圳市悦道科技有限公司 | Control method based on smart television application software |
CN113760306A (en) * | 2020-10-26 | 2021-12-07 | 北京京东乾石科技有限公司 | Method and device for installing software, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1858704A (en) * | 2006-02-07 | 2006-11-08 | 华为技术有限公司 | Method of upgrading sequence |
US20120204250A1 (en) * | 2011-02-03 | 2012-08-09 | John Aaron Anderson | Securing Unrusted Content For Collaborative Documents |
US20120278892A1 (en) * | 2011-04-28 | 2012-11-01 | F-Secure Corporation | Updating anti-virus software |
CN104111843A (en) * | 2013-04-17 | 2014-10-22 | 苏州墨提斯信息科技有限公司 | Sandbox based script updating method and system |
CN105556469A (en) * | 2013-09-12 | 2016-05-04 | 苹果公司 | Mediated data exchange for sandboxed applications |
CN110347605A (en) * | 2019-07-12 | 2019-10-18 | 北京百度网讯科技有限公司 | Method, apparatus, equipment and the storage medium for preventing software from degenerating |
CN110837383A (en) * | 2019-09-30 | 2020-02-25 | 奇安信科技集团股份有限公司 | Application installation-free upgrading method and device |
-
2020
- 2020-04-15 CN CN202010297409.XA patent/CN111522575B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1858704A (en) * | 2006-02-07 | 2006-11-08 | 华为技术有限公司 | Method of upgrading sequence |
US20120204250A1 (en) * | 2011-02-03 | 2012-08-09 | John Aaron Anderson | Securing Unrusted Content For Collaborative Documents |
US20120278892A1 (en) * | 2011-04-28 | 2012-11-01 | F-Secure Corporation | Updating anti-virus software |
CN104111843A (en) * | 2013-04-17 | 2014-10-22 | 苏州墨提斯信息科技有限公司 | Sandbox based script updating method and system |
CN105556469A (en) * | 2013-09-12 | 2016-05-04 | 苹果公司 | Mediated data exchange for sandboxed applications |
CN110347605A (en) * | 2019-07-12 | 2019-10-18 | 北京百度网讯科技有限公司 | Method, apparatus, equipment and the storage medium for preventing software from degenerating |
CN110837383A (en) * | 2019-09-30 | 2020-02-25 | 奇安信科技集团股份有限公司 | Application installation-free upgrading method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113760306A (en) * | 2020-10-26 | 2021-12-07 | 北京京东乾石科技有限公司 | Method and device for installing software, electronic equipment and storage medium |
CN113110864A (en) * | 2021-03-19 | 2021-07-13 | 深圳市腾讯网络信息技术有限公司 | Application program updating method and device and storage medium |
CN113110864B (en) * | 2021-03-19 | 2023-01-20 | 深圳市腾讯网络信息技术有限公司 | Application program updating method and device and storage medium |
CN113656269A (en) * | 2021-07-30 | 2021-11-16 | 深圳市悦道科技有限公司 | Control method based on smart television application software |
CN113656269B (en) * | 2021-07-30 | 2022-07-19 | 深圳市悦道科技有限公司 | Control method based on smart television application software |
Also Published As
Publication number | Publication date |
---|---|
CN111522575B (en) | 2023-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4047940A1 (en) | Screencast control method and electronic device | |
CN109828705B (en) | Icon display method and terminal equipment | |
CN107967153B (en) | Application program management method and mobile terminal | |
CN110058836B (en) | Audio signal output method and terminal equipment | |
CN109885323B (en) | Application program upgrading method, mobile terminal and readable storage medium | |
CN111026484A (en) | Application sharing method, first electronic device and computer-readable storage medium | |
CN109521920B (en) | Application icon control method and terminal equipment | |
CN111522575B (en) | Application program upgrading method and electronic equipment | |
CN111163260B (en) | Camera starting method and electronic equipment | |
CN109522278B (en) | File storage method and terminal equipment | |
WO2021098360A1 (en) | Application control method, electronic device, and server | |
CN111045772A (en) | Application sharing method, electronic equipment and computer readable storage medium | |
CN110780940A (en) | Application program loading method, electronic device and storage medium | |
CN111104288A (en) | Information processing method and electronic equipment | |
CN109284187A (en) | A kind of application processing method, device and mobile terminal | |
CN111399715B (en) | Interface display method and electronic equipment | |
CN108287884B (en) | Page display method and mobile terminal | |
CN111562959A (en) | Icon management method and electronic equipment | |
CN109284146B (en) | Light application starting method and mobile terminal | |
CN108491125B (en) | Operation control method of application store and mobile terminal | |
CN110471682B (en) | Application program updating method and mobile terminal | |
CN108491225B (en) | Update package generation method and mobile terminal | |
CN111124537A (en) | Application starting method and electronic equipment | |
CN111240729B (en) | Software updating method, electronic device and medium | |
CN111338528B (en) | Operation response method 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |