CN109669810A - Information storage, storage card restoration methods and device, electronic equipment and storage medium - Google Patents

Information storage, storage card restoration methods and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109669810A
CN109669810A CN201811217262.8A CN201811217262A CN109669810A CN 109669810 A CN109669810 A CN 109669810A CN 201811217262 A CN201811217262 A CN 201811217262A CN 109669810 A CN109669810 A CN 109669810A
Authority
CN
China
Prior art keywords
electronic equipment
storage card
data
recovery data
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.)
Granted
Application number
CN201811217262.8A
Other languages
Chinese (zh)
Other versions
CN109669810B (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.)
Xian Zhongxing New Software Co Ltd
Original Assignee
Xian Zhongxing New Software 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 Xian Zhongxing New Software Co Ltd filed Critical Xian Zhongxing New Software Co Ltd
Priority to CN201811217262.8A priority Critical patent/CN109669810B/en
Publication of CN109669810A publication Critical patent/CN109669810A/en
Priority to PCT/CN2019/111711 priority patent/WO2020078430A1/en
Application granted granted Critical
Publication of CN109669810B publication Critical patent/CN109669810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1461Backup scheduling policy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques

Abstract

The present invention provides a kind of storage of information, storage card restoration methods and device, electronic equipment and storage mediums.In the information storage means, the recovery data being installed in electronic equipment as the storage card of the internal storage device of the electronic equipment are determined;The recovery data are stored in the predetermined partition in the device memory of the electronic equipment, wherein, the recovery data stored on the predetermined partition are during the electronic equipment factory reset or the electronic equipment is received and is still retained when deleting the request for restoring data.Through the invention, the recovery data needed for running well when solving storage card as internal storage device are easy at least one of the problem of being deleted, can not effectively restoring storage card.

Description

Information storage, storage card restoration methods and device, electronic equipment and storage medium
Technical field
The present invention relates to, but not limited to the communications field, in particular to a kind of storage of information, storage card restoration methods and Device, electronic equipment and storage medium.
Background technique
In order to extend the memory space of electronic equipment, the storage card being mountable in electronic equipment comes into being, and passes through It is inserted into storage card into electronic equipment, more memory spaces can be obtained.There are many kinds of storage cards, for example, for mobile phone, Camera etc. is installed on secure digital card in electronic equipment (Secure Digital Memory Card, referred to as SD card), It is a kind of memory card for storing data.When storage card is installed in electronic equipment, storage card can be with for purposes It is arranged to following two purposes:
1, it is stored as portable device, this is the scheme that traditional storage card is stored as device extension, can be used for depositing Storage includes photo, video and other media files, with pervious edition compatibility.
2, as internal storage device, this is a kind of function of introducing recently, when storage card is as current electronic device When internal storage device, it can substitute, expand the electronic equipment itself memory space (in this application, electronic equipment from The intrinsic memory space of body is known as device memory), only store the content in current electronic device.Equipment internal storage space It is from physical storage device (embedded multi-media card (Embedded for storing the media files such as application and photo Multimedia Card, referred to as EMMC) or Common Flash Memory storage (Universal Flash Storage, referred to as UFS)) On mark off come a part of dynamic space.If setting storage card to the internal storage device of electronic equipment, can not only use In media files such as storage photos, moreover it is possible to move the application stored in the device memory of original electronic equipment and data It is dynamic.Original mounted application is neither influenced in this way, and can expand the memory space of electronic equipment.
But storage card as the internal storage device of electronic equipment still has a problem, storage card conduct at present The internal storage device of electronic equipment runs well, especially when storage card is pulled out and is inserted into, or in electronic equipment Factory reset storage card for the first time carry when, generally require certain data (referred to herein as restore data) as assist, but This recovery data be easier as user data it is deleted, restore data delete after storage card just can not just frequently as The internal storage device of electronic equipment, and data therein can not also be read completely.
For example, for the sake of security, being moved on on storage card when internal storage device of the storage card as electronic equipment File is encrypted.However, the key data for decryption belongs to a kind of user data, and user data is in many cases Be easy to it is deleted, if key data be deleted, the data on storage card will be unable to be decrypted, and cause on storage card Data can not be read.For another example storage card needs to complete carry as internal storage device, if but carry information deleted It removes, is just unable to complete the normal carry of storage card, also resulting in the data on storage card can not be read.
Summary of the invention
The embodiment of the invention provides a kind of storage of information, storage card restoration methods and device, electronic equipment and storages to be situated between Matter, the recovery data needed for running well when at least solving storage card in the related technology as internal storage device are easy to be deleted At least one of the problem of removing, can not effectively restoring storage card.
According to one embodiment of present invention, a kind of information storage means are provided, comprising: determination is installed on electronic equipment The recovery data of the storage card of the middle internal storage device as the electronic equipment;The recovery data are stored in the electricity Predetermined partition in the device memory of sub- equipment, wherein the recovery data stored on the predetermined partition are described During electronic equipment factory reset or the electronic equipment receive delete it is described restore data request when still by Retain.
According to one embodiment of present invention, a kind of storage card restoration methods are provided, comprising: detecting electronic equipment In storage card is installed in the case where, from the predetermined partition in the device memory of the electronic equipment read be used as described in The recovery data of the predetermined storage card of the internal storage device of electronic equipment, wherein the predetermined partition is set in the electronics During standby factory reset or the electronic equipment receives when deleting the request for restoring data, the institute stored It states and restores the still retained subregion of data;Restore the storage card as described in the electronic equipment based on the recovery data Internal storage device.
According to one embodiment of present invention, a kind of information-storing device is provided, comprising: determining module, for determining It is installed on the recovery data in electronic equipment as the storage card of the internal storage device of the electronic equipment;Memory module is used Predetermined partition in the device memory that the recovery data are stored in the electronic equipment, wherein described predetermined point The recovery data stored in area are during the electronic equipment factory reset or the electronic equipment receives It is still retained when deleting the request for restoring data.
According to one embodiment of present invention, a kind of information-storing device is provided, comprising: read module, for examining It measures in the case where storage card is installed in electronic equipment, from the predetermined partition in the device memory of the electronic equipment Read the recovery data of the predetermined storage card of the internal storage device as the electronic equipment, wherein the predetermined partition is During the electronic equipment factory reset or the electronic equipment receives and deletes the request for restoring data When, the still retained subregion of the recovery data stored;Recovery module is deposited described in recovery data recovery for being based on The internal storage device of the card storage as the electronic equipment.
According to one embodiment of present invention, a kind of storage medium is additionally provided, calculating is stored in the storage medium Machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to one embodiment of present invention, a kind of electronic device, including memory and processor are additionally provided, it is described to deposit Computer program is stored in reservoir, the processor is arranged to run the computer program to execute any of the above-described side Step in method embodiment.
Section Example through the invention, due to depositing the inside for being installed in electronic equipment as the electronic equipment The recovery data of storage card for storing up equipment are stored in a predetermined partition, even and if the recovery data on the predetermined partition in electronics User data in equipment be deleted (for example, electronic equipment factory reset or Client-initiated user data all or Part delete) in the case where can also be retained, will not be deleted, thereby may be ensured that when needing to restore storage card, electronics Equipment can find recovery data, in order to which electronic equipment restores storage card as in the electronic equipment according to data are restored Portion stores equipment.With this solution, it can solve when storage card is as internal storage device in the related technology needed for normal operation Recovery data be easy to be deleted, at least one of the problem of can not effectively restoring storage card, reached be retained as it is described The purpose of the recovery data of the storage card of the internal storage device of electronic equipment, and can guarantee the correct recovery of storage card in turn And reading data, prevent storage card from becoming dead card, data thereon become invalid data.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 (a) and 1 (b) is that storage card 12 according to an embodiment of the present invention is installed in electronic equipment 10 to extend electricity The schematic diagram of the memory space of sub- equipment 10;
Fig. 2 is the signal for the internal storage device that storage card 12 according to an embodiment of the present invention is arranged to electronic equipment 10 Figure;
Fig. 3 is the flow chart of information storage means according to an embodiment of the present invention;
Fig. 4 is the first specific flow chart of information storage means according to an embodiment of the present invention;
Fig. 5 is the second specific flow chart of information storage means according to an embodiment of the present invention;
Fig. 6 is the third specific flow chart of information storage means according to an embodiment of the present invention;
Fig. 7 is the 4th specific flow chart of information storage means according to an embodiment of the present invention;
Fig. 8 is the 5th specific flow chart of information storage means according to an embodiment of the present invention;
Fig. 9 is the structural block diagram of information-storing device according to an embodiment of the present invention;
Figure 10 is the flow chart of storage card restoration methods according to an embodiment of the present invention;
Figure 11 is the first specific flow chart of storage card restoration methods according to an embodiment of the present invention;
Figure 12 is the second specific flow chart of storage card restoration methods according to an embodiment of the present invention;
Figure 13 is the structural block diagram of storage card recovery device according to an embodiment of the present invention;
Figure 14 is the flow chart of the method for recovery data needed for reservation storage card according to an embodiment of the present invention;And
Figure 15 is the process of the method according to an embodiment of the present invention for restoring storage card in factory reset and after restarting Figure.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
The exemplary scene that storage card is applied in the electronic device is described below in conjunction with attached drawing, and is stored in the related technology The problems of processing method of card.
Fig. 1 (a) and 1 (b) is that storage card 12 according to an embodiment of the present invention is installed in electronic equipment 10 to extend electricity The schematic diagram of the memory space of sub- equipment 10.In the figure, it is mobile phone with electronic equipment 10, for storage card 12 is SD card, shows Two different exemplary mounting means that storage card 12 is mounted in electronic equipment 10 are gone out.
Fig. 2 is the signal for the internal storage device that storage card 12 according to an embodiment of the present invention is arranged to electronic equipment 10 Figure.Fig. 2 is mobile phone with electronic equipment 10, and storage card 12 is for SD card, showing can select in storage card 12 according to user It is provided as the internal storage device of electronic equipment 10, and by the media file of the device memory of original electronic equipment 10 It is moved on storage card 12, is then unloaded inside original equipment for storing the catalogue of media file.In order to guarantee the peace of data Entirely, the file moved on on storage card 12 be it is encrypted, with realize and equipment on userdata subregion be compatible with, not only may be used With the media data of mobile subscriber to embedded memory card 12, also can mobile subscriber's installation application software and its data to storage card 12, and the use of application software is not influenced.Because the data on storage card 12 are encrypted, if this storage card 12 pull out, and are inserted into that another electronic equipment (for the sake of difference, being denoted as electronic equipment 16) is inner, 12 the inside of this storage card it is interior Appearance can not be read.The storage card 12 and electronic equipment 10 are closely tied to by the safety for increasing data in this way Together.
Storage card 12 is used as internal storage device, when user needs to do factory reset to equipment due to various reasons When, the data on userdata are wiped, and the data on userdata include recovery data needed for the storage card 12, for example, Including encrypting the code key of storage card 12 and as the flag bit of internal storage device carry, and the data in storage card 12 will not be by Erasing.Similarly, user may also voluntarily delete the recovery data because of the reasons such as accidentally deleting, or voluntarily remove all users Data.Restoring data in these cases can be deleted, and still, turn back on after factory reset, or accidentally delete letter After breath, deletion user data, the possible default storage card 12 of system carries out carry as portable device, or may also will deposit Card storage 12 carries out carry as internal storage device, but regardless of situation, loses because code key is due to restoring the deletion of data It loses, so the data on storage card 12 can not decrypt, therefore normal carry and data can not be read, i.e., these are counted for users According to no longer significant.This storage card 12 is continued to use, can only be reformatted, data above is wiped free of.Even if The data on embedded memory card 12 are moved back into equipment storage inside (that is, device memory is arrived in storage before factory reset In), it can be also wiped free of in factory reset.And often this part of media file is that user wishes to retain.If it is desired to protecting The data in card storage 12 are retained, current method can only back up number using other storage mediums before factory reset According to.If data volume is very big, the time very can be expended, it is very inconvenient.
For this problem, the embodiment of the invention provides information storage, storage card restoration methods and device, electronic equipment and Storage medium is described in detail below by way of exemplary embodiment.
The information storage means under scene shown in FIG. 1 can be run on the embodiment of the invention provides one kind.Fig. 3 is root According to the flow chart of the information storage means of the embodiment of the present invention, as shown in figure 3, the process includes the following steps:
Step S302 determines the storage that the internal storage device of the electronic equipment 10 is installed as in electronic equipment 10 The recovery data of card 12;
Step S304, the predetermined point recovery data are stored in the device memory of the electronic equipment 10 Area, wherein the recovery data stored on the predetermined partition are during 10 factory reset of electronic equipment Or the electronic equipment 10 is received and is still retained when deleting the request for restoring data.In practical application, the electronics is set The standby 10 deletion requests for restoring data received can include but is not limited to following one: user data removes request, User data selectively removing requests (recovery data packets include in the user data to be deleted) etc..
Restore to dispatch from the factory in the electronic equipment 10 for the recovery data for how guaranteeing to store on the predetermined partition During setting or the electronic equipment 10 receive delete it is described restore data request when still be retained, can there are many Implementation.For example, in order to guarantee that the recovery data stored on the predetermined partition are restored in the electronic equipment 10 It is still retained during default setting, can enable the predetermined partition is in the device memory independently of user data Subregion and the subregion completely retained during 10 factory reset of electronic equipment.For another example in order to guarantee The recovery data stored on the predetermined partition receive in the electronic equipment 10 and delete the request for restoring data When still be retained, the predetermined partition can be enabled to have characteristics that and received to the data stored on the predetermined partition In the case where the request deleted, whether the data that need to judge that request is deleted include the recovery data, in the feelings for being Under condition, the recovery data are still retained.
In practical applications, the step that the recovery data are stored in the predetermined partition can be carried out by machine in due course Suddenly, for example, can be when the storage card 12 be arranged to the internal storage device of the electronic equipment 10, it will be described extensive Complex data is stored in the predetermined partition, in this way, either user accidentally deletes or initiate factory reset, can guarantee Restore data not to be deleted.As another embodiment, it can also receive 10 factory reset of electronic equipment Request when the recovery data are stored in the predetermined partition.Therefore, as exemplary embodiment of the present invention, referring to figure First specific flow chart of 4 information storage means according to an embodiment of the present invention, can in following opportunity S402, S404, One of S406 triggering determines the storage being installed in the electronic equipment 10 as the internal storage device of the electronic equipment 10 The recovery data of card 12, and the recovery data are stored in pre- in the device memory of the electronic equipment 10 The step of determining subregion: S402 is received the request of 10 factory reset of electronic equipment;S404 receives first and deposits Card storage setting request, wherein the storage card 12 is initialized as the electricity for requesting by the first storage card setting request The internal storage device of sub- equipment 10 is (that is, for requesting the storage card being newly inserted into one to be set as the electronics The internal storage device of equipment 10);S406 receives the setting request of the second storage card, wherein second storage card is set Request is set for requesting to set institute for the storage card 12 currently as the portable memory apparatus of the electronic equipment 10 State internal storage device.
It in one exemplary embodiment, should after receiving the request of 10 factory reset of electronic equipment Method can also include: in response to deleting the request of 10 factory reset of electronic equipment in the electronic equipment 10 All customer data, and retain the data in the storage card 12.By using the program, it is ensured that in storage card 12 Data are not lost, also, recovery number when internal storage device of the guarantee storage card 12 of combination above as electronic equipment 10 According to the scheme that do not deleted easily, it is ensured that the data in storage card 12 are not lost not only, and can normally be read, and are realized Data are not also deleted in factory reset and can normally read on storage card, are not necessarily to manual backup, are user It is convenient to provide.
In one exemplary embodiment, it is receiving for requesting the storage card 12 being initialized as the electronic equipment After the first storage card setting request of 10 internal storage device, this method can also include: in response to described first The storage card 12, is initialized as the internal storage device of the electronic equipment 10 by storage card setting request.
In one exemplary embodiment, it is receiving for requesting the portable currently as the electronic equipment 10 The storage card 12 of storage equipment is set as after the second storage card setting request of the internal storage device, and this method may be used also To include: to be arranged to request in response to second storage card, by the storage card 12 from the portable of the electronic equipment 10 Store up the internal storage device that equipment changing is the electronic equipment 10.
Processing when for the ease of the recovery of follow-up storage card 12, can add an instruction information, be used to indicate predetermined point Whether recovery data are stored in area.Therefore, the embodiment of property as an example, referring to the according to embodiments of the present invention of Fig. 5 The second specific flow chart of information storage means can be with the following steps are included: step S502 on the basis of shown in Fig. 3, will Instruction information is stored in the predetermined partition, wherein the instruction information stored on the predetermined partition is set in the electronics Standby 10 are still retained when receiving the request deleted to the instruction information, and the instruction information is for marking described make a reservation for The recovery data are stored on subregion.
In order to guarantee safety, restoring data can be encrypted.As exemplary embodiment, restore the cipher mode of data Can there are many.For example, with reference to the third specific flow chart of the information storage means according to an embodiment of the present invention of Fig. 6, in Fig. 3 It, can be with the following steps are included: step S602, before the recovery data are stored in the predetermined partition on the basis of shown The recovery data are encrypted (for the first key information for decrypting the recovery data, in the electronic equipment In the case that 10 receive the request deleted the user data for including the first key information, the first key letter Breath is still retained).As a kind of arranged side by side or superposition scheme, referring to the information storage means according to an embodiment of the present invention of Fig. 7 The 4th specific flow chart increase step S702, determine the electronic equipment 10 as shown in fig. 7, on the basis of shown in Fig. 3 Attribute is the predetermined partition of encrypted partition in device memory, that is to say, that needs to guarantee the predetermined partition for encryption point Area.For example, can choose the subregion of encryption itself as predetermined partition to be saved in the safety of the data of predetermined partition Data are saved, at this moment, the data for being saved in predetermined partition are by default encryption;Or the predetermined partition of selection itself will not The data of preservation are encrypted, first data to be saved is encrypted at this time, are then saved in predetermined partition again.
In the use process of storage card 12, user, which can choose, changes its purposes, for example, being arranged by the second storage card Request sets the storage card 12 as the portable memory apparatus of electronic equipment 10 to the internal storage device of electronic equipment, or Person sets electronics for the storage card 12 as the internal storage device of electronic equipment 10 by the setting request of third storage card and sets Standby portable memory apparatus.In order to guarantee that the data in storage card are not lost, in one exemplary embodiment, use is being received Currently the inside will be set as the storage card 12 of the portable memory apparatus of the electronic equipment 10 in request to deposit In the case where the second storage card setting request for storing up equipment, retain the data stored in the storage card 12;Alternatively, receiving For requesting to set portable storage for the storage card 12 currently as the internal storage device of the electronic equipment 10 In the case where the third storage card setting request of equipment, retain the data stored in the storage card 12, and by the storage card 12 are changed to the portable memory apparatus of the electronic equipment 10 from the internal storage device of the electronic equipment 10.
When the storage card 12 of the internal storage device as electronic equipment 10 is arranged to portable memory apparatus the case where Under, it should allow to delete the recovery data of storage card 12, because the recovery data are for storage card 12 as storage inside Used in equipment.Therefore, as exemplary embodiment, referring to the information storage means according to an embodiment of the present invention of Fig. 8 The 5th specific flow chart can be the following steps are included: step S802, to receive for request will on the basis of shown in Fig. 3 Currently the storage card 12 as the internal storage device of the electronic equipment 10 is set as portable memory apparatus The setting request of third storage card;Step S804 is arranged in response to the third storage card and requests, sets the storage card 12 to The portable memory apparatus, and delete the recovery data stored on the predetermined partition.
In practical applications, the recovery data may include to the internal storage device as the electronic equipment 10 The storage card 12 is decrypted and/or the data of carry.For example, the recovery data packets include at least one of: for solving Second key information of the data in the close storage card 12, the globally unique identifier (Global of the storage card 12 Unique Identifier, referred to as Guid).Wherein, storage card 12 is used as internal storage device, all can after formatting every time Have a unique Guid, format such as: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, wherein each x is 0-9 Or 4 hexadecimal numbers within the scope of a-f.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that an electronic equipment 10 (can be mobile phone, phase Machine, Pad or computer etc.) execute method described in each embodiment of the present invention.
Corresponding to information storage means provided in the embodiment of the present invention, the embodiment of the invention also provides a kind of information Storage device, the device is for realizing above-described embodiment and preferred embodiment, and the descriptions that have already been made will not be repeated.Such as with Used in lower, the combination of the software and/or hardware of predetermined function is may be implemented in term " module ".Although following embodiment is retouched The device stated preferably realized with software, but the combined realization of hardware or software and hardware be also may and by structure Think.
Fig. 9 is the structural block diagram of information-storing device according to an embodiment of the present invention, as shown in figure 9, the device includes true Cover half block 90 and memory module 92.The determining module 90 is installed as the electronic equipment for determining in electronic equipment 10 The recovery data of the storage card 12 of 10 internal storage device.The memory module 92 is used to the recovery data being stored in institute State the predetermined partition in the device memory of electronic equipment 10, wherein the recovery data stored on the predetermined partition During 10 factory reset of electronic equipment or the electronic equipment 10 receives and deletes the recovery data It is still retained when request.
As shown in figure 9, the device can also include receiving module 94, for receiving at least one following information: will be described The request of 10 factory reset of electronic equipment;First storage card setting request, wherein the first storage card setting request is used The storage card 12 is initialized as the internal storage device of the electronic equipment 10 (that is, for asking in request The storage card being newly inserted into one is asked to be set as the internal storage device of the electronic equipment 10);The setting of second storage card is asked It asks, wherein the second storage card setting request is for requesting to set the portable storage currently as the electronic equipment 10 The standby storage card 12 is set as the internal storage device.The determining module 90 and memory module 92 are in the reception mould Block 94 is triggered in the case where receiving one of information above.
The memory module 92 is also used to indicate that information is stored in the predetermined partition, wherein on the predetermined partition Storage the instruction information the electronic equipment 10 receive to it is described instruction information deleted request when still protected It stays, the instruction information is stored with the recovery data for marking on the predetermined partition.
As shown in figure 9, the device can also include encrypting module 96, for the recovery data are stored in it is described pre- The recovery data are encrypted (for the first key information for decrypting the recovery data, in institute before determining subregion State electronic equipment 10 receive to include the first key information the request deleted of user data in the case where, it is described First key information is still retained);Alternatively, being used to determine in the device memory of the electronic equipment 10 that attribute to be encryption point The predetermined partition in area, and make the memory module 92 by recovery data storage into the predetermined partition.
The receiving module 94 is also used to receive for requesting to deposit the inside currently as the electronic equipment 10 The storage card 12 of storage equipment is set as the third storage card setting request of portable memory apparatus, as shown in figure 9, the device It can also include removing module 98, be requested for being arranged in response to the third storage card, set institute for the storage card 12 Portable memory apparatus is stated, and deletes the recovery data stored on the predetermined partition.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
The embodiment of the invention also provides a kind of storage medium, computer program is stored in the storage medium, wherein should Computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in embodiments of the present invention, above-mentioned storage medium can be set to storage for executing following steps Computer program:
Step S302 determines the storage that the internal storage device of the electronic equipment 10 is installed as in electronic equipment 10 The recovery data of card 12;
Step S304, the predetermined point recovery data are stored in the device memory of the electronic equipment 10 Area, wherein the recovery data stored on the predetermined partition are during 10 factory reset of electronic equipment Or the electronic equipment 10 is received and is still retained when deleting the request for restoring data.In practical application, the electronics is set The standby 10 deletion requests for restoring data received can include but is not limited to following one: user data removes request, User data selectively removing requests (recovery data packets include in the user data to be deleted) etc..
Optionally, in embodiments of the present invention, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), The various media that can store computer program such as mobile hard disk, magnetic or disk.
The embodiment of the invention also provides a kind of electronic device, including memory, processor and for installing storage card 12 Interface, be stored with computer program in the memory, which is arranged to run computer program to execute the present invention Step in embodiment in any of the above-described method.
Optionally, in embodiments of the present invention, above-mentioned processor can be set to execute by computer program following Step:
Step S302 determines the storage that the internal storage device of the electronic equipment 10 is installed as in electronic equipment 10 The recovery data of card 12;
Step S304, the predetermined point recovery data are stored in the device memory of the electronic equipment 10 Area, wherein the recovery data stored on the predetermined partition are during 10 factory reset of electronic equipment Or the electronic equipment 10 is received and is still retained when deleting the request for restoring data.In practical application, the electronics is set The standby 10 deletion requests for restoring data received can include but is not limited to following one: user data removes request, User data selectively removing requests (recovery data packets include in the user data to be deleted) etc..
Optionally, the specific example in the embodiment of the present invention can be with reference to the method and its optional reality in the embodiment of the present invention Example described in mode is applied, details are not described herein for the embodiment of the present invention.
In scheme provided in an embodiment of the present invention, since the electronic equipment 10 will be installed as in electronic equipment 10 The recovery data of storage card 12 of internal storage device be stored in a predetermined partition, and recovery data on the predetermined partition Even if the user data in electronic equipment 10 is deleted (for example, 10 factory reset of electronic equipment or Client-initiated User data completely or partially delete) in the case where can also be retained, will not be deleted, thereby may be ensured that and needing to restore When storage card 12, electronic equipment 10 can find recovery data, in order to which electronic equipment 10 restores storage card according to data are restored 12 internal storage device as the electronic equipment 10.With this solution, it can solve 12 conduct of storage card in the related technology Recoverys data needed for running well when internal storage device are easy the problem being deleted, and have reached and have been retained as the electronics and set The purpose of the recovery data of the storage card 12 of standby 10 internal storage device.
A kind of storage card restoration methods that can be run under scene shown in FIG. 1 are provided in embodiments of the present invention. Figure 10 is the flow chart of storage card restoration methods according to an embodiment of the present invention, and as shown in Figure 10, which includes the following steps:
Step S1002, in the case where storage card 12 are equipped in detecting electronic equipment 10, from the electronic equipment 10 Device memory in predetermined partition on read as the electronic equipment 10 internal storage device predetermined storage card (to put it differently, it is marked as predetermined storage card 14, storage card 12 may be the same card with predetermined storage card 14, Card may be different) recovery data, wherein the predetermined partition is the mistake in 10 factory reset of electronic equipment In journey or the electronic equipment 10 receives when deleting the request for restoring data, and the recovery data stored are still protected The subregion stayed.In practical application, the request deleted the user data in the electronic equipment 10 may include but unlimited In at least one of: user data removes request, and (recovery data packets include to delete the request of user data selectively removing In the user data removed) etc..
Step S1004 restores the storage card 12 as the described interior of the electronic equipment 10 based on the recovery data Portion stores equipment.
In practical applications, the storage card 12 installed in current electronic device 10, it may be possible to be arranged to the electronics The storage card of the internal storage device of equipment 10, it is also possible to other storage cards being newly inserted into.If in current electronic device 10 The storage card 12 of installation is the storage card of the former internal storage device for being arranged to the electronic equipment 10, that is to say, that current The storage card 12 installed in electronic equipment 10 is exactly predetermined storage card 14, then can correctly restore the storage card based on recovery data 12.If the storage card 12 installed in current electronic device 10 is not the former storage inside for being arranged to the electronic equipment 10 The storage card of equipment, that is to say, that the storage card 12 installed in current electronic device 10 is not predetermined storage card 14, then based on extensive Complex data can not correctly restore the storage card 12.In view of the situation, property embodiment as an example, referring to the basis of Figure 11 First specific flow chart of the storage card restoration methods of the embodiment of the present invention on the basis of shown in Figure 10, may be used also as shown in figure 11 The following steps are included: step S1102, is used as the electronic equipment 10 restoring the storage card 12 based on the recovery data The internal storage device failure in the case where, restore portable storage of the storage card 12 as the electronic equipment 10 Equipment.
Processing when for the ease of the recovery of follow-up storage card 12, can store an instruction information on predetermined partition, is used for Whether recovery data are stored on indicating predetermined subregion.Therefore, the embodiment of property as an example, referring to Figure 12 according to this Second specific flow chart of the storage card restoration methods of inventive embodiments, as shown in figure 12, on the basis of shown in Figure 10, step S1004 reads the internal storage device as the electronic equipment 10 from the predetermined partition of the electronic equipment 10 The recovery data of the predetermined storage card 14 may include: step S1202, from the predetermined partition of the electronic equipment 10 Upper reading indicates information, wherein the instruction information is stored with the recovery data for marking on the predetermined partition;Step S1204 reads from the predetermined partition of the electronic equipment 10 in the case where reading the instruction information and is used as institute State the recovery data of the predetermined storage card 14 of the internal storage device of electronic equipment 10.Step S1206, unread In the case where the instruction information, restore portable memory apparatus of the storage card 12 as the electronic equipment 10.
In order to guarantee safety, restoring data can be the information being encrypted.As exemplary embodiment, restore data Cipher mode can there are many, comprising: to the recovery number before the recovery data are stored in the predetermined partition It (for for decrypting the first key information for restoring data, is received in the electronic equipment 10 to packet according to being encrypted In the case where including the request that the user data of the first key information is deleted, the first key information is still retained); And/or the recovery data are stored on the predetermined partition, wherein the predetermined partition is encrypted partition.At this point, pressing It according to corresponding cipher mode, can be decrypted by corresponding manner to data are restored, and complete based on the recovery data after decryption At the recovery of storage card 12.
In practical applications, the recovery data may include to the internal storage device as the electronic equipment 10 The predetermined storage card 14 is decrypted and/or the data of carry.For example, the recovery data packets include at least one of: using In the second key information for decrypting the data in the predetermined storage card 14, the globally unique identifier of the predetermined storage card 14 (Global Unique Identifier, referred to as Guid).Wherein, predetermined storage card 14 is used as internal storage device, every time Can all have a unique Guid after formatting, format such as: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, In each x be 4 hexadecimal numbers within the scope of 0-9 or a-f.
Correspondingly, restore the storage card 12 as the inside of the electronic equipment 10 based on the recovery data to deposit Storage equipment includes: the storage card 12 to be decrypted based on the recovery data and/or carry, and in decryption and/or carry In successful situation, restore the internal storage device of the storage card 12 as the electronic equipment 10.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that an electronic equipment 10 (can be mobile phone, phase Machine, Pad or computer etc.) execute method described in each embodiment of the present invention.
Corresponding to storage card restoration methods provided in the embodiment of the present invention, the embodiment of the invention also provides one kind to deposit Card storage recovery device, the device is for realizing above-described embodiment and preferred embodiment, and the descriptions that have already been made will not be repeated. As used below, the combination of the software and/or hardware of predetermined function may be implemented in term " module ".Although following embodiment Described device preferably realized with software, but the combined realization of hardware or software and hardware be also may be simultaneously It is contemplated.
Figure 13 is the structural block diagram of storage card recovery device according to an embodiment of the present invention, as shown in figure 13, the device packet Include read module 132 and recovery module 134.The read module 132 in detecting electronic equipment 10 for being equipped with storage In the case where card 12, is read from the predetermined partition in the device memory of the electronic equipment 10 and be used as the electronic equipment The recovery data of the predetermined storage card 14 of 10 internal storage device, wherein the predetermined partition is in the electronic equipment 10 During factory reset or the electronic equipment 10 receives when deleting the request for restoring data, the institute stored It states and restores the still retained subregion of data.The recovery module 134 is used to restore the storage card 12 based on the recovery data The internal storage device as the electronic equipment 10.
The recovery module 134 is also used to set based on the recovery data recovery storage card 12 as the electronics In the case where standby 10 internal storage device failure, restore the storage card 12 as the portable of the electronic equipment 10 Store equipment.
The read module 132 is also used to read instruction information from the predetermined partition of the electronic equipment 10, In, the instruction information is stored with the recovery data for marking on the predetermined partition;Reading the instruction information In the case where, the storage inside as the electronic equipment 10 is read from the predetermined partition of the electronic equipment 10 The recovery data of the predetermined storage card 14 of equipment.The recovery module 134 is also used to unread in the read module 132 In the case where the instruction information, restore portable memory apparatus of the storage card 12 as the electronic equipment 10.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
The embodiment of the invention also provides a kind of storage medium, computer program is stored in the storage medium, wherein should Computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in embodiments of the present invention, above-mentioned storage medium can be set to storage for executing following steps Computer program:
Step S1002, in the case where storage card 12 are equipped in detecting electronic equipment 10, from the electronic equipment 10 Device memory in predetermined partition on read as the electronic equipment 10 internal storage device predetermined storage card 14 recovery data, wherein the predetermined partition is during 10 factory reset of electronic equipment or the electricity When sub- equipment 10 receives the request for deleting the recovery data, the still retained subregion of the recovery data stored.It is real Border application in, the request that the user data in the electronic equipment 10 is deleted can include but is not limited to it is following at least it One: user data removes request, and (recovery data packets are included in the user data to be deleted the request of user data selectively removing In) etc..
Step S1004 restores the storage card 12 as the described interior of the electronic equipment 10 based on the recovery data Portion stores equipment.
Optionally, in embodiments of the present invention, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), The various media that can store computer program such as mobile hard disk, magnetic or disk.
The embodiment of the invention also provides a kind of electronic device, including memory, processor and for installing storage card 12 Interface, be stored with computer program in the memory, which is arranged to run computer program to execute the present invention Step in embodiment in any of the above-described method.
Optionally, in embodiments of the present invention, above-mentioned processor can be set to execute by computer program following Step:
Step S1002, in the case where storage card 12 are equipped in detecting electronic equipment 10, from the electronic equipment 10 Device memory in predetermined partition on read as the electronic equipment 10 internal storage device predetermined storage card 14 recovery data, wherein the predetermined partition is during 10 factory reset of electronic equipment or the electricity When sub- equipment 10 receives the request for deleting the recovery data, the still retained subregion of the recovery data stored.It is real Border application in, the request that the user data in the electronic equipment 10 is deleted can include but is not limited to it is following at least it One: user data removes request, and (recovery data packets are included in the user data to be deleted the request of user data selectively removing In) etc..
Step S1004 restores the storage card 12 as the described interior of the electronic equipment 10 based on the recovery data Portion stores equipment.
Optionally, the specific example in the embodiment of the present invention can be with reference to the method and its optional reality in the embodiment of the present invention Example described in mode is applied, details are not described herein for the embodiment of the present invention.
In scheme provided in an embodiment of the present invention, since the electronic equipment 10 will be installed as in electronic equipment 10 The recovery data of predetermined storage card 14 of internal storage device be stored in a predetermined partition, and the recovery on the predetermined partition Even if user data of the data in electronic equipment 10 is deleted (for example, 10 factory reset of electronic equipment or user's hair Rise user data completely or partially delete) in the case where can also be retained, will not be deleted, thereby may be ensured that and needing When restoring predetermined storage card, electronic equipment 10 can find recovery data, in order to which electronic equipment 10 restores according to data are restored Internal storage device of the storage card as the electronic equipment 10.With this solution, it can solve storage card work in the related technology It is easy the problem of being deleted, can not effectively restoring storage card for the recovery data needed for running well when internal storage device, is reached It can be protected to the purpose of the recovery data of the storage card for the internal storage device for being retained as the electronic equipment 10, and in turn The correct recovery and reading data for demonstrate,proving storage card, prevent storage card from becoming dead card, data thereon become invalid data.
To solve after equipment does factory reset, the number of users that can be retained as in the storage card of built in memory device A kind of method of recovery data needed for proposing reservation storage card by taking storage card is SD card as an example according to, the embodiment of the present invention.
Fig. 7 is the flow chart of the method for recovery data needed for reservation storage card according to an embodiment of the present invention, such as Fig. 7 institute Show, the process the following steps are included:
Step S1401, into factory reset interface;
Step S1402 judges to have SD card at this time in equipment and SD card is as internal storage device carry, if equipment In at this time without SD card or SD card not as internal storage device carry, S1403 is thened follow the steps, if in equipment at this time SD card and SD card are to then follow the steps S1404 as internal storage device carry;
Step S1403, factory reset, and wipe userdata subregion;
Step S1404 increases option, and prompting current SD card is used as internal storage device, asks whether to need to protect Stay user data in SD card.If user selects "No", S1405 is thened follow the steps, if user selects "Yes", is thened follow the steps S1406;
Step S1405, factory reset.After restarting mobile phone, carry out carry SD card by the portable memory apparatus of default. Because SD card can not decrypt, carry, data above can not be read.It can be used in equipment to this SD card, it is necessary to weight Format, and carry, the before loss of data in SD card.
Step S1406, setting flag bit A (for a specific application example of " the instruction information " that refers in embodiment) are arrived B subregion (for a specific application example of " predetermined partition " that is referred in embodiment), and back up for after factory reset It decrypts, the necessary data of carry SD card (for a specific application example of " restoring data " for being referred in embodiment) to B subregion. Necessary data includes the Guid of SD card and the code key of encryption.B subregion is restoring independently of userdata subregion, data above It will not be removed when default setting.
For be saved in B subregion data safety, can choose itself encryption subregion saved as B subregion Data, that is, the data for being saved in B subregion are by default encryption;Or the B subregion of selection itself will not do the data of preservation Encryption, that will first encrypt data to be saved, then be saved in B subregion again.
Userdata subregion is wiped in step S1408, factory reset.
This programme can guarantee electronic equipment in factory reset, do not lose data in SD card and loss recovery does not go out It is decrypted after factory's setting, the necessary data of carry SD card, is easy to implement the recovery of subsequent SD card, hence it is evident that improve user experience.
To solve after equipment does factory reset, storage card can be restored and read the storage as built in memory device User data in card, the embodiment of the present invention propose that one kind is in factory reset and extensive after restarting so that storage card is SD card as an example The method of multiple storage card.
Figure 15 is the process of the method according to an embodiment of the present invention for restoring storage card in factory reset and after restarting Figure, as shown in figure 15, the process the following steps are included:
Step S1501, factory reset are simultaneously restarted;
Step S1502 judges whether there is flag bit A from B subregion.If it does not, step S1503 is executed, if deposited Executing step S1504.
Step S1503 checks SD card by portable memory apparatus.
Step S1504 then reads the data of backup if there is flag bit A from B subregion, Guid including backup and secret Key is decrypted SD card by built in memory device, carry.For be saved in B subregion data safety, the number of backup According to may be encryption, for example, the subregion of encryption itself saves data as B subregion, then be saved in B subregion data be by Default encryption;Or the B subregion of selection itself will not encrypt the data of preservation, but data to be saved is carried out Encryption, is then saved in B subregion again.Correspondingly, when reading the data of backup, corresponding decryption means can be used and solved The close data to obtain backup.
Step S1505 judges whether carry success, if it succeeds, step S1506 is executed, if it fails, then executing Step S1507.
Step S1506, SD card continue normal use as internal storage device, the number before factory reset can be read According to, and the necessary data for being used to decrypt SD card saved on B subregion is deleted, Guid and encryption code key including SD card.
Step S1507, carry fails at this time, illustrate that being inserted into mobile phone at this time is other SD cards, then by portable storage Equipment reexamines SD card.
It should be noted that those skilled in the art are it should be understood that respectively for information in the embodiment of the present invention It saves and the content of the recovery of storage card can be combined with each other, respectively for the preservation of information and storage card in the embodiment of the present invention The specific example of recovery be also that can be combined with each other.
The scheme of section Example of the present invention, so that equipment after factory reset, is not lost and set as storage inside Data in standby SD card, and do not need user and additionally take time, other storage equipment is looked for back up the data in SD, hence it is evident that it improves User experience.In addition, the scheme of section Example of the present invention is retained as inside in the case where being not necessarily to other storage mediums The user data in the SD card of equipment is stored, in the case that there are many data on especially SD, the time can be effectively saved.
It should be noted that the scheme in the embodiment of the present invention is not only applicable to mobile phone, any support can be applicable to Electronic equipment of the storage card as its internal storage device.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (20)

1. a kind of information storage means characterized by comprising
Determine the recovery data being installed in electronic equipment as the storage card of the internal storage device of the electronic equipment;
The recovery data are stored in the predetermined partition in the device memory of the electronic equipment, wherein described predetermined The recovery data stored on subregion are during the electronic equipment factory reset or the electronic equipment receives It is still retained when the request for restoring data described to deletion.
2. the method according to claim 1, wherein
During the recovery data stored on the predetermined partition are in the electronic equipment factory reset still by In the case where reservation, the predetermined partition is in the device memory independently of user data subregion and in the electronics The subregion completely retained during equipment factory reset;
The recovery data stored on the predetermined partition receive in the electronic equipment and delete the recovery data In the case where being still retained when request, the predetermined partition has characteristics that and is stored on the predetermined partition receiving The request deleted of data in the case where, whether the data that need to judge that request is deleted include the recovery data, In the case where being, the recovery data are still retained.
3. the method according to claim 1, wherein triggering determination is installed on the electronics on one of following opportunity The recovery data in equipment as the storage card of the internal storage device of the electronic equipment, and by the recovery data The step of predetermined partition being stored in the device memory of the electronic equipment:
It receives the request of the electronic equipment factory reset;
Receive the setting request of the first storage card, wherein the first storage card setting request is for requesting the storage card It is initialized as the internal storage device of the electronic equipment;
Receive the setting request of the second storage card, wherein the second storage card setting request will currently be used as institute for requesting The storage card for stating the portable memory apparatus of electronic equipment is set as the internal storage device.
4. the method according to claim 1, wherein further include:
Instruction information is stored in the predetermined partition, wherein the instruction information stored on the predetermined partition is described Electronic equipment is still retained when receiving the request deleted to the instruction information, and the instruction information is for described in marking The recovery data are stored on predetermined partition.
5. the method according to claim 1, wherein further include:
Encrypt the recovery data, wherein encrypt the recovery data packets and include at least one of:
The recovery data are encrypted before the recovery data are stored in the predetermined partition;
The recovery data are stored on the predetermined partition, wherein the predetermined partition is encrypted partition.
6. method according to any one of claims 1-5, which is characterized in that further include:
Receive the setting request of third storage card, wherein the third storage card setting request will currently be used as institute for requesting The storage card for stating the internal storage device of electronic equipment is set as portable memory apparatus;
It is arranged in response to the third storage card and requests, sets the portable memory apparatus for the storage card, and delete The recovery data stored on the predetermined partition.
7. method according to any one of claims 1-5, which is characterized in that further include:
It is receiving for requesting to set the storage card currently as the portable memory apparatus of the electronic equipment to In the case where the second storage card setting request of the internal storage device, retain the data stored in the storage card;
It is receiving for requesting currently to be arranged as the storage card of the internal storage device of the electronic equipment In the case where third storage card setting request for portable memory apparatus, retain the data stored in the storage card.
8. method according to any one of claims 1-7, which is characterized in that the recovery data packets are included to as described The storage card of the internal storage device of electronic equipment is decrypted and/or the data of carry.
9. according to the method described in claim 8, it is characterized in that, the recovery data packets include at least one of: for solving Second key information of the data in the close storage card, the globally unique identifier Guid of the storage card.
10. a kind of storage card restoration methods characterized by comprising
In the case where being equipped with storage card in detecting electronic equipment, from pre- in the device memory of the electronic equipment Determine the recovery data that the predetermined storage card of the internal storage device as the electronic equipment is read on subregion, wherein described pre- Determine that subregion is during the electronic equipment factory reset or the electronic equipment receives and deletes the recovery number According to request when, the still retained subregion of the recovery data stored;
Restore the internal storage device of the storage card as the electronic equipment based on the recovery data.
11. according to the method described in claim 10, it is characterized by further comprising:
Restoring internal storage device failure of the storage card as the electronic equipment based on the recovery data In the case of, restore portable memory apparatus of the storage card as the electronic equipment.
12. according to the method described in claim 10, it is characterized in that, from pre- in the device memory of the electronic equipment Determine to read on subregion and be included as the recovery data packets of the predetermined storage card of the internal storage device of the electronic equipment:
Instruction information is read from the predetermined partition, wherein the instruction information stores on the predetermined partition for marking There are the recovery data;
In the case where reading the instruction information, read from the predetermined partition as the described interior of the electronic equipment Portion stores the recovery data of the predetermined storage card of equipment.
13. according to the method for claim 12, which is characterized in that further include:
It is unread to the instruction information in the case where, restore portable storage of the storage card as the electronic equipment Equipment.
14. method described in any one of 0-13 according to claim 1, which is characterized in that the recovery data packets are included to conduct The predetermined storage card of the internal storage device of the electronic equipment is decrypted and/or the data of carry.
15. according to the method for claim 14, which is characterized in that the recovery data packets include at least one of: being used for Decrypt the second key information of the data in the predetermined storage card, the globally unique identifier Guid of the predetermined storage card.
16. method described in any one of 0-15 according to claim 1, which is characterized in that restore institute based on the recovery data The internal storage device that storage card is stated as the electronic equipment includes:
The storage card is decrypted based on the recovery data and/or carry, and the situation successful in decryption and/or carry Under, restore the internal storage device of the storage card as the electronic equipment.
17. a kind of information-storing device characterized by comprising
Determining module is installed in electronic equipment for determination as the storage card of the internal storage device of the electronic equipment Restore data;
Memory module, for the recovery data to be stored in the predetermined partition in the device memory of the electronic equipment, Wherein, the recovery data stored on the predetermined partition are during the electronic equipment factory reset or described Electronic equipment is received and is still retained when deleting the request for restoring data.
18. a kind of storage card recovery device characterized by comprising
Read module, in the case where for being equipped with storage card in detecting electronic equipment, from the equipment of the electronic equipment The recovery number of the predetermined storage card of the internal storage device as the electronic equipment is read on predetermined partition in memory space According to, wherein the predetermined partition is during the electronic equipment factory reset or the electronic equipment receives When deleting the request for restoring data, the still retained subregion of the recovery data stored;
Recovery module, for restoring the storage inside of the storage card as the electronic equipment based on the recovery data Equipment.
19. a kind of electronic equipment, including memory, processor and interface for installing storage card, which is characterized in that described to deposit Computer program is stored in reservoir, the processor is arranged to run the computer program to execute the claim Method described in any one of 1 to 16.
20. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute method described in described any one of claims 1 to 16 when operation.
CN201811217262.8A 2018-10-18 2018-10-18 Information storage method, information storage card recovery method, information storage device, information storage card recovery device, electronic equipment and storage medium Active CN109669810B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811217262.8A CN109669810B (en) 2018-10-18 2018-10-18 Information storage method, information storage card recovery method, information storage device, information storage card recovery device, electronic equipment and storage medium
PCT/CN2019/111711 WO2020078430A1 (en) 2018-10-18 2019-10-17 Information storage and memory card recovery method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811217262.8A CN109669810B (en) 2018-10-18 2018-10-18 Information storage method, information storage card recovery method, information storage device, information storage card recovery device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109669810A true CN109669810A (en) 2019-04-23
CN109669810B CN109669810B (en) 2023-07-14

Family

ID=66141672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811217262.8A Active CN109669810B (en) 2018-10-18 2018-10-18 Information storage method, information storage card recovery method, information storage device, information storage card recovery device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109669810B (en)
WO (1) WO2020078430A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020078430A1 (en) * 2018-10-18 2020-04-23 中兴通讯股份有限公司 Information storage and memory card recovery method and apparatus, electronic device, and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419575A (en) * 2007-10-23 2009-04-29 华硕电脑股份有限公司 Data protection method
US20100323664A1 (en) * 2009-06-18 2010-12-23 Girish Sivaram Dedicated memory partitions for users of a shared mobile device
JP2012103833A (en) * 2010-11-09 2012-05-31 Sony Corp Information processing apparatus, electronic equipment, information processing method, and program
CN103235703A (en) * 2013-04-11 2013-08-07 东莞宇龙通信科技有限公司 Method and device for storing preset resource
CN105611034A (en) * 2014-11-25 2016-05-25 中兴通讯股份有限公司 Method of backing up and restoring user data in mobile phone and corresponding mobile phone
US20160364294A1 (en) * 2015-06-10 2016-12-15 Micron Technology, Inc. Data storage error protection
CN106528480A (en) * 2016-12-16 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Method and system of preventing hot swapping data from missing, and terminal equipment
CN107480001A (en) * 2017-06-21 2017-12-15 深圳市金立通信设备有限公司 System recovery method and device
CN107656706A (en) * 2017-10-30 2018-02-02 努比亚技术有限公司 A kind of data processing method, terminal and computer-readable storage medium
CN108196898A (en) * 2016-12-08 2018-06-22 中兴通讯股份有限公司 System remapping method, device and electronic equipment
CN108228388A (en) * 2018-01-10 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of method and terminal for restoring setting
CN108319520A (en) * 2018-01-25 2018-07-24 张志和 Mobile device alternate operating system based on secure storage
WO2018133229A1 (en) * 2017-01-20 2018-07-26 华为技术有限公司 Method for restoring factory settings and relevant device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8307151B1 (en) * 2009-11-30 2012-11-06 Micron Technology, Inc. Multi-partitioning feature on e-MMC
CN104346238B (en) * 2013-08-06 2018-12-14 联想(北京)有限公司 A kind of data back up method, device and terminal
CN107704337B (en) * 2017-08-22 2020-08-25 北京珠穆朗玛移动通信有限公司 Factory setting restoring method, mobile terminal and device with storage function
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

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419575A (en) * 2007-10-23 2009-04-29 华硕电脑股份有限公司 Data protection method
US20100323664A1 (en) * 2009-06-18 2010-12-23 Girish Sivaram Dedicated memory partitions for users of a shared mobile device
JP2012103833A (en) * 2010-11-09 2012-05-31 Sony Corp Information processing apparatus, electronic equipment, information processing method, and program
CN103235703A (en) * 2013-04-11 2013-08-07 东莞宇龙通信科技有限公司 Method and device for storing preset resource
CN105611034A (en) * 2014-11-25 2016-05-25 中兴通讯股份有限公司 Method of backing up and restoring user data in mobile phone and corresponding mobile phone
US20160364294A1 (en) * 2015-06-10 2016-12-15 Micron Technology, Inc. Data storage error protection
CN108196898A (en) * 2016-12-08 2018-06-22 中兴通讯股份有限公司 System remapping method, device and electronic equipment
CN106528480A (en) * 2016-12-16 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Method and system of preventing hot swapping data from missing, and terminal equipment
WO2018133229A1 (en) * 2017-01-20 2018-07-26 华为技术有限公司 Method for restoring factory settings and relevant device
CN107480001A (en) * 2017-06-21 2017-12-15 深圳市金立通信设备有限公司 System recovery method and device
CN107656706A (en) * 2017-10-30 2018-02-02 努比亚技术有限公司 A kind of data processing method, terminal and computer-readable storage medium
CN108228388A (en) * 2018-01-10 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of method and terminal for restoring setting
CN108319520A (en) * 2018-01-25 2018-07-24 张志和 Mobile device alternate operating system based on secure storage

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
双龙一剑等: "博士诊所", 《现代计算机(普及版)》 *
张华: "计算机硬盘故障数据恢复技术", 《电脑知识与技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020078430A1 (en) * 2018-10-18 2020-04-23 中兴通讯股份有限公司 Information storage and memory card recovery method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN109669810B (en) 2023-07-14
WO2020078430A1 (en) 2020-04-23

Similar Documents

Publication Publication Date Title
JP6878609B2 (en) Data backup methods and data backup devices, storage media and servers
US9235713B2 (en) Method, device, and system for encrypting and decrypting image
WO2001046808A1 (en) Distributed data archive device and system
CN106991321B (en) Method and device for running application program in multi-container system without trace
KR20140087029A (en) Application data processing method and computing node
JP2006012192A (en) Distributed data archive system
CN106599115B (en) Data protection method, device and terminal
CN105630965A (en) System and method for securely deleting file from user space on mobile terminal flash medium
CN109977039A (en) HD encryption method for storing cipher key, device, equipment and readable storage medium storing program for executing
CN105117242B (en) System remapping method and terminal
CN108614728A (en) Virtual machine service providing method, device, equipment and computer readable storage medium
CN103577281A (en) Method and system for recovering data
CN109669810A (en) Information storage, storage card restoration methods and device, electronic equipment and storage medium
CN103858127B (en) Method, system and mediation server for deleting information in order to maintain security level
CN109358988A (en) A kind of restoration methods, device, system and the readable storage medium storing program for executing of cloud Backup Data
CN107704337A (en) Method, mobile terminal and the device with store function of factory reset
CN110046510B (en) Cross-cloud data migration method, device and system
JP5678150B2 (en) User terminal, key management system, and program
CN105740455B (en) Picture deleting method and device and electronic equipment
CN102282566A (en) Circuit card data protection
CN115757280A (en) Cloud document management system based on distributed document storage
US10140431B2 (en) File management system and user terminal in file management system
CN109240804B (en) Method and device for managing disk resources of virtual machine
CN107948291B (en) Terminal control method, device and system
CN112817932A (en) Data transfer method, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant