CN107479971B - Data processing method, terminal and computer readable storage medium - Google Patents

Data processing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN107479971B
CN107479971B CN201710641679.6A CN201710641679A CN107479971B CN 107479971 B CN107479971 B CN 107479971B CN 201710641679 A CN201710641679 A CN 201710641679A CN 107479971 B CN107479971 B CN 107479971B
Authority
CN
China
Prior art keywords
terminal
specific data
data
application program
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710641679.6A
Other languages
Chinese (zh)
Other versions
CN107479971A (en
Inventor
王阳阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710641679.6A priority Critical patent/CN107479971B/en
Publication of CN107479971A publication Critical patent/CN107479971A/en
Application granted granted Critical
Publication of CN107479971B publication Critical patent/CN107479971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a data processing method, which comprises the following steps: determining an application program needing to process specific data in each application program of the terminal, wherein the specific data is used for representing data generated in a system space of the terminal when the corresponding application program runs; determining specific data satisfying a set condition among the determined specific data of each application program; deleting the specific data meeting the set conditions, or moving the specific data meeting the set conditions to a user space of the terminal; therefore, the purpose of releasing the system space in time can be achieved; the embodiment of the invention also discloses a terminal and a computer readable storage medium.

Description

Data processing method, terminal and computer readable storage medium
Technical Field
The present invention relates to data processing technologies, and in particular, to a data processing method, a terminal, and a computer-readable storage medium.
Background
The storage space of the terminal can be divided into two parts, wherein one part is a system space; the other part is user space; a user generally generates a large amount of data in the process of using an application program, namely, in the process of controlling the operation of the application program by a terminal, and one part of the generated data is stored in a user space and the other part of the generated data is stored in a system space; after long-time accumulation, more and more data are stored in the system space of the terminal, which results in that the remaining storage space of the system space is smaller and smaller, and further the terminal may be jammed during the operation of the application program.
Disclosure of Invention
In order to solve the foregoing technical problems, embodiments of the present invention provide a data processing method, a terminal, and a computer-readable storage medium, which can clear a system space occupied by an application according to an actual requirement, so as to achieve a purpose of releasing the system space in time.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a data processing method, which comprises the following steps:
determining an application program needing to process specific data in each application program of the terminal, wherein the specific data is used for representing data generated in a system space of the terminal when the corresponding application program runs;
determining specific data satisfying a set condition among the determined specific data of each application program;
and deleting the specific data meeting the set conditions, or moving the specific data meeting the set conditions to a user space of the terminal.
Optionally, the determining, among the application programs of the terminal, an application program that needs to process specific data includes:
determining a data amount of specific data generated in a unit time for each application of the terminal;
and for each determined data volume, determining N application programs corresponding to the maximum N data volumes as the application programs needing to process the specific data, wherein N is an integer which is set to be larger than 0.
Optionally, the determining, among the application programs of the terminal, an application program that needs to process specific data includes:
and determining the application program which acquires the authority of modifying the system space data as the application program which needs to process the specific data in each application program of the terminal.
Optionally, the setting conditions include: the time length between the generation time point of the specific data and the current time exceeds a set time length threshold.
Optionally, the deleting the specific data meeting the setting condition, or moving the specific data meeting the setting condition to a user space of the terminal includes:
generating first prompt information or second prompt information, wherein the first prompt information is used for prompting whether to delete the specific data meeting the set condition, and the second prompt information is used for prompting whether to move the specific data meeting the set condition;
when a data deleting instruction or a data moving instruction is received, deleting the specific data meeting the set condition based on the data deleting instruction; or, based on the data moving instruction, moving the specific data meeting the set condition to the user space of the terminal.
An embodiment of the present invention further provides a terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein,
the computer program when executed by the processor implementing the steps of:
determining an application program needing to process specific data in each application program of the terminal, wherein the specific data is used for representing data generated in a system space of the terminal when the corresponding application program runs;
determining specific data satisfying a set condition among the determined specific data of each application program;
and deleting the specific data meeting the set conditions, or moving the specific data meeting the set conditions to a user space of the terminal.
Optionally, when executed by the processor, the computer program implements the following steps:
determining a data amount of specific data generated in a unit time for each application of the terminal;
and for each determined data volume, determining N application programs corresponding to the maximum N data volumes as the application programs needing to process the specific data, wherein N is an integer which is set to be larger than 0.
Optionally, when executed by the processor, the computer program implements the following steps:
and determining the application program which acquires the authority of modifying the system space data as the application program which needs to process the specific data in each application program of the terminal.
Optionally, the setting conditions include: the time length between the generation time point of the specific data and the current time exceeds a set time length threshold.
Optionally, when executed by the processor, the computer program implements the following steps:
generating first prompt information or second prompt information, wherein the first prompt information is used for prompting whether to delete the specific data meeting the set condition, and the second prompt information is used for prompting whether to move the specific data meeting the set condition;
when a data deleting instruction or a data moving instruction is received, deleting the specific data meeting the set condition based on the data deleting instruction; or, based on the data moving instruction, moving the specific data meeting the set condition to the user space of the terminal.
An embodiment of the present invention further provides a computer-readable storage medium applied in a terminal, where the computer-readable storage medium stores a data processing program, and when the data processing program is executed by at least one processor, the at least one processor is caused to execute the steps of any one of the data processing methods.
In a data processing method, a terminal and a computer-readable storage medium provided by an embodiment of the present invention, first, in each application program of the terminal, an application program that needs to process specific data is determined, where the specific data is used to represent data generated in a system space of the terminal when a corresponding application program runs; then, among the determined specific data of each application program, specific data satisfying a set condition is determined; deleting the specific data meeting the set conditions, or moving the specific data meeting the set conditions to a user space of the terminal; therefore, the purpose of timely releasing the system space can be achieved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of prompting a user to set an N value in the data processing method according to the embodiment of the present invention;
FIG. 5 is a diagram illustrating a data processing method prompting a user to authorize an application according to an embodiment of the present invention;
fig. 6 is a schematic diagram of first prompt information displayed on a terminal in a data processing method according to an embodiment of the present invention;
fig. 7 is a schematic diagram of second prompt information displayed on the terminal in the data processing method according to the embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 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 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 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 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. 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 108 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 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program 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 109 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 110 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 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 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 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE System is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE System, but may be applied to other wireless communication systems, such as GSM (Global System for Mobile communication), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), and future new network systems, and the like.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
A first embodiment of the present invention proposes a data processing method that can be applied to a terminal in which an application is installed, and here, the type of the application and the like are not limited.
Here, the above-mentioned terminal may be a mobile terminal or a fixed terminal, and the above-mentioned terminal includes, but is not limited to, a mobile phone, a notebook computer, a camera, a PDA, a PAD, a PMP, a navigation device, and the like. The mobile terminal may be connected to the internet, wherein the connection may be made through a mobile internet network provided by an operator, or through a network connection accessed to a wireless access point.
Here, if the mobile terminal has an operating system, the operating system may be UNIX, Linux, Windows, Android (Android), Windows Phone, or the like.
It should be noted that the type, shape, size, and the like of the display screen on the mobile terminal are not limited, and the display screen on the mobile terminal may be a liquid crystal display screen, for example.
Fig. 3 is a flowchart of a data processing method according to an embodiment of the present invention, and as shown in fig. 3, the flowchart may include:
step 301: determining an application program needing to process specific data in each application program of the terminal, wherein the specific data is used for representing data generated in a system space of the terminal when the corresponding application program runs;
it can be understood that, for any application program, at runtime, corresponding data may be generated in the space of the system of the terminal, and at this time, these generated data may be referred to as specific data corresponding to the application program;
along with the gradual accumulation of the running time of each application program on the terminal, the system space of the terminal is occupied by more and more specific data, so that the application program needing to process the specific data can be determined through the step, and the subsequent process of clearing the specific data is facilitated.
Here, the application program to be processed with the specific data may be a part of the application programs of the terminal, or may be all the application programs installed in the terminal.
For example, the terminal is provided with 26 application programs, which are respectively recorded as application 1 to application 26, so that all of application 1 to application 26 can be used as application programs that need to process specific data; it is also possible to select a part of the application programs among the applications 1 to 26 as the application programs that need to process specific data.
In actual implementation, an application program selection strategy can be set, wherein the application program selection strategy is used for indicating a mode of determining an application program needing to process specific data; and then determining the application program needing to process the specific data according to the application program selection strategy.
In an alternative example, the application selection policy may be a policy that is set by a user according to actual needs, and in implementation, the application selection policy may be input into the terminal through a user input unit of the terminal.
In this step, the specific data may be processed by deleting the specific data in the system space, or moving the specific data from the system space to another storage space of the terminal.
Step 302: among the determined specific data of each application, specific data satisfying a set condition is determined.
It can be understood that, for each specific data of the application program, since it represents the data generated in the system space when the corresponding application program runs, the specific data of the application program is not all useless data, so that by determining the specific data satisfying the setting condition, the processing can be performed only on the specific data satisfying the setting condition, and the effectiveness and reliability of the data processing are improved.
For example, for the application 1, the specific data currently in the system space includes 100 data files, and data files satisfying the setting condition can be screened out from the 100 data files based on this step, where, in an alternative example, the screened out data files satisfying the setting condition may be 30 data files.
Alternatively, the setting condition may be set by a user of the terminal and input to the terminal through a user input unit of the terminal to be stored.
In practical implementation, this step may be implemented by a processor of the terminal, and preferably, the processor of the terminal periodically determines, among the determined specific data of each application, specific data that satisfies a set condition, so that by setting the determination period of the processor, consumption of computational resources of the processor of the terminal may be reduced.
Step 303: and deleting the specific data meeting the set conditions, or moving the specific data meeting the set conditions to a user space of the terminal.
That is, although there may be two processing methods described in this step for specific data satisfying the setting condition, the system space can be released regardless of which processing method is used.
Optionally, a processing manner for the specific data meeting the setting condition may be determined according to a user instruction;
optionally, a processing manner for the specific data meeting the setting condition may also be determined according to the size of the remaining storage space of the user space of the terminal; for example, when the size of the remaining storage space of the user space of the terminal exceeds a set threshold, moving the specific data meeting the set condition to the user space of the terminal; and conversely, when the size of the residual storage space of the user space of the terminal does not exceed the set threshold, deleting the specific data meeting the set condition.
In practical applications, the specific data meeting the set condition may be deleted under the control of the processor of the terminal, or the specific data meeting the set condition may be moved to the user space of the terminal under the control of the processor of the terminal.
It can be seen that, with the first embodiment of the data processing method of the present invention, first, among the application programs of the terminal, an application program that needs to process specific data is determined, where the specific data is used to represent data generated in a system space of the terminal when the corresponding application program runs; then, among the determined specific data of each application program, specific data satisfying a set condition is determined; deleting the specific data meeting the set conditions, or moving the specific data meeting the set conditions to a user space of the terminal; therefore, the purpose of timely releasing the system space can be achieved.
Second embodiment
In order to further embody the object of the present invention, the first embodiment of the present invention is further illustrated.
In the second embodiment of the present invention, the flow of the data processing method may include:
step 401: determining an application program needing to process specific data in each application program of the terminal, wherein the specific data is used for representing data generated in a system space of the terminal when the corresponding application program runs;
as for the implementation of determining the application program that needs to process the specific data, in example 1, the data amount of the specific data generated in a unit time may be determined for each application program of the terminal;
and for each determined data volume, determining N application programs corresponding to the maximum N data volumes as the application programs needing to process the specific data, wherein N is an integer which is set to be larger than 0.
Here, the unit time may be user-defined and then input into the terminal through a user input unit of the terminal; for example, the unit time may be 35 minutes, 3 hours, 5 days, 8 days, 7 hours, and so forth.
The value of N can be self-defined by a user and then is input into the terminal through a user input unit of the terminal; in actual implementation, prompt information can be displayed on a display screen of the terminal to prompt a user to set the value of N;
fig. 4 is a schematic diagram of prompting a user to set an N value in the data processing method according to the embodiment of the present invention, and as shown in fig. 4, a terminal display screen displays the following prompt information: and after inputting the numerical value, the user clicks a 'confirm' button to enable the terminal to receive the numerical value of the N set by the user.
Example 1 is described below with a specific example of an implementation of determining an application program that needs to process specific data.
The number of the application programs of the terminal is 30, the unit time is 2 hours, and the value of N is 5; then, the data volume generated within 2 hours of running each application program can be determined by running each application program; then, sequencing the data volume generated by running each application program for 2 hours, and taking the application program corresponding to the maximum 5 data volumes as the application program needing to process the specific data; in this way, the data generated in the system space can be cleaned only for 5 applications needing to process specific data.
It can be seen that, when the implementation manner of determining the application program that needs to process the specific data described in example 1 is adopted, the application program that needs to process the specific data may be determined according to the data volume of the specific data, instead of taking all the application programs of the terminal as the application programs that need to process the specific data, which is beneficial to reducing the subsequent data processing volume.
Meanwhile, the determined application program is the application program with larger data volume of the specific data generated in unit time, so that the number of the application programs needing to process the specific data can be reduced as much as possible, the capacity of system space release is improved, and the data processing efficiency is improved.
As for the implementation manner of determining the application program that needs to process the specific data, in example 2, among the application programs of the terminal, the application program that obtains the authority to modify the system space data is determined as the application program that needs to process the specific data.
Here, the right to modify the system space data is used to indicate a modification right to the data generated by the application program in the system space, that is, after the application program obtains the right to modify the system space data, the application program may modify the data generated by the application program in the system space when the application program is running.
Optionally, the authority to modify the system space data includes but is not limited to: read permissions, delete permissions, write permissions, etc.
In actual implementation, whether the application program can obtain the authority for modifying the system space data can be set by a user, and when the user sets a certain application program to obtain the authority for modifying the system space data, the user equivalently sends corresponding authorization information to the terminal, so that the terminal determines that the certain application program obtains the authority for modifying the system space data;
fig. 5 is a schematic diagram illustrating that the data processing method prompts a user to perform application program authorization according to the embodiment of the present invention, and as shown in fig. 5, a terminal display screen displays the following prompt information: please set the application program for obtaining the authority of modifying the system space data, and display the corresponding application program name on the display screen; in fig. 5, application 1, application 2 and application 3 represent 3 different application programs of the terminal, and the following omitted numbers represent other application programs not shown in fig. 5, and the corresponding application program can be selected by clicking; after all the application programs for acquiring the authority to modify the system space data are selected, the 'confirm' button can be clicked, so that the terminal receives all the application programs for acquiring the authority to modify the system space data, which are set by the user.
It can be seen that, when the implementation manner of determining the application program that needs to process the specific data described in example 2 is adopted, the application program that needs to process the specific data may be determined according to the user authorization information, instead of taking all the application programs of the terminal as the application programs that need to process the specific data, which is beneficial to reducing subsequent data processing amount.
Furthermore, when determining the application program for obtaining the authority to modify the system space data, the application program with the lowest importance degree or the application programs with the lowest priority degree can be selected as the application program for obtaining the authority to modify the system space data according to the preset importance ranking or priority ranking of each application program, so that the application program with the lowest importance degree can be reserved when the application program clears the data in the system space, and the normal operation of the application program with the higher importance degree can be effectively ensured; here, M may be an integer greater than 0 set by a user.
Step 402: the implementation of this step is the same as step 302, and is not described here again.
Step 403: the implementation of this step is the same as step 303, and is not described here again.
Third embodiment
In order to further embody the object of the present invention, the first embodiment of the present invention is further illustrated.
The flow of the data processing method of the second embodiment of the present invention may include:
step 501: the implementation of this step is the same as step 301, and is not described here again.
Step 502: determining specific data satisfying a set condition among the determined specific data of each application program;
here, the setting conditions may include: the time length between the generation time point of the specific data and the current time exceeds a set time length threshold.
It is understood that there is usually more than one specific data per application, and then the specific data meeting the set conditions can be screened out through the step; for example, if the specific data of a certain application is generated 2 months ago and the time length threshold is 40 days, the time length between the generation time point of the corresponding specific data and the current time exceeds the set time length threshold, which indicates that the corresponding specific data meets the set conditions; if the specific data of a certain application program is generated 1 month ago and the time length threshold is 40 days, the time length of the specific data corresponding to the generation time point and the current time does not exceed the set time length threshold, which indicates that the corresponding specific data is not the specific data meeting the set conditions.
Step 503: and deleting the specific data meeting the set conditions, or moving the specific data meeting the set conditions to a user space of the terminal.
Illustratively, the implementation manner of this step may be:
generating first prompt information or second prompt information, wherein the first prompt information is used for prompting whether to delete the specific data meeting the set condition, and the second prompt information is used for prompting whether to move the specific data meeting the set condition;
when a data deleting instruction or a data moving instruction is received, deleting the specific data meeting the set condition based on the data deleting instruction; or, based on the data moving instruction, moving the specific data meeting the set condition to the user space of the terminal.
Fig. 6 is a schematic diagram of first prompt information displayed on a terminal in a data processing method according to an embodiment of the present invention, and as shown in fig. 6, a display screen of the terminal displays the following first prompt information: "whether or not to delete the specific data satisfying the setting condition", and the following two selection buttons are displayed: "yes" and "no", which correspond to inputting a data deletion instruction to the terminal when the user clicks the "yes" button.
Fig. 7 is a schematic diagram of second prompt information displayed on a terminal in the data processing method according to the embodiment of the present invention, and as shown in fig. 7, the following second prompt information is displayed on a display screen of the terminal: "whether or not to move the specific data satisfying the setting condition", and the following two selection buttons are displayed: "yes" and "no", which correspond to inputting a data movement instruction to the terminal when the user clicks the "yes" button.
Third embodiment
Based on the same technical concept of the foregoing embodiments, a third embodiment of the present invention provides a terminal, where the terminal described above may be a mobile terminal or a fixed terminal, and the terminal described above includes, but is not limited to, a mobile phone, a notebook computer, a camera, a PDA, a PAD, a PMP, a navigation device, and so on. The mobile terminal may be connected to the internet, wherein the connection may be made through a mobile internet network provided by an operator, or through a network connection accessed to a wireless access point.
Here, the above-mentioned terminal may be a mobile terminal or a fixed terminal, and the above-mentioned terminal includes, but is not limited to, a mobile phone, a notebook computer, a camera, a PDA, a PAD, a PMP, a navigation device, and the like. The mobile terminal may be connected to the internet, wherein the connection may be made through a mobile internet network provided by an operator, or through a network connection accessed to a wireless access point.
Here, if the mobile terminal has an operating system, the operating system may be UNIX, Linux, Windows, Android (Android), Windows Phone, or the like.
It should be noted that the type, shape, size, and the like of the display screen on the mobile terminal are not limited, and the display screen on the mobile terminal may be a liquid crystal display screen, for example.
Referring to fig. 8, a terminal 80 according to an embodiment of the present invention is shown, which may include: a memory 801, a processor 802, and a computer program stored on the memory and executable on the processor, wherein,
determining an application program needing to process specific data in each application program of the terminal, wherein the specific data is used for representing data generated in a system space of the terminal when the corresponding application program runs;
determining specific data satisfying a set condition among the determined specific data of each application program;
and deleting the specific data meeting the set conditions, or moving the specific data meeting the set conditions to a user space of the terminal.
In practical applications, the Memory 801 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD), or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 802.
The Processor 802 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is to be understood that the electronic device for implementing the first processor function may be other electronic devices, and the embodiment of the present invention is not limited in particular.
It can be understood that, for any application program, at runtime, corresponding data may be generated in the space of the system of the terminal, and at this time, these generated data may be referred to as specific data corresponding to the application program;
along with the gradual accumulation of the running time of each application program on the terminal, the system space of the terminal is occupied by more and more specific data, so that the subsequent process of clearing the specific data can be conveniently carried out by determining the application program needing to process the specific data.
Here, the application program to be processed with the specific data may be a part of the application programs of the terminal, or may be all the application programs installed in the terminal.
For example, the terminal is provided with 26 application programs, which are respectively recorded as application 1 to application 26, so that all of application 1 to application 26 can be used as application programs that need to process specific data; it is also possible to select a part of the application programs among the applications 1 to 26 as the application programs that need to process specific data.
In actual implementation, an application program selection strategy can be set, wherein the application program selection strategy is used for indicating a mode of determining an application program needing to process specific data; and then determining the application program needing to process the specific data according to the application program selection strategy.
In an alternative example, the application selection policy may be a policy that is set by a user according to actual needs, and in implementation, the application selection policy may be input into the terminal through a user input unit of the terminal.
For example, the way of handling the specific data may be to delete the specific data in the system space, or to move the specific data from the system space to another storage space of the terminal.
It can be understood that, for each specific data of the application program, since it represents the data generated in the system space when the corresponding application program runs, the specific data of the application program is not all useless data, so that by determining the specific data satisfying the setting condition, the processing can be performed only on the specific data satisfying the setting condition, and the effectiveness and reliability of the data processing are improved.
For example, for the application 1, the specific data currently in the system space includes 100 data files, and the data files meeting the setting condition may be screened out from the 100 data files, where in an alternative example, the screened out data files meeting the setting condition may be 30 data files.
Alternatively, the setting condition may be set by a user of the terminal and input to the terminal through a user input unit of the terminal to be stored.
Preferably, the processor of the terminal periodically determines specific data satisfying the setting condition among the determined specific data of each application, so that by setting the determination period of the processor, it is possible to reduce consumption of computational resources of the processor of the terminal.
For the specific data satisfying the setting condition, the data processing may be performed by using two processing methods described in step 303, but the system space may be released by using any processing method.
Optionally, a processing manner for the specific data meeting the setting condition may be determined according to a user instruction;
optionally, a processing manner for the specific data meeting the setting condition may also be determined according to the size of the remaining storage space of the user space of the terminal; for example, when the size of the remaining storage space of the user space of the terminal exceeds a set threshold, moving the specific data meeting the set condition to the user space of the terminal; and otherwise, deleting the specific data meeting the set condition when the size of the residual storage space of the user space of the terminal does not exceed the set threshold.
In practical applications, the specific data meeting the set condition may be deleted under the control of the processor of the terminal, or the specific data meeting the set condition may be moved to the user space of the terminal under the control of the processor of the terminal.
Fourth embodiment
A fourth embodiment of the present invention provides a computer-readable medium based on the same technical concept as that of the previous embodiments, where a technical solution of the previous embodiments essentially or partially contributing to the prior art, or all or part of the technical solution, may be embodied in the form of a software product, where the computer software product is stored in a computer-readable storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method described in this embodiment. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Specifically, the computer program instructions corresponding to a data processing method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to a data processing method in the storage medium are read or executed by an electronic device, the method includes the following steps:
determining an application program needing to process specific data in each application program of the terminal, wherein the specific data is used for representing data generated in a system space of the terminal when the corresponding application program runs;
determining specific data satisfying a set condition among the determined specific data of each application program;
and deleting the specific data meeting the set conditions, or moving the specific data meeting the set conditions to a user space of the terminal.
Optionally, when the computer program instructions corresponding to the data processing method in the storage medium are read or executed by an electronic device, the method specifically includes the following steps:
determining a data amount of specific data generated in a unit time for each application of the terminal;
and for each determined data volume, determining N application programs corresponding to the maximum N data volumes as the application programs needing to process the specific data, wherein N is an integer which is set to be larger than 0.
Optionally, when the computer program instructions corresponding to the data processing method in the storage medium are read or executed by an electronic device, the method specifically includes the following steps:
and determining the application program which acquires the authority of modifying the system space data as the application program which needs to process the specific data in each application program of the terminal.
Optionally, the setting conditions include: the time length between the generation time point of the specific data and the current time exceeds a set time length threshold.
Optionally, when the computer program instructions corresponding to the data processing method in the storage medium are read or executed by an electronic device, the method specifically includes the following steps:
generating first prompt information or second prompt information, wherein the first prompt information is used for prompting whether to delete the specific data meeting the set condition, and the second prompt information is used for prompting whether to move the specific data meeting the set condition;
when a data deleting instruction or a data moving instruction is received, deleting the specific data meeting the set condition based on the data deleting instruction; or, based on the data moving instruction, moving the specific data meeting the set condition to the user space of the terminal.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 (8)

1. A method of data processing, the method comprising:
determining an application program needing to process specific data in each application program of the terminal, wherein the specific data is used for representing data generated in a system space of the terminal when the corresponding application program runs;
determining specific data satisfying a set condition among the determined specific data of each application program;
when the size of the residual storage space of the user space of the terminal exceeds a set threshold, moving the specific data meeting the set condition to the user space of the terminal; when the size of the residual storage space of the user space of the terminal does not exceed the set threshold, deleting the specific data meeting the set condition;
among the application programs of the terminal, determining an application program which needs to process specific data includes:
and determining the application programs for obtaining the authority of modifying the system space data in each application program of the terminal, and determining the M application programs with the lowest importance degree as the application programs needing to process the specific data according to the preset importance sequence of each application program, wherein M is an integer which is set by a user and is larger than 0.
2. The method according to claim 1, wherein the determining, among the applications of the terminal, an application that needs to process specific data includes:
determining a data amount of specific data generated in a unit time for each application of the terminal;
and for each determined data volume, determining N application programs corresponding to the maximum N data volumes as the application programs needing to process the specific data, wherein N is an integer which is set to be larger than 0.
3. The method according to claim 1, wherein the setting conditions include:
the time length between the generation time point of the specific data and the current time exceeds a set time length threshold.
4. The method according to claim 1 or 3, wherein the deleting the specific data meeting the set condition or moving the specific data meeting the set condition to a user space of the terminal comprises:
generating first prompt information or second prompt information, wherein the first prompt information is used for prompting whether to delete the specific data meeting the set condition, and the second prompt information is used for prompting whether to move the specific data meeting the set condition;
when a data deleting instruction or a data moving instruction is received, deleting the specific data meeting the set condition based on the data deleting instruction; or, based on the data moving instruction, moving the specific data meeting the set condition to the user space of the terminal.
5. A terminal, characterized in that the terminal comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein,
the computer program when executed by the processor implementing the steps of:
determining an application program needing to process specific data in each application program of the terminal, wherein the specific data is used for representing data generated in a system space of the terminal when the corresponding application program runs;
determining specific data satisfying a set condition among the determined specific data of each application program;
when the size of the residual storage space of the user space of the terminal exceeds a set threshold, moving the specific data meeting the set condition to the user space of the terminal; when the size of the residual storage space of the user space of the terminal does not exceed the set threshold, deleting the specific data meeting the set condition;
wherein the computer program when executed by the processor specifically implements the steps of:
and determining the application programs for obtaining the authority of modifying the system space data in each application program of the terminal, and determining the M application programs with the lowest importance degree as the application programs needing to process the specific data according to the preset importance sequence of each application program, wherein M is an integer which is set by a user and is larger than 0.
6. A terminal according to claim 5, characterized in that the computer program, when being executed by the processor, embodies the steps of:
determining a data amount of specific data generated in a unit time for each application of the terminal;
and for each determined data volume, determining N application programs corresponding to the maximum N data volumes as the application programs needing to process the specific data, wherein N is an integer which is set to be larger than 0.
7. The terminal according to claim 5, wherein the setting condition comprises: the time length between the generation time point of the specific data and the current time exceeds a set time length threshold.
8. A computer-readable storage medium applied to a terminal, the computer-readable storage medium storing a data processing program,
the data processing program, when executed by at least one processor, causes the at least one processor to perform the steps of the data processing method of claim 1, 2 or 4.
CN201710641679.6A 2017-07-31 2017-07-31 Data processing method, terminal and computer readable storage medium Active CN107479971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710641679.6A CN107479971B (en) 2017-07-31 2017-07-31 Data processing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710641679.6A CN107479971B (en) 2017-07-31 2017-07-31 Data processing method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107479971A CN107479971A (en) 2017-12-15
CN107479971B true CN107479971B (en) 2021-01-01

Family

ID=60598060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710641679.6A Active CN107479971B (en) 2017-07-31 2017-07-31 Data processing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107479971B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104541252A (en) * 2012-05-20 2015-04-22 简易存储有限公司 Server-based hierarchical mass storage system
CN106502783A (en) * 2016-09-23 2017-03-15 深圳市金立通信设备有限公司 A kind of EMS memory management process and terminal device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2881306B1 (en) * 2005-01-21 2007-03-23 Meiosys Soc Par Actions Simpli METHOD FOR NON-INTRUSIVE JOURNALIZATION OF EXTERNAL EVENTS IN AN APPLICATION PROCESS, AND SYSTEM IMPLEMENTING SAID METHOD
JP4699842B2 (en) * 2005-09-06 2011-06-15 株式会社日立製作所 Storage apparatus and data migration method
CN103823812A (en) * 2012-11-19 2014-05-28 苏州工业园区新宏博通讯科技有限公司 System data management method
CN104035769A (en) * 2014-05-30 2014-09-10 北京金山安全软件有限公司 Processing method and device for space shortage
CN105574163A (en) * 2015-12-16 2016-05-11 北京金山安全软件有限公司 File processing method and device and electronic equipment
CN106294576B (en) * 2016-07-28 2021-07-16 Tcl科技集团股份有限公司 Method and system for cleaning storage space of android system
CN106249898A (en) * 2016-08-12 2016-12-21 北京金山安全软件有限公司 Prompting method and device for insufficient storage space and mobile device
CN106790581B (en) * 2016-12-28 2020-12-22 深圳天珑无线科技有限公司 Application data processing method and device and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104541252A (en) * 2012-05-20 2015-04-22 简易存储有限公司 Server-based hierarchical mass storage system
CN106502783A (en) * 2016-09-23 2017-03-15 深圳市金立通信设备有限公司 A kind of EMS memory management process and terminal device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
详解Windows系统中如何释放C盘空间;mosoft;《https://blog.csdn.net/mosoft/article/details/426519》;20050716;第1-8页 *

Also Published As

Publication number Publication date
CN107479971A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN107247746B (en) Data sharing method and terminal
CN107885458B (en) Disk fragment sorting method, terminal and computer-readable storage medium
US20200374665A1 (en) Short Message Processing Method and Apparatus, and Electronic Device
US11061857B2 (en) Data processing method and device
US10437519B2 (en) Method and mobile terminal for processing write request
CN105490919A (en) Message withdrawal method and device
CN106658753B (en) Data migration method and terminal equipment
CN106161931A (en) The method and device of image preview
US20190370009A1 (en) Intelligent swap for fatigable storage mediums
US11704240B2 (en) Garbage data scrubbing method, and device
CN105893471B (en) Data processing method and electronic equipment
CN108228339B (en) Memory recovery method and device, terminal equipment and computer readable storage medium
CN107464215B (en) Image processing method and terminal based on electronic map
WO2021254200A1 (en) Page thrashing protection method and apparatus for memory reclaim of operating system
CN108833717B (en) Information cleaning method and device, mobile terminal and computer readable storage medium
CN105988715A (en) Data storage method and device
CN107479971B (en) Data processing method, terminal and computer readable storage medium
CN106844057B (en) Data processing method and device and mobile terminal
CN109284110B (en) Terminal application replacement method, terminal and computer readable storage medium
KR100797122B1 (en) Apparatus of processing file using portable storage media in portable terminal and method thereof
CN110489177A (en) Application control method, apparatus, storage medium and terminal device
CN115840736A (en) File sorting method, intelligent terminal and computer readable storage medium
CN115061787A (en) Application processing method, intelligent terminal and storage medium
CN107577507A (en) One kind applies delet method and device
CN115185597A (en) Processing method, intelligent terminal and storage medium

Legal Events

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