Method and device for cold starting android mobile terminal
AssigneeZte Corporation
InventorHuipeng Zeng
Life of this patent
Estimating the term…
Abstract
A method and a device for cold starting an Android mobile terminal are disclosed. The method includes: the mobile terminal in standby state backs up data needing to be saved to a non-volatile storage device and then is powered off after a power supply of the mobile terminal is turned off in a fast cold starting mode; after the mobile terminal is restarted, the data backed up in the non-volatile storage device is restored to a corresponding physical memory. The advantage of the technical solution is that: by backing up the data needing to be saved, such as used pages, the efficiency of data backup and recovery is improved, and the time for cold starting of the Android mobile terminal is significantly shortened.
Claims12
A method for cold starting an Android mobile terminal, comprising:
- in a fast cold starting mode, backing up, by the mobile terminal in standby state, data needing to be saved to a non-volatile storage device after a power supply of the mobile terminal is turned off, and then powering off the mobile terminal;
- and
- restoring the data backed up in the non-volatile storage device to a corresponding physical memory after the mobile terminal is restarted,
- wherein backing up, by the mobile terminal in standby state, the data needing to be saved to the non-volatile storage device specifically comprises:
- when it is determined that there is a fast coldboot file denoting a fast cold staring state variable in a file system of a mobile operating system in the non-volatile storage device, saving a physical address of a variable containing layout information of physical memory to a specified physical memory, running a guidance system of the mobile terminal;
- wherein the layout information of physical memory is used for making the guidance system to get a usage condition of each page in the physical memory, which comprises:
- page usage condition mapping table, starting page number of program memory, and ending page number of program memory;
- and
- after the guidance system finds out that the fast cold starting mode is set up, analyzing information of each page in the physical memory, only backing up data of used pages and physical addresses of the used pages in a program memory to the non-volatile storage device, setting up a logo of successful backup, and powering off the mobile terminal.
A device for cold starting an Android mobile terminal, comprising:
- a standby saving module and a data recovery module;
- wherein
- the standby saving module is configured to, in a fast cold starting mode, make the mobile terminal in standby state back up data needing to be saved to a non-volatile storage device after a power supply of the mobile terminal is turned off, and then power off the mobile terminal;
- and
- the data recovery module is configured to restore the data backed up in the non-volatile storage device to a corresponding physical memory after the mobile terminal is restarted,
- wherein backing up, by the standby saving module, the data needing to be saved to the non-volatile storage device specifically comprises:
- when it is determined that there is a fast coldboot file denoting a fast cold starting state variable in a file system of a mobile operating system in the non-volatile storage device, saving a physical address of a variable containing layout information of physical memory to a specified physical memory, running a guidance system of the mobile terminal;
- wherein the layout information of physical memory is used for making the guidance system to get a usage condition of each page in the physical memory, which comprises:
- page usage condition mapping table, starting page number of program memory, and ending page number of program memory;
- and
- after the guidance system finds out that the fast cold starting mode is set up, analyzing information of each page in the physical memory, only backing up data of used pages and physical addresses of the used pages in a program memory to the non-volatile storage device, setting up a logo of successful backup, and powering off the mobile terminal.
Dependencies are inferred from the claim text.