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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000004044 response Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 12
- 230000001960 triggered effect Effects 0.000 abstract description 6
- 238000007726 management method Methods 0.000 description 73
- 238000004891 communication Methods 0.000 description 32
- 230000006854 communication Effects 0.000 description 32
- 230000006870 function Effects 0.000 description 32
- 238000001514 detection method Methods 0.000 description 30
- 238000013523 data management Methods 0.000 description 26
- 238000010586 diagram Methods 0.000 description 26
- 238000012545 processing Methods 0.000 description 17
- 230000008569 process Effects 0.000 description 14
- 230000005236 sound signal Effects 0.000 description 13
- 238000010295 mobile communication Methods 0.000 description 11
- 238000012790 confirmation Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 238000011084 recovery Methods 0.000 description 8
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 238000012216 screening Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000009434 installation Methods 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
- 230000008439 repair process Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000001360 synchronised effect Effects 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
Description
技术领域technical field
本申请涉及互联网技术领域,尤其涉及一种应用备份的方法、电子设备、存储介质及程序产品。The present application relates to the technical field of the Internet, and in particular to an application backup method, electronic equipment, storage media and program products.
背景技术Background technique
随着技术的不断发展,各种应用软件也在不断的迭代更新。某些应用软件在升级新的版本后,可能会出现版本不稳定的情况,例如出现闪退、卡顿、死机的情况,这将会影响用户的使用体验。With the continuous development of technology, various application software are also constantly iteratively updated. After some application software is upgraded to a new version, the version may become unstable, such as crashes, freezes, and crashes, which will affect the user experience.
现有技术中通常是等待第三方应用厂商进行应用版本修复升级,以此来解决应用软件升级后出现的版本不稳定的情况,但应用进行版本修复升级期间,用户仍然会受到应用版本不稳定情况的困扰,由此降低用户的使用体验。In the existing technology, it is usually waiting for the third-party application manufacturer to repair and upgrade the application version, so as to solve the unstable version of the application software after the upgrade, but during the version repair and upgrade of the application, the user will still suffer from the instability of the application version. troubles, thereby reducing the user experience.
发明内容Contents of the invention
本申请提供的一种应用备份的方法、电子设备、存储介质及程序产品,解决了现有技术中应用的版本升级后出现版本不稳定的情况,影响用户的使用体验的问题。The application backup method, electronic equipment, storage medium and program product provided by the present application solve the problem in the prior art that the version of the application is unstable after the version upgrade, which affects the user experience.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:
第一方面,本申请提供了一种应用备份方法,该方法包括:电子设备实时检测是否存在待升级应用;当存在待升级应用且待升级应用为预设时间段内使用频度超过预设频度标准的应用时,提示用户对待升级应用的应用版本数据进行备份操作;当用户选择对待升级应用的应用版本数据进行备份操作时,电子设备响应于对待升级应用的应用版本数据备份操作,将待升级应用升级前的版本数据进行备份。In the first aspect, the present application provides an application backup method, the method comprising: detecting whether there is an application to be upgraded by the electronic device in real time; When the application version data of the application to be upgraded is used, the user is prompted to back up the application version data of the application to be upgraded; when the user chooses to perform a backup operation on the application version data of the application to be upgraded, the electronic device will respond The data of the pre-upgrade version of the upgrade application is backed up.
如此可以自动对应用是否升级进行检测,并在检测到预设时间段内使用频度超过预设频度标准的应用,即检测到常用应用进行升级时,提示用户进行应用版本数据备份,可以在常用应用升级后出现版本不稳定的情况时,及时回退至之前稳定的版本,不会影响用户体验。还可以对进行版本数据备份的应用进行有针对性的筛选,不会浪费存储空间。In this way, it can automatically detect whether the application is upgraded, and when an application whose usage frequency exceeds the preset frequency standard is detected within a preset time period, that is, when it detects that a commonly used application is being upgraded, the user is prompted to backup the application version data. When the frequently used application is upgraded and the version is unstable, it can be rolled back to the previous stable version in time without affecting the user experience. It is also possible to perform targeted screening on applications that perform version data backup without wasting storage space.
在一些可能的实现方式中,在应用升级之后,该方法还包括:In some possible implementation manners, after the application is upgraded, the method further includes:
电子设备响应于恢复应用版本数据的指令,卸载该应用的当前版本;采用备份的该应用的版本数据对该应用进行恢复。由于对该应用之前的版本数据进行备份了,当应用升级后出现版本不稳定的情况时,用户可以利用备份的数据将该应用恢复至之前稳定的版本。In response to the instruction to restore the application version data, the electronic device uninstalls the current version of the application; restores the application using the backup version data of the application. Since the previous version data of the application is backed up, when the version becomes unstable after the application is upgraded, the user can use the backup data to restore the application to the previous stable version.
在一些可能的实现方式中,确定待升级应用为预设时间段内使用频度超过预设频度标准的应用的方法,具体可以采用以下方式:In some possible implementation manners, the method for determining that the application to be upgraded is an application whose usage frequency exceeds a preset frequency standard within a preset time period may be specifically as follows:
获取各应用在预设时间段内使用的流量和电量;然后计算各应用在预设时间段内流量和电量的综合使用值;将各应用按照综合使用值由大到小的顺序进行排序;如果待升级应用为排序靠前的预设数量个应用中的任意一个应用,则将待升级应用确定为预设时间段内使用频度超过预设频度标准的应用。如此可以根据各应用在预设时间段内流量和电量的综合使用情况,确定出使用频度超过预设频度标准的应用,即常用应用,以便进一步对常用应用的版本数据进行备份操作。Obtain the traffic and power used by each application within the preset time period; then calculate the comprehensive usage value of the traffic and power used by each application within the preset time period; sort the applications according to the comprehensive usage value from large to small; if If the application to be upgraded is any one of the top-ranked preset number of applications, the application to be upgraded is determined to be an application whose use frequency exceeds a preset frequency standard within a preset time period. In this way, applications whose usage frequency exceeds the preset frequency standard can be determined according to the comprehensive usage of traffic and power of each application within a preset time period, that is, commonly used applications, so as to further perform backup operations on version data of commonly used applications.
在一些可能的实现方式中,电子设备还可以响应于用户将第一应用当前的版本数据添加至应用备份空间的指令,将第一应用当前的版本数据进行备份。第一应用只是为了与待升级的应用进行区分,第一应用代表并不是将要进行版本升级的应用。如此,电子设备支持用户不仅可以对将要升级的应用升级前的版本数据进行备份,还可以在应用升级以后对应用当前的版本数据进行备份。In some possible implementation manners, the electronic device may also back up the current version data of the first application in response to the user's instruction to add the current version data of the first application to the application backup space. The first application is only used to distinguish it from the application to be upgraded, and the first application does not represent an application to be upgraded. In this way, the electronic device supports the user not only to back up the version data of the application to be upgraded before the upgrade, but also to back up the current version data of the application after the application is upgraded.
在一些可能的实现方式中,如果应用备份空间已满,将待升级应用升级前的版本数据进行备份可以采用以下方式实现:In some possible implementations, if the application backup space is full, backing up the version data of the application to be upgraded before the upgrade can be implemented in the following ways:
电子设备响应于替换应用备份空间中存储的应用版本数据的指令;将用户选中的应用版本数据替换成待升级应用升级前的版本数据。如此,可以采用替换其他备份的版本数据的方式,在应用备份空间已满的情况下,完成对待升级应用升级前的版本数据进行备份。The electronic device responds to the instruction of replacing the application version data stored in the application backup space; replaces the application version data selected by the user with the version data of the application to be upgraded before the upgrade. In this way, it is possible to replace the version data of other backups, and complete the backup of the version data of the application to be upgraded before the upgrade when the application backup space is full.
在一些可能的实现方式中,如果应用备份空间已满,将待升级应用升级前的版本数据进行备份还可以采用以下方式实现:In some possible implementations, if the application backup space is full, backing up the version data of the application to be upgraded before the upgrade can also be implemented in the following ways:
电子设备响应于增加应用备份空间的指令,增加应用备份空间;将待升级应用升级前的版本数据在增加的应用备份空间中进行备份。当应用备份空间被占满时,用户可以手动增加备份存储空间,利用新增加的应用备份空间进行待升级应用升级前的版本数据备份。The electronic device increases the application backup space in response to the instruction to increase the application backup space; and backs up the pre-upgrade version data of 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 use the newly added application backup space to back up the version data of the application to be upgraded before the upgrade.
在一些可能的实现方式中,电子设备响应于删除第二应用版本数据的指令,删除存储至备份存储空间的第二应用版本数据。第二应用为用户选中的应用。如此,用户可以在不需要对某一个应用已经备份的数据进行删除操作,以减少不必要的应用备份空间的占用。In some possible implementation manners, the electronic device deletes the second application version data stored in the backup storage space in response to the instruction to delete the second application version data. The second application is an application selected by the user. In this way, the user does not need to delete the data that has been backed up by a certain application, so as to reduce the occupation of unnecessary application backup space.
在一些可能的实现方式中,电子设备响应于用户触发的应用版本数据备份的指令,跳转至应用版本数据备份的操作界面;该操作界面包括对应用版本数据进行添加、删除、恢复操作。用户可以触发应用版本数据备份的指令,并在应用版本数据备份的操作界面对应用的版本数据进行添加、删除、恢复等操作,以实现对应用版本数据的管理。In some possible implementation manners, the electronic device jumps to an operation interface of application version data backup in response to a user-triggered instruction of application version data backup; the operation interface includes operations of adding, deleting and restoring application version data. The user can trigger the instruction of application version data backup, and perform operations such as adding, deleting, and restoring application version data on the operation interface of application version data backup, so as to realize the management of application version data.
在一些可能的实现方式中,确定预设时间段可以采用以下方式实现:In some possible implementation manners, determining the preset time period may be implemented in the following manner:
读取电子设备上一次检测到存在待升级应用的时刻,记为第一时间;读取电子设备本次检测到存在待升级应用的时刻,记为第二时间;将第一时间至第二时间的时间段确定为预设时间段。Read the last time when the electronic device detects that there is an application to be upgraded, and record it as the first time; read the time when the electronic device detects that there is an application to be upgraded this time, and record it as the second time; the first time to the second time The time period determined as the preset time period.
第二方面,本申请提供了一种电子设备,该电子设备包括处理器和存储器,其中,在存储器中存储有一个或多个计算机程序,一个或多个计算机程序包括指令;当指令被处理器执行时,使得电子设备执行如上述第一方面中任一种可能的设计中所述的应用备份方法。In a second aspect, the present application provides an electronic device, which includes a processor and a memory, wherein one or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor During execution, the electronic device is made to execute the application backup method described in any possible design of the first aspect above.
第三方面,本申请提供了一种计算机存储介质,该计算机存储介质包括计算机指令,当计算机指令在电子设备上运行时,电子设备执行如上述第一方面中任一种可能的设计中所述的应用备份方法。In a third aspect, the present application provides a computer storage medium, the computer storage medium includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes as described in any possible design of the first aspect above. The application backup method.
第四方面,本申请提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,计算机执行上述第一方面中任一种可能的设计中所述的应用备份方法。In a fourth aspect, the present application provides a computer program product. When the computer program product runs on a computer, the computer executes the application backup method described in any possible design of the first aspect above.
附图说明Description of drawings
图1为本申请实施例提供的一种电子设备的组成示例图;FIG. 1 is a composition example diagram of an electronic device provided in an embodiment of the present application;
图2为本申请实施例提供的一种电子设备的软件结构示例图;FIG. 2 is an example diagram of a software structure of an electronic device provided in an embodiment of the present application;
图3为本申请实施例提供的一种用户使用电子设备的显示屏的界面示意图;FIG. 3 is a schematic diagram of an interface of a display screen of an electronic device used by a user provided in an embodiment of the present application;
图4为本申请实施例提供的一种应用版本备份功能界面示意图;FIG. 4 is a schematic diagram of an application version backup function interface provided by the embodiment of the present application;
图5为本申请实施例提供的一种恢复应用版本的操作界面示意图;FIG. 5 is a schematic diagram of an operation interface for restoring an application version provided by an embodiment of the present application;
图6为本申请实施例提供的一种添加应用版本的操作界面示意图;FIG. 6 is a schematic diagram of an operation interface for adding an application version provided by an embodiment of the present application;
图7为本申请实施例提供的一种删除应用版本的操作界面示意图;FIG. 7 is a schematic diagram of an operation interface for deleting an application version provided by an embodiment of the present application;
图8为本申请实施例提供的一种进行应用版本备份的流程图;FIG. 8 is a flow chart of backing up an application version provided by an embodiment of the present application;
图9为本申请实施例提供的另一种进行应用版本备份的流程图;FIG. 9 is another flowchart for backing up an application version provided by the embodiment of the present application;
图10为本申请实施例提供的一种筛选常用应用的流程图;FIG. 10 is a flow chart of screening commonly used applications provided by the embodiment of the present application;
图11为本申请实施例提供的一种恢复应用版本的流程图;FIG. 11 is a flow chart of restoring an application version provided by an embodiment of the present application;
图12A为本申请实施例提供的一种应用版本数据备份实现过程涉及的模块连接结构示意图;FIG. 12A is a schematic diagram of the module connection structure involved in the implementation process of application version data backup provided by the embodiment of the present application;
图12B为本申请实施例提供的一种应用版本备份的时序图;FIG. 12B is a sequence diagram of an application version backup provided by the embodiment of the present application;
图13A为本申请实施例提供的另一种应用版本备份的时序图;FIG. 13A is a sequence diagram of another application version backup provided by the embodiment of the present application;
图13B为本申请实施例提供的又一种应用版本备份的时序图;FIG. 13B is a sequence diagram of another application version backup provided by the embodiment of the present application;
图14为本申请实施例提供的一种应用版本恢复的时序图。FIG. 14 is a sequence diagram of application version restoration provided by the embodiment of the present application.
具体实施方式Detailed ways
本申请说明书和权利要求书及附图说明中的术语“第一”、“第二”等是用于区别不同对象,而不是用于限定特定顺序。The terms "first", "second" and the like in the specification, claims and description of the drawings of the present application are used to distinguish different objects, rather than to limit a specific order.
为了下述各实施例的描述清楚简洁,首先给出相关技术的简要介绍:In order to make the description of the following embodiments clear and concise, a brief introduction of related technologies is first given:
如果系统的硬件或存储媒体发生故障,“备份”工具可以保护数据免受意外的损失。例如,可以使用“备份”创建硬盘中数据的副本,然后将数据存储到其他存储设备。备份存储媒体既可以是逻辑驱动器(如硬盘)、独立的存储设备(如可移动磁盘),也可以是由自动转换器组织和控制的整个磁盘库或磁带库。如果硬盘上的原始数据被意外删除或覆盖,或因为硬盘故障而不能访问该数据,可以从存档副本中还原该数据。The Backup tool protects data from accidental loss in the event of system hardware or storage media failure. For example, you can use Backup to create a copy of data on your hard drive and then store the data to another storage device. The backup storage medium can be a logical drive (such as a hard disk), an independent storage device (such as a removable disk), or an entire disk library or tape library organized and controlled by an autochanger. If the original data on the hard drive is accidentally deleted or overwritten, or becomes inaccessible because of a hard drive failure, the data can be restored from the archived copy.
随着技术的不断发展,各种应用软件也在不断的迭代更新。某些应用在升级新的版本后,可能会出现闪退、卡顿、死机的情况,需要将该应用回退到上一个稳定的版本。现有技术中通常会在每一个应用升级的时候,将每一个应用的上一版进行数据备份,以便在升级应用后出现版本不稳定的情况时,可以回退至上一个稳定的版本。由于现有技术中对每一个应用都进行备份,而实际使用时,并不是每一个应用都会在升级版本后出现不稳定的问题,由此存在电子设备的内存空间占用过多的问题。With the continuous development of technology, various application software are also constantly iteratively updated. Some applications may crash, freeze, or freeze after upgrading to a new version, and the application needs to be rolled back to the previous stable version. In the prior art, when each application is upgraded, the data of the previous version of each application is usually backed up, so that when the version becomes unstable after the application is upgraded, the previous stable version can be rolled back. Since each application is backed up in the prior art, in actual use, not every application will be unstable after an upgraded version, thus there is a problem that the memory space of the electronic device is too much occupied.
有鉴于此,本申请提供一种应用备份的方法,可以预先在电子设备的“设置”应用软件中,设置应用备份的选项,该选项支持用户自定义进行应用软件的备份,也可以自动检测使用频率较高的应用软件,在对这些使用频率较高的软件进行升级时,提示用户进行应用软件上一版本的备份,如此可以使得用户有选择的对应用软件进行备份,在升级后的应用软件出现不稳定的问题后,可以回退至之前的版本,并且节省了存储空间。In view of this, this application provides a method for application backup. The option of application backup can be set in the "Settings" application software of the electronic device in advance. This option supports user-defined backup of application software, and can also be automatically detected and used. For the application software with high frequency, when upgrading the software with high frequency of use, the user is prompted to back up the previous version of the application software, so that the user can selectively back up the application software, and the upgraded application software After an unstable problem occurs, you can roll back to the previous version and save storage space.
在一些实施例中,电子设备可以是手机、平板电脑、桌面型、膝上型、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、手持计算机、上网本、个人数字助理(Personal Digital Assistant,PDA)、可穿戴电子设备、智能手表等设备,本申请对上述电子设备的具体形式不做特殊限制。在本实施例中,电子设备的结构可以如图1所示,图1为本申请实施例提供的一种电子设备的结构示意图。In some embodiments, the electronic device may be a cell phone, tablet computer, desktop, laptop, notebook computer, Ultra-mobile Personal Computer (UMPC), handheld computer, netbook, personal digital assistant (Personal Digital Assistant) Assistant, PDA), wearable electronic devices, smart watches and other devices, this application does not specifically limit the specific forms of the above electronic devices. In this embodiment, the structure of the electronic device may be as shown in FIG. 1 , and FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
如图1所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,用户标识模块(subscriber identification module,SIM)卡接口195,流量管理模块196,以及存储管理模块197等。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 charging management module 140, a power management module 141, a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, a subscriber identification module (subscriber identification module, SIM) card interface 195, a traffic management module 196, a storage management module 197, and the like.
可以理解的是,本实施例示意的结构并不构成对电子设备的具体限定。在另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It should be understood that the structure shown in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。例如,在本申请中,处理器检测是否有应用进行版本升级;当存在应用进行版本升级时,如果进行版本升级的应用为预设时间段内使用频度超过预设频度标准的应用,则提示用户进行应用版本数据备份操作;并且处理器响应于用户触发的进行应用版本数据备份操作,将所述进行版本升级的应用未升级前的版本数据进行备份。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. For example, in this application, the processor detects whether there is an application for version upgrade; when there is an application for version upgrade, if the application undergoing version upgrade is an application whose use frequency exceeds the preset frequency standard within a preset time period, then Prompting the user to perform an application version data backup operation; and in response to the user-triggered application version data backup operation, the processor backs up the pre-upgrade version data of the application undergoing version upgrade.
其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic equipment. The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in 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 use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or A universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合传感器180中的传感器,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180中的触摸传感器,使处理器110与触摸传感器通过I2C总线接口通信,实现电子设备的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can be respectively coupled to the sensor, the charger, the flashlight, the camera 193 and the like in the sensor 180 through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor in the touch sensor 180 through the I2C interface, so that the processor 110 and the touch sensor communicate through the I2C bus interface to realize the touch function of the electronic device.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. 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 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (displayserial interface, DSI), and the like. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device. The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备充电,也可以用于电子设备与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transmit data between the electronic device and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备的结构限定。在本申请另一些实施例中,电子设备也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship among the modules shown in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。在一些实施例中,电源管理模块141还用于检测电子设备中各应用的耗电量情况。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device. In some embodiments, the power management module 141 is also used to detect the power consumption of each application in the electronic device.
流量管理模块196用于接收处理器110发送的流量检测的指令,检测电子设备各应用软件在一段时间内消耗的流量。The traffic management module 196 is configured to receive the traffic detection instruction sent by the processor 110, and detect the traffic consumed by each application software of the electronic device within a period of time.
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system ( Global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code divisionmultiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(globalnavigation satellite system,GLONASS),北斗卫星导航系统(beidou navigationsatellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (globalnavigation satellite system, GLONASS), a Beidou satellite navigation system (beidou navigationsatellite system, BDS), a quasi-zenith satellite system (quasi-zenith) satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are 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.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oled,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light emitting diode). AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oled, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
电子设备的显示屏194上可以显示一系列图形用户界面(graphical userinterface,GUI),这些GUI都是该电子设备的主屏幕。一般来说,电子设备的显示屏194的尺寸是固定的,只能在该电子设备的显示屏194中显示有限的控件。控件是一种GUI元素,它是一种软件组件,包含在应用程序中,控制着该应用程序处理的所有数据以及关于这些数据的交互操作,用户可以通过直接操作(direct manipulation)来与控件交互,从而对应用程序的有关信息进行读取或者编辑。一般而言,控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。A series of graphical user interfaces (graphical user interface, GUI) can be displayed on the display screen 194 of the electronic device, and these GUIs are the main screen of the electronic device. Generally, the size of the display screen 194 of the electronic device is fixed, and only limited controls can be displayed on the display screen 194 of the electronic device. A control is a GUI element, which is a software component contained in an application that controls all data processed by the application and the interaction of these data. Users can interact with the control through direct manipulation. , so as to read or edit the relevant information of the application. Generally speaking, controls may include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and Widgets.
电子设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
视频编解码器用于对数字视频压缩或解压缩。电子设备可以支持一种或多种视频编解码器。这样,电子设备可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. An electronic device may support one or more video codecs. In this way, the electronic device can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of electronic devices can be realized through NPU, such as: image recognition, face recognition, speech recognition, text understanding, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。例如,在本实施例中,处理器110可以通过执行存储在内部存储器121中的指令,进行重新计算视频流的第一显示时间戳以及重新计算音频流的第二显示时间戳。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 121 . For example, in this embodiment, the processor 110 may recalculate the first display time stamp of the video stream and recalculate the second display time stamp of the audio stream by executing instructions stored in the internal memory 121 . The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 110 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into 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 set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. The electronic device can listen to music through speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device receives a call or a voice message, it can listen to the voice by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备可以设置至少一个麦克风170C。在另一些实施例中,电子设备可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The electronic device may be provided with at least one microphone 170C. In other embodiments, the electronic device can be provided with two microphones 170C, which can also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device can also be equipped with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D may be the USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
电子设备的操作系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备的软件结构。The operating system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In this embodiment of the present application, the Android system with layered architecture is taken as an example to illustrate the software structure of the electronic device.
图2是本申请实施例的电子设备的软件结构框图。FIG. 2 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,设置,蓝牙,音乐,视频,短信息等应用程序。The application layer can consist of a series of application packages. As shown in Figure 2, the application package may include applications such as camera, gallery, calendar, call, map, navigation, setting, Bluetooth, music, video, and short message.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等,升级管理模块,存储管理接口,电量管理接口,流量管理接口。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc., upgrade management module, storage management interface, power management interface, traffic management interface.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of electronic devices. For example, the management of call status (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
升级管理模块主要用于检测应用的升级动态,当有应用进行升级时能够及时检测出来,并将应用升级的消息告知给通知管理器。The upgrade management module is mainly used to detect the upgrade dynamics of the application, and can detect in time when an application is upgraded, and notify the notification manager of the application upgrade message.
存储管理接口用于在进行应用软件备份、升级或下载时,将该应用软件的数据进行传输,以便存储数据。The storage management interface is used to transmit the data of the application software so as to store the data when the application software is backed up, upgraded or downloaded.
电量管理接口,与电源驱动连接,用于完成电子设备相关应用耗电量监测。The power management interface is connected with the power driver to complete the power consumption monitoring of electronic equipment related applications.
流量管理接口,与协议驱动连接,用于完成电子设备相关应用流量使用情况监测。The traffic management interface is connected with the protocol driver, and is used to complete the monitoring of the traffic usage of related applications of electronic equipment.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
二维图形引擎是二维绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,协议驱动,电源驱动,存储驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, a protocol driver, a power driver, and a storage driver.
参见图3,图3为本申请实施例提供的一种用户使用电子设备的显示屏的界面示意图。Referring to FIG. 3 , FIG. 3 is a schematic diagram of an interface of a user using a display screen of an electronic device provided in an embodiment of the present application.
用户可以点击图3中“设置”的图标301,打开设置的界面,设置界面的示意图如图4中界面A所示,图4为本申请实施例提供的一种应用版本备份功能界面示意图。The user can click the "Settings" icon 301 in FIG. 3 to open the setting interface. The schematic diagram of the setting interface is shown in interface A in FIG. 4, which is a schematic diagram of an application version backup function interface provided by the embodiment of the present application.
用户可以点击图4中界面A所示的“应用版本备份”选项,然后跳转到一个配置的界面,即界面B。用户可以长按界面B中某一个应用的按钮,会弹出三个功能按钮,分别为“恢复”、“添加”、“删除”;用户点击“恢复”选项,可以将该应用恢复至保存的版本,操作界面如图5中界面A和界面B所示;图5为本申请实施例提供的一种恢复应用版本的操作界面示意图。The user can click the "application version backup" option shown in interface A in Figure 4, and then jump to a configuration interface, that is, interface B. The user can long press the button of an application in interface B, and three function buttons will pop up, namely "Restore", "Add", and "Delete"; the user can click the "Restore" option to restore the application to the saved version , the operation interface is as shown in interface A and interface B in FIG. 5; FIG. 5 is a schematic diagram of an operation interface of a recovery application version provided by an embodiment of the present application.
用户点击“添加”选项,可以将当前保存的某一个应用的版本数据替换成其他应用的版本数据;例如,用户选择将应用A保存的版本数据替换成应用D的某一个版本数据,操作界面如图6中界面B和界面C所示,图6为本申请实施例提供的一种添加应用版本的操作界面示意图。用户选择应用D,点击确定按钮完成该添加操作。The user clicks the "Add" option to replace the currently saved version data of an application with the version data of other applications; for example, the user chooses to replace the version data saved by application A with a certain version data of application D. As shown in interface B and interface C in FIG. 6 , FIG. 6 is a schematic diagram of an operation interface for adding an application version provided by an embodiment of the present application. The user selects application D, and clicks the OK button to complete the adding operation.
用户点击“删除”选项,可以删除当前应用保存的应用版本数据;操作界面如图7中界面A和界面B所示,图7为本申请实施例提供的一种删除应用版本的操作界面示意图。用户点击删除按钮并确认后,该应用被删除,并显示默认的图标样式,例如显示“请添加应用”的图标。The user clicks the "Delete" option to delete the application version data saved by the current application; the operation interface is shown in interface A and interface B in Figure 7, and Figure 7 is a schematic diagram of an operation interface for deleting an application version provided by the embodiment of this application. After the user clicks the delete button and confirms, the application is deleted and the default icon style is displayed, for example, an icon showing "Please add an application".
本申请实施例中,在“设置”应用中的“应用版本备份”选项中,设置可进行应用版本备份的应用的个数可以采用系统默认的个数,也支持用户自定义。例如,系统默认的可进行应用版本备份的应用的个数为3个,用户可根据电子设备实际内存的大小进行个数的设置。对于应用版本备份的个数进行限定,如此可以针对部分应用进行版本备份,避免了对所有应用都进行版本备份,减少了不必要内存空间的占用。In this embodiment of the application, in the "App Version Backup" option in the "Settings" application, the number of applications that can be set for application version backup can be the system default number, and user-defined is also supported. For example, the default number of applications that can perform application version backup is 3, and the user can set the number according to the size of the actual memory of the electronic device. The number of application version backups is limited, so that version backups can be performed for some applications, avoiding version backups for all applications, and reducing unnecessary memory space occupation.
参见图8,图8为本申请实施例提供的一种进行应用版本备份的流程图。Referring to FIG. 8, FIG. 8 is a flow chart of backing up an application version provided by an embodiment of the present application.
首先对“设置”应用中的“应用版本备份”功能进行设置,一般电子设备在出厂的时候对“设置”界面进行“应用版本备份”的设置。例如,可以设置支持的可进行版本备份的应用的数量,可以设置为3个。First of all, set the "application version backup" function in the "settings" application. Generally, when the electronic device leaves the factory, the "application version backup" setting is performed on the "settings" interface. For example, the number of supported applications that can be backed up can be set to three.
然后用户进行“应用版本备份”功能的具体设置,例如,用户可以根据电子设备的实际内存大小,对可进行版本备份的应用的数量进行自定义设置,例如将数量设置为5个。用户还可以在“应用版本备份”选项界面选择具体的应用,例如,用户将应用A设置为可进行版本备份的应用。Then the user makes specific settings for the "application version backup" function. For example, the user can customize 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 can also select a specific application on the "application version backup" option interface, for example, the user sets application A as an application that can perform version backup.
系统侧实时检测是否有待升级应用进行版本升级操作,如果检测到有待升级应用进行版本升级操作,发出检测到的应用升级的通知,以进行后续的弹窗操作,以提示用户是否进行应用版本数据的备份操作。The system side detects in real time whether the application to be upgraded performs version upgrade operation. If it detects that the application to be upgraded performs the version upgrade operation, a notification of the detected application upgrade is sent for subsequent pop-up operations to prompt the user whether to perform application version data update. backup operation.
当系统侧检测到有待升级应用进行升级时,系统侧会检测应用备份空间是否被占满,如果应用备份空间被占满了,则不进行弹窗操作,不提示用户是否进行该应用的未升级的版本数据备份的操作,直接进入到备份结束的步骤。如果系统侧检测到应用备份空间未被占满,接着系统侧会根据各应用在预设时间段内使用的电量的情况、使用的流量的情况对应用进行筛选,筛选出在预设时间段内使用电量和使用流量都比较多的几个应用,也就是预设时间段内使用频度超过预设频度标准的应用。判断进行升级的应用是否是预设时间段内使用频度超过预设频度标准的应用,如果是,则系统侧进行弹窗操作,以提示用户是否进行该应用的升级前的版本数据备份;如果不是,则不进行弹窗操作,直接进入备份结束的步骤。弹出弹窗提示用户以后,如果用户选择了进行应用版本数据备份操作,则系统侧会将该应用升级前的版本数据保存到预设的目录下。当用户打开“设置”应用中的“应用版本备份”界面后,在该界面中会显示备份的具体版本号。至此,应用版本备份完成。When the system side detects that an application to be upgraded needs to be upgraded, the system side will detect whether the application backup space is full. If the application backup space is full, no pop-up operation will be performed, and the user will not be prompted whether to upgrade the application. The operation of backing up version data directly enters the step of ending the backup. If the system side detects that the application backup space is not fully occupied, then the system side will filter the applications according to the power consumption and traffic conditions of each application within the preset time period, and filter out the applications within the preset time period. Several applications that use a lot of power and traffic, that is, applications whose usage frequency exceeds a preset frequency standard within a preset time period. Judging whether the application to be upgraded is an application whose use frequency exceeds the preset frequency standard within a preset time period, and if so, the system side performs a pop-up window operation to prompt the user whether to backup the version data of the application before the upgrade; If not, then do not perform the pop-up operation, and directly enter the step of the end of the backup. After a pop-up window pops up to prompt the user, if the user chooses to back up the application version data, the system will save the version data of the application before the upgrade to the preset directory. When the user opens the "App Version Backup" interface in the "Settings" application, the specific version number of the backup will be displayed in this interface. So far, the application version backup is complete.
通过计算在预设时间段内,各应用使用电量和流量的情况,来判断该应用是否是预设时间段内使用频度超过预设频度标准的应用,即常用应用,如果待升级应用是常用应用就可以对该应用进行备份;如果该应用不是常用应用,就可以不对该应用进行版本备份,如此可以避免不必要的内存空间的占用。By calculating the power and traffic usage of each application within the preset time period, it is judged whether the application is an application whose usage frequency exceeds the preset frequency standard within the preset time period, that is, a commonly used application. If the application to be upgraded is If the application is frequently used, the application can be backed up; if the application is not a frequently used application, the version backup of the application can not be performed, so as to avoid unnecessary occupation of memory space.
此外,如果待升级应用被系统判定为不是常用应用,在该应用进行升级的时候,就不进行弹窗的操作,如果用户想对该应用的版本进行备份,可以在“设置”应用中的“应用版本备份”选项界面进行添加该应用的操作,处理器响应于将应用当前的版本数据添加至备份存储空间的指令,并将应用当前的版本数据进行备份。In addition, if the application to be upgraded is determined by the system as not a commonly used application, when the application is upgraded, the pop-up operation will not be performed. If the user wants to back up the version of the application, he can go to the " The application version backup" option interface performs the operation of adding the application, and the processor responds to the instruction of adding the current version data of the application to the backup storage space, and backs up the current version data of the application.
在一些可能的实现方式中,预设时间段的确定方法可以以下方式实现:In some possible implementation manners, the method for determining the preset time period may be implemented in the following manner:
读取上一次检测到存在待升级应用的时刻,记为第一时间;读取本次检测到存在待升级应用的时刻,记为第二时间;将第一时间至第二时间的时间段确定为预设时间段。Read the last time when the application to be upgraded is detected, and record it as the first time; read the time when the application to be upgraded is detected this time, and record it as the second time; determine the time period from the first time to the second time for the preset time period.
在一些可能的实现方式中,当没有待升级应用时,用户同样可以对应用进行版本备份操作。为了区别于待升级的应用,将该应用以第一应用表示。具体地,用户可以手动将第一应用添加到“设置”中“应用版本备份”的界面中,系统侧会将该第一应用当前的版本数据进行备份。In some possible implementation manners, when there is no application to be upgraded, the user can also perform a version backup operation on the application. In order to distinguish it from the application to be upgraded, the application is represented as the first application. Specifically, the user can manually add the first application to the interface of "application version backup" in "settings", and the system side will back up the current version data of the first application.
参见图9,图9为本申请实施例提供的另一种进行应用版本备份的流程图。Referring to FIG. 9 , FIG. 9 is another flow chart for backing up an application version provided by an embodiment of the present application.
图9与图8的主要区别是系统侧检测到有应用进行升级时,对于升级的应用是否进行版本备份的操作流程不同。The main difference between FIG. 9 and FIG. 8 is that when the system side detects that an application is being upgraded, the operation process of whether to perform version backup for the upgraded application is different.
前两个步骤与上一实施例的实现过程相同,在此不再赘述。系统侧实时检测是否有待升级的应用,如果检测到有待升级的应用即将进行版本升级操作,发出检测到的应用升级的通知,以进行后续的弹窗操作,以提示用户是否进行升级前的应用版本数据的备份操作。The implementation process of the first two steps is the same as that of the previous embodiment, and will not be repeated here. The system side detects in real time whether there is an application to be upgraded. If it is detected that the application to be upgraded is about to undergo a version upgrade operation, a notification of the detected application upgrade is sent for subsequent pop-up operations to prompt the user whether to upgrade the application version before Data backup operations.
然后系统侧会根据各应用在预设时间段内使用的电量的情况、使用的流量的情况对应用进行筛选,筛选出在预设时间段内使用电量和使用流量都比较多的几个应用,也就是预设时间段内使用频度超过预设频度标准的应用。如果待升级的应用是预设时间段内使用频度超过预设频度标准的应用,则系统侧进行弹窗操作,以提示用户是否进行该应用的升级前的版本数据备份。用户可以根据实际需求选择是否对待升级的应用进行备份。Then the system side will filter the applications according to the power consumption and traffic usage of each application within the preset time period, and select several applications that use more power and traffic during the preset time period. That is, applications whose usage frequency exceeds a preset frequency standard within a preset time period. If the application to be upgraded is an application whose usage frequency exceeds the preset frequency standard within a preset time period, the system side performs a pop-up window operation to prompt the user whether to backup the version data of the application before the upgrade. Users can choose whether to back up the application to be upgraded according to actual needs.
如果用户选择了对待升级的应用的版本数据进行备份,则系统侧会检测应用备份空间是否被占满,如果应用备份空间被占满了,系统侧可以以弹窗的形式提示用户是否需要将已经存储在应用备份空间中的数据替换成待升级应用升级前的版本数据;或者提示用户是否增加应用备份空间,待用户增加应用备份空间后,将待升级应用升级前的版本数据存储至增加的应用备份空间中。If the user chooses to back up the version data of the application to be upgraded, the system will detect whether the application backup space is full. Replace the data stored in the application backup space with the version data of the application to be upgraded before the upgrade; or prompt the user whether to increase the application backup space. After the user increases the application backup space, store the version data of the application to be upgraded before the upgrade to the added application in the backup space.
如果系统侧检测到应用备份空间未被占满,则系统侧会将该应用升级前的版本数据保存到预设的目录下。当用户打开“设置”应用中的“应用版本备份”界面后,在该界面中会显示备份的具体版本号。至此,应用版本备份完成。If the system side detects that the application backup space is not full, the system side will save the version data of the application before the upgrade to a preset directory. When the user opens the "App Version Backup" interface in the "Settings" application, the specific version number of the backup will be displayed in this interface. So far, the application version backup is complete.
参见图10,图10为本申请实施例提供的一种筛选常用应用的流程图。Referring to FIG. 10 , FIG. 10 is a flow chart of screening commonly used applications provided by an embodiment of the present application.
系统实时检测是否存在待升级的应用,当存在待升级应用即将进行升级时,触发应用版本备份通知。The system detects in real time whether there is an application to be upgraded, and when there is an application to be upgraded that is about to be upgraded, an application version backup notification is triggered.
然后系统侧读取上次应用升级通知的时间和本次应用升级通知的时间,获取到一段预设时间。系统侧计算各应用在预设时间段内流量和电量的综合使用值;并将各应用按照综合使用值由大到小的顺序进行排序;若进行版本升级的应用为排序靠前的预设数量个应用中的任意一个应用,则将进行版本升级的应用确定为预设时间段内使用频度超过预设频度标准的应用,即常用应用。预设数量可以根据实际情况进行灵活设定。具体实现过程如下:Then the system side reads the time of the last application upgrade notification and the time of this application upgrade notification, and obtains a preset time. The system side calculates the comprehensive usage value of the flow and power of each application within the preset time period; and sorts the applications according to the order of the comprehensive usage value from large to small; any one of the applications, the application undergoing version upgrade is determined as an application whose use frequency exceeds the preset frequency standard within a preset time period, that is, a commonly used application. The preset quantity can be flexibly set according to the actual situation. The specific implementation process is as follows:
系统侧根据预设时间段内,各应用使用流量的数值,对各应用进行排序。具体地,系统侧会将各应用使用的流量值以MB为单位进行归一化处理,例如,某一个应用使用了1.2G,归一化处理后得到的数值就是1200,以这个规则计算各应用在预设时间段内使用流量的数值。然后根据得到的各应用使用的流量数值,将应用按照数值由大到小的顺序进行排列,然后选取出流量使用值前N的应用。具体筛选的个数根据“设置”应用中的支持应用进行版本备份的个数进行设置。例如“设置”应用中支持N个应用进行版本备份,本实施例中将N取值为5,则筛选出流量值前5的应用,例如,前5的应用依次为应用A、应用B、应用C、应用D和应用E,分别对应的流量值为a1,b1,c1,d1和e1。The system side sorts each application according to the numerical value of traffic used by each application within a preset time period. Specifically, the system side will normalize the traffic value used by each application in MB. For example, if an application uses 1.2G, the value obtained after normalization processing is 1200. Use this rule to calculate the traffic value of each application. The numerical value of the flow rate used during the preset time period. Then, according to the obtained traffic values used by each application, the applications are arranged in descending order of the values, and then the applications with the top N traffic usage values are selected. The number of specific filters is set according to the number of version backups performed by supported applications in the "Settings" application. For example, the "Settings" application supports N applications for version backup. In this embodiment, if N is set to a value of 5, the applications with the top 5 traffic values are filtered out. For example, the top 5 applications are application A, application B, application C. Application D and application E respectively correspond to flow values a1, b1, c1, d1 and e1.
系统侧根据预设时间段内,各应用使用电量的数值,对各应用进行排序。具体地,系统侧会将各应用使用的电量值以分钟为单位进行归一化处理,例如,某一个应用使用了2个小时,归一化处理后得到的数值就是120,以这个规则计算各应用在预设时间段内使用电量的数值。然后根据得到的各应用使用的电量数值,按照数值由大到小的顺序进行排列,然后选取出电量使用值前N的应用。同样地,具体筛选的个数根据“设置”应用中的支持应用进行版本备份的个数进行设置。例如“设置”应用中支持5个应用进行版本备份,则筛选出电量值前5的应用。例如,筛选出的电量值前5的应用依次为应用A、应用D、应用F、应用C和应用G,分别对应的电量值为a2,b2,c2,d2和e2。The system side sorts each application according to the value of power consumption of each application within a preset time period. Specifically, the system will normalize the power value used by each application in minutes. For example, if an application has been used for 2 hours, the normalized value will be 120. The amount of power used by the app over a preset period of time. Then, according to the obtained electric power values used by each application, arrange them in descending order of the numerical values, and then select the applications with the highest electric power usage values. Similarly, the number of specific screenings is set according to the number of version backups performed by the supported applications in the "Settings" application. For example, the "Settings" application supports 5 applications for version backup, and the applications with the top 5 battery values are filtered out. For example, the top 5 applications of the screened power values are application A, application D, application F, application C and application G in sequence, and the corresponding power values are a2, b2, c2, d2 and e2 respectively.
系统侧将筛选出来的前5个应用的流量值做加权处理,即应用A、应用B、应用C、应用D和应用E使用的流量值乘以加权值0.5,得到新的数值,分别为0.5a1,0.5b1,0.5c1,0.5d1和0.5e1。同样地,系统侧将筛选出来的前5个应用的电量值做加权处理,即应用A、应用D、应用F、应用C和应用G使用的电量值乘以加权值0.5,得到新的数值,分别为0.5a2,0.5b2,0.5c2,0.5d2和0.5e2。On the system side, the traffic values of the first five applications screened out are weighted, that is, the traffic values used by application A, application B, application C, application D, and application E are multiplied by a weighted value of 0.5 to obtain new values, which are 0.5 respectively a1, 0.5b1, 0.5c1, 0.5d1 and 0.5e1. Similarly, the system side weights the power values of the first five applications screened out, that is, the power values used by application A, application D, application F, application C, and application G are multiplied by a weighted value of 0.5 to obtain a new value. 0.5a2, 0.5b2, 0.5c2, 0.5d2 and 0.5e2 respectively.
然后将各应用使用的流量值加权后的数值和电量值加权后的数值进行相加,得到各应用在预设时间段内流量和电量的综合使用值。按照相加后的值选出前5个应用作为常用应用。具体计算过程如下:Then, the weighted value of the traffic value used by each application and the weighted value of the power value are added to obtain the comprehensive usage value of the traffic and power of each application within a preset time period. Select the top 5 applications as frequently used applications according to the added value. The specific calculation process is as follows:
当流量值前5个应用中的应用B并不是电量使用值前5的应用,将应用B的电量值赋值为0进行相加运算;同理电量使用值前5个应用中的应用F、应用G并不是流量使用值前5的应用,将这两个应用的流量使用值赋值为0进行相加运算。这样将应用使用的流量值、电量值乘以加权值,是为了综合考虑应用使用流量的情况和使用电量的情况来筛选出常用应用。When the application B among the top 5 applications in the flow value is not the top 5 application in the power consumption value, assign the power value of application B to 0 and perform the addition operation; similarly, the application F and the application in the top 5 applications in the power consumption value G is not the application with the top 5 traffic usage values, and the traffic usage values of these two applications are assigned a value of 0 for addition. In this way, the traffic value and power value used by the application are multiplied by the weighted value in order to screen out commonly used applications by comprehensively considering the traffic usage and power usage of the application.
参见图11,图11为本申请实施例提供的一种恢复应用版本的流程图。Referring to FIG. 11 , FIG. 11 is a flow chart of restoring an application version provided by an embodiment of the present application.
用户打开“设置”应用,在“设置”应用中的“应用版本备份”功能界面,找到想要恢复版本的应用,例如,选中应用A想要进行版本恢复,长按应用A的选项框,弹出“恢复”的选项,点击“恢复”按钮,则系统侧会将保存在预设目录下的版本数据进行数据解析,并删除当前应用版本,恢复保存的版本。The user opens the "Settings" app, and in the "App Version Backup" function interface of the "Settings" app, finds the app that wants to restore the version. For example, select app A and want to restore the version, long press the option box of app A, and a For the "Restore" option, click the "Restore" button, and the system will analyze the version data saved in the preset directory, delete the current application version, and restore the saved version.
系统侧将保存的版本恢复成功后,通知用户版本数据恢复成功,可以以弹框等形式进行提醒操作。至此,恢复版本流程结束。After the system side restores the saved version successfully, it notifies the user that the version data is successfully restored, and the reminder operation can be performed in the form of a bullet box or the like. At this point, the process of restoring the version is over.
参见图12A,图12A为本申请实施例提供的一种应用版本备份实现过程涉及的模块连接结构示意图。Referring to FIG. 12A , FIG. 12A is a schematic diagram of a module connection structure involved in an application version backup implementation process provided by an embodiment of the present application.
本申请实施例中应用版本备份实现过程涉及到模块主要包含升级管理模块,电池管理模块,流量管理模块,设置模块,通知管理模块,备份检测模块,备份恢复模块、备份数据管理模块,具体软件框架如图12A所示。升级管理模块主要功能是用来检测应用升级动态,一旦有应用升级能及时监测;电池管理模块主要是用来支撑应用电量使用情况查询;流量管理模块主要是用来支撑应用流量管理查询;设置模块主要是添加一项“应用版本备份”,同时添加几个操作界面来供用户进行界面选择操作;通知模块主要是添加应用升级备份通知,这个通知是由升级管理模块发出,备份检测模块接收的;备份检测模块进行备份界面功能添加、删除、恢复管理,同时进行常用应用刷选;备份恢复模块负责备份应用版本恢复,管理应用版本的卸载与安装;备份数据管理模块负责管理应用备份数据存储与解析。The implementation process of application version backup in the embodiment of this application involves modules mainly including 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, a backup data management module, and a specific software framework. As shown in Figure 12A. The main function of the upgrade management module is to detect the application upgrade status, once there is an application upgrade, it can be monitored in time; the battery management module is mainly used to support the query of application power usage; the traffic management module is mainly used to support the application traffic management query; the setting module The main thing is to add an "application version backup", and add several operation interfaces for the user to select the interface; the notification module mainly adds the application upgrade backup notification, which is sent by the upgrade management module and received by the backup detection module; The backup detection module adds, deletes, restores and manages the functions of the backup interface, and at the same time brushes and selects common applications; the backup recovery module is responsible for restoring the backup application version, 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 .
参见图12B,图12B为本申请实施例提供的一种应用版本备份的时序图。Referring to FIG. 12B , FIG. 12B is a sequence diagram of an application version backup provided in an embodiment of the present application.
本申请实施例中应用版本备份的实现过程主要涉及到几个主要模块的交互。其中,升级管理模块和通知管理模块是应用程序中的两个模块,备份检测模块和备份数据管理模块可以是“设置”应用中的两个模块。该时序图具体包括以下步骤:The implementation process of the application version backup in the embodiment of the present application mainly involves the interaction of several main modules. Wherein, 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 "settings" application. The sequence diagram specifically includes the following steps:
S1201、升级管理模块将应用版本升级的消息发送至通知管理模块。S1201. The upgrade management module sends an application version upgrade message to the notification management module.
当有应用进行升级时,应用升级管理模块触发应用版本升级的指令,并将该应用版本升级的消息传送至通知管理模块。When an application is to be upgraded, the application upgrade management module triggers an application version upgrade instruction, and sends the application version upgrade message to the notification management module.
S1202、通知管理模块将检测升级的应用是否为常用应用的通知发送至备份检测模块。S1202. The notification management module sends a notification for detecting whether the updated application is a common application to the backup detection module.
通知管理模块接收应用版本升级的消息,并将检测升级的应用是否为常用应用的通知发送至备份检测模块。The notification management module receives the message of the application version upgrade, and sends the notification of detecting whether the upgraded application is a common application to the backup detection module.
S1203、备份检测模块检测升级的应用是否为常用应用。S1203. The backup detection module detects whether the updated application is a common application.
备份检测模块接收到检测升级的应用是否为常用应用的通知后,检测升级的应用是否为常用应用。The backup detection module detects whether the upgraded application is a frequently used application after receiving the notification of detecting whether the upgraded application is a frequently used application.
S1204、备份检测模块进行应用版本备份确认,并将确认消息发送至备份数据管理模块。S1204. The backup detection module confirms the application version backup, and sends a confirmation message to the backup data management module.
当备份检测模块检测到升级的应用是常用应用后,进行应用版本备份确认,并将确认的消息发送至备份数据管理模块,以便备份数据管理模块进行应用版本数据的备份。When the backup detection module detects that the upgraded application is a common application, it confirms the application version backup, and sends the confirmation message to the backup data management module, so that the backup data management module can back up the application version data.
S1205、不对该应用版本进行备份。S1205. Do not back up the application version.
当备份检测模块检测到升级的应用不是常用应用,则不对该升级的应用进行版本备份操作。When the backup detection module detects that the upgraded application is not a commonly used application, no version backup operation is performed on the upgraded application.
S1206、备份数据管理模块接收应用版本备份确认的消息,并向升级管理模块发送获取应用版本备份数据的请求。S1206. The backup data management module receives the application version backup confirmation message, and sends a request for obtaining the application version backup data to the upgrade management module.
备份数据管理模块接收到应用版本备份确认的消息后,向升级管理模块发送获取应用版本备份数据的请求,以获取进行备份的数据。After receiving the application version backup confirmation message, the backup data management module sends a request for obtaining the application version backup data to the upgrade management module, so as to obtain the data for backup.
S1207、升级管理模块发送应用版本备份的数据。S1207. The upgrade management module sends the application version backup data.
升级管理模块接收到备份数据管理模块发送的获取应用版本备份的数据请求后,将需要进行备份的数据发送至备份数据管理模块。The upgrade management module sends the data to be backed up to the backup data management module after receiving the data request for application version backup sent by the backup data management module.
S1208、备份数据管理模块将备份的应用版本数据保存至指定的目录下。S1208. The backup data management module saves the backup application version data in a designated directory.
备份数据管理模块接收到升级管理模块发送的应用版本备份数据后,将应用版本备份数据保存到指定的目录下,完成应用版本数据的备份。After the backup data management module receives the application version backup data sent by the upgrade management module, it saves the application version backup data in a designated directory to complete the backup of the application version data.
本申请实施例通过在有应用进行升级时,检测该升级的应用是否是常用应用,当该应用是常用应用时,自动确认该应用需要进行版本备份,并将该应用的版本备份数据保存至指定的目录下。实现了对常用应用的自动备份。当该升级的应用不是常用应用时,不进行该应用的版本备份,节省了内存空间。In this embodiment of the present application, when an application is being upgraded, it is detected whether the upgraded application is a commonly used application. under the directory. Automatic backup of commonly used applications has been realized. When the application to be upgraded is not a commonly used application, the version backup of the application is not performed, which saves memory space.
参见图13A,图13A为本申请实施例提供的另一种应用版本备份的时序图。Referring to FIG. 13A , FIG. 13A is a sequence diagram of another application version backup provided by the embodiment of the present application.
该实施例中与图12B实施例的区别主要在于,本申请实施例在将检测升级的应用是否为常用应用的通知发送至备份检测模块,需要进行应用备份空间是否被占满的判断,如果被占满则不对升级的应用进行备份;如果未占满,则进行图12B中步骤S1203-S1208的操作。本申请实施具体包括以下步骤:The difference between this embodiment and the embodiment in FIG. 12B is that in the embodiment of the present application, when sending the notification to detect whether the upgraded application is a commonly used application to the backup detection module, it is necessary to judge whether the application backup space is full. If it is full, the upgraded application will not be backed up; if it is not full, perform the operations of steps S1203-S1208 in FIG. 12B. The implementation of this application specifically includes the following steps:
S1201、升级管理模块将应用版本升级的消息发送至通知管理模块。S1201. The upgrade management module sends an application version upgrade message to the notification management module.
当有应用进行升级时,应用升级管理模块触发应用版本升级的指令,并将该应用版本升级的消息传送至通知管理模块。When an application is to be upgraded, the application upgrade management module triggers an application version upgrade instruction, and sends the application version upgrade message to the notification management module.
S1202、通知管理模块将检测升级的应用是否为常用应用的通知发送至备份检测模块。S1202. The notification management module sends a notification for detecting whether the updated application is a common application to the backup detection module.
通知管理模块接收应用版本升级的消息,并将检测升级的应用是否为常用应用的通知发送至备份检测模块。The notification management module receives the message of the application version upgrade, and sends the notification of detecting whether the upgraded application is a common application to the backup detection module.
S12021、备份检测模块检测应用备份空间是否被占满。S12021. The backup detection module detects whether the application backup space is full.
备份检测模块接收到应用版本升级的消息后,检测应用备份空间是否被占满。After the backup detection module receives the application version upgrade message, it detects whether the application backup space is full.
S1203、检测升级的应用是否为常用应用。S1203. Detect whether the updated application is a common application.
当备份检测模块检测到应用备份空间未被占满时,备份检测模块接收到检测升级的应用是否为常用应用的通知后,检测升级的应用是否为常用应用。并继续执行步骤S1204-S1208。When the backup detection module detects that the application backup space is not full, the backup detection module detects whether the upgraded application is a frequently used application after receiving the notification of detecting whether the upgraded application is a commonly used application. And continue to execute steps S1204-S1208.
当备份检测模块检测到应用备份空间被占满时,执行步骤S1205,即不对该应用版本进行备份。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.
本申请实施例在对升级的应用进行版本备份前,首先判断应用版本备份空间是否被占满,如果被占满则不对升级的应用进行版本备份的操作,如此进一步避免了过多内存的占用。In the embodiment of the present application, before performing version backup for the upgraded application, firstly, it is judged whether the application version backup space is full, and if it is full, the operation of version backup for the upgraded application is not performed, thus further avoiding excessive memory occupation.
参见图13B,图13B为本申请实施例提供的另一种应用版本备份的时序图。Referring to FIG. 13B , FIG. 13B is a sequence diagram of another application version backup provided by the embodiment of the present application.
图13B与图13A的主要区别在于当检测到存在升级的应用时,对升级的应用是否进行版本备份的实现过程不同。The main difference between FIG. 13B and FIG. 13A is that when an upgraded application is detected, the realization process of whether to perform version backup for the upgraded application is different.
S1201、升级管理模块将应用版本升级的消息发送至通知管理模块。S1201. The upgrade management module sends an application version upgrade message to the notification management module.
当有应用进行升级时,应用升级管理模块触发应用版本升级的指令,并将该应用版本升级的消息传送至通知管理模块。When an application is to be upgraded, the application upgrade management module triggers an application version upgrade instruction, and sends the application version upgrade message to the notification management module.
S1202、通知管理模块将检测升级的应用是否为常用应用的通知发送至备份检测模块。S1202. The notification management module sends a notification for detecting whether the updated application is a common application to the backup detection module.
通知管理模块接收应用版本升级的消息,并将检测升级的应用是否为常用应用的通知发送至备份检测模块。The notification management module receives the message of the application version upgrade, and sends the notification of detecting whether the upgraded application is a common application to the backup detection module.
S1203、备份检测模块检测升级的应用是否为常用应用。S1203. The backup detection module detects whether the updated application is a common application.
备份检测模块接收到检测升级的应用是否为常用应用的通知后,检测到升级的应用为常用应用,继续执行步骤S1204。如果检测到升级的应用不是常用应用,则执行步骤S1205。After the backup detection module receives the notification of detecting whether the upgraded application is a commonly used application, it detects that the upgraded application is a commonly used application, and proceeds to step S1204. If it is detected that the updated application is not a commonly used application, step S1205 is performed.
S1204、备份检测模块检测应用备份空间是否被占满。S1204. The backup detection module detects whether the application backup space is full.
备份检测模块检测应用备份空间是否被占满,如果应用备份空间未被占满,则执行步骤S12041;如果应用备份空间被占满,则执行步骤S12042。The backup detection module detects whether the application backup space is full, and if the application backup space is not full, execute step S12041; if the application backup space is full, execute step S12042.
S12041、备份检测模块进行应用版本备份确认,并将确认消息发送至备份数据管理模块。S12041. The backup detection module confirms the application version backup, and sends a confirmation message to the backup data management module.
备份空间未被占满,则可以继续执行应用版本备份的操作。即可以进行应用版本备份确认,并将确认消息发送至备份数据管理模块。If the backup space is not full, you can continue to perform application version backup operations. That is, the application version backup can be confirmed, and the confirmation message can be sent to the backup data management module.
S12042、备份检测模块提示用户是否需要将已经存储在应用备份空间中的数据替换成升级应用的上一版本数据;或者提示用户是否增加应用备份空间。S12042. The backup detection module prompts the user whether to replace the data stored in the application backup space with the data of the previous version of the upgraded application; or prompts the user whether to increase the application backup space.
当备份空间被占满时,备份检测模块提示用户是否需要将已经存储在应用备份空间中的数据替换成升级应用的上一版本数据,这样用户可以采用替换备份的其他应用版本数据的方式将升级的应用的上一个版本数据进行备份并存储。具体地,系统侧响应于替换应用备份空间中存储的应用版本数据的指令;将用户选中的应用版本数据替换成进行版本升级的应用未升级前的版本数据。When the backup space is full, the backup detection module prompts the user whether to replace the data already stored in the application backup space with the data of the previous version of the upgraded application, so that the user can replace the backup data of other application versions to upgrade The data of the previous version of the application is backed up and stored. Specifically, in response to an instruction to replace the application version data stored in the application backup space, the system side replaces the application version data selected by the user with the version data of the application undergoing version upgrade before the upgrade.
在一些可能的实现方式中,备份检测模块可以提示用户是否增加应用备份空间,用户可以通过增加应用备份空间的方式,将升级的应用的上一个版本数据存储至增加的应用备份空间中。具体地,系统侧响应于增加应用备份空间的指令,增加应用备份空间;并将进行版本升级的应用未升级前的版本数据在增加的应用备份空间中进行备份。In some possible implementations, the backup detection module can prompt the user whether to increase the application backup space, and the user can store the data of the previous version of the upgraded application in the increased application backup space by increasing the application backup space. Specifically, the system side increases the application backup space in response to the instruction to increase the application backup space; and backs up the version data of the application undergoing version upgrade before the upgrade in the increased application backup space.
S1205、不对该应用版本进行备份。S1205. Do not back up the application version.
S1206、备份数据管理模块接收应用版本备份确认的消息,并向升级管理模块发送获取应用版本备份数据的请求。S1206. The backup data management module receives the application version backup confirmation message, and sends a request for obtaining the application version backup data to the upgrade management module.
备份数据管理模块接收到应用版本备份确认的消息后,向升级管理模块发送获取应用版本备份数据的请求,以获取进行备份的数据。After receiving the application version backup confirmation message, the backup data management module sends a request for obtaining the application version backup data to the upgrade management module, so as to obtain the data for backup.
S1207、升级管理模块发送应用版本备份的数据。S1207. The upgrade management module sends the application version backup data.
升级管理模块接收到备份数据管理模块发送的获取应用版本备份的数据请求后,将需要进行备份的数据发送至备份数据管理模块。The upgrade management module sends the data to be backed up to the backup data management module after receiving the data request for application version backup sent by the backup data management module.
S1208、备份数据管理模块将备份的应用版本数据保存至指定的目录下。S1208. The backup data management module saves the backup application version data in a designated directory.
备份数据管理模块接收到升级管理模块发送的应用版本备份数据后,将应用版本备份数据保存到指定的目录下,完成应用版本数据的备份。After the backup data management module receives the application version backup data sent by the upgrade management module, it saves the application version backup data in a designated directory to complete the backup of the application version data.
参见图14,图14为本申请实施例提供的一种应用版本恢复的时序图。Referring to FIG. 14 , FIG. 14 is a sequence diagram of application version restoration provided by an embodiment of the present application.
应用版本恢复的过程主要涉及备份数据管理模块和备份恢复模块与用户的交互,备份数据管理模块和备份恢复模块可以是“设置”应用中的两个模块。具体包括以下步骤:The process of restoring the application version mainly involves the interaction between the backup data management module and the backup restoration module and the user. The backup data management module and the backup restoration module may be two modules in the "settings" application. Specifically include the following steps:
S1401、用户触发应用版本恢复操作。S1401. The user triggers an application version restoration operation.
用户可以在“设置”的“应用版本备份”界面选中某一个应用,长按该应用会弹出“恢复”的按钮,当用户点击“恢复”按钮后,触发该应用的版本恢复操作。The user can select an application in the "App Version Backup" interface of "Settings", press and hold the application, and the "Restore" button will pop up. When the user clicks the "Restore" button, the version recovery operation of the application will be triggered.
S1402、备份数据管理模块获取到应用版本备份数据并解析该数据。S1402. The backup data management module obtains the application version backup data and analyzes the data.
用户触发某个应用版本备份恢复的操作后,备份数据管理模块在指定的目录下获取到该应用版本备份数据并解析,以便后续的应用版本恢复操作。After the user triggers the operation of backup and restoration of a certain application version, the backup data management module obtains the backup data of the application version in the specified directory and parses it, so as to facilitate subsequent application version restoration operations.
S1403、备份恢复模块卸载应用当前的版本。S1403. The backup and recovery module uninstalls the current version of the application.
当用户触发应用版本恢复操作后,响应于恢复应用版本数据的指令,备份恢复模块就开始进行该应用当前版本数据的卸载。该步骤可以在步骤S1402之前执行,也可以在步骤S1402之后执行,也可以S1402和S1403同时执行。本申请实施例中以步骤S1403在步骤S1402后面执行为例进行说明。After the user triggers the application version restoration operation, in response to the instruction to restore the application version data, the backup restoration module starts to uninstall the current version data of the application. This step may be performed before step S1402, may also be performed after step S1402, or may be performed at the same time as S1402 and S1403. In the embodiment of the present application, the step S1403 is executed after the step S1402 as an example for illustration.
S1404、备份恢复模块读取备份数据管理模块解析的数据,并安装该应用备份的版本。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 restoration module reads the backup application version data parsed by the backup data management module, and installs the application backup version, that is, uses the backup application version data to restore the application.
S1405、备份恢复模块通知用户安装成功。S1405. The backup recovery module notifies the user that the installation is successful.
当备份恢复模块成功安装某一应用备份的版本后,可以以弹窗的形式提示用户备份应用版本安装成功。When the backup and recovery module successfully installs a backup version of an application, it can prompt the user that the backup version of the application is successfully installed in the form of a pop-up window.
本申请实施例提供的方法,支持在应用升级后出现不稳定的情况时,用户可以将该应用恢复至之前备份的稳定版本,避免升级后的应用不稳定影响用户使用体验的问题。The method provided in the embodiment of the present application supports that when the application becomes unstable after the upgrade, the user can restore the application to a previously backed up stable version, so as to avoid the problem that the unstable application after the upgrade affects the user experience.
在一些可能的实现方式中,用户也可以对保存的应用版本进行删除的操作。具体地,用户可以在“设置”界面中的“应用版本备份”选项界面中选中显示的第二应用,弹框弹出“删除”选项后,用户点击“删除”选项,系统侧会将第二应用备份的版本数据删除。In some possible implementation manners, the user may also delete the saved application version. Specifically, the user can select the second application displayed in the "App Version Backup" option interface in the "Settings" interface. After the "Delete" option pops up in the pop-up box, the user clicks the "Delete" option, and the system side will save the second application The backup version data is deleted.
本实施例还提供了一种电子设备,该电子设备包括:处理器和存储器;This embodiment also provides an electronic device, which includes: a processor and a memory;
在所述存储器中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令;当所述指令被所述处理器执行时,使得所述电子设备执行上述实施例描述的应用备份方法。One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the electronic device executes the application backup described in the above embodiments method.
本实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中包括指令,当上述指令在电子设备上运行时,使得该电子设备执行上述实施例描述的相关方法步骤,以实现上述实施例中描述的应用备份方法。This embodiment also provides a computer-readable storage medium, the computer-readable storage medium includes instructions, and when the above-mentioned instructions are run on the electronic device, the electronic device is made to execute the relevant method steps described in the above-mentioned embodiments, so as to realize The application backup method described in the above embodiments.
本实施例还提供了一种包含指令的计算机程序产品,当该计算机程序产品在电子设备上运行时,使得该电子设备执行如图8-14中的相关方法步骤,以实现上述实施例中的方法。This embodiment also provides a computer program product containing instructions. When the computer program product is run on the electronic device, the electronic device is made to execute the relevant method steps as shown in Figures 8-14, so as to realize the method.
本申请实施例提供的方案中,主要采用以下几个步骤实现应用版本数据的备份:In the solution provided by the embodiment of this application, the following steps are mainly used to realize the backup of application version data:
系统侧实时检测是否有应用进行版本升级。The system side detects in real time whether there is an application version upgrade.
当存在应用进行版本升级时,如果进行版本升级的应用为预设时间段内使用频度超过预设频度标准的应用,则提示用户进行应用版本数据备份操作;也就是在检测到升级的应用是常用应用时,提示用户进行应用版本数据备份。When there is an application for version upgrade, if the application for version upgrade is an application whose use frequency exceeds the preset frequency standard within a preset time period, the user will be prompted to perform an application version data backup operation; that is, when an upgraded application is detected When it is a frequently used application, the user is prompted to back up the application version data.
当用户触发对该升级的应用进行版本数据备份操作后,系统侧响应于用户触发的进行应用版本数据备份操作,将所述进行版本升级的应用未升级前的版本数据进行备份。如此可以自动对应用是否升级进行检测,并在检测到常用应用进行升级时,提示用户进行应用版本数据备份,可以在常用应用升级后出现版本不稳定的情况时,及时回退至之前稳定的版本,不会影响用户体验。还可以对应用进行有针对性的筛选,不会浪费存储空间。After the user triggers the version data backup operation of the upgraded application, the system side responds to the user-triggered application version data backup operation, and backs up the pre-upgrade version data of the version-upgraded application. In this way, it can automatically detect whether the application is upgraded, and when it detects that the commonly used application is upgraded, the user is prompted to back up the application version data, and when the version of the commonly used application is unstable after the upgrade, it can be rolled back to the previous stable version in time , without affecting the user experience. Applications can also be screened in a targeted manner without wasting storage space.
需要说明的是,本申请实施例虽然以Android系统为例进行说明,但是其基本原理同样适用于基于iOS、Windows等操作系统的电子设备。It should be noted that although the embodiment of the present application uses the Android system as an example for illustration, its basic principles are also applicable to electronic devices based on operating systems such as iOS and Windows.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application should be covered within the protection scope of the application . Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211666310.8A CN116680118B (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 CN116680118B (en) | 2022-12-23 | 2022-12-23 | Application backup method, electronic device, storage medium and program product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116680118A true CN116680118A (en) | 2023-09-01 |
CN116680118B CN116680118B (en) | 2024-12-31 |
Family
ID=87787871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211666310.8A Active CN116680118B (en) | 2022-12-23 | 2022-12-23 | Application backup method, electronic device, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116680118B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118628057A (en) * | 2024-06-26 | 2024-09-10 | 深圳市圣旺达科技有限公司 | Enterprise smart management method, system and terminal based on big data and smart office |
Citations (7)
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 |
CN109558160A (en) * | 2017-09-26 | 2019-04-02 | 阿里巴巴集团控股有限公司 | Upgrade method, embedded system |
CN109800105A (en) * | 2018-12-03 | 2019-05-24 | 华为技术有限公司 | A kind of data back up method and terminal device |
CN113094211A (en) * | 2021-04-23 | 2021-07-09 | 北京天空卫士网络安全技术有限公司 | Backup data processing method and device |
CN114020526A (en) * | 2021-10-22 | 2022-02-08 | 深圳市有方科技股份有限公司 | A firmware upgrade method, device and computer storage medium |
-
2022
- 2022-12-23 CN CN202211666310.8A patent/CN116680118B/en active Active
Patent Citations (7)
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 |
CN109558160A (en) * | 2017-09-26 | 2019-04-02 | 阿里巴巴集团控股有限公司 | Upgrade method, embedded system |
CN109800105A (en) * | 2018-12-03 | 2019-05-24 | 华为技术有限公司 | A kind of data back up method and terminal device |
CN113094211A (en) * | 2021-04-23 | 2021-07-09 | 北京天空卫士网络安全技术有限公司 | Backup data processing method and device |
CN114020526A (en) * | 2021-10-22 | 2022-02-08 | 深圳市有方科技股份有限公司 | A firmware upgrade method, device and computer storage medium |
Non-Patent Citations (3)
Title |
---|
李佳: "《计算机应用基础》", 30 April 2009, 天津大学出版社, pages: 283 * |
杨华: "存储备份系统――信息系统安全的重要保证", 电力信息化, no. 06 * |
柴洪峰: "《金融IT服务外包信息安全管理》", 31 January 2015, 上海交通大学出版社, pages: 115 - 117 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118628057A (en) * | 2024-06-26 | 2024-09-10 | 深圳市圣旺达科技有限公司 | Enterprise smart management method, system and terminal based on big data and smart office |
Also Published As
Publication number | Publication date |
---|---|
CN116680118B (en) | 2024-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11856128B2 (en) | Method for presenting video on electronic device when there is incoming call and electronic device | |
WO2021042978A1 (en) | Theme switching method and theme switching apparatus | |
CN113805797B (en) | Processing method of network resource, electronic equipment and computer readable storage medium | |
CN113747374B (en) | Message pushing method and device | |
CN114579389A (en) | Application management method, device, equipment and storage medium | |
US12032938B2 (en) | Plug-in installation method, apparatus, and storage medium | |
US12174795B2 (en) | File management method, electronic device, and computer-readable storage medium | |
WO2021104117A1 (en) | Method for constructing application program resource packet, construction apparatus, and terminal device | |
CN117130808B (en) | Log acquisition method and electronic equipment | |
CN113703894A (en) | Display method and display device of notification message | |
CN113485709B (en) | Application optimization method and device and electronic equipment | |
CN116680118B (en) | Application backup method, electronic device, storage medium and program product | |
CN115904297A (en) | Screen display detection method, electronic device and storage medium | |
CN113608753A (en) | Application uninstalling method, application recovery method, electronic device and storage medium | |
CN115543145A (en) | Folder management method and device | |
CN115291919B (en) | Packet searching method and related device | |
CN117009023B (en) | Method for displaying notification information and related device | |
CN117724640B (en) | Split screen display method, electronic equipment and storage medium | |
WO2024104137A1 (en) | Data recovery method capable of supporting data fusion and apparatus | |
CN117729561B (en) | System upgrading method, terminal and storage medium | |
WO2023246783A1 (en) | Method for adjusting device power consumption and electronic device | |
WO2024169332A1 (en) | Processor frequency adjusting method, electronic device, and chip system | |
WO2024001972A1 (en) | Interaction method and related device | |
WO2024179203A1 (en) | Voice control method and electronic device | |
CN117667506A (en) | Drawing library cloning method, system and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |