CN110941592A - Data management method and mobile terminal - Google Patents

Data management method and mobile terminal Download PDF

Info

Publication number
CN110941592A
CN110941592A CN201911171531.6A CN201911171531A CN110941592A CN 110941592 A CN110941592 A CN 110941592A CN 201911171531 A CN201911171531 A CN 201911171531A CN 110941592 A CN110941592 A CN 110941592A
Authority
CN
China
Prior art keywords
target
target storage
data
storage data
time period
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.)
Pending
Application number
CN201911171531.6A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911171531.6A priority Critical patent/CN110941592A/en
Publication of CN110941592A publication Critical patent/CN110941592A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support

Abstract

The invention discloses a data management method and a mobile terminal, wherein the method comprises the following steps: receiving a deletion input for the target storage data; responding to the deletion input, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted; determining a target time period within which the target storage data can be recovered after being deleted according to the type of the target data; the target storage data in the target storage space is marked with mark information containing a target time period, and the target storage data in the target storage space can be recovered in the target time period. The invention can set different target time periods aiming at target storage data of different data types, and the deleted target storage data is marked with the target time period in the target storage space, so as to remind a user of the period for recovering the target storage data, thereby facilitating the management operation of the user aiming at the deleted data.

Description

Data management method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data management method and a mobile terminal.
Background
With the development of mobile terminal technology, mobile terminals are becoming indispensable tools for users. Such as: the user can take a picture or a video through the mobile terminal with the camera and store the taken picture or video in the mobile terminal for recording; the mobile terminal with the recording function can record the audio and store the recorded audio in the mobile terminal, or store text data (such as a memo) and the like.
In the using process of the mobile terminal, there are often situations that the mobile terminal is shared, such as: the family members share and use the mobile terminal. In this way, the habit of using the mobile terminal may be different between different users, or the data stored in the mobile terminal may be deleted due to misoperation.
At present, in order to avoid the situation of deletion by mistake, the image data stored in the album of the mobile terminal can be moved to the folder of "most recently deleted" after being deleted, and all the data in the folder of "most recently deleted" generally only corresponds to a fixed deletion time, that is, after the fixed deletion time is reached, the data is completely deleted, which is inconvenient for the user to flexibly manage the deleted data.
Disclosure of Invention
The invention provides a data management method and a mobile terminal, which aim to solve the problem that the deleted stored data is inconvenient to flexibly manage in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data management method, including:
receiving a deletion input for the target storage data;
responding to the deletion input, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted;
determining a target time period within which the target storage data can be recovered after being deleted according to the type of the target data;
wherein the target storage data in the target storage space is marked with mark information containing the target time period, and the target storage data in the target storage space can be recovered in the target time period.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
a receiving module for receiving a deletion input for the target storage data;
the response module is used for responding to the deletion input, moving the target storage data to a target storage space and acquiring the target data type of the target storage data to be deleted;
the determining module is used for determining a target time period within which the target storage data can be recovered after being deleted according to the target data type;
wherein the target storage data in the target storage space is marked with mark information containing the target time period, and the target storage data in the target storage space can be recovered in the target time period.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the data management method described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the data management method described above.
In the embodiment of the invention, the target storage data is deleted by receiving the deletion input of the target storage data; responding to the deletion input, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted; and determining a target time period within which the target storage data can be recovered after being deleted according to the target data type, wherein the target storage data in the target storage space can be recovered within the target time period. In this way, different target time periods can be set for target storage data of different data types, and the target storage data can be recovered in the target time period after being deleted, so that the user can manage different time periods capable of being recovered and deleted for the deleted storage data of different data types; and in the target storage space, the deleted target storage data is marked with marking information containing the target time period so as to remind a user of the period for which the target storage data can be recovered.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 shows one of the flow diagrams of a data management method of an embodiment of the invention;
FIG. 2 is a second flowchart of a data management method according to an embodiment of the invention;
FIG. 3 is a third flowchart of a data management method according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart of a data management method according to an embodiment of the present invention;
FIG. 5 shows a block diagram of a mobile terminal of an embodiment of the invention;
fig. 6 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a data management method, including:
step 11: a delete input is received for the target stored data.
Step 12: and responding to the deletion input, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted.
Step 13: and determining a target time period within which the target storage data can be recovered after being deleted according to the target data type.
Wherein the target storage data in the target storage space is marked with mark information containing the target time period, and the target storage data in the target storage space can be recovered in the target time period.
Optionally, as an implementation: the data types may include, but are not limited to, the following types: pictures, video, audio, text, etc. Wherein, the target storage data can be any one type of data in the above data types stored in the mobile terminal; different target time periods can be set for target storage data of different data types, and the target storage data can be recovered within the target time periods after being deleted.
Optionally, as another implementation: the data type may be a preset level of likelihood that it may be restored. Wherein the target storage data may be any one type of data among pictures, videos, audios, texts, etc. stored in the mobile terminal.
Specifically, when the target storage data is deleted, the possibility level that the target storage data can be restored is set so that different target time periods are set according to the possibility level that the target storage data can be restored. Such as: a longer target time period can be set for data with higher possibility level to be recovered so as to provide a longer time period for which the data can be recovered for the user; the target storage data can be deleted directly after the deletion time of the target storage data reaches the target time period, and the deleted data with low possibility of being recovered occupies the memory space of the mobile terminal to a certain extent.
In this embodiment, different target time periods may be set for target storage data of different data types, and the target storage data may be recovered within the target time period after being deleted, so as to provide management of different time periods during which the user can be recovered and deleted for the deleted storage data of different data types.
Optionally, according to at least one of the above embodiments, the target storage data for different data types may correspond to different target storage spaces, so that the user may respectively manage the storage data for different data types after the storage data is deleted. Of course, according to the operation habits of the user, the storage data of different data types can be moved to the same storage space after being deleted, so that the user can manage the deleted storage data in a unified manner, the switching process of the operation in a plurality of folders is avoided, and the operation is simplified.
In addition, the deleted target storage data is marked with marking information containing a target time period in the target storage space, so that a user is reminded of a period for which the target storage data can be recovered.
Optionally, the tag information may further include at least one of the following: the identity information of the operation user of the deletion input and the input time of the deletion input are obtained.
In this way, in the case that the stored data of the mobile terminal may be deleted by a non-predetermined user, the predetermined user may be reminded of the information of the operator for the deletion input, which is further beneficial to the management of the user for the deleted stored data.
Optionally, in the target storage space, the deleted storage data may be sorted according to input time of the deletion input, an operation user of the deletion input, time when the distance can be recovered, and the like; specifically, the priority between the input time of the deletion input, the operation user of the deletion input, and the time when the distance can be recovered may be determined according to the operation habit of the user, which is convenient for the user to operate and manage.
In the above scheme, different target time periods may be set for target storage data of different data types, and the target storage data may be recovered within the target time period after being deleted, so that a user is provided with different management of time periods in which deletion can be recovered for the deleted storage data of different data types. And in the target storage space, the deleted target storage data is marked with marking information containing the target time period so as to remind a user of the period for which the target storage data can be recovered.
As shown in fig. 2, an embodiment of the present invention further provides a data management method, including:
step 21: receiving a deletion input for the target stored data.
Step 22: and responding to the deletion input, and acquiring the identity information of the operating user.
Optionally, in response to the deletion input, displaying a prompt box on the current interface, for prompting the user to acquire the identity information of the current operating user; the identity information may be face recognition information, fingerprint information, iris information, password instructions, etc.
Step 23: and under the condition that the identity information is not matched with the identity information of a preset user, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted.
Step 24: and determining a target time period within which the target storage data can be recovered after being deleted according to the target data type.
Wherein the target storage data in the target storage space is marked with mark information containing the target time period, and the target storage data in the target storage space can be recovered in the target time period.
Optionally, the tag information further includes at least one of the following: the identity information of the operation user of the deletion input and the input time of the deletion input are obtained.
Optionally, in the target storage space, the deleted storage data may be sorted according to input time of the deletion input, an operation user of the deletion input, time when the distance can be recovered, and the like; specifically, the priority between the input time of the deletion input, the operation user of the deletion input, and the time when the distance can be recovered may be determined according to the operation habit of the user, so as to facilitate the operation management of the user.
Step 25: and under the condition that the identity information is matched with the identity information of a preset user, moving the target storage data to a target storage space, and taking a preset time period as a target time period within which the target storage data can be recovered after being deleted.
For example: the identity information of the predetermined user can be preset identity information of the owner or preset identity information of friends, family and the like; in the case that it is determined that the identity information detected according to the deletion input matches the identity information of the preset user, the time period preset by the user (or set by default in the system) may be directly used as the target time period corresponding to the deleted target storage data and recoverable after deletion. Alternatively, the predetermined period of time may be 30 days.
Optionally, when the identity information is matched with the identity information of the preset user, the target storage data is moved to the target storage space, and the target storage data may not be marked for the target time period.
In the above scheme, by performing two-dimensional management on the deleted target storage data for the recoverable time period and the deletion input of the operation user, the management of the user on the storage data is further optimized, that is, the deletion operation for the predetermined user and the non-predetermined user can correspond to different target time periods and target storage data of different data types, different target time periods can be further set, and the target storage data can be recovered in the target time periods after being deleted, so that the management of the user on the deleted storage data of different operation users and different data types and with different recoverable and deletable time periods is provided. And marking the target storage data deleted by the non-predetermined user with a target time period in the target storage space so as to remind the predetermined user of the period for which the target storage data can be recovered and/or the operation user.
As shown in fig. 3, an embodiment of the present invention further provides a data management method, including:
step 31: a delete input is received for the target stored data.
Step 32: and responding to the deletion input, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted.
Step 33: and determining a target time period within which the target storage data can be recovered after being deleted according to the target data type.
Wherein the target storage data in the target storage space is marked with mark information containing the target time period, and the target storage data in the target storage space can be recovered in the target time period.
Optionally, the tag information further includes at least one of the following: the identity information of the operation user of the deletion input and the input time of the deletion input are obtained.
Step 34: under the condition that the effective duration of the target storage data in the target storage space which can be recovered is lower than a preset threshold, displaying first prompt information; the first prompt message is used for prompting a user whether to recover the deleted target storage data.
In this embodiment, in the case that the period for which the deleted storage data can be recovered (valid time for which the storage data can be recovered) is lower than a preset threshold (e.g.: 2 days), the user is reminded of the period for which the storage data can be recovered; therefore, the storage data which reaches the effective time capable of being recovered quickly is prompted in time before being completely cleared, a more confirmation opportunity is provided for the user, and the recovery or the complete clearing is determined.
Optionally, different preset thresholds may be set for different data types of stored data.
Further, the method may further include:
receiving a first input;
responding to the first input, and acquiring identity information of an operation user;
and deleting the target storage data in the target storage space under the condition that the identity information of the operating user is matched with the identity information of a preset user.
The above method may further comprise:
receiving a second input;
responding to the second input, and acquiring identity information of the operation user;
and under the condition that the identity information of the operating user is matched with the identity information of a preset user, recovering the deleted target storage data.
Specifically, the identity information of the user may be acquired when a complete deletion input or a recovery input for the target storage data, which is input by the user according to the first prompt information, is received; deleting the target storage data in the target storage space in response to the complete deletion input (the first input described above) in the case where the identity information of the user matches the identity information of a preset user; alternatively, in response to the restore input (e.g., the second input described above), the deleted target stored data is restored.
And under the condition that the identity information of the user is not matched with the identity information of a preset user, not executing the operation of deleting the target storage data in the target storage space corresponding to the first input and the operation of recovering the deleted target storage data corresponding to the second input.
In addition, for the stored data with the valid time which is as short as the recoverable valid time, if a first input or a second input of a non-predetermined user (a user whose identity information does not match the identity information of a preset user) is received during reminding, the operation of deleting the target stored data in the target storage space corresponding to the first input and the operation of recovering the deleted target stored data corresponding to the second input are not executed, and after a predetermined period of time, the valid time for recovering the deleted stored data of the user is prompted again until the operation of a predetermined user (a user whose identity information matches the identity information of a preset user) is received.
Specifically, the method can be realized by the following steps:
detecting whether storage data with the valid time lower than a preset threshold exists in a target storage space or not;
if yes, displaying a prompt box to prompt the user of the valid time of the corresponding stored data, which can be recovered; if not, ending the flow;
acquiring identity information of a current operating user according to the operation input of the user aiming at the prompt box;
under the condition that the current operation user is judged to be a preset user according to the identity information, further judging whether the stored data is deleted by the preset user;
if yes, executing corresponding functions (such as completely deleting the stored data or recovering the stored data) according to the operation of the preset user; if not, displaying the stored data in the target storage space according to the user and the effective time of the deletion operation, so that the user can manage the stored data in the target storage space through another dimension of the user and the effective time of the deletion operation;
if the current operating user is judged not to be the preset user according to the identity information, setting the recoverable valid time corresponding to the storage time to increase the preset time; such as: the preset threshold is 2 days, and the preset time for increasing or decreasing can be 1 day.
According to at least one embodiment of the foregoing, the step of determining, according to the target data type, a target time period within which the target storage data can be restored after being deleted may include:
determining preset attribute factors corresponding to the target data types;
and determining a target time period within which the target storage data can be recovered after being deleted according to a preset time period corresponding to the preset attribute factor.
Wherein, different attribute factors can be set for different data types, such as: the attribute factors corresponding to the pictures may include: whether similar pictures, resolution, portrait mode, viewing times and the like are deleted or not; the attribute factors corresponding to the video may include: duration, resolution, frame rate, number of views, etc.; the attribute factors corresponding to the audio may include: time length, watching times, whether recording is carried out through the current mobile terminal, and the like; the attribute factors corresponding to the text may include: word count, number of viewing times, whether to edit via the current mobile terminal, etc.
Optionally, the step of determining, according to the preset time period corresponding to the preset attribute factor, a target time period within which the target storage data can be restored after being deleted may include:
acquiring attribute parameters of the target storage data corresponding to the preset attribute factors according to the preset attribute factors corresponding to the target data types;
and determining a target time period within which the target storage data can be recovered after being deleted according to a preset time period corresponding to the attribute parameters.
The target storage data with different attribute parameters can correspond to different target time periods which can be recovered after deletion, so that the aim of determining the target time period which can be recovered after deletion based on the attributes of the target storage data is fulfilled, and the user can conveniently perform different management based on the attribute parameters of different target storage data.
Optionally, as an implementation: determining a target time period within which the target storage data can be restored after being deleted according to a preset time period corresponding to the attribute parameter, which may include:
and according to the sum of the preset time periods corresponding to the attribute parameters, the sum is used as a target time period within which the target storage data can be recovered after being deleted.
Optionally, as another implementation: the step of determining a target time period within which the target storage data can be restored after being deleted according to the preset time period corresponding to the attribute parameter may further include:
calculating the weighted sum of the preset time periods corresponding to the attribute parameters according to the preset time periods corresponding to the attribute parameters and the weight coefficients corresponding to the preset attribute factors;
and determining the weighted sum of the preset time periods corresponding to the attribute parameters as the target time for restoring the target storage data after deletion.
The following takes image data (video, picture) as an example, and the above method is specifically explained:
for video:
the attribute factors may include: duration, resolution, frame rate, and number of views;
the following table 1 shows the weights corresponding to the attribute factors:
TABLE 1
Attribute factors Duration of time Resolution ratio Frame rate Number of views
Weight of 0.1 0.2 0.2 0.5
The following table 2 is a time period corresponding to the attribute parameters:
TABLE 2
Figure BDA0002288846770000101
For example: the stored data is a video, the resolution corresponding to the video is 4K, the number of times of being viewed is 20, the frame rate is 30, and the duration is 10 minutes; then, in the case where the video is deleted by a non-predetermined user, the target time period that can be recovered corresponding to the deleted video can be obtained by the following formula:
30+15 × 0.2+30 × 0.5+10+5 × 0.2+10 × 0.1 ═ 30+3+15+10+1+1 ═ 60 (days)
For a picture:
the attribute factors may include: duration, resolution, frame rate, and number of views;
the following table 3 shows the corresponding weights for the attribute factors:
TABLE 3
Figure BDA0002288846770000111
The following table 4 is a time period corresponding to the attribute parameter:
TABLE 4
Figure BDA0002288846770000112
The operation flow for the image data is as follows:
receiving a deleting operation of a user for the target image data, and judging whether an operating user of the deleting operation is a preset user;
if yes, determining that the time period in which the target image data can be recovered after being deleted is 30 days, moving the target storage data into a 'latest deletion' folder, and adding no identifier for the deleted target image data; if not, setting the base number of the time period which can be recovered after being deleted as 30 days as a first value;
determining a resolution parameter, determining a time period (product of a preset time period corresponding to the resolution parameter and a weight) corresponding to the resolution parameter according to the preset time period corresponding to the resolution parameter and the weight corresponding to the resolution, and calculating the sum of the time period corresponding to the resolution parameter and the first value as a second value; can be calculated and determined according to the tables 1 to 4, which are not described herein;
determining the viewing times, determining a time period (product of the preset time period corresponding to the viewing times and the weight) corresponding to the viewing times according to the preset time period corresponding to the viewing times and the weight corresponding to the viewing times, and calculating the sum of the time period corresponding to the viewing times and the second value to obtain a third value; can be calculated and determined according to the tables 1 to 4, which are not described herein;
judging whether the deleted target image data is a picture or a video;
if the video is the video, calculating the sum of the third value and a preset time period base number corresponding to the video in the table 2 as a fourth value;
determining a frame rate, determining a time period corresponding to the frame rate (the product of a preset time period corresponding to the frame rate and a weight) according to the preset time period corresponding to the frame rate and the weight corresponding to the frame rate, and calculating the sum of the time period corresponding to the frame rate and a fourth value to obtain a fifth value; can be calculated and determined according to the above tables 1 and 2, and is not described herein again;
determining the video duration, determining a time period (product of the preset time period corresponding to the video duration and the weight) corresponding to the video duration according to the preset time period corresponding to the video duration and the weight corresponding to the video duration, and calculating the sum of the time period corresponding to the video duration and the fifth value to obtain a sixth value; can be calculated and determined according to the above tables 1 and 2, and is not described herein again;
determining the sixth value as a corresponding recoverable time period of the deleted video data, moving the video data to the 'recently deleted' folder, and marking the recoverable time period aiming at the deleted video data;
if the picture is the video picture, calculating the sum of the third value and a preset time period base number corresponding to the video picture in the table 4 as a seventh value;
determining whether an undeleted similar picture exists, determining whether a time period corresponding to the result of the undeleted similar picture exists or not (the product of the weight and the preset time period corresponding to the result of the undeleted similar picture exists or not) according to the preset time period corresponding to the result of the undeleted similar picture and the weight corresponding to the undeleted similar picture, and calculating the sum of the seventh value and the time period corresponding to the result of the undeleted similar picture to obtain an eighth value; can be calculated and determined according to the above tables 3 and 4, which are not described herein;
determining whether the portrait mode is used, determining whether the time period corresponding to the result of the portrait mode is used (the product of the preset time period corresponding to the result of the portrait mode is used and the weight) according to the preset time period corresponding to the result of the portrait mode and the weight corresponding to the portrait mode, and calculating the sum of the time period corresponding to the result of the portrait mode and the eighth value to obtain a ninth value; can be calculated and determined according to the above tables 3 and 4, which are not described herein;
and determining the ninth value as a corresponding recoverable time period of the deleted picture data, moving the picture data to the 'latest deletion' folder, and marking the recoverable time period aiming at the deleted picture data.
Optionally, in the "most recently deleted", a default deleting/restoring manner of the system is used for the data deleted by the predetermined user; for data deleted by a non-scheduled user, displaying according to two large dimensions of a deletion time period (such as a day unit) and an operation user of deletion operation, and sorting according to data types (such as videos, pictures and the like), resolution and viewed times on the two large dimensions by the user, so that the user can conveniently select and operate in batches.
It should be noted that, in the above embodiment, the attribute factors corresponding to the target data type, and the time periods, weights, and the like corresponding to the attribute factors may also be collected and analyzed by the server, so as to dynamically adjust the attribute factors and the time periods, weights, and the like corresponding to the attribute factors, and further, the accuracy of data management is improved.
As shown in fig. 4, an embodiment of the present invention further provides a data management method, including:
step 41: receiving a deletion input for the target stored data.
Step 42: and responding to the deletion input, and acquiring the identity information of the operating user.
Optionally, in response to the deletion input, displaying a prompt box on the current interface, for prompting the user to acquire the identity information of the current operating user; the identity information may be face recognition information, fingerprint information, iris information, password instructions, etc.
Step 43: and under the condition that the identity information is matched with the identity information of a preset user, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted.
Step 44: and under the condition that the identity information is not matched with the identity information of a preset user, the deletion operation of the target storage data is not executed.
Specifically, when the identity information matches the identity information of the preset user, the deletion operation is allowed to be performed on the target storage data, that is, the target storage data is moved to the target storage space, the target data type to which the target storage data belongs is acquired, and then the following step 45 is performed.
And under the condition that the identity information is not matched with the identity information of the preset user, not allowing to execute deletion operation on the target storage data, namely ending the process, and repeating the steps 41 to 44 until the next deletion input of the target storage data is received.
Step 45: and determining a target time period within which the target storage data can be recovered after being deleted according to the target data type.
Wherein the target storage data in the target storage space is marked with mark information containing the target time period, and the target storage data in the target storage space can be recovered in the target time period.
Optionally, the tag information further includes at least one of the following: the identity information of the operation user of the deletion input and the input time of the deletion input are obtained.
Optionally, in the target storage space, the deleted storage data may be sorted according to input time of the deletion input, an operation user of the deletion input, time when the distance can be recovered, and the like; specifically, the priority between the input time of the deletion input, the operation user of the deletion input, and the time when the distance can be recovered may be determined according to the operation habit of the user, so as to facilitate the operation management of the user.
In the above scheme, by performing deletion authority of an operation user for deletion input on deleted target storage data and management of two dimensions of a target time period in which the target storage data can be restored after deletion, management of the storage data by the user is further optimized, that is, corresponding deletion operation is performed only for deletion input by a predetermined user, and corresponding deletion operation is not performed for deletion input by a non-predetermined user, and different target time periods can be set for target storage data of different data types deleted by the predetermined user, and the target storage data can be restored within the target time period after deletion, so that management of the user for the deleted storage data of different data types and different time periods in which deletion can be restored is provided. And in the target storage space, the deleted target storage data is marked with a target time period so as to remind a user of the period for which the target storage data can be recovered.
As shown in fig. 5, an embodiment of the present invention further provides a mobile terminal 500, including:
a first receiving module 510, configured to receive a deletion input for target storage data;
a first response module 550, configured to respond to the deletion input, move the target storage data to a target storage space, and obtain a target data type to which the target storage data to be deleted belongs;
a determining module 530, configured to determine, according to the target data type, a target time period within which the target storage data can be recovered after being deleted;
wherein the target storage data in the target storage space is marked with mark information containing the target time period, and the target storage data in the target storage space can be recovered in the target time period.
Optionally, the response module 520 includes:
the response submodule is used for responding to the deletion input and acquiring the identity information of the operation user;
and the processing submodule is used for moving the target storage data to a target storage space and acquiring the target data type of the target storage data to be deleted under the condition that the identity information is matched with the identity information of a preset user.
Optionally, the tag information further includes at least one of the following:
deleting the input identity information of the operation user;
the input time of the input is deleted.
Optionally, the determining module 530 includes:
the first determining submodule is used for determining a preset attribute factor corresponding to the target data type;
and the second determining submodule is used for determining a target time period within which the target storage data can be recovered after being deleted according to a preset time period corresponding to the preset attribute factor.
Optionally, the second determining sub-module includes:
the acquisition unit is used for acquiring the attribute parameters of the target storage data corresponding to the preset attribute factors according to the preset attribute factors corresponding to the target data types;
and the determining unit is used for determining a target time period within which the target storage data can be recovered after being deleted according to the preset time period corresponding to the attribute parameters.
Optionally, the determining unit includes:
the calculating subunit is configured to calculate, according to a preset time period corresponding to the attribute parameter and a weight coefficient corresponding to the preset attribute factor, a weighted sum of the preset time periods corresponding to the attribute parameter;
and the processing subunit is configured to determine a weighted sum of preset time periods corresponding to the attribute parameters, and use the weighted sum as a target time when the target storage data can be restored after being deleted.
Optionally, the mobile terminal 500 further includes:
the reminding module is used for displaying first prompt information under the condition that the effective duration of the target storage data in the target storage space, which can be recovered, is lower than a preset threshold; the first prompt message is used for prompting a user whether to recover the deleted target storage data.
Optionally, the mobile terminal 500 further includes:
the second receiving module is used for receiving the first input;
the second response module is used for responding to the first input and acquiring the identity information of the operation user;
and the deleting module is used for deleting the target storage data in the target storage space under the condition that the identity information of the operating user is matched with the identity information of a preset user.
Optionally, the mobile terminal 500 further includes:
a third receiving module for receiving a second input;
the third response module is used for responding to the second input and acquiring the identity information of the operation user;
and the recovery module is used for recovering the deleted target storage data under the condition that the identity information of the operation user is matched with the identity information of a preset user.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
The mobile terminal 500 in the embodiment of the present invention receives a deletion input of target storage data; responding to the deletion input, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted; and determining a target time period within which the target storage data can be recovered after being deleted according to the target data type, wherein the target storage data in the target storage space can be recovered within the target time period. In this way, different target time periods can be set for target storage data of different data types, and the target storage data can be recovered in the target time period after being deleted, so that the user can manage different time periods capable of being recovered and deleted for the deleted storage data of different data types; and in the target storage space, the deleted target storage data is marked with marking information containing the target time period so as to remind a user of the period for which the target storage data can be recovered.
Fig. 6 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the user input unit 607 is configured to receive a deletion input for the target storage data;
the processor 610 is configured to respond to the deletion input, move the target storage data to a target storage space, and acquire a target data type to which the target storage data to be deleted belongs; determining a target time period within which the target storage data can be recovered after being deleted according to the type of the target data; wherein the target storage data in the target storage space is marked with mark information containing the target time period, and the target storage data in the target storage space can be recovered in the target time period.
The mobile terminal 600 in the embodiment of the present invention receives a deletion input of target storage data; responding to the deletion input, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted; and determining a target time period within which the target storage data can be recovered after being deleted according to the target data type, wherein the target storage data in the target storage space can be recovered within the target time period. In this way, different target time periods can be set for target storage data of different data types, and the target storage data can be recovered in the target time period after being deleted, so that the user can manage different time periods capable of being recovered and deleted for the deleted storage data of different data types; and in the target storage space, the deleted target storage data is marked with marking information containing the target time period so as to remind a user of the period for which the target storage data can be recovered.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program, when executed by the processor 610, implements each process of the data management method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the data management method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (15)

1. A method for managing data, comprising:
receiving a deletion input for the target storage data;
responding to the deletion input, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted;
determining a target time period within which the target storage data can be recovered after being deleted according to the type of the target data;
wherein the target storage data in the target storage space is marked with mark information containing the target time period, and the target storage data in the target storage space can be recovered in the target time period.
2. The data management method according to claim 1, wherein the moving the target storage data to a target storage space and obtaining a target data type to which the target storage data to be deleted belongs in response to the deletion input comprises:
responding to the deletion input, and acquiring identity information of an operating user;
and under the condition that the identity information is not matched with the identity information of a preset user, moving the target storage data to a target storage space, and acquiring the target data type of the target storage data to be deleted.
3. The data management method of claim 1, wherein the flag information further comprises at least one of:
deleting the input identity information of the operation user;
the input time of the input is deleted.
4. The data management method according to any one of claims 1 to 3, wherein the determining a target time period within which the target storage data can be restored after deletion according to the target data type includes:
determining preset attribute factors corresponding to the target data types;
and determining a target time period within which the target storage data can be recovered after being deleted according to a preset time period corresponding to the preset attribute factor.
5. The data management method according to claim 4, wherein the determining a target time period within which the target storage data can be restored after being deleted according to a preset time period corresponding to the preset attribute factor includes:
acquiring attribute parameters of the target storage data corresponding to the preset attribute factors according to the preset attribute factors corresponding to the target data types;
and determining a target time period within which the target storage data can be recovered after being deleted according to a preset time period corresponding to the attribute parameters.
6. The data management method according to claim 5, wherein the determining a target time period within which the target storage data can be restored after being deleted according to the preset time period corresponding to the attribute parameter includes:
calculating the weighted sum of the preset time periods corresponding to the attribute parameters according to the preset time periods corresponding to the attribute parameters and the weight coefficients corresponding to the preset attribute factors;
and determining the weighted sum of the preset time periods corresponding to the attribute parameters as the target time for restoring the target storage data after deletion.
7. The data management method of claim 1, further comprising:
under the condition that the effective duration of the target storage data in the target storage space which can be recovered is lower than a preset threshold, displaying first prompt information; the first prompt message is used for prompting a user whether to recover the deleted target storage data.
8. A mobile terminal, comprising:
a receiving module for receiving a deletion input for the target storage data;
the response module is used for responding to the deletion input, moving the target storage data to a target storage space and acquiring the target data type of the target storage data to be deleted;
the determining module is used for determining a target time period within which the target storage data can be recovered after being deleted according to the target data type;
wherein the target storage data in the target storage space is marked with mark information containing the target time period, and the target storage data in the target storage space can be recovered in the target time period.
9. The mobile terminal of claim 8, wherein the response module comprises:
the response submodule is used for responding to the deletion input and acquiring the identity information of the operation user;
and the processing submodule is used for moving the target storage data to a target storage space and acquiring the target data type of the target storage data to be deleted under the condition that the identity information is not matched with the identity information of a preset user.
10. The mobile terminal of claim 8, wherein the tag information further comprises at least one of:
deleting the input identity information of the operation user;
the input time of the input is deleted.
11. The mobile terminal according to any of claims 8 to 10, wherein the determining module comprises:
the first determining submodule is used for determining a preset attribute factor corresponding to the target data type;
and the second determining submodule is used for determining a target time period within which the target storage data can be recovered after being deleted according to a preset time period corresponding to the preset attribute factor.
12. The mobile terminal of claim 11, wherein the second determining submodule comprises:
the acquisition unit is used for acquiring the attribute parameters of the target storage data corresponding to the preset attribute factors according to the preset attribute factors corresponding to the target data types;
and the determining unit is used for determining a target time period within which the target storage data can be recovered after being deleted according to the preset time period corresponding to the attribute parameters.
13. The mobile terminal according to claim 12, wherein the determining unit comprises:
the calculating subunit is configured to calculate, according to a preset time period corresponding to the attribute parameter and a weight coefficient corresponding to the preset attribute factor, a weighted sum of the preset time periods corresponding to the attribute parameter;
and the processing subunit is configured to determine a weighted sum of preset time periods corresponding to the attribute parameters, and use the weighted sum as a target time when the target storage data can be restored after being deleted.
14. The mobile terminal of claim 8, further comprising:
the reminding module is used for displaying first prompt information under the condition that the effective duration of the target storage data in the target storage space, which can be recovered, is lower than a preset threshold; the first prompt message is used for prompting a user whether to recover the deleted target storage data.
15. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the data management method according to any one of claims 1 to 7.
CN201911171531.6A 2019-11-26 2019-11-26 Data management method and mobile terminal Pending CN110941592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911171531.6A CN110941592A (en) 2019-11-26 2019-11-26 Data management method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911171531.6A CN110941592A (en) 2019-11-26 2019-11-26 Data management method and mobile terminal

Publications (1)

Publication Number Publication Date
CN110941592A true CN110941592A (en) 2020-03-31

Family

ID=69908854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911171531.6A Pending CN110941592A (en) 2019-11-26 2019-11-26 Data management method and mobile terminal

Country Status (1)

Country Link
CN (1) CN110941592A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099715A (en) * 2020-09-23 2020-12-18 维沃移动通信有限公司 Information processing method and device
CN116466883A (en) * 2023-04-12 2023-07-21 上海威固信息技术股份有限公司 Distributed multi-source information acquisition and storage system and storage method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678677A (en) * 2013-12-25 2014-03-26 上海卓悠网络科技有限公司 Operation method and system of intelligent terminal
CN106570155A (en) * 2016-10-28 2017-04-19 努比亚技术有限公司 Image management device and method
CN106649472A (en) * 2016-09-27 2017-05-10 维沃移动通信有限公司 Picture management method and mobile terminal
CN106934052A (en) * 2017-03-16 2017-07-07 维沃移动通信有限公司 A kind of media text handling method and mobile terminal
CN108520057A (en) * 2018-04-08 2018-09-11 Oppo广东移动通信有限公司 Processing method, device, storage medium and the mobile terminal of terminal data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678677A (en) * 2013-12-25 2014-03-26 上海卓悠网络科技有限公司 Operation method and system of intelligent terminal
CN106649472A (en) * 2016-09-27 2017-05-10 维沃移动通信有限公司 Picture management method and mobile terminal
CN106570155A (en) * 2016-10-28 2017-04-19 努比亚技术有限公司 Image management device and method
CN106934052A (en) * 2017-03-16 2017-07-07 维沃移动通信有限公司 A kind of media text handling method and mobile terminal
CN108520057A (en) * 2018-04-08 2018-09-11 Oppo广东移动通信有限公司 Processing method, device, storage medium and the mobile terminal of terminal data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099715A (en) * 2020-09-23 2020-12-18 维沃移动通信有限公司 Information processing method and device
CN116466883A (en) * 2023-04-12 2023-07-21 上海威固信息技术股份有限公司 Distributed multi-source information acquisition and storage system and storage method thereof
CN116466883B (en) * 2023-04-12 2024-01-30 上海威固信息技术股份有限公司 Distributed multi-source information acquisition and storage system and storage method thereof

Similar Documents

Publication Publication Date Title
CN107580147B (en) Management method of notification message and mobile terminal
CN108491123B (en) Method for adjusting application program icon and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN108090126B (en) Image processing method and device, mobile terminal, image identification method and server
CN107977652B (en) Method for extracting screen display content and mobile terminal
CN111343081A (en) Information display method and electronic equipment
CN108616448B (en) Information sharing path recommendation method and mobile terminal
CN109005336B (en) Image shooting method and terminal equipment
CN108052819B (en) Face recognition method, mobile terminal and computer readable storage medium
CN108229574B (en) Picture screening method and device and mobile terminal
CN110618969B (en) Icon display method and electronic equipment
CN109508398B (en) Photo classification method and terminal equipment thereof
CN109412932B (en) Screen capturing method and terminal
CN111064654A (en) Message display method and electronic equipment
CN107728877B (en) Application recommendation method and mobile terminal
CN110795010B (en) Screen capturing method and terminal equipment thereof
CN110941592A (en) Data management method and mobile terminal
CN108200263B (en) Information processing method and device
CN107819936B (en) Short message classification method, mobile terminal and storage medium
CN107809515B (en) Display control method and mobile terminal
CN111290673B (en) Message processing method and electronic equipment
CN110099170B (en) Picture deleting method and mobile terminal
CN109714462B (en) Method for marking telephone number and mobile terminal thereof
CN109922209B (en) Photo management method and terminal equipment
CN108595104B (en) File processing method and terminal

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200331