CN116680118A - Application backup method, electronic device, storage medium and program product - Google Patents
Application backup method, electronic device, storage medium and program product Download PDFInfo
- Publication number
- CN116680118A CN116680118A CN202211666310.8A CN202211666310A CN116680118A CN 116680118 A CN116680118 A CN 116680118A CN 202211666310 A CN202211666310 A CN 202211666310A CN 116680118 A CN116680118 A CN 116680118A
- Authority
- CN
- China
- Prior art keywords
- application
- backup
- upgraded
- version
- version 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000004590 computer program Methods 0.000 claims description 11
- 230000004044 response Effects 0.000 claims description 8
- 238000012163 sequencing technique Methods 0.000 claims description 4
- 230000009191 jumping Effects 0.000 claims 1
- 230000001960 triggered effect Effects 0.000 abstract description 6
- 238000007726 management method Methods 0.000 description 74
- 238000004891 communication Methods 0.000 description 32
- 230000006854 communication Effects 0.000 description 32
- 238000001514 detection method Methods 0.000 description 30
- 230000006870 function Effects 0.000 description 29
- 238000013523 data management Methods 0.000 description 26
- 238000010586 diagram Methods 0.000 description 21
- 238000012545 processing Methods 0.000 description 21
- 238000011084 recovery Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 13
- 230000005236 sound signal Effects 0.000 description 13
- 238000010295 mobile communication Methods 0.000 description 12
- 238000012790 confirmation Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 6
- 238000013528 artificial neural network Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000005611 electricity Effects 0.000 description 4
- 238000010606 normalization Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012216 screening Methods 0.000 description 3
- 230000003416 augmentation Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- 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
- 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/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
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 application provides a method for application backup, electronic equipment, a storage medium and a program product, and relates to the technical field of Internet. When the method is executed, the system side detects whether the application to be upgraded is subjected to version upgrading in real time. When the application to be upgraded carries out version upgrading, if the application to be upgraded is an application with the use frequency exceeding a preset frequency standard in a preset time period, prompting a user to carry out version data backup operation of the application to be upgraded; after the user triggers the backup operation of the version data of the application to be upgraded, the system side responds to the backup operation of the version data of the application to be upgraded, which is triggered by the user, and the version data of the application to be upgraded before being upgraded is backed up. Therefore, when the situation that the version is unstable after the common application is upgraded, the user can timely fall back to the version which is stable before, and the user experience is not affected. The application can be screened in a targeted manner, and the storage space is not wasted.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method for backing up applications, an electronic device, a storage medium, and a program product.
Background
With the continuous development of technology, various application software is also continuously and iteratively updated. After upgrading a new version, some application software may have unstable versions, such as flashing back, blocking, and crashing, which may affect the user experience.
In the prior art, a third party application manufacturer is usually waited for repairing and upgrading the application version, so that the problem that the version is unstable after the application software is upgraded is solved, but during the process of repairing and upgrading the application version, a user still suffers from the problem of unstable application version, and the use experience of the user is reduced.
Disclosure of Invention
The application backup method, the electronic device, the storage medium and the program product solve the problem that the use experience of a user is affected due to the fact that the version of the application is unstable after the version of the application is updated in the prior art.
In order to achieve the above purpose, the application adopts the following technical scheme:
in a first aspect, the present application provides an application backup method, including: the electronic equipment detects whether an application to be upgraded exists in real time; when the application to be upgraded exists and the application to be upgraded is an application with the use frequency exceeding a preset frequency standard in a preset time period, prompting a user to perform backup operation on application version data of the application to be upgraded; when the user selects to carry out backup operation on the application version data of the application to be upgraded, the electronic equipment responds to the backup operation on the application version data of the application to be upgraded and backs up the version data of the application to be upgraded before upgrading.
Therefore, whether the application is upgraded or not can be automatically detected, and when the application with the use frequency exceeding the preset frequency standard in the preset time period is detected, namely the application is upgraded by the common application, a user is prompted to backup the application version data, and when the situation that the version is unstable after the common application is upgraded, the user can timely fall back to the previous stable version without affecting the user experience. The application for version data backup can be screened in a targeted manner, and the storage space is not wasted.
In some possible implementations, after the application upgrade, the method further includes:
the electronic equipment responds to an instruction for recovering the application version data, and uninstalls the current version of the application; and recovering the application by using the backup version data of the application. Since the version data before the application is backed up, when the version instability occurs after the application is upgraded, the user can restore the application to the previously stable version by using the backed-up data.
In some possible implementation manners, the method for determining the application to be upgraded as the application with the use frequency exceeding the preset frequency standard in the preset time period may specifically be the following manner:
Acquiring the flow and the electric quantity used by each application in a preset time period; then calculating the comprehensive use value of the flow and the electric quantity of each application in a preset time period; sequencing the applications according to the sequence of the comprehensive use values from big to small; if the application to be upgraded is any one of the preset number of applications which are ranked at the front, the application to be upgraded is determined to be the application with the use frequency exceeding the preset frequency standard in the preset time period. Therefore, according to the comprehensive use condition of the flow and the electric quantity of each application in the preset time period, the application with the use frequency exceeding the preset frequency standard, namely the common application, can be determined, so that the backup operation is further carried out on the version data of the common application.
In some possible implementations, the electronic device may further backup the current version data of the first application in response to an instruction from the user to add the current version data of the first application to the application backup space. The first application is only intended to distinguish from the application to be upgraded and represents an application that is not to be version-upgraded. Thus, the electronic equipment supports the user to backup the version data before the application to be upgraded is upgraded, and also can backup the current version data of the application after the application is upgraded.
In some possible implementations, if the application backup space is full, the backup of version data before upgrading the application to be upgraded may be implemented in the following manner:
the electronic device responds to an instruction for replacing the application version data stored in the application backup space; and replacing the application version data selected by the user with the version data before the application to be upgraded is upgraded. Therefore, the version data before upgrading the application to be upgraded can be backed up by adopting a mode of replacing other backup version data under the condition that the application backup space is full.
In some possible implementations, if the application backup space is full, the backup of version data before upgrading the application to be upgraded can be further implemented in the following manner:
the electronic equipment responds to an instruction for increasing the application backup space, and the application backup space is increased; and backing up version data before upgrading the application to be upgraded in the increased application backup space. When the application backup space is full, the user can manually increase the backup storage space, and the newly increased application backup space is utilized to backup version data before the application to be upgraded is upgraded.
In some possible implementations, the electronic device deletes the second application version data stored to the backup storage space in response to an instruction to delete the second application version data. The second application is a user selected application. Thus, the user can reduce the occupation of unnecessary application backup space without deleting the data which is already backed up by a certain application.
In some possible implementations, the electronic device jumps to an operation interface of the application version data backup in response to an instruction of the application version data backup triggered by the user; the operation interface comprises operations of adding, deleting and recovering the application version data. The user can trigger an instruction of backing up the application version data, and perform operations such as adding, deleting, recovering and the like on the application version data at an operation interface of backing up the application version data so as to realize management of the application version data.
In some possible implementations, determining the preset time period may be implemented in the following manner:
reading the moment when the electronic equipment detects that the application to be upgraded exists last time, and recording the moment as the first time; reading the moment when the electronic equipment detects that the application to be upgraded exists, and recording the moment as second time; the time period from the first time to the second time is determined as a preset time period.
In a second aspect, the present application provides an electronic device comprising a processor and a memory, wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the application backup method as described in any one of the possible designs of the first aspect above.
In a third aspect, the present application provides a computer storage medium comprising computer instructions which, when run on an electronic device, perform an application backup method as described in any one of the possible designs of the first aspect above.
In a fourth aspect, the present application provides a computer program product for performing the application backup method described in any one of the possible designs of the first aspect above when the computer program product is run on a computer.
Drawings
Fig. 1 is a diagram illustrating a composition example of an electronic device according to an embodiment of the present application;
fig. 2 is a diagram illustrating a software structure of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface of a display screen of an electronic device for a user according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an application version backup function interface according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an operation interface for recovering an application version according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an operation interface for adding an application version according to an embodiment of the present application;
fig. 7 is a schematic diagram of an operation interface for deleting an application version according to an embodiment of the present application;
FIG. 8 is a flowchart of an application version backup according to an embodiment of the present application;
FIG. 9 is a flowchart of another backup of an application version according to an embodiment of the present application;
FIG. 10 is a flowchart for screening common applications according to an embodiment of the present application;
FIG. 11 is a flowchart for recovering an application version according to an embodiment of the present application;
fig. 12A is a schematic diagram of a module connection structure involved in an implementation process of backup of application version data according to an embodiment of the present application;
FIG. 12B is a timing diagram of an application version backup according to an embodiment of the present application;
FIG. 13A is a timing diagram of another application version backup provided by an embodiment of the present application;
FIG. 13B is a timing diagram of yet another embodiment of an application version backup according to the present application;
fig. 14 is a timing chart of an application version recovery according to an embodiment of the present application.
Detailed Description
The terms first, second and the like in the description and in the claims and drawings are used for distinguishing between different objects and not for limiting a particular order.
For clarity and conciseness in the description of the following embodiments, a brief description of the related art will be given first:
the "backup" tool may protect data from unexpected loss if the hardware or storage media of the system fails. For example, a copy of the data in the hard disk may be created using a "backup" and then stored to other storage devices. The backup storage medium may be either a logical drive (e.g., hard disk), a stand-alone storage device (e.g., removable disk), or an entire disk library or tape library organized and controlled by an automatic changer. If the original data on the hard disk is accidentally deleted or overwritten, or the data is not accessible due to a hard disk failure, the data may be restored from the archive copy.
With the continuous development of technology, various application software is also continuously and iteratively updated. Some applications may flash back, crash, or crash after upgrading the new version, and need to be rolled back to the last stable version. In the prior art, when each application is upgraded, the last version of each application is usually backed up, so that when the version is unstable after the application is upgraded, the last stable version can be backed up. Because each application is backed up in the prior art, but in actual use, the problem that each application is unstable after upgrading the version does not occur, so that the problem that the memory space of the electronic equipment is excessively occupied exists.
In view of this, the present application provides a method for application backup, which can set an option of application backup in the "set" application software of the electronic device in advance, the option supports user-defined backup of the application software, and can also automatically detect application software with higher use frequency, and when upgrading the application software with higher use frequency, prompt the user to backup a version of the application software, so that the user can selectively backup the application software, and after the problem of instability of the application software after upgrading, the user can return to the previous version, and save the storage space.
In some embodiments, the electronic device may be a mobile phone, tablet, desktop, laptop, notebook, ultra mobile personal computer (Ultra-mobile Personal Computer, UMPC), handheld computer, netbook, personal digital assistant (Personal Digital Assistant, PDA), wearable electronic device, smart watch, etc., and the application is not limited in particular to the specific form of the above-described electronic device. In this embodiment, the structure of the electronic device may be shown in fig. 1, and fig. 1 is a schematic structural diagram of the electronic device according to the embodiment of the present application.
As shown in fig. 1, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, a user identification module (subscriber identification module, SIM) card interface 195, a traffic management module 196, a storage management module 197, and the like.
It is to be understood that the configuration illustrated in this embodiment does not constitute a specific limitation on the electronic apparatus. In other embodiments, the electronic device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. For example, in the present application, the processor detects whether there is an application for version upgrade; when the application performs version upgrading, if the application performing version upgrading is an application with the use frequency exceeding a preset frequency standard in a preset time period, prompting a user to perform application version data backup operation; and the processor responds to the user-triggered backup operation of the version data of the application, and backs up the version data before the version upgrading application is not upgraded.
The controller can be a neural center and a command center of the electronic device. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to sensors in the sensor 180, a charger, a flash, a camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensors in the touch sensor 180 through an I2C interface, so that the processor 110 communicates with the touch sensors through an I2C bus interface to implement a touch function of the electronic device.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing function of the electronic device. The processor 110 and the display screen 194 communicate via a DSI interface to implement the display functionality of the electronic device.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge an electronic device, or may be used to transfer data between the electronic device and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device. In some embodiments, the power management module 141 is further configured to detect a power consumption condition of each application in the electronic device.
The flow management module 196 is configured to receive a flow detection instruction sent by the processor 110, and detect a flow consumed by each application software of the electronic device in a period of time.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on an electronic device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. for application on an electronic device. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device implements display functions via a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro-led, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 194, N being a positive integer greater than 1.
A series of graphical user interfaces (graphical user interface, GUIs) may be displayed on the display 194 of the electronic device, all of which are home screens of the electronic device. Generally, the size of the display 194 of an electronic device is fixed and only limited controls can be displayed in the display 194 of the electronic device. A control is a GUI element that is a software component contained within an application program that controls all data processed by the application program and interactive operations on that data, and a user can interact with the control by direct manipulation (direct manipulation) to read or edit information about the application program. In general, controls may include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and the like.
The electronic device may implement shooting functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, and so on.
Video codecs are used to compress or decompress digital video. The electronic device may support one or more video codecs. In this way, the electronic device may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of electronic devices can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. For example, in the present embodiment, the processor 110 may perform recalculation of a first display time stamp of a video stream and recalculation of a second display time stamp of an audio stream by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device (e.g., audio data, phonebook, etc.), and so forth. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device may listen to music, or to hands-free conversations, through speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the electronic device picks up a phone call or voice message, the voice can be picked up by placing the receiver 170B close to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device may be provided with at least one microphone 170C. In other embodiments, the electronic device may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The operating system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, an Android system with a layered architecture is taken as an example, and the software structure of the electronic equipment is illustrated.
Fig. 2 is a software configuration block diagram of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 2, the application package may include applications for cameras, gallery, calendar, talk, map, navigation, setup, bluetooth, music, video, short message, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 2, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc., an upgrade management module, a storage management interface, a power management interface, a traffic management interface.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The upgrade management module is mainly used for detecting upgrade dynamics of the application, detecting the upgrade dynamics in time when the application upgrades, and informing an upgrade information of the application to the notification manager.
The storage management interface is used for transmitting the data of the application software when the application software is backed up, upgraded or downloaded so as to store the data.
And the electric quantity management interface is connected with the power supply driver and is used for completing the monitoring of the power consumption of the related application of the electronic equipment.
And the flow management interface is connected with the protocol driver and used for completing the monitoring of the application flow service condition related to the electronic equipment.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
A two-dimensional graphics engine is a drawing engine that draws two-dimensional drawings.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a display driver, a camera driver, an audio driver, a sensor driver, a protocol driver, a power driver and a storage driver.
Referring to fig. 3, fig. 3 is an interface schematic diagram of a display screen of an electronic device used by a user according to an embodiment of the present application.
The user may click on the "set" icon 301 in fig. 3, open the set interface, where the schematic diagram of the set interface is shown in the interface a in fig. 4, and fig. 4 is a schematic diagram of an application version backup function interface provided in the embodiment of the present application.
The user may click on the "application version backup" option shown in interface a of fig. 4 and then jump to a configured interface, interface B. The user can press one button of the interface B for a long time, and can pop up three function buttons, namely 'restore', 'add', 'delete'; the user clicks a 'restore' option to restore the application to a saved version, and the operation interface is shown as an interface A and an interface B in FIG. 5; fig. 5 is a schematic diagram of an operation interface for recovering an application version according to an embodiment of the present application.
The user clicks the 'add' option, and the version data of one application stored currently can be replaced by the version data of other applications; for example, the user selects to replace version data stored in the application a with one version data of the application D, the operation interfaces are shown as an interface B and an interface C in fig. 6, and fig. 6 is a schematic diagram of an operation interface for adding an application version according to an embodiment of the present application. The user selects application D and clicks the ok button to complete the addition operation.
The user clicks the 'delete' option to delete the application version data stored in the current application; the operation interfaces are shown in an interface a and an interface B in fig. 7, and fig. 7 is a schematic diagram of an operation interface for deleting an application version according to an embodiment of the present application. After the user clicks the delete button and confirms, the application is deleted and a default icon style is displayed, such as an icon of "please add application".
In the embodiment of the application, in the option of setting the application version backup in the application, the number of the applications capable of carrying out the application version backup can be set to be the default number of the system, and the user definition is supported. For example, the default number of applications capable of performing application version backup is 3, and the user can perform number setting according to the actual memory size of the electronic device. The number of the application version backups is limited, so that the version backups can be carried out for part of the applications, all the applications are prevented from being subjected to the version backups, and the occupation of unnecessary memory space is reduced.
Referring to fig. 8, fig. 8 is a flowchart of an application version backup according to an embodiment of the present application.
Firstly, setting an application version backup function in a setting application, and setting the application version backup function on a setting interface when the electronic equipment leaves a factory. For example, the number of supported version-backed applications may be set to 3.
Then, the user performs specific setting of the "application version backup" function, for example, the user may perform custom setting on the number of applications that can perform version backup according to the actual memory size of the electronic device, for example, the number is set to 5. The user may also select a specific application in the "application version backup" option interface, e.g., the user sets application a as an application for which version backup is possible.
The system side detects whether the application to be upgraded performs version upgrading operation in real time, and if the application to be upgraded is detected to perform version upgrading operation, the system side sends out notification of the detected application upgrading to perform subsequent popup operation so as to prompt a user whether to perform backup operation of application version data.
When the system side detects that the application to be upgraded is upgraded, the system side can detect whether the application backup space is occupied, if the application backup space is occupied, the popup operation is not performed, whether the user performs the operation of backing up the version data of the application which is not upgraded is not prompted, and the step of ending the backup is directly entered. If the system side detects that the application backup space is not fully occupied, the system side screens the applications according to the electricity quantity and the flow quantity used by each application in a preset time period, and screens a plurality of applications with more electricity quantity and more flow quantity used in the preset time period, namely, the applications with more frequency of use in the preset time period than a preset frequency standard. Judging whether the application to be upgraded is an application with the use frequency exceeding a preset frequency standard in a preset time period, if so, performing popup operation on the system side to prompt a user whether to perform version data backup of the application before upgrading; if not, the popup window operation is not performed, and the step of ending the backup is directly entered. After the popup window prompts the user, if the user selects to perform the backup operation of the application version data, the system side can save the version data before the application is upgraded to a preset directory. When a user opens an application version backup interface in a set application, a specific version number of the backup is displayed in the interface. So far, the application version backup is completed.
Judging whether the application is an application with the use frequency exceeding a preset frequency standard in a preset time period or not by calculating the use electric quantity and the flow of each application in the preset time period, namely a common application, and backing up the application if the application to be upgraded is the common application; if the application is not a common application, version backup of the application is not needed, so that unnecessary occupation of memory space can be avoided.
In addition, if the application to be upgraded is judged to be not a common application by the system, the popup window is not operated when the application is upgraded, if a user wants to backup the version of the application, the operation of adding the application can be performed on an application version backup option interface in the application, and the processor responds to an instruction of adding the current version data of the application to a backup storage space and backs up the current version data of the application.
In some possible implementations, the method for determining the preset time period may be implemented in the following manner:
reading the moment when the application to be upgraded is detected to exist last time, and recording the moment as the first time; reading the moment when the application to be upgraded is detected to exist at the time, and recording the moment as second time; the time period from the first time to the second time is determined as a preset time period.
In some possible implementations, the user may also perform a version backup operation on the application when there is no application to be upgraded. In order to distinguish from the application to be upgraded, the application is represented as a first application. Specifically, the user may manually add the first application to the interface of "application version backup" in the "setting", and the system side may backup the current version data of the first application.
Referring to fig. 9, fig. 9 is a flowchart of another application version backup according to an embodiment of the present application.
The main difference between fig. 9 and fig. 8 is that when the system side detects that there is an application to upgrade, the operation flow of whether to perform version backup for the upgraded application is different.
The first two steps are the same as the implementation process of the previous embodiment, and are not described here again. The system side detects whether an application to be upgraded exists in real time, if the application to be upgraded is detected, version upgrading operation is performed, notification of the detected application upgrading is sent out, subsequent popup operation is performed, and whether a user performs backup operation of application version data before upgrading is prompted.
And then the system side screens the applications according to the electricity quantity condition and the used flow condition of each application in a preset time period, and screens a plurality of applications with more electricity quantity and more used flow in the preset time period, namely, the applications with more use frequencies than a preset frequency standard in the preset time period. If the application to be upgraded is an application with the use frequency exceeding the preset frequency standard in the preset time period, the system side performs popup operation to prompt a user whether to perform version data backup of the application before upgrading. The user can choose whether to backup the application to be upgraded according to the actual demand.
If the user selects to backup the version data of the application to be upgraded, the system side can detect whether the application backup space is occupied, and if the application backup space is occupied, the system side can prompt the user in a popup window mode whether the data already stored in the application backup space needs to be replaced with the version data before the application to be upgraded is upgraded; or prompting the user whether to increase the application backup space, and after the user increases the application backup space, storing the version data before upgrading the application to be upgraded into the increased application backup space.
If the system side detects that the application backup space is not occupied, the system side can store the version data before the application is upgraded to a preset directory. When a user opens an application version backup interface in a set application, a specific version number of the backup is displayed in the interface. So far, the application version backup is completed.
Referring to fig. 10, fig. 10 is a flowchart of screening a common application according to an embodiment of the present application.
The system detects whether the application to be upgraded exists in real time, and when the application to be upgraded exists, the application version backup notification is triggered.
And then the system side reads the time of the last application upgrading notification and the time of the current application upgrading notification, and acquires a preset time. The system side calculates the comprehensive use value of the flow and the electric quantity of each application in a preset time period; sequencing the applications according to the sequence from the large value to the small value; if the application for version upgrading is any one of the preset number of applications which are ranked at the front, determining the application for version upgrading as the application with the use frequency exceeding the preset frequency standard in the preset time period, namely the common application. The preset number can be flexibly set according to actual conditions. The specific implementation process is as follows:
And sequencing the applications according to the numerical value of the flow used by the applications in a preset time period by the system side. Specifically, the system side performs normalization processing on the flow value used by each application in units of MB, for example, 1.2G is used by one application, the value obtained after the normalization processing is 1200, and the value of the flow used by each application in the preset time period is calculated according to the rule. And then according to the obtained flow values used by the applications, arranging the applications according to the sequence from the large value to the small value, and then selecting the application N before the flow use value. The number of specific screening is set according to the number of version backup carried out by the supporting application in the 'setting' application. For example, in the "set" application, N applications are supported to perform version backup, in this embodiment, N is taken as 5, and then an application with a flow value of 5 is screened, for example, the application with the front 5 is sequentially application a, application B, application C, application D, and application E, and the flow values corresponding to the application a1, B1, C1, D1, and E1 respectively.
And the system side sorts the applications according to the values of the electric quantity used by the applications in a preset time period. Specifically, the system side performs normalization processing on the electric quantity value used by each application in units of minutes, for example, one application uses 2 hours, the value obtained after the normalization processing is 120, and the value of the electric quantity used by each application in a preset time period is calculated according to the rule. And then according to the obtained electric quantity values used by the applications, arranging the electric quantity values in a sequence from large to small, and then selecting the application N before the electric quantity use value. Likewise, the number of specific screens is set according to the number of version backups performed by the supporting application in the "set" application. For example, 5 applications are supported in the 'set' application to carry out version backup, and the application with the power value of 5 before is screened out. For example, the application of the first 5 of the selected electric quantity values is application a, application D, application F, application C and application G in order, and the electric quantity values corresponding to the application a2, b2, C2, D2 and e2 are respectively.
The system side performs weighting processing on the flow values of the first 5 applications, namely, the flow values used by the application A, the application B, the application C, the application D and the application E are multiplied by the weighting value of 0.5 to obtain new values which are respectively 0.5a1,0.5b1,0.5c1,0.5d1 and 0.5e1. Similarly, the system side performs weighting processing on the electric quantity values of the first 5 applications, namely, the electric quantity values used by application A, application D, application F, application C and application G are multiplied by the weighting value of 0.5 to obtain new values of 0.5a2,0.5b2,0.5c2,0.5d2 and 0.5e2 respectively.
And then adding the weighted value of the flow value used by each application and the weighted value of the electric quantity value to obtain the comprehensive use value of the flow and the electric quantity of each application in a preset time period. The first 5 applications are selected as common applications according to the added values. The specific calculation process is as follows:
when the application B in the first 5 applications of the flow value is not the application of the first 5 applications of the electric quantity use value, assigning the electric quantity value of the application B as 0 for addition operation; and (5) in the 5 applications with the same electric quantity use value, the application F and the application G are not the application with the flow use value of 5, and the flow use values of the two applications are assigned to be 0 for addition operation. The flow value and the electric quantity value used by the application are multiplied by the weighted value, so that the common application is screened by comprehensively considering the condition of the flow used by the application and the condition of the electric quantity used by the application.
Referring to fig. 11, fig. 11 is a flowchart of an embodiment of the present application for recovering an application version.
The user opens the 'setting' application, finds the application which wants to restore the version in the 'application version backup' function interface in the 'setting' application, for example, selects the application A to restore the version, long presses the option box of the application A, pops up the 'restore' option, clicks the 'restore' button, then the system side can analyze the data of the version data stored under the preset directory, deletes the current application version, and restores the stored version.
After the system side successfully restores the saved version, the system side informs the user that the version data is successfully restored, and reminding operation can be performed in the forms of a bullet frame and the like. So far, the recovery version flow ends.
Referring to fig. 12A, fig. 12A is a schematic diagram of a module connection structure related to an implementation process of backup of an application version according to an embodiment of the present application.
The implementation process of the backup of the application version in the embodiment of the application relates to a module which mainly comprises an upgrade management module, a battery management module, a flow management module, a setting module, a notification management module, a backup detection module, a backup recovery module and a backup data management module, wherein a specific software framework is shown in fig. 12A. The upgrade management module is mainly used for detecting the upgrade dynamics of the application, and can monitor the upgrade dynamics of the application in time once the upgrade dynamics of the application exist; the battery management module is mainly used for supporting the inquiry of the use condition of the applied electric quantity; the flow management module is mainly used for supporting application flow management inquiry; the setting module is mainly used for adding an application version backup and adding a plurality of operation interfaces for a user to perform interface selection operation; the notification module is mainly used for adding an application upgrading backup notification, the notification is sent by the upgrading management module, and the backup detection module receives the notification; the backup detection module performs backup interface function addition, deletion and restoration management and common application refreshing; the backup recovery module is responsible for recovering the backup application version and managing the uninstallation and installation of the application version; the backup data management module is responsible for managing the storage and analysis of application backup data.
Referring to fig. 12B, fig. 12B is a timing chart of an application version backup according to an embodiment of the present application.
The implementation process of the application version backup in the embodiment of the application mainly relates to interaction of a plurality of main modules. The upgrade management module and the notification management module are two modules in the application program, and the backup detection module and the backup data management module may be two modules in the 'set' application. The timing diagram specifically comprises the following steps:
and S1201, the upgrade management module sends the message of the application version upgrade to the notification management module.
When the application is upgraded, the application upgrading management module triggers an application version upgrading instruction and transmits an application version upgrading message to the notification management module.
S1202, the notification management module sends a notification of whether the updated application is a common application to the backup detection module.
The notification management module receives the application version upgrading message and sends a notification for detecting whether the upgraded application is a common application to the backup detection module.
And S1203, detecting whether the updated application is a common application or not by the backup detection module.
And after receiving the notice of detecting whether the updated application is the common application, the backup detection module detects whether the updated application is the common application.
And S1204, the backup detection module performs application version backup confirmation and sends a confirmation message to the backup data management module.
When the backup detection module detects that the updated application is a common application, application version backup confirmation is carried out, and a confirmed message is sent to the backup data management module so that the backup data management module can backup the application version data.
And S1205, not backing up the application version.
And when the backup detection module detects that the updated application is not the common application, the version backup operation is not carried out on the updated application.
S1206, the backup data management module receives the application version backup confirmation message and sends a request for acquiring the application version backup data to the upgrade management module.
And after receiving the application version backup confirmation message, the backup data management module sends a request for acquiring the application version backup data to the upgrade management module so as to acquire the backup data.
S1207, the upgrade management module sends the data of the application version backup.
And after receiving the data request for acquiring the application version backup sent by the backup data management module, the upgrade management module sends the data needing to be backed up to the backup data management module.
S1208, the backup data management module stores the backup application version data under the appointed catalogue.
And after receiving the application version backup data sent by the upgrade management module, the backup data management module stores the application version backup data under a designated directory to complete the backup of the application version data.
According to the embodiment of the application, whether the updated application is a common application is detected when the application is updated, when the application is the common application, the application is automatically confirmed to need version backup, and the version backup data of the application is stored under a designated directory. Automatic backup of common applications is achieved. When the updated application is not the common application, the version backup of the application is not performed, and the memory space is saved.
Referring to fig. 13A, fig. 13A is a timing chart of another backup of an application version according to an embodiment of the present application.
The difference between this embodiment and the embodiment of fig. 12B is mainly that, in the embodiment of the present application, when a notification for detecting whether the updated application is a common application is sent to the backup detection module, it needs to determine whether the backup space of the application is full, and if so, the updated application is not backed up; if not, the operations of steps S1203-S1208 in FIG. 12B are performed. The implementation of the application specifically comprises the following steps:
And S1201, the upgrade management module sends the message of the application version upgrade to the notification management module.
When the application is upgraded, the application upgrading management module triggers an application version upgrading instruction and transmits an application version upgrading message to the notification management module.
S1202, the notification management module sends a notification of whether the updated application is a common application to the backup detection module.
The notification management module receives the application version upgrading message and sends a notification for detecting whether the upgraded application is a common application to the backup detection module.
S12021, the backup detection module detects whether the application backup space is occupied.
And after receiving the application version upgrading message, the backup detection module detects whether the application backup space is occupied.
S1203, detecting whether the updated application is a common application.
When the backup detection module detects that the application backup space is not occupied, the backup detection module detects whether the updated application is a common application after receiving a notification for detecting whether the updated application is the common application. And proceeds to steps S1204-S1208.
When the backup detection module detects that the application backup space is full, step S1205 is executed, that is, the application version is not backed up.
Before version backup is performed on the upgraded application, the embodiment of the application firstly judges whether the version backup space of the application is occupied, and if so, the version backup operation is not performed on the upgraded application, so that the occupation of excessive memory is further avoided.
Referring to fig. 13B, fig. 13B is a timing chart of another backup of an application version according to an embodiment of the present application.
The main difference between fig. 13B and fig. 13A is that when it is detected that there is an upgraded application, the implementation procedure of whether to make version backups for the upgraded application is different.
And S1201, the upgrade management module sends the message of the application version upgrade to the notification management module.
When the application is upgraded, the application upgrading management module triggers an application version upgrading instruction and transmits an application version upgrading message to the notification management module.
S1202, the notification management module sends a notification of whether the updated application is a common application to the backup detection module.
The notification management module receives the application version upgrading message and sends a notification for detecting whether the upgraded application is a common application to the backup detection module.
And S1203, detecting whether the updated application is a common application or not by the backup detection module.
After receiving the notification that the updated application is the common application, the backup detection module detects that the updated application is the common application, and continues to execute step S1204. If it is detected that the upgraded application is not a usual application, step S1205 is executed.
S1204, a backup detection module detects whether the application backup space is occupied.
The backup detection module detects whether the application backup space is occupied, and if not, step S12041 is executed; if the application backup space is full, step S12042 is performed.
S12041, the backup detection module performs application version backup confirmation and sends a confirmation message to the backup data management module.
If the backup space is not occupied, the operation of backup of the application version can be continuously executed. The application version backup confirmation can be performed, and the confirmation message is sent to the backup data management module.
S12042, the backup detection module prompts a user whether the data already stored in the application backup space needs to be replaced with the data of the last version of the upgrade application; or prompting the user whether to increase the application backup space.
When the backup space is full, the backup detection module prompts the user whether the data already stored in the application backup space needs to be replaced by the data of the last version of the upgrade application, so that the user can backup and store the data of the last version of the upgrade application in a mode of replacing the data of other backup application versions. Specifically, the system side responds to an instruction for replacing application version data stored in an application backup space; and replacing the application version data selected by the user with version data before the application for version upgrading is not upgraded.
In some possible implementations, the backup detection module may prompt the user whether to add an application backup space, and the user may store the last version data of the upgraded application into the added application backup space by adding the application backup space. Specifically, the system side responds to an instruction for increasing the application backup space, and increases the application backup space; and backing up version data before version upgrading of the application is not upgraded in the increased application backup space.
And S1205, not backing up the application version.
S1206, the backup data management module receives the application version backup confirmation message and sends a request for acquiring the application version backup data to the upgrade management module.
And after receiving the application version backup confirmation message, the backup data management module sends a request for acquiring the application version backup data to the upgrade management module so as to acquire the backup data.
S1207, the upgrade management module sends the data of the application version backup.
And after receiving the data request for acquiring the application version backup sent by the backup data management module, the upgrade management module sends the data needing to be backed up to the backup data management module.
S1208, the backup data management module stores the backup application version data under the appointed catalogue.
And after receiving the application version backup data sent by the upgrade management module, the backup data management module stores the application version backup data under a designated directory to complete the backup of the application version data.
Referring to fig. 14, fig. 14 is a timing chart of an application version recovery according to an embodiment of the present application.
The process of application version recovery mainly involves interaction of the backup data management module and the backup recovery module with the user, and the backup data management module and the backup recovery module may be two modules in the "set" application. The method specifically comprises the following steps:
s1401, the user triggers an application version recovery operation.
The user can select one application from the ' set ' application version backup ' interface, and long-press the application can pop up the ' restore ' button, and after the user clicks the ' restore ' button, the version restore operation of the application is triggered.
S1402, the backup data management module obtains the backup data of the application version and analyzes the data.
After triggering the operation of backup and restoration of a certain application version by a user, the backup data management module acquires and analyzes the backup data of the application version under a specified directory so as to facilitate the subsequent operation of restoring the application version.
S1403, the backup recovery module uninstalls the current version of the application.
After the user triggers the application version recovery operation, the backup recovery module starts unloading the current version data of the application in response to an instruction for recovering the application version data. This step may be performed before step S1402, after step S1402, or both S1402 and S1403. The embodiment of the present application will be described with the step S1403 performed as an example after the step S1402.
S1404, the backup recovery module reads the data analyzed by the backup data management module and installs the backup version of the application.
The backup restoring module reads the backup application version data analyzed by the backup data management module, and installs the backup version of the application, namely, restores the application by adopting the backup application version data.
S1405, the backup recovery module informs the user that the installation is successful.
After the backup recovery module successfully installs the version of an application backup, the backup application version can be prompted to the user in a popup window mode to be successfully installed.
The method provided by the embodiment of the application supports that when the unstable condition occurs after the application is upgraded, the user can restore the application to the stable version backed up before, and the problem that the use experience of the user is affected due to the instability of the application after the upgrade is avoided.
In some possible implementations, the user may also perform a delete operation on the saved application version. Specifically, the user may select the displayed second application in the "application version backup" option interface in the "setting" interface, and after the "delete" option is popped up by the bullet box, the user clicks the "delete" option, and the system side may delete the version data backed up by the second application.
The embodiment also provides an electronic device, which includes: a processor and a memory;
one or more computer programs are stored in the memory, the one or more computer programs comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the application backup method described in the above embodiments.
The present embodiment also provides a computer-readable storage medium, where the computer-readable storage medium includes instructions that, when executed on an electronic device, cause the electronic device to perform the relevant method steps described in the foregoing embodiments, so as to implement the application backup method described in the foregoing embodiments.
The present embodiment also provides a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the relevant method steps as in fig. 8-14 to implement the method of the above embodiments.
In the scheme provided by the embodiment of the application, backup of application version data is realized mainly by adopting the following steps:
and detecting whether the version upgrade is performed by the application in real time at the system side.
When the application performs version upgrading, if the application performing version upgrading is an application with the use frequency exceeding a preset frequency standard in a preset time period, prompting a user to perform application version data backup operation; that is, when the updated application is detected to be a common application, the user is prompted to backup the application version data.
After the user triggers the version data backup operation on the upgraded application, the system side responds to the application version data backup operation triggered by the user to backup version data before the application with the version upgrade is not upgraded. Therefore, whether the application is upgraded or not can be automatically detected, when the upgrading of the common application is detected, a user is prompted to backup the application version data, and when the situation that the version is unstable after the upgrading of the common application occurs, the user can timely fall back to the version which is stable before, and the user experience is not affected. The application can be screened in a targeted manner, and the storage space is not wasted.
Although the Android system is taken as an example for explanation, the basic principle of the embodiment of the application is also applicable to electronic devices based on iOS, windows and other operating systems.
The foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (12)
1. An application backup method, the method comprising:
detecting whether an application to be upgraded exists or not;
when an application to be upgraded exists and the application to be upgraded is an application with the use frequency exceeding a preset frequency standard in a preset time period, prompting a user to perform backup operation on application version data of the application to be upgraded;
and in response to the backup operation of the application version data of the application to be upgraded, backing up the version data of the application to be upgraded before upgrading.
2. The method of claim 1, wherein after the application upgrade, the method further comprises:
unloading a current version of the application in response to an instruction to restore application version data;
And recovering the application by adopting the backup version data of the application.
3. The method of claim 1, wherein the method for determining the application to be upgraded as the application whose frequency of use exceeds the preset frequency criterion in the preset time period specifically comprises:
acquiring the flow and the electric quantity used by each application in the preset time period;
calculating comprehensive use values of flow and electric quantity of each application in the preset time period;
sequencing the applications according to the sequence of the comprehensive use values from big to small;
if the application to be upgraded is any one of the applications in the preset number, which are ranked at the front, the application to be upgraded is determined to be the application with the use frequency exceeding the preset frequency standard in the preset time period.
4. The method according to claim 1, wherein the method further comprises:
and in response to an instruction for adding the current version data of the first application to the application backup space, backing up the current version data of the first application.
5. The method according to any one of claims 1-4, wherein if the application backup space is full, the backing up the version data before upgrading the application to be upgraded specifically includes:
Instructions responsive to replacing application version data stored in the application backup space;
and replacing the selected application version data with the version data before the application to be upgraded is upgraded.
6. The method according to any one of claims 1-4, wherein if the application backup space is full, the backing up the version data before upgrading the application to be upgraded specifically includes:
responding to an instruction for increasing the application backup space, and increasing the application backup space;
and backing up the version data before upgrading the application to be upgraded in the increased application backup space.
7. The method according to any one of claims 1-4, further comprising:
and deleting the second application version data stored in the backup storage space in response to an instruction for deleting the second application version data.
8. The method according to claim 1, wherein the method further comprises:
responding to an instruction triggering the backup of the application version data, and jumping to an operation interface of the backup of the application version data; the operation interface comprises operation options for adding, deleting and recovering the application version data.
9. The method according to claim 1, characterized in that the method of determining the preset time period comprises in particular:
Reading the moment when the application to be upgraded is detected to exist last time, and recording the moment as the first time;
reading the moment when the application to be upgraded is detected to exist at the time, and recording the moment as second time;
and determining the time period from the first time to the second time as a preset time period.
10. An electronic device, comprising: a processor and a memory;
wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the application backup method of any of claims 1-9.
11. A computer storage medium comprising computer instructions which, when run on an electronic device, perform the application backup method of any of claims 1-9.
12. A computer program product, characterized in that the computer performs the application backup method according to any of claims 1-9 when the computer program product is run on the computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211666310.8A CN116680118A (en) | 2022-12-23 | 2022-12-23 | Application backup method, electronic device, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211666310.8A CN116680118A (en) | 2022-12-23 | 2022-12-23 | Application backup method, electronic device, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116680118A true CN116680118A (en) | 2023-09-01 |
Family
ID=87787871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211666310.8A Pending CN116680118A (en) | 2022-12-23 | 2022-12-23 | Application backup method, electronic device, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116680118A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080307000A1 (en) * | 2007-06-08 | 2008-12-11 | Toby Charles Wood Paterson | Electronic Backup of Applications |
CN103631678A (en) * | 2013-12-02 | 2014-03-12 | 北京奇虎科技有限公司 | Backup method, restoring method and device for client software |
CN105744508A (en) * | 2016-03-28 | 2016-07-06 | 努比亚技术有限公司 | Game data backup method and mobile terminal |
CN109800105A (en) * | 2018-12-03 | 2019-05-24 | 华为技术有限公司 | A kind of data back up method and terminal device |
-
2022
- 2022-12-23 CN CN202211666310.8A patent/CN116680118A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080307000A1 (en) * | 2007-06-08 | 2008-12-11 | Toby Charles Wood Paterson | Electronic Backup of Applications |
CN103631678A (en) * | 2013-12-02 | 2014-03-12 | 北京奇虎科技有限公司 | Backup method, restoring method and device for client software |
CN105744508A (en) * | 2016-03-28 | 2016-07-06 | 努比亚技术有限公司 | Game data backup method and mobile terminal |
CN109800105A (en) * | 2018-12-03 | 2019-05-24 | 华为技术有限公司 | A kind of data back up method and terminal device |
Non-Patent Citations (3)
Title |
---|
李佳: "《计算机应用基础》", 30 April 2009, 天津大学出版社, pages: 283 * |
杨华: "存储备份系统――信息系统安全的重要保证", 电力信息化, no. 06 * |
柴洪峰: "《金融IT服务外包信息安全管理》", 31 January 2015, 上海交通大学出版社, pages: 115 - 117 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109766036B (en) | Message processing method and electronic equipment | |
WO2021042978A1 (en) | Theme switching method and theme switching apparatus | |
WO2020010584A1 (en) | Data recovery method for when restoring factory settings of terminal, and terminal | |
CN113067940B (en) | Method for presenting video when electronic equipment is in call and electronic equipment | |
CN114554005B (en) | Notification message management method and electronic equipment | |
CN113805797B (en) | Processing method of network resource, electronic equipment and computer readable storage medium | |
US12032938B2 (en) | Plug-in installation method, apparatus, and storage medium | |
CN113703894A (en) | Display method and display device of notification message | |
CN112835610A (en) | Method and device for constructing application program resource package and terminal equipment | |
CN115185652B (en) | Application optimization method and device and electronic equipment | |
CN115904297A (en) | Screen display detection method, electronic device and storage medium | |
CN113608753A (en) | Application uninstalling method, application recovery method, electronic device and storage medium | |
CN117724863A (en) | Target signal processing method and electronic equipment | |
CN116680118A (en) | Application backup method, electronic device, storage medium and program product | |
CN113467821A (en) | Application program repairing method, device, equipment and readable storage medium | |
CN117009023B (en) | Method for displaying notification information and related device | |
CN116662150B (en) | Application starting time-consuming detection method and related device | |
WO2024104137A1 (en) | Data recovery method capable of supporting data fusion and apparatus | |
CN116795476B (en) | Wallpaper deleting method and electronic equipment | |
CN117130808B (en) | Log acquisition method and electronic equipment | |
CN114244951B (en) | Method for opening page by application program, medium and electronic equipment thereof | |
CN116048629B (en) | System service switching method, control device, electronic equipment and storage medium | |
CN115904576B (en) | Wallpaper application method, electronic equipment and storage medium | |
WO2024193526A1 (en) | Backup method and device | |
CN117724640A (en) | Split screen display method, electronic equipment and storage medium |
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 |