IOS system Line chat record analysis method and device and storage medium

By accessing the Line server through iCloud access credentials and device ID proxy, the problem of parsing Line chat records in the iOS system is solved, a parsing solution is implemented without installing the Line application, and parsing of encrypted and private chat data is supported.

CN120639737AActive Publication Date: 2025-09-12SHENZHEN MAIFENG TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511012303.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-22
Publication Date
2025-09-12
Estimated Expiration
2045-07-22

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to parse Line chat records in the iOS system, and there is a lack of mature parsing solutions.

Method used

By pre-setting iCloud access credentials to connect to the iCloud cloud database, download the encrypted data and use the device ID and Line to encrypt the data. The proxy accesses the Line server for decryption to realize the analysis of chat records.

Benefits of technology

Line chat history can be parsed on the iOS system without installing the Line application. It supports the parsing of encrypted and private chat data, and realizes the parsing of Line chat history on the iOS system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120639737A_ABST
    Figure CN120639737A_ABST
Patent Text Reader

Abstract

The invention relates to the field of data storage, and discloses an IOS system Line chat record analysis method and device and a storage medium. The method comprises the following steps: connecting an iCloud cloud database according to a preset iCloud access credential; sending a data downloading request to the iCloud cloud database, and receiving Line encrypted data fed back by the iCloud cloud database and a device id corresponding to the Line encrypted data; and sending the Line encrypted data and the device id to a Line server, and receiving chat analysis data returned by the Line server. In the embodiment of the invention, the Line chat record data is obtained through the iCloud, and the Line chat record is decrypted and analyzed by simulating the Line application and utilizing the Line server, so that the analysis of the Line chat record data on the IOS system is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a field, and in particular to a method, device, and storage medium for parsing Line chat records in an iOS system. Background Art

[0002] In the product specifications of chat history recovery, the data analysis solution of WhatsApp has received good feedback from the market. The WhatsApp chat history in both iOS and Android systems can be effectively analyzed and relevant data can be saved.

[0003] Line is a popular messaging app with significant daily activity and user numbers. Existing technologies can effectively parse and save Line chat logs on Android. However, LINE chat log files are often encrypted, with end-to-end encryption, or Letter Sealing, enabled by default. This ensures that messages cannot be intercepted by third parties (such as carriers or hackers) during transmission, ensuring that only the sender and receiver can access the chat logs. Even if chat log parsing is implemented on Android, migrating to iOS is difficult. Parsing Line chat log data on iOS is challenging, and there are no mature parsing solutions. Therefore, to address the technical issues that prevent Line chat log parsing on iOS, a new technology is needed to address the current problem. Summary of the Invention

[0004] The main purpose of the present invention is to solve the technical problem that Line chat records cannot be effectively parsed in the iOS system.

[0005] A first aspect of the present invention provides a method for parsing Line chat records in an iOS system, the method comprising: Connect to the iCloud cloud database based on the preset iCloud access credentials; Sending a data download request to the iCloud cloud database, and receiving the Line encrypted data and the device ID corresponding to the Line encrypted data fed back by the iCloud cloud database; Send the Line encrypted data and the device ID to the Line server, and receive the chat parsing data returned by the Line server.

[0006] Optionally, in a first implementation of the first aspect of the present invention, connecting to the iCloud cloud database according to the preset iCloud access credentials includes: Based on the iCloud access credentials, a verification request is constructed and generated, wherein the verification request includes: a proxy address; Sending the verification request to an iCloud cloud database, and receiving verification data returned by the iCloud cloud database based on the proxy address; Based on a preset iCloud simulation component, the verification data is verified and processed to generate a user list, wherein the user list includes: N backup device names, where N is a positive integer; receiving a device selection instruction, and marking the N backup device names according to the device selection instruction to obtain marked device names; The marked device name is sent to the iCloud cloud database, and a connection with the iCloud cloud database is established.

[0007] Optionally, in a second implementation of the first aspect of the present invention, the verifying the verification data based on the preset iCloud simulation component to generate a user list includes: Based on the preset iCloud Drive simulation component and the preset CloudKit simulation component, the verification data is verified and processed to generate a user list.

[0008] Optionally, in a third implementation of the first aspect of the present invention, generating a verification request based on the iCloud access credential includes: Based on the HTTPS / TLS protocol, the iCloud access credentials and proxy address are encapsulated to generate a verification request.

[0009] Optionally, in a fourth implementation of the first aspect of the present invention, sending the Line encrypted data and the device ID to a Line server, and receiving chat parsed data returned by the Line server includes: Generate JSON data and entity class data corresponding to the JSON data based on the Line encrypted data and the device ID; Send the json data and the entity class data to the Line server, and receive the chat parsing data returned by the Line server.

[0010] Optionally, in a fifth implementation of the first aspect of the present invention, before connecting to the iCloud cloud database according to the preset iCloud access credentials, the method further includes: Connect to pre-installed backup device; Call the backup device and connect to the iCloud cloud database by pre-setting iCloud access credentials; Upload the Line chat history in the backup device to the iCloud cloud database for backup.

[0011] Optionally, in a sixth implementation of the first aspect of the present invention, after sending the preset backup device ID and the Line encrypted data to the Line server and receiving the chat parsed data returned by the Line server, the method further includes: In a preset display interface, the chat parsing data is displayed and processed to obtain Line chat record data.

[0012] Optionally, in a seventh implementation of the first aspect of the present invention, after sending the preset backup device ID and the Line encrypted data to the Line server and receiving the chat parsed data returned by the Line server, the method further includes: The chat parsed data is saved in a preset SQL database.

[0013] The second aspect of the present invention provides a device for parsing Line chat records of an IOS system, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected through a line; the at least one processor calls the instructions in the memory so that the device for parsing Line chat records of an IOS system executes the above-mentioned method for parsing Line chat records of an IOS system.

[0014] A third aspect of the present invention provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, it enables the computer to execute the above-mentioned method for parsing Line chat records of the IOS system.

[0015] In an embodiment of the present invention, by pre-setting iCloud access credentials and downloading Line encrypted data from the iCloud cloud database, encrypted data related to Line chat data can be obtained on a device without the need to install the Line application. Using the device ID and Line encrypted data, a proxy accesses the Line server for decryption to obtain chat parsing data. This solution obtains Line chat history data through iCloud and simulates the Line application using the Line server to decrypt and parse the Line chat history. This solution eliminates the need to adjust the data structure of the Line chat data and can parse Line chat data regardless of whether it is encrypted or private, thus enabling parsing of Line chat history data on the iOS system. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1This is a schematic diagram of an embodiment of a method for parsing Line chat records on an iOS system according to an embodiment of the present invention; Figure 2 This is a schematic diagram of a specific embodiment before step 101 of the method for parsing Line chat records on an iOS system in an embodiment of the present invention; Figure 3 This is a schematic diagram of a specific embodiment of step 102 of the method for parsing Line chat records on an iOS system in an embodiment of the present invention; Figure 4 This is a schematic diagram of a specific embodiment of step 103 of the method for parsing Line chat records on an iOS system in an embodiment of the present invention; Figure 5 This is a schematic diagram of an embodiment of a device for parsing Line chat records on an iOS system in an embodiment of the present invention. DETAILED DESCRIPTION

[0017] Embodiments of the present invention provide a method, device, and storage medium for parsing Line chat records in an iOS system.

[0018] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0019] In the description of the embodiments disclosed herein, the term "including" and similar terms should be understood as open inclusion, i.e., "including but not limited to." The term "based on" should be understood as "based, at least in part, on." The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment." The terms "first," "second," etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0020] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 In one embodiment of the present invention, a method for parsing Line chat records in an iOS system includes: 101. Connect to the iCloud cloud database based on the preset iCloud access credentials; In this example, the iCloud access credentials are the user's iCloud account and password, and the simulated device is used to connect to the iCloud cloud database. You can use the PyiCloud library to write the iCloud access credentials into the encapsulated function PyiCloudService('your_apple_id@example.com', 'your_password') to connect to the iCloud cloud database. If the iCloud cloud database has verification settings, you can respond to the iCloud cloud database verification by calling the ORC plug-in to identify the verification code or by retrieving the verification information via SMS. After a successful verification response, the iCloud cloud database is connected.

[0021] For further information, see Figure 2 , Figure 2 This is a schematic diagram of a specific embodiment before step 101 of the method for parsing Line chat records in the iOS system in an embodiment of the present invention. The following specific implementation methods are included before step 101: 1011. Connect to the pre-installed backup device; 1012. Call the backup device and connect to the iCloud cloud database by pre-setting the iCloud access credentials; 1013. Upload the Line chat history in the backup device to the iCloud cloud database for backup.

[0022] In steps 1011-1013, a USB cable is used to connect the iOS device to the device to which the Line chat history data is to be backed up. The USB device is then used to access the iCloud cloud database using the iCloud account and password. The Line chat history from the iOS device is uploaded to a container in the iCloud cloud database for backup. During the upload process, the Line chat history is tagged with the name and device ID of the uploading device.

[0023] 102. Send a data download request to the iCloud cloud database, and receive the Line encrypted data and the device ID corresponding to the Line encrypted data fed back by the iCloud cloud database; In this embodiment, after logging into the iCloud cloud database, the encrypted Line data in the container corresponding to the iCloud access credentials is downloaded as a data download request. It should be noted that Line chat history is uploaded to the iCloud cloud database in encrypted form, so the encrypted Line chat history is downloaded. The encrypted Line data and the device ID corresponding to the encrypted Line data are returned from the iCloud cloud database.

[0024] For details, please refer to Figure 3 , Figure 3 This is a specific embodiment of step 102 of the method for parsing Line chat records in the iOS system in an embodiment of the present invention. Step 102 includes the following specific implementation methods: 1021. Construct and generate a verification request based on the iCloud access credential, wherein the verification request includes: a proxy address; 1022. Send the verification request to the iCloud cloud database, and receive verification data returned by the iCloud cloud database based on the proxy address; 1023. Based on a preset iCloud simulation component, verify the verification data and generate a user list, wherein the user list includes: N backup device names, where N is a positive integer; 1024. Receive a device selection instruction, and mark the N backup device names according to the device selection instruction to obtain marked device names; 1025. Send the marked device name to the iCloud cloud database and establish a connection with the iCloud cloud database.

[0025] In steps 1021-1025, the iCloud access credentials are used to assemble the ID information in the HTTP protocol, and the proxy address is also encapsulated into the HTTP protocol to construct a verification request.

[0026] The generated verification request is sent to the iCloud cloud database. The proxy address can be set to the address of other devices. The iCloud cloud database authenticates the iCloud access credentials based on the verification request. After the authentication is successful, a notification of successful authentication and a verification data are sent to the proxy address. Simulate the iCloud Drive component or CloudKit API component to access the data stored in iCloud. After verifying and confirming the verification data, return the data list to the iCloud cloud database to obtain the user list in the iCloud cloud database. There are multiple backup device names in the user list. The latest backup device name can be selected by default, or it can be set to select a device name with specific characters, or the user can click to select an instruction to select one of the multiple backup device names to obtain a marked device name. Here, the device name can be a user-defined name, device ID, device model and other information. The backup information uploaded to the iCloud cloud database is not completely consistent with the information required by the Line server. It only needs to be that the backup information uploaded to the iCloud cloud database is a superset of the information required by the Line server.

[0027] The marked device name is sent to the iCloud cloud database, and the iCloud cloud database establishes a communication connection between the cloud backup data container corresponding to the marked device name, device ID, etc. and the proxy address.

[0028] Furthermore, step 1023 includes the following specific implementations: 10231. Based on the preset iCloud Drive simulation component and the preset CloudKit simulation component, the verification data is verified and processed to generate a user list.

[0029] In step 10231, the iCloud Drive simulation component and the CloudKit simulation component are two components simulated by code. The iCloud Drive simulation component is used to store and manage user files, and the CloudKit simulation component is used to store and query application data, access data stored in iCloud, verify and confirm the verification data, and return the data list to the iCloud cloud database to obtain the user list in the iCloud cloud database.

[0030] Furthermore, step 1021 includes the following specific implementations: 10211. Based on the HTTPS / TLS protocol, encapsulate the iCloud access credentials and proxy address and generate a verification request.

[0031] In step 10211, the HTTPS / TLS protocol is a network communication security protocol, which is a combination of HTTP and TLS / SSL protocols. It encapsulates the iCloud access credentials and proxy address in the protocol header information, generates a verification request, and meets the end-to-end requirements of iCloud.

[0032] 103. Send the Line encrypted data and the device ID to the Line server, and receive chat parsed data returned by the Line server.

[0033] In this embodiment, a Line app is simulated to connect to a Line server. The Line server needs to verify the device used by the app, so the device ID must also be sent to the Line server. The Line encrypted data and the device ID are sent to the Line server, which parses the encrypted data and obtains the decrypted chat data. This allows the plaintext chat data to be retrieved without forcibly decrypting the Line encrypted data.

[0034] For details, please refer to Figure 4 , Figure 4 This is a specific embodiment of step 103 of the method for parsing Line chat records in the iOS system in an embodiment of the present invention. Step 103 includes the following specific implementation methods: 1031. Generate JSON data and entity class data corresponding to the JSON data based on the Line encrypted data and the device ID. 1032. Send the JSON data and the entity class data to the Line server, and receive the chat parsing data returned by the Line server.

[0035] In steps 1031-1032, the Line encrypted data and device ID are assembled according to the JSON format accepted by the Line server. The instructions are set to parse the chat data to obtain the entity class data corresponding to the JSON data and the JSON data. The entity class data corresponding to the JSON data and the JSON data is then sent to the Line server. The Line server decrypts the entity class data based on the JSON data and receives the chat parsed data returned by the Line server.

[0036] Specifically, after step 103, the following specific implementation methods are also included: 104. In a preset display interface, the chat parsing data is displayed and processed to obtain Line chat record data.

[0037] In step 104, the chat parsed data is displayed in a preset display interface in a text format such as XML format and HTML format to obtain Line chat record data, making it convenient for users to view relevant information.

[0038] Specifically, after step 103, the following specific implementation methods are also included: 105. Save the chat parsed data into a preset SQL database.

[0039] In step 105, the chat parsing data is saved into a data table according to the chat records with different objects. The data table has corresponding fields such as MesLocalID, Message, and Status, which respectively represent the ID, chat content, and status of the chat content in the current conversation. The data is stored in a relational database such as an SQLite database and a MySQL database so that users can store the chat records.

[0040] In an embodiment of the present invention, by pre-setting iCloud access credentials and downloading Line encrypted data from the iCloud cloud database, encrypted data related to Line chat data can be obtained on a device without the need to install the Line application. Using the device ID and Line encrypted data, a proxy accesses the Line server for decryption to obtain chat parsing data. This solution obtains Line chat history data through iCloud and simulates the Line application using the Line server to decrypt and parse the Line chat history. This solution eliminates the need to adjust the data structure of the Line chat data and can parse Line chat data regardless of whether it is encrypted or private, thus enabling parsing of Line chat history data on the iOS system.

[0041] Figure 5This is a schematic diagram of the structure of a device for parsing Line chat records on an iOS system, provided in an embodiment of the present invention. The device 500 for parsing Line chat records on an iOS system may vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 510 (e.g., one or more processors), memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. The memory 520 and storage medium 530 may be either transient or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instructions for operating on the device 500 for parsing Line chat records on an iOS system. Furthermore, the processor 510 may be configured to communicate with the storage medium 530, executing the series of instructions stored in the storage medium 530 on the device 500 for parsing Line chat records on an iOS system.

[0042] The IOS system-based Line chat record parsing device 500 may further include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, Free BSD, etc. It will be understood by those skilled in the art that Figure 5 The structure of the device for parsing Line chat records of the iOS system shown does not constitute a limitation on the parsing device based on the Line chat records of the iOS system, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0043] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the steps of the method for parsing Line chat records of the IOS system.

[0044] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0045] In addition, although adopting specific order to describe each operation, this should be understood as requiring such operation to be carried out in the specific order shown or in sequential order, or requiring that all illustrated operations should be carried out to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although comprising some specific implementation details in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation also can be implemented in a plurality of implementations individually or in the mode of any suitable subcombination.

[0046] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A method for parsing Line chat records in an iOS system, characterized in that: Including steps: Connect to the iCloud cloud database based on the preset iCloud access credentials; Sending a data download request to the iCloud cloud database, and receiving the Line encrypted data and the device ID corresponding to the Line encrypted data fed back by the iCloud cloud database; Send the Line encrypted data and the device ID to the Line server, and receive the chat parsing data returned by the Line server.

2. The method for backing up Line chat records in an IOS system according to claim 1, characterized in that: Connecting to the iCloud cloud database according to the preset iCloud access credentials includes: Based on the iCloud access credentials, a verification request is constructed and generated, wherein the verification request includes: a proxy address; Sending the verification request to an iCloud cloud database, and receiving verification data returned by the iCloud cloud database based on the proxy address; Based on a preset iCloud simulation component, the verification data is verified and processed to generate a user list, wherein the user list includes: N backup device names, where N is a positive integer; receiving a device selection instruction, and marking the N backup device names according to the device selection instruction to obtain marked device names; The marked device name is sent to the iCloud cloud database, and a connection with the iCloud cloud database is established.

3. The method for backing up Line chat records in an IOS system according to claim 2, characterized in that: The verifying the verification data based on the preset iCloud simulation component to generate a user list includes: Based on the preset iCloud Drive simulation component and the preset CloudKit simulation component, the verification data is verified and processed to generate a user list.

4. The method for backing up Line chat records in an IOS system according to claim 2, characterized in that: The generating a verification request based on the iCloud access credentials includes: Based on the HTTPS / TLS protocol, the iCloud access credentials and proxy address are encapsulated to generate a verification request.

5. The method for backing up Line chat records in an IOS system according to claim 1, characterized in that: The sending of the Line encrypted data and the device ID to the Line server and the receiving of chat parsed data returned by the Line server include: Generate JSON data and entity class data corresponding to the JSON data based on the Line encrypted data and the device ID; Send the json data and the entity class data to the Line server, and receive the chat parsing data returned by the Line server.

6. The method for backing up Line chat records in an IOS system according to claim 1, characterized in that: Before connecting to the iCloud cloud database according to the preset iCloud access credentials, the method further includes: Connect to pre-installed backup device; Call the backup device and connect to the iCloud cloud database by pre-setting iCloud access credentials; Upload the Line chat history in the backup device to the iCloud cloud database for backup.

7. The method for backing up Line chat records in an IOS system according to claim 1, characterized in that: After sending the preset backup device ID and the Line encrypted data to the Line server and receiving the chat parsed data returned by the Line server, the method further includes: In a preset display interface, the chat parsing data is displayed and processed to obtain Line chat record data.

8. The method for backing up Line chat records in an IOS system according to claim 1, characterized in that: After sending the preset backup device ID and the Line encrypted data to the Line server and receiving the chat parsed data returned by the Line server, the method further includes: The chat parsed data is saved in a preset SQL database.

9. A device for parsing Line chat records on an iOS system, characterized in that: The iOS system Line chat record parsing device includes: a memory and at least one processor, the memory storing instructions, and the memory and the at least one processor being interconnected via a line; The at least one processor calls the instruction in the memory to enable the iOS system Line chat record parsing device to execute the iOS system Line chat record parsing 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 method for parsing the IOS system Line chat record according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Line App data migration method and device, equipment and storage medium

    CN114356845A

  • Data transmission method, system, device and medium

    CN114385589A

  • Cross-platform transmission method, system and device for Line App data and storage medium

    CN114401278A

  • Windows Line program chat data review method and device, equipment and storage medium

    CN118277984A

  • METHOD AND SYSTEM FOR CREDENTIAL MANAGEMENT AND DATA ENCRYPTION FOR iOS BASED DEVICES

    US20130067232A1