CN103235703A - Method and device for storing preset resource - Google Patents

Method and device for storing preset resource Download PDF

Info

Publication number
CN103235703A
CN103235703A CN2013101252768A CN201310125276A CN103235703A CN 103235703 A CN103235703 A CN 103235703A CN 2013101252768 A CN2013101252768 A CN 2013101252768A CN 201310125276 A CN201310125276 A CN 201310125276A CN 103235703 A CN103235703 A CN 103235703A
Authority
CN
China
Prior art keywords
resource
built
card
data partition
presets
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.)
Granted
Application number
CN2013101252768A
Other languages
Chinese (zh)
Other versions
CN103235703B (en
Inventor
林华坚
郭和平
朱蕊
王海洋
龚源
何平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd, Dongguan Yulong Telecommunication Technology Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201310125276.8A priority Critical patent/CN103235703B/en
Publication of CN103235703A publication Critical patent/CN103235703A/en
Application granted granted Critical
Publication of CN103235703B publication Critical patent/CN103235703B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and device for storing a preset resource. The method for storing the preset resource comprises the steps of: storing the preset resource in a data partition of a terminal device; when the terminal device is started up for the first time, transferring the preset resource stored in the data partition in a built-in SD card of the terminal device; and deleting the preset resource stored in the data partition. The method and device for storing the preset resource can avoid space occupation and space saturation of a system partition caused by storage of the preset resource in the system partition and avoid influence to the stability of the system operation, can integrate a lot of preset resources in the data partition of the terminal device and avoid limitation to the size of the preset resources, and can avoid storage space waste caused by double-space occupation of the preset resources.

Description

Preset resource storage method and device
Technical field
The present invention relates to, specially refer to and preset resource storage method and device.
Background technology
When terminal device brush machine or factory reset, can delete configuration file and application program in the terminal device, and in brush machine or factory reset process, call and preset conventional configuration file and the application program that resource is recovered terminal device, terminal device can normally be used after brush machine or factory reset.If presetting resource loses, generally can't normally carry out the factory reset operation, needing again copy to enter just can normal running.Preset resource for preventing that the factory reset mistiming from deleting, existing scheme normally will preset resources integration in the system partitioning of terminal device.But some terminal equipment configuration is lower, and the storage space of system partitioning is less, and system partitioning is mainly used in the place system file, and remaining space is few, has limited the size that presets resource.Simultaneously, when too much presets resources integration in system partitioning, can cause the system partitioning space saturated, badly influence system's operation stability and the OTA(Over the Air Technology of terminal device, aerial download technology) feasibility of upgrading.
Summary of the invention
Fundamental purpose of the present invention for provide a kind of avoid limiting preset resource size, improve terminal device system operation stability preset resource storage method and device.
The present invention proposes a kind of resource storage method that presets, and comprises step:
The data partition that resource is stored in terminal device will be preset;
When described terminal device is started shooting first, describedly preset the resource unloading to the built-in SD card of described terminal device with what store in the described data partition;
Delete the described resource that presets of storing in the described data partition.
The described step that presets resource of preferably, storing in the described data partition of described deletion also comprises afterwards:
Reception factory reset instruction;
Described data partition is formatd in execution factory reset operation;
Judge and whether include built-in SD card format instruction in the described factory reset instruction;
In described factory reset is instructed, include built-in SD card and format when instructing, start default conservation of resources pattern, and format described built-in SD card.
Preferably, the conservation of resources pattern is preset in described startup, and the step that formats described built-in SD card specifically comprises:
Describedly preset the resource unloading to the described data partition with what store in the described built-in SD card;
Format described built-in SD card;
The described resource that presets of storing in the described data partition is reduced in the described built-in SD card, and deletes the described resource that presets of storing in the described data partition.
Preferably, describedly also comprise after judging the step that whether includes built-in SD card format instruction in the described factory reset instruction:
When not comprising that built-in SD card format is instructed in the described factory reset instruction, finish the flow process of factory reset.
Preferably, described when terminal device is started shooting first, described resource unloading to the step in the built-in SD card that presets of storing in the described data partition is also comprised before:
When described terminal device is started shooting first, format the built-in SD card of described terminal device.
The present invention also proposes a kind of resource memory storage that presets, and comprising:
First memory module is used for presetting the data partition that resource is stored in terminal device;
Second memory module is used for when described terminal device is started shooting first, describedly presets the resource unloading to the built-in SD card of described terminal device with what store in the described data partition, deletes the described resource that presets of storing in the described data partition.
Preferably, the described resource memory storage that presets also comprises:
The command reception module is used for receiving the factory reset instruction;
Formatting module is used for carrying out the factory reset operation, formats described data partition;
Judge module is used for judging whether described factory reset instruction includes built-in SD card format instruction;
Protection module is used for starting the conservation of resources pattern of presetting when described judge module judges that described factory reset instruction includes built-in SD card format instruction;
Described formatting module also is used for, and after described protection module starts default conservation of resources pattern, formats described built-in SD card.
Preferably, described protection module specifically is used for:
Describedly preset the resource unloading to the described data partition with what store in the described built-in SD card;
After described formatting module formats described built-in SD card, the described resource that presets of storing in the described data partition is reduced in the described built-in SD card, and deletes the described resource that presets of storing in the described data partition.
Preferably, described formatting module also is used for:
Judge when described judge module and to finish the operation of factory reset when not comprising built-in SD card format instruction in the described factory reset instruction.
Preferably, described formatting module also is used for, and when described terminal device is started shooting first, formats the built-in SD card of described terminal device.
The present invention utilizes in the terminal device idle data partition storage to preset resource, can avoid that to be positioned over system partitioning saturated to space hold and space that system partitioning causes because presetting resource, can not have influence on the stability that system moves; Can be in the data partition of terminal device integrated a large amount of resource that presets, the size that presets resource can not be restricted; After terminal device is started shooting first, describedly preset the resource unloading to the built-in SD card with what store in the data partition, and delete the described resource that presets of storing in the described data partition, and be the data partition Free up Memory, avoid presetting the resource occupation dual space and cause waste of storage space.
Description of drawings
Fig. 1 presets the process flow diagram of first embodiment of resource storage method for the present invention.
Fig. 2 presets the process flow diagram of second embodiment of resource storage method for the present invention;
Fig. 3 presets the process flow diagram of the 3rd embodiment of resource storage method for the present invention;
Fig. 4 presets the process flow diagram of the 4th embodiment of resource storage method for the present invention;
Fig. 5 presets the structural representation of first embodiment of resource memory storage for the present invention;
Fig. 6 presets the structural representation of second embodiment of resource memory storage for the present invention.
The realization of the object of the invention, functional characteristics and advantage will be in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
As shown in Figure 1, Fig. 1 presets the process flow diagram of first embodiment of resource storage method for the present invention.Present embodiment is mentioned presets resource storage method, comprises step:
Step S10 will preset the data partition that resource is stored in terminal device;
Terminal device in the present embodiment can comprise equipment such as mobile phone, panel computer.Terminal device is when dispatching from the factory, built-in SD card and data partition are in idle condition, to preset resources integration in data partition, can avoid that to be positioned over system partitioning saturated to space hold and space that system partitioning causes because presetting resource, and can not have influence on the stability of system's operation.Simultaneously, because data partition is in idle condition, remaining space is many, can all be used for storage to preset resource, therefore can be in the data partition of terminal device integrated a large amount of resources that preset, and the size that presets resource can not be restricted.
Step S20 when terminal device is started shooting first, presets the resource unloading to the built-in SD card of terminal device with what store in the data partition;
Step S30 deletes the resource that presets of storing in the data partition.
Because storage space is bigger in the built-in SD card, after terminal device is started shooting first, preset the resource unloading to built-in SD card with what store in the data partition, and store in the deletion data partition preset resource, be the data partition Free up Memory, avoid presetting the resource occupation dual space and cause waste of storage space.
As shown in Figure 2, Fig. 2 presets the process flow diagram of second embodiment of resource storage method for the present invention.Present embodiment also comprised before step S20 based on embodiment illustrated in fig. 1:
Step S21, when terminal device is started shooting first, the built-in SD card of format terminal device.
Present embodiment needs the data in the built-in SD card are removed in built-in SD card format after start first, avoids data and default resource in the built-in SD card to clash and cause the situation of presetting resource unloading failure to take place.
As shown in Figure 3, Fig. 3 presets the process flow diagram of the 3rd embodiment of resource storage method for the present invention.Steps flow chart when present embodiment is the factory reset operation comprises step:
Step S40 receives the factory reset instruction;
Step S50 carries out the factory reset operation, the formatted data subregion;
Step S60 judges whether include built-in SD card format instruction in the factory reset instruction; If, execution in step S70 then; If not, process ends then;
Step S70 starts default conservation of resources pattern, and formats built-in SD card.
Present embodiment has increased and has preset the conservation of resources function, is stored in the built-in SD card owing to preset resource, needs each parameter in the factory reset instruction is detected, and judges whether to carry out built-in SD card format manipulation.Carry out built-in SD card format manipulation if desired, then need start and preset the conservation of resources pattern, avoid when factory reset that to cause presetting resource deleted because formaing built-in SD card, guaranteed to preset the security of resource storage.If do not need to carry out built-in SD card format manipulation, then need not to start and preset the conservation of resources pattern, process ends, the factory reset operation is finished, can restart terminal device.
As shown in Figure 4, Fig. 4 presets the process flow diagram of the 4th embodiment of resource storage method for the present invention.Present embodiment is the steps flow chart of protected mode, and on basis embodiment illustrated in fig. 3, step S70 specifically comprises:
Step S71 presets the resource unloading to data partition with what store in the built-in SD card;
Step S72 formats built-in SD card;
Step S73 is reduced to the resource that presets of storing in the data partition in the built-in SD card, and deletes the resource that presets of storing in the data partition.
Present embodiment increases presets the conservation of resources function; it mainly is the mode that adopts data partition and built-in SD card to format successively; after the formatted data subregion; the resource that presets of storing in the built-in SD card is backuped to data partition; and after finishing built-in SD card format; backup is preset resource recovery to the built-in SD card in data partition; avoided effectively when factory reset that to cause presetting resource deleted because formaing built-in SD card; guaranteed to preset the security of resource storage, easy realization simple to operate.
As shown in Figure 5, Fig. 5 presets the structural representation of first embodiment of resource memory storage for the present invention.A kind of resource memory storage that presets that present embodiment is mentioned is characterized in that, comprising:
First memory module 10 is used for presetting the data partition that resource is stored in terminal device;
Second memory module 20 is used for presetting the resource unloading to the built-in SD card of terminal device with what store in the data partition when terminal device is started shooting first, deletes the resource that presets of storing in the data partition.
Terminal device in the present embodiment can comprise equipment such as mobile phone, panel computer.Terminal device is when dispatching from the factory, built-in SD card and data partition are in idle condition, to preset resources integration in data partition, can avoid that to be positioned over system partitioning saturated to space hold and space that system partitioning causes because presetting resource, and can not have influence on the stability of system's operation.Simultaneously, because data partition is in idle condition, remaining space is many, can all be used for storage to preset resource, therefore can be in the data partition of terminal device integrated a large amount of resources that preset, and the size that presets resource can not be restricted.Because storage space is bigger in the built-in SD card, after terminal device is started shooting first, preset the resource unloading to built-in SD card with what store in the data partition, and store in the deletion data partition preset resource, be the data partition Free up Memory, avoid presetting the resource occupation dual space and cause waste of storage space.
As shown in Figure 6, Fig. 6 presets the structural representation of second embodiment of resource memory storage for the present invention.Present embodiment on the basis embodiment illustrated in fig. 5, increased be used for the factory reset operation with lower module:
Command reception module 30 is used for receiving the factory reset instruction;
Formatting module 40 is used for carrying out the factory reset operation, the formatted data subregion;
Judge module 50 is used for judging whether the factory reset instruction includes built-in SD card format instruction;
Protection module 60 is used for starting the conservation of resources pattern of presetting when judge module 50 judges that the factory resets instruction includes built-in SD card format instruction;
Formatting module 40 also is used for, and after protection module 60 starts default conservation of resources pattern, formats built-in SD card; When not comprising that built-in SD card format is instructed in the judge module 50 judgement factory reset instructions, finish the operation of factory reset.
Present embodiment has increased and has preset the conservation of resources function, is stored in the built-in SD card owing to preset resource, needs each parameter in the factory reset instruction is detected, and judges whether to carry out built-in SD card format manipulation.Carry out built-in SD card format manipulation if desired, then need start and preset the conservation of resources pattern, avoid when factory reset that to cause presetting resource deleted because formaing built-in SD card, guaranteed to preset the security of resource storage.If do not need to carry out built-in SD card format manipulation, then need not to start and preset the conservation of resources pattern, end operation, the factory reset operation is finished, can restart terminal device.
In the embodiment of the invention, protection module 60 specifically is used for:
Preset the resource unloading to data partition with what store in the built-in SD card;
Behind the built-in SD card of formatting module 40 formats, the resource that presets of storing in the data partition is reduced in the built-in SD card, and deletes the resource that presets of storing in the data partition.
Present embodiment increases presets the conservation of resources function; it mainly is the mode that adopts data partition and built-in SD card to format successively; after the formatted data subregion; the resource that presets of storing in the built-in SD card is backuped to data partition; and after finishing built-in SD card format; backup is preset resource recovery to the built-in SD card in data partition; avoided effectively when factory reset that to cause presetting resource deleted because formaing built-in SD card; guaranteed to preset the security of resource storage, easy realization simple to operate.
In the embodiment of the invention, formatting module 40 also is used for, when terminal device is started shooting first, and the built-in SD card of format terminal device.
Present embodiment needs the data in the built-in SD card are removed in built-in SD card format after start first, avoids data and default resource in the built-in SD card to clash and cause the situation of presetting resource unloading failure to take place.
The above only is the preferred embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (10)

1. one kind is preset resource storage method, it is characterized in that, comprises step:
The data partition that resource is stored in terminal device will be preset;
When described terminal device is started shooting first, describedly preset the resource unloading to the built-in SD card of described terminal device with what store in the described data partition;
Delete the described resource that presets of storing in the described data partition.
2. the resource storage method that presets according to claim 1 is characterized in that, the described step that presets resource of storing in the described data partition of described deletion also comprises afterwards:
Reception factory reset instruction;
Described data partition is formatd in execution factory reset operation;
Judge and whether include built-in SD card format instruction in the described factory reset instruction;
In described factory reset is instructed, include built-in SD card and format when instructing, start default conservation of resources pattern, and format described built-in SD card.
3. the resource storage method that presets according to claim 2 is characterized in that, the conservation of resources pattern is preset in described startup, and the step that formats described built-in SD card specifically comprises:
Describedly preset the resource unloading to the described data partition with what store in the described built-in SD card;
Format described built-in SD card;
The described resource that presets of storing in the described data partition is reduced in the described built-in SD card, and deletes the described resource that presets of storing in the described data partition.
4. the resource storage method that presets according to claim 2 is characterized in that, describedly also comprises after judging the step that whether includes built-in SD card format instruction in the described factory reset instruction:
When not comprising that built-in SD card format is instructed in the described factory reset instruction, finish the factory reset operation.
5. according to claim 3 or the 4 described resource storage methods that preset, it is characterized in that, described when terminal device is started shooting first, described resource unloading to the step in the built-in SD card that presets of storing in the described data partition is also comprised before:
When described terminal device is started shooting first, format the built-in SD card of described terminal device.
6. one kind is preset the resource memory storage, it is characterized in that, comprising:
First memory module is used for presetting the data partition that resource is stored in terminal device;
Second memory module is used for when described terminal device is started shooting first, describedly presets the resource unloading to the built-in SD card of described terminal device with what store in the described data partition, deletes the described resource that presets of storing in the described data partition.
7. the resource memory storage that presets according to claim 6 is characterized in that, also comprises:
The command reception module is used for receiving the factory reset instruction;
Formatting module is used for carrying out the factory reset operation, formats described data partition;
Judge module is used for judging whether described factory reset instruction includes built-in SD card format instruction;
Protection module is used for starting the conservation of resources pattern of presetting when described judge module judges that described factory reset instruction includes built-in SD card format instruction;
Described formatting module also is used for, and after described protection module starts default conservation of resources pattern, formats described built-in SD card.
8. the resource memory storage that presets according to claim 7 is characterized in that described protection module specifically is used for:
Describedly preset the resource unloading to the described data partition with what store in the described built-in SD card;
After described formatting module formats described built-in SD card, the described resource that presets of storing in the described data partition is reduced in the described built-in SD card, and deletes the described resource that presets of storing in the described data partition.
9. the resource memory storage that presets according to claim 8 is characterized in that described formatting module also is used for:
Judge when described judge module and to finish the factory reset operation when not comprising built-in SD card format instruction in the described factory reset instruction.
10. according to Claim 8 or the 9 described resource memory storages that preset, it is characterized in that described formatting module also is used for, when described terminal device is started shooting first, format the built-in SD card of described terminal device.
CN201310125276.8A 2013-04-11 2013-04-11 Preset resource storage method and apparatus Active CN103235703B (en)

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 true CN103235703A (en) 2013-08-07
CN103235703B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603625A (en) * 2016-11-04 2017-04-26 广东欧珀移动通信有限公司 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
CN109669810A (en) * 2018-10-18 2019-04-23 西安中兴新软件有限责任公司 Information storage, storage card restoration methods and 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 (4)

* Cited by examiner, † Cited by third party
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
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603625A (en) * 2016-11-04 2017-04-26 广东欧珀移动通信有限公司 Data protection method and device
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
CN109669810A (en) * 2018-10-18 2019-04-23 西安中兴新软件有限责任公司 Information storage, storage card restoration methods and device, electronic equipment and storage medium
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

Also Published As

Publication number Publication date
CN103235703B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN103235703A (en) Method and device for storing preset resource
CN102646043B (en) Mobile terminal software upgrading method, update device and mobile terminal
CN105573864A (en) Terminal system recovery method and system thereof
CN111796856B (en) Differential upgrading method and device, storage medium and computer equipment
CN102243594A (en) Method for safely and remotely upgrading embedded Linux system software
CN111078471B (en) System fault recovery method and device for display device and computer storage medium
CN108833542B (en) Upgrading method of TWS earphone and TWS earphone
CN102214113A (en) Method, device and terminal for upgrading operating system
CN103559055A (en) Activity starting method and device applied to Android platform
CN103092720B (en) For kernel processing device and the restoration methods of vehicle-mounted terminal
CN112162773B (en) Differential upgrading method and device, storage medium and terminal
CN102799452A (en) Method and device for upgrading system software
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
CN114661322B (en) Upgrade method of operating system, electronic equipment and storage medium
CN108037932B (en) SPI-NAND configuration file acquisition method and device
CN106708547A (en) Service plug-in management method and system
CN103984571A (en) Method and device for uprating operating system partition
CN104750516A (en) Upgrading method for terminal equipment operating system
CN112416411A (en) Upgrading method and device, equipment terminal, server and computer readable medium
CN104102498A (en) Mobile terminal and booting method thereof
CN106933604B (en) System upgrading method and device
CN104754410A (en) Safety method and system for cable modulating and demodulating device
CN103235728B (en) The installation method of preset third-party application and device in Android terminal
CN115951920A (en) Mobile equipment upgrading method and device, storage unit and mobile equipment
CN105446767A (en) Method and system for upgrading terminal software in production test of rear installation of intelligent platform

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