CN112817923A - Application program data processing method and device - Google Patents

Application program data processing method and device Download PDF

Info

Publication number
CN112817923A
CN112817923A CN202110192910.4A CN202110192910A CN112817923A CN 112817923 A CN112817923 A CN 112817923A CN 202110192910 A CN202110192910 A CN 202110192910A CN 112817923 A CN112817923 A CN 112817923A
Authority
CN
China
Prior art keywords
file
target
files
deletion
target file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110192910.4A
Other languages
Chinese (zh)
Other versions
CN112817923B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110192910.4A priority Critical patent/CN112817923B/en
Publication of CN112817923A publication Critical patent/CN112817923A/en
Application granted granted Critical
Publication of CN112817923B publication Critical patent/CN112817923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices
    • 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/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides an application program data processing method and device. The method comprises the following steps: acquiring a data volume threshold corresponding to a file type to which a target file belongs in a target application program and an available storage amount of electronic equipment in which the target application program is located; and when the available storage capacity is smaller than the data volume threshold corresponding to the target file type, executing deletion operation on target files which are locally stored in the electronic equipment and meet the set attribute, wherein the target files meeting the set attribute comprise the target files corresponding to the target file type. The dynamic limitation on the use of the storage resources is realized, and the problem that a user selects to permanently uninstall the application program due to the fact that the storage space occupied by the application program is large is avoided to a certain extent.

Description

Application program data processing method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing application data.
Background
Along with the iteration of the service capability of an application program (APP) and the increase of the use time of a user, the storage space occupied by the APP becomes larger and larger, which easily causes the problems that the residual space of the terminal of the user is insufficient or the size of the APP exceeds the expected value of the user. And then lead to the user to choose to uninstall APP forever, or through frequently uninstalling and reinstalling APP in order to reduce the memory space that APP occupy, reach the purpose of retrieving memory space. Therefore, a data processing method for solving the problem of excessive storage space occupied by the APP is needed.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method and an apparatus for processing application data, which avoid the problem of permanently uninstalling an application selected by a user due to a large storage space occupied by the application to a certain extent. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided an application data processing method, including:
acquiring a data volume threshold corresponding to a file type to which a target file belongs in a target application program and an available storage amount of electronic equipment in which the target application program is located;
and when the available storage capacity is smaller than the data volume threshold corresponding to the target file type, executing deletion operation on target files which are locally stored in the electronic equipment and meet the set attribute, wherein the target files meeting the set attribute comprise the target files corresponding to the target file type.
Optionally, the executing a deletion operation on the target file meeting the set attribute and locally stored in the electronic device includes: and deleting the target file which accords with the set attribute.
Optionally, the executing a deletion operation on the target file meeting the set attribute and locally stored in the electronic device includes:
executing deletion prompt information pushing;
and responding to a deletion confirmation instruction, deleting the target file which accords with the set attribute, wherein the deletion confirmation instruction is generated based on the deletion prompt information.
Optionally, before the executing the deleting operation on the target file meeting the set attribute and stored locally in the electronic device, the method further includes: obtaining a deletion policy, wherein the deletion policy comprises: the file identification and/or the deletion prompt information of the target file which corresponds to the target file type and accords with the set attribute are/is obtained, wherein the deletion policy is pre-stored information or is information received from a server;
the executing the deleting operation on the target file which is locally stored in the electronic equipment and accords with the set attribute comprises the following steps: and executing deletion operation on the target file which accords with the set attribute based on the deletion strategy.
Optionally, the file category is determined based on the importance level of the target file, and the target file meeting the set attribute further includes: and the target file corresponding to the file category with the importance level lower than the target importance level is the importance level of the target file category.
Optionally, the executing a deletion operation on the target file meeting the set attribute and locally stored in the electronic device includes:
and executing deletion operation on a target file with set data size in the target files conforming to the set attributes, wherein the set data size is in negative correlation with the data size threshold.
Optionally, the executing a deletion operation on the target file meeting the set attribute and locally stored in the electronic device includes:
and executing deletion operation on a first number of first target files and a second number of second target files in the target files conforming to the set attributes, wherein the first target files are target files corresponding to the target file types, the second target files are target files corresponding to the file types with the importance levels lower than the target importance levels, and the first number is smaller than the second number.
Optionally, the target file meeting the set attribute includes at least one of the following files:
and caching the downloaded multimedia file, the page cache data file, the target application cache picture file, the target application cache video file and the user behavior log file aiming at the target application.
Optionally, the number of the file categories is multiple, and when the file categories are determined based on the importance levels of the target files, the data amount threshold corresponding to the file categories is negatively correlated with the importance levels of the target files corresponding to the file categories.
Optionally, the available storage of the electronic device includes an available storage of a local storage of the electronic device and/or an available storage of a cloud storage corresponding to the electronic device.
In a second aspect of the present invention, there is also provided an application data processing apparatus, comprising:
the acquisition module is used for acquiring a data volume threshold corresponding to a file type to which a target file belongs in a target application program and an available memory space of electronic equipment where the target application program is located;
and the execution module is used for executing deletion operation on the target files which are locally stored in the electronic equipment and accord with the set attributes when the available storage capacity is smaller than the data volume threshold corresponding to the target file type, wherein the target files which accord with the set attributes comprise the target files corresponding to the target file type.
In a third aspect of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor adapted to perform the method steps of any of the above first aspects when executing a program stored in the memory.
In a fourth aspect implemented by the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the application data processing method of any one of the above first aspects.
In a fifth aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for processing application data according to any one of the above first aspects.
According to the application program data processing method and device provided by the embodiment of the invention, the data volume threshold corresponding to the file type to which the target file belongs in the target application program is obtained, and the available storage volume of the electronic equipment in which the target application program is located is obtained, so that when the available storage volume is smaller than the data volume threshold corresponding to the target file type, the target file which is locally stored in the electronic equipment and accords with the set attribute is deleted, the target file which accords with the set attribute comprises the target file corresponding to the target file type, the use of the storage resource of the electronic equipment is controlled, the probability that the storage resource is excessively occupied by the application program is reduced, and the probability that the storage space occupied by the application program is excessively reduced is also reduced. The problem that the user selects the permanently uninstalled application program due to the fact that the storage space occupied by the application program is large is avoided to a certain extent, and the user retention rate and the user experience are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a block diagram of a data processing system according to an embodiment of the present invention;
fig. 2 is a flowchart of an application data processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for processing application data according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for determining a data amount threshold corresponding to a file type according to an embodiment of the present invention;
FIG. 5 is a flowchart of another method for processing application data according to an embodiment of the present invention;
fig. 6 is a sandbox directory interface diagram of an application according to an embodiment of the present invention;
FIG. 7 is a diagram of a directory interface for a folder provided by an embodiment of the present invention;
FIG. 8 is a diagram of a property interface for a file folder according to an embodiment of the present invention;
FIG. 9 is a diagram of a directory interface of a data folder according to an embodiment of the present invention;
FIG. 10 is an interface diagram of a file G according to an embodiment of the present invention;
FIG. 11 is a diagram of a directory interface of a data folder according to an embodiment of the present invention;
FIG. 12 is a block diagram of an application data processing apparatus according to an embodiment of the present invention;
fig. 13 is a structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
With the iteration of the service capability of an Application (APP) and the increase of the use time of the APP, the storage space occupied by the APP becomes larger and larger, which easily causes the problems that the local remaining space of the electronic device of the user is insufficient or the size of the APP exceeds the user's expected value. And then the user selects to uninstall the application program permanently or to reduce the storage space occupied by the application program by frequently uninstalling and reinstalling the application program, so as to achieve the purpose of recovering the storage space. Therefore, a data processing method for reducing the memory space occupied by the application program is needed.
For example, in ios (a mobile operating system), applications are typically written based on Objective-C (a computer programming language). Applications may require more files (also known as disk storage files) as the business is continually iterated and as users age. For example, a data interchange format (JavaScript Object notification, JSON) file, a property list (plist) file, a database file, a log (log) file, a cache (cache) file, a picture file, a video file, and the like. These files may occupy a large amount of the available storage of the storage space of the terminal. The storage space includes local storage and cloud storage (for example, the cloud storage is iCloud or iTunes), and the available storage of the terminal may be available storage of the local storage and available storage of the cloud storage.
Referring to fig. 1, a block diagram of a data processing system according to an embodiment of the present invention is shown. The data processing system may include: a terminal (also called front end) 101 and a server (also called back end) 102 connected to the terminal network. Among them, the terminal 101 may be an electronic device such as a mobile phone, a Personal Computer (PC), or a tablet computer. The server 102 may include one or more servers, or may be a server cluster, etc. The network to which the terminal 101 and the server 102 are connected may be a wireless network (wireless network). The wireless network may include: wireless fidelity network, 3rd-generation (3G) mobile communication technology network, or General Packet Radio Service (GPRS) network.
Wherein the terminal 101 may have a local memory space. The server 101 may have a cloud storage space allocated for use by the terminal 101. The cloud storage space allocated to the terminal for use by the server may be referred to as cloud storage corresponding to the terminal 101. The server 101 may also be configured to send a deletion policy to the terminal 101, where the deletion policy is used for the terminal to perform a deletion operation on a locally stored target file that meets the set attribute. The terminal 101 may be installed with a target application. The target application may be a video application or the like.
Optionally, the target application may also be installed on the server 101. Accordingly, the terminal does not need to be installed with the target application program. The server 101 may be configured to run the target application, and transmit running data such as the rendered image data and/or audio data to the terminal 102, so as to provide a service corresponding to the target application for the terminal 102.
Referring to fig. 2, a flowchart of an application data processing method according to an embodiment of the present invention is shown. The application data processing method can be applied to the data processing system provided by the invention and can be executed by electronic equipment. The electronic device is a device installed with a target application program, and may be a terminal or a server of the data processing system shown in fig. 1. As shown in fig. 2, the application data processing method may include:
step 201, acquiring a data volume threshold corresponding to a file type to which a target file belongs in a target application program.
The target application may be any application, for example, an application applied to ios. The target file in the target application program refers to a deletable file in the application program, that is, a file whose deletion of the target file does not affect the function of the application program, or whose loading time is lower than a time threshold. For example, the target file may be a video file, a book file, a comic file, and the like that are downloaded by a user cache in the application program, a cache data file that is loaded on a page such as a jump page in the application program, a file that records a user behavior log, and the like. It will be appreciated that the number of target files for a target application is typically multiple.
In the embodiment of the invention, the target file of the target application program can belong to at least two file categories. That is, the number of file categories into which the target file can be divided in the application program may be two or more. Alternatively, the file category may be determined based on the importance level classification of each target file in the target application program, or may be determined based on the importance level classification and the file size classification of each target file in the target application program. Of course, the file category level may also be determined based on the classification conditions under different actual requirements, which is not limited in the embodiment of the present invention. Each of the at least two file categories corresponds to a different data volume threshold, and the data volume threshold is used for calibrating different available memory capacities of the electronic device where the target application program is located.
Optionally, the electronic device may respond to the setting operation to obtain a data amount threshold corresponding to a file type to which the target file belongs in the target application program. Wherein the setting operation may be an operation determined based on business logic of an actual target application. For example, the setting operation may be starting, closing, entering of a target interface, clicking of a target button, a target time range, a check timestamp, or the like of the target application. It should be noted that, when the application data processing method is executed by the server, the setting operation may further include a set time and the like.
Step 202, obtaining the available storage capacity of the electronic device where the target application program is located.
The electronic device where the target application program is located can obtain the current available storage capacity of the electronic device. Optionally, the electronic device may include local storage (local disk storage) and its corresponding cloud storage. The available storage capacity of the electronic device may include an available storage capacity of local storage of the electronic device and/or an available storage capacity of cloud storage corresponding to the electronic device, that is, only the available storage capacity of local storage of the electronic device may be obtained, only the available storage capacity of cloud storage of the electronic device may be obtained, or both the available storage capacity of local storage of the electronic device and the available storage capacity of cloud storage of the electronic device may be obtained.
And 203, when the available storage amount is smaller than the data amount threshold corresponding to the target file type, executing deletion operation on the target files which are locally stored in the electronic equipment and meet the set attributes, wherein the target files meeting the set attributes comprise the target files corresponding to the target file type.
Optionally, if the number of the file categories is two or more, when the target file category is a different file category of the at least two file categories, the target files that meet the set attribute and execute the deletion operation are also different, so that the limitation degree on the use of the storage resource of the electronic device is also different. The target file category may be any one of at least two file categories. When the available storage capacity is smaller than the data volume threshold corresponding to different file types, the deletion operation can be executed on different target files meeting the set attribute, so as to realize different restrictions on the use of the storage resources of the electronic equipment. Due to the fact that the deleting operation can be executed on different files based on the current actual available storage capacity of the terminal and the data quantity threshold values corresponding to different file types. Therefore, the dynamic limitation on the use of the storage resources is realized, and the flexibility of the adjustment of the storage resources is improved.
When the available storage amount is the available storage amount of the local storage of the electronic equipment, executing deletion operation on different target files meeting set attributes in the local storage of the terminal so as to realize the limitation of the terminal on the use of the storage resources of the local storage. When the available storage amount is the available storage amount of the cloud storage corresponding to the electronic device, the number of the target files backed up and stored in the cloud storage corresponding to the electronic device can be realized by executing deletion operation on different target files meeting set attributes in the local storage of the terminal under the condition that the function of the cloud storage backup target application program is started, and the occupation of storage resources of the cloud storage is reduced.
Optionally, in a case that the file category is determined based on the importance level of the target file, the target file that meets the set attribute further includes: and the importance level is lower than the target document corresponding to the document category of the target importance level. The target importance level is that the target files of which the importance levels of the target file categories meet the set attributes comprise the target files corresponding to the target file categories.
Exemplary target files that meet the set attributes include at least one of the following: the method comprises the steps of caching downloaded multimedia files, page cache data files, target application cache picture files, target application cache video files and user behavior log files aiming at a target application.
In this embodiment of the present invention, the executing the deleting operation on the target file meeting the set attribute and locally stored in the electronic device may include: and deleting the target file conforming to the set attribute so as to release the storage resource occupied by the target file conforming to the set attribute. And/or, executing the deletion operation on the target file meeting the set attribute and stored locally by the electronic device may also include: and executing deletion prompt information pushing. And in response to the deletion confirmation instruction, deleting the target file which conforms to the set attribute. The confirmation deletion instruction is generated based on the deletion prompt information. The deleting operation realizes the purposes of guiding the user to delete the target file which corresponds to the target file type and accords with the set attribute and releasing the changed storage resource occupied by the target file by executing the pushing operation of the deleting prompt message. Alternatively, the confirmation deletion instruction may be an instruction generated after receiving a first setting operation for the deletion prompt information. The first setting operation may be a click operation, a long press operation, a slide operation, or the like.
When the execution main body of the application data processing method is the electronic device, executing the deletion prompt information push may include displaying the deletion prompt information. The electronic device may generate a confirmation deletion instruction upon receiving a first setting operation for the deletion prompt information. And thus, in response to the confirmation deletion instruction, the target file conforming to the set attribute is deleted. When the execution main body of the application data processing method is the server, executing deletion prompt information push may include sending deletion prompt information to the electronic device connected thereto, so that the electronic device displays the deletion prompt information, and when receiving a first setting operation for deleting the prompt information, the electronic device generates and sends a deletion confirmation instruction to the server. After receiving the deletion confirmation instruction, the server may respond to the deletion confirmation instruction to delete the target file meeting the set attribute.
In the embodiment of the invention, when the current actual available storage capacity of the electronic equipment is less than the data volume threshold corresponding to different file types, the deletion operation can be executed on the target file conforming to the set attribute, so that the use of the local storage resource of the electronic equipment can be limited to different degrees. Therefore, the dynamic limitation on the use of the storage resources of the electronic equipment is realized, namely, the size of the storage space occupied by the application program can be dynamically adjusted, and the flexibility of adjusting the storage resources is improved.
In summary, in the application data processing method provided in the embodiment of the present invention, by obtaining the data amount threshold corresponding to the file type and obtaining the available storage amount of the electronic device where the target application is located, when the available storage amount is smaller than the data amount threshold corresponding to the target file type, a deletion operation may be performed on a target file that is locally stored in the electronic device and meets the set attribute, where the target file that meets the set attribute includes a target file that corresponds to the target file type. The technical scheme of the embodiment of the invention can realize the use control of the storage resources of the electronic equipment, and reduce the probability of the overlarge storage resource occupied by the application program, namely reduce the probability of the overlarge storage space occupied by the application program. The problem that the user selects the permanently uninstalled application program due to the fact that the storage space occupied by the application program is large is avoided to a certain extent, and the user retention rate and the user experience are improved.
Referring to fig. 3, a flowchart of another application data processing method according to an embodiment of the present invention is shown. The application data processing method can be applied to the data processing system provided by the embodiment of the invention. The embodiment shown in fig. 3 is described by taking the example that the terminal dynamically restricts its local storage resources. As shown in fig. 3, the application data processing method may include:
and (3) a limiting stage:
step 301, the terminal obtains a data volume threshold corresponding to a file type to which a target file belongs in the target application program.
The explanation and implementation of step 301 may refer to the explanation and implementation of step 201, which is not limited by the embodiment of the present invention. In addition, the embodiment of the present invention is described by taking the number of the file categories as at least two.
Optionally, the data amount threshold corresponding to each file category may be determined by the server. The terminal may receive the data amount threshold corresponding to each file type sent by the server, so as to obtain the data amount threshold corresponding to each file type. For example, the terminal may receive, through its start interface with the server, a data amount threshold corresponding to each file category sent by the server to the terminal in response to the start of the target application.
Step 302, the terminal acquires the available storage amount of the local storage of the terminal where the target application program is located.
And 303, when the available storage amount of the local storage is smaller than the data amount threshold corresponding to the target file type, the terminal sends processing request information to the server, wherein the processing request information comprises indication information for indicating the target file type.
Optionally, the indication information indicating the target file category included in the processing request information may be a category identifier of the target file category, where the category identifier is used to uniquely identify the file category.
In the embodiment of the present invention, when the data amount threshold corresponding to each file category is different, the indication information of the target file category may be the data amount threshold corresponding to the target file category.
And step 304, the server side obtains an execution strategy, wherein the execution strategy comprises file identification and/or deletion prompt information of the target file which corresponds to different file types and accords with the set attribute.
The server side can obtain the execution strategy after receiving the processing request information sent by the terminal. The execution strategy comprises the following steps: and in at least two file categories to which the target file belongs, the file identifier and/or the deletion prompt information of the target file which is corresponding to each different file category and accords with the set attribute are/is corresponding.
In the embodiment of the present invention, the file identifier of the target file may be a storage path of the target file. The deletion prompt information may be used to prompt the user of the terminal to delete the target file that meets the set attribute. The target file corresponding to any file category and meeting the set attribute can comprise: the target file corresponding to any file category. Wherein any one of the file categories may correspond to one or more target files. When the any file corresponds to a plurality of target files, the plurality of target files may be a plurality of target files that are sorted from the file size to the top in the target files corresponding to the any file type.
Optionally, in a case that the file category is determined based on the importance level of the target file, the target file corresponding to any file category and meeting the set attribute may further include: and the importance level is lower than the target document corresponding to the document category of the target importance level. The target importance level is an importance level of the target document category.
For example, it is assumed that the importance levels of the target file may include a first level, a second level, and a third level of decreasing importance in order.
The first level is used to reflect the general importance of the target file to the target application. After the target file corresponding to the first level is deleted, the target application program can run, and the core function of the target application program is not affected. The target files corresponding to the first level may include video files, book files, comic files, and the like, which are downloaded by the user using the target application.
The second level is used to reflect that the target file is less important to the target application. After the target file corresponding to the second level is deleted, the target application program can run normally and has almost no influence on the user. The target file corresponding to the second level may be a file that may be reloaded by a brief time below a time threshold. For example, the target files corresponding to the second level may include a page cache data file, a target application cache picture file, a target application cache video file, and the like.
The third level is used to reflect that the target file is of low importance to the target application. The target file corresponding to the third level may be a file that is not perceived by the user. After the target file corresponding to the third level is deleted, the target application program can run normally and the use of the user is not influenced at all. The target file corresponding to the third level may include a file for recording a user behavior log, and the like.
If the target files corresponding to the first level belong to the same file category, the target files corresponding to the second level belong to the same file category, and the target files corresponding to the third level belong to the same file category, the determined at least two file categories may include: a first file category, a second file category, and a third file category. The importance levels corresponding to the first file category, the second file category and the third file category are sequentially reduced and respectively are a first level, a second level and a third level. The target file corresponding to the first file category at least comprises: the downloaded multimedia file is cached for the target application. The target files corresponding to the second file category at least comprise: the system comprises a page cache data file, a target application program cache picture file and a target application program cache video file. The target files corresponding to the third file category at least comprise: a user behavior log file.
For example, the target file corresponding to the first file category may further include: the system comprises a page cache data file, a target application program cache picture file, a target application program cache video file and a user behavior log file. The target file corresponding to the second file category may further include: a user behavior log file.
Optionally, the execution policy may include: and in the at least two file categories, the file identifier of the target file which is in accordance with the set attribute and corresponds to one part of file categories, the deletion prompt information and the file identifier of the target file which is in accordance with the set attribute and corresponds to the other part of file categories are used for prompting a user of the terminal to delete the target file which is in accordance with the set attribute and corresponds to the file category.
In the embodiment of the invention, the target file has the corresponding importance level. And the higher the importance level of the target file is, the greater the importance of the target file to the target application program is indicated. Therefore, if the file type is determined based on the importance level of the target file, if the importance level corresponding to the file type is higher than the first level threshold, the deletion prompting information corresponding to the file type and the file identifier of the target file meeting the set attribute are executed in the policy, so that the user is guided to delete the target file meeting the set attribute by using the deletion prompting information subsequently. And if the importance level corresponding to the file type is lower than the second level threshold, executing the file identification of the target file corresponding to the file type and meeting the set attribute in the strategy. The second level threshold is lower than or equal to the first level threshold.
For example, assume that the at least two file categories may include a first file category, a second file category, and a third file category. And the importance level corresponding to the first file category is higher than a first level threshold, and the importance levels corresponding to the second file category and the third file category are sequentially reduced and are both lower than a second level threshold. The enforcement policy may include: the file deletion method comprises the steps of deleting prompt information corresponding to a first file type, file identification of a target file meeting set attributes, corresponding to a second file type, file identification of a target file meeting set attributes, corresponding to a third file type, and file identification of a target file meeting set attributes, corresponding to a third file type.
In the embodiment of the invention, the target files corresponding to each file type and conforming to the set attributes can be modified by personnel such as users, developers and the like according to actual conditions, so that the flexibility of configuring the target files conforming to the set attributes is improved, and personalized setting is realized.
Step 305, the server determines a deletion policy based on the processing request information and the execution policy. The deletion strategy comprises file identification and/or deletion prompt information of the target file which is corresponding to the target file type and accords with the set attribute.
In the embodiment of the present invention, the server may generate, based on the target file category included in the processing request information and the execution policy, file identification and/or deletion hint information of a target file that conforms to the set attribute and corresponds to the target file category. For example, the server may traverse the execution policy based on the target file category included in the processing request information, determine the file identifier and/or the deletion prompt information of the target file corresponding to the target file category and meeting the set attribute, and generate the deletion policy. The target file corresponding to the target file category and conforming to the set attribute may include: and the target files correspond to the target file categories. Optionally, the target file corresponding to the target file category and conforming to the set attribute may further include: and the target importance level is lower than the importance level of the target file category.
For example, it is assumed that the importance levels of the target files include a first level, a second level and a third level with decreasing importance, and the target files with the same importance level are in the same file category. And the target file corresponding to the first level is file a. The target files corresponding to the second level are file B, file C and file D. The target files corresponding to the third level are file E and file F. And assuming that the target file corresponding to any file type and conforming to the set attribute comprises: the target file corresponding to any file category and the target file corresponding to the file category with the target importance level are lower than the importance level of any file category. If the target file category is at the second level, the target file corresponding to the target file category and meeting the set attribute may include: file B, file C, and file D, and file E and file F.
And step 306, the server sends a deletion strategy to the terminal.
And the server side sends the deletion strategy through a wireless network between the server side and the terminal.
And 307, the terminal executes deletion operation on the target files which are locally stored in the terminal and accord with the set attributes, wherein the target files which accord with the set attributes comprise target files corresponding to the types of the target files.
Optionally, the implementation process of executing the delete operation on the target file meeting the set attribute in the local storage of the terminal may be multiple, and the following two examples are used in the embodiment of the present invention for description.
In a first optional implementation manner, the process of the terminal executing the delete operation on the target file meeting the set attribute in the local storage may include: the terminal may delete the target file in the local storage that meets the set attribute.
Therefore, the terminal can directly delete the target file which is in accordance with the set attribute in the local storage, so that the occupation of the local storage by the target application program is reduced by directly deleting the target file.
In a second optional implementation manner, the process of the terminal executing the delete operation on the target file meeting the set attribute in the local storage may include: the terminal may perform deletion hint push. And in response to the deletion confirmation instruction, deleting the target file which conforms to the set attribute. The confirmation deletion instruction is generated based on the deletion prompt information.
The terminal executes the push of the deletion prompt message and can display the deletion prompt message. And receiving a setting operation aiming at the deletion prompting information and generating a deletion confirmation instruction. And in response to the deletion confirmation instruction, deleting the target file which is in the local storage and meets the set attribute. The setting operation may be a click operation, a long press operation, a slide operation, or the like.
Therefore, the terminal displays the deletion prompt information to prompt the user of the target application program to delete the target file meeting the set attribute, guides the user to delete the target file and reduces the occupation of local storage by the target application program. For example, the terminal may display a pop-up box including the deletion hint information. And the terminal deletes the target file which is pointed by the identifier and accords with the set attribute in the local storage of the terminal based on the file identifier of the target file included in the processing operation information.
Optionally, the target file meeting the set attribute corresponding to any file category may include not only the target file corresponding to the target file category, but also the target file meeting the set attribute: in the two optional implementation manners, the process of the electronic device executing the deletion operation on the locally stored target file meeting the set attribute may include multiple cases, and the following two cases are taken as examples in the embodiment of the present invention to describe the target file corresponding to the file category whose importance level is lower than the target importance level.
In the first case, the electronic device performs a deletion operation on a target file of a set data amount among target files conforming to the set attribute. The set data amount is inversely related to the data amount threshold.
Optionally, the electronic device obtains file sizes of all the target files in the target files meeting the set attribute. From the all target files, a target file of a set data amount is determined, that is, the sum of the file sizes of all the determined target files is the set data amount. And executing the deleting operation on the determined target file with the set data size. The electronic device may randomly determine an object file with a set data size from all the object files. Or the electronic device may sort all the target files according to the importance levels corresponding to the target files. And determining the target files with set data size according to the sequence of the importance levels from low to high.
For example, suppose a target file of a target application program can belong to three file categories of successively decreasing importance levels. The data size threshold corresponding to the first file type is 500 megabytes (M), the data size threshold corresponding to the second file type is 600M, and the data size threshold corresponding to the third file type is 700M. It is assumed that the setting data amount corresponding to the first file type is 300M, the setting data amount corresponding to the second file type is 200M, and the setting data amount corresponding to the third file type is 100M. And it is assumed that the target file corresponding to the first file category and meeting the set attribute includes a file a corresponding to the first file category, a file B and a file C corresponding to the second file category, and a file D corresponding to the third file category. The file sizes of file A, file B and file C are all 200M, and the file size of file D is 100M.
If the electronic device executes the deletion operation on the target files corresponding to the first file type and meeting the set attribute, the electronic device may randomly determine the total file size of the file a and the file D as the set data size from the target files meeting the set attribute, and execute the deletion operation on the file a and the file D.
In the second case, the electronic device performs a deletion operation on a first number of first object files and a second number of second object files among the object files that meet the set attribute. The first target file is a target file corresponding to a target file category, the second target file is a target file corresponding to a file category with an importance level lower than the target importance level, and the first number is smaller than the second number.
As an example, continuing with the example assumed in the first case above, assume that the first number is 1 and the second number is 2. And if the electronic equipment executes deletion operation on the target files corresponding to the first file type and meeting the set attributes, the first target file is a file A, and the second target files are a file B, a file C and a file D. The electronic device performs a deletion operation on one file (file a) in the first object file and two files (file B and file C) in the second object file.
And under the third condition, continuously deleting each target file in the target files which accord with the set attribute until the current available memory space of the electronic equipment is larger than the set threshold value. The set threshold is larger than the data volume threshold, and the set thresholds corresponding to different file categories are positively correlated with the data volume threshold. The current available storage capacity of the electronic device refers to the actual available storage capacity of the electronic device in the process of deleting the target file. The current available storage may be obtained by the electronic device in real time, or determined by the electronic device through a calculation of summing the available storage obtained in step 302 and the size of the currently deleted target file during the continuous deletion of the target file. Of course, the currently available storage amount may also be determined by other ways, which is not limited in this embodiment of the present invention.
For example, the example assumed in the first case is continued, and it is assumed that the set threshold corresponding to the first file type is 550M, the set threshold corresponding to the second file type is 650M, and the set threshold corresponding to the third file type is 750M. If the electronic device executes the deletion operation on the target file corresponding to the first file type and meeting the set attribute, the electronic device can continuously delete the files A to D. And if the current available storage capacity of the electronic equipment is more than 550M when the file C is deleted, stopping executing the deletion operation. The current available storage capacity of the electronic equipment is the sum of the sizes of the files A to C and the available storage capacity.
Optionally, after the terminal receives the deletion policy sent by the server, the process of the terminal executing the deletion operation on the target file meeting the set attribute in the local storage may include: and the terminal executes deletion operation on the target file which is in the local storage and accords with the set attribute based on the deletion strategy.
For example, the process of the terminal performing the deletion operation on the target file meeting the set attribute in the local storage based on the deletion policy may include:
if the deletion strategy comprises deletion prompt information, the terminal can display the deletion prompt information. And receiving a first setting operation aiming at the deletion prompt information, and generating a deletion confirmation instruction. And in response to the deletion confirmation instruction, deleting the target file which is corresponding to the file identifier included in the deletion strategy in the local storage and meets the set attribute. If the deletion policy does not include the deletion prompt message, the terminal may delete the target file corresponding to the file identifier included in the deletion policy in the local storage and conforming to the set attribute.
In the embodiment of the present invention, the information corresponding to the file category included in the execution policy may be related to the importance level corresponding to the file category. Therefore, the operation of displaying the deletion prompt information can be executed on the target file corresponding to the file category corresponding to the higher importance level, so that a user can independently select whether to delete the target file with higher importance, the influence of directly deleting the target file on the use of the user is avoided, and the user experience is improved.
For example, the above importance levels including the first level, the second level, and the third level are used as an example for the description. And executing deletion operation on the corresponding target file meeting the set attribute to display deletion prompt information for guiding the user to delete the target file according to the file category corresponding to the first grade. And respectively executing deletion operation on the corresponding target files which accord with the set attributes to directly delete the target files of the file categories corresponding to the second level and the third level.
In actual application, the deletion operation of the target file meeting the set attribute for the file categories corresponding to different importance levels may be determined by both a product worker and a developer.
And 308, the terminal determines a cloud storage backup target application program corresponding to the terminal.
Optionally, the terminal may determine whether the user has started the cloud storage backup function. Under the condition that the user is determined to start the cloud storage backup function, whether the user starts the function of the cloud storage backup target application program (including the relevant data of the cloud storage backup target application program) is judged, so that whether the cloud storage of the terminal backs up the target application program or not is determined. For example, cloud storage may include iTunes or iCloud.
Step 309, the terminal obtains the available storage amount of the cloud storage corresponding to the terminal where the target application program is located.
When the function of the cloud storage backup target application is not closed (opened), the terminal can obtain the available storage amount of the cloud storage corresponding to the terminal where the target application program is located.
And 310, when the available storage amount of the cloud storage is smaller than the data amount threshold corresponding to the target file type, the terminal sends processing request information to the server, wherein the processing request information comprises indication information used for indicating the target file type.
The explanation and implementation of step 310 may refer to the explanation and implementation of step 303, which are not described in detail in this embodiment of the present invention.
Step 311, the server side obtains an execution policy, where the execution policy includes file identifiers and/or deletion prompt information of target files corresponding to different file types and meeting the set attribute.
The explanation and implementation of step 311 may refer to the explanation and implementation of step 304, which is not described in detail in this embodiment of the present invention.
Step 312, the server determines a deletion policy based on the processing request information and the execution policy.
The explanation and implementation of step 312 may refer to the explanation and implementation of step 305, which is not described in detail in this embodiment of the present invention.
Step 313, the server sends the deletion policy to the terminal.
And step 314, the terminal executes deletion operation on the target files which are locally stored in the terminal and accord with the set attributes, wherein the target files which accord with the set attributes comprise target files corresponding to the target file types.
The explanation and implementation of step 314 may refer to the explanation and implementation of step 307, which is not described in detail in this embodiment of the present invention.
It should be noted that, before the terminal performs step 310, the method may further include: when the available storage capacity of the cloud storage is smaller than the data volume threshold corresponding to the target file category, the terminal can display the prompt information of insufficient space. The terminal can receive second setting operation aiming at the prompt information of insufficient space and generate a command for closing the cloud storage. And in response to the instruction for closing the cloud storage, closing the function of the cloud storage backup target application program.
Optionally, the terminal may display a pop frame, where the pop frame includes the prompt information of insufficient space. Wherein, this bullet frame can be centered in the display interface at terminal to the realization is reminded the effect to user's striking. The second setting operation may include a click operation, a long press operation, a slide operation, or the like for the insufficient space indication information. An example, a "close" option in a bullet box that includes insufficient space prompting information. And after the terminal receives the click operation of the 'closing' option, generating a cloud storage closing instruction. And in response to the instruction for closing the cloud storage, closing the function of the cloud storage backup target application program.
Based on this, the step 310 performed by the terminal may include: when the available storage amount of the cloud storage is smaller than the data amount threshold corresponding to the target file category and the function of the cloud storage backup target application program is not closed, the terminal sends processing request information to the server, wherein the processing request information comprises indication information used for indicating the target file category.
Optionally, the terminal may determine that the function of the cloud storage backup target application is not closed in response to a third setting input. The third setting input may be an input in the form of a click, a long press, or a voice for the target identifier. For example, the target identification may be a "continue" in bullet box option that includes insufficient space prompting information. And after receiving the click on the 'continue' option, the terminal responds to the third setting input, determines that the cloud storage backup target application program of the terminal is not closed (opened), and sends processing request information to the server.
In the embodiment of the present invention, the terminal may obtain the execution policy at the same time when executing the step 301. And when determining that the available storage amount is less than the data amount threshold corresponding to the target file category, the terminal determines a deletion policy directly based on the target file category and the execution policy. And then executing the deleting operation on the target file which accords with the set attribute. The steps 303 to 306 and the steps 310 to 313 are not required to be executed, so that the interaction between the terminal and the server is reduced, and the network overhead is reduced.
It should be noted that, before step 301, the application data processing method further includes a related step of a preparation phase. Fig. 4 is a flowchart illustrating a method for determining a data amount threshold corresponding to a file category according to an embodiment of the present invention. As shown in fig. 4, the application data processing method includes:
a preparation stage:
step 401, the server classifies the target files in the target application program and determines at least two file categories.
In the embodiment of the invention, the server can obtain the sandbox of the target application program and determine the target file in the sandbox. And classifying the target file and determining at least two file categories. Optionally, the server may obtain the sandbox of the target application program through the script file, and further determine at least two file categories. For example, in the development testing stage of the target application, the server may obtain the target file in the sandbox of the target application program through the script file.
Optionally, the server may classify the target file in the target application in a plurality of ways to determine at least two file categories. The following two examples are given as examples of the present invention.
In a first implementation, the server determines at least two file categories based on the importance level.
The process of classifying the target file in the target application by the server to determine at least two file categories may include the following steps 4011A and 4012A.
In step 4011A, the server determines an importance level of each target file of the target application according to a preset rating condition.
The importance level of the target file is used to reflect the importance of the target file to the target application. Optionally, the importance levels of the target files may include a first level, a second level, and a third level of decreasing importance.
The first level is used to reflect the general importance of the target file to the target application. After the target file corresponding to the first level is deleted, the target application program can run, and the core function of the target application program is not affected. The target files corresponding to the first level may include video files, book files, comic files, and the like, which are downloaded by the user using the target application.
The second level is used to reflect that the target file is less important to the target application. After the target file corresponding to the second level is deleted, the target application program can run normally and has almost no influence on the user. The target file corresponding to the second level may be a file that may be reloaded by a brief time below a time threshold. For example, the target file corresponding to the second level may include a cache data (including picture data) file loaded for a short time by a page such as a jump page in the application program.
The third level is used to reflect that the target file is of low importance to the target application. The target file corresponding to the third level may be a file that is not perceived by the user. After the target file corresponding to the third level is deleted, the target application program can run normally and the use of the user is not influenced at all. The target file corresponding to the third level may include a file for recording a user behavior log, and the like.
In the embodiment of the present invention, the process of determining, by the server, the importance level of each target file of the target application according to the preset level classification condition may include: the server determines the importance level of the target file based on the storage path of the target file and/or the file type of the target file.
For example, it is assumed that the importance levels of the target file include the above-described first level, second level, and third level. For the target file corresponding to the first level: the path that the user uses to cache files such as videos, books, and caricatures is usually a default or fixed path set by the user. For the target file corresponding to the second level: the file types (extensions) that store such cache data are typically json. For the target file corresponding to the third level: the type of file that stores such files is typically log, i.e., typically.
After the full-function test is completed on the target application program, the server may determine the importance level of each target file in the fixed path as a first level. The server may determine the importance levels of the target files having file types of json, png, jpg, jpeg, and cache as the second level. The server may determine the importance level of the target file having the file type log as a third level.
In step 4012A, the server classifies the target document based on the importance level, and determines at least two document classes.
Alternatively, the server may determine the target files of the same importance level as the same file category. Illustratively, continuing with the above example as an example, the importance ratings of the target file include a first rating, a second rating, and a third rating. The target files corresponding to the first level belong to the same file category, the target files corresponding to the second level belong to the same file category, and the target files corresponding to the third level belong to the same file category. The determined at least two file categories may include a first file category, a second file category, and a third file category. The importance levels corresponding to the first file category, the second file category and the third file category are sequentially reduced and respectively are a first level, a second level and a third level. The target file corresponding to the first file category at least comprises: and caching the downloaded multimedia file aiming at the target application program. The target files corresponding to the second file category at least comprise: the system comprises a page cache data file, a target application program cache picture file and a target application program cache video file. The target file corresponding to the third file category at least comprises: a user behavior log file.
It should be noted that, in the embodiment of the present invention, the server may further obtain a specific file of the target application, where the specific file may include all files of the target application, or may include a nonvolatile file in the target application, and the like. And determining the importance level of each specific file according to a preset level dividing condition. And performing second classification on the specific files based on the importance levels, and determining a second file category. At least two file categories are determined based on the second file category. In this case, the importance level may include a fourth level and a fifth level in which the importance is sequentially lowered, in addition to the first level, the second level and the third level. Wherein the importance corresponding to the fifth level is greater than the importance corresponding to the first level. The fourth level is used to reflect that the importance of the file to the target application is very high. After the file corresponding to the fourth level is deleted, the target application cannot run or there is a risk of running crash. The file corresponding to the fourth level may include a file of authority information designed by the application program, and the like. The fifth level is used to reflect that the importance of the file to the target application is higher. After deleting the file corresponding to the fifth level, the target application program can run, but the core function is affected. The file corresponding to the fifth level may include a file storing user identification information, which may cause a user to not view a member (VIP) video or the like after being deleted.
The server can sequentially traverse each specific file of the target application program, and then verify whether the target application program can run or not after deleting the traversed specific files. And when the target application program cannot run, determining the importance level of the currently verified specific file as a fourth level. Since the file types of the specific files corresponding to the fifth level are usually plist and db, that is, such files are usually plist files and db files (database files). Therefore, the server can determine the importance level of a specific file having file types plist and db as the fifth level among the specific files.
Based on this, the importance levels are ordered in order of importance as: a fourth level (a level), a fifth level (B level), a first level (C level), a second level (B level), and a third level (C level). If the server determines the target files with the same importance level as the same second file category, five second file categories can be determined. Since the specific files having the importance levels of the first level, the second level, and the third level are the target files, three second file categories corresponding to the first level, the second level, and the third level among the five second file categories are determined as the file categories of the target application program.
In a second implementation, the server determines at least two file categories based on the importance level and the file size of the target file.
The process of classifying the target file in the target application by the server to determine at least two file categories may include the following steps 4011B and 4012B.
In step 4011B, the server determines an importance level of each target file of the target application according to a preset rating condition.
For the explanation and implementation of step 4011B, reference may be made to the explanation and implementation of step 4011A, which is not limited in this embodiment of the present invention.
In step 4012B, the server classifies the target file based on the importance level and the file size of the target file, and determines at least two file categories.
Optionally, the server classifies the target file based on the importance level and the file size of the target file, and the process of determining at least two file categories may include:
the server determines the importance score of each target file based on the importance level and the file size of the target file by adopting a weighted average method. At least two file categories are then determined according to the importance scores. In an example, after determining the importance score of each target file, the server ranks the importance scores of all the target files, and determines the target files corresponding to the importance scores in the connection specification number as the same file category.
Alternatively, the server sorts all target files based on importance level and file size. And classifying the target files based on the sequencing result, and determining the file category. For example, the server sorts all target files in order from top to bottom based on importance level and file size in order from large to small. And determining the target files belonging to the same importance level in the sequencing result as the same file category.
It should be noted that, in the embodiment of the present invention, the server may also obtain a specific file of the target application, where the specific file may include all files of the target application, or may include a nonvolatile file in the target application, and the like. And determining the importance level of each specific file according to a preset level dividing condition. And secondly classifying the specific file according to the importance level and the file size, and determining a second file category. At least two file categories are determined based on the second file category. At this time, the importance levels may include the above-described first to fifth levels. Optionally, after the specific file of the target application program is obtained, the hash table may be established by using the storage path of the specific file as a Key (Key) and the file size of the specific file as a Value (Value).
Similarly, after determining the importance level of each specific file, the server performs second classification on the specific files based on the importance level and the file size to determine a second file category. And determining three second file categories determined based on the first level, the second level and the third level from the five second file categories as the file categories of the target application program.
Step 402, the server determines a data volume threshold corresponding to each of at least two file categories.
Optionally, each of the at least two file categories corresponds to a different data amount threshold. For example, in the case where the file category is determined based on the importance level (which is the above-described two implementation methods for determining the file category), it is indicated that the higher the importance level is, the more indispensable the file corresponding to the determined file category is for the target application. The threshold amount of data for the file category is inversely related to the importance level of the target file for the file category.
For example, if the importance of the reflection of the first level, the second level, and the third level decreases in sequence, the data amount thresholds corresponding to the first level, the second level, and the third level decrease in sequence. For example, the first level corresponds to a data amount threshold of 500 megabytes (M). The threshold of the amount of data corresponding to the second level is 700M. The third level corresponds to a data amount threshold of 700M.
In the embodiment of the invention, the data volume threshold corresponding to each file type can be modified by personnel such as users and developers according to actual conditions, so that the flexibility of triggering the electronic equipment to execute processing operation is improved, the triggering condition is more in line with actual requirements, and the user experience is improved.
Step 403, the server sends the data volume threshold corresponding to each file type to the electronic device.
In the embodiment of the invention, the server can send the data volume threshold corresponding to each of the at least two file categories to the electronic device at the designated time. Or the electronic device may send an acquisition request for acquiring the data amount threshold to the server after responding to the setting operation, and the server sends the data amount threshold corresponding to each file type to the electronic device after receiving the acquisition request. The designated time may be a time when the target application is started, a time when the target interface is entered, a time when the target application is closed, a time when the user clicks a target button, a set time, or the like. In practical applications, the threshold of the data amount corresponding to each file category may be determined by both the product personnel and the developer.
In summary, in the application data processing method provided in the embodiment of the present invention, by obtaining the data amount threshold corresponding to the file type to which the target file in the target application belongs and obtaining the available storage amount of the electronic device in which the target application is located, when the available storage amount is smaller than the data amount threshold corresponding to the target file type, a deletion operation may be performed on the target file meeting the set attribute in the terminal local storage, where the target file meeting the set attribute includes the target file corresponding to the target file type, and the use of the storage resource of the local storage of the electronic device is controlled, so that the probability that the application occupies too large storage resource of the local storage is reduced, that is, the probability that the application occupies too large storage space is reduced. The problem that the user selects the permanently uninstalled application program due to the fact that the storage space occupied by the application program is large is avoided to a certain extent, and the user retention rate and the user experience are improved. And the deletion operation can be executed on different files based on the currently actual available storage capacity of the electronic equipment and the data volume threshold corresponding to different file types. Therefore, the dynamic limitation on the use of the storage resources is realized, and the flexibility of the adjustment of the storage resources is improved.
Furthermore, the available storage capacity of the cloud storage corresponding to the terminal where the target application program is located can be acquired, so that when the available storage capacity is smaller than the data volume threshold corresponding to the target file type, the number of the target files backed up and stored in the cloud storage corresponding to the electronic device can be realized by executing deletion operation on different target files meeting set attributes in the local storage of the terminal under the condition that the function of the cloud storage backup target application program is started, the occupation of the storage resources of the cloud storage is reduced, the probability that the application program occupies too large storage resources of the cloud storage is reduced, and the probability that the application program occupies too large storage space is also reduced.
Moreover, in the case that the number of the file categories is at least two, since the deletion operation may be performed on the target files corresponding to different file categories and meeting the set attribute based on the currently actual available storage amount of the electronic device and the data amount threshold corresponding to different file categories, the electronic device deletion operation may include deleting the target files meeting the set attribute. Therefore, the electronic equipment can dynamically reduce the occupation of the target application program on the storage space, flexibly realize the dynamic limitation on the use of the storage resource and prevent the problem of larger storage space occupied by the application program.
Referring to fig. 5, a flowchart of another method for processing application data according to an embodiment of the present invention is shown. The application data processing method may be applied to the data processing system provided in the embodiment of the present invention, and the embodiment shown in fig. 5 takes the example of dynamically limiting the storage resource locally stored by the server side. As shown in fig. 5, the application data processing method may include:
and (3) a limiting stage:
step 501, the server side obtains a data volume threshold corresponding to a file type to which a target file belongs in a target application program.
Optionally, after the server runs the target application program, the server may respond to the setting operation and directly obtain the data amount threshold corresponding to the file type determined by the server. The embodiment of the present invention is described by taking the number of the file categories as at least two as an example,
step 502, the server side obtains the available storage amount of the local storage of the server side where the target application program is located.
And 503, when the available storage amount is smaller than the data amount threshold corresponding to the target file type, the server side acquires a pre-stored deletion strategy. The deletion strategy comprises the following steps: and the file identification and/or the deletion prompt information of the target file which corresponds to the target file type and accords with the set attribute.
Optionally, the server may store the execution policy in advance. The execution strategy comprises file identification and/or deletion prompt information of the target file which is corresponding to different file types and accords with the set attribute. The server may obtain a deletion policy of the pre-stored execution policies based on the execution policy and the target file type.
In the execution policy, the target file corresponding to any file type and meeting the set attribute may include: any of the file categories may correspond to one or more target files. Optionally, in a case that the file category is determined based on the importance level of the target file, the target file corresponding to any file category and meeting the set attribute may further include: and the target importance level is lower than the importance level of any file category. Correspondingly, in the obtained deletion policy, the target file corresponding to the target file category and meeting the set attribute may include: and the target files correspond to the target file categories. Optionally, the target file may also include: and the target importance level is lower than the importance level of the target file category.
For example, it is assumed that the at least two file categories include a first file category, a second file category, and a third file category, and the importance levels corresponding to the first file category, the second file category, and the third file category decrease sequentially. The target file corresponding to the first file category and meeting the set attribute may at least include: the downloaded multimedia file is cached for the target application. The target files corresponding to the second file category and meeting the set attribute may at least include: the system comprises a page cache data file, a target application program cache picture file and a target application program cache video file. The target files corresponding to the third file category and meeting the set attribute may at least include: a user behavior log file.
In the embodiment of the present invention, the explanation and implementation manner of step 503 may refer to the relevant explanation and implementation manner of step 311 and step 312, which is not described in detail in the embodiment of the present invention.
Step 504, the server executes a deletion operation on the target file which is locally stored by the server and accords with the set attribute, wherein the target file which accords with the set attribute comprises the target file corresponding to the target file type.
Optionally, there may be a variety of implementation processes for the server to execute the deletion operation on the locally stored target file meeting the set attribute, and the following two examples are used in the embodiment of the present invention for description.
In a first alternative implementation, the process of the server performing the deletion operation on the target file locally stored by the server and meeting the set attribute may include the following step 5041A.
In step 5041A, the server may delete its locally stored target file that meets the set attributes.
Therefore, the server can directly delete the target file which is in the local storage and meets the set attribute, so that the cloud space resource occupied by the target application program is reduced by directly deleting the target file.
In a second alternative implementation, the process of the server performing the deletion operation on the target file locally stored by the server and meeting the set attribute may include the following step 5041B.
In step 5041B, the server may send a deletion hint message to the terminal.
And the server side sends the deletion prompt information to the terminal through a wireless network connected with the terminal.
In step 5042B, the terminal displays the deletion prompt.
And the terminal receives the deletion prompt message sent by the server. A deletion prompt may be displayed. For example, the terminal may display a pop-up box including the deletion hint information.
In step 5043B, the terminal receives a first setting operation for the deletion notification information, and generates a confirmation deletion instruction.
Alternatively, the first setting operation may be a click operation, a long press operation, a slide operation, or the like. Illustratively, the user includes a popup window for deleting the prompt message, so that the terminal receives a click operation and generates a deletion confirmation instruction.
In step 5044B, the terminal sends an ack/nack command to the server.
And the terminal sends a deletion confirmation instruction to the server through a wireless network connected with the server.
In step 5045B, the server deletes the target file that meets the set attributes and is stored locally by the server.
And the deletion instruction is confirmed to be generated and sent to the server side after the terminal receives the first setting operation aiming at the deletion prompt information. After receiving the deletion confirmation instruction, the server may respond to the deletion confirmation instruction to delete the target file that is locally stored by the server and meets the set attribute.
Optionally, the process of the server executing the delete operation on the target file meeting the set attribute and locally stored by the server may include: and the server executes deletion operation on the target file corresponding to the target file identifier in the cloud storage based on the deletion strategy.
If the deletion policy includes the deletion prompt information, the server may execute the deletion operation of the target file that is locally stored by the server and meets the set attribute in the second optional implementation manner. If the deletion policy does not include the deletion prompt message, the server may perform the deletion operation on the locally stored target file meeting the set attribute in the first optional implementation manner.
In the embodiment of the present invention, the explanation and implementation manner of step 504 may refer to the relevant explanation and implementation manner of step 314, which is not described in detail in the embodiment of the present invention.
In summary, according to the application data processing method provided in the embodiment of the present invention, by obtaining the data amount threshold corresponding to the file type to which the target file in the target application belongs and obtaining the available storage amount of the cloud storage corresponding to the terminal where the target application is located, when the available storage amount is smaller than the data amount threshold corresponding to the target file type, the deletion operation may be performed on different target files meeting the set attribute in the local storage of the terminal, so that, in a case that the cloud storage backup target application function is turned on, the number of target files backed up and stored in the cloud storage corresponding to the electronic device is implemented, occupation of storage resources of the cloud storage is reduced, and the probability that an excessive storage space occupied by the application is reduced. The problem that the user selects the permanently uninstalled application program due to the fact that the storage space occupied by the application program is large is avoided to a certain extent, and the user retention rate and the user experience are improved. And in the case that the number of the file categories is at least two, since the deletion operation can be performed on different files based on the currently available storage amount of the cloud storage of the electronic device and the data amount threshold corresponding to different file categories. Therefore, dynamic limitation on the use of the storage resources of the cloud storage is realized, and the flexibility of adjustment of the storage resources is improved.
In the embodiment of the present invention, a video application of ios is taken as an example, and a terminal dynamically limits storage resources of two storage spaces of a local storage and a cloud storage of the video application, so that the data processing method of the application provided in the embodiment of the present invention is described again.
The sandbox for the application for ios contains all the files for the application. In the embodiment of the present invention, the file identifier of the target file in the application program may be a storage path of the file relative to the sandbox. The target application is App 1. As shown in fig. 6, the sandbox of App1 has information on the name, modification date, size, and kind of folder. This sandbox is including the name of four folders, is respectively: files (Documents), files (Library), system data (SystemData), and temporary files (tmp).
Among them, files (Documents) usually store file data created or browsed in a program of an application program. As shown in fig. 7, a folder (a folder named file) may include, under it, folders such as those named cooaasetings (Coaoa is a native object-oriented application programming interface created by apple for Mac OS X), participants (Player), and the like. As shown in fig. 8, the general attributes among the attributes of the folder may include information of a category, a size, a location, a creation time, a modification time, and the like. The size of the storage space occupied by the file folder is 8772330 bytes.
The Library (Library) typically stores default setting information or other status information for the application. As shown in FIG. 9, the document folder may include folders such as the names BI, cache (Caches), and preferences (preferences). The cache folder usually stores cache files of the application programs. The files in the folder (directory) are not deleted as the application exits. However, typically cloud storage (e.g., iTunes or iCloud) does not backup the files under that folder. The preference folder typically stores information stored by a user default. The information in the preference folder is not deleted as the application exits. The setting data written through the NSUserDefaults (a programming interface interacting with the default system) is stored in a file G with a file type plist in the preference folder. As shown in fig. 10, the file G may include a key (key), a Type (Type), and a Value (Value). As shown in fig. 11, the general attributes in the attributes of the material folder include information such as a kind, a size, a position, a creation time, and a modification time. The data folder occupies 2252442159 bytes of storage space.
System data (SystemData) is generally stored with system data. The system data folder has no exposed interface, so that files in the system data folder cannot be modified and deleted.
The temporary file (tmp) typically stores a temporary file created on the fly. When the terminal is restarted, the temporary file folder (the folder named as the temporary file) deletes all files with the file type tmp. The file type of the file in the temporary file folder is usually tmp. Therefore, embodiments of the present invention may not need to consider the files in the temporary file folder.
Based on this, in the development or testing phase: and the server acquires the specific file in the sandbox of the target application program through the script. The specific file may refer to all files in the file folder and the material folder. After obtaining all the files, the server can establish a hash table based on all the files, wherein the key in the hash table is the file path of the specific file, and the value is the occupied space size, that is, the file size of the specific file.
In the embodiment of the invention, after the specific file is acquired, the server can determine the importance level and the file size of the acquired specific file to generate the file table. It is assumed that the importance levels include the above-described first to fifth levels (i.e., a to E levels). Assume that the number of specific files acquired by the server is 10, which are file 1 to file 10. Referring to table 1, table 1 includes a file name, a file size, and an importance level. The file having a file name of "file 1. plist" has an importance level of a level (abbreviated as a) and a file size of 1M. The file having a file name of "file 2. plist" has an importance level of B level (abbreviated B), and has a file size of 5M.
TABLE 1
File name Importance rating File size
Document 1.plist A 1M
Document 2.plist B 5M
File 3.video C 800M
File 4.json D 20M
Document 5.log E 5M
File 6.json D 80M
Document 7.log E 10M
Document 8.jpg D 10M
File 9.video C 700M
File 10 json D 15M
The server ranks particular files based on importance levels and file sizes. And the server sorts all the specific files according to the sequence of the importance levels from high to bottom and the sequence of the sizes of the files from large to small to obtain a sorting result. The results of this ranking are shown in table 2. The table 2 includes the importance level and the file name. File name "file 1. plist", the file size of this file 1 is 1M. The importance rating is a.
TABLE 2
Figure BDA0002945855850000291
The server determines a data volume threshold for each file category based on the importance level classifications. And the server determines the target files belonging to the same importance level as the same second file category. The specific files corresponding to the A level and the B level are undeletable files, and the specific files corresponding to the C level, the D level and the E level are target files. Therefore, the second file category determined by the level C, the level D, and the level E is determined as the file category of the target file program. That is, the three file categories to which the target file of the target file program belongs are determined with the C level, the D level, and the E level, respectively.
And jointly determining that the data volume threshold values of three file categories sequentially corresponding to the C level, the D level and the E level are 300M, 500M and 700M by a product worker and a developer. And assuming that the processing operation corresponding to the file category of the determined C level is to display deletion prompt information, wherein the deletion prompt information is used for prompting a user of the terminal to delete the target file corresponding to the C level. The processing operation corresponding to the file category of the D level is to delete the target file corresponding to the D level. The processing operation corresponding to the file category of the E level is to delete the target file corresponding to the E level.
And (3) a limiting stage:
the terminal starts the target application program. When the terminal starts the target application program, the server side sends the data volume thresholds of 300M, 500M and 700M corresponding to the C level, the D level and the E level in sequence to the terminal through the starting interface connected with the terminal. And the terminal can acquire the data volume threshold corresponding to the C level, the D level and the E level.
The available memory amount of the terminal for local storage is 400M. Since the available storage amount 400M of the local storage is smaller than the data amount threshold 500M corresponding to the D level, the target file category is a file category corresponding to the D level. The terminal transmits processing request information including a data amount threshold value of 500M to the server. And receiving a deletion strategy issued by the server, wherein the deletion strategy comprises a storage path of the target file corresponding to the D level. And after receiving the deletion strategy, the terminal deletes the target file corresponding to the D level based on the storage path of the target file corresponding to the D level.
The terminal determines whether the user starts a cloud storage backup function or not, and determines that the user starts a function of a cloud storage backup target application program. The available storage capacity of the cloud storage acquired by the terminal is 200M. Since the available storage amount 200M of the cloud storage is smaller than the data amount threshold 300M corresponding to the C level, the target file category is the file category corresponding to the C level. And the terminal displays prompt information of insufficient space, wherein the prompt information of insufficient space is used for prompting that the available storage capacity of the cloud storage is insufficient, and the function of backing up the target application program of the cloud storage is closed. When the function of the terminal cloud storage backup target application program is not closed, processing request information comprising a data volume threshold value of 300M is sent to the server. And receiving a deletion strategy issued by the server, wherein the deletion strategy comprises deletion prompt information. And after receiving the processing operation information, the terminal displays the deletion prompt information.
Referring to fig. 12, a schematic structural diagram of an application data processing apparatus according to an embodiment of the present invention is shown. As shown in fig. 12, the application data processing apparatus 1300 includes:
an obtaining module 1201, configured to obtain a data amount threshold corresponding to a file type to which a target file belongs in a target application program, and an available storage amount of an electronic device in which the target application program is located.
The executing module 1202 is configured to, when the available storage amount is smaller than the data amount threshold corresponding to the target file category, execute a deletion operation on a target file meeting the set attribute and locally stored in the electronic device, where the target file meeting the set attribute includes a target file corresponding to the target file category.
Optionally, the executing module 1202 is further configured to delete the target file meeting the set attribute.
Optionally, the execution module 1202 is further configured to:
executing deletion prompt information pushing;
and deleting the target file which accords with the set attribute in response to a deletion confirmation instruction, wherein the deletion confirmation instruction is generated based on the deletion prompt information.
Optionally, the obtaining module 1201 is further configured to obtain a deletion policy, where the deletion policy includes: and the file identification and/or deletion prompt information of the target file which corresponds to the target file type and accords with the set attribute, wherein the deletion policy is pre-stored information or information received from a server.
The executing module 1202 is further configured to execute a deleting operation on the target file meeting the set attribute based on the deleting policy.
Optionally, the file category is determined based on the importance level of the target file, and the target file meeting the set attribute further includes: and the target file corresponding to the file category with the importance level lower than the target importance level is the importance level of the target file category.
Optionally, the execution module 1202 is further configured to: and executing deletion operation on a target file with set data size in the target files conforming to the set attributes, wherein the set data size is in negative correlation with the data size threshold.
Optionally, the execution module 1202 is further configured to: and executing deletion operation on a first number of first target files and a second number of second target files in the target files which accord with the set attributes, wherein the first target files are target files corresponding to the target file types, the second target files are target files corresponding to the file types with the importance levels lower than the target importance levels, and the first number is smaller than the second number.
Optionally, the target file meeting the set attribute includes at least one of the following files: and caching the downloaded multimedia file, the page cache data file, the target application cache picture file, the target application cache video file and the user behavior log file aiming at the target application.
Optionally, the number of the file categories is at least two, and when the file categories are determined based on the importance levels of the target files, the data amount threshold corresponding to the file categories is negatively correlated with the importance levels of the target files corresponding to the file categories.
Optionally, the available storage capacity of the electronic device includes an available storage capacity of a local storage of the electronic device, and/or an available storage capacity of a cloud storage corresponding to the electronic device.
In summary, in the application data processing apparatus provided in the embodiment of the present invention, the obtaining module obtains the data amount threshold corresponding to the file type to which the target file belongs in the target application, and obtains the available storage capacity of the electronic device in which the target application is located. When the available memory space is smaller than the data volume threshold corresponding to the target file category, the execution module can execute deletion operation on the target file which is locally stored by the electronic equipment and accords with the set attribute, the target file which accords with the set attribute comprises the target file corresponding to the target file category, the use of the storage resource of the electronic equipment is controlled, the probability that the application program occupies the overlarge storage resource is reduced, and the probability that the application program occupies the overlarge storage space is also reduced. The problem that the user selects the permanently uninstalled application program due to the fact that the storage space occupied by the application program is large is avoided to a certain extent, and the user retention rate and the user experience are improved. And in the case that the number of the file types is two or more, the deletion operation can be executed on different files based on the currently actual available storage capacity of the terminal and the data volume threshold corresponding to different file types. Therefore, the dynamic limitation on the use of the storage resources is realized, and the flexibility of the adjustment of the storage resources is improved.
The embodiment of the invention also provides electronic equipment which can be the terminal or the server. As shown in fig. 13, the system comprises a processor 1301, a communication interface 1302, a memory 1303 and a communication bus 1304, wherein the processor 1301, the communication interface 1302 and the memory 1303 complete communication with each other through the communication bus 1304,
a memory 1303 for storing a computer program;
the processor 1301 is configured to implement the following steps when executing the program stored in the memory 1303: responding to the setting operation, and determining a data volume threshold corresponding to each file category in at least two file categories to which a target file belongs in the target application program; acquiring available memory space of a terminal where a target application program is located; and when the available storage capacity is smaller than the data volume threshold corresponding to the target file type, executing processing operation corresponding to the target file type, wherein the processing operation is used for limiting the use of the storage resource of the terminal.
Alternatively, the processor 1301 is configured to implement the following steps when executing the program stored in the memory 1303: classifying target files in a target application program; determining at least two file categories; determining a data volume threshold corresponding to each of at least two file categories; and sending the data volume threshold corresponding to each file type to the terminal.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and when the computer program is executed by a processor of a terminal, the steps executed by the terminal in the application data processing method described in any of the above embodiments are performed. Or when the computer program is executed by a processor of the server side, the steps executed by the server side in the application data processing method described in any of the above embodiments are executed.
In another embodiment of the present invention, a computer program product containing instructions is further provided, which when run on a computer, causes the computer to execute the steps executed by the terminal in the application data processing method in any of the above embodiments, or execute the steps executed by the server in the application data processing method in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the term "and/or" means and or. For example, "a and/or B" means: A. b and A and B. 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 identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (13)

1. A method for processing application data, the method comprising:
acquiring a data volume threshold corresponding to a file type to which a target file belongs in a target application program and an available storage amount of electronic equipment in which the target application program is located;
and when the available storage capacity is smaller than the data volume threshold corresponding to the target file type, executing deletion operation on target files which are locally stored in the electronic equipment and meet the set attribute, wherein the target files meeting the set attribute comprise the target files corresponding to the target file type.
2. The method according to claim 1, wherein the executing a deletion operation on the target file meeting the set attribute locally stored by the electronic device comprises:
and deleting the target file which accords with the set attribute.
3. The method according to claim 1, wherein the executing a deletion operation on the target file meeting the set attribute locally stored by the electronic device comprises:
executing deletion prompt information pushing;
and responding to a deletion confirmation instruction, deleting the target file which accords with the set attribute, wherein the deletion confirmation instruction is generated based on the deletion prompt information.
4. The method according to claim 3, wherein before the executing the deleting operation on the target file which is locally stored in the electronic device and conforms to the set attribute, the method further comprises:
obtaining a deletion policy, wherein the deletion policy comprises: the file identification and/or the deletion prompt information of the target file which corresponds to the target file type and accords with the set attribute are/is obtained, wherein the deletion policy is pre-stored information or is information received from a server;
the executing the deleting operation on the target file which is locally stored in the electronic equipment and accords with the set attribute comprises the following steps: and executing deletion operation on the target file which accords with the set attribute based on the deletion strategy.
5. The method according to claim 2 or 3, wherein the file category is determined based on an importance level of the target file, and the target file meeting the set attribute further comprises:
and the target file corresponding to the file category with the importance level lower than the target importance level is the importance level of the target file category.
6. The method according to claim 5, wherein the executing a deletion operation on the target file meeting the set attribute locally stored by the electronic device comprises:
and executing deletion operation on a target file with set data size in the target files conforming to the set attributes, wherein the set data size is in negative correlation with the data size threshold.
7. The method according to claim 5, wherein the executing a deletion operation on the target file meeting the set attribute locally stored by the electronic device comprises:
and executing deletion operation on a first number of first target files and a second number of second target files in the target files conforming to the set attributes, wherein the first target files are target files corresponding to the target file types, the second target files are target files corresponding to the file types with the importance levels lower than the target importance levels, and the first number is smaller than the second number.
8. The method according to claim 1, wherein the target file meeting the set attribute comprises at least one of the following files:
and caching the downloaded multimedia file, the page cache data file, the target application cache picture file, the target application cache video file and the user behavior log file aiming at the target application.
9. The method according to claim 1, wherein the number of the file categories is plural, and in a case where the file categories are determined based on the importance levels of the target files, the data amount threshold corresponding to the file categories is negatively correlated with the importance levels of the target files corresponding to the file categories.
10. The method of claim 1, wherein the available storage capacity of the electronic device comprises an available storage capacity of a local storage of the electronic device and/or an available storage capacity of a cloud storage corresponding to the electronic device.
11. An application data processing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a data volume threshold corresponding to a file type to which a target file belongs in a target application program and an available memory space of electronic equipment where the target application program is located;
and the execution module is used for executing deletion operation on the target files which are locally stored in the electronic equipment and accord with the set attributes when the available storage capacity is smaller than the data volume threshold corresponding to the target file type, wherein the target files which accord with the set attributes comprise the target files corresponding to the target file type.
12. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 10 when executing a program stored in the memory.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-10.
CN202110192910.4A 2021-02-20 2021-02-20 Application program data processing method and device Active CN112817923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110192910.4A CN112817923B (en) 2021-02-20 2021-02-20 Application program data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110192910.4A CN112817923B (en) 2021-02-20 2021-02-20 Application program data processing method and device

Publications (2)

Publication Number Publication Date
CN112817923A true CN112817923A (en) 2021-05-18
CN112817923B CN112817923B (en) 2024-03-26

Family

ID=75864244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110192910.4A Active CN112817923B (en) 2021-02-20 2021-02-20 Application program data processing method and device

Country Status (1)

Country Link
CN (1) CN112817923B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160063009A1 (en) * 2014-09-03 2016-03-03 Verizon Patent And Licensing Inc. Proactively clearing digital storage
CN106101271A (en) * 2016-08-08 2016-11-09 北京小米移动软件有限公司 Optimize the method and device of memory space
CN107025269A (en) * 2017-03-07 2017-08-08 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
US20170308546A1 (en) * 2016-04-25 2017-10-26 Le Holdings (Beijing) Co., Ltd. File storage method and electronic device
US20180121101A1 (en) * 2016-10-28 2018-05-03 Microsoft Technology Licensing, Llc Smart Storage Policy
CN109558382A (en) * 2018-12-06 2019-04-02 Oppo广东移动通信有限公司 File management method, electronic device and computer readable storage medium
CN110083573A (en) * 2019-04-30 2019-08-02 维沃移动通信有限公司 A kind of file management method and mobile terminal
US10437470B1 (en) * 2015-06-22 2019-10-08 Amazon Technologies, Inc. Disk space manager
CN110737604A (en) * 2019-08-30 2020-01-31 北京奇艺世纪科技有限公司 method, device, electronic equipment and storage medium for automatically cleaning memory
US20200349113A1 (en) * 2018-11-08 2020-11-05 Wangsu Science & Technology Co., Ltd. File storage method, deletion method, server and storage medium
CN111984601A (en) * 2020-08-31 2020-11-24 深圳壹账通智能科技有限公司 Log file deleting method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160063009A1 (en) * 2014-09-03 2016-03-03 Verizon Patent And Licensing Inc. Proactively clearing digital storage
US10437470B1 (en) * 2015-06-22 2019-10-08 Amazon Technologies, Inc. Disk space manager
US20170308546A1 (en) * 2016-04-25 2017-10-26 Le Holdings (Beijing) Co., Ltd. File storage method and electronic device
CN106101271A (en) * 2016-08-08 2016-11-09 北京小米移动软件有限公司 Optimize the method and device of memory space
US20180121101A1 (en) * 2016-10-28 2018-05-03 Microsoft Technology Licensing, Llc Smart Storage Policy
CN107025269A (en) * 2017-03-07 2017-08-08 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
US20200349113A1 (en) * 2018-11-08 2020-11-05 Wangsu Science & Technology Co., Ltd. File storage method, deletion method, server and storage medium
CN109558382A (en) * 2018-12-06 2019-04-02 Oppo广东移动通信有限公司 File management method, electronic device and computer readable storage medium
CN110083573A (en) * 2019-04-30 2019-08-02 维沃移动通信有限公司 A kind of file management method and mobile terminal
CN110737604A (en) * 2019-08-30 2020-01-31 北京奇艺世纪科技有限公司 method, device, electronic equipment and storage medium for automatically cleaning memory
CN111984601A (en) * 2020-08-31 2020-11-24 深圳壹账通智能科技有限公司 Log file deleting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112817923B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
US10275355B2 (en) Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal
CN109005056B (en) CDN application-based storage capacity evaluation method and device
US20160357678A1 (en) Predictive caching and fetch priority
CN107832100B (en) APK plug-in loading method and terminal thereof
CN110166523B (en) Content updating method, device, equipment and computer readable storage medium
CN111159436A (en) Method and device for recommending multimedia content and computing equipment
US20130283274A1 (en) Method and system for discovering and activating an application in a computer device
CN106294387B (en) Data migration method and device
CN107391038A (en) Method for writing data, flash memory and the storage medium of data storage type flash memory
CN114816240A (en) Data writing method and data reading method
CN109002550B (en) Test method and device for reduction equipment
CN112817923B (en) Application program data processing method and device
CN110427394B (en) Data operation method and device
CN112463058A (en) Fragmented data sorting method and device and storage node
CN110020290B (en) Webpage resource caching method and device, storage medium and electronic device
CN114238249B (en) File system aging evaluation method and device, storage medium and terminal
CN110704139B (en) Icon classification method and device
CN106796644A (en) Access control system and access control method
CN112347046B (en) Method for acquiring creation time of file in distributed system
CN110597576B (en) File remark processing method and system
CN114637946A (en) Resource data processing method and device and electronic equipment
CN111625500A (en) File snapshot method and device, electronic equipment and storage medium
CN110427525B (en) Data access method and device
CN112783843A (en) Data reading method and device and electronic equipment
CN112035119B (en) Data deleting method and device

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