CN103235703B - Preset resource storage method and apparatus - Google Patents
Preset resource storage method and apparatus Download PDFInfo
- Publication number
- CN103235703B CN103235703B CN201310125276.8A CN201310125276A CN103235703B CN 103235703 B CN103235703 B CN 103235703B CN 201310125276 A CN201310125276 A CN 201310125276A CN 103235703 B CN103235703 B CN 103235703B
- Authority
- CN
- China
- Prior art keywords
- preset resource
- card
- built
- data partition
- storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of preset resource storage method and apparatus, described preset resource storage method includes step: preset resource is stored in the data partition of terminal unit;When described terminal unit first powers on, the described preset resource of storage in described data partition is transferred in the built-in SD card of described terminal unit;Delete the described preset resource of storage in described data partition.The present invention can avoid space hold and the space caused system partitioning because preset resource is positioned over system partitioning saturated, does not interferes with the stability that system is run;Can in the data partition of terminal unit integrated substantial amounts of preset resource, the size of preset resource can not be limited;Preset resource can be avoided to take dual space and cause waste of storage space.
Description
Technical field
The present invention relates to, be related specifically to preset resource storage method and apparatus.
Background technology
When terminal unit brush machine or factory reset, the configuration file in terminal unit and application program can be deleted, and during brush machine or factory reset, call preset resource to recover custom configuration files and the application program of terminal unit, make terminal unit can normally use after brush machine or factory reset.If preset resource is lost, typically cannot be normally carried out factory reset operation, needing again to copy entrance just can be with normal operating.For preventing factory reset mistiming from deleting preset resource, currently existing scheme is typically to be integrated in the system partitioning of terminal unit preset resource.But, some terminal equipment configuration is relatively low, and the memory space of system partitioning is less, and system partitioning is mainly used in place system file, and remaining space is few, limits the size of preset resource.Meanwhile, when too much preset resource is integrated in system partitioning, system partitioning space can be caused saturated, badly influence system run all right and the OTA(OvertheAirTechnology of terminal unit, over the air) feasibility upgraded.
Summary of the invention
The main object of the present invention is for providing a kind of preset resource storage method and apparatus avoiding limiting preset resource size, raising terminal unit system run all right.
The present invention proposes a kind of preset resource storage method, including step:
Preset resource is stored in the data partition of terminal unit;
When described terminal unit first powers on, the described preset resource of storage in described data partition is transferred in the built-in SD card of described terminal unit;
Delete the described preset resource of storage in described data partition.
Preferably, described deletion described data partition also includes after the step of the described preset resource of storage:
Reception factory reset instructs;
Execution factory reset operates, and formats described data partition;
Judge whether described factory reset instruction includes built-in SD card formatting commands;
When including built-in SD card formatting commands during described factory reset instructs, start and preset protection of resources pattern, and format described built-in SD card.
Preferably, protection of resources pattern is preset in described startup, and the step formatting described built-in SD card specifically includes:
The described preset resource of storage in described built-in SD card is transferred in described data partition;
Format described built-in SD card;
The described preset resource of storage in described data partition is reduced in described built-in SD card, and deletes the described preset resource of storage in described data partition.
Preferably, also include after the described step judging whether to include built-in SD card formatting commands in described factory reset instruction:
When not including built-in SD card formatting commands during described factory reset instructs, terminate the flow process of factory reset.
Preferably, described when terminal unit first powers on, also included before in described data partition, the described preset resource of storage is transferred to the step in built-in SD card:
When described terminal unit first powers on, format the built-in SD card of described terminal unit.
The present invention also proposes a kind of preset resource storage device, including:
First memory module, for being stored in the data partition of terminal unit by preset resource;
Second memory module, for when described terminal unit first powers on, is transferred to the described preset resource of storage in described data partition in the built-in SD card of described terminal unit, deletes the described preset resource of storage in described data partition.
Preferably, described preset resource storage device also includes:
Command reception module, is used for receiving factory reset instruction;
Formatting module, is used for performing factory reset operation, formats described data partition;
Judge module, is used for judging whether include built-in SD card formatting commands in described factory reset instruction;
Protection module, when including built-in SD card formatting commands in judging described factory reset instruction when described judge module, starts and presets protection of resources pattern;
Described formatting module is additionally operable to, and after described protection module starts and presets protection of resources pattern, formats described built-in SD card.
Preferably, described protection module specifically for:
The described preset resource of storage in described built-in SD card is transferred in described data partition;
After described formatting module formats described built-in SD card, the described preset resource of storage in described data partition is reduced in described built-in SD card, and deletes the described preset resource of storage in described data partition.
Preferably, described formatting module is additionally operable to:
When not including built-in SD card formatting commands during described judge module judges described factory reset instruction, terminate the operation of factory reset.
Preferably, described formatting module is additionally operable to, and when described terminal unit first powers on, formats the built-in SD card of described terminal unit.
The present invention utilizes data partition storage preset resource idle in terminal unit, space hold and the space caused system partitioning because preset resource is positioned over system partitioning can be avoided saturated, do not interfere with the stability that system is run;Can in the data partition of terminal unit integrated substantial amounts of preset resource, the size of preset resource can not be limited;After terminal unit first powers on, the described preset resource stored in data partition is transferred in built-in SD card, and delete the described preset resource of storage in described data partition, for data partition Free up Memory, it is to avoid preset resource takies dual space and causes waste of storage space.
Accompanying drawing explanation
Fig. 1 is the flow chart of the first embodiment of preset resource of the present invention storage method.
Fig. 2 is the flow chart of the second embodiment of preset resource of the present invention storage method;
Fig. 3 is the flow chart of the 3rd embodiment of preset resource of the present invention storage method;
Fig. 4 is the flow chart of the 4th embodiment of preset resource of the present invention storage method;
Fig. 5 is the structural representation of the first embodiment of preset resource of the present invention storage device;
Fig. 6 is the structural representation of the second embodiment of preset resource of the present invention storage device.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further referring to the drawings.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
As it is shown in figure 1, the flow chart of the first embodiment that Fig. 1 is preset resource of the present invention storage method.The preset resource storage method that the present embodiment is mentioned, including step:
Step S10, is stored in the data partition of terminal unit by preset resource;
Terminal unit in the present embodiment can include the equipment such as mobile phone, panel computer.Terminal unit is when dispatching from the factory, built-in SD card and data partition are in idle condition, preset resource is integrated in data partition, space hold and the space system partitioning caused because preset resource is positioned over system partitioning can be avoided saturated, do not interfere with the stability that system is run.Simultaneously as data partition is in idle condition, remaining space is many, can all for storing preset resource, therefore can in the data partition of terminal unit integrated substantial amounts of preset resource, the size of preset resource can not be limited.
Step S20, when terminal unit first powers on, is transferred to the preset resource stored in data partition in the built-in SD card of terminal unit;
Step S30, deletes the preset resource of storage in data partition.
Owing in built-in SD card, memory space is bigger, after terminal unit first powers on, the preset resource stored in data partition is transferred in built-in SD card, and delete the preset resource of storage in data partition, for data partition Free up Memory, it is to avoid preset resource takies dual space and causes waste of storage space.
As in figure 2 it is shown, the flow chart of the second embodiment that Fig. 2 is preset resource of the present invention storage method.The present embodiment, based on embodiment illustrated in fig. 1, also included before step S20:
Step S21, when terminal unit first powers on, formats the built-in SD card of terminal unit.
The present embodiment needs to format built-in SD card after first powering on, and removes the data in built-in SD card, it is to avoid the data in built-in SD card and default resource clash and cause the situation that default resource unloading is failed to occur.
As it is shown on figure 3, the flow chart of the 3rd embodiment that Fig. 3 is preset resource of the present invention storage method.The present embodiment is steps flow chart during factory reset operation, including step:
Step S40, receives factory reset instruction;
Step S50, performs factory reset operation, formats data partition;
Step S60, it is judged that whether include built-in SD card formatting commands in factory reset instruction;If it is, perform step S70;If it is not, then end flow process;
Step S70, starts and presets protection of resources pattern, and format built-in SD card.
Embodiment adds preset resource defencive function, owing to preset resource is stored in built-in SD card, each parameter in need to instructing factory reset detects, it may be judged whether need to carry out built-in SD card format manipulation.If needing to carry out built-in SD card format manipulation, then need to start preset resource protected mode, it is to avoid cause preset resource to be deleted when factory reset because of the built-in SD card of formatting, it is ensured that the safety of preset resource storage.If being made without built-in SD card format manipulation, then without starting preset resource protected mode, terminating flow process, factory reset operation completes, can restart terminal unit.
As shown in Figure 4, Fig. 4 is the flow chart that preset resource of the present invention stores the 4th embodiment of method.The present embodiment is the steps flow chart of protected mode, and on the basis of embodiment illustrated in fig. 3, step S70 specifically includes:
Step S71, is transferred to the preset resource of storage in built-in SD card in data partition;
Step S72, formats built-in SD card;
Step S73, is reduced to the preset resource stored in data partition in built-in SD card, and deletes the preset resource of storage in data partition.
The preset resource defencive function that the present embodiment is increased; mainly use the mode that data partition and built-in SD card format successively; after formatting data partition; the preset resource of storage in built-in SD card is backuped to data partition; and after completing the formatting of built-in SD card; backup preset resource in data partition is recovered to built-in SD card; effectively prevent when factory reset because the built-in SD card of formatting causes preset resource to be deleted; ensure that the safety that preset resource stores, easy realization simple to operate.
As it is shown in figure 5, the structural representation of the first embodiment that Fig. 5 is preset resource of the present invention storage device.A kind of preset resource storage device that the present embodiment is mentioned, it is characterised in that including:
First memory module 10, for being stored in the data partition of terminal unit by preset resource;
Second memory module 20, for when terminal unit first powers on, is transferred to the preset resource stored in data partition in the built-in SD card of terminal unit, deletes the preset resource of storage in data partition.
Terminal unit in the present embodiment can include the equipment such as mobile phone, panel computer.Terminal unit is when dispatching from the factory, built-in SD card and data partition are in idle condition, preset resource is integrated in data partition, space hold and the space system partitioning caused because preset resource is positioned over system partitioning can be avoided saturated, do not interfere with the stability that system is run.Simultaneously as data partition is in idle condition, remaining space is many, can all for storing preset resource, therefore can in the data partition of terminal unit integrated substantial amounts of preset resource, the size of preset resource can not be limited.Owing in built-in SD card, memory space is bigger, after terminal unit first powers on, the preset resource stored in data partition is transferred in built-in SD card, and delete the preset resource of storage in data partition, for data partition Free up Memory, it is to avoid preset resource takies dual space and causes waste of storage space.
As shown in Figure 6, Fig. 6 is the structural representation that preset resource of the present invention stores the second embodiment of device.The present embodiment on the basis of embodiment illustrated in fig. 5, add for factory reset operation with lower module:
Command reception module 30, is used for receiving factory reset instruction;
Formatting module 40, is used for performing factory reset operation, formats data partition;
Judge module 50, is used for judging whether include built-in SD card formatting commands in factory reset instruction;
Protection module 60, when including built-in SD card formatting commands in judging factory reset instruction when judge module 50, starts and presets protection of resources pattern;
Formatting module 40 is additionally operable to, and after protection module 60 starts and presets protection of resources pattern, formats built-in SD card;When not including built-in SD card formatting commands during judge module 50 judges factory reset instruction, terminate the operation of factory reset.
Embodiment adds preset resource defencive function, owing to preset resource is stored in built-in SD card, each parameter in need to instructing factory reset detects, it may be judged whether need to carry out built-in SD card format manipulation.If needing to carry out built-in SD card format manipulation, then need to start preset resource protected mode, it is to avoid cause preset resource to be deleted when factory reset because of the built-in SD card of formatting, it is ensured that the safety of preset resource storage.If being made without built-in SD card format manipulation, then without starting preset resource protected mode, end operation, factory reset operation completes, can restart terminal unit.
In the embodiment of the present invention, protection module 60 specifically for:
The preset resource of storage in built-in SD card is transferred in data partition;
After formatting module 40 formats built-in SD card, the preset resource stored in data partition is reduced in built-in SD card, and deletes the preset resource of storage in data partition.
The preset resource defencive function that the present embodiment is increased; mainly use the mode that data partition and built-in SD card format successively; after formatting data partition; the preset resource of storage in built-in SD card is backuped to data partition; and after completing the formatting of built-in SD card; backup preset resource in data partition is recovered to built-in SD card; effectively prevent when factory reset because the built-in SD card of formatting causes preset resource to be deleted; ensure that the safety that preset resource stores, easy realization simple to operate.
In the embodiment of the present invention, formatting module 40 is additionally operable to, and when terminal unit first powers on, formats the built-in SD card of terminal unit.
The present embodiment needs to format built-in SD card after first powering on, and removes the data in built-in SD card, it is to avoid the data in built-in SD card and default resource clash and cause the situation that default resource unloading is failed to occur.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, the most in like manner it is included in the scope of patent protection of the present invention.
Claims (6)
1. preset resource storage method, it is characterised in that include step:
Preset resource is stored in the data partition of terminal unit, and described preset resource is for recovering configuration file and the application program of described terminal unit during brush machine or factory reset;
When described terminal unit first powers on, the described preset resource of storage in described data partition is transferred in the built-in SD card of described terminal unit;
Delete the described preset resource of storage in described data partition;
Reception factory reset instructs;
Execution factory reset operates, and formats described data partition;
Judge whether described factory reset instruction includes built-in SD card formatting commands;
When including built-in SD card formatting commands during described factory reset instructs:
The described preset resource of storage in described built-in SD card is transferred in described data partition;
Format described built-in SD card;
The described preset resource of storage in described data partition is reduced in described built-in SD card, and deletes the described preset resource of storage in described data partition.
Preset resource the most according to claim 1 storage method, it is characterised in that also include after the described step judging whether to include built-in SD card formatting commands in described factory reset instruction:
When not including built-in SD card formatting commands during described factory reset instructs, terminate factory reset operation.
Preset resource the most according to claim 1 and 2 storage method, it is characterised in that described when terminal unit first powers on, also included before in described data partition, the described preset resource of storage is transferred to the step in built-in SD card:
When described terminal unit first powers on, format the built-in SD card of described terminal unit.
4. a preset resource storage device, it is characterised in that including:
First memory module, for preset resource is stored in the data partition of terminal unit, described preset resource is for recovering configuration file and the application program of described terminal unit during brush machine or factory reset;
Second memory module, for when described terminal unit first powers on, is transferred to the described preset resource of storage in described data partition in the built-in SD card of described terminal unit, deletes the described preset resource of storage in described data partition;
Command reception module, is used for receiving factory reset instruction;
Formatting module, is used for performing factory reset operation, formats described data partition;
Judge module, is used for judging whether include built-in SD card formatting commands in described factory reset instruction;
Protection module, when including built-in SD card formatting commands in judging described factory reset instruction when described judge module:
The described preset resource of storage in described built-in SD card is transferred in described data partition;
After described formatting module formats described built-in SD card, the described preset resource of storage in described data partition is reduced in described built-in SD card, and deletes the described preset resource of storage in described data partition.
Preset resource the most according to claim 4 storage device, it is characterised in that described formatting module is additionally operable to:
When not including built-in SD card formatting commands during described judge module judges described factory reset instruction, terminate factory reset operation.
6. store device according to the preset resource described in claim 4 or 5, it is characterised in that described formatting module is additionally operable to, and when described terminal unit first powers on, formats the built-in SD card of described terminal unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310125276.8A CN103235703B (en) | 2013-04-11 | 2013-04-11 | Preset resource storage method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310125276.8A CN103235703B (en) | 2013-04-11 | 2013-04-11 | Preset resource storage method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103235703A CN103235703A (en) | 2013-08-07 |
CN103235703B true CN103235703B (en) | 2016-08-03 |
Family
ID=48883749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310125276.8A Active CN103235703B (en) | 2013-04-11 | 2013-04-11 | Preset resource storage method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103235703B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603625B (en) * | 2016-11-04 | 2020-03-03 | Oppo广东移动通信有限公司 | Data protection method and device |
CN107656706A (en) * | 2017-10-30 | 2018-02-02 | 努比亚技术有限公司 | A kind of data processing method, terminal and computer-readable storage medium |
CN109408071A (en) * | 2018-09-17 | 2019-03-01 | 深圳市泰衡诺科技有限公司 | The control method and mobile terminal of mobile terminal |
CN109669810B (en) * | 2018-10-18 | 2023-07-14 | 西安中兴新软件有限责任公司 | Information storage method, information storage card recovery method, information storage device, information storage card recovery device, electronic equipment and storage medium |
CN110543369A (en) * | 2019-09-11 | 2019-12-06 | 国美视界(北京)科技有限公司 | Construction method and device of storage space structure of android system and construction structure of storage space structure of android system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101403972A (en) * | 2008-01-17 | 2009-04-08 | 深圳市江波龙电子有限公司 | Memory card guiding method and device of embedded system |
CN102073526A (en) * | 2011-01-21 | 2011-05-25 | 奇智软件(北京)有限公司 | Software transfer installation method and system for mobile terminal |
CN102521031A (en) * | 2011-12-13 | 2012-06-27 | 华为终端有限公司 | Management method of preset application programs of mobile terminal and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070169084A1 (en) * | 2005-12-12 | 2007-07-19 | Frank Davis W | Persistent maintenance of customization data on computing devices |
-
2013
- 2013-04-11 CN CN201310125276.8A patent/CN103235703B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101403972A (en) * | 2008-01-17 | 2009-04-08 | 深圳市江波龙电子有限公司 | Memory card guiding method and device of embedded system |
CN102073526A (en) * | 2011-01-21 | 2011-05-25 | 奇智软件(北京)有限公司 | Software transfer installation method and system for mobile terminal |
CN102521031A (en) * | 2011-12-13 | 2012-06-27 | 华为终端有限公司 | Management method of preset application programs of mobile terminal and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103235703A (en) | 2013-08-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107179909B (en) | Software upgrading method and device and computer readable storage medium | |
CN103235703B (en) | Preset resource storage method and apparatus | |
CN102830984B (en) | Method, chip and the communication terminal that firmware updates | |
CN102243594A (en) | Method for safely and remotely upgrading embedded Linux system software | |
CN111045714B (en) | Firmware updating method and device, earphone and computer readable storage medium | |
CN111078471B (en) | System fault recovery method and device for display device and computer storage medium | |
CN105573864A (en) | Terminal system recovery method and system thereof | |
CN102646043A (en) | Method and device for upgrading mobile terminal software and mobile terminal | |
CN103810004A (en) | Method and device for upgrading embedded system as well as equipment | |
CN108345464A (en) | A kind of the startup method and Android vehicle device of Android system | |
US20170068585A1 (en) | Method and Apparatus for Recovering System Software of Intelligent Terminal | |
CN101662838B (en) | Device, method and USB data card for realizing internet surfing without drive | |
CN103092720A (en) | Core processing device used for vehicular terminal and restoring method for core processing device | |
EP4270299A1 (en) | Operating system upgrade method, electronic device, and storage medium | |
CN110865837A (en) | Method and terminal for upgrading system | |
CN112416411B (en) | Upgrading method and device, equipment end, server and computer readable medium | |
WO2018049798A1 (en) | Method and apparatus for reconstructing cache partition | |
CN104750516A (en) | Upgrading method for terminal equipment operating system | |
WO2013167010A2 (en) | Mobile terminal and startup method therefor | |
CN112486733B (en) | System restoration method, device, terminal and storage medium | |
CN115328563B (en) | System starting method and electronic equipment | |
CN104765631A (en) | Restoration method and device for application program of mobile terminal | |
CN106933604B (en) | System upgrading method and device | |
CN109871334B (en) | Cable modem and method of operation | |
CN103235728B (en) | The installation method of preset third-party application and device in Android terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |