Embodiment
As shown in Figure 3, a kind of data-erasure method comprises the delete instruction information that step 10, receiving equipment management server issue, and described delete instruction information carries deletion Control Parameter information; Step 20, the delete instruction information that receives is resolved,, and return response message according to the corresponding deletion action of analysis result information and executing.
In the data-erasure method that present embodiment provided, the delete instruction information that device management server issues to terminal can be not only independent delete instruction, but can realize the operation of terminal deletion user data is controlled with Control Parameter by deletion is set, carry out deleted data by different deletion action commands for controlling terminals.Delete instruction information is carried the deletion Control Parameter and is handed down to terminal, after terminal receives the delete instruction information that device management server issues, at first delete instruction information is resolved, parse the operation of which kind of deletion Control Parameter to delete user data according to; After parsing obtained deleting Control Parameter information, terminal was carried out corresponding deletion action, and execution is returned response message to device management server after finishing, and informs the result of this deletion action.Device management server can issue the delete instruction of realistic demand according to the user mode of terminal use's data, farthest guarantees the success rate of deletion action.
Based on the foregoing description, present embodiment difference with it is, described step 20, the delete instruction information that receives is resolved, according to the corresponding deletion action of analysis result information and executing, be specially terminal and described user data information deleted according to the execution of the deletion action in described analysis result information number of times Control Parameter information.It is that deletion action is carried out number of times that terminal parses delete instruction information obtains deleting Control Parameter, then terminal is carried out the user data deletion action, if after carrying out deletion action, because former thereby deletion action failures such as user data is being used, then carry out deletion action again, till terminal use's data are deleted successfully; If after executing regulation deletion number of times, still there is the user data of deletion failure, then return failure information to device management server, the waiting facilities management server issues delete instruction once more.For example, deletion Control Parameter regulation is carried out 5 deletion actions, and after 3 deletion actions of terminal execution, user data is deleted successfully, then stops deletion action, and returns success information; If still failure then finishes deletion action, and returns failure information after carrying out 5 times.In the terminal data delet method that present embodiment provides, the disposable repeatedly delete instruction information that repeats that issues of device management server, avoided because each deletion failure and the corresponding troublesome operation that issues delete instruction has once more been saved terminal use's data deletion action time and interface-free resources.
Among another embodiment of the method for data deletion, described step 20, the delete instruction information that receives is resolved, according to the corresponding deletion action of analysis result information and executing, can also be specially terminal and described user data information be deleted according to the deletion action duration Control Parameter information in the described analysis result information.It is that deletion action is carried out duration information that terminal parses delete instruction information obtains deleting Control Parameter, promptly requires terminal to continue to carry out deletion action in the time of appointment.When in the specified time, delete successfully, then stop deletion action, and return success information; If in the time of appointment, carry out deletion action success not yet, then finish deletion action, and return failure information.In the data-erasure method that present embodiment provided, the device management server command terminal continues to carry out deletion action at the appointed time, also can avoid because each deletion failure and the corresponding troublesome operation that issues delete instruction once more, guarantee that to a certain extent data delete successfully.
Among the another embodiment of the method for data deletion, described step 20, the delete instruction information that receives is resolved, according to the corresponding deletion action of analysis result information and executing, can also be specially terminal and described user data information be deleted according to the deletion action stand-by period Control Parameter information in the described analysis result information.Terminal parses delete instruction information obtains deleting Control Parameter and is the deletion stand-by period, and promptly the indication equipment management server requires terminal to carry out deletion action again after the stand-by period of appointment finishes.Terminal is not carried out deletion action at once after receiving delete instruction, but through after the stand-by period that issues, carries out deletion action again.The data-erasure method that present embodiment provided, device management server issues the delete instruction that tallies with the actual situation according to the actual user mode of user data, avoids carrying out meaningless operation, saves resource.
Among the embodiment again of the method for data deletion, described step 20, the delete instruction information that receives is resolved, according to the corresponding deletion action of analysis result information and executing, can also be specially terminal and described user data information be deleted according to the deletion action Control Parameter information of restarting in the described analysis result information.Some data such as terminal operation executive logging table, these data belong to user data, be operated system and open when starting up of terminal, and carry out any when operation in operating system operational circumstances is noted, but because it is in open mode, terminal can run into failure when carrying out erasing instruction.And can't judge that how long this class file can be employed later program and discharge, at sending instructions under this type of user data device management server, indicating terminal is deleted this user data when restarting.Terminal parses delete instruction information learns that this deletion action needs to carry out when terminal is restarted, then wait for and carry out deletion action when terminal is restarted again, or terminal receive carry the delete instruction of restarting the deletion action Control Parameter after, the reboot operation of triggering terminal is carried out the deletion of user data immediately.
In the various embodiments described above, after the delete instruction that terminal issues according to device management server carries out deletion action, will return response message to device management server and report the deletion result; This process can be directly to return response message to device management server after terminal executes delete instruction; Also can be terminal returns when result queries responds in that device management server is deleted, and after device management server issues delete instruction, delete result's inquiry, and terminal reports the deletion object information after receiving deletion result queries information.
Based on the various embodiments described above, terminal is returned response message and also will storage be deleted the data file information of failing in the deleted file tabulation before after executing delete instruction, and writing down which subscriber data file does not have deleted.For example when deletion terminal operation executive logging table, because this document is used and can't deletes, therefore can be in deleted file tabulation with this document information stores, so that terminal can find not deleted file to delete when restarting according to the data file information in the deleted file tabulation fast.
If certain subscriber data file is because of being in the state of special protection; terminal is carried out repeatedly delete instruction and still it can't be deleted; then device management server can send instructions down; the subscriber data file that indicating terminal is deleted failure is set to not readable; after terminal receives this command information; the attribute of not deleted subscriber data file is provided with, reaches the purpose of protection user data, in above-mentioned arbitrary embodiment, all can carry out this operation.
As shown in Figure 4, terminal manages user data by the terminal management tree.A plurality of different deletion action executable nodes are arranged under the user data running node, after terminal is received the delete instruction information that carries Control Parameter, can finish different deletion actions according to executable node.For example terminal can be carried out multiple deletion action by carrying out " MultiTry " node " WipeMultiTimes " child node down, and deletion action execution number of times information is then instructed and finished by issuing setting " Data " child node Control Parameter by server.Below be respectively the executive program of the various embodiments described above:
Device management server issues delete instruction:
<Exec>
<CmdID>3</CmdID>
<Item>
<Target>
<LocURI>./UserData/Operations/Wipe</LocURI>
</Target>
</Item>
</Exec>
Terminal discovery partial content in carrying out delete procedure can't be wiped, and then this instruction is replied:
<Status>
<MsgRef>1</MsgRef>
<CmdRef>3</CmdRef>
<CmdID>2</CmdID>
<Cmd>Exec</Cmd>
<TargetRef>./UserData/Operations/Wipe</TargetRef>
<Data>403</Data>
<Item><Data>./Rington/bird.wav</Data></Item>
</Status>
After device management server is received this message, know that " ./Rington/bird.wav " file on the terminal is not deleted, and in the data file list of " result " node place storage deletion failure, device management server can obtain this content by " Get " node (not shown).
Device management server issues and carries the delete instruction that deletion action is carried out number of times:
<Replace>
<CmdID>2</CmdID>
<Item>
<Target><LocURI>./UserData/Operations/MultiTry/Data<LocURI></Targ
et>
<Data>5</Data>
</Item>
</Replace>
<Exec>
<CmdID>3</CmdID>
<Item>
<Target>
<LocURI>./UserData/Operations/MultiTry/WipeMultiTimes</LocURI>
</Target>
</Item>
</Exec>
After terminal is received this instruction, can after failure is carried out in instruction, repeat again,, return a final execution result at last up to running succeeded or having carried out 5 operations altogether.
Device management server issues the delete instruction that carries the deletion action duration:
<Replace>
<CmdID>2</CmdID>
<Item>
<Target><LocURI>./UserData/Operations/MultiTry/Data<LocURI></Targ
et>
<Data>30000</Data>
</Item>
</Replace>
<Exec>
<CmdID>3</CmdID>
<Item>
<Target>
<LocURI>./UserData/Operations/MultiTry/WipeLongTime</LocURI>
</Target>
</Item>
</Exec>
After terminal is received this instruction, can after failure is carried out in instruction, repeat again, up to run succeeded or repeated 30 seconds after end operation, return a final execution result at last.
Device management server issues the delete instruction that carries the deletion action stand-by period:
<Replace>
<CmdID>2</CmdID>
<Item>
<Target><LocURI>./UserData/Operations/MultiTry/Data<LocURI></Targ
et>
<Data>15000</Data>
</Item>
</Replace>
<Exec>
<CmdID>3</CmdID>
<Item>
<Target>
<LocURI>./UserData/Operations/MultiTry/WaitAndWipe</LocURI>
</Target>
</Item>
</Exec>
When user data can't be deleted because of being used by the Another Application program, device management server issues the delete instruction that has the deletion action stand-by period, terminal is carried out delete instruction once more after having waited for 15 seconds, at this moment, the application program of terminal is through with to the operation of this user data, the terminal successful execution delete instruction.
Device management server issues and carries the delete instruction of restarting deletion action control coefrficient information:
<Exec>
<CmdID>3</CmdID>
<Item>
<Target>
<LocURI>./UserData/Operations/WipeAfterReboot</LocURI>
</Target>
</Item>
</Exec>
After terminal is received this instruction, carry out deletion action, when deletion terminal operation executive logging list file, because this document is opened, then terminal records this document in the deleted file tabulation, and continues to carry out deletion action.
Terminal is replied operation:
<Status>
<MsgRef>1</MsgRef>
<CmdRef>3</CmdRef>
<CmdID>2</CmdID>
<Cmd>Exec</Cmd>
<TargetRef>./UserData/Operations/WipeAfterReboot</TargetRef>
<Data>206</Data>
</Status>
When terminal is carried out reboot operation, terminal operation executive logging list file is deleted.
Device management server is set the data access authority of deletion failure:
<Exec>
<CmdID>3</CmdID>
<Item>
<Target>
<LocURI>./UserData/Operations/WipeLock</LocURI>
</Target>
</Item>
</Exec>
After terminal is received this instruction, carry out the deletion action to user data, when failure, the subscriber data file of deleting failure by operating system is set to unreadable access rights, thereby realizes the protection to user data.
More than the data-erasure method that provides of each embodiment, can use suitable deletion mode according to specific circumstances and operate, farthest terminal use's data are deleted, realized Data Protection to the terminal use; And saved system resource, improve resource utilization.
As shown in Figure 5, present embodiment provides a kind of terminal to comprise information receiving module 1, is used for the delete instruction information that the receiving equipment management server issues; Parsing module 2 is connected with information receiving module 1, is used for the delete instruction information that receives is resolved, and obtains deleting Control Parameter information; Removing module 3 is connected with parsing module 2, according to the corresponding deletion action of deletion Control Parameter information and executing; Information is returned module 4 and is connected with removing module 3, is used for returning response message to device management server.
After information receiving module 1 receives the terminal data delete instruction that device management server issues, sending to 2 pairs of delete instructions of parsing module resolves, obtain the used Control Parameter information of deletion action, removing module 3 is deleted terminal use's data according to the deletion action Control Parameter that parsing obtains, after executing deletion action, return module 4 by information and return the response message of deletion action, report the deletion object information to device management server.In the present embodiment, the parsing of the instruction that 2 pairs of device management servers of parsing module issue is not only to judge whether it is data delete instruction information, but also will further resolve the deletion Control Parameter information of carrying in the data delete instruction information, removing module 3 is carried out corresponding deletion action according to concrete deletion Control Parameter.The terminal that present embodiment provides can be carried out deletion action according to the different deletion action instructions that device management server issues, and guarantees the success rate of deletion action to the full extent, realizes terminal use's efficient data management and protection.
As shown in Figure 6, among another embodiment of terminal, embodiment based on above-mentioned terminal, further, removing module 3 comprises chooser module 31, and the repeatedly deletion submodule 32 that is connected with chooser module 31 respectively, lasting deletion submodule 33, wait are deleted submodule 34, restarted deletion submodule 35.Chooser module 31 is used for handling according to the corresponding submodule of deletion Control Parameter Information Selection of the analysis result information of parsing module 2 transmissions, plays the effect of command assignment; Repeatedly deleting submodule 32 is used for according to the deletion action execution number of times Control Parameter information of described analysis result information data being deleted, repeatedly delete submodule 32 and carry out deletion action, till appointment deletion action number of times is deleted successfully or carried out to data; Continue deletion submodule 33 and be used for data being deleted, till data are deleted successfully or carried out the assigned operation time according to the deletion action duration Control Parameter information of described analysis result information; Wait for that deletion submodule 34 is used for according to the deletion action stand-by period Control Parameter information of described analysis result information data being deleted, receive delete instruction after, continue to carry out deletion action after waiting for the fixed time; Restart deletion submodule 35 and be used for data being deleted according to the deletion action Control Parameter information of restarting of described analysis result information, receive delete instruction after, wait for that terminal is restarted or directly triggering terminal restart, carry out deletion action again.
Further again; terminal use's data are not successfully deleted for a certain reason; can also comprise the data interlock submodule 36 that is connected with chooser module 31 in the removing module 3; be used for resetting the data file access rights of deletion failure; its attribute information is set to not readable, reaches the effect of protection user data.Based on the embodiment of above terminal, a deleted file list management submodule 37 can also be set in the removing module 3, be connected with chooser module 31, be used to store the data file information of deletion failure.By storage deletion failure fileinfo, can make terminal when carrying out next deletion action, knowing does not rapidly also have deleted file information, carries out deletion action, can save the operating time.
More than the terminal that provides of each embodiment; according to the deletion Control Parameter information that device management server issues terminal use's data are deleted; by different data deletion modes; the problem that solution is former because of certain thereby user data deletion that cause is failed; guarantee the success rate of deletion action to the full extent, realize terminal use's efficient data management and protection.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.