A dual-partition lightweight memory storage and cross-device migration method, system, device and storage medium
By employing a dual-partition isolated storage architecture and lossless compression technology, combined with point-to-point encrypted transmission, the problem of secure migration of user privacy data across multiple terminals is solved, achieving seamless data inheritance and secure synchronization, and adapting to low-computing-power terminals and offline scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 陈磊
- Filing Date
- 2026-04-03
- Publication Date
- 2026-06-26
AI Technical Summary
Existing technologies cannot effectively balance the security protection of user privacy data, the adaptability to low-computing-power terminals, and the migration needs of offline scenarios, making it difficult to achieve seamless and secure inheritance of user personalized memory data across multiple terminals.
It adopts a dual-partition isolated storage architecture, combined with hierarchical permission management and lossless data compression, and realizes cross-device migration of user private data through point-to-point encrypted transmission channels, ensuring the security and integrity of data during transmission.
It enables seamless inheritance and synchronization of user-personalized data across multiple terminals, reduces the risk of data leakage, adapts to low-computing-power terminals and offline scenarios, and improves the continuity and convenience of users' use of AI interactive services.
Smart Images

Figure CN122293674A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of artificial intelligence interactive data processing technology, and in particular to a dual-partition lightweight memory storage and cross-device migration method, system, device and storage medium. Background Technology
[0002] With the rapid popularization of artificial intelligence interaction technology, various types of AI interactive terminals, such as smart terminals, service robots, and smart home devices, have been widely used in daily production and life scenarios. During the process of users using AI interactive services on different terminals, a large amount of exclusive personalized interaction data, preference data and memory data will be generated. This type of data is the core foundation for realizing personalized adaptation and coherent interaction of AI services. Current mainstream AI data storage and cross-device synchronization solutions mostly adopt a hybrid storage model for model and user data, with cloud-based relay synchronization. In practical applications, this approach cannot simultaneously address the security protection of user privacy data, the adaptability to low-computing-power terminals, and the migration needs of offline scenarios. Consequently, it is difficult to achieve seamless and secure inheritance of users' personalized memory data across multiple terminals. Summary of the Invention
[0003] The purpose of this invention is to provide a method, system, apparatus, and storage medium for dual-partition lightweight memory storage and cross-device migration, so as to solve the problems mentioned in the background art.
[0004] To achieve the above objectives, the present invention adopts the following technical solution: A dual-partition lightweight memory storage and cross-device migration system includes at least one smart terminal. The smart terminal has a built-in dual-partition storage module, a permission management module, a data compression module, and a cross-device migration module. The dual-partition storage module is used to construct and manage a user's private data area and a public model area. The permission management module is used to perform isolated permission control on the dual-partition storage system. The data compression module is used to perform lightweight compression processing on personalized data in the user's private data area to generate a migration data package. The cross-device migration module is used to detect the device type and storage permissions of the target terminal and complete the transmission and data synchronization of the migration data package.
[0005] As a further improvement to this technical solution: the dual-partition storage module divides the terminal storage medium into two independent logical volumes, generates a unique partition identification identifier for the two independent logical volumes, and configures independent storage addressing links for the two independent logical volumes.
[0006] A dual-partition lightweight memory storage and cross-device migration device includes a dual-partition storage unit, an access control unit, a data compression unit, and an end-to-end migration unit. The dual-partition storage unit is used to construct and isolate a user's private data area and a public model area. The access control unit is used to perform hierarchical and isolated access management on the two partitions. The data compression unit is used to perform lightweight and lossless compression on the user's private data to generate standardized migration data packets. The end-to-end migration unit is used to establish a point-to-point encrypted transmission channel to complete target terminal adaptation and data synchronization.
[0007] A method for using a dual-partition lightweight memory storage and cross-device migration system includes the following steps: S1. In the initialization phase of the dual-partition storage system, two independent logical volumes are divided in the storage medium of the source intelligent terminal, corresponding to private data storage and public model storage respectively. A unique identification identifier for each partition is generated, and the independent storage addressing link for each partition is configured. S2, in the hierarchical access control rule configuration phase, configure independent access control rules for the two independent partitions, deploy a full-process recording mechanism for partition access operations, and configure rules for intercepting and locking unauthorized access behaviors; S3, Lightweight migration data packet generation stage: Extract all personalized data from the user's private data area, remove redundant temporary data and invalid records, perform lossless compression on the cleaned data, generate a unique hash check value for the data, and encapsulate it into a standardized lightweight migration data packet; S4. In the end-to-end offline cross-device migration phase, a point-to-point offline encrypted transmission channel is established between the source terminal and the target terminal. The device type and storage permission status of the target terminal are detected. After the permission matching verification is completed, the migration data packet is transmitted, and the integrity and legality of the data packet are verified. S5, the data synchronization and process closure stage, writes the verified private data into the user's private data area of the target terminal, completes cross-device data synchronization, disconnects the encrypted transmission channels at both ends, and clears the temporary cached data generated during the migration process.
[0008] As a further improvement to this technical solution: the step of generating a lightweight migration data packet includes: removing redundant temporary data and invalid records from the user's private data area; performing lossless compression on the cleaned private data; generating a unique hash checksum for the compressed data; and encapsulating the compressed data, checksum, and authorization signature into a standardized migration data packet; the compression ratio is calculated as follows: , For data compression ratio; This represents the volume of the original private data after cleaning. This represents the compressed private data volume; the hash checksum generation method is as follows: , This is the generated unique hash check value; This is compressed private data; Generate timestamps for the data; A unique identifier for each user; This is for data splicing operations.
[0009] As a further improvement to this technical solution: the steps for completing migration and data synchronization include: establishing a point-to-point offline encrypted transmission channel between the source terminal and the target terminal; completing the matching verification of the target terminal device type and storage permissions; performing integrity and legality verification of the migration data packet; and writing the verified private data into the user private data area of the target terminal.
[0010] A computer-readable storage medium, wherein when the computer program is executed by a processor, it implements the method of using the dual-partition lightweight memory storage and cross-device migration system of claim 4.
[0011] Compared with the prior art, the beneficial effects of the present invention are: 1. This invention achieves physical layer isolation storage of user-personalized private data and general AI model algorithms through a dual-partition isolated storage architecture design. Combined with a hierarchical and independent permission control mechanism, it can effectively avoid the risk of user privacy data leakage caused by unauthorized access. At the same time, the end-to-end encrypted transmission mode does not rely on third-party cloud servers for relay, reducing the risk of leakage of user private data during transmission. It provides full-link security protection for user-personalized memory data throughout the entire process.
[0012] 2. This invention employs lightweight lossless compression processing for user private data, which can effectively reduce the data volume during cross-device migration, lower the requirements for terminal computing power and transmission bandwidth, and adapt to various types of low-computing-power smart terminals and offline transmission scenarios without network. At the same time, the standardized partitioning architecture and target terminal adaptation verification mechanism can ensure the accuracy and adaptability of data writing during cross-device migration, realizing seamless inheritance and synchronization of user personalized memory data across multiple terminals, and greatly improving the continuity and convenience of users using AI interactive services across devices.
[0013] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it according to the contents of the specification, the preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings. Specific embodiments of the present invention are given in detail below with reference to the accompanying drawings. Attached Figure Description
[0014] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings: Figure 1 This is a schematic diagram illustrating the usage of a dual-partition lightweight memory storage and cross-device migration system. Detailed Implementation
[0015] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are for illustrative purposes only and are not intended to limit the scope of the invention. The invention is described more specifically in the following paragraphs by way of example with reference to the accompanying drawings. It should be noted that the drawings are in a very simplified form and use non-precise proportions, and are only used to facilitate and clarify the illustration of the embodiments of the present invention.
[0016] Please see Figure 1 In this embodiment of the invention, a dual-partition lightweight memory storage and cross-device migration system includes at least one smart terminal. The smart terminal has a built-in dual-partition storage module, a permission management module, a data compression module, and a cross-device migration module. The dual-partition storage module is used to construct and manage a user's private data area and a public model area. The permission management module is used to perform isolated permission control on the dual-partition storage system. The data compression module is used to perform lightweight compression processing on the personalized data in the user's private data area to generate a migration data package. The cross-device migration module is used to detect the device type and storage permissions of the target terminal and complete the transmission and data synchronization of the migration data package. Specifically, the core components include at least one smart terminal, which has four built-in core modules, and the functions of each module are as follows: The dual-partition storage module is used to build two independent storage partitions in the terminal storage medium, namely the user private data area and the public model area. At the same time, it performs full lifecycle management of the storage status, data writing and reading of the two partitions, providing underlying storage architecture support for the entire system. The access control module is used to implement isolated access control for the two independent partitions of the dual-partition storage system. It configures independent access rules for the two partitions to prevent unauthorized operations from accessing the corresponding partitions and ensures that the storage boundaries of the two partitions are not breached. The data compression module is used to read the user's personalized data stored in the user's private data area, perform lightweight compression processing on the data to reduce the overall size of the data, and encapsulate the compressed data packet to generate a migration data packet that can be used for cross-device transmission. The cross-device migration module is used to identify the device type of the target terminal when the cross-device migration process is started, and at the same time verify the storage permission status of the target terminal. After completing the matching of device and permission, the migration data packet is transmitted from the source terminal to the target terminal, and finally the data synchronization between the two ends is completed.
[0017] The dual-partition storage module divides the terminal storage medium into two independent logical volumes, generates a unique partition identification identifier for each of the two independent logical volumes, and configures independent storage addressing links for the two independent logical volumes. Specifically, two independent logical volumes are divided in the terminal storage medium to achieve hard isolation between the two partitions from the storage layer. The two logical volumes adopt independent storage formats and do not share storage addressing channels, thus ensuring the isolation boundary between the two partitions at the physical level. Generate a unique partition identification identifier for two independent logical volumes. During cross-device migration, the target terminal can quickly identify the corresponding storage partition through this identifier, ensuring that the migrated data is only written to the corresponding user private data area and avoiding data writing to the wrong location. Configure independent storage addressing links for two independent logical volumes to configure independent read and write addressing channels for the two partitions. Read and write operations of the two partitions do not interfere with each other, further enhancing the isolation effect between the two partitions and preventing unauthorized data access across partitions.
[0018] A dual-partition lightweight memory storage and cross-device migration device includes a dual-partition storage unit, an access control unit, a data compression unit, and an end-to-end migration unit. The dual-partition storage unit is used to construct and isolate a user's private data area and a public model area. The access control unit is used to perform hierarchical and isolated access management on the two partitions. The data compression unit is used to perform lightweight and lossless compression on the user's private data to generate standardized migration data packets. The end-to-end migration unit is used to establish a point-to-point encrypted transmission channel to complete target terminal adaptation and data synchronization. Specifically, the core components consist of four core units, and the functions of each unit are as follows: The dual-partition storage unit is used to build a user private data area and a public model area in the terminal's storage hardware, realize isolated storage of the two partitions, and ensure that the storage operations of the two partitions are independent of each other, providing underlying storage support for the device. The access control unit is used to configure hierarchical and isolated access management rules for two independent storage partitions. It configures corresponding authorization rules for the access needs of different partitions, while blocking unauthorized access operations to ensure data security within the partitions. The data compression unit is used to read user private data in the user's private data area, perform lightweight lossless compression processing on the data to adapt to low computing power terminals, reduce the data volume while ensuring that the data can be completely restored, and encapsulate and generate standardized migration data packets to adapt to cross-device transmission requirements. The end-to-end migration unit is used to establish a point-to-point encrypted transmission channel between the source terminal and the target terminal, while completing the device type adaptation and permission verification of the target terminal, and finally completing the transmission of migration data packets and cross-terminal data synchronization.
[0019] A method for using a dual-partition lightweight memory storage and cross-device migration system includes the following steps: S1. In the initialization phase of the dual-partition storage system, two independent logical volumes are divided in the storage medium of the source intelligent terminal, corresponding to private data storage and public model storage respectively. A unique identification identifier for each partition is generated, and the independent storage addressing link for each partition is configured. S2, in the hierarchical access control rule configuration phase, configure independent access control rules for the two independent partitions, deploy a full-process recording mechanism for partition access operations, and configure rules for intercepting and locking unauthorized access behaviors; S3, Lightweight migration data packet generation stage: Extract all personalized data from the user's private data area, remove redundant temporary data and invalid records, perform lossless compression on the cleaned data, generate a unique hash check value for the data, and encapsulate it into a standardized lightweight migration data packet; S4. In the end-to-end offline cross-device migration phase, a point-to-point offline encrypted transmission channel is established between the source terminal and the target terminal. The device type and storage permission status of the target terminal are detected. After the permission matching verification is completed, the migration data packet is transmitted, and the integrity and legality of the data packet are verified. S5, Data Synchronization and Process Closure Phase: The verified private data is written into the user's private data area of the target terminal to complete cross-device data synchronization, disconnect the encrypted transmission channels at both ends, and clear the temporary cached data generated during the migration process. Specifically, the initialization phase of the S1 dual-partition storage system is used to complete the construction of the underlying storage architecture of the entire technical solution. It completes the division of two independent logical volumes in the storage medium of the source intelligent terminal, clarifies the storage purpose of the two partitions, and generates a unique identification identifier and independent addressing link for each partition, providing the underlying foundation for subsequent permission configuration and data migration. The S2 hierarchical access control rule configuration phase is used to configure corresponding access control rules for two independent storage partitions. At the same time, it deploys a full-process access operation recording mechanism, as well as rules for intercepting and locking unauthorized access, to ensure the data security of the two partitions from the permission level and strengthen the isolation boundary of the partitions. The S3 lightweight migration data packet generation stage is used to complete the entire process of creating the data packets required for migration. First, it extracts all personalized data from the user's private data area, removes invalid and redundant data, performs lossless compression, generates hash check values for verifying data integrity, and finally encapsulates them into standardized migration data packets that can be transmitted across devices. The S4 end-to-end offline cross-device migration phase is used to complete the connection and data transmission between the source terminal and the target terminal. First, a point-to-point offline encrypted transmission channel is established between the two ends to ensure that the transmission process does not pass through third-party nodes. At the same time, the device type and storage permission of the target terminal are verified. After the data packet is transmitted, the integrity and legality of the data packet are verified to ensure the security and integrity of the migration data. The S5 data synchronization and process closure stage is used to complete the final writing of migration data and the end of the entire process. It writes the verified private data into the user's private data area of the target terminal to complete cross-device data synchronization. Then, it disconnects the encrypted transmission channels at both ends, clears the temporary cached data generated during the migration process, and completes the closure of the entire migration process.
[0020] The steps for generating a lightweight migration data package include: removing redundant temporary data and invalid records from the user's private data area; performing lossless compression on the cleaned private data; generating a unique hash checksum for the compressed data; and encapsulating the compressed data, checksum, and authorization signature into a standardized migration data package. The compression ratio is calculated as follows: , For data compression ratio; This represents the volume of the original private data after cleaning. This represents the compressed private data volume; the hash checksum generation method is as follows: , This is the generated unique hash check value; This is compressed private data; Generate timestamps for the data; A unique identifier for each user; For data concatenation operations; Specifically, , in the formula, The compression ratio is used to quantify the compression effect of private data. The higher the compression ratio, the smaller the size of the compressed data packet and the better the lightweight effect. This represents the original private data volume after cleaning, and is the baseline data volume before compression. The compressed private data volume is the final data volume after compression. The purpose of this formula is to quantitatively define the effect of data compression, provide a unified quantitative evaluation standard for lightweight compression processing, and ensure that the compression processing meets the lightweight requirements of the solution. , in the formula, The generated unique hash check value is a fixed-length, irreversible string used to uniquely characterize the compressed data. This is the compressed private data, which is the core component of hash calculation; Generate timestamps for the data to mark the time when the data packets were generated, thus preventing replay attacks; It serves as a unique identifier for users, used to bind verification values to user identities, ensuring that data packets can only be used by the corresponding authorized users; This is a data concatenation operation used to combine compressed data, timestamps, and user identifiers into a complete hash calculation input value. The function of this formula is to generate an immutable and unique verification value, which is used to verify the integrity and legality of data packets during the migration process, prevent data packets from being tampered with or replaced during transmission, and ensure the security of migration data.
[0021] The steps to complete the migration and data synchronization include: establishing a point-to-point offline encrypted transmission channel between the source terminal and the target terminal; completing the matching verification of the target terminal's device type and storage permissions; performing integrity and legality verification of the migration data packet; and writing the verified private data into the user's private data area of the target terminal. Specifically, the functions of each action are as follows: Establish a point-to-point offline encrypted transmission channel between the source terminal and the target terminal to provide a secure offline transmission link for the transmission of migration data packets. The transmission process does not pass through any third-party cloud nodes, thus avoiding data leakage during transmission and protecting the privacy and security of users' private data. Complete the matching and verification of the target terminal device type and storage permissions. This is used to confirm that the target terminal is compatible with the dual-partition storage architecture of this solution before transmitting data packets, and at the same time to confirm that the target terminal has enabled the corresponding storage write permissions, so as to avoid the problem of being unable to write after data packet transmission and ensure the smooth execution of the migration process. Perform integrity and legality checks on migration data packets. After the target terminal receives the data packet, it first verifies whether the data packet is complete and has not been tampered with by using a pre-generated hash check value. At the same time, it verifies the legality of the migration operation by using the user's authorized signature. If the verification fails, the process is terminated to prevent illegal data from being written to the target terminal. The verified private data is written to the user's private data area of the target terminal. This is used to accurately write the migrated user's private data to the corresponding storage partition of the target terminal, complete cross-device data synchronization and memory inheritance, and ensure that the data writing location meets the isolation architecture requirements of the dual partition.
[0022] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the method of using the dual-partition lightweight memory storage and cross-device migration system of claim 4. Specifically, when the computer program is executed by the processor, it can implement all the steps of the method of using the dual-partition lightweight memory storage and cross-device migration system as defined in claim 4; the purpose of this claim is to provide patent protection for the software code implementation of this technical solution, to prevent others from copying, distributing or using the computer program corresponding to this technical solution without authorization, and to improve the patent protection dimension of the entire technical solution.
[0023] The method of use and working principle of this invention are as follows: Usage: First, initialize and set up the dual-partition storage system on the source smart terminal. Divide the terminal storage medium into a user private data area and a public model area that are isolated from each other and configure the corresponding independent addressing links. Then, configure hierarchical access control rules and unauthorized access interception mechanisms for the two partitions. Next, extract the personalized data in the user private data area, clean and compress it to generate a standardized migration data packet. Then, establish a point-to-point encrypted transmission channel between the source terminal and the target terminal. After verifying the device type and storage permissions of the target terminal, transmit the migration data packet. After verifying the integrity and legality of the data packet, write the corresponding data into the user private data area of the target terminal. Finally, complete the cross-device data synchronization, clean up the temporary cache generated during the migration process, and disconnect the transmission connection between the two ends.
[0024] Working principle: By constructing a dual-partition storage architecture that isolates user private data from public models, the system achieves physical isolation and independent access control between personalized privacy data and general model algorithms at the storage level, avoiding the privacy leakage risks brought by hybrid storage. At the same time, lossless compression processing adapted to low-computing-power terminals is used for user private data to reduce the size of the migrated data to adapt to offline near-field transmission scenarios. Then, the cross-device transmission of migration data packets is completed through an end-to-end point-to-point encrypted transmission channel. Combined with a hash verification mechanism bound to the user's identity, the integrity and legality of the data packets are verified. Finally, the user's private data is accurately written into the corresponding isolated partition of the target terminal, realizing the secure, lightweight cross-device inheritance and synchronization of user personalized memory data across multiple terminals.
[0025] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any way. Those skilled in the art can readily implement the present invention based on the description and drawings above. However, any modifications, alterations, and variations made by those skilled in the art without departing from the scope of the present invention using the disclosed technical content are equivalent embodiments of the present invention. Furthermore, any modifications, alterations, and variations made to the above embodiments based on the essential technology of the present invention are still within the protection scope of the present invention.
Claims
1. A dual-partition lightweight memory storage and cross-device migration system, characterized in that, It includes at least one smart terminal, which has a built-in dual-partition storage module, a permission management module, a data compression module, and a cross-device migration module; The dual-partition storage module is used to build and manage the user's private data area and public model area; the permission management module is used to perform isolated permission control on the dual-partition storage system; the data compression module is used to perform lightweight compression processing on the personalized data in the user's private data area to generate migration data packages; The cross-device migration module is used to detect the device type and storage permissions of the target terminal, and to complete the transmission of migration data packets and data synchronization.
2. The dual-partition lightweight memory storage and cross-device migration system according to claim 1, characterized in that, The dual-partition storage module divides the terminal storage medium into two independent logical volumes, generates a unique partition identification identifier for each of the two independent logical volumes, and configures independent storage addressing links for the two independent logical volumes.
3. A dual-partition lightweight memory storage and cross-device migration device, characterized in that, It includes a dual-partition storage unit, an access control unit, a data compression unit, and an end-to-end migration unit. The dual-partition storage unit is used to build and isolate the storage area for user private data and the public model area. The access control unit is used to perform hierarchical and isolated access control on the two partitions. The data compression unit is used to perform lightweight and lossless compression on user private data to generate standardized migration data packets. The end-to-end migration unit is used to establish a point-to-point encrypted transmission channel to complete the adaptation of the target terminal and data synchronization.
4. A method for using a dual-partition lightweight memory storage and cross-device migration system, characterized in that, Includes the following steps: S1. In the initialization phase of the dual-partition storage system, two independent logical volumes are divided in the storage medium of the source intelligent terminal, corresponding to private data storage and public model storage respectively. A unique identification identifier for each partition is generated, and the independent storage addressing link for each partition is configured. S2, in the hierarchical access control rule configuration phase, configure independent access control rules for the two independent partitions, deploy a full-process recording mechanism for partition access operations, and configure rules for intercepting and locking unauthorized access behaviors; S3, Lightweight migration data package generation stage: Extract all personalized data from the user's private data area, remove redundant temporary data and invalid records, perform lossless compression processing on the cleaned data, generate a unique hash check value for the data, and encapsulate it into a standardized lightweight migration data package; S4. In the end-to-end offline cross-device migration phase, a point-to-point offline encrypted transmission channel is established between the source terminal and the target terminal. The device type and storage permission status of the target terminal are detected. After the permission matching verification is completed, the migration data packet is transmitted, and the integrity and legality of the data packet are verified. S5, the data synchronization and process closure stage, writes the verified private data into the user's private data area of the target terminal, completes cross-device data synchronization, disconnects the encrypted transmission channels at both ends, and clears the temporary cached data generated during the migration process.
5. The method of using a dual-partition lightweight memory storage and cross-device migration system according to claim 4, characterized in that, The steps for generating a lightweight migration data package include: removing redundant temporary data and invalid records from the user's private data area; performing lossless compression on the cleaned private data; generating a unique hash checksum for the compressed data; and encapsulating the compressed data, checksum, and authorization signature into a standardized migration data package. The compression ratio is calculated as follows: , For data compression ratio; This represents the volume of the original private data after cleaning. This represents the compressed private data volume; the hash checksum generation method is as follows: , This is the generated unique hash check value; This is compressed private data; Generate timestamps for the data; A unique identifier for each user; This is for data splicing operations.
6. The method of using a dual-partition lightweight memory storage and cross-device migration system according to claim 4, characterized in that, The steps to complete the migration and data synchronization include: establishing a point-to-point offline encrypted transmission channel between the source terminal and the target terminal; completing the matching verification of the target terminal's device type and storage permissions; performing integrity and legality verification of the migration data packet; and writing the verified private data into the user's private data area of the target terminal.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method of using the dual-partition lightweight memory storage and cross-device migration system as described in claim 4.