Obtaining method of target application data, electronic equipment and storage medium
By obtaining and filtering the domain name and file identifier of the target application data from the iCloud server, and directly obtaining the target application data, the problem of long acquisition time and large storage space in the existing technology is solved, and more efficient data acquisition is achieved.
Patent Information
- Application Number
- CN202510069901.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-09
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the target application data is acquired on iCloud cloud storage for a long time and takes up a large storage space.
By obtaining backup information corresponding to the target account information from the iCloud server, filtering out the domain name and file identifier of the target application information, and obtaining the target application data based on these identifiers, thereby reducing the amount of data and network requests.
It significantly reduces the time and storage space used for acquisition of target application data, and improves the efficiency of data acquisition.
Smart Images

Figure CN119961059A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of data acquisition, and in particular to a method for acquiring target application data, an electronic device, and a computer-readable storage medium. Background Art
[0002] iCloud is an online synchronization storage service and cloud computing service provided by Apple. Users can store music, photos, application information, files, contacts, calendars, third-party applications and other application data in iCloud.
[0003] When users want to obtain data of a specific application on iCloud cloud storage (target application data), for example, WeChat chat history and related files, they can use the data recovery function provided by Apple to restore all data on the old device to the new device, and then obtain the application data of the specific application from the new device. The process of obtaining application data is relatively long and requires a large amount of storage space on the device.
[0004] Based on this, how to provide a method for acquiring target application data that takes less time and occupies less storage space has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] In view of the above problems, the embodiments of the present application provide a method for acquiring target application data, an electronic device, and a computer-readable storage medium, which are used to solve the problems in the prior art that the acquisition of target application data takes a long time and occupies a large storage space.
[0006] According to one aspect of an embodiment of the present application, a method for obtaining target application data is provided, the method comprising: obtaining backup information corresponding to target account information from an iCloud server, wherein the backup information is information generated by the iCloud server backing up data of multiple applications corresponding to the target account information, and the application includes multiple application files; obtaining application information corresponding to each of the multiple applications from the iCloud server according to the backup information, the application information including domain name information corresponding to the application, and multiple file identifiers corresponding one-to-one to multiple application files of the application; filtering domain name information of the application information according to a preset domain name list, and determining the application information corresponding to the filtered domain name information as the target application information; and obtaining file data corresponding to the target application information from the iCloud server according to the multiple file identifiers of the target application information.
[0007] Preferably, acquiring file data corresponding to the target application information from the iCloud server according to multiple file identifiers of the target application information further includes: acquiring file attributes corresponding to each file identifier from the iCloud server according to the multiple file identifiers of the target application information, the file attributes including file type information; filtering the file type information according to a preset file type list, and determining the file identifier corresponding to the filtered file type information as the target file identifier; and acquiring file data corresponding to the target file identifier of the target application information from the iCloud server.
[0008] Preferably, the file type list includes file type whitelist information; filtering the file type information according to a preset file type list, and determining the file identifier corresponding to the filtered file type information as the target file identifier, further including: determining whether the file type information corresponding to the file identifier exists in the file type whitelist; if the file type information corresponding to the file identifier exists in the file type whitelist, determining the file identifier as the target file identifier.
[0009] Preferably, obtaining file attributes corresponding to each file identifier from the iCloud server according to multiple file identifiers of the target application information further includes: obtaining encrypted file attributes corresponding to each file identifier from the iCloud server according to the multiple file identifiers of the target application information; decrypting the encrypted file attributes to obtain file attributes in plain text corresponding to the encrypted file attributes, the file attributes including file path information, and the file path information including suffix bytes; judging whether the file type information corresponding to the file identifier exists in the file type whitelist, further includes: judging whether the suffix bytes of the file path information corresponding to the file identifier exist in the preset suffix bytes of the file type whitelist; if the file type information corresponding to the file identifier exists in the file type whitelist, determining the file identifier as the target file identifier, further includes: if the suffix bytes of the file path information corresponding to the file identifier exist in the preset suffix bytes of the file type whitelist, determining the file identifier as the target file identifier.
[0010] Preferably, before obtaining the backup information corresponding to the target account information from the iCloud server, the obtaining method further includes: obtaining the target account information; and establishing a communication connection with the iCloud server according to the target account information.
[0011] Preferably, the backup information includes multiple snapshot identifiers, which are identifier information generated to record the status of the backup process of the iCloud server; obtaining application information corresponding to each of the multiple applications from the iCloud server according to the backup information, the application information including domain name information corresponding to the application, and multiple file identifiers corresponding to multiple application files of the application, further including: obtaining inventory data corresponding to the snapshot identifier from the iCloud server according to the snapshot identifier, the inventory data including multiple application identifiers corresponding to each snapshot identifier, the application identifier being identifier information corresponding to each application generated by the iCloud server during the backup process; obtaining application information corresponding to each application identifier from the iCloud server according to the multiple application identifiers, the application information including domain name information corresponding to the application identifier and multiple file identifiers corresponding to the application identifier.
[0012] Preferably, the domain name list includes a domain whitelist; the domain name information of the application information is screened according to the preset domain name list, and the application information corresponding to the screened domain name information is determined as the target application information, further including: judging whether the domain name information of the application information exists in the domain whitelist; if the domain name information of the application information exists in the domain whitelist, the application information is determined as the target application information.
[0013] Preferably, the domain name list includes a domain blacklist; the domain name information of the application information is screened according to the preset domain name list, and the application information corresponding to the screened domain name information is determined as the target application information, further including: judging whether the domain name information of the application information exists in the domain blacklist; if the domain name information of the application information does not exist in the domain blacklist, the application information is determined as the target application information.
[0014] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory. Preferably, the processor executes the computer program to implement the steps of the acquisition method as described in any one of the above items.
[0015] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. Preferably, when the computer program is executed by a processor, the steps of the acquisition method as described in any one of the above items are implemented.
[0016] The embodiment of the present application obtains application information corresponding to each application of multiple applications from the iCloud server according to the backup information, filters the domain name information of the application information according to a preset domain name list, and determines the application information corresponding to the filtered domain name information as the target application information, and then obtains the file data corresponding to the target application information from the iCloud server according to the multiple file identifiers of the target application information. A large amount of file data of multiple applications can be filtered, and only the file data of the target application information corresponding to the target application can be obtained, so as to reduce the amount of data required to obtain and the number of requests required to be sent to the iCloud server when obtaining the target application data, thereby greatly reducing the time taken to obtain the target application data and the storage space required to be occupied.
[0017] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings: Figure 1 A schematic diagram showing an application scenario of the method for acquiring target application data provided by an embodiment of the present application; Figure 2 A schematic diagram showing a flow chart of a method for acquiring target application data provided in an embodiment of the present application; Figure 3 A schematic diagram showing a flow chart of a method for acquiring target application data provided by another embodiment of the present application; Figure 4 A schematic diagram showing a flow chart of a method for acquiring target application data provided by another embodiment of the present application; Figure 5 This application provides Figure 4 A schematic flow chart of the sub-steps of S370 and S380; Figure 6 A schematic diagram showing the structure of a device for acquiring target application data provided by an embodiment of the present application is shown; Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0019] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein.
[0020] See also Figure 1 The backup function provided by the iCloud server is a cloud service provided by Apple. This backup function allows users to store data on a remote server so that the data can be protected even if the device is lost or damaged.
[0021] Generally speaking, the storage space of Apple devices is 128GB ~ 1TB. If you use the iCloud storage service, Apple provides users with 5GB of free cloud space, and users can also purchase several TB of space to store user data generated by Apple devices. Therefore, the amount of data corresponding to the account of users who use the iCloud cloud storage service is basically more than 5GB, and can even reach several TB.
[0022] If users want to obtain specific application data on iCloud cloud storage, such as WeChat chat history and related files. Users can obtain the target application data based on the data recovery function provided by Apple. Among them, the data recovery function refers to restoring from iCloud to a new device, which can completely restore almost all data on the old Apple device, including photos, videos, contacts, text messages, call logs, memos, calendars, Safari browser bookmarks, applications and their data, system settings and other data to the new device. However, this is a full recovery solution. If iCloud stores 100GB of user data, the recovery process may take several hours and consume nearly 100G of storage space on the new device.
[0023] The inventor of the present application has found that it is possible to actively obtain target application data from iCloud cloud storage and implement download acceleration based on a filtering mechanism based on file features (such as file type, file name, and file path). Figure 1 The storage method of the iCloud server shown is an undisclosed technology. Therefore, the inventor of the present application first proposes a method of traversing all files, reading file information in sequence, and judging whether the file corresponding to the file information is a target file based on the file features in the file information. If the file is a target file, the file data corresponding to the file information is downloaded. However, due to the hierarchical file management characteristics of iCloud cloud storage, the acceleration effect of this solution is limited. For example, if there are tens of thousands of files in the cloud backup, the feature information of each file needs to be obtained before the accelerated download, which will generate a large number of network requests and CPU calculations.
[0024] Furthermore, as the understanding of the iCloud server storage method deepens during the process of acquiring the target application data, the inventors of the present application discovered that when the iCloud server backs up the incremental data of multiple applications on the user's device (additions and deletions of files in the application, and additions and deletions of data within the file), the iCloud server will generate backup information corresponding to the target account information; because the iCloud server will record the status of the backup process during the backup process, the iCloud server will further take a snapshot to record the list of backed-up applications; the backup of the application specifically includes the backup of multiple files. Therefore, the application information of the updated application can be obtained from the list of snapshots corresponding to the backup information, and the application information can be screened to determine the target application information. Specifically, please refer to Figure 2 , Figure 1 The first server in the Figure 2 The method for obtaining the target application data in . Figure 2 As shown, the method for obtaining target application data includes the following steps: S110, obtaining backup information corresponding to the target account information from the iCloud server, wherein the backup information is information generated by the iCloud server backing up data of multiple application programs corresponding to the target account information, and the application program includes multiple application files.
[0025] S120, obtaining application information corresponding to each of the multiple applications from the iCloud server according to the backup information, the application information including domain name information corresponding to the application and multiple file identifiers corresponding to multiple application files of the application.
[0026] S130, filtering the domain name information of the application information according to a preset domain name list, and determining the application information corresponding to the filtered domain name information as the target application information.
[0027] S140, acquiring file data corresponding to the target application information from the iCloud server according to the multiple file identifiers of the target application information.
[0028] Through the above S110~S140, the first server needs to send a request for obtaining backup information corresponding to the target account information, a request for obtaining application information corresponding to each of the multiple applications, and a request for downloading file data corresponding to the target application information to the iCloud server; the first server only needs to send a request corresponding to the target application information to the iCloud server, and does not need to send each file information request in order to read the file feature information, which can save a large number of network requests and CPU calculations, thereby greatly improving the download speed and saving storage space.
[0029] To provide a more detailed description of S110 - S140 , the present application further provides Embodiment 1 - Embodiment 2.
[0030] Embodiment 1: See also Figure 3 ,like Figure 3 The method for obtaining target application data shown includes the following steps: S210, obtaining target account information.
[0031] The target account information includes the user's iCloud account and the password corresponding to the account. It can be as follows Figure 1 As shown, the user sends / inputs account information to the first server, or the first server may store target account information. When executing S210, the first server reads the pre-stored target account information.
[0032] S220, establishing a communication connection with the iCloud server according to the target account information.
[0033] The first server sends an account number and a password to the iCloud server to log in to the iCloud server, obtain communication authority with the iCloud server, and establish a communication connection with the iCloud server.
[0034] S230, obtaining backup information corresponding to the target account information from the iCloud server, wherein the backup information is information generated by the iCloud server backing up data of multiple applications corresponding to the target account information, the application includes multiple application files, and the backup information includes multiple snapshot identifiers, which are identifier information generated to record the status of the iCloud server backup process.
[0035] The following is an example of the backup information obtained: ———————————————————————————— backupInfo = { / / backupInfo is the backup information obtained / / "deviceID": "357e3a7703af6f6749f4e18e92ca8896cba5e661", / / Device ID for iCloud server backup / / "deviceName": "Administrator's iPhone", / / Device name / / "productType": "iPhone8,1", "serialNumber": "DNQSXXXXXXXX", "snapshots": [ / / Snapshot information when backing up the iCloud server / / { "productVersion": "15.8.3", "size": 2047180, "snapshotID": "A6B2B53C-7F6A-467A-92EA-9F7776484649", / / Snapshot ID of the first snapshot / / "updatedAt": 1733436253764 }, { "productVersion": "15.8.3", "size": 2221146, "snapshotID": "0DAE067D-D405-429D-8181-25D4256C459D", / / Snapshot ID of the second snapshot / / "updatedAt": 1733333442366 }, { "productVersion": "15.8.3", "size": 56987939, "snapshotID": "A28425F3-93DF-4F2A-BA49-569569C526F9", / / The snapshot ID of the third snapshot / / "updatedAt": 1733246907123 }, { } ] } ———————————————————————————— S240, obtaining inventory data corresponding to the snapshot identifier from the iCloud server according to the snapshot identifier, the inventory data including multiple application identifiers corresponding to each snapshot identifier, and the application identifier is identification information corresponding to each application generated by the iCloud server during the backup process.
[0036] Traverse the backupInfo["snapshots"] snapshot list, obtain the manifest data of each snapshot from the iCloud server, and save it as manifestIDList: The example of manifestIDList is as follows: ———————————————————————————— manifestIDList = [ { "snapshotID":"A6B2B53C-7F6A-467A-92EA-9F7776484649", / / Snapshot ID of the first snapshot / / "manifestIDs":[ "M:F32B8551-A277-4E13-B500-3C837D79DDC1:NZ3hi3wfwOznd5kvRG / qBCqZ5Fs=", / / The first application ID corresponding to the snapshot ID of the first snapshot, for example, used to identify WeChat, / / "M:F32B8551-A277-4E13-B500-3C837D79DDC1:dy3hCiDHsJ8BKJayezGP+Hahlrw=", / / The second application ID corresponding to the snapshot ID of the first snapshot, for example, used to identify TikTok / / "M:F32B8551-A277-4E13-B500-3C837D79DDC1:YSqkpoAkl7HfwSf3BLtQRYhiu0g=", / / The third application identifier corresponding to the snapshot identifier of the first snapshot, for example, used to identify Weibo / / ] }, { } ] ———————————————————————————— S250, acquiring application information corresponding to each application identifier from the iCloud server according to the multiple application identifiers, where the application information includes domain name information corresponding to the application identifier and multiple file identifiers corresponding to the application identifier.
[0037] Traverse the manifestIDList of each snapshot, obtain the corresponding manifest details, that is, application information, and save the obtained application information corresponding to each application ID as manifestDetailList.
[0038] The example of manifestDetailList is as follows: ———————————————————————————— manifestDetailList = [ { "manifestID":"M:F32B8551-A277-4E13-B500-3C837D79DDC1:NZ3hi3wfwOznd5kvRG / qBCqZ5Fs=", / / Application ID, for example, used to identify WeChat / / "domainName": "AppDomainGroup-group.com.apple.tips", / / Domain name information corresponding to WeChat / / "files": / / Multiple files under WeChat / / [ "F:F32B8551-A277-4E13-B500-3C837D79DDC1:pH12sJOr9zqu / w6dNvaNAg5waSg=:238553:u01C", / / File identifier of the first file under WeChat / / "F:F32B8551-A277-4E13-B500-3C837D79DDC1:Jnm3yAUAUkmgwzg9Y055wAGLFYQ=:142297:r6jr", / / File identifier of the second file under WeChat / / "F:F32B8551-A277-4E13-B500-3C837D79DDC1:qnc7yBaNulPcwNg7y165wBN7qcm=:142297:3pjt", / / The file identifier of the third file under WeChat / / ] }, { } ] ———————————————————————————— S260: Filter the domain name information of the application information according to a preset domain name list, and determine the application information corresponding to the filtered domain name information as the target application information.
[0039] S270, acquiring file data corresponding to the target application information from the iCloud server according to the multiple file identifiers of the target application information.
[0040] In the first embodiment, there are two implementations of S260, specifically: S260 implementation method 1: Preferably, the domain name list includes a domain whitelist, and S260 further includes S261-S263.
[0041] S261, determining whether the domain name information of the application information exists in the domain whitelist.
[0042] Traverse manifestDetailList, get the value of "domainName" of each item, and compare it with the domains in the preset domain whitelist. If it is in the domain whitelist, save it to the to-download domain list toDownloadDomainList.
[0043] The domain whitelist needs to be pre-set to configure the domain corresponding to the target application data. For example, the domain of WeChat is "Domain-com.tencent.xin" and the domain of WhatsApp is: "AppDomain-net.whatsapp.WhatsApp". The example of the domain whitelist is as follows: ———————————————————————————— { "whiteList":[ / / Domain whitelist / / "Domain-com.tencent.xin", / / WeChat domain / / "AppDomain-net.whatsapp.WhatsApp" / / whatsapp domain / / ] } ———————————————————————————— S263: If the domain name information of the application information exists in the domain whitelist, the application information is determined as target application information.
[0044] By presetting a domain whitelist, a large amount of non-target domain application data can be filtered out.
[0045] S260 implementation method 2: Preferably, the domain name list includes a domain blacklist, and S260 further includes S262~S264.
[0046] S262, determining whether the domain name information of the application information exists in the domain blacklist; S264: If the domain name information of the application information does not exist in the domain blacklist, the application information is determined as target application information.
[0047] The setting of domain blacklist is similar to that of domain whitelist. The domain blacklist needs to be set in advance to configure the domains of non-target applications, such as system application domains: "WirelessDomain", "HomeDomain", etc. The example of domain blacklist is as follows: ———————————————————————————— { "blackList":[ "WirelessDomain", "HomeDomain" / / ] / / } ———————————————————————————— Embodiment 2: On the basis of filtering out a large amount of non-target domain application data, you can also filter out the data types that need to be downloaded in the target application to further improve the efficiency of obtaining data. Taking the WeChat application as an example, in addition to chat content and attachment files, many other configuration files are required for the application to run, and the configuration files do not need to be downloaded. For details, please refer to Figure 4 ,like Figure 4 The method for obtaining target application data shown includes the following steps: S310, obtaining target account information.
[0048] S320, establishing a communication connection with the iCloud server according to the target account information.
[0049] S330, obtaining backup information corresponding to the target account information from the iCloud server, wherein the backup information is information generated by the iCloud server backing up data of multiple applications corresponding to the target account information, the application includes multiple application files, and the backup information includes multiple snapshot identifiers, which are identifier information generated to record the status of the iCloud server backup process.
[0050] S340, obtaining inventory data corresponding to the snapshot identifier from the iCloud server according to the snapshot identifier, the inventory data including multiple application identifiers corresponding to each snapshot identifier, and the application identifier is identification information corresponding to each application generated by the iCloud server during the backup process.
[0051] S350, obtaining application information corresponding to each application identifier from the iCloud server according to the multiple application identifiers, where the application information includes domain name information corresponding to the application identifier and multiple file identifiers corresponding to the application identifier.
[0052] S360: Filter the domain name information of the application information according to a preset domain name list, and determine the application information corresponding to the filtered domain name information as the target application information.
[0053] Among them, the execution of S310~S360 is similar to the execution of S210~S260. Therefore, the implementation of S310~S360 can refer to the implementation of S210~S2650, which will not be repeated here.
[0054] S370, acquiring file attributes corresponding to each file identifier from the iCloud server according to the multiple file identifiers of the target application information, where the file attributes include file type information.
[0055] S380: Filter the file type information according to a preset file type list, and determine the file identifier corresponding to the filtered file type information as the target file identifier.
[0056] S390, obtaining file data corresponding to the target file identifier of the target application information from the iCloud server.
[0057] Similar to the implementation of S260 in the first embodiment, there are also two implementations of S380 in the second embodiment.
[0058] S380 implementation method 1: The file type list includes file type whitelist information, S380, and further includes S381~S383.
[0059] S381, determining whether the file type information corresponding to the file identifier exists in the file type whitelist.
[0060] S383: If the file type information corresponding to the file identifier exists in the file type whitelist, the file identifier is determined as the target file identifier.
[0061] S380 implementation method 2: The file type list includes file type blacklist information, S380, and further includes S382~S384.
[0062] S382, determining whether the file type information corresponding to the file identifier exists in the file type whitelist; S384: If the file type information corresponding to the file identifier does not exist in the file type whitelist, the file identifier is determined as the target file identifier.
[0063] To better describe the list of file types, Figure 5In the example, the file type list includes the file type whitelist information to illustrate the specific implementation of S37101 and S380. Among them, S371 includes S371a~S371b, and S380 includes S381a~S383a. Figure 5 As shown, S371a, obtaining encrypted file attributes corresponding to each file identifier from the iCloud server according to the multiple file identifiers of the target application information.
[0064] Traverse the toDownloadDomainList["Files"] described in the first embodiment, extract each file ID, further request the file attributes from the server, and obtain the encrypted file attributes.
[0065] Examples of encrypted file attributes are as follows: ———————————————————————————— 220 { 1 { 1 { 1: "PrivilegedBatchRecordFetch" } 2 { 1 { 1: "___recordID" } 2 { 1: 13 11 { 1: 5 9 { 1: 2 2 { 1 { 1: "F:F32B8551-A277-4E13-B500-3C837D79DDC1:sKtx0GfE5A6RWZifioCDOWOyTto=:0:R3OY" twenty one } 2 { 1 { 1: "_defaultZone" 2: 6 } 2 { 1: "_d8969ed685fb9f9678304fcec2e57c25" 2: 7 } }} } } } 4: 3 } } } ———————————————————————————— S371b, decrypt the encrypted file attributes to obtain the file attributes in plain text corresponding to the encrypted file attributes, the file attributes include file path information, and the file path information includes suffix bytes.
[0066] After decrypting the encrypted file attributes, the plain text file attributes can be obtained. An example of the plain text file attributes is as follows: ———————————————————————————— fileAttribute = { / / fileAttribute is the file attribute in plain text / / "fileID": "38a1f85499fa5da83a9603ab060cee41bedd2d69", "fileSize": 4423, "groupID": 501, "lastModifiedTime": 755157726, "relativeFilePath": "Library / Preferences / group.com.apple.weather.plist", / / File path information, where ".plist" is the suffix byte / / "time": 755157726, "userID": 501 } ———————————————————————————— S381a, determining whether the suffix bytes of the file path information corresponding to the file identifier exist in the preset suffix bytes of the file type whitelist.
[0067] Get the suffix name (suffix byte) of the "relativeFilePath" file attribute in plain text form, and compare it with the preset suffix bytes in the preset file type whitelist. If the suffix name is in the whitelist, save the file information to the to-be-downloaded file list toDownloadFileList.
[0068] In S360, "toDownloadDomainList" filters out the applications that need to be downloaded, and S381a can further filter out the types of data that need to be downloaded within the application. Taking the WeChat application as an example, in addition to chat content and attachment files, many other are configuration files required for the application to run, and the configuration files do not need to be downloaded, thereby further improving the efficiency of obtaining data and reducing the storage space required for downloading.
[0069] S383a: If the suffix bytes of the file path information corresponding to the file identifier exist in the preset suffix bytes of the file type whitelist, the file identifier is determined as the target file identifier.
[0070] Among them, the example of the preset file type whitelist "whiteList" is as follows: ———————————————————————————— { "whiteList":[ ".jpg", ".jpeg", ".png", ".gif", ".mp4", ".avi", ".mov", ".mp3", ".wav", ".m4a", ".doc", ".docx", ".ppt", ".pptx", ".xls", ".xlst" ] } ———————————————————————————— The embodiments of the present application all obtain application information corresponding to each application in multiple applications from an iCloud server according to backup information, filter the domain name information of the application information according to a preset domain name list, determine the application information corresponding to the filtered domain name information as target application information, and then obtain file data corresponding to the target application information from the iCloud server according to multiple file identifiers of the target application information. A large amount of file data of multiple applications can be filtered, and only the file data of the target application information corresponding to the target application can be obtained, so as to reduce the amount of data required to obtain and the number of requests required to be sent to the iCloud server when obtaining the target application data, thereby greatly reducing the time taken to obtain the target application data and the storage space required to be occupied.
[0071] Figure 6 FIG. 1 is a schematic diagram showing the structure of a device for acquiring target application data provided by an embodiment of the present application. Figure 6 As shown, the device 400 includes: a first acquisition module 410 , a second acquisition module 420 , a processing module 430 and a third acquisition module 440 .
[0072] The first acquisition module 410 is used to acquire backup information corresponding to the target account information from the iCloud server, wherein the backup information is information generated by the iCloud server backing up data of multiple application programs corresponding to the target account information, and the application program includes multiple application files; The second acquisition module 420 is used to acquire application information corresponding to each of the multiple applications from the iCloud server according to the backup information, where the application information includes domain name information corresponding to the application and multiple file identifiers corresponding to multiple application files of the application. The processing module 430 is used to filter the domain name information of the application information according to the preset domain name list, and determine the application information corresponding to the filtered domain name information as the target application information; The third acquisition module 440 is used to acquire file data corresponding to the target application information from the iCloud server according to multiple file identifiers of the target application information.
[0073] The target application data acquisition device 400 of the embodiment of the present application also includes other modules for executing the various steps of the above-mentioned target application data acquisition method embodiment on the server, which will not be described one by one here.
[0074] Figure 7 The schematic diagram of the structure of the electronic device provided by the embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0075] like Figure 7As shown, the electronic device 500 may include: a processor (processor) 502 and a memory (memory) 504.
[0076] The memory 504 is used to store a computer program 506. The memory 504 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The computer program 506 may include computer executable instructions.
[0077] The processor 502 is used to execute the computer program 506 to implement the steps in the above-mentioned target application data acquisition method embodiment.
[0078] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device 500 may be processors of the same type, such as one or more CPUs, or processors of different types, such as one or more CPUs and one or more ASICs.
[0079] An embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method for acquiring target application data are implemented.
[0080] An embodiment of the present application provides a computer program, which can be executed by a processor to implement the steps in the above-mentioned method for obtaining target application data.
[0081] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method for obtaining target application data are implemented.
[0082] The algorithm or display provided here are not inherently related to any specific computer, virtual system or other equipment. Various general systems can also be used together with the teaching based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the present application embodiment is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present application described here, and the above description of specific languages is to disclose the best mode of implementation of the present application.
[0083] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0084] Similarly, it should be understood that in order to streamline the present application and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed application requires more features than those explicitly recited in each claim.
[0085] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and may be divided into multiple submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0086] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be constructed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A method for acquiring target application data, characterized in that: The acquisition method comprises: Acquire backup information corresponding to the target account information from an iCloud server, wherein the backup information is information generated by the iCloud server backing up data of multiple application programs corresponding to the target account information, and the application programs include multiple application files; Acquire application information corresponding to each of the multiple applications from the iCloud server according to the backup information, the application information including domain name information corresponding to the application and multiple file identifiers corresponding one-to-one to multiple application files of the application; Filtering the domain name information of the application information according to a preset domain name list, and determining the application information corresponding to the filtered domain name information as the target application information; The file data corresponding to the target application information is acquired from the iCloud server according to the multiple file identifiers of the target application information.
2. The acquisition method according to claim 1, characterized in that: The acquiring file data corresponding to the target application information from the iCloud server according to the multiple file identifiers of the target application information further includes: Acquire, from the iCloud server, a file attribute corresponding to each file identifier according to the multiple file identifiers of the target application information, wherein the file attribute includes file type information; The file type information is screened according to a preset file type list, and a file identifier corresponding to the screened file type information is determined as a target file identifier; Obtain file data corresponding to the target file identifier of the target application information from the iCloud server.
3. The acquisition method according to claim 2, characterized in that: The file type list includes file type whitelist information; The step of filtering the file type information according to a preset file type list and determining the file identifier corresponding to the filtered file type information as the target file identifier further includes: Determine whether the file type information corresponding to the file identifier exists in the file type whitelist; If the file type information corresponding to the file identifier exists in the file type whitelist, the file identifier is determined as the target file identifier.
4. The acquisition method according to claim 3, characterized in that: The acquiring, from the iCloud server, a file attribute corresponding to each file identifier according to the multiple file identifiers of the target application information further includes: Acquire, from the iCloud server, an encrypted file attribute corresponding to each file identifier according to the multiple file identifiers of the target application information; Decrypting the encrypted file attribute to obtain a file attribute in plain text corresponding to the encrypted file attribute, the file attribute including file path information, and the file path information including a suffix byte; The determining whether the file type information corresponding to the file identifier exists in the file type whitelist further includes: Determining that the suffix byte of the file path information corresponding to the file identifier exists in the preset suffix byte of the file type whitelist; If the file type information corresponding to the file identifier exists in the file type whitelist, determining the file identifier as the target file identifier further includes: If the suffix bytes of the file path information corresponding to the file identifier exist in the preset suffix bytes of the file type whitelist, the file identifier is determined as the target file identifier.
5. The acquisition method according to claim 1, characterized in that: Before acquiring the backup information corresponding to the target account information from the iCloud server, the acquisition method further includes: Obtaining the target account information; A communication connection is established with the iCloud server according to the target account information.
6. The acquisition method according to claim 1, characterized in that: The backup information includes a plurality of snapshot identifiers, where the snapshot identifier is identifier information generated to record the status of the iCloud server backup process; The acquiring, from the iCloud server according to the backup information, application information corresponding to each of the multiple applications, the application information including domain name information corresponding to the application and multiple file identifiers corresponding one-to-one to multiple application files of the application, further includes: Acquire, from the iCloud server according to the snapshot identifier, inventory data corresponding to the snapshot identifier, the inventory data including a plurality of application identifiers corresponding to each snapshot identifier, the application identifier being identification information corresponding to each application program generated by the iCloud server during the backup process; According to the multiple application identifiers, application information corresponding to each application identifier is obtained from the iCloud server, where the application information includes domain name information corresponding to the application identifier and multiple file identifiers corresponding to the application identifier.
7. The acquisition method according to claim 1, characterized in that: The domain name list includes a domain whitelist; The step of filtering the domain name information of the application information according to the preset domain name list and determining the application information corresponding to the filtered domain name information as the target application information further includes: Determine whether the domain name information of the application information exists in the domain whitelist; If the domain name information of the application information exists in the domain whitelist, the application information is determined as the target application information.
8. The acquisition method according to claim 1, characterized in that: The domain name list includes a domain blacklist; The step of filtering the domain name information of the application information according to the preset domain name list and determining the application information corresponding to the filtered domain name information as the target application information further includes: Determine whether the domain name information of the application information exists in the domain blacklist; If the domain name information of the application information does not exist in the domain blacklist, the application information is determined as target application information.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the acquisition method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the acquisition method described in any one of claims 1 to 8 are implemented.