CN104778096A - Data processing method and terminal - Google Patents
Data processing method and terminal Download PDFInfo
- Publication number
- CN104778096A CN104778096A CN201510129149.4A CN201510129149A CN104778096A CN 104778096 A CN104778096 A CN 104778096A CN 201510129149 A CN201510129149 A CN 201510129149A CN 104778096 A CN104778096 A CN 104778096A
- Authority
- CN
- China
- Prior art keywords
- application
- terminal
- library
- attribute information
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种数据处理方法及终端,其中一种数据处理方法包括:请求终端向目标终端发送数据查询请求;所述请求终端解析所述目标终端响应所述数据查询请求返回的查询响应,获取所述查询响应包含的第一应用库中所有应用的属性信息;所述请求终端从预先存储的第二应用库中获取属性信息与所述第一应用库中的应用属性信息相同的目标应用;所述请求终端对所述目标应用进行备份操作。本发明实施例可以实现对终端上的应用进行快速、高效地备份。
The embodiment of the present invention discloses a data processing method and a terminal, wherein a data processing method comprises: a request terminal sends a data query request to a target terminal; the request terminal parses a query response returned by the target terminal in response to the data query request, and obtains attribute information of all applications in a first application library contained in the query response; the request terminal obtains a target application whose attribute information is the same as the application attribute information in the first application library from a pre-stored second application library; the request terminal performs a backup operation on the target application. The embodiment of the present invention can realize fast and efficient backup of applications on a terminal.
Description
技术领域technical field
本发明涉及数据备份技术领域,具体涉及一种数据处理方法及终端。The invention relates to the technical field of data backup, in particular to a data processing method and a terminal.
背景技术Background technique
随着智能手机、平板电脑等终端的功能越来越丰富,用户通过利用上述终端上安装的各类应用即可很好的满足工作和生活等各种场景的需求。为体验新版或者不同厂商的终端系统固件ROM,不少用户都会对终端进行较频繁的刷机操作,为避免刷机后再次安装各类应用的繁琐过程,用户通过电脑端的手机助手(如豌豆荚、应用宝、91助手等)进行应用的备份尤其重要。As terminals such as smartphones and tablet computers have more and more functions, users can well meet the needs of various scenarios such as work and life by using various applications installed on the above-mentioned terminals. In order to experience the new version or the terminal system firmware ROM of different manufacturers, many users will perform frequent flashing operations on the terminal. It is especially important to back up applications.
现有的数据备份方案中,一般都是将终端上的应用及其相关数据直接拷贝到电脑中,当终端上安装的应用数量较多或者应用的数据量较大时会很浪费时间,这在实际操作中会给用户带来很大的不便。如何对终端安装的应用进行快速、高效地备份已成为亟待解决的问题。In the existing data backup solutions, the applications and related data on the terminal are generally copied directly to the computer. When the number of applications installed on the terminal is large or the amount of application data is large, it will be a waste of time. In actual operation, it will bring great inconvenience to users. How to quickly and efficiently back up applications installed on terminals has become an urgent problem to be solved.
发明内容Contents of the invention
本发明实施例提供了一种数据处理方法及终端,可以实现对终端上的应用进行快速、高效地备份。Embodiments of the present invention provide a data processing method and a terminal, which can implement fast and efficient backup of applications on the terminal.
本发明实施例第一方面提供了一种数据处理方法,包括:The first aspect of the embodiment of the present invention provides a data processing method, including:
请求终端向目标终端发送数据查询请求;The request terminal sends a data query request to the target terminal;
所述请求终端解析所述目标终端响应所述数据查询请求返回的查询响应,获取所述查询响应包含的第一应用库中所有应用的属性信息;The requesting terminal parses the query response returned by the target terminal in response to the data query request, and obtains attribute information of all applications in the first application library contained in the query response;
所述请求终端从预先存储的第二应用库中获取属性信息与所述第一应用库中的应用属性信息相同的目标应用;The requesting terminal acquires a target application whose attribute information is the same as that in the first application library from a pre-stored second application library;
所述请求终端对所述目标应用进行备份操作。The requesting terminal performs a backup operation on the target application.
本发明实施例第二方面提供了一种数据处理方法,包括:The second aspect of the embodiment of the present invention provides a data processing method, including:
目标终端接收请求终端发送的数据查询请求;The target terminal receives the data query request sent by the requesting terminal;
所述目标终端响应所述数据查询请求,向所述请求终端发送包含第一应用库中所有应用的属性信息的查询响应,以便于所述请求终端从预先存储的第二应用库中获取属性信息与所述第一应用库中的应用属性信息相同的目标应用,并对所述目标应用进行备份操作。In response to the data query request, the target terminal sends a query response including attribute information of all applications in the first application library to the requesting terminal, so that the requesting terminal obtains attribute information from a pre-stored second application library the same target application as the application attribute information in the first application library, and perform a backup operation on the target application.
本发明实施例第三方面提供了一种终端,包括:The third aspect of the embodiment of the present invention provides a terminal, including:
发送模块,用于向目标终端发送数据查询请求;A sending module, configured to send a data query request to the target terminal;
解析模块,用于解析所述目标终端响应所述数据查询请求返回的查询响应,获取所述查询响应包含的第一应用库中所有应用的属性信息;A parsing module, configured to parse a query response returned by the target terminal in response to the data query request, and obtain attribute information of all applications in the first application library included in the query response;
获取模块,用于从预先存储的第二应用库中获取属性信息与所述第一应用库中的应用属性信息相同的目标应用;An acquisition module, configured to acquire a target application whose attribute information is the same as that in the first application library from a pre-stored second application library;
备份模块,用于对所述目标应用进行备份操作。A backup module, configured to perform a backup operation on the target application.
本发明实施例第四方面提供了一种终端,包括:The fourth aspect of the embodiment of the present invention provides a terminal, including:
接收模块,用于接收请求终端发送的数据查询请求;A receiving module, configured to receive a data query request sent by the requesting terminal;
处理模块,用于响应所述数据查询请求,向所述请求终端发送包含第一应用库中所有应用的属性信息的查询响应,以便于所述请求终端从预先存储的第二应用库中获取属性信息与所述第一应用库中的应用属性信息相同的目标应用,并对所述目标应用进行备份操作。A processing module, configured to respond to the data query request, and send a query response including attribute information of all applications in the first application library to the requesting terminal, so that the requesting terminal can obtain attributes from a pre-stored second application library the target application whose information is the same as the application attribute information in the first application library, and perform a backup operation on the target application.
本发明实施例中,请求终端向目标终端发送数据查询请求,并解析该目标终端响应该数据查询请求返回的查询响应,获取该查询响应包含的第一应用库中所有应用的属性信息;请求终端从预先存储的第二应用库中获取属性信息与该第一应用库中的应用属性信息相同的目标应用,并对该目标应用进行备份操作,可以实现对终端上的应用进行快速、高效地备份。In the embodiment of the present invention, the requesting terminal sends a data query request to the target terminal, and parses the query response returned by the target terminal in response to the data query request, and obtains attribute information of all applications in the first application library contained in the query response; the requesting terminal Obtain the target application whose attribute information is the same as the application attribute information in the first application library from the pre-stored second application library, and perform a backup operation on the target application, so that the application on the terminal can be quickly and efficiently backed up .
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1是本发明实施例提供的一种数据处理方法的第一实施例流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a data processing method provided by an embodiment of the present invention;
图2是本发明实施例提供的一种数据处理方法的第二实施例流程示意图;FIG. 2 is a schematic flowchart of a second embodiment of a data processing method provided by an embodiment of the present invention;
图3是本发明实施例提供的一种数据处理方法的第三实施例流程示意图;FIG. 3 is a schematic flowchart of a third embodiment of a data processing method provided by an embodiment of the present invention;
图4是本发明实施例提供的一种终端的第一实施例结构示意图;FIG. 4 is a schematic structural diagram of a first embodiment of a terminal provided by an embodiment of the present invention;
图5为图4所示的获取模块的一实施例结构示意图;Fig. 5 is a schematic structural diagram of an embodiment of the acquisition module shown in Fig. 4;
图6是本发明实施例提供的一种终端的第二实施例结构示意图。FIG. 6 is a schematic structural diagram of a second embodiment of a terminal provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例中的终端可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,上述终端仅是举例,而非穷举,包含但不限于上述终端。The terminal in the embodiment of the present invention may include a smart phone (such as an Android phone, an iOS phone, a Windows Phone, etc.), a tablet computer, a handheld computer, a notebook computer, a mobile Internet device (MID, Mobile Internet Devices) or a wearable device, etc. The above-mentioned terminals are only examples, not exhaustive, including but not limited to the above-mentioned terminals.
请参阅图1,为本发明实施例提供的一种数据处理方法的第一实施例流程示意图。本实施例中所描述的数据处理方法,包括以下步骤:Please refer to FIG. 1 , which is a schematic flowchart of a first embodiment of a data processing method provided by an embodiment of the present invention. The data processing method described in this embodiment includes the following steps:
S101、请求终端向目标终端发送数据查询请求。S101. The requesting terminal sends a data query request to the target terminal.
在一些的可行的实施方式中,请求终端首先可通过无线保真Wi-Fi、蓝牙等无线连接方式或USB数据线等有线连接方式与目标终端建立连接,请求终端与目标终端建立连接的具体方式本发明实施例不作限定。In some feasible implementations, the requesting terminal can first establish a connection with the target terminal through a wireless connection such as Wi-Fi, Bluetooth, or a wired connection such as a USB data cable. The specific method for establishing a connection between the requesting terminal and the target terminal is The embodiments of the present invention are not limited.
具体的,目标终端上安装有一个或者多个应用(英文缩写:APP,英文全称:Application),请求终端在与目标终端建立连接后,可自动检测出目标终端上安装的所有应用,请求终端默认备份检测到的目标终端上安装的所有应用,通过向目标终端发送数据查询请求,以获取上述所有应用的属性信息。Specifically, one or more applications (English abbreviation: APP, English full name: Application) are installed on the target terminal. After establishing a connection with the target terminal, the requesting terminal can automatically detect all the applications installed on the target terminal, and the requesting terminal defaults to All applications installed on the detected target terminal are backed up, and attribute information of all the above applications is obtained by sending a data query request to the target terminal.
在一些可行的实施方式中,请求终端在检测出目标终端上安装的所有应用后,可向用户展示上述所有应用的名称列表以供用户选择其中的部分应用进行备份,即请求终端只对用户选择的应用进行备份,通过向目标终端发送数据查询请求,以获取上述所有应用中用户选择的应用的属性信息。In some feasible implementation manners, after detecting all the applications installed on the target terminal, the requesting terminal may present the user with a list of the names of all the above applications for the user to select some of the applications for backup, that is, the requesting terminal only selects some of the applications for the user. Back up the application of the target terminal, and obtain the attribute information of the application selected by the user among all the above applications by sending a data query request to the target terminal.
S102、请求终端解析所述目标终端响应所述数据查询请求返回的查询响应,获取所述查询响应包含的第一应用库中所有应用的属性信息。S102. The requesting terminal parses the query response returned by the target terminal in response to the data query request, and obtains attribute information of all applications in the first application library included in the query response.
其中,上述第一应用库包含目标终端上安装的所有应用或者用户从上述所有应用中选择的应用,上述属性信息包括应用的包名和版本号。Wherein, the above-mentioned first application library includes all applications installed on the target terminal or applications selected by the user from all the above-mentioned applications, and the above-mentioned attribute information includes the package names and version numbers of the applications.
具体的,目标终端在接收到请求终端发送的数据查询请求后,获取第一应用库中所有应用的包名和版本号等属性信息,并以查询响应的形式返回给请求终端,请求终端在对上述查询响应解析后获取查询响应中包含的第一应用库中所有应用的包名和版本号等属性信息。Specifically, after receiving the data query request sent by the requesting terminal, the target terminal obtains attribute information such as package names and version numbers of all applications in the first application library, and returns them to the requesting terminal in the form of query responses. After the query response is parsed, attribute information such as package names and version numbers of all applications in the first application library included in the query response is obtained.
S103、请求终端从预先存储的第二应用库中获取属性信息与所述第一应用库中的应用属性信息相同的目标应用。S103. The requesting terminal acquires a target application whose attribute information is the same as that in the first application library from the pre-stored second application library.
其中,上述第二应用库包含在之前的备份操作中目标终端或其它终端安装的所有应用中备份过的应用。Wherein, the above-mentioned second application library includes backed up applications among all applications installed in the target terminal or other terminals in the previous backup operation.
需要说明的是,第二应用库可存储在请求终端的存储空间中或者云服务器中。It should be noted that the second application library may be stored in the storage space of the requesting terminal or in the cloud server.
具体实现中,请求终端从第二应用库中查询是否存在属性信息与第一应用库中的应用属性信息相同(即包名和版本号均相同)的应用,如果存在,则将属性信息与第一应用库中的应用属性信息相同的应用设为目标应用。In the specific implementation, the requesting terminal inquires from the second application library whether there is an application whose attribute information is the same as the application attribute information in the first application library (that is, the package name and version number are the same), and if there is, the attribute information is compared with the first application library. Applications with the same application attribute information in the application library are set as target applications.
可以理解的是,上述目标应用具体可为一个或者多个应用。It can be understood that the foregoing target application may specifically be one or more applications.
在一些可行的实施方式中,请求终端可首先从第二应用库中获取包名与第一应用库中的应用包名相同的第三应用,进而判断上述第三应用的版本号是否与第一应用库中的应用版本号相同,并将第三应用中版本号与第一应用库中的应用版本号相同的应用设为目标应用。In some feasible implementation manners, the requesting terminal may first obtain the third application with the same package name as the application package name in the first application library from the second application library, and then determine whether the version number of the third application is the same as that of the first application library. The application version numbers in the application library are the same, and the application in the third application with the same version number as the application version number in the first application library is set as the target application.
其中,上述第三应用具体可为一个或者多个应用。Wherein, the above-mentioned third application may specifically be one or more applications.
在一些可行的实施方式中,请求终端可直接将上述第三应用设为目标应用,即目标应用也可以为第二应用库中包名与第一应用库中的应用包名相同但版本号可能不同的应用。In some feasible implementation manners, the requesting terminal may directly set the above-mentioned third application as the target application, that is, the target application may also be that the package name in the second application library is the same as the application package name in the first application library but the version number may be different. different applications.
举例来说,以目标终端是智能手机,请求终端是笔记本为例,二者均安装有某款手机助手,笔记本存储的第二应用库包含有UC浏览器、WPS Office、酷狗音乐、印象笔记和天天飞车五款应用,版本号分别为V10.2.1、7.2.0、8.2.6、7.0和V4.8.1,此外,智能手机上还安装有UC浏览器、WPS Office和百度云三款应用,版本号分别为V10.2.1、7.2.0和V7.7.0,智能手机通过USB数据线与笔记本建立连接后,笔记本可通过上述手机助手自动检测出智能手机安装的UC浏览器、WPS Office和百度云这三款应用,在默认设置下笔记本会备份上述三款应用,当接收到用户输入的备份开始指令时,笔记本向智能手机发送数据查询请求,进而智能手机根据上述数据查询请求,将上述三款应用的包名和版本号这两项属性信息(即UC浏览器—com.UCMobile、V10.2.1,WPS Office—cn.wps.moffice、7.2.0,百度云—com.baidu.netdisk、V7.7.0)发送到笔记本。For example, if the target terminal is a smartphone and the requesting terminal is a notebook, both of them are installed with a mobile assistant, and the second application library stored in the notebook includes UC Browser, WPS Office, Kugou Music, Evernote and Tiantian Speeding five applications, the version numbers are V10.2.1, 7.2.0, 8.2.6, 7.0 and V4.8.1 respectively. In addition, there are three applications of UC Browser, WPS Office and Baidu Cloud installed on the smartphone. The version numbers are V10.2.1, 7.2.0, and V7.7.0. After the smartphone is connected to the notebook through a USB data cable, the notebook can automatically detect the UC browser, WPS Office, and Baidu Cloud installed on the smartphone through the above-mentioned mobile assistant. These three applications, under the default settings, the notebook will back up the above three applications. When receiving the backup start command input by the user, the notebook will send a data query request to the smartphone, and then the smartphone will back up the above three applications according to the above data query request. The two attribute information of the application package name and version number (i.e. UC Browser—com.UCMobile, V10.2.1, WPS Office—cn.wps.moffice, 7.2.0, Baidu Cloud—com.baidu.netdisk, V7.7.0 ) to the notebook.
进一步的,笔记本在接收到上述三款应用的属性信息后,首先利用属性信息中的包名com.UCMobile、cn.wps.moffice和com.baidu.netdisk与第二应用库中五款应用的包名进行比对,确定第二应用库中存在包名为com.UCMobile的UC浏览器和包名为cn.wps.moffice的WPS Office,根据第二应用库包含的UC浏览器和WPS Office的版本号,笔记本可判断出第二应用库包含的UC浏览器和WPS Office与智能手机上安装的UC浏览器和WPS Office的属性信息相同,进而笔记本将存储的第二应用库中的UC浏览器和WPS Office设为目标应用以进行备份操作。Furthermore, after receiving the attribute information of the above three applications, the notebook first uses the package names com.UCMobile, cn.wps.moffice and com.baidu.netdisk in the attribute information to match the package Compare the names, and confirm that there are UC Browser with the package name com.UCMobile and WPS Office with the package name cn.wps.moffice in the second application library. According to the versions of UC Browser and WPS Office included in the second application library number, the notebook can determine that the UC browser and WPS Office contained in the second application library have the same attribute information as the UC browser and WPS Office installed on the smartphone, and then the notebook will store the UC browser and WPS Office in the second application library. WPS Office is set as the target application for backup operations.
S104、请求终端对所述目标应用进行备份操作。S104. Request the terminal to perform a backup operation on the target application.
具体的,请求终端从第二应用库中获取到目标应用后,可从第二应用库所在的存储路径下直接将目标应用及其应用数据拷贝到指定存储路径中,以完成对目标应用的数据备份。Specifically, after the requesting terminal obtains the target application from the second application library, it can directly copy the target application and its application data to the specified storage path from the storage path where the second application library is located, so as to complete the data storage of the target application. backup.
在一些可行的实施方式中,对于目标终端上安装的属性信息与第二应用库中的应用属性信息不同的应用,请求终端可从目标终端中拷贝这一部分应用及其应用数据,以完成对这一部分应用的数据备份。In some feasible implementation manners, for applications whose attribute information installed on the target terminal is different from the application attribute information in the second application library, the requesting terminal can copy this part of the application and its application data from the target terminal to complete the Data backup for some applications.
本发明实施例中,请求终端向目标终端发送数据查询请求,并解析该目标终端响应该数据查询请求返回的查询响应,获取该查询响应包含的第一应用库中所有应用的属性信息;请求终端从预先存储的第二应用库中获取属性信息与该第一应用库中的应用属性信息相同的目标应用,并对该目标应用进行备份操作,可以实现对终端上的应用进行快速、高效地备份。In the embodiment of the present invention, the requesting terminal sends a data query request to the target terminal, and parses the query response returned by the target terminal in response to the data query request, and obtains attribute information of all applications in the first application library contained in the query response; the requesting terminal Obtain the target application whose attribute information is the same as the application attribute information in the first application library from the pre-stored second application library, and perform a backup operation on the target application, so that the application on the terminal can be quickly and efficiently backed up .
请参阅图2,为本发明实施例提供的一种数据处理方法的第二实施例流程示意图。本实施例中所描述的数据处理方法,包括以下步骤:Please refer to FIG. 2 , which is a schematic flowchart of a second embodiment of a data processing method provided by an embodiment of the present invention. The data processing method described in this embodiment includes the following steps:
S201、请求终端通过无线或有线的方式与目标终端建立连接。S201. The requesting terminal establishes a connection with the target terminal in a wireless or wired manner.
具体实现中,请求终端首先可通过无线保真Wi-Fi、蓝牙等无线连接方式或USB数据线等有线连接方式与目标终端建立连接,请求终端与目标终端建立连接的具体方式本发明实施例不作限定。In specific implementation, the requesting terminal can first establish a connection with the target terminal through a wireless connection such as Wi-Fi, Bluetooth, or a wired connection such as a USB data cable. limited.
S202、请求终端向目标终端发送数据查询请求。S202. The requesting terminal sends a data query request to the target terminal.
具体的,目标终端上安装有一个或者多个应用(英文缩写:APP,英文全称:Application),请求终端在与目标终端建立连接后,可自动检测出目标终端上安装的所有应用,请求终端默认备份检测到的目标终端上安装的所有应用,通过向目标终端发送数据查询请求,以获取上述所有应用的属性信息。Specifically, one or more applications (English abbreviation: APP, English full name: Application) are installed on the target terminal. After establishing a connection with the target terminal, the requesting terminal can automatically detect all the applications installed on the target terminal, and the requesting terminal defaults to All applications installed on the detected target terminal are backed up, and attribute information of all the above applications is obtained by sending a data query request to the target terminal.
在一些可行的实施方式中,请求终端在检测出目标终端上安装的所有应用后,可向用户展示上述所有应用的名称列表以供用户选择其中的部分应用进行备份,即请求终端只对用户选择的应用进行备份,通过向目标终端发送数据查询请求,以获取上述所有应用中用户选择的应用的属性信息。In some feasible implementation manners, after detecting all the applications installed on the target terminal, the requesting terminal may present the user with a list of the names of all the above applications for the user to select some of the applications for backup, that is, the requesting terminal only selects some of the applications for the user. Back up the application of the target terminal, and obtain the attribute information of the application selected by the user among all the above applications by sending a data query request to the target terminal.
S203、请求终端解析所述目标终端响应所述数据查询请求返回的查询响应,获取所述查询响应包含的第一应用库中所有应用的属性信息。S203. The requesting terminal parses the query response returned by the target terminal in response to the data query request, and obtains attribute information of all applications in the first application library contained in the query response.
其中,上述第一应用库包含目标终端上安装的所有应用或者用户从上述所有应用中选择的应用,上述属性信息包括应用的包名和版本号。Wherein, the above-mentioned first application library includes all applications installed on the target terminal or applications selected by the user from all the above-mentioned applications, and the above-mentioned attribute information includes the package names and version numbers of the applications.
具体的,目标终端在接收到请求终端发送的数据查询请求后,获取第一应用库中所有应用的包名和版本号等属性信息,并以查询响应的形式返回给请求终端,请求终端在对上述查询响应解析后获取查询响应中包含的第一应用库中所有应用的包名和版本号等属性信息。Specifically, after receiving the data query request sent by the requesting terminal, the target terminal obtains attribute information such as package names and version numbers of all applications in the first application library, and returns them to the requesting terminal in the form of query responses. After the query response is parsed, attribute information such as package names and version numbers of all applications in the first application library included in the query response is obtained.
S204、请求终端从预先存储的第二应用库中获取包名与所述第一应用库中的应用包名相同的第三应用。S204. The requesting terminal acquires a third application with the same package name as the application package name in the first application library from the pre-stored second application library.
其中,上述第二应用库包含在之前的备份操作中目标终端或其它终端安装的所有应用中备份过的应用。Wherein, the above-mentioned second application library includes backed up applications among all applications installed in the target terminal or other terminals in the previous backup operation.
需要说明的是,第二应用库可存储在请求终端的存储空间中或者云服务器中。It should be noted that the second application library may be stored in the storage space of the requesting terminal or in the cloud server.
S205、请求终端判断所述第三应用的版本号是否与所述第一应用库中的应用版本号相同,若所述第三应用的版本号与所述第一应用库中的应用版本号相同,则执行步骤S206和步骤S207,否则,则结束本流程。S205. The requesting terminal determines whether the version number of the third application is the same as the version number of the application in the first application library, if the version number of the third application is the same as the version number of the application in the first application library , execute step S206 and step S207, otherwise, end this procedure.
具体的,请求终端可首先从第二应用库中获取包名与第一应用库中的应用包名相同的第三应用,进而判断上述第三应用的版本号是否与第一应用库中的应用版本号相同。Specifically, the requesting terminal may first obtain the third application with the same package name as the application package name in the first application library from the second application library, and then determine whether the version number of the third application is the same as that of the application in the first application library. The version numbers are the same.
其中,上述第三应用具体可为一个或者多个应用。Wherein, the above-mentioned third application may specifically be one or more applications.
S206、请求终端将所述第三应用设为目标应用。S206. Request the terminal to set the third application as a target application.
具体实现中,请求终端在判断出上述第三应用的版本号与第一应用库中的应用版本号相同时,将第三应用中版本号与第一应用库中的应用版本号相同的应用设为目标应用。In a specific implementation, when the request terminal determines that the version number of the third application is the same as the application version number in the first application library, set the application version number in the third application that is the same as the application version number in the first application library. for the target application.
可以理解的是,上述目标应用具体可为一个或者多个应用。It can be understood that the foregoing target application may specifically be one or more applications.
举例来说,以目标终端是智能手机,请求终端是笔记本为例,二者均安装有某款手机助手,笔记本存储的第二应用库包含有UC浏览器、WPS Office、酷狗音乐、印象笔记和天天飞车五款应用,版本号分别为V10.2.1、7.2.0、8.2.6、7.0和V4.8.1,此外,智能手机上还安装有UC浏览器、WPS Office和百度云三款应用,版本号分别为V10.2.1、7.2.0和V7.7.0,智能手机通过USB数据线与笔记本建立连接后,笔记本可通过上述手机助手自动检测出智能手机安装的UC浏览器、WPS Office和百度云这三款应用,在默认设置下笔记本会备份上述三款应用,当接收到用户输入的备份开始指令时,笔记本向智能手机发送数据查询请求,进而智能手机根据上述数据查询请求,将上述三款应用的包名和版本号这两项属性信息(即UC浏览器—com.UCMobile、V10.2.1,WPS Office—cn.wps.moffice、7.2.0,百度云—com.baidu.netdisk、V7.7.0)发送到笔记本。For example, if the target terminal is a smartphone and the requesting terminal is a notebook, both of them are installed with a mobile assistant, and the second application library stored in the notebook includes UC Browser, WPS Office, Kugou Music, Evernote and Tiantian Speeding five applications, the version numbers are V10.2.1, 7.2.0, 8.2.6, 7.0 and V4.8.1 respectively. In addition, there are three applications of UC Browser, WPS Office and Baidu Cloud installed on the smartphone. The version numbers are V10.2.1, 7.2.0, and V7.7.0. After the smartphone is connected to the notebook through a USB data cable, the notebook can automatically detect the UC browser, WPS Office, and Baidu Cloud installed on the smartphone through the above-mentioned mobile assistant. These three applications, under the default settings, the notebook will back up the above three applications. When receiving the backup start command input by the user, the notebook will send a data query request to the smartphone, and then the smartphone will back up the above three applications according to the above data query request. The two attribute information of the application package name and version number (i.e. UC Browser—com.UCMobile, V10.2.1, WPS Office—cn.wps.moffice, 7.2.0, Baidu Cloud—com.baidu.netdisk, V7.7.0 ) to the notebook.
进一步的,笔记本在接收到上述三款应用的属性信息后,首先利用属性信息中的包名com.UCMobile、cn.wps.moffice和com.baidu.netdisk与第二应用库中五款应用的包名进行比对,确定第二应用库中存在包名为com.UCMobile的UC浏览器和包名为cn.wps.moffice的WPS Office,根据第二应用库包含的UC浏览器和WPS Office的版本号,笔记本可判断出第二应用库包含的UC浏览器和WPS Office与智能手机上安装的UC浏览器和WPS Office的属性信息相同,进而笔记本将存储的第二应用库中的UC浏览器和WPS Office设为目标应用以进行备份操作。Furthermore, after receiving the attribute information of the above three applications, the notebook first uses the package names com.UCMobile, cn.wps.moffice and com.baidu.netdisk in the attribute information to match the package Compare the names, and confirm that there are UC Browser with the package name com.UCMobile and WPS Office with the package name cn.wps.moffice in the second application library. According to the versions of UC Browser and WPS Office included in the second application library number, the notebook can determine that the UC browser and WPS Office contained in the second application library have the same attribute information as the UC browser and WPS Office installed on the smartphone, and then the notebook will store the UC browser and WPS Office in the second application library. WPS Office is set as the target application for backup operations.
S207、请求终端对所述目标应用进行备份操作。S207. Request the terminal to perform a backup operation on the target application.
具体的,请求终端从第二应用库中获取到目标应用后,可从第二应用库所在的存储路径下直接将目标应用及其应用数据拷贝到指定存储路径中,以完成对目标应用的数据备份。Specifically, after the requesting terminal obtains the target application from the second application library, it can directly copy the target application and its application data to the specified storage path from the storage path where the second application library is located, so as to complete the data storage of the target application. backup.
在一些可行的实施方式中,对于目标终端上安装的属性信息与第二应用库中的应用属性信息不同的应用,请求终端可从目标终端中拷贝这一部分应用及其应用数据,以完成对这一部分应用的数据备份。In some feasible implementation manners, for applications whose attribute information installed on the target terminal is different from the application attribute information in the second application library, the requesting terminal can copy this part of the application and its application data from the target terminal to complete the Data backup for some applications.
本发明实施例中,请求终端通过无线或有线的方式与目标终端建立连接,并向该目标终端发送数据查询请求,进而解析该目标终端响应该数据查询请求返回的查询响应,获取该查询响应包含的第一应用库中所有应用的属性信息,请求终端从预先存储的第二应用库中获取包名与该第一应用库中的应用包名相同的第三应用,并判断该第三应用的版本号是否与该第一应用库中的应用版本号相同,若该第三应用的版本号与该第一应用库中的应用版本号相同,则请求终端将该第三应用设为目标应用并对该目标应用进行备份操作,可以实现对终端上的应用进行快速、高效地备份。In the embodiment of the present invention, the requesting terminal establishes a connection with the target terminal in a wireless or wired manner, and sends a data query request to the target terminal, and then parses the query response returned by the target terminal in response to the data query request, and obtains the query response including attribute information of all the applications in the first application library, request the terminal to obtain the third application with the same package name as the application package name in the first application library from the pre-stored second application library, and determine the third application’s Whether the version number is the same as the application version number in the first application library, if the version number of the third application is the same as the application version number in the first application library, then requesting the terminal to set the third application as the target application and Performing a backup operation on the target application can realize fast and efficient backup of the application on the terminal.
请参阅图3,为本发明实施例提供的一种数据处理方法的第三实施例流程示意图。本实施例中所描述的数据处理方法,包括以下步骤:Please refer to FIG. 3 , which is a schematic flowchart of a third embodiment of a data processing method provided by an embodiment of the present invention. The data processing method described in this embodiment includes the following steps:
S301、目标终端接收请求终端发送的数据查询请求。S301. The target terminal receives the data query request sent by the requesting terminal.
在一些的可行的实施方式中,目标终端首先可通过无线保真Wi-Fi、蓝牙等无线连接方式或USB数据线等有线连接方式与请求终端建立连接,目标终端与请求终端建立连接的具体方式本发明实施例不作限定。In some feasible implementations, the target terminal can first establish a connection with the requesting terminal through a wireless connection such as Wi-Fi, Bluetooth or a wired connection such as a USB data cable. The specific method for establishing a connection between the target terminal and the requesting terminal The embodiments of the present invention are not limited.
具体的,目标终端上安装有一个或者多个应用(英文缩写:APP,英文全称:Application),目标终端在与请求终端建立连接后,请求终端可自动检测出目标终端上安装的所有应用,请求终端默认备份检测到的目标终端上安装的所有应用,进而目标终端接收请求终端发送的用于备份上述所有应用的数据查询请求。Specifically, one or more applications (English abbreviation: APP, English full name: Application) are installed on the target terminal. After the target terminal establishes a connection with the requesting terminal, the requesting terminal can automatically detect all the applications installed on the target terminal, and request The terminal backs up all detected applications installed on the target terminal by default, and then the target terminal receives a data query request sent by the requesting terminal for backing up all the above applications.
在一些可行的实施方式中,请求终端在检测出目标终端上安装的所有应用后,可向用户展示上述所有应用的名称列表以供用户选择其中的部分应用进行备份,即请求终端只对用户选择的应用进行备份,此时目标终端接收请求终端发送的用于备份用户选择的应用的数据查询请求。In some feasible implementation manners, after detecting all the applications installed on the target terminal, the requesting terminal may present the user with a list of the names of all the above applications for the user to select some of the applications for backup, that is, the requesting terminal only selects some of the applications for the user. The application of the user is backed up, and at this time, the target terminal receives a data query request sent by the requesting terminal for backing up the application selected by the user.
S302、目标终端响应所述数据查询请求,向所述请求终端发送包含第一应用库中所有应用的属性信息的查询响应,以便于所述请求终端从预先存储的第二应用库中获取属性信息与所述第一应用库中的应用属性信息相同的目标应用,并对所述目标应用进行备份操作。S302. In response to the data query request, the target terminal sends a query response including attribute information of all applications in the first application library to the requesting terminal, so that the requesting terminal obtains attribute information from the pre-stored second application library the same target application as the application attribute information in the first application library, and perform a backup operation on the target application.
其中,上述第一应用库包含目标终端上安装的所有应用或者用户从上述所有应用中选择的应用,上述第二应用库包含在之前的备份操作中目标终端或其它终端安装的所有应用中备份过的应用,上述属性信息包括应用的包名和版本号。Wherein, the above-mentioned first application library includes all applications installed on the target terminal or applications selected by the user from the above-mentioned all applications, and the above-mentioned second application library includes all applications installed on the target terminal or other terminals in the previous backup operation. application, the above attribute information includes the package name and version number of the application.
需要说明的是,第二应用库可存储在请求终端的存储空间中或者云服务器中。It should be noted that the second application library may be stored in the storage space of the requesting terminal or in the cloud server.
具体的,目标终端在接收到请求终端发送的数据查询请求后,获取第一应用库中所有应用的包名和版本号等属性信息,并以查询响应的形式返回给请求终端,从而使得请求终端在对上述查询响应解析后获取查询响应中包含的第一应用库中所有应用的包名和版本号等属性信息,并从第二应用库中查询属性信息与第一应用库中的应用属性信息相同(即包名和版本号均相同)的目标应用,进而从第二应用库所在的存储路径下直接将目标应用及其应用数据拷贝到指定存储路径中,以完成对目标应用的数据备份。Specifically, after receiving the data query request sent by the requesting terminal, the target terminal obtains attribute information such as package names and version numbers of all applications in the first application library, and returns them to the requesting terminal in the form of a query response, so that the requesting terminal can After parsing the above query response, obtain attribute information such as package names and version numbers of all applications in the first application library included in the query response, and query attribute information from the second application library that is the same as the application attribute information in the first application library ( That is, the target application with the same package name and version number), and then directly copy the target application and its application data to the specified storage path from the storage path where the second application library is located, so as to complete the data backup of the target application.
在一些可行的实施方式中,对于目标终端上安装的属性信息与第二应用库中的应用属性信息不同的应用,请求终端可从目标终端中拷贝这一部分应用及其应用数据,以完成对这一部分应用的数据备份。In some feasible implementation manners, for applications whose attribute information installed on the target terminal is different from the application attribute information in the second application library, the requesting terminal can copy this part of the application and its application data from the target terminal to complete the Data backup for some applications.
可以理解的是,上述目标应用具体可为一个或者多个应用。It can be understood that the foregoing target application may specifically be one or more applications.
本发明实施例中,目标终端接收请求终端发送的数据查询请求,并响应该数据查询请求,向该请求终端发送包含第一应用库中所有应用的属性信息的查询响应,以便于该请求终端从预先存储的第二应用库中获取属性信息与该第一应用库中的应用属性信息相同的目标应用,并对该目标应用进行备份操作,可以实现对终端上的应用进行快速、高效地备份。In the embodiment of the present invention, the target terminal receives the data query request sent by the requesting terminal, and in response to the data query request, sends a query response containing attribute information of all applications in the first application library to the requesting terminal, so that the requesting terminal can obtain The target application whose attribute information is the same as the application attribute information in the first application library is obtained from the pre-stored second application library, and the backup operation is performed on the target application, so that the application on the terminal can be quickly and efficiently backed up.
请参阅图4,为本发明实施例提供的一种终端的第一实施例结构示意图。本实施例中所描述的终端,包括:发送模块10、解析模块20、获取模块30和备份模块40,其中:Please refer to FIG. 4 , which is a schematic structural diagram of a first embodiment of a terminal provided by an embodiment of the present invention. The terminal described in this embodiment includes: a sending module 10, an analyzing module 20, an obtaining module 30 and a backup module 40, wherein:
发送模块10,用于向目标终端发送数据查询请求。The sending module 10 is configured to send a data query request to a target terminal.
在一些的可行的实施方式中,请求终端首先可通过无线保真Wi-Fi、蓝牙等无线连接方式或USB数据线等有线连接方式与目标终端建立连接,请求终端与目标终端建立连接的具体方式本发明实施例不作限定。In some feasible implementations, the requesting terminal can first establish a connection with the target terminal through a wireless connection such as Wi-Fi, Bluetooth, or a wired connection such as a USB data cable. The specific method for establishing a connection between the requesting terminal and the target terminal is The embodiments of the present invention are not limited.
具体的,目标终端上安装有一个或者多个应用(英文缩写:APP,英文全称:Application),请求终端在与目标终端建立连接后,可自动检测出目标终端上安装的所有应用,请求终端默认备份检测到的目标终端上安装的所有应用,由发送模块10向目标终端发送数据查询请求,以获取上述所有应用的属性信息。Specifically, one or more applications (English abbreviation: APP, English full name: Application) are installed on the target terminal. After establishing a connection with the target terminal, the requesting terminal can automatically detect all the applications installed on the target terminal, and the requesting terminal defaults to All applications installed on the detected target terminal are backed up, and the sending module 10 sends a data query request to the target terminal to obtain attribute information of all the above applications.
在一些可行的实施方式中,请求终端在检测出目标终端上安装的所有应用后,可向用户展示上述所有应用的名称列表以供用户选择其中的部分应用进行备份,即请求终端只对用户选择的应用进行备份,由发送模块10向目标终端发送数据查询请求,以获取上述所有应用中用户选择的应用的属性信息。In some feasible implementation manners, after detecting all the applications installed on the target terminal, the requesting terminal may present the user with a list of the names of all the above applications for the user to select some of the applications for backup, that is, the requesting terminal only selects some of the applications for the user. The application of the application is backed up, and the sending module 10 sends a data query request to the target terminal to obtain the attribute information of the application selected by the user among all the above-mentioned applications.
解析模块20,用于解析所述目标终端响应所述数据查询请求返回的查询响应,获取所述查询响应包含的第一应用库中所有应用的属性信息。The parsing module 20 is configured to parse the query response returned by the target terminal in response to the data query request, and obtain attribute information of all applications in the first application library included in the query response.
其中,上述第一应用库包含目标终端上安装的所有应用或者用户从上述所有应用中选择的应用,上述属性信息包括应用的包名和版本号。Wherein, the above-mentioned first application library includes all applications installed on the target terminal or applications selected by the user from all the above-mentioned applications, and the above-mentioned attribute information includes the package names and version numbers of the applications.
具体的,目标终端在接收到请求终端发送的数据查询请求后,获取第一应用库中所有应用的包名和版本号等属性信息,并以查询响应的形式返回给请求终端,解析模块20在对上述查询响应解析后获取查询响应中包含的第一应用库中所有应用的包名和版本号等属性信息。Specifically, after receiving the data query request sent by the requesting terminal, the target terminal obtains attribute information such as package names and version numbers of all applications in the first application library, and returns them to the requesting terminal in the form of query responses. After the query response is parsed, attribute information such as package names and version numbers of all applications in the first application library included in the query response is obtained.
获取模块30,用于从预先存储的第二应用库中获取属性信息与所述第一应用库中的应用属性信息相同的目标应用。The acquiring module 30 is configured to acquire target applications whose attribute information is the same as that in the first application library from the pre-stored second application library.
其中,上述第二应用库包含在之前的备份操作中目标终端或其它终端安装的所有应用中备份过的应用。Wherein, the above-mentioned second application library includes backed up applications among all applications installed in the target terminal or other terminals in the previous backup operation.
需要说明的是,第二应用库可存储在请求终端的存储空间中或者云服务器中。It should be noted that the second application library may be stored in the storage space of the requesting terminal or in the cloud server.
具体实现中,获取模块30从第二应用库中查询是否存在属性信息与第一应用库中的应用属性信息相同(即包名和版本号均相同)的应用,如果存在,则获取模块30将属性信息与第一应用库中的应用属性信息相同的应用设为目标应用。In the specific implementation, the acquisition module 30 inquires from the second application library whether there is an application whose attribute information is the same as the application attribute information in the first application library (that is, the package name and version number are the same). An application whose information is the same as the application attribute information in the first application library is set as a target application.
可以理解的是,上述目标应用具体可为一个或者多个应用。It can be understood that the foregoing target application may specifically be one or more applications.
在一些可行的实施方式中,获取模块30可首先从第二应用库中获取包名与第一应用库中的应用包名相同的第三应用,进而判断上述第三应用的版本号是否与第一应用库中的应用版本号相同,并将第三应用中版本号与第一应用库中的应用版本号相同的应用设为目标应用。In some feasible implementation manners, the obtaining module 30 may firstly obtain the third application whose package name is the same as the application package name in the first application library from the second application library, and then determine whether the version number of the third application is the same as the version number of the first application library. The version numbers of the applications in the first application library are the same, and the application in the third application with the same version number as the application version number in the first application library is set as the target application.
其中,上述第三应用具体可为一个或者多个应用。Wherein, the above-mentioned third application may specifically be one or more applications.
在一些可行的实施方式中,获取模块30可直接将上述第三应用设为目标应用,即目标应用也可以为第二应用库中包名与第一应用库中的应用包名相同但版本号可能不同的应用。In some feasible implementation manners, the obtaining module 30 can directly set the above-mentioned third application as the target application, that is, the target application can also be an application package in the second application library with the same name as the application package in the first application library but with a version number may vary by application.
举例来说,以目标终端是智能手机,请求终端是笔记本为例,二者均安装有某款手机助手,笔记本存储的第二应用库包含有UC浏览器、WPS Office、酷狗音乐、印象笔记和天天飞车五款应用,版本号分别为V10.2.1、7.2.0、8.2.6、7.0和V4.8.1,此外,智能手机上还安装有UC浏览器、WPS Office和百度云三款应用,版本号分别为V10.2.1、7.2.0和V7.7.0,智能手机通过USB数据线与笔记本建立连接后,笔记本可通过上述手机助手自动检测出智能手机安装的UC浏览器、WPS Office和百度云这三款应用,在默认设置下笔记本会备份上述三款应用,当接收到用户输入的备份开始指令时,笔记本向智能手机发送数据查询请求,进而智能手机根据上述数据查询请求,将上述三款应用的包名和版本号这两项属性信息(即UC浏览器—com.UCMobile、V10.2.1,WPS Office—cn.wps.moffice、7.2.0,百度云—com.baidu.netdisk、V7.7.0)发送到笔记本。For example, if the target terminal is a smartphone and the requesting terminal is a notebook, both of them are installed with a mobile assistant, and the second application library stored in the notebook includes UC Browser, WPS Office, Kugou Music, Evernote and Tiantian Speeding five applications, the version numbers are V10.2.1, 7.2.0, 8.2.6, 7.0 and V4.8.1 respectively. In addition, there are three applications of UC Browser, WPS Office and Baidu Cloud installed on the smartphone. The version numbers are V10.2.1, 7.2.0, and V7.7.0. After the smartphone is connected to the notebook through a USB data cable, the notebook can automatically detect the UC browser, WPS Office, and Baidu Cloud installed on the smartphone through the above-mentioned mobile assistant. These three applications, under the default settings, the notebook will back up the above three applications. When receiving the backup start command input by the user, the notebook will send a data query request to the smartphone, and then the smartphone will back up the above three applications according to the above data query request. The two attribute information of the application package name and version number (i.e. UC Browser—com.UCMobile, V10.2.1, WPS Office—cn.wps.moffice, 7.2.0, Baidu Cloud—com.baidu.netdisk, V7.7.0 ) to the notebook.
进一步的,笔记本在接收到上述三款应用的属性信息后,首先利用属性信息中的包名com.UCMobile、cn.wps.moffice和com.baidu.netdisk与第二应用库中五款应用的包名进行比对,确定第二应用库中存在包名为com.UCMobile的UC浏览器和包名为cn.wps.moffice的WPS Office,根据第二应用库包含的UC浏览器和WPS Office的版本号,笔记本可判断出第二应用库包含的UC浏览器和WPS Office与智能手机上安装的UC浏览器和WPS Office的属性信息相同,进而笔记本将存储的第二应用库中的UC浏览器和WPS Office设为目标应用以进行备份操作。Furthermore, after receiving the attribute information of the above three applications, the notebook first uses the package names com.UCMobile, cn.wps.moffice and com.baidu.netdisk in the attribute information to match the package Compare the names, and confirm that there are UC Browser with the package name com.UCMobile and WPS Office with the package name cn.wps.moffice in the second application library. According to the versions of UC Browser and WPS Office included in the second application library number, the notebook can determine that the UC browser and WPS Office contained in the second application library have the same attribute information as the UC browser and WPS Office installed on the smartphone, and then the notebook will store the UC browser and WPS Office in the second application library. WPS Office is set as the target application for backup operations.
备份模块40,用于对所述目标应用进行备份操作。The backup module 40 is configured to perform a backup operation on the target application.
具体的,获取模块30从第二应用库中获取到目标应用后,由备份模块40从第二应用库所在的存储路径下直接将目标应用及其应用数据拷贝到指定存储路径中,以完成对目标应用的数据备份。Specifically, after the acquisition module 30 acquires the target application from the second application library, the backup module 40 directly copies the target application and its application data to the designated storage path from the storage path where the second application library is located, so as to complete the Data backup of the target application.
在一些可行的实施方式中,对于目标终端上安装的属性信息与第二应用库中的应用属性信息不同的应用,备份模块40可从目标终端中拷贝这一部分应用及其应用数据,以完成对这一部分应用的数据备份。In some feasible implementation manners, for applications whose attribute information installed on the target terminal is different from the application attribute information in the second application library, the backup module 40 can copy this part of the applications and their application data from the target terminal to complete the backup. Data backup for this part of the application.
在一些可行的实施方式中,本实施例中所描述的终端还可包括连接模块50,其中:In some feasible implementation manners, the terminal described in this embodiment may further include a connection module 50, wherein:
连接模块50,用于通过无线或有线的方式与目标终端建立连接。The connection module 50 is configured to establish a connection with the target terminal in a wireless or wired manner.
具体的,连接模块50首先可通过无线保真Wi-Fi、蓝牙等无线连接方式或USB数据线等有线连接方式与目标终端建立连接,连接模块50与目标终端建立连接的具体方式本发明实施例不作限定。Specifically, the connection module 50 can first establish a connection with the target terminal through a wireless connection such as Wi-Fi, Bluetooth or a wired connection such as a USB data cable. Not limited.
本发明实施例中,请求终端向目标终端发送数据查询请求,并解析该目标终端响应该数据查询请求返回的查询响应,获取该查询响应包含的第一应用库中所有应用的属性信息;请求终端从预先存储的第二应用库中获取属性信息与该第一应用库中的应用属性信息相同的目标应用,并对该目标应用进行备份操作,可以实现对终端上的应用进行快速、高效地备份。In the embodiment of the present invention, the requesting terminal sends a data query request to the target terminal, and parses the query response returned by the target terminal in response to the data query request, and obtains attribute information of all applications in the first application library contained in the query response; the requesting terminal Obtain the target application whose attribute information is the same as the application attribute information in the first application library from the pre-stored second application library, and perform a backup operation on the target application, so that the application on the terminal can be quickly and efficiently backed up .
请参阅图5,为图4所示的获取模块的一实施例结构示意图。本实施例中所描述的获取模块30包括:获取单元301、判断单元302和设置单元303,其中:Please refer to FIG. 5 , which is a schematic structural diagram of an embodiment of the acquisition module shown in FIG. 4 . The acquiring module 30 described in this embodiment includes: an acquiring unit 301, a judging unit 302 and a setting unit 303, wherein:
获取单元301,用于从预先存储的第二应用库中获取包名与所述第一应用库中的应用包名相同的第三应用;An acquisition unit 301, configured to acquire a third application with the same package name as the application package name in the first application library from a pre-stored second application library;
判断单元302,用于判断所述第三应用的版本号是否与所述第一应用库中的应用版本号相同;A judging unit 302, configured to judge whether the version number of the third application is the same as the version number of the application in the first application library;
设置单元303,用于在所述判断单元判断出所述第三应用的版本号与所述第一应用库中的应用版本号相同时,将所述第三应用设为目标应用。The setting unit 303 is configured to set the third application as a target application when the judging unit judges that the version number of the third application is the same as the version number of the application in the first application library.
其中,上述第二应用库包含在之前的备份操作中目标终端或其它终端安装的所有应用中备份过的应用。Wherein, the above-mentioned second application library includes backed up applications among all applications installed in the target terminal or other terminals in the previous backup operation.
需要说明的是,第二应用库可存储在请求终端的存储空间中或者云服务器中。It should be noted that the second application library may be stored in the storage space of the requesting terminal or in the cloud server.
具体的,获取单元301可首先从第二应用库中获取包名与第一应用库中的应用包名相同的第三应用,进而由判断单元302判断上述第三应用的版本号是否与第一应用库中的应用版本号相同。Specifically, the acquisition unit 301 may first acquire the third application with the same package name as the application package name in the first application library from the second application library, and then the judgment unit 302 judges whether the version number of the third application is the same as that of the first application library. The app version number in the app repository is the same.
其中,上述第三应用具体可为一个或者多个应用。Wherein, the above-mentioned third application may specifically be one or more applications.
在判断单元302判断出上述第三应用的版本号与第一应用库中的应用版本号相同时,设置单元303将第三应用中版本号与第一应用库中的应用版本号相同的应用设为目标应用。When the judging unit 302 judges that the version number of the third application is the same as the version number of the application in the first application library, the setting unit 303 sets the application version number in the third application that is the same as the version number of the application in the first application library. for the target application.
可以理解的是,上述目标应用具体可为一个或者多个应用。It can be understood that the foregoing target application may specifically be one or more applications.
本发明实施例中,请求终端通过无线或有线的方式与目标终端建立连接,并向该目标终端发送数据查询请求,进而解析该目标终端响应该数据查询请求返回的查询响应,获取该查询响应包含的第一应用库中所有应用的属性信息,请求终端从预先存储的第二应用库中获取包名与该第一应用库中的应用包名相同的第三应用,并判断该第三应用的版本号是否与该第一应用库中的应用版本号相同,若该第三应用的版本号与该第一应用库中的应用版本号相同,则请求终端将该第三应用设为目标应用并对该目标应用进行备份操作,可以实现对终端上的应用进行快速、高效地备份。In the embodiment of the present invention, the requesting terminal establishes a connection with the target terminal in a wireless or wired manner, and sends a data query request to the target terminal, and then parses the query response returned by the target terminal in response to the data query request, and obtains the query response including attribute information of all the applications in the first application library, request the terminal to obtain the third application with the same package name as the application package name in the first application library from the pre-stored second application library, and determine the third application’s Whether the version number is the same as the application version number in the first application library, if the version number of the third application is the same as the application version number in the first application library, then requesting the terminal to set the third application as the target application and Performing a backup operation on the target application can realize fast and efficient backup of the application on the terminal.
请参阅图6,为本发明实施例提供的一种终端的第二实施例结构示意图。本实施例中所描述的终端,包括:接收模块60和处理模块70,其中:Please refer to FIG. 6 , which is a schematic structural diagram of a second embodiment of a terminal provided by an embodiment of the present invention. The terminal described in this embodiment includes: a receiving module 60 and a processing module 70, wherein:
接收模块60,用于接收请求终端发送的数据查询请求。The receiving module 60 is configured to receive the data query request sent by the requesting terminal.
在一些的可行的实施方式中,目标终端首先可通过无线保真Wi-Fi、蓝牙等无线连接方式或USB数据线等有线连接方式与请求终端建立连接,目标终端与请求终端建立连接的具体方式本发明实施例不作限定。In some feasible implementations, the target terminal can first establish a connection with the requesting terminal through a wireless connection such as Wi-Fi, Bluetooth or a wired connection such as a USB data cable. The specific method for establishing a connection between the target terminal and the requesting terminal The embodiments of the present invention are not limited.
具体的,目标终端上安装有一个或者多个应用(英文缩写:APP,英文全称:Application),目标终端在与请求终端建立连接后,请求终端可自动检测出目标终端上安装的所有应用,请求终端默认备份检测到的目标终端上安装的所有应用,进而接收模块60接收请求终端发送的用于备份上述所有应用的数据查询请求。Specifically, one or more applications (English abbreviation: APP, English full name: Application) are installed on the target terminal. After the target terminal establishes a connection with the requesting terminal, the requesting terminal can automatically detect all the applications installed on the target terminal, and request The terminal backs up all applications installed on the detected target terminal by default, and then the receiving module 60 receives a data query request for backing up all the above applications sent by the requesting terminal.
在一些可行的实施方式中,请求终端在检测出目标终端上安装的所有应用后,可向用户展示上述所有应用的名称列表以供用户选择其中的部分应用进行备份,即请求终端只对用户选择的应用进行备份,此时接收模块60接收请求终端发送的用于备份用户选择的应用的数据查询请求。In some feasible implementation manners, after detecting all the applications installed on the target terminal, the requesting terminal may present the user with a list of the names of all the above applications for the user to select some of the applications for backup, that is, the requesting terminal only selects some of the applications for the user. The application of the application is backed up, and at this time the receiving module 60 receives a data query request for backing up the application selected by the user sent by the requesting terminal.
处理模块70,用于响应所述数据查询请求,向所述请求终端发送包含第一应用库中所有应用的属性信息的查询响应,以便于所述请求终端从预先存储的第二应用库中获取属性信息与所述第一应用库中的应用属性信息相同的目标应用,并对所述目标应用进行备份操作。The processing module 70 is configured to respond to the data query request, and send a query response including attribute information of all applications in the first application library to the requesting terminal, so that the requesting terminal can obtain the data from the pre-stored second application library. The target application whose attribute information is the same as the application attribute information in the first application library, and perform a backup operation on the target application.
其中,上述第一应用库包含目标终端上安装的所有应用或者用户从上述所有应用中选择的应用,上述第二应用库包含在之前的备份操作中目标终端或其它终端安装的所有应用中备份过的应用,上述属性信息包括应用的包名和版本号。Wherein, the above-mentioned first application library includes all applications installed on the target terminal or applications selected by the user from the above-mentioned all applications, and the above-mentioned second application library includes all applications installed on the target terminal or other terminals in the previous backup operation. application, the above attribute information includes the package name and version number of the application.
需要说明的是,第二应用库可存储在请求终端的存储空间中或者云服务器中。It should be noted that the second application library may be stored in the storage space of the requesting terminal or in the cloud server.
具体的,在接收模块60接收到请求终端发送的数据查询请求后,处理模块70获取第一应用库中所有应用的包名和版本号等属性信息,并以查询响应的形式返回给请求终端,从而使得请求终端在对上述查询响应解析后获取查询响应中包含的第一应用库中所有应用的包名和版本号等属性信息,并从第二应用库中查询属性信息与第一应用库中的应用属性信息相同(即包名和版本号均相同)的目标应用,进而从第二应用库所在的存储路径下直接将目标应用及其应用数据拷贝到指定存储路径中,以完成对目标应用的数据备份。Specifically, after the receiving module 60 receives the data query request sent by the requesting terminal, the processing module 70 obtains attribute information such as package names and version numbers of all applications in the first application library, and returns them to the requesting terminal in the form of query responses, thereby Make the requesting terminal obtain attribute information such as package names and version numbers of all applications in the first application library contained in the query response after parsing the above query response, and query the attribute information from the second application library and the application information in the first application library. Target applications with the same attribute information (that is, the same package name and version number), and then directly copy the target application and its application data to the specified storage path from the storage path where the second application library is located, so as to complete the data backup of the target application .
在一些可行的实施方式中,对于目标终端上安装的属性信息与第二应用库中的应用属性信息不同的应用,请求终端可从目标终端中拷贝这一部分应用及其应用数据,以完成对这一部分应用的数据备份。In some feasible implementation manners, for applications whose attribute information installed on the target terminal is different from the application attribute information in the second application library, the requesting terminal can copy this part of the application and its application data from the target terminal to complete the Data backup for some applications.
可以理解的是,上述目标应用具体可为一个或者多个应用。It can be understood that the foregoing target application may specifically be one or more applications.
本发明实施例中,目标终端接收请求终端发送的数据查询请求,并响应该数据查询请求,向该请求终端发送包含第一应用库中所有应用的属性信息的查询响应,以便于该请求终端从预先存储的第二应用库中获取属性信息与该第一应用库中的应用属性信息相同的目标应用,并对该目标应用进行备份操作,可以实现对终端上的应用进行快速、高效地备份。In the embodiment of the present invention, the target terminal receives the data query request sent by the requesting terminal, and in response to the data query request, sends a query response containing attribute information of all applications in the first application library to the requesting terminal, so that the requesting terminal can obtain The target application whose attribute information is the same as the application attribute information in the first application library is obtained from the pre-stored second application library, and the backup operation is performed on the target application, so that the application on the terminal can be quickly and efficiently backed up.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的终端,可通过其它的方式实现。例如,以上所描述的终端实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed terminal can be implemented in other ways. For example, the terminal embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of modules or units may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。以上对本发明实施例所提供的一种数据处理方法及终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disc, etc., which can store program codes. . A data processing method and a terminal provided by the embodiments of the present invention have been described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the present invention. method and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood as Limitations on the Invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510129149.4A CN104778096A (en) | 2015-03-23 | 2015-03-23 | Data processing method and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510129149.4A CN104778096A (en) | 2015-03-23 | 2015-03-23 | Data processing method and terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104778096A true CN104778096A (en) | 2015-07-15 |
Family
ID=53619577
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510129149.4A Pending CN104778096A (en) | 2015-03-23 | 2015-03-23 | Data processing method and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104778096A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110955450A (en) * | 2019-12-16 | 2020-04-03 | 北京智游网安科技有限公司 | Application package file attribution statistical method, system and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050240921A1 (en) * | 2004-04-22 | 2005-10-27 | International Business Machines Corporation | Method and system for software and data distribution |
| CN102508736A (en) * | 2011-10-11 | 2012-06-20 | 宇龙计算机通信科技(深圳)有限公司 | Backup method of application program in communication terminal and communication terminal |
| CN103546807A (en) * | 2013-10-30 | 2014-01-29 | 乐视致新电子科技(天津)有限公司 | Cloud back-up and restoration method and related device |
| CN103561324A (en) * | 2013-10-30 | 2014-02-05 | 乐视致新电子科技(天津)有限公司 | Method and device for conducting cloud packing-up on application program of cloud television |
| CN103561323A (en) * | 2013-10-30 | 2014-02-05 | 乐视致新电子科技(天津)有限公司 | Method and device for conducting cloud backing-up on application program of cloud television |
| CN104092715A (en) * | 2013-11-28 | 2014-10-08 | 腾讯科技(深圳)有限公司 | Synchronization application program method, server and system |
-
2015
- 2015-03-23 CN CN201510129149.4A patent/CN104778096A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050240921A1 (en) * | 2004-04-22 | 2005-10-27 | International Business Machines Corporation | Method and system for software and data distribution |
| CN102508736A (en) * | 2011-10-11 | 2012-06-20 | 宇龙计算机通信科技(深圳)有限公司 | Backup method of application program in communication terminal and communication terminal |
| CN103546807A (en) * | 2013-10-30 | 2014-01-29 | 乐视致新电子科技(天津)有限公司 | Cloud back-up and restoration method and related device |
| CN103561324A (en) * | 2013-10-30 | 2014-02-05 | 乐视致新电子科技(天津)有限公司 | Method and device for conducting cloud packing-up on application program of cloud television |
| CN103561323A (en) * | 2013-10-30 | 2014-02-05 | 乐视致新电子科技(天津)有限公司 | Method and device for conducting cloud backing-up on application program of cloud television |
| CN104092715A (en) * | 2013-11-28 | 2014-10-08 | 腾讯科技(深圳)有限公司 | Synchronization application program method, server and system |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110955450A (en) * | 2019-12-16 | 2020-04-03 | 北京智游网安科技有限公司 | Application package file attribution statistical method, system and storage medium |
| CN110955450B (en) * | 2019-12-16 | 2023-09-29 | 北京智游网安科技有限公司 | Attribution statistical method, system and storage medium of application package file |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9367403B2 (en) | Terminal and application restoring method | |
| US10540325B2 (en) | Method and device for identifying junk picture files | |
| CN102916866A (en) | Data sharing method, terminal, server and system | |
| WO2018103405A1 (en) | Method for identifying access point and hotspot, and related product | |
| CN108762939A (en) | A kind of PCIe port resource allocation methods, system and equipment and storage medium | |
| CN106507501B (en) | Bluetooth connection method and device | |
| CN104573093A (en) | A method and device for managing file directories | |
| CN106201783A (en) | A kind of data reconstruction method and device | |
| CN104902478A (en) | A method for connecting to a Wi-Fi network, a wireless speaker and a terminal | |
| CN108205504B (en) | Terminal USB mapping method, virtual machine USB mapping method and system | |
| CN103838799A (en) | Method, terminal device, cloud server and system for recommending installing software | |
| CN107306458B (en) | A kind of working SIM card configuration method of communication terminal and communication terminal | |
| CN110187872A (en) | A BIOS development method, system, electronic equipment, and storage medium | |
| CN103440295A (en) | Method for uploading multimedia files and electronic terminal | |
| CN105827740A (en) | A contact information backup method, device and system | |
| CN105204964A (en) | Data backup method and device based on cloud disk | |
| CN111625371A (en) | Text transmission method, device, PC (personal computer) terminal, mobile terminal and system | |
| CN109542754B (en) | Mobile device access method, application debugging method, device and system | |
| CN103559091B (en) | A kind of data dispatching method and split type terminal system | |
| CN105991729A (en) | Installation package downloading method and server | |
| CN105227627B (en) | A kind of playback equipment packet control process and user terminal | |
| CN104778096A (en) | Data processing method and terminal | |
| CN105144073A (en) | Removable storage device identity and configuration information | |
| CN109542357B (en) | Command parameter assembling method, system, equipment and computer storage medium | |
| CN105208574A (en) | Method and device for detecting performance of wireless module of terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| EXSB | Decision made by sipo to initiate substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150715 |
|
| RJ01 | Rejection of invention patent application after publication |