Method for editing iOS device data through iTunes backup

Editing iOS device data through iTunes backup files solves the problem that users cannot directly manage internal data of iOS devices, and realizes flexible editing and safe and efficient management of device data.

CN119883743APending Publication Date: 2025-04-25成都傲梅科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411992040.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the prior art, users cannot directly access, delete or modify data files inside iOS devices, and can only indirectly manage a small part of the data content through third-party tools, and lack the ability to manage device data flexibly.

Method used

The iTunes backup file is used to edit iOS device data. The specific steps include using iTunes to perform a full backup of the iOS device, opening the inventory database of the iTunes backup file, editing the data file and the data in the inventory database, and restoring the edited backup file to the iOS device.

Benefits of technology

It realizes users' convenient editing and modification of iOS device data, provides greater flexibility to manage device content, and ensures the security and efficiency of data editing through backup and restore.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883743A_ABST
    Figure CN119883743A_ABST
Patent Text Reader

Abstract

The invention discloses a method for editing iOS equipment data through iTunes backup, which comprises the following steps of: executing complete backup on target iOS equipment by using iTunes, and outputting an iTunes backup file; using a visual application program to open a list database of the iTunes backup file, and positioning the list database to a Files database table; editing data in the list database, and synchronously modifying a data file of the iTunes backup; and restoring the edited backup file to the target iOS equipment by using the iTunes again to complete data editing. Through the method provided by the invention, the user can conveniently edit and modify the data in the iOS equipment, so that greater flexibility is provided for the user to manage the equipment content. Compared with other operations possibly needing complex steps, the method breaks through the limitation of an iOS system through backup and restoration modes, data files in equipment can be edited, the data editing process is more efficient, and the time of a user is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data management, and in particular is a method for editing iOS device data through iTunes backup. Background Art

[0002] iOS is an operating system developed by Apple for mobile devices such as iPhone, iPad, iPod, etc. (hereinafter referred to as iOS devices). Due to its high market share and large user base, a large number of users have the need to manage device data.

[0003] In the prior art, for example, the technical solution described in the patent with publication number CN118869847 is: a data interaction method, device and electronic device for an IOS system, including creating a virtual device, which contains code to implement preset interfaces, and these interfaces are used for data interaction between application services and the IOS system. When the application service needs to interact with data, it calls the first preset interface of the virtual device to write the data in the IOS system into the code library of the application service, and calls the second preset interface to transmit the read data back to the IOS system.

[0004] In the prior art, however, due to the limitations of the iOS system characteristics, users are unable to access, delete, or modify data files inside the device, and can only indirectly manage a small amount of data content through tools such as Finder or iTunes. Summary of the invention

[0005] The purpose of the present invention is to provide a method for editing iOS device data through iTunes backup, so as to solve the problem that in the prior art proposed in the background technology, only a small part of the internal data of the IOS device can be managed through third-party tools, which is inconvenient for users to manage the device data.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0007] A method for editing iOS device data through iTunes backup, comprising the following steps:

[0008] Step S1, using iTunes to perform a full backup of the target iOS device and output an iTunes backup file;

[0009] Step S2, using a visualization application, opening the inventory database of the iTunes backup file and locating the Files database table;

[0010] Step S3, editing the data in the inventory database and synchronously modifying the data file backed up by iTunes;

[0011] Step S4, use iTunes again to restore the edited backup file to the target iOS device to complete the data editing.

[0012] According to the above technical solution, in step S1, the iTunes backup file includes a data file, a list file and a status information file.

[0013] According to the above technical solution, the data file is the data of the file system in the device; the manifest file includes Manifest.db and Manifest.plist; wherein Manifest.db stores the attributes of all data files, and Manifest.plist stores the metadata of the backup;

[0014] The status information files include Status.plist and Info.plist. Among them, Status.plist is used to indicate the status of storage backup;

[0015] Info.plist is used to store backup information.

[0016] According to the above technical solution, in step S2, the manifest database of the iTunes backup file opened by the visualization application is specifically the Manifest.db file.

[0017] According to the above technical solution, in step S3, editing the data in the manifest database is editing the Manifest.db data file, including deleting all data of the application, replacing all data files of the application, and modifying part of the data of the application.

[0018] According to the above technical solution, in step S2, the visualization application uses one of SQLite Expert, SQLiteStudio, and Navicat for SQLite.

[0019] Compared with the prior art, the present invention has the following beneficial effects:

[0020] Through the method of the present invention, users can easily edit and modify data in iOS devices, which provides users with greater flexibility to manage device content. Through iTunes backup, users can easily restore to the original state when data editing errors occur, and only need to perform backup and restore again. Therefore, the method of the present invention provides a certain degree of security during the data modification process. Compared with other operations that may require complex steps, the method of the present invention makes the data editing process more efficient and saves users' time through backup and restore. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1The overall flow chart of editing iOS device data of the present invention. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] Embodiment 1

[0024] like Figure 1 As shown, a method for editing iOS device data through iTunes backup includes the following steps:

[0025] Step S1, using iTunes to perform a full backup of the target iOS device and output an iTunes backup file;

[0026] Step S2, using a visualization application, opening the inventory database of the iTunes backup file and locating the Files database table;

[0027] Step S3, editing the data in the inventory database and synchronously modifying the data file backed up by iTunes;

[0028] Step S4, use iTunes again to restore the edited backup file to the target iOS device to complete the data editing.

[0029] Through the method of the present invention, users can easily edit and modify data in iOS devices, which provides users with greater flexibility to manage device content. Through iTunes backup, users can easily restore to the original state when data editing errors occur, and only need to perform backup and restore again. Therefore, the method of the present invention provides a certain degree of security during the data modification process. Compared with other operations that may require complex steps, the method of the present invention makes the data editing process more efficient and saves users' time through backup and restore.

[0030] Embodiment 2

[0031] This embodiment provides a specific implementation method.

[0032] A method to indirectly manage the internal file system of an iOS device by editing iTunes backup. The main technical principles are as follows:

[0033] 1. iOS devices can back up device data through tools such as Finder or iTunes, export iTunes backup files, and restore them to the device when needed.

[0034] 2. iTunes backup files mainly consist of 3 parts:

[0035] 1) Data files: These are a series of files named with SHA-1 hash values ​​and without extensions. If the iOS version is 10 or above, the first two characters of the hash value will be used as the directory for storage. These data files correspond to the data files of the file system in the device (all user data files except the operating system).

[0036] 2) Manifest files: including Manifest.db and Manifest.plist; Manifest.db stores the properties of all data files, such as file size, file timestamp, access permissions, relative path of files in the device file system, etc.; Manifest.plist stores backup metadata, such as device name, device UUID, and backup encryption information.

[0037] 3) Status information files include Status.plist and Info.plist; Status.plist stores the backup status, such as whether it is a full backup or whether the backup is complete. Info.plist stores the backup information, such as the backup time and the APP information installed on the device.

[0038] 3. Through the index of the backup list database Manifest.db, each data file in the backup can be matched one by one with the file in the device file system.

[0039] 4. According to the above steps, you can perform editing operations such as adding, modifying, and deleting the data files and Manifest.db in the backup, and then restore them to the original device through tools such as Finder or iTunes to achieve the purpose of modifying the data files inside the device. These data files may be data files of a certain application, such as photos in the album APP, files transmitted in the instant messaging APP, or configuration files of the iOS system, such as configuration files for language region, user preferences, AppleID, etc.

[0040] The technical problem to be solved by the present invention comprises the following steps:

[0041] Step 1: Use iTunes to perform a full backup of the target iOS device and output the iTunes backup file.

[0042] Step 2, use SQLite visualization application (for example: SQLite Expert), open the backup list database Manifest.db file, and locate the Files database table. The meaning of each field in the Files database table is:

[0043] 1. The fileID field indicates the id of the data item. If the data item is a file, the file name in the backup directory is the fileID. This field is obtained by performing SHA-1 hashing on the domain+"-"+relativePath fields of the data item.

[0044] 2. The Domain and relativePath fields indicate the location of the data file in the iOS device file system, for example:

[0045] 1.HomeDomain:Library / Calendar / Extras.db corresponds to / var / mobile / Library / Calendar / Extras.db

[0046] 2.WirelessDomain:Library / Databases / CellularUsage.db corresponds to / var / wireless / Library / Databases / CellularUsage.db

[0047] a)AppDomain-net.whatsapp.WhatsApp:Documents / SyncHistory.plist corresponds to / var / containers / Bundle / Application / CF24C019-8A47-4244-95FC-3DDBC42D6A96 / WhatsApp.app / Documents / SyncHistory.plist.

[0048] 3. The flags field indicates the type of data item: 1 indicates a file, and 2 indicates a folder.

[0049] 4. The file field stores data in plist binary format, which mainly represents the attributes of the file and its summary information.

[0050] Step 3, edit Manifest.db, data files,

[0051] For example, the following case:

[0052] Case 1: Delete all data of the SMS application. Perform the following operations: Execute the SQL statement:

[0053] DELETEFROMFilesWHEREdomain='HomeDomain'andrelativePathlike'Library / SMS%'

[0054] Close Manifest.db.

[0055] Case 2: To replace all data files of the Contacts app, perform the following operations:

[0056] Execute SQL statements to query the relevant files of the contact application: SELECT * FROM Files WHERE domain = 'HomeDomain' and relativePath like 'Library / AddressBook%'

[0057] Replace the data file:

[0058] Replace the iTunes backup data files with AddressBook.sqlitedb and AddressBookImages.sqlitedb files respectively: 31 / 31bb7ba8914766d4ba40d6dfb6113c8b614be442, cd / cd6702cea29fe89cf280a76794405adb17f9a0ee.

[0059] Update the file field of the data items 31bb7ba8914766d4ba40d6dfb6113c8b614be442 and cd6702cea29fe89cf280a76794405adb17f9a0ee (replace the file) respectively, use the SHA-1 hash summary of the file and replace it with the Digest field of the plist document after encoding it with Base64, update the Size field with the file size, and optionally update the LastModified, LastStatusChange and other fields.

[0060] Use SQLite Expert to view the file field, save the binary file to the local disk, and use plist Editor to open the saved file.

[0061] Edit the content and save: Use SQLite Expert to import the edited plist file; Close Manifest.db.

[0062] Add the setting.json file to the Documents directory of the Health application container.

[0063] Execute the SQL statement to check whether the container directory exists:

[0064] SELECT*FROM Files WHERE domain='AppDomain-com.apple.He alth'.

[0065] Use SQLite Expert to add data items:

[0066] 1. Calculate the SHA-1 hash value "f3fa04d7bca5cd63f012e5b6a346270456657e3a" of "AppDomain-com.apple.Health-Documents / setting.json" as the content of the fileID field.

[0067] 2. Use "AppDomain-com.apple.Health" as the content of the domain field.

[0068] 3. Use "Documents / setting.json" as the content of the relativePath field.

[0069] 4. Use 1 as the content of the flags field.

[0070] 5. Based on the file field of other data items as a template, use the properties, SHA-1 summary, and relative path of the setting.json file to build a file plist document as the content of the file field.

[0071] Copy the setting.json file to the iTunes backup data file: f3 / f3fa04d7bca5cd63f012e5b6a346270456657e3a.

[0072] d. Close Manifest.db.

[0073] Step 4. Use iTunes again to restore the edited backup file to the target iOS device.

[0074] Step 5: After the restoration is completed, the purpose of modifying the data files inside the device is completed.

[0075] Explanation of professional terms:

[0076] iTunes: refers to the digital media playback application launched by Apple, through which iOS devices can be managed.

[0077] iTunes backup: refers to the backup file of iOS device data through the iTunes backup protocol, which is usually stored on the disk in the form of a folder with many files and folders stored inside.

[0078] plist: refers to the Property List file, which is a file used to store serialized objects.

[0079] SHA-1 Hash: Secure Hash Algorithm 1 is a cryptographic hash function that generates a 160-bit (20-byte) hash value called a message digest, which is usually presented as 40 hexadecimal numbers.

[0080] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0081] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for editing iOS device data through iTunes backup, characterized by: The following steps are involved: Step S1, using iTunes to perform a full backup of the target iOS device and output an iTunes backup file; Step S2, using a visualization application, opening the inventory database of the iTunes backup file and locating the Files database table; Step S3, editing the data in the inventory database and synchronously modifying the data file backed up by iTunes; Step S4, use iTunes again to restore the edited backup file to the target iOS device to complete the data editing.

2. The method for editing iOS device data through iTunes backup according to claim 1, characterized in that: In step S1, the iTunes backup file includes a data file, a manifest file, and a status information file.

3. The method for editing iOS device data through iTunes backup according to claim 2, characterized in that: The data file is the data of the file system in the device; The manifest files include Manifest.db and Manifest.plist. Manifest.db stores the properties of all data files, and Manifest.plist stores the backup metadata. The status information files include Status.plist and Info.plist. Among them, Status.plist is used to indicate the status of storage backup; Info.plist is used to store backup information.

4. The method for editing iOS device data through iTunes backup according to claim 3, characterized in that: In step S2, the manifest database of the iTunes backup file opened by the visualization application is specifically the Manifest.db file.

5. The method for editing iOS device data through iTunes backup according to claim 4, characterized in that: In step S3, editing the data in the manifest database is editing the Manifest.db file and the data files in the backup, including adding data files, deleting data files, replacing data files, and modifying data files.

6. The method for editing iOS device data through iTunes backup according to claim 1, characterized in that: In step S2, the visualization application uses one of SQLite Expert, SQLiteStudi o, and Navigate for SQLite.