IP Library Granted Patent US 12,499,014
Granted Patent B2
US 12,499,014 · App. 18/641,083 · Granted Dec 16, 2025

Method and apparatus for system backup, memory, and electronic device

Inventors: Shan Gao (Beijing, CN); Chihming Lin (Beijing, CN); Yingmei Zhang (Beijing, CN)
Assignee: Beijing Xiaomi Mobile Software Co., Ltd.
G06F11/1458
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,499,014
App. No.
18/641,083
Granted
Dec 16, 2025
Kind
B2
Abstract

A method for a system backup, includes: backing up a system mapping table before a system file is updated, wherein the system mapping table includes at least one first storage address, and each first storage address corresponds to an address where first system file data is currently stored in a memory; retaining, in response to that the system file is updated, the first system file data in the memory; and storing updated second system file data in the memory and determining an updated system mapping table.

Claims (65)

1 . A method for a system backup, comprising:

backing up a system mapping table before a system file is updated, wherein the system mapping table comprises at least one first storage address, and each first storage address corresponds to an address where first system file data is currently stored in a memory;

retaining, in response to that the system file is updated, the first system file data in the memory;

storing updated second system file data in the memory and determining an updated system mapping table;

determining, in response to detecting a system restore instruction, a third storage address of a to-be-restored target system file in the memory based on a target backup system mapping table indicated by the system restore instruction, wherein the target backup system mapping table is one of system mapping tables backed up by the memory; and

restoring, after reading file data of the to-be-restored target system file from the memory according to the third storage address, the to-be-restored target system file.

2 . The method according to claim 1 , wherein backing up the system mapping table comprises:

sending, by a processor, a backup instruction to the memory; and

backing up, by the memory, the system mapping table based on the backup instruction.

3 . The method according to claim 1 , wherein storing the updated second system file data in the memory comprises:

determining, in second system file data, incremental data not belonging to the first system file data; and

storing the incremental data in the memory.

4 . The method according to claim 3 , wherein determining the updated system mapping table comprises:

determining a second storage address of the incremental data in the memory;

determining common data between the first system file data and the second system file data; and

determining that the updated system mapping table comprises a first storage address of the common data and a second storage address of the common data.

5 . The method according to claim 1 , further comprising:

detecting, in response to determining that an over the air (OTA) upgrade for the system file fails, whether the system restore instruction is received.

6 . The method according to claim 1 , wherein detecting the system restore instruction comprises:

detecting that a processor receives the system restore instruction; or

detecting that the processor generates the system restore instruction.

7 . The method according to claim 1 , wherein before detecting the system restore instruction, the method further comprises:

sending, by a processor, the system mapping table backed up by the memory to another electronic device, such that the another electronic device determines the target backup system mapping table in the backed-up system mapping table.

8 . The method according to claim 1 , wherein restoring the to-be-restored target system file comprises:

restoring, after reading file data of the to-be-restored target system file from the memory according to the third storage address, the to-be-restored target system file in a snapshot recovery manner.

9 . A memory device, comprising:

a memory processor; and

a memory,

wherein the memory processor is configured to:

back up a system mapping table before a system file is updated, wherein the system mapping table comprises at least one first storage address, and each first storage address corresponds to an address where first system file data is currently stored in the memory;

in response to that the system file is updated, retain the first system file data; and

store updated second system file data and store an updated system mapping table,

wherein a third storage address of a to-be-restored target system file in the memory is determined based on a target backup system mapping table indicated by a system restore instruction, wherein the target backup system mapping table is one of system mapping tables backed up by the memory; and

after file data of the to-be-restored target system file is read from the memory according to the third storage address, the to-be-restored target system file is restored.

10 . The memory device according to claim 9 , wherein the memory processor is further configured to:

back up, in response to receiving a backup instruction from a processor, the system mapping table based on the backup instruction.

11 . The memory device according to claim 9 , wherein the memory processor is further configured to:

store incremental data of the second system file data relative to the first system file data.

12 . The memory device according to claim 11 , wherein the updated system mapping table stored in the memory comprises:

a first storage address of common data, wherein the common data is common system file data of the first system file data and the second system file data; and

a second storage address of the incremental data.

13 . An electronic device, comprising:

a device processor; and

a memory device including a memory and a memory processor;

wherein the device processor is configured to send a backup instruction to the memory device before a system file is updated;

wherein the memory processor is configured to:

back up a system mapping table based on the backup instruction, wherein the system mapping table comprises at least one first storage address, and each first storage address corresponds to an address where first system file data is currently stored in the memory;

retain the first system file data in response to that the system file is updated;

store updated second system file data and an updated system mapping table;

determine, in response to detecting a system restore instruction, a third storage address of a to-be-restored target system file in the memory based on a target backup system mapping table indicated by the system restore instruction, wherein the target backup system mapping table is one of system mapping tables backed up by the memory; and

restore, after reading file data of the to-be-restored target system file from the memory according to the third storage address, the to-be-restored target system file.

14 . The electronic device according to claim 13 , wherein the memory processor is further configured to:

determine, in second system file data, incremental data not belonging to the first system file data; and

store the incremental data in the memory.

15 . The electronic device according to claim 14 , wherein the memory processor is further configured to:

determine a second storage address of the incremental data in the memory;

determine common data between the first system file data and the second system file data; and

determine that the updated system mapping table comprises a first storage address of the common data and a second storage address of the common data.

16 . The electronic device according to claim 13 , wherein the memory processor is further configured to:

detect, in response to determining that an over the air (OTA) upgrade for the system file fails, whether the system restore instruction is received.

17 . The electronic device according to claim 13 , wherein the device processor is further configured to:

receive the system restore instruction; or

generate the system restore instruction.

18 . The electronic device according to claim 13 , wherein the device processor is further configured to:

send the system mapping table backed up by the memory to another electronic device, such that the another electronic device determines the target backup system mapping table in the backed-up system mapping table.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 19, 2024
From: GAO, SHAN; LIN, CHIHMING; ZHANG, YINGMEI
To: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.
Reel/Frame 067171/0603 →
Priority Claims (1)
CN 202311282675.5 · Sep 28, 2023 · national
Continuity (1)
Related Publication 20250110836A1 · Apr 3, 2025
References Cited (8)
US 8868882B2 · Ali · 2014 [cited by examiner]
US 11436108B1 · Jourdain et al. · 2022 [cited by applicant]
US 20130311429A1 · Agetsuma · 2013 [cited by examiner]
US 20200007655A1 · Namiranian · 2020 [cited by examiner]
US 20230058980A1 · Jorapur et al. · 2023 [cited by applicant]
CN 109408278A · 2019 [cited by applicant]
Extended European Search Report issued in Application No. 24172680.1 dated Oct. 10, 2024, 9 pages. [cited by applicant]
The First Office Action for Chinese Application No. 202311282675.5, dated Aug. 28, 2022, 22 pages. [cited by applicant]