[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105426272A - Backup method and device for application programs - Google Patents

Backup method and device for application programs Download PDF

Info

Publication number
CN105426272A
CN105426272A CN201510981638.2A CN201510981638A CN105426272A CN 105426272 A CN105426272 A CN 105426272A CN 201510981638 A CN201510981638 A CN 201510981638A CN 105426272 A CN105426272 A CN 105426272A
Authority
CN
China
Prior art keywords
application
server
application program
backup
installation package
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
Application number
CN201510981638.2A
Other languages
Chinese (zh)
Other versions
CN105426272B (en
Inventor
杨继鑫
潘全新
薛依琳
李良
王熙
王新
刘京京
葛均辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510981638.2A priority Critical patent/CN105426272B/en
Publication of CN105426272A publication Critical patent/CN105426272A/en
Application granted granted Critical
Publication of CN105426272B publication Critical patent/CN105426272B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了一种应用程序备份方法与装置。其中应用程序备份方法包括:终端向应用服务器发送查询请求,其中,查询请求中携带了待备份的应用程序的标识信息;终端接收应用服务器返回的查询请求应答,其中,查询请求应答中携带有指示待备份的应用程序的安装包是否存储在应用服务器上的指示信息;终端根据指示信息,禁止将安装包存储在应用服务器上的待备份的第一应用程序的安装包上传给备份服务器,将第一应用程序的相关信息上传给备份服务器。通过本发明,可以减小应用程序备份时上传的数据量,缩短了应用程序备份所需的时间,节约了应用程序备份所花费的数据流量,提高了用户体验。

The invention provides an application program backup method and device. The application program backup method includes: the terminal sends a query request to the application server, wherein the query request carries the identification information of the application program to be backed up; the terminal receives the query request response returned by the application server, wherein the query request response carries an indication The instruction information indicating whether the installation package of the application program to be backed up is stored on the application server; according to the instruction information, the terminal prohibits uploading the installation package of the first application program to be backed up to the backup server, and uploads the installation package stored on the application server to the backup server. The relevant information of an application program is uploaded to the backup server. The present invention can reduce the amount of uploaded data when the application program is backed up, shorten the time required for the application program backup, save the data traffic spent by the application program backup, and improve user experience.

Description

应用程序备份方法及装置Application program backup method and device

技术领域technical field

本发明涉及通信及互联网应用技术领域,特别是涉及一种应用程序备份方法及装置。The invention relates to the technical fields of communication and Internet applications, in particular to an application program backup method and device.

背景技术Background technique

在相关技术中,在终端的操作系统更新或刷机时,为了保证在操作系统更新或刷机可以快速的安装之前安装的应用程序(APP),在操作系统更新或刷机前,可以将应用程序备份到服务器中,在操作系统更新或刷机之后,再从服务器将备份的应用程序还原到终端。In the related technology, when the operating system of the terminal is updated or flashed, in order to ensure that the application program (APP) installed before the operating system update or flash can be quickly installed, before the operating system is updated or flashed, the application program can be backed up to In the server, after the operating system is updated or flashed, the backup application program is restored from the server to the terminal.

在相关技术中,在进行应用程序备份时,通常采用的方案是将应用程序的所有数据包(包括安装包,例如,Android系统中的apk数据包)上传到服务器,在还原时,再从服务器下载到终端进行安装。采用这种备份方法,由于应用程序的安装包的数据量比较大,如果一次备份的应用程序较多,则要占用很长的上传时间以及数据流量,降低了用户的体验。In related technologies, when backing up an application program, the usual solution is to upload all data packages of the application program (including the installation package, for example, the apk data package in the Android system) to the server, and then restore it from the server Download to terminal to install. With this backup method, since the data volume of the installation package of the application program is relatively large, if there are many application programs backed up at one time, it will take a long upload time and data traffic, which reduces the user experience.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的应用程序备份方案。In view of the above problems, the present invention is proposed to provide an application program backup solution that overcomes the above problems or at least partially solves the above problems.

依据本发明的一方面,提供了一种应用程序备份方法,包括:终端向应用服务器发送查询请求,其中,所述查询请求中携带了待备份的应用程序的标识信息;所述终端接收所述应用服务器返回的查询请求应答,其中,所述查询请求应答中携带有指示所述待备份的应用程序的安装包是否存储在所述应用服务器上的指示信息;所述终端根据所述指示信息,禁止将安装包存储在所述应用服务器上的待备份的第一应用程序的安装包上传给备份服务器,将所述第一应用程序的相关信息上传给所述备份服务器。According to one aspect of the present invention, an application program backup method is provided, including: a terminal sends a query request to an application server, wherein the query request carries identification information of an application program to be backed up; the terminal receives the A query request response returned by the application server, wherein the query request response carries indication information indicating whether the installation package of the application program to be backed up is stored on the application server; the terminal, according to the indication information, It is forbidden to upload the installation package of the first application program to be backed up, the installation package of which is stored on the application server, to the backup server, and upload the relevant information of the first application program to the backup server.

可选地,所述方法还包括:所述终端根据所述指示信息,将安装包没有存储在所述应用服务器上的待备份的第二应用程序的安装包以及所述第二应用程序的相关信息上传给所述备份服务器。Optionally, the method further includes: according to the indication information, the terminal saves the installation package of the second application to be backed up and the related information of the second application for which the installation package is not stored on the application server. The information is uploaded to the backup server.

可选地,所述相关信息包括:版本信息和检验数据。Optionally, the relevant information includes: version information and verification data.

可选地,所述相关信息还包括:用户数据。Optionally, the relevant information further includes: user data.

可选地,在终端向应用服务器发送查询请求之前,所述方法还包括:接收到输入的备份应用程序的操作请求;或者,检测到发生预定的触发事件。Optionally, before the terminal sends the query request to the application server, the method further includes: receiving an input backup application operation request; or detecting that a predetermined trigger event occurs.

依据本发明的另一个方面,提供了一种应用程序备份装置,包括:发送模块,用于向应用服务器发送查询请求,其中,所述查询请求中携带了待备份的应用程序的标识信息;接收模块,用于接收所述应用服务器返回的查询请求应答,其中,所述查询请求应答中携带有指示所述待备份的应用程序的安装包是否存储在所述应用服务器上的指示信息;上传模块,用于根据所述指示信息,禁止将安装包存储在所述应用服务器上的待备份的第一应用程序的安装包上传给备份服务器,将所述第一应用程序的相关信息上传给所述备份服务器。According to another aspect of the present invention, an application program backup device is provided, including: a sending module, configured to send a query request to an application server, wherein the query request carries identification information of an application program to be backed up; receiving A module, configured to receive a query request response returned by the application server, wherein the query request response carries indication information indicating whether the installation package of the application program to be backed up is stored on the application server; the upload module , for prohibiting uploading the installation package of the first application to be backed up stored on the application server to the backup server according to the indication information, and uploading the relevant information of the first application to the Backup server.

可选地,所述上传模块还用于根据所述指示信息,将安装包没有存储在所述应用服务器上的待备份的第二应用程序的安装包以及所述第二应用程序的相关信息上传给所述备份服务器。Optionally, the uploading module is further configured to upload the installation package of the second application to be backed up and the related information of the second application for which the installation package is not stored on the application server according to the instruction information to the backup server.

可选地,所述相关信息包括:版本信息和检验数据。Optionally, the relevant information includes: version information and verification data.

可选地,所述相关信息还包括:用户数据。Optionally, the relevant information further includes: user data.

可选地,所述装置还包括:检测模块,用于检测是否接收到输入的备份应用程序的操作请求,如果是,则触发所述发送模块发送所述查询请求;或者,检测是否发生预定的触发事件,如果是,则触发所述发送模块发送所述查询请求。Optionally, the device further includes: a detection module, configured to detect whether an input backup application operation request is received, and if so, trigger the sending module to send the query request; or detect whether a predetermined If it is a trigger event, trigger the sending module to send the query request.

本发明实施例中,在备份应用程序时,终端先查询应用服务器中是否存储有待备份的应用程序,如果存储有,则终端不向服务器上传待备份的应用程序的安装包,只将应用程序的相关信息上传给备份服务器,减小了上传的数据量,缩短了应用程序备份所需的时间,节约了应用程序备份所花费的数据流量,提高了用户体验。In the embodiment of the present invention, when backing up the application program, the terminal first inquires whether the application program to be backed up is stored in the application server. Relevant information is uploaded to the backup server, which reduces the amount of uploaded data, shortens the time required for application backup, saves the data traffic spent by application backup, and improves user experience.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。Those skilled in the art will be more aware of the above and other objects, advantages and features of the present invention according to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明一实施例的应用程序备份方法的流程图;FIG. 1 shows a flowchart of an application program backup method according to an embodiment of the present invention;

图2示出了根据本发明一实施例的应用程序备份装置的结构示意图;以及FIG. 2 shows a schematic structural diagram of an application program backup device according to an embodiment of the present invention; and

图3示出了根据本发明另一实施例的应用程序备份装置的结构示意图。Fig. 3 shows a schematic structural diagram of an application program backup device according to another embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

为解决上述技术问题,本发明实施例提供了一种应用程序备份方法。图1示出了根据本发明一实施例的应用程序备份方法的流程图。参见图1,该方法至少包括步骤S102至步骤S106。In order to solve the above technical problem, an embodiment of the present invention provides an application program backup method. Fig. 1 shows a flowchart of an application program backup method according to an embodiment of the present invention. Referring to Fig. 1, the method at least includes step S102 to step S106.

步骤S102,终端向应用服务器发送查询请求,其中,该查询请求中携带了待备份的应用程序的标识信息。In step S102, the terminal sends a query request to the application server, wherein the query request carries identification information of the application program to be backed up.

步骤S104,终端接收应用服务器返回的查询请求应答,其中,该查询请求应答中携带有指示待备份的应用程序的安装包是否存储在应用服务器上的指示信息。Step S104, the terminal receives the query request response returned by the application server, wherein the query request response carries indication information indicating whether the installation package of the application program to be backed up is stored on the application server.

步骤S106,将终端根据上述指示信息,禁止将安装包存储在应用服务器上的待备份的第一应用程序的安装包上传给备份服务器,且将第一应用程序的相关信息上传给备份服务。Step S106, prohibiting the terminal from uploading the installation package of the first application to be backed up stored on the application server to the backup server according to the above instruction information, and uploading the relevant information of the first application to the backup service.

本发明实施例中,终端在备份应用程序时,先查询待备份的应用程序是否存储在应用服务器中,对于安装包存储在应用服务器的第一应用程序,则不上传该应用程序的安装包到备份服务器,只将该应用程序的相关信息上传到备份服务器,从而减少了上传的数据量,节约了备份的时间,提高了用户体验。In the embodiment of the present invention, when the terminal backs up the application program, it first inquires whether the application program to be backed up is stored in the application server, and for the first application program whose installation package is stored in the application server, the installation package of the application program is not uploaded to the The backup server only uploads the relevant information of the application program to the backup server, thereby reducing the amount of uploaded data, saving backup time, and improving user experience.

在本发明实施例的一个可选实施方案中,在步骤S106中,还可以包括:终端根据所述指示信息,将安装包没有存储在应用服务器上的待备份的第二应用程序的安装包以及第二应用程序的相关信息上传给备份服务器。即对于安装包没有存储在应用服务器的第二应用程序,终端将该应用程序的安装包及相关信息上传给备份服务器。通过该可选实施方式,可以保证在备份时只上传应用服务器中没有的应用程序,以在保证有效备份的同时,节约备份时间。In an optional implementation of the embodiment of the present invention, in step S106, it may also include: according to the instruction information, the terminal stores the installation package of the second application program to be backed up on the application server without the installation package and The relevant information of the second application program is uploaded to the backup server. That is, for the second application whose installation package is not stored in the application server, the terminal uploads the installation package and related information of the application to the backup server. Through this optional implementation manner, it can be guaranteed that only the application programs not in the application server are uploaded during backup, so as to save backup time while ensuring effective backup.

在实际应用中,终端可能一次性需要备份多个应用程序,查询请求中可以包括该多个应用程序的标识信息,应用服务器可以同时返回指示该多个应用程序的安装包是否存储在应用服务器的指示信息,对于安装包存储在应用服务器的第一应用程序,终端只将这类应用程序的相关信息上传给备份服务器,不将这类应用程序的安装包上传至备份服务器。对于安装包没有存储在应用服务器的第二应用程序,终端将该应用程序的安装包及相关信息上传给备份服务器。从而可以保证在备份时只上传应用服务器中没有的应用程序,以在保证有效备份的同时,节约备份时间。In practical applications, the terminal may need to back up multiple application programs at one time, the query request may include the identification information of the multiple application programs, and the application server may simultaneously return an indication of whether the installation packages of the multiple application programs are stored in the application server's Instruction information, for the first application program whose installation package is stored in the application server, the terminal only uploads the relevant information of this type of application program to the backup server, and does not upload the installation package of this type of application program to the backup server. For the second application whose installation package is not stored in the application server, the terminal uploads the installation package and related information of the application to the backup server. Therefore, it can be guaranteed that only the application programs not in the application server are uploaded during backup, so as to save backup time while ensuring effective backup.

在具体应用中,可以根据功能不同对服务器进行划分,在本发明实施例的一个可选实施方案中,备份服务器可以只负责存储终端上传的应用程序的相关信息,在接收到终端上传的应用程序的安装包时,备份服务器将应用程序的安装包发送给存储服务器,并将应用程序的安装包在存储服务器的存储地址与终端上传的应用程序的相关信息关联保存。In a specific application, the servers can be divided according to different functions. In an optional implementation of the embodiment of the present invention, the backup server can only be responsible for storing the relevant information of the application program uploaded by the terminal. When the installation package is installed, the backup server sends the installation package of the application to the storage server, and stores the installation package of the application in association with the relevant information of the application uploaded by the terminal at the storage address of the storage server.

在本发明实施例的一个可选实施方案中,在备份还原时,对于安装包存储在应用服务器的第一应用程序,备份服务器在接收到还原请求后,将备份的第一应用程序的相关信息发送给终端,终端根据第一应用程序的相关信息,到应用服务器去请求第一应用程序的安装包,应用服务器响应终端的请求,可以将与终端备份的版本相同的第一应用程序的安装包传送给终端,也可以将最新版的第一应用程序的安装包传送给终端,具体本实施例不作限定。In an optional implementation of the embodiment of the present invention, when backing up and restoring, for the first application whose installation package is stored in the application server, the backup server will back up the relevant information of the first application after receiving the restore request Send to the terminal, the terminal goes to the application server to request the installation package of the first application according to the relevant information of the first application, and the application server responds to the request of the terminal, and can send the installation package of the first application that is the same as the version backed up by the terminal To transmit to the terminal, the installation package of the latest version of the first application may also be transmitted to the terminal, which is not specifically limited in this embodiment.

在本发明实施例的一个可选实施方案中,在备份还原时,对于安装包没有存储在应用服务器的第二应用程序,备份服务器在接收到还原请求后,备份服务器直接将第二应用程序安装包传送给终端进行还原。In an optional implementation of the embodiment of the present invention, when the backup is restored, for the second application whose installation package is not stored in the application server, after the backup server receives the restore request, the backup server directly installs the second application The package is sent to the terminal for restoration.

在本发明实施例的一个可选实施方案中,在备份还原时,对于安装包没有存储在应用服务器的第二应用程序,备份服务器在接收到还原请求后,备份服务器将第二应用程序的安装包在存储服务器的存储地址发送给终端,终端根据该存储地址,可以从存储服务器中下载该应用程序安装包;或者,备份服务器也可以从存储服务器获取第二应用程序的安装包,将第二应用程序的安装包还原给终端。In an optional implementation of the embodiment of the present invention, when the backup is restored, for the second application whose installation package is not stored in the application server, after the backup server receives the restore request, the backup server will install the second application The package is sent to the terminal at the storage address of the storage server, and the terminal can download the application installation package from the storage server according to the storage address; or, the backup server can also obtain the installation package of the second application program from the storage server, and the second The application's installation package is restored to the terminal.

在具体应用中,对于同一个用户上传的备份信息,备份服务器可以将终端上传的应用程序的标识信息、相关信息以及安装包的存储地址一起关联保存。In a specific application, for the backup information uploaded by the same user, the backup server may associate and save the identification information of the application program uploaded by the terminal, related information, and the storage address of the installation package.

在本发明实施例的一个可选实施方案中,终端在上述步骤S106中上传的应用程序的相关信息包括但不限于:版本信息和校验数据。在还原时,可以参考备份的版本信息选择合适的版本。另外,根据校验数据,可以对终端上传的应用程序的安装包进行完整性校验,以保证上传的安装包的数据完整性,在备份还原时,也可以根据该校验数据对还原的应用程序进行完整性校验。In an optional implementation of the embodiment of the present invention, the relevant information of the application uploaded by the terminal in the above step S106 includes but not limited to: version information and verification data. When restoring, you can refer to the backup version information to select the appropriate version. In addition, according to the verification data, the integrity verification of the installation package of the application program uploaded by the terminal can be performed to ensure the data integrity of the uploaded installation package. When the backup is restored, the restored application can also be verified according to the verification data. The program performs an integrity check.

在本发明实施例的一个可选实施方案中,终端在上述步骤S106中上传的应用程序的相关信息还可以包括:用户数据。即用户使用待备份的应用程序产生的用户数据,例如,用户使用QQ产生的聊天记录,用户使用微信产生的聊天记录、朋友圈分享的信息等。采用该可选实施方案,在还原应用程序时,可以将相应的用户数据一起还原给用户,提高用户体验。In an optional implementation of the embodiment of the present invention, the application-related information uploaded by the terminal in step S106 may further include: user data. That is, the user data generated by the user using the application program to be backed up, for example, the chat records generated by the user using QQ, the chat records generated by the user using WeChat, the information shared by Moments, etc. With this optional implementation solution, when the application program is restored, the corresponding user data can be restored to the user together, thereby improving user experience.

在上述可选实施方案中,可选地,在还原时,如果用户备份的应用程序版本不是最新版本,可以将最新的版本还原给用户,避免了用户还原后还要更新版本所导致的空口流量消耗,提高用户体验。在这种情况下,如果备份的信息中还包括用户数据,则可以进一步判断备份的用户数据的格式与当前最新版本的应用程序的格式是否匹配,如果不匹配,则还可以进一步将备份的用户数据转换为相应的格式,然后再还原给终端,避免将用户数据还原给用户时由于用户数据的版本与应用程序的版本不一致而导致用户无法查看用户数据的问题。In the above optional implementation, optionally, when restoring, if the application version backed up by the user is not the latest version, the latest version can be restored to the user, avoiding the air interface traffic caused by the user updating the version after restoring Consumption, improve user experience. In this case, if the backed-up information also includes user data, it can be further judged whether the format of the backed-up user data matches the format of the latest version of the application program. The data is converted into the corresponding format, and then restored to the terminal to avoid the problem that the user cannot view the user data due to the inconsistency between the version of the user data and the version of the application when the user data is restored to the user.

在本发明实施例的一个可选实施方案中,终端启动备份可以是用户手动触发,也可以是事件触发。因此,在步骤S102之前,该方法还可以包括:接收到输入的备份应用程序的操作请求,具体地,用户可以通过键盘、按键或可控触摸屏输入;或者,检测到发生预定的触发事件,触发事件可以由用户预先设定好,例如,用户可以设置在更新系统前进行备份,则在需要更新系统时,先执行步骤S102至步骤S106。具体的触发事件,可以根据具体情况设置,具体本实施例不作限定。In an optional implementation of the embodiment of the present invention, the terminal starts the backup may be manually triggered by the user, or may be triggered by an event. Therefore, before step S102, the method may further include: receiving an input operation request of the backup application program, specifically, the user may input through a keyboard, keys or a controllable touch screen; or, detecting the occurrence of a predetermined trigger event, triggering Events can be preset by the user. For example, the user can set a backup before updating the system, and when it is necessary to update the system, firstly perform steps S102 to S106. The specific trigger event can be set according to the specific situation, which is not limited in this embodiment.

在本发明实施例的一个可选实施方案中,为了防止服务器被恶意攻击,终端在执行步骤S102之前,先需要向服务器(该服务器可以称为账号服务器(ID服务器))提供账户信息,服务器在接收到用户的请求后,为用户生成一个验证码,并下发给终端。终端在接收到该验证码之后,获取该验证码,在步骤S102向应用服务器发送查询请求时,向应用服务器提交该验证码,应用服务器对该验证码进行验证(即,应用服务器将该验证码发送给账号服务器,并接收账号服务器返回的验证结果),验证通过之后,才查询应用服务器中是否保存有待备份的应用程序的安装包,如果验证不通过,则拒绝终端的请求。同样,终端在向备份服务器上传备份数据时,也需要向备份服务器提交该验证码,备份服务器对该验证码进行验证(即,备份服务器将该验证码发送给账号服务器,并接收账号服务器返回的验证结果),验证通过之后,才接收终端上传的备份数据,如果验证不通过,则拒绝终端上传的备份数据。In an optional implementation of the embodiment of the present invention, in order to prevent the server from being maliciously attacked, the terminal first needs to provide account information to the server (the server may be called an account server (ID server)) before performing step S102. After receiving the user's request, generate a verification code for the user and send it to the terminal. After receiving the verification code, the terminal obtains the verification code, and when sending a query request to the application server in step S102, submits the verification code to the application server, and the application server verifies the verification code (that is, the application server uses the verification code send to the account server, and receive the verification result returned by the account server), after the verification is passed, the application server is inquired whether to save the installation package of the application program to be backed up, and if the verification fails, the request of the terminal is rejected. Similarly, when the terminal uploads the backup data to the backup server, it also needs to submit the verification code to the backup server, and the backup server verifies the verification code (that is, the backup server sends the verification code to the account server, and receives the verification code returned by the account server). Verification result), the backup data uploaded by the terminal is accepted only after the verification is passed, and the backup data uploaded by the terminal is rejected if the verification fails.

在本发明实施例的一个可选实施方案中,ID服务器可以通过短信向终端下发验证码,终端可以自动获取短信中的验证码。具体地,终端可以通过以下步骤自动获取短信中的验证码:In an optional implementation solution of the embodiment of the present invention, the ID server can send a verification code to the terminal through a short message, and the terminal can automatically obtain the verification code in the short message. Specifically, the terminal can automatically obtain the verification code in the text message through the following steps:

步骤1,获取终端的操作系统的平台签名。例如,终端可以运行预先在操作系统的系统服务(SystemServer)组件中注入的可执行文件,获取平台签名,即在操作系统的SystemServer组件中注入可执行文件,通过运行该可执行文件,可以获取到操作系统的平台签名。或者,在本发明实施例的一个可选实施方案中另一个可选实施方式中,终端也可以通过刷入恢复(recovery)分区,通过分区的一些程序获取高权限,具体可以为在ramdisk中设置一个模块,用于扫描操作系统分区,扫描后查看操作系统的平台签名。Step 1, obtain the platform signature of the operating system of the terminal. For example, the terminal can run the executable file pre-injected in the system service (SystemServer) component of the operating system to obtain the platform signature, that is, inject the executable file into the SystemServer component of the operating system, and by running the executable file, you can obtain the The platform signature of the operating system. Or, in another optional implementation of an optional implementation of the embodiment of the present invention, the terminal can also obtain high authority through some programs of the partition by brushing into the recovery partition, specifically, it can be set in the ramdisk A module that scans the operating system partition and checks the platform signature of the operating system after scanning.

步骤2,基于获取的平台签名,获取读取短消息内容的权限。在获取到平台签名之后,可以利用获取到的操作系统的平台签名对应用进行重新签名,从而使得应用获取操作系统相应的权限,在本实施例中,相应的权限是指获取读取短消息内容的权限)。Step 2, based on the obtained platform signature, obtain the permission to read the content of the short message. After the platform signature is obtained, the application can be re-signed by using the obtained platform signature of the operating system, so that the application obtains the corresponding authority of the operating system. In this embodiment, the corresponding authority refers to obtaining and reading the short message content permission).

步骤3,基于获取的读取短消息内容的权限,获取终端接收到的短消息中的验证码。在具体应用中,终端可以基于获取的权限,调用获取短消息内容的应用程序接口(API),从终端的数据库中读取到终端接收到的短消息的内容,然后从短消息的内容中获取到所述验证码。在本实施例中,获取短消息内容的API属于高级别的API,必须是具有系统权限的应用才能调用这类API,因此,本实施例中,通过平台签名获取对应的权限,以调用该API获取短消息的内容。终端在获取到验证码之后,还可以将获取的验证码输入到需要填写该验证码的对话框中,从而实现短信验证码的自动填写,提高用户体验。Step 3: Obtain the verification code in the short message received by the terminal based on the obtained permission to read the content of the short message. In a specific application, the terminal can call the application programming interface (API) for obtaining the content of the short message based on the obtained authority, read the content of the short message received by the terminal from the database of the terminal, and then obtain the content of the short message from the content of the short message. to the verification code. In this embodiment, the API for obtaining short message content is a high-level API, and only an application with system authority can call this type of API. Therefore, in this embodiment, the corresponding authority is obtained through the platform signature to call the API Get the content of the short message. After the terminal obtains the verification code, it can also input the obtained verification code into the dialog box where the verification code needs to be filled, so as to realize the automatic filling of the SMS verification code and improve user experience.

需要说明的是,虽然在本发明实施例中,根据各个服务器的功能不同,将应用服务器、备份服务器、存储服务器及ID服务器分开设置,但并不限于此,在具体应用中,也可以将合并为同一服务器。It should be noted that although in the embodiment of the present invention, the application server, backup server, storage server, and ID server are set separately according to the different functions of each server, it is not limited to this, and in specific applications, the combined for the same server.

基于同一发明构思,本发明实施例还提供一种应用程序备份装置,该装置可以设置在终端中,用于实施上述实施例所述的应用程序备份方法。Based on the same inventive concept, an embodiment of the present invention further provides an application program backup device, which can be set in a terminal to implement the application program backup method described in the foregoing embodiments.

图2示出了根据本发明一实施例的应用程序备份装置的结构示意图。参见图2,该装置至少可以包括:发送模块200、接收模块202和上传模块204。Fig. 2 shows a schematic structural diagram of an application program backup device according to an embodiment of the present invention. Referring to FIG. 2 , the device may at least include: a sending module 200 , a receiving module 202 and an uploading module 204 .

现介绍本发明实施例的应用程序备份装置的各组成或器件的功能以及各部分间的连接关系:Now introduce the functions of each component or device of the application program backup device of the embodiment of the present invention and the connection relationship between each part:

发送模块200,用于向应用服务器发送查询请求,其中,所述查询请求中携带了待备份的应用程序的标识信息;The sending module 200 is configured to send a query request to the application server, wherein the query request carries the identification information of the application program to be backed up;

接收模块202,用于接收所述应用服务器返回的查询请求应答,其中,所述查询请求应答中携带有指示所述待备份的应用程序的安装包是否存储在所述应用服务器上的指示信息;The receiving module 202 is configured to receive a query request response returned by the application server, wherein the query request response carries indication information indicating whether the installation package of the application program to be backed up is stored on the application server;

上传模块204,用于根据所述指示信息,禁止将安装包存储在所述应用服务器上的待备份的第一应用程序的安装包上传给备份服务器,将所述第一应用程序的相关信息上传给所述备份服务器。The uploading module 204 is configured to prohibit uploading the installation package of the first application to be backed up stored on the application server to the backup server according to the instruction information, and upload the relevant information of the first application to the backup server. to the backup server.

本发明实施例中,应用程序备份装置在备份应用程序时,发送模块200查询待备份的应用程序是否存储在应用服务器中,在接收模块202接收到查询结果之后,对于安装包存储在应用服务器的第一应用程序,则上传模块204不上传该应用程序的安装包到备份服务器,只将该应用程序的相关信息上传到备份服务器,从而减少了上传的数据量,节约了备份的时间,提高了用户体验。In the embodiment of the present invention, when the application program backup device backs up the application program, the sending module 200 inquires whether the application program to be backed up is stored in the application server. For the first application program, the upload module 204 does not upload the installation package of the application program to the backup server, but only uploads the relevant information of the application program to the backup server, thereby reducing the amount of uploaded data, saving the time of backup, and improving the user experience.

在本发明实施例的一个可选实施方案中,上传模块204还用于根据所述指示信息,将安装包没有存储在所述应用服务器上的待备份的第二应用程序的安装包以及所述第二应用程序的相关信息上传给所述备份服务器。即对于安装包没有存储在应用服务器的第二应用程序,上传模块204将该应用程序的安装包及相关信息上传给备份服务器。通过该可选实施方式,可以保证在备份时只上传应用服务器中没有的应用程序,以在保证有效备份的同时,节约备份时间。In an optional implementation of the embodiment of the present invention, the upload module 204 is further configured to, according to the instruction information, upload the installation package of the second application program to be backed up and the installation package not stored on the application server and the The relevant information of the second application is uploaded to the backup server. That is, for the second application whose installation package is not stored in the application server, the uploading module 204 uploads the installation package and related information of the application to the backup server. Through this optional implementation manner, it can be guaranteed that only the application programs not in the application server are uploaded during backup, so as to save backup time while ensuring effective backup.

在实际应用中,终端可能一次性需要备份多个应用程序,查询请求中可以包括该多个应用程序的标识信息,应用服务器可以同时返回指示该多个应用程序的安装包是否存储在应用服务器的指示信息,对于安装包存储在应用服务器的第一应用程序,上传模块204只将这类应用程序的相关信息上传给备份服务器,不将这类应用程序的安装包上传至备份服务器。对于安装包没有存储在应用服务器的第二应用程序,上传模块204将该应用程序的安装包及相关信息上传给备份服务器。从而可以保证在备份时只上传应用服务器中没有的应用程序,以在保证有效备份的同时,节约备份时间。In practical applications, the terminal may need to back up multiple application programs at one time, the query request may include the identification information of the multiple application programs, and the application server may simultaneously return an indication of whether the installation packages of the multiple application programs are stored in the application server's Instruction information, for the first application program whose installation package is stored in the application server, the upload module 204 only uploads the relevant information of this type of application program to the backup server, and does not upload the installation package of this type of application program to the backup server. For the second application whose installation package is not stored in the application server, the upload module 204 uploads the installation package and related information of the application to the backup server. Therefore, it can be guaranteed that only the application programs not in the application server are uploaded during backup, so as to save backup time while ensuring effective backup.

在具体应用中,可以根据功能不同对服务器进行划分,在本发明实施例的一个可选实施方案中,备份服务器可以只负责存储终端上传的应用程序的相关信息,在接收到终端上传的应用程序的安装包时,备份服务器将应用程序的安装包发送给存储服务器,并将应用程序的安装包在存储服务器的存储地址与终端上传的应用程序的相关信息关联保存。In a specific application, the servers can be divided according to different functions. In an optional implementation of the embodiment of the present invention, the backup server can only be responsible for storing the relevant information of the application program uploaded by the terminal. When the installation package is installed, the backup server sends the installation package of the application to the storage server, and stores the installation package of the application in association with the relevant information of the application uploaded by the terminal at the storage address of the storage server.

在本发明实施例的一个可选实施方案中,在备份还原时,对于安装包存储在应用服务器的第一应用程序,备份服务器在接收到还原请求后,将备份的第一应用程序的相关信息发送给终端,终端根据第一应用程序的相关信息,到应用服务器去请求第一应用程序的安装包,应用服务器响应终端的请求,可以将与终端备份的版本相同的第一应用程序的安装包传送给终端,也可以将最新版的第一应用程序的安装包传送给终端,具体本实施例不作限定。In an optional implementation of the embodiment of the present invention, when backing up and restoring, for the first application whose installation package is stored in the application server, the backup server will back up the relevant information of the first application after receiving the restore request Send to the terminal, the terminal goes to the application server to request the installation package of the first application according to the relevant information of the first application, and the application server responds to the request of the terminal, and can send the installation package of the first application that is the same as the version backed up by the terminal To transmit to the terminal, the installation package of the latest version of the first application may also be transmitted to the terminal, which is not specifically limited in this embodiment.

在本发明实施例的一个可选实施方案中,在备份还原时,对于安装包没有存储在应用服务器的第二应用程序,备份服务器在接收到还原请求后,备份服务器直接将第二应用程序安装包传送给终端进行还原。In an optional implementation of the embodiment of the present invention, when the backup is restored, for the second application whose installation package is not stored in the application server, after the backup server receives the restore request, the backup server directly installs the second application The package is sent to the terminal for restoration.

在本发明实施例的一个可选实施方案中,在备份还原时,对于安装包没有存储在应用服务器的第二应用程序,备份服务器在接收到还原请求后,备份服务器将第二应用程序的安装包在存储服务器的存储地址发送给终端,终端根据该存储地址,可以从存储服务器中下载该应用程序安装包;或者,备份服务器也可以从存储服务器获取第二应用程序的安装包,将第二应用程序的安装包还原给终端。In an optional implementation of the embodiment of the present invention, when the backup is restored, for the second application whose installation package is not stored in the application server, after the backup server receives the restore request, the backup server will install the second application The package is sent to the terminal at the storage address of the storage server, and the terminal can download the application installation package from the storage server according to the storage address; or, the backup server can also obtain the installation package of the second application program from the storage server, and the second The application's installation package is restored to the terminal.

在具体应用中,对于同一个用户上传的备份信息,备份服务器可以将终端上传的应用程序的标识信息、相关信息以及安装包的存储地址一起关联保存。In a specific application, for the backup information uploaded by the same user, the backup server may associate and save the identification information of the application program uploaded by the terminal, related information, and the storage address of the installation package.

在本发明实施例的一个可选实施方案中,上传模块204上传的应用程序的相关信息包括:应用程序的版本信息和应用程序的检验数据。在备份还原时,可以参考备份的版本信息选择合适的版本。另外,根据校验数据,可以对终端上传的应用程序的安装包进行完整性校验,以保证上传的安装包的数据完整性,在备份还原时,也可以根据该校验数据对还原的应用程序进行完整性校验。In an optional implementation of the embodiment of the present invention, the relevant information of the application program uploaded by the uploading module 204 includes: version information of the application program and verification data of the application program. When backing up and restoring, you can refer to the backup version information to select an appropriate version. In addition, according to the verification data, the integrity verification of the installation package of the application program uploaded by the terminal can be performed to ensure the data integrity of the uploaded installation package. When the backup is restored, the restored application can also be verified according to the verification data. The program performs an integrity check.

在本发明实施例的一个可选实施方案中,上传模块204上传的应用程序的相关信息还可以包括:应用程序的用户数据。即用户使用待备份的应用程序产生的用户数据,例如,用户使用QQ产生的聊天记录,用户使用微信产生的聊天记录、朋友圈分享的信息等。采用该可选实施方案,在还原应用程序时,可以将相应的用户数据一起还原给用户,提高用户体验。In an optional implementation of the embodiment of the present invention, the relevant information of the application program uploaded by the uploading module 204 may also include: user data of the application program. That is, the user data generated by the user using the application program to be backed up, for example, the chat records generated by the user using QQ, the chat records generated by the user using WeChat, the information shared by Moments, etc. With this optional implementation solution, when the application program is restored, the corresponding user data can be restored to the user together, thereby improving user experience.

在上述可选实施方案中,可选地,在还原时,如果用户备份的应用程序版本不是最新版本,可以将最新的版本还原给用户,避免了用户还原后还要更新版本所导致的空口流量消耗,提高用户体验。在这种情况下,如果备份的信息中还包括用户数据,则可以进一步判断备份的用户数据的格式与当前最新版本的应用程序的格式是否匹配,如果不匹配,则还可以进一步将备份的用户数据转换为相应的格式,然后再还原给终端,避免将用户数据还原给用户时由于用户数据的版本与应用程序的版本不一致而导致用户无法查看用户数据的问题。In the above optional implementation, optionally, when restoring, if the application version backed up by the user is not the latest version, the latest version can be restored to the user, avoiding the air interface traffic caused by the user updating the version after restoring Consumption, improve user experience. In this case, if the backed-up information also includes user data, it can be further judged whether the format of the backed-up user data matches the format of the latest version of the application program. The data is converted into the corresponding format, and then restored to the terminal to avoid the problem that the user cannot view the user data due to the inconsistency between the version of the user data and the version of the application when the user data is restored to the user.

在本发明实施例的一个可选实施方案中,终端启动备份可以是用户手动触发,也可以是事件触发。因此,如图3所示,该装置还可以包括:检测模块206,用于检测是否接收到输入的备份应用程序的操作请求,如果是,则触发所述发送模块200发送所述查询请求;或者,检测是否发生预定的触发事件,如果是,则触发所述发送模块发送所述查询请求。备份应用程序的操作请求可以是用户键盘、按键或可控触摸屏等输入的,预先的触发事件可以由用户设置,例如,用户可以设置备份的触发事件为系统更新,则检测模块206在检测到有更新系统的动作发生时,触发发送模块200发送查询请求。In an optional implementation of the embodiment of the present invention, the terminal starts the backup may be manually triggered by the user, or may be triggered by an event. Therefore, as shown in FIG. 3, the device may further include: a detection module 206, configured to detect whether an input backup application operation request is received, and if so, trigger the sending module 200 to send the query request; or , detecting whether a predetermined trigger event occurs, and if so, triggering the sending module to send the query request. The operation request of the backup application program can be input by the user's keyboard, button or controllable touch screen, etc., and the pre-triggering event can be set by the user. For example, the user can set the triggering event of the backup as system update. When an action of updating the system occurs, the sending module 200 is triggered to send a query request.

在本发明实施例的一个可选实施方案中,为了防止服务器被恶意攻击,在发送模块200发送查询请求之前,该装置可以先需要向服务器(该服务器可以称为账号服务器(ID服务器))提供账户信息(例如,用户的UID),服务器在接收到用户的请求后,为用户生成一个验证码,并下发给终端。终端在接收到该验证码之后,获取该验证码,在发送模块200向应用服务器发送查询请求时,向应用服务器提交该验证码,应用服务器对该验证码进行验证,验证通过之后,才查询应用服务器中是否保存有待备份的应用程序的安装包,如果验证不通过,则拒绝终端的请求。同样,在上传模块204向备份服务器上传备份数据时,也需要向备份服务器提交该验证码,备份服务器对该验证码进行验证,验证通过之后,才接收终端上传的备份数据,如果验证不通过,则拒绝终端上传的备份数据。因此,在本发明实施例的一个可选实施方案中,如图3所示,发送模块200还用于向ID服务器发送携带用户账户的请求信息,接收模块202还用于接收ID服务器下发的验证码,该装置还包括:获取模块208,用于获取ID服务器下发的验证码。In an optional implementation of the embodiment of the present invention, in order to prevent the server from being maliciously attacked, before the sending module 200 sends the query request, the device may first provide the server (the server may be called an account server (ID server)) with Account information (for example, the user's UID), the server generates a verification code for the user after receiving the user's request, and sends it to the terminal. After receiving the verification code, the terminal obtains the verification code, submits the verification code to the application server when the sending module 200 sends a query request to the application server, and the application server verifies the verification code, and only queries the application after the verification is passed. Whether to save the installation package of the application to be backed up in the server, if the verification fails, the request of the terminal is rejected. Similarly, when the upload module 204 uploads the backup data to the backup server, it also needs to submit the verification code to the backup server. The backup server verifies the verification code. After the verification is passed, it receives the backup data uploaded by the terminal. If the verification fails, Then reject the backup data uploaded by the terminal. Therefore, in an optional implementation of the embodiment of the present invention, as shown in FIG. 3 , the sending module 200 is also used to send the request information carrying the user account to the ID server, and the receiving module 202 is also used to receive the request information issued by the ID server. The verification code, the device further includes: an obtaining module 208, configured to obtain the verification code issued by the ID server.

在本发明实施例的一个可选实施方案中,ID服务器可以通过短信下发验证码,获取模块208可以自动获取短信中的验证码。具体地,获取模块208可以通过以下方式自动获取短信中的验证码:In an optional implementation solution of the embodiment of the present invention, the ID server can issue a verification code through a short message, and the obtaining module 208 can automatically obtain the verification code in the short message. Specifically, the obtaining module 208 can automatically obtain the verification code in the text message in the following manner:

获取终端的操作系统的平台签名;例如,可以运行预先在操作系统的系统服务(SystemServer)组件中注入的可执行文件,获取平台签名,即在操作系统的SystemServer组件中注入可执行文件,通过运行该可执行文件,可以获取到操作系统的平台签名。或者,在本发明实施例的一个可选实施方案中另一个可选实施方式中,也可以通过刷入恢复(recovery)分区,通过分区的一些程序获取高权限,具体可以为在ramdisk中设置一个模块,用于扫描操作系统分区,扫描后查看操作系统的平台签名。。Obtain the platform signature of the operating system of the terminal; for example, you can run the executable file injected in the system service (SystemServer) component of the operating system in advance to obtain the platform signature, that is, inject the executable file into the SystemServer component of the operating system, by running The executable file can obtain the platform signature of the operating system. Or, in another optional implementation of an optional implementation of the embodiment of the present invention, it is also possible to obtain high authority through some programs of the partition by brushing into the recovery (recovery) partition, specifically, setting a The module is used to scan the operating system partition, and check the platform signature of the operating system after scanning. .

基于获取的平台签名,获取读取短消息内容的权限;在获取到平台签名之后,可以利用获取到的操作系统的平台签名对应用进行重新签名,从而使得应用获取操作系统相应的权限,在本实施例中,相应的权限是指获取读取短消息内容的权限)Based on the obtained platform signature, the permission to read the content of the short message is obtained; after the platform signature is obtained, the application can be re-signed by using the obtained platform signature of the operating system, so that the application obtains the corresponding permission of the operating system. In an embodiment, the corresponding authority refers to the authority to obtain the content of the short message)

基于获取的读取短消息内容的权限,获取终端接收到的短消息中的验证码;在具体应用中,可以基于获取的权限,调用获取短消息内容的应用程序接口(API),从终端的数据库中读取到终端接收到的短消息的内容,然后从短消息的内容中获取到所述验证码。Based on the obtained permission to read the content of the short message, obtain the verification code in the short message received by the terminal; The content of the short message received by the terminal is read from the database, and then the verification code is obtained from the content of the short message.

在本实施例中,获取短消息内容的API属于高级别的API,必须是具有系统权限的应用才能调用这类API,因此,本实施例中,通过平台签名获取对应的权限,以调用该API获取短消息的内容。通过该实施例,可以在没有root权限的情况下,自动获取服务器发送的短信验证码,扩展终端的应用。In this embodiment, the API for obtaining short message content is a high-level API, and only an application with system authority can call this type of API. Therefore, in this embodiment, the corresponding authority is obtained through the platform signature to call the API Get the content of the short message. Through this embodiment, the SMS verification code sent by the server can be automatically obtained without root authority, and the application of the terminal can be extended.

获取模块208在获取到验证码之后,还可以将获取的验证码输入到需要填写该验证码的对话框中,从而实现短信验证码的自动填写,提高用户体验。After obtaining the verification code, the obtaining module 208 can also input the obtained verification code into the dialog box where the verification code needs to be filled, so as to realize the automatic filling of the SMS verification code and improve user experience.

本发明实施例中,在备份应用程序时,终端先查询应用服务器中是否存储有待备份的应用程序,如果存储有,则终端不向服务器上传待备份的应用程序的安装包,只将应用程序的相关信息上传给备份服务器,减小了上传的数据量,缩短了应用程序备份所需的时间,节约了应用程序备份所花费的数据流量,提高了用户体验。In the embodiment of the present invention, when backing up the application program, the terminal first inquires whether the application program to be backed up is stored in the application server. Relevant information is uploaded to the backup server, which reduces the amount of uploaded data, shortens the time required for application backup, saves the data traffic spent by application backup, and improves user experience.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的应用程序备份装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the application program backup device according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

至此,本领域技术人员应认识到,虽然本文已详尽示出和描述了本发明的多个示例性实施例,但是,在不脱离本发明精神和范围的情况下,仍可根据本发明公开的内容直接确定或推导出符合本发明原理的许多其他变型或修改。因此,本发明的范围应被理解和认定为覆盖了所有这些其他变型或修改。So far, those skilled in the art should appreciate that, although a number of exemplary embodiments of the present invention have been shown and described in detail herein, without departing from the spirit and scope of the present invention, the disclosed embodiments of the present invention can still be used. Many other variations or modifications consistent with the principles of the invention are directly identified or derived from the content. Accordingly, the scope of the present invention should be understood and deemed to cover all such other variations or modifications.

Claims (10)

1.一种应用程序备份方法,包括:1. A method for backing up an application program, comprising: 终端向应用服务器发送查询请求,其中,所述查询请求中携带了待备份的应用程序的标识信息;The terminal sends a query request to the application server, wherein the query request carries identification information of the application program to be backed up; 所述终端接收所述应用服务器返回的查询请求应答,其中,所述查询请求应答中携带有指示所述待备份的应用程序的安装包是否存储在所述应用服务器上的指示信息;The terminal receives the query request response returned by the application server, wherein the query request response carries indication information indicating whether the installation package of the application program to be backed up is stored on the application server; 所述终端根据所述指示信息,禁止将安装包存储在所述应用服务器上的待备份的第一应用程序的安装包上传给备份服务器,将所述第一应用程序的相关信息上传给所述备份服务器。According to the instruction information, the terminal prohibits uploading the installation package of the first application program to be backed up stored on the application server to the backup server, and uploads the relevant information of the first application program to the Backup server. 2.根据权利要求1所述的方法,其中,所述方法还包括:2. The method of claim 1, wherein the method further comprises: 所述终端根据所述指示信息,将安装包没有存储在所述应用服务器上的待备份的第二应用程序的安装包以及所述第二应用程序的相关信息上传给所述备份服务器。The terminal uploads the installation package of the second application program to be backed up and the related information of the second application program to the backup server according to the indication information. 3.根据权利要求1或2所述的方法,其中,所述相关信息包括:版本信息和检验数据。3. The method according to claim 1 or 2, wherein the relevant information comprises: version information and verification data. 4.根据权利要求3所述的方法,其中,所述相关信息还包括:用户数据。4. The method according to claim 3, wherein the relevant information further comprises: user data. 5.根据权利要求1或2所述的方法,其中,在终端向应用服务器发送查询请求之前,所述方法还包括:5. The method according to claim 1 or 2, wherein, before the terminal sends the query request to the application server, the method further comprises: 接收到输入的备份应用程序的操作请求;或者,receiving an incoming backup application operation request; or, 检测到发生预定的触发事件。A predetermined trigger event has been detected. 6.一种应用程序备份装置,包括:6. An application program backup device, comprising: 发送模块,用于向应用服务器发送查询请求,其中,所述查询请求中携带了待备份的应用程序的标识信息;A sending module, configured to send a query request to the application server, wherein the query request carries identification information of the application program to be backed up; 接收模块,用于接收所述应用服务器返回的查询请求应答,其中,所述查询请求应答中携带有指示所述待备份的应用程序的安装包是否存储在所述应用服务器上的指示信息;A receiving module, configured to receive a query request response returned by the application server, wherein the query request response carries indication information indicating whether the installation package of the application program to be backed up is stored on the application server; 上传模块,用于根据所述指示信息,禁止将安装包存储在所述应用服务器上的待备份的第一应用程序的安装包上传给备份服务器,将所述第一应用程序的相关信息上传给所述备份服务器。The uploading module is configured to prohibit uploading the installation package of the first application to be backed up stored on the application server to the backup server according to the indication information, and upload the relevant information of the first application to the backup server. The backup server. 7.根据权利要求6所述的装置,其中,所述上传模块还用于根据所述指示信息,将安装包没有存储在所述应用服务器上的待备份的第二应用程序的安装包以及所述第二应用程序的相关信息上传给所述备份服务器。7. The device according to claim 6, wherein the uploading module is further configured to, according to the instruction information, store the installation package of the second application program to be backed up and the installation package not stored on the application server. The related information of the second application program is uploaded to the backup server. 8.根据权利要求6或7所述的装置,其中,所述相关信息包括:版本信息和检验数据。8. The device according to claim 6 or 7, wherein the relevant information comprises: version information and verification data. 9.根据权利要求8所述的装置,其中,所述相关信息还包括:用户数据。9. The apparatus according to claim 8, wherein the relevant information further comprises: user data. 10.根据权利要求6或7所述的装置,其中,所述装置还包括:10. The device according to claim 6 or 7, wherein the device further comprises: 检测模块,用于检测是否接收到输入的备份应用程序的操作请求,如果是,则触发所述发送模块发送所述查询请求;或者,检测是否发生预定的触发事件,如果是,则触发所述发送模块发送所述查询请求。A detection module, configured to detect whether an input backup application operation request is received, and if so, trigger the sending module to send the query request; or detect whether a predetermined trigger event occurs, and if so, trigger the The sending module sends the query request.
CN201510981638.2A 2015-12-23 2015-12-23 Application program backup method and device Expired - Fee Related CN105426272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510981638.2A CN105426272B (en) 2015-12-23 2015-12-23 Application program backup method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510981638.2A CN105426272B (en) 2015-12-23 2015-12-23 Application program backup method and device

Publications (2)

Publication Number Publication Date
CN105426272A true CN105426272A (en) 2016-03-23
CN105426272B CN105426272B (en) 2019-10-15

Family

ID=55504492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510981638.2A Expired - Fee Related CN105426272B (en) 2015-12-23 2015-12-23 Application program backup method and device

Country Status (1)

Country Link
CN (1) CN105426272B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657251A (en) * 2016-10-25 2017-05-10 广东欧珀移动通信有限公司 Data synchronizing method and apparatus
WO2017107961A1 (en) * 2015-12-23 2017-06-29 北京奇虎科技有限公司 Backup system and method
CN109361819A (en) * 2018-11-05 2019-02-19 诚迈科技(南京)股份有限公司 A kind of method, intelligent terminal and backup server restoring intelligent terminal software
CN110826550A (en) * 2019-11-04 2020-02-21 泰康保险集团股份有限公司 Target vehicle information verification method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100391291C (en) * 2005-08-10 2008-05-28 华为技术有限公司 Data backing-up and recovering method and system
CN102346697A (en) * 2011-09-27 2012-02-08 宇龙计算机通信科技(深圳)有限公司 Method and system for backing up and recovering Android package (APK) and mobile terminal
CN102428446A (en) * 2009-05-18 2012-04-25 阿尔卡特朗讯公司 Data backup system
CN102469142A (en) * 2010-11-16 2012-05-23 英业达股份有限公司 Data transfer methods for deduplicators
US8239647B2 (en) * 2007-04-27 2012-08-07 Smith Micro Software, Inc. User interface indicator for mobile device backup status
CN104113556A (en) * 2014-07-31 2014-10-22 国家超级计算深圳中心(深圳云计算中心) Network logon authentication method and system, mobile terminal and application server
CN104239775A (en) * 2014-09-28 2014-12-24 北京奇虎科技有限公司 Method and device for establishing wireless connection of mobile phone end and PC (Personal Computer) end by short message
CN105577734A (en) * 2014-11-05 2016-05-11 中兴通讯股份有限公司 Information backup method, device, server and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100391291C (en) * 2005-08-10 2008-05-28 华为技术有限公司 Data backing-up and recovering method and system
US8239647B2 (en) * 2007-04-27 2012-08-07 Smith Micro Software, Inc. User interface indicator for mobile device backup status
CN102428446A (en) * 2009-05-18 2012-04-25 阿尔卡特朗讯公司 Data backup system
CN102469142A (en) * 2010-11-16 2012-05-23 英业达股份有限公司 Data transfer methods for deduplicators
CN102346697A (en) * 2011-09-27 2012-02-08 宇龙计算机通信科技(深圳)有限公司 Method and system for backing up and recovering Android package (APK) and mobile terminal
CN104113556A (en) * 2014-07-31 2014-10-22 国家超级计算深圳中心(深圳云计算中心) Network logon authentication method and system, mobile terminal and application server
CN104239775A (en) * 2014-09-28 2014-12-24 北京奇虎科技有限公司 Method and device for establishing wireless connection of mobile phone end and PC (Personal Computer) end by short message
CN105577734A (en) * 2014-11-05 2016-05-11 中兴通讯股份有限公司 Information backup method, device, server and terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017107961A1 (en) * 2015-12-23 2017-06-29 北京奇虎科技有限公司 Backup system and method
CN106657251A (en) * 2016-10-25 2017-05-10 广东欧珀移动通信有限公司 Data synchronizing method and apparatus
CN109361819A (en) * 2018-11-05 2019-02-19 诚迈科技(南京)股份有限公司 A kind of method, intelligent terminal and backup server restoring intelligent terminal software
CN110826550A (en) * 2019-11-04 2020-02-21 泰康保险集团股份有限公司 Target vehicle information verification method, device, equipment and storage medium
CN110826550B (en) * 2019-11-04 2022-08-16 泰康保险集团股份有限公司 Target vehicle information verification method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN105426272B (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN106708557B (en) Update processing method and device for terminal application
CN105554137B (en) A kind of standby system and method
CN103826215B (en) A kind of method and apparatus for carrying out Root authority management on the terminal device
CN108121559B (en) Configuration file pushing method, server and storage medium
CN104008340B (en) Virus scanning and killing method and device
CN103617057B (en) Application program installation method and device
US20200264863A1 (en) Hot update method, operating system, terminal device, and storage medium
CN103745158A (en) Method and device for repairing system bugs
CN105426272B (en) Application program backup method and device
US9483636B2 (en) Runtime application integrity protection
CN103631617A (en) Method and device for unloading system application on terminal equipment
CN103942073A (en) Method and device for realizing system hot patching
CN108733385B (en) Application installation method, device, device and storage medium
CN104156235A (en) Browser plugin and/or extension updating method and device
CN103345411A (en) Method and device for uninstalling application program
JP2013545172A (en) Device and method for providing a software program adapted to a computer system downloaded by a user
CN104573497B (en) A kind for the treatment of method and apparatus of startup item
CN105490815A (en) Short message identification code obtaining method and apparatus, and registration method, apparatus and system
CN104699511A (en) Plug-in upgrading method and plug-in upgrading device
CN111984520B (en) Buried point testing method, computer device and computer readable storage medium
CN104346206A (en) Method and system for recovering installation of unloaded software
CN106648678B (en) A system update control method and device
CN106934272B (en) A method and device for verifying application information
CN107656860A (en) Performance test methods, apparatus and system
CN106293821B (en) Method and device for acquiring and transmitting application data and running application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191015

Termination date: 20211223